diff --git a/hostd/assets/404.html b/hostd/assets/404.html index feaf2ec46..d0963becc 100644 --- a/hostd/assets/404.html +++ b/hostd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/_next/static/MH4XIofCdqo3X_3F8e8_1/_buildManifest.js b/hostd/assets/_next/static/MH4XIofCdqo3X_3F8e8_1/_buildManifest.js new file mode 100644 index 000000000..9e1ceeb8f --- /dev/null +++ b/hostd/assets/_next/static/MH4XIofCdqo3X_3F8e8_1/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-0abaa5751d9a81ed.js"],"/404":[s,"static/chunks/pages/404-87dcb3432ecb3c39.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/config":[s,"static/chunks/pages/config-a14fcf90e5be2066.js"],"/contracts":[s,"static/chunks/pages/contracts-ecdca8d2d3dd318e.js"],"/login":["static/chunks/pages/login-d7a094f2f2729149.js"],"/node":[s,"static/chunks/pages/node-73902e405e8bb4ac.js"],"/volumes":[s,"static/chunks/pages/volumes-17637d9fadbeac60.js"],"/wallet":[s,"static/chunks/pages/wallet-d19b2d4688b6a55c.js"],sortedPages:["/","/404","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]}}("static/chunks/546-b7361c752dae01fc.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/jg47y9ezZPD-H3jbR2g7m/_ssgManifest.js b/hostd/assets/_next/static/MH4XIofCdqo3X_3F8e8_1/_ssgManifest.js similarity index 100% rename from hostd/assets/_next/static/jg47y9ezZPD-H3jbR2g7m/_ssgManifest.js rename to hostd/assets/_next/static/MH4XIofCdqo3X_3F8e8_1/_ssgManifest.js diff --git a/hostd/assets/_next/static/chunks/546-5581ac6e9fd0df49.js b/hostd/assets/_next/static/chunks/546-b7361c752dae01fc.js similarity index 98% rename from hostd/assets/_next/static/chunks/546-5581ac6e9fd0df49.js rename to hostd/assets/_next/static/chunks/546-b7361c752dae01fc.js index b6e270e56..4fe74357f 100644 --- a/hostd/assets/_next/static/chunks/546-5581ac6e9fd0df49.js +++ b/hostd/assets/_next/static/chunks/546-b7361c752dae01fc.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[546],{41941:function(e,s,n){n.d(s,{q:function(){return w}});var i=n(52322),l=n(14522),r=n(63694),t=n(6391),a=n.n(t),d=n(4300),c=n(16211);function o(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"mainnet"!==e.data.name?(0,i.jsx)(l.t6k,{testnetName:e.data.name}):null}var x=n(54494),h=n(66510),u=n(60381);function j(){var e,s,n,t,a,d,o,j;let{openDialog:m}=(0,x.Rh)(),v=(0,r.ER)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.Os)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}}),g=(0,r.rV)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,c.n)(),y=(0,r.cQ)(),w=(0,h.B)(),N=null===(e=v.data)||void 0===e?void 0:e.version,k=(null==N?void 0:N.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(N):"https://github.com/SiaFoundation/hostd/tree/".concat(N),_=v.data?new Date().getTime()-new Date(null===(s=v.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,i.jsxs)(l.HfT,{name:"hostd",peerCount:null===(n=y.data)||void 0===n?void 0:n.length,connectPeer:()=>m("connectPeer"),isSynced:b.isSynced,syncPercent:b.syncPercent,nodeBlockHeight:b.nodeBlockHeight,estimatedBlockHeight:b.estimatedBlockHeight,firstTimeSyncing:b.firstTimeSyncing,moreThan100BlocksToSync:b.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.XxW,{size:"14",value:null===(t=g.data)||void 0===t?void 0:t.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.XxW,{size:"14",maxLength:24,value:null===(d=f.data)||void 0===d?void 0:d.address,type:"address"})})]}),v.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.xvT,{size:"14",children:(0,u.bc)(_,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(l.xvT,{size:"14",children:null===(o=p.data)||void 0===o?void 0:o.name})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(l.rUS,{size:"14",href:k,underline:"hover",target:"_blank",ellipsis:!0,children:null===(j=v.data)||void 0===j?void 0:j.version})]})]})}n(2784);var m=n(35138),v=n(36219),f=n(18993),p=n(92762);function g(){var e;let{isUnlockedAndAuthedRoute:s}=(0,v.Hv)(),{openDialog:n}=(0,x.Rh)(),{dataset:t}=(0,f.F)(),o=(0,r.rV)(),h=(0,r.Os)(),[j,g]=(0,p.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),y=(0,c.n)();if(!s)return null;let w=new(a())(h.data?h.data.confirmed+h.data.unconfirmed:0),N=(0,u.qN)(0),k=h.data&&w.gt(N),_=(null==t?void 0:t.length)>0,z=null===(e=o.data)||void 0===e?void 0:e.acceptingContracts,S=y.isSynced,T=[k,_,z,S],W=T.length,F=T.filter(e=>e).length;return W===F?(0,i.jsx)(l.$9_,{}):j?(0,i.jsx)(l.$9_,{children:(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(l.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,i.jsxs)(l.xrM,{children:[(0,i.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(l.TRl,{}),(0,i.jsx)(l.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,i.jsx)(l.zxk,{"aria-label":"minimize onboarding wizard",variant:"ghost",onClick:()=>g(!1),children:(0,i.jsx)(m.mli,{})})]}),(0,i.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,i.jsx)(l.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with siacoin to cover required contract collateral.".concat(y.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:k?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[!y.isWalletSynced&&(0,i.jsx)(l.ua7,{content:"Wallet scanning progress ".concat(y.walletScanPercent,"%"),children:(0,i.jsxs)(l.xvT,{size:"14",children:[y.walletScanPercent,"%"]})}),(0,i.jsx)(l.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),children:(0,i.jsx)(m.V8Q,{})}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.Fs9,{})})]})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:_?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.rUS,{href:d._.volumes.index,children:(0,i.jsx)(m.V8Q,{})}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.Fs9,{})})]})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:z?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.rUS,{href:d._.config.index,children:(0,i.jsx)(m.V8Q,{})}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.Fs9,{})})]})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:S?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.xvT,{ellipsis:!0,size:"14",children:[y.syncPercent,"%"]}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.hzZ,{})})]})})]})})})}):(0,i.jsx)(l.$9_,{children:(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(l.zxk,{onClick:()=>g(!0),size:"large",className:"flex gap-3 !px-3",children:(0,i.jsxs)(l.xvT,{className:"flex items-center gap-1",children:[(0,i.jsx)(l.TRl,{}),"Setup: ",F,"/",W," steps complete"]})})})})}function b(e){let{title:s,action:n,description:r}=e;return(0,i.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"flex-1 flex items-center",children:s}),n]}),(0,i.jsx)("div",{className:"pr-5",children:(0,i.jsx)(l.xvT,{size:"12",color:"subtle",children:r})})]})})}function y(e){let{children:s}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[s,(0,i.jsx)(g,{})]})}function w(e){let{dockedControls:s,...n}=e,t=(0,r.Os)(),{isSynced:x}=(0,c.n)();return(0,i.jsx)(l.tU3,{appName:"hostd",connectivityRoute:d.h,profile:(0,i.jsx)(j,{}),banner:(0,i.jsx)(o,{}),isSynced:x,walletBalanceSc:t.data&&{spendable:new(a())(t.data.spendable),confirmed:new(a())(t.data.confirmed),immature:new(a())(t.data.immature),unconfirmed:new(a())(t.data.unconfirmed)},dockedControls:(0,i.jsx)(y,{children:s}),...n})}},13779:function(e,s,n){n.d(s,{N:function(){return o}});var i=n(52322),l=n(14522),r=n(35138),t=n(63694),a=n(82851),d=n(4300),c=n(54494);function o(){var e,s;let{openDialog:n}=(0,c.Rh)(),o=(0,t.Z7)(),x=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),h=(null===(s=o.data)||void 0===s?void 0:s.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.KJW,{title:"Dashboard",route:d._.home,children:(0,i.jsx)(r.K2o,{})}),(0,i.jsx)(l.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,i.jsx)(r.zvn,{})}),(0,i.jsx)(l.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(l.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!h&&x&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!h&&!x&&(0,i.jsx)(l.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:h.toLocaleString()}),(0,i.jsx)(l.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[546],{41941:function(e,s,n){n.d(s,{q:function(){return w}});var i=n(52322),l=n(35627),r=n(63694),t=n(6391),a=n.n(t),d=n(4300),c=n(16211);function o(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"mainnet"!==e.data.name?(0,i.jsx)(l.t6k,{testnetName:e.data.name}):null}var x=n(54494),h=n(66510),u=n(60381);function j(){var e,s,n,t,a,d,o,j;let{openDialog:m}=(0,x.Rh)(),v=(0,r.ER)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.Os)({config:{swr:{revalidateOnFocus:!1}}}),p=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}}),g=(0,r.rV)({config:{swr:{revalidateOnFocus:!1}}}),b=(0,c.n)(),y=(0,r.cQ)(),w=(0,h.B)(),N=null===(e=v.data)||void 0===e?void 0:e.version,k=(null==N?void 0:N.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(N):"https://github.com/SiaFoundation/hostd/tree/".concat(N),_=v.data?new Date().getTime()-new Date(null===(s=v.data)||void 0===s?void 0:s.startTime).getTime():0;return(0,i.jsxs)(l.HfT,{name:"hostd",peerCount:null===(n=y.data)||void 0===n?void 0:n.length,connectPeer:()=>m("connectPeer"),isSynced:b.isSynced,syncPercent:b.syncPercent,nodeBlockHeight:b.nodeBlockHeight,estimatedBlockHeight:b.estimatedBlockHeight,firstTimeSyncing:b.firstTimeSyncing,moreThan100BlocksToSync:b.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.XxW,{size:"14",value:null===(t=g.data)||void 0===t?void 0:t.netAddress,maxLength:24,label:"network address",type:"hostIp",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.XxW,{size:"14",value:null===(a=v.data)||void 0===a?void 0:a.publicKey,maxLength:24,label:"public key",type:"hostPublicKey",siascanUrl:w})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.XxW,{size:"14",maxLength:24,value:null===(d=f.data)||void 0===d?void 0:d.address,type:"address"})})]}),v.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(l.xvT,{size:"14",children:(0,u.bc)(_,{format:"long"})})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(l.xvT,{size:"14",children:null===(o=p.data)||void 0===o?void 0:o.name})})]}),(0,i.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,i.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(l.rUS,{size:"14",href:k,underline:"hover",target:"_blank",ellipsis:!0,children:null===(j=v.data)||void 0===j?void 0:j.version})]})]})}n(2784);var m=n(35138),v=n(36219),f=n(18993),p=n(92762);function g(){var e;let{isUnlockedAndAuthedRoute:s}=(0,v.Hv)(),{openDialog:n}=(0,x.Rh)(),{dataset:t}=(0,f.F)(),o=(0,r.rV)(),h=(0,r.Os)(),[j,g]=(0,p.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),y=(0,c.n)();if(!s)return null;let w=new(a())(h.data?h.data.confirmed+h.data.unconfirmed:0),N=(0,u.qN)(0),k=h.data&&w.gt(N),_=(null==t?void 0:t.length)>0,z=null===(e=o.data)||void 0===e?void 0:e.acceptingContracts,S=y.isSynced,T=[k,_,z,S],W=T.length,F=T.filter(e=>e).length;return W===F?(0,i.jsx)(l.$9_,{}):j?(0,i.jsx)(l.$9_,{children:(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(l.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,i.jsxs)(l.xrM,{children:[(0,i.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(l.TRl,{}),(0,i.jsx)(l.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,i.jsx)(l.zxk,{"aria-label":"minimize onboarding wizard",variant:"ghost",onClick:()=>g(!1),children:(0,i.jsx)(m.mli,{})})]}),(0,i.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,i.jsx)(l.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with siacoin to cover required contract collateral.".concat(y.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:k?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[!y.isWalletSynced&&(0,i.jsx)(l.ua7,{content:"Wallet scanning progress ".concat(y.walletScanPercent,"%"),children:(0,i.jsxs)(l.xvT,{size:"14",children:[y.walletScanPercent,"%"]})}),(0,i.jsx)(l.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),children:(0,i.jsx)(m.V8Q,{})}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.Fs9,{})})]})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:_?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.rUS,{href:d._.volumes.index,children:(0,i.jsx)(m.V8Q,{})}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.Fs9,{})})]})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:z?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.rUS,{href:d._.config.index,children:(0,i.jsx)(m.V8Q,{})}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.Fs9,{})})]})}),(0,i.jsx)(b,{title:(0,i.jsx)(l.rUS,{href:d._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:S?(0,i.jsx)(l.xvT,{color:"green",children:(0,i.jsx)(m.Y3p,{})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.xvT,{ellipsis:!0,size:"14",children:[y.syncPercent,"%"]}),(0,i.jsx)(l.xvT,{color:"amber",children:(0,i.jsx)(m.hzZ,{})})]})})]})})})}):(0,i.jsx)(l.$9_,{children:(0,i.jsx)("div",{className:"flex justify-center",children:(0,i.jsx)(l.zxk,{onClick:()=>g(!0),size:"large",className:"flex gap-3 !px-3",children:(0,i.jsxs)(l.xvT,{className:"flex items-center gap-1",children:[(0,i.jsx)(l.TRl,{}),"Setup: ",F,"/",W," steps complete"]})})})})}function b(e){let{title:s,action:n,description:r}=e;return(0,i.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"flex-1 flex items-center",children:s}),n]}),(0,i.jsx)("div",{className:"pr-5",children:(0,i.jsx)(l.xvT,{size:"12",color:"subtle",children:r})})]})})}function y(e){let{children:s}=e;return(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[s,(0,i.jsx)(g,{})]})}function w(e){let{dockedControls:s,...n}=e,t=(0,r.Os)(),{isSynced:x}=(0,c.n)();return(0,i.jsx)(l.tU3,{appName:"hostd",connectivityRoute:d.h,profile:(0,i.jsx)(j,{}),banner:(0,i.jsx)(o,{}),isSynced:x,walletBalanceSc:t.data&&{spendable:new(a())(t.data.spendable),confirmed:new(a())(t.data.confirmed),immature:new(a())(t.data.immature),unconfirmed:new(a())(t.data.unconfirmed)},dockedControls:(0,i.jsx)(y,{children:s}),...n})}},13779:function(e,s,n){n.d(s,{N:function(){return o}});var i=n(52322),l=n(35627),r=n(35138),t=n(63694),a=n(82851),d=n(4300),c=n(54494);function o(){var e,s;let{openDialog:n}=(0,c.Rh)(),o=(0,t.Z7)(),x=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),h=(null===(s=o.data)||void 0===s?void 0:s.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.KJW,{title:"Dashboard",route:d._.home,children:(0,i.jsx)(r.K2o,{})}),(0,i.jsx)(l.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,i.jsx)(r.zvn,{})}),(0,i.jsx)(l.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(l.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!h&&x&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!h&&!x&&(0,i.jsx)(l.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:h.toLocaleString()}),(0,i.jsx)(l.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}}}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/_app-9ca42a1c03bd8428.js b/hostd/assets/_next/static/chunks/pages/_app-187d0573a987c9ff.js similarity index 75% rename from hostd/assets/_next/static/chunks/pages/_app-9ca42a1c03bd8428.js rename to hostd/assets/_next/static/chunks/pages/_app-187d0573a987c9ff.js index 204470453..41b51537e 100644 --- a/hostd/assets/_next/static/chunks/pages/_app-9ca42a1c03bd8428.js +++ b/hostd/assets/_next/static/chunks/pages/_app-187d0573a987c9ff.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,r){"use strict";r.r(t),r.d(t,{ResizeObserver:function(){return $},ResizeObserverEntry:function(){return S},ResizeObserverSize:function(){return c}});var n,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(n=i||(i={})).BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.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,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,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(),r=t.width,n=t.height;return!r&&!n}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,x=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},j=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new c((r?t:e)||0,(r?e:t)||0)},E=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,E),E;var r=getComputedStyle(e),n=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===r.boxSizing,o=x.test(r.writingMode||""),a=!n&&y.test(r.overflowY||""),s=!n&&y.test(r.overflowX||""),l=n?0:w(r.paddingTop),c=n?0:w(r.paddingRight),p=n?0:w(r.paddingBottom),m=n?0:w(r.paddingLeft),v=n?0:w(r.borderTopWidth),k=n?0:w(r.borderRightWidth),C=n?0:w(r.borderBottomWidth),S=n?0:w(r.borderLeftWidth),O=m+c,_=l+p,M=S+k,A=v+C,P=s?e.offsetHeight-A-e.clientHeight:0,T=a?e.offsetWidth-M-e.clientWidth:0,N=n?n.width:w(r.width)-(i?O+M:0)-T,R=n?n.height:w(r.height)-(i?_+A:0)-P,D=N+O+T+M,L=R+_+P+A,F=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:j(D,L,o),contentBoxSize:j(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},C=function(e,t,r){var n=k(e,r),o=n.borderBoxSize,a=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},S=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},O=function(e){if(h(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},_=function(){var e=1/0,t=[];a.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new S(t.target),i=O(t.target);n.push(r),t.lastReportedSize=C(t.target,t.observedBox),ie?t.activeTargets.push(r):t.skippedTargets.push(r))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=_());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},P=[],T=function(e){if(!o){var t=0,r=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),o=function(){r.textContent=""+(t?t--:t++)}}P.push(e),o()},N=function(e){T(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},Z=!1,V=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Z){Z=!0;var r=F(e);N(function(){var n=!1;try{n=A()}finally{if(Z=!1,e=r-F(),!R)return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),z=function(e){!R&&e>0&&V.start(),(R+=e)||V.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var r=0;rU(n.observationTargets,t)&&(i&&a.push(n),n.observationTargets.push(new I(t,r&&r.box)),z(1),V.schedule())},e.unobserve=function(e,t){var r=H.get(e),n=U(r.observationTargets,t),i=1===r.observationTargets.length;n>=0&&(i&&a.splice(a.indexOf(r),1),r.observationTargets.splice(n,1),z(-1))},e.disconnect=function(e){var t=this,r=H.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),$=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,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{M:function(){return n}})},26215:function(e,t,r){"use strict";r.d(t,{F:function(){return i},e:function(){return o}});var n=r(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,n.useCallback)(i(...e),e)}},34540:function(e,t,r){"use strict";r.d(t,{b:function(){return o},k:function(){return i}});var n=r(2784);function i(e,t){let r=(0,n.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,n.useMemo)(()=>i,Object.values(i));return(0,n.createElement)(r.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,n.useContext)(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],i=()=>{let t=r.map(e=>(0,n.createContext)(e));return function(r){let i=(null==r?void 0:r[e])||t;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return i.scopeName=e,[function(t,i){let o=(0,n.createContext)(i),a=r.length;function s(t){let{scope:r,children:i,...s}=t,l=(null==r?void 0:r[e][a])||o,u=(0,n.useMemo)(()=>s,Object.values(s));return(0,n.createElement)(l.Provider,{value:u},i)}return r=[...r,i],s.displayName=t+"Provider",[s,function(r,s){let l=(null==s?void 0:s[e][a])||o,u=(0,n.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return(0,n.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(i,...t)]}},72130:function(e,t,r){"use strict";r.d(t,{WV:function(){return s},jH:function(){return l}});var n=r(7896),i=r(2784),o=r(28316),a=r(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,i.forwardRef)((e,r)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,n.Z)({},s,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,r){"use strict";r.d(t,{A4:function(){return l},g7:function(){return a}});var n=r(7896),i=r(2784),o=r(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:r,...o}=e,a=i.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,n.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,r):null)}return(0,i.createElement)(s,(0,n.Z)({},o,{ref:t}),r)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?r[n]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:(0,o.F)(t,r.ref)}):i.Children.count(r)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(2784);function i(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}},73597:function(e,t,r){"use strict";r.d(t,{T:function(){return o}});var n=r(2784),i=r(86029);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let r=(0,n.useState)(e),[o]=r,a=(0,n.useRef)(o),s=(0,i.W)(t);return(0,n.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:o,u=(0,i.W)(r);return[l,(0,n.useCallback)(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},64680:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(2784);let i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},25447:function(e,t,r){"use strict";e.exports=r(44868)},99550:function(e,t,r){"use strict";e.exports=r(22360)},6901:function(e,t,r){"use strict";e.exports=r(78476)},8669:function(e,t,r){"use strict";e.exports=r(19455)},53609:function(e,t,r){"use strict";e.exports=r(96721)},81401:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,r=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,x=void 0!==y&&y,b=e.left,w=e.numTicks,j=void 0===w?10:w,E=e.orientation,k=void 0===E?d.default.bottom:E,C=e.rangePadding,S=void 0===C?0:C,O=e.scale,_=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,P=e.tickValues,T=e.top,N=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,h),R=null!=_?_:(0,u.default)(O),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,Z=(0,l.default)(O),V=D||L?-1:1,z=O.range(),I=(0,f.default)(S),B=(0,c.default)({x:Number(z[0])+.5-I.start,y:0},F),H=(0,c.default)({x:Number(z[z.length-1])+.5+I.end,y:0},F),U=(null!=P?P:(0,a.getTicks)(O,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,r=e.index,n=(0,a.coerceNumber)(Z(t));return{value:t,index:r,from:(0,c.default)({x:n,y:0},F),to:(0,c.default)({x:n,y:A*V},F),formattedValue:R(t,r,U)}});return n.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===b?0:b},r(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:j,orientation:k,rangePadding:S,scale:O,tickFormat:R,tickLength:A,tickPosition:Z,tickSign:V,ticks:W})))},p(r(13980));var n=p(r(2784)),i=p(r(72779)),o=r(71602),a=r(63243),s=p(r(58052)),l=p(r(71387)),u=p(r(16882)),c=p(r(89591)),d=p(r(87209)),f=p(r(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[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===r?8:r,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===r?36:r,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===r?36:r,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===r?8:r,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=a()).done;){var s=n.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,n.default)(e.x,null!=(o=r.xMin)?o:-1/0,null!=(a=r.xMax)?a:1/0),y:(0,n.default)(e.y,null!=(s=r.yMin)?s:-1/0,null!=(l=r.yMax)?l:1/0)}};var n=o(r(30968)),i=o(r(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return(0,n.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,r){if(void 0===r&&(r=1),!e)return[];for(var n=[],i=e.getTotalLength(),o=0;o<=i;o+=r){var a=e.getPointAtLength(o).matrixTransform(t);n.push(a)}return n}(e,t)},[null==e?void 0:e.getTotalLength()])};var n=r(2784)},37016:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.useState)(e),r=t[0],i=t[1],o=(0,n.useRef)(null),a=(0,n.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,n.useLayoutEffect)(function(){o.current&&(o.current(r),o.current=null)},[r]),[r,a]};var n=r(2784)},65319:function(e,t,r){"use strict";r.r(t),r.d(t,{localPoint:function(){return n.Z},touchPoint:function(){return i.Z}});var n=r(91032),i=r(49833)},91032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49833),i=r(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,n.Z)(e,t);if((0,i.cO)(e)){var r=e.target;if(r)return(0,n.Z)(r,e)}return null}},49833:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19067),i=r(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=r.x,u.y=r.y,u=u.matrixTransform(l.inverse()),new n.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new n.Z({x:r.x-c.left-e.clientLeft,y:r.y-c.top-e.clientTop})}},44321:function(e,t,r){"use strict";function n(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}r.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return n},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,r){"use strict";t.__esModule=!0,t.default=p;var n=f(r(13980)),i=f(r(2784)),o=f(r(72779)),a=f(r(47440)),s=r(71602),l=r(61305),u=r(63243),c=f(r(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[r]=e[r]);return i}(e,d),S=null!=E?E:(0,u.getTicks)(n,void 0===b?10:b),O=(null!=j?j:0)+(0,c.default)(n)/2,_=S.map(function(e,t){var r,i=(null!=(r=(0,u.coerceNumber)(n(e)))?r:0)+O;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===r?0:r},k?k({lines:_}):_.map(function(e){var t=e.from,r=e.to,n=e.index;return i.default.createElement(a.default,h({key:"column-line-"+n,from:t,to:r,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},C))}))}p.propTypes={tickValues:n.default.array,height:n.default.number.isRequired}},34264:function(e,t,r){"use strict";t.__esModule=!0,t.default=p;var n=f(r(13980)),i=f(r(2784)),o=f(r(72779)),a=f(r(47440)),s=r(71602),l=r(61305),u=r(63243),c=f(r(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[r]=e[r]);return i}(e,d),S=null!=k?k:(0,u.getTicks)(n,void 0===w?10:w),O=(null!=E?E:0)+(0,c.default)(n)/2,_=S.map(function(e,t){var r,i=(null!=(r=(0,u.coerceNumber)(n(e)))?r:0)+O;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===r?0:r},b?b({lines:_}):_.map(function(e){var t=e.from,r=e.to,n=e.index;return i.default.createElement(a.default,h({key:"row-line-"+n,from:t,to:r,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},C))}))}p.propTypes={tickValues:n.default.array,width:n.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,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(13980),i=r.n(n),o=r(2784),a=r(72779),s=r.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,r){"use strict";r.r(t),r.d(t,{Group:function(){return n.Z}});var n=r(59309)},19067:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(){function e(e){var t=e.x,r=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===r?0:r}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,r){"use strict";r.r(t),r.d(t,{Point:function(){return n.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var n=r(19067);function i(e,t){return new n.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new n.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,r){"use strict";t.Z=function(e){var t=e.animationTrajectory,r=e.tickComponent,s=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,a),l=(0,n.useMemo)(function(){return function(e){return n.default.createElement(o.default,u({},e,{tickComponent:r,animationTrajectory:t}))}},[t,r]);return n.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(r(13980));var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(void 0);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(2784)),i=l(r(81401)),o=l(r(65154)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a);return n.default.createElement(i.default,{scale:t,height:r,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var r=e.lines;return n.default.createElement(o.default,l({scale:t,lines:r,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,r;return"column-"+(null!=(t=null==e?void 0:null==(r=e.from)?void 0:r.x)?t:"")+"-"+e.index}},p))})};var n=s(r(2784)),i=s(r(21516)),o=s(r(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),h=(0,o.useTransition)(r,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:n}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,r){var n=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=r.key;return i.default.createElement(o.animated.line,u({key:h,x1:n,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:n.default.func.isRequired}},93353:function(e,t,r){"use strict";t.Z=function(e){var t=e.scale,r=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,a);return n.default.createElement(i.default,{scale:t,width:r,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var r=e.lines;return n.default.createElement(o.default,l({scale:t,lines:r,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,r;return"row-"+(null!=(t=null==e?void 0:null==(r=e.from)?void 0:r.y)?t:"")+"-"+e.index}},p))})};var n=s(r(2784)),i=s(r(34264)),o=s(r(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(r){return Object.keys(r).filter(function(e){return r[e]!==t[e]}).every(function(t){return e.includes(t)})?r:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,r=t.left,n=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,top:n,left:r})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),r(c({},b,{ref:g.current,resize:j})))}f.propTypes={className:n.default.string,debounceTime:n.default.number,enableDebounceLeadingCall:n.default.bool,ignoreDimensions:n.default.oneOfType([n.default.any,n.default.arrayOf(n.default.any)]),children:n.default.func.isRequired}},2663:function(e,t,r){"use strict";var n=r(8597),i=r(12430),o=r(70590),a=r(50630),s=r(34278),l=r(64183),u=r(61662),c=r(43634),d=r(73335),f=r(54229),h=r(30558),p=r(71646),m=r(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,n.Z)(e)}},63243:function(e,t,r){"use strict";r.r(t),r.d(t,{coerceNumber:function(){return C.Z},createScale:function(){return b.Z},getTicks:function(){return S.Z},inferScaleType:function(){return k},scaleBand:function(){return n.Z},scaleCanBeZeroed:function(){return _.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return j}});var n=r(26587),i=r(71646),o=r(8597),a=r(19637),s=r(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=r(64183),d=r(61662),f=r(12430),h=r(70590),p=r(30558),m=r(73335),v=r(43634),g=r(34278),y=r(54229),x=r(50630),b=r(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},E=r(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,E.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var C=r(28142),S=r(71220),O=r(51519),_=r(34636)},25176:function(e,t,r){"use strict";r.d(t,{a:function(){return S},Z:function(){return _}});var n=r(88751),i=r(87286),o=r(43780),a=r(77636),s=r(78978),l={lab:n.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=r(68603),c=r(54076),d=r(18450),f=r(50690),h=r(52546),p=r(76231),m=r(97344),v=r(12370),g=r(28239),y=r(52004),x=r(94758),b=r(97631),w=r(2908),j=r(40668),E={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},C=r(74672),S=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var r=t.nice;if("boolean"==typeof r)r&&e.nice();else if("number"==typeof r)e.nice(r);else{var n=(0,j.Z)(e);if("string"==typeof r)e.nice(n?k[r]:E[r]);else{var i=r.interval,o=r.step,a=(n?k[i]:E[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var r=e.domain(),n=r[0],i=r[1],o=i=0||(i[r]=e[r]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?n.createElement(n.Fragment,null,m({path:y})):r||null!=d&&null!=f&&null!=i&&null!=u?n.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(r)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=r(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[r]=e[r]);return i}(e,d),S=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),_=O(void 0===s?[]:s);return j?n.createElement(n.Fragment,null,j({arcs:_,path:S,pie:O})):n.createElement(c.Z,{className:"visx-pie-arcs-group",top:r,left:i},_.map(function(e,r){return n.createElement("g",{key:"pie-arc-"+r},n.createElement("path",f({className:o()("visx-pie-arc",t),d:S(e)||"",fill:null==k||"string"==typeof k?k:k(e)},C)),null==l?void 0:l(S.centroid(e),e))}))}var p=r(63739),m=r(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,v),p=(0,a.aJ)({angle:r,radius:i,defined:s,curve:l});return d?n.createElement(n.Fragment,null,d({path:p})):n.createElement("path",g({ref:c,className:o()("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[r]=e[r]);return i}(e,x),g=(0,a.SO)({x:r,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===f?function(){return!0}:f,curve:p});return t?n.createElement(n.Fragment,null,t({path:g})):n.createElement("path",b({ref:m,className:o()("visx-area",h),d:g(void 0===d?[]:d)||""},v))}var j=r(55746),E=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,E),C=(0,a.kn)({keys:s,value:g,order:y,offset:x}),S=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=C(l);return w?n.createElement(n.Fragment,null,w({stacks:O,path:S,stack:C})):n.createElement(c.Z,{top:r,left:i},O.map(function(e,r){return n.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+r+"-"+(e.key||""),d:S(e)||"",fill:null==b?void 0:b(e.key,r)},j))}))}var S=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,S);return n.createElement(C,O({className:t,top:r,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var r=e.stacks,i=e.path;return r.map(function(e,r){return n.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+r+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,r)},b))})})}var M=r(14582),A=r(10897);function P(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),r=e.domain();return Math.abs(t[t.length-1]-t[0])/r.length}var T=["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[r]=e[r]);return i}(e,T),g=P(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,r){var n=e[t];return{index:r,key:t,value:n,width:g,x:u(t)||0,y:d(n)||0,color:f(t,r),height:p-(d(n)||0)}})}});return m?n.createElement(n.Fragment,null,m(y)):n.createElement(c.Z,{className:o()("visx-bar-group",r),top:i,left:a},y.map(function(e){return n.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return n.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);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,r){var n=e[t];return{index:r,key:t,value:n,height:y,x:l(n)||0,y:f(t)||0,color:p(t,r),width:h(n)||0}})}});return v?n.createElement(n.Fragment,null,v(x)):n.createElement(c.Z,{className:o()("visx-bar-group-horizontal",r),top:i,left:a},x.map(function(e){return n.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return n.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var Z=r(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function z(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=r(26078),$=r(44081),q=r(30382),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,Y),j=(0,Z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,$.ZP)(y)),x&&j.offset((0,q.ZP)(x));var E=j(t),k=P(h),C=E.map(function(e,t){var r=e.key;return{index:t,key:r,bars:e.map(function(t,n){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:r,index:n,height:i,width:k,x:a||0,y:o||0,color:m(e.key,n)}})}});return b?n.createElement(n.Fragment,null,b(C)):n.createElement(c.Z,{className:o()("visx-bar-stack",r),top:i,left:a},C.map(function(e){return e.bars.map(function(t){return n.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,X),j=(0,Z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,$.ZP)(y)),x&&j.offset((0,q.ZP)(x));var E=j(t),k=P(p),C=E.map(function(e,t){var r=e.key;return{index:t,key:r,bars:e.map(function(t,n){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:r,index:n,height:k,width:i,x:o||0,y:a||0,color:m(e.key,n)}})}});return b?n.createElement(n.Fragment,null,b(C)):n.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",r),top:i,left:a},C.map(function(e){return e.bars.map(function(t){return n.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=r(72215),er=["className","children","data","innerRef","path","x","y","source","target"];function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,er),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",en({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,ea),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?V:l,radius:void 0===u?z:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=r(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return r?n.createElement(n.Fragment,null,r({path:p})):n.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,ex),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return r?n.createElement(n.Fragment,null,r({path:p})):n.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var eE=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eE),p=s||eC({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return r?n.createElement(n.Fragment,null,r({path:p})):n.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eO),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",e_({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eP=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eP),h=a||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?z:l});return d?n.createElement(n.Fragment,null,d({path:h})):n.createElement("path",eT({ref:r,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eD),h=a||eF({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?z:l});return d?n.createElement(n.Fragment,null,d({path:h})):n.createElement("path",eL({ref:r,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function ez(){return(ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eV),p=a||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?n.createElement(n.Fragment,null,f({path:p})):n.createElement("path",ez({ref:r,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eH),p=a||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?n.createElement(n.Fragment,null,f({path:p})):n.createElement("path",eU({ref:r,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var eq=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eK(e){var t=e.className,r=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,eq),h=a||eG({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?z:l});return d?n.createElement(n.Fragment,null,d({path:h})):n.createElement("path",eY({ref:r,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===r?25:r,center:void 0===i?eQ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?n.createElement(n.Fragment,null,l({points:f})):n.createElement("polygon",eJ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,e4);return n.createElement("circle",e3({ref:r,className:o()("visx-circle",t)},i))}var e6=r(13980),e8=r.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(S)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return n.createElement("g",null,v.map(function(e,i){return t?n.createElement(n.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):n.createElement(m.Z,te({key:i,className:r,data:e,x:tt,y:tr},f[i]||f[i%f.length]))}))}tn.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(2784),i=r(72779),o=r.n(i),a=r(26078),s=r(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l),w=(0,s.SO)({x:t,x0:r,x1:i,defined:void 0===m?function(){return!0}:m,curve:g});return(null==f?w.y0(h.range()[0]):(0,a.Z)(w.y0,f),c&&!d&&(0,a.Z)(w.y1,c),d&&!c&&(0,a.Z)(w.y1,d),x)?n.createElement(n.Fragment,null,x({path:w})):n.createElement("path",u({ref:y,className:o()("visx-area-closed",v),d:w(void 0===p?[]:p)||""},b))}},14582:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(2784),i=r(72779),o=r.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a);return n.createElement("rect",s({ref:r,className:o()("visx-bar",t)},i))}},10897:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(2784),i=r(72779),o=r.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),V=(r=(t={x:k,y:C,width:S,height:O,radius:_,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==P&&P,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,x=t.y,v=r||p||h||v,u=r||i||h||u,l=r||i||d||l,m=r||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?n.createElement(n.Fragment,null,w({path:V})):n.createElement("path",s({ref:E,className:o()("visx-bar-rounded",j),d:V},Z))}},63739:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(2784),i=r(72779),o=r.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),h=r.x===l.x||r.y===l.y;return n.createElement("line",s({ref:d,className:o()("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(2784),i=r(72779),o=r.n(i),a=r(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),v=(0,a.jv)({x:i,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?n.createElement(n.Fragment,null,t({path:v})):n.createElement("path",l({ref:h,className:o()("visx-linepath",d),d:v(void 0===r?[]:r)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},52511:function(e,t,r){"use strict";r.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var n=r(38764),i=r(79493),o=r(79767),a=r(69619),s=r(8329),l=r(98926),u=r(26078),c=r(44081),d=r(30382);function f(e){var t=void 0===e?{}:e,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,n.Z)();return null!=r&&(0,u.Z)(d.innerRadius,r),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,r=t.x,n=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return r&&(0,u.Z)(f.x,r),n&&(0,u.Z)(f.x0,n),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,r=t.x,n=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return r&&(0,u.Z)(s.x,r),n&&(0,u.Z)(s.y,n),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,r=t.startAngle,n=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=r&&(0,u.Z)(c.startAngle,r),null!=n&&(0,u.Z)(c.endAngle,n),c}function v(e){var t=void 0===e?{}:e,r=t.angle,n=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return r&&(0,u.Z)(a.angle,r),n&&(0,u.Z)(a.radius,n),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,r=e.value,n=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),r&&(0,u.Z)(o.value,r),n&&o.order((0,c.ZP)(n)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,r){"use strict";function n(e,t){e(t)}r.d(t,{Z:function(){return n}})},30382:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var n=r(22254),i=r(76751),o=r(90541),a=r(36538),s=r(34928),l={expand:n.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var n=r(19721),i=r(82564),o=r(12197),a=r(81182),s=r(40277),l={ascending:n.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,r){"use strict";t.Z=function(e){var t=e.children,r=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,v=e.curve,g=e.innerRef,y=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,a),x=(0,o.area)({x:r,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:v});return t?n.default.createElement(n.default.Fragment,null,t({path:x})):n.default.createElement("path",l({ref:g,className:(0,i.default)("visx-area",m),d:x(void 0===h?[]:h)||""},y))};var n=s(r(2784)),i=s(r(72779)),o=r(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,o),h=r.x===l.x||r.y===l.y;return n.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var n=a(r(2784)),i=a(r(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),v=(0,o.line)({x:s,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?n.default.createElement(n.default.Fragment,null,t({path:v})):n.default.createElement("path",l({ref:h,className:(0,i.default)("visx-linepath",d),d:v(void 0===r?[]:r)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))};var n=s(r(2784)),i=s(r(72779)),o=r(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=g.transform;return n.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===r?0:r,fontSize:v,style:s},y.length>0?n.createElement("text",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return n.createElement("tspan",{key:t,x:m,dy:0===t?x:f},e.words.join(" "))})):null)}},89907:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(2784),i=r(32718),o=r.n(i),a=r(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,r=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,x=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,s),b=x.x,w=void 0===b?0:b,j=x.y,E=void 0===j?0:j,k=!u(w)||!u(E),C=(0,n.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),S=C.wordsWithWidth,O=C.spaceWidth,_=(0,n.useMemo)(function(){return k?[]:f||c?S.reduce(function(e,t){var r=t.word,n=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+n+O0){var t=_[0].width||1,r="shrink-only"===c?Math.min(f/t,1):f/t,n=w-r*w,i=E-r*E;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+E+")"),e.length>0?e.join(" "):""},[k,w,E,f,c,_,d]);return{wordsByLines:_,startDy:M,transform:A}}},44425:function(e,t,r){"use strict";r.r(t),r.d(t,{Text:function(){return n.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var n=r(64170),i=r(75715),o=r(89907)},75715:function(e,t,r){"use strict";var n=r(30733),i=r.n(n),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var r=document.getElementById(o);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,r){"use strict";r.d(t,{R:function(){return s}});var n=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,r){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===r&&(r="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[r]||(o[r]=new WeakMap);var l=o[r],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(l.get(e)||0)+1;n.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=n.get(e)-1,o=l.get(e)-1;n.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,r){e.exports=r(25644)},70353:function(e,t,r){"use strict";var n=r(93044),i=r(86955),o=r(92233),a=r(68030),s=r(97948),l=r(51875),u=r(60842),c=r(98560),d=r(21218),f=r(68047),h=r(10738);e.exports=function(e){return new Promise(function(t,r){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function E(){if(x){var n="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){r(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:n,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(E)},x.onabort=function(){x&&(r(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(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",n=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&n.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(r(!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 C=h(j);if(C&&-1===["http","https","file"].indexOf(C)){r(new d("Unsupported protocol "+C+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,r){"use strict";var n=r(93044),i=r(73644),o=r(62215),a=r(92937),s=function e(t){var r=new o(t),s=i(o.prototype.request,r);return n.extend(s,o.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(10663));s.Axios=o,s.CanceledError=r(68047),s.CancelToken=r(34089),s.isCancel=r(98041),s.VERSION=r(29241).version,s.toFormData=r(49027),s.AxiosError=r(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(70783),s.isAxiosError=r(65587),e.exports=s,e.exports.default=s},34089:function(e,t,r){"use strict";var n=r(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,r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,r){"use strict";var n=r(48834).lW,i=r(93044);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(r,l)}}),r.pop()}else t.append(a,o(n))}(e),t}},17525:function(e,t,r){"use strict";var n=r(29241).version,i=r(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,r){"use strict";var n,i,o=r(73644),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6391:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nu^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(er||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else tP?h.c=h.e=null:e.e=10;s/=10,o++);o>P?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return E(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new Z(e),S+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return E(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,Z.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=L.slice(0,t),o=s=0,d=f.length;sr.indexOf(n=f.charAt(s))){if("."==n){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return E(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&Z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>P)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new Z(e),t,r)).e,s=(l=h(e.c)).length,1==n||2==n&&(t<=o||o<=_)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function z(e,t){for(var r,n=1,i=new Z(e[0]);n=10;i/=10,n++);return(r=n+14*r-1)>P?e.c=e.e=null:r=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(n){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(n=n||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),n)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>P?e.c=e.e=null:e.e=M?g(t,r):y(t,r,"0"),e.s<0?"-"+t:t)}return Z.clone=e,Z.ROUND_UP=0,Z.ROUND_DOWN=1,Z.ROUND_CEIL=2,Z.ROUND_FLOOR=3,Z.ROUND_HALF_UP=4,Z.ROUND_HALF_DOWN=5,Z.ROUND_HALF_EVEN=6,Z.ROUND_HALF_CEIL=7,Z.ROUND_HALF_FLOOR=8,Z.EUCLID=9,Z.config=Z.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),S=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),O=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),_=r[0],M=r[1]):(m(r,-1e9,1e9,t),_=-(M=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),A=r[0],P=r[1];else if(m(r,-1e9,1e9,t),r)A=-(P=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=r;else throw T=!r,Error(u+"crypto unavailable")}else T=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),R=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))D=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);F="0123456789"==r.slice(0,10),L=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:S,ROUNDING_MODE:O,EXPONENTIAL_AT:[_,M],RANGE:[A,P],CRYPTO:T,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},Z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!Z.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},Z.maximum=Z.max=function(){return z(arguments,k.lt)},Z.minimum=Z.min=function(){return z(arguments,k.gt)},Z.random=(r=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,c=0,f=[],h=new Z(C);if(null==e?e=S:m(e,0,1e9),o=s(e/14),T){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw T=!1,Error(u+"crypto unavailable")}if(!T)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),Z.sum=function(){for(var e=1,t=arguments,r=new Z(t[0]);er-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,u,c,d,f,p,m,v=r.indexOf("."),g=S,x=O;for(v>=0&&(c=R,R=0,r=r.replace(".",""),f=(m=new Z(n)).pow(r.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,x,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(f.s<0?8:7)),l<1||!p[0])r=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,r="";v<=c;r+=s.charAt(p[v++]));r=y(r,u,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,j,E,k,C,S,O=n.s==i.s?1:-1,_=n.c,M=i.c;if(!_||!_[0]||!M||!M[0])return new Z(n.s&&i.s&&(_?!M||_[0]!=M[0]:M)?_&&0==_[0]||!M?0*O:O/0:NaN);for(y=(g=new Z(O)).c=[],O=o+(c=n.e-i.e)+1,s||(s=1e14,c=f(n.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(_[d]||0);d++);if(M[d]>(_[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(E=_.length,C=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),_=e(_,p,s),C=M.length,E=_.length),j=C,b=(x=_.slice(0,C)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,C,b))<0){if(w=x[0],C!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,r(m,Ct(M,x,C,b);)p++,r(x,C=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,r,a){var s,l=r?t:t.replace(b,"");if(x.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new Z(l,s);if(Z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new Z(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new Z(e,t))},k.decimalPlaces=k.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new Z(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-f(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},k.dividedBy=k.div=function(e,t){return w(this,new Z(e,t),S,O)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new Z(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var r,n,i,o,a,c,d,f,h,p=this;if((e=new Z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new Z(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new Z(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new Z(NaN);(n=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new Z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(r=new Z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new Z(C);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(d&&(h=C.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},k.integerValue=function(e){var t=new Z(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new Z(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new Z(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new Z(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new Z(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new Z(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new Z(e,t)).s,!a||!t)return new Z(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new Z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new Z(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]=0;){for(r=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,r=((u=h*u+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),I(e,m,n)},k.negated=function(){var e=new Z(this);return e.s=-e.s||null,e},k.plus=function(e,t){var r,n=this.s;if(t=(e=new Z(e,t)).s,!n||!t)return new Z(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new Z(n/0);if(!a[0]||!s[0])return s[0]?e:new Z(a[0]?this:0*n)}if(i=f(i),o=f(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),I(e,a,o)},k.precision=k.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new Z(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=S+4,u=new Z("0.5");if(1!==a||!o||!o[0])return new Z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),r=new Z(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new Z(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(r.c)).slice(0,a)){if(r.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},k.toFraction=function(e){var t,r,n,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new Z(e)).isInteger()&&(s.c||1!==s.s)||s.lt(C)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new Z(this);for(t=new Z(C),c=r=new Z(C),n=l=new Z(C),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=P,P=1/0,s=new Z(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>w(c,n,o,O).minus(this).abs().comparedTo(w(l,r,o,O).minus(this).abs())?[c,n]:[l,r],P=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},k.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=_||i>=M?g(h(r.c),i):y(h(r.c),i,"0"):10===e&&F?t=y(h((r=B(new Z(r),S+i+1,O)).c),r.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&Z.set(t),Z}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},70651:function(e,t,r){let n=r(7967);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[n]^c[e],m=c[n+1]^c[e+1];c[n]=m,c[n+1]=p,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[n]^c[e],m=c[n+1]^c[e+1],c[n]=p>>>16^m<<16,c[n+1]=m>>>16^p<<16,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=l[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,u[16*r+0],u[16*r+1]),s(2,10,18,26,u[16*r+2],u[16*r+3]),s(4,12,20,28,u[16*r+4],u[16*r+5]),s(6,14,22,30,u[16*r+6],u[16*r+7]),s(0,10,20,30,u[16*r+8],u[16*r+9]),s(2,12,22,24,u[16*r+10],u[16*r+11]),s(4,14,16,26,u[16*r+12],u[16*r+13]),s(6,8,18,28,u[16*r+14],u[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let a=p(r,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,r){let n=r(7967);function i(e,t,r,n,i,a){l[e]=l[e]+l[t]+i,l[n]=o(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],12),l[e]=l[e]+l[t]+a,l[n]=o(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=a[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++){var n,o;u[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,u[s[16*r+0]],u[s[16*r+1]]),i(1,5,9,13,u[s[16*r+2]],u[s[16*r+3]]),i(2,6,10,14,u[s[16*r+4]],u[s[16*r+5]]),i(3,7,11,15,u[s[16*r+6]],u[s[16*r+7]]),i(0,5,10,15,u[s[16*r+8]],u[s[16*r+9]]),i(1,6,11,12,u[s[16*r+10]],u[s[16*r+11]]),i(2,7,8,13,u[s[16*r+12]],u[s[16*r+13]]),i(3,4,9,14,u[s[16*r+14]],u[s[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=d(r,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,r){let n=r(70651),i=r(39962);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e)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,r,n){let i="\n"+e+" = ";for(let o=0;o2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(i)return n?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t=+t,r>>>=0,o||j(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||j(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function O(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},72779:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(n,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(n.charAt(h-1))?(u*=.9,(d=n.slice(s,h-1).match(r))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(n.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),n.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(n,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,n,e.toLowerCase(),n.toLowerCase(),0,0)}},68847:function(e,t,r){"use strict";r.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return E},Ss:function(){return C},Ym:function(){return P},ZP:function(){return b},xV:function(){return o}});var n=r(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new C(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?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 C(t[1],t[2],t[3],1):(t=f.exec(e))?new C(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new C(NaN,NaN,NaN,0):null}function w(e){return new C(e>>16&255,e>>8&255,255&e,1)}function j(e,t,r,n){return n<=0&&(e=t=r=NaN),new C(e,t,r,n)}function E(e){return(e instanceof i||(e=b(e)),e)?new C((e=e.rgb()).r,e.g,e.b,e.opacity):new C}function k(e,t,r,n){return 1==arguments.length?E(e):new C(e,t,r,null==n?1:n)}function C(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function S(){return"#"+_(this.r)+_(this.g)+_(this.b)}function O(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function _(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,r,n)}function A(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(r-n)/l+(r0&&u<1?0:s,new T(s,l,u,e.opacity)}function P(e,t,r,n){return 1==arguments.length?A(e):new T(e,t,r,null==n?1:n)}function T(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function N(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}(0,n.Z)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:x,toString:x}),(0,n.Z)(C,k,(0,n.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new C(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:S,formatHex:S,formatRgb:O,toString:O})),(0,n.Z)(T,P,(0,n.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new C(N(e>=240?e-240:e+120,i,n),N(e,i,n),N(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,r){"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.d(t,{Z:function(){return n},l:function(){return i}})},20966:function(e,t,r){"use strict";r.d(t,{Uc:function(){return g},ZP:function(){return d}});var n=r(40948),i=r(68847),o=r(10810),a=4/29,s=6/29,l=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,r,n=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*n+.7168786*o+.0606169*a)/1);return n===o&&o===a?t=r=s:(t=h((.4360747*n+.3850649*o+.1430804*a)/.96422),r=h((.0139322*n+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-r),e.opacity)}function d(e,t,r,n){return 1==arguments.length?c(e):new f(e,t,r,null==n?1:n)}function f(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,r,n){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?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.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 r=(0,u.V)(e,t);if(!r)return e+"";var i=r[0],o=r[1],a=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,r,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,l.Z)(e)).fill,r=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,j=e.type;"n"===j?(x=!0,j="g"):d[j]||(void 0===b&&(b=12),w=!0,j="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var E="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",k="$"===s?u:/[%p]/.test(j)?v:"",C=d[j],S=/[defgprs%]/.test(j);function O(e){var a,s,l,u=E,d=k;if("c"===j)d=C(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:C(Math.abs(e),b),w&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+n/3]:"")+d+(v&&"("===i?")":""),S){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,_=O>1)+u+e+d+_.slice(O);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)),O.toString=function(){return e+""},O}return{format:x,formatPrefix:function(e,t){var r=x(((e=(0,l.Z)(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-n),o=p[8+n/3];return function(e){return r(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(39801);function i(e){return(e=(0,n.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,r){"use strict";function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{V:function(){return i},Z:function(){return n}})},52328:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=n.exec(e)))throw Error("invalid format: "+e);return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var r=Array(e),n=0;n0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(r,n,i){if(i===e.length-1){var a=l(n,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),r.concat(a)}return r.concat(function(e,r,n){var i,a=[];if("L"===r.type||"Q"===r.type||"C"===r.type)a=a.concat((i=[[e.x,e.y]],null!=r.x1&&i.push([r.x1,r.y1]),null!=r.x2&&i.push([r.x2,r.y2]),i.push([r.x,r.y]),(function(e,t){for(var r=[],n=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,n):a.length0)for(var r=0;r=1?(r=1,t-1):Math.floor(r*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||r<-180?r-360*Math.round(r/360):r):(0,n.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,r){var i,o,a;return r-t?(i=t,o=r,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,n.Z)(isNaN(t)?r:t)}}function s(e,t){var r=t-e;return r?i(e,r):(0,n.Z)(isNaN(e)?t:e)}},88992:function(e,t,r){"use strict";function n(e){return function(){return e}}r.d(t,{Z:function(){return n}})},77636:function(e,t,r){"use strict";r.d(t,{B:function(){return f},Z:function(){return d}});var n=r(40948),i=r(68847),o=r(10810),a=-1.78277*.29227-.1347134789;function s(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,r=e.g/255,n=e.b/255,s=(a*n+-1.7884503806*t-3.5172982438*r)/(a+-1.7884503806-3.5172982438),u=n-s,c=-((1.97294*(r-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,r,null==n?1:n)}function l(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}(0,n.Z)(l,s,(0,n.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+r*(-.14861*n+1.78277*a)),255*(t+r*(-.29227*n+-.90649*a)),255*(t+1.97294*n*r),this.opacity)}}));var u=r(1234);function c(e){return function t(r){function n(t,n){var i=e((t=s(t)).h,(n=s(n)).h),o=(0,u.ZP)(t.s,n.s),a=(0,u.ZP)(t.l,n.l),l=(0,u.ZP)(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,r)),t.opacity=l(e),t+""}}return r=+r,n.gamma=t,n}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,r){"use strict";function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.d(t,{Z:function(){return n}})},87286:function(e,t,r){"use strict";r.d(t,{b:function(){return a}});var n=r(20966),i=r(1234);function o(e){return function(t,r){var o=e((t=(0,n.Uc)(t)).h,(r=(0,n.Uc)(r)).h),a=(0,i.ZP)(t.c,r.c),s=(0,i.ZP)(t.l,r.l),l=(0,i.ZP)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(68847),i=r(1234);function o(e){return function(t,r){var o=e((t=(0,n.Ym)(t)).h,(r=(0,n.Ym)(r)).h),a=(0,i.ZP)(t.s,r.s),s=(0,i.ZP)(t.l,r.l),l=(0,i.ZP)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,r){"use strict";r.r(t),r.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return P.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return C},interpolateZoom:function(){return _},piecewise:function(){return R.Z},quantize:function(){return D}});var n,i,o,a,s=r(69777),l=r(47639),u=r(67855),c=r(6984),d=r(91255);function f(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var h=r(1234);function p(e,t){var r=(0,h.wx)(+e,+t);return function(e){var t=r(e);return t-360*Math.floor(t/360)}}var m=r(98876),v=r(43289),g=r(73363),y=r(74672),x=r(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,r,n,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,n)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+n),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,n)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+n),!function(e,t,r,n,o,a){if(e!==r||t!==n){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,r)},{i:s-2,x:(0,m.Z)(t,n)})}else(1!==r||1!==n)&&o.push(i(o)+"scale("+r+","+n+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,r=-1,n=f.length;++rc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,n.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=n-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((r-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%n+n),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=r)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,r){"use strict";function n(e,t){return et?1:e>=t?0:NaN}r.d(t,{Z:function(){return n}})},98038:function(e,t,r){"use strict";r.d(t,{ZP:function(){return l}});var n=r(1169);function i(e){let t=e,r=e;function i(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>(0,n.Z)(e(t),r)),{left:i,center:function(e,r,n,o){null==n&&(n=0),null==o&&(o=e.length);let a=i(e,r,n,o-1);return a>n&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}var o=r(81048);let a=i(n.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,r){"use strict";function n(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 r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}r.d(t,{K:function(){return i},Z:function(){return n}})},33907:function(e,t,r){"use strict";function n(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r=i)&&(r=i)}return r}function i(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.d(t,{Z:function(){return l},s:function(){return u}});var o=r(1169);function a(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}var s=r(81048);function l(e,t,r){if(l=(e=Float64Array.from((0,s.K)(e,r))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return n(e);var l,u=(l-1)*t,c=Math.floor(u),d=n((function e(t,r,n=0,i=t.length-1,s=o.Z){for(;i>n;){if(i-n>600){let o=i-n+1,a=r-n+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(n,Math.floor(r-a*u/o+c)),f=Math.min(i,Math.floor(r+(o-a)*u/o+c));e(t,r,d,f,s)}let o=t[r],l=n,u=i;for(a(t,n,r),s(t[i],o)>0&&a(t,n,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[n],o)?a(t,n,u):a(t,++u,i),u<=r&&(n=u+1),r<=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,r=s.Z){if(n=e.length){if((t=+t)<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,r){"use strict";r.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var n=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,r){var n,i,o,a,l=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/a),n=Math.round(t/a);for(r*at&&--n,o=Array(i=n-r+1);++lt&&--n,o=Array(i=n-r+1);++l=0?(l>=n?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=n?10:l>=i?5:l>=o?2:1)}function l(e,t,r){var a=Math.abs(t-e)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=n?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function E(e,t,r){var n=v.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function k(e,t,r){var n=v.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function C(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function O(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _(e,t,r){var n=v.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function M(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function A(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function P(e,t,r){var n=v.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function T(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function N(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function R(e,t,r){var n=v.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function D(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function L(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function F(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Z(e,t,r){var n=v.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function V(e,t,r){var n=v.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function z(e,t,r){var n=g.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function I(e,t,r){var n=v.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function B(e,t,r){var n=v.exec(t.slice(r));return n?(e.s=+n[0],r+n[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 $(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function q(e,t){return x(e.getMilliseconds(),t,3)}function Y(e,t){return q(e,t)+"000"}function G(e,t){return x(e.getMonth()+1,t,2)}function K(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return x(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),x(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function er(e){return e.getDay()}function en(e,t){return x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var r=e.getDay();return x((e=r>=4||0===r?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function eE(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eC(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function eS(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var r=e.getUTCDay();return x((e=r>=4||0===r?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function e_(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eP(e){return Math.floor(+e/1e3)}i=(n=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),x=w(o),b=j(o),ee=w(c),eb=j(c),eT=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:$,L:q,m:G,M:K,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eP,S:X,u:J,U:Q,V:et,w:er,W:en,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eC,G:eO,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eA,s:eP,S:eg,u:ey,U:ex,V:ew,w:ej,W:eE,x:null,X:null,y:ek,Y:eS,Z:e_,"%":eM},eZ={a:function(e,t,r){var n=ee.exec(t.slice(r));return n?(e.w=eb.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=x.exec(t.slice(r));return n?(e.w=b.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=eR.exec(t.slice(r));return n?(e.m=eD.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=eT.exec(t.slice(r));return n?(e.m=eN.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return eI(e,t,r,n)},d:N,e:N,f:V,g:M,G:_,H:D,I:D,j:R,L:Z,m:T,M:L,p:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.p=y.get(n[0].toLowerCase()),r+n[0].length):-1},q:P,Q:I,s:B,S:F,u:k,U:C,V:S,w:E,W:O,x:function(e,t,n){return eI(e,r,t,n)},X:function(e,t,r){return eI(e,n,t,r)},y:M,Y:_,Z:A,"%":z};function eV(e,t){return function(r){var n,i,o,a=[],s=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(n):(0,a.l6)(n),n=s.Z.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(n):(0,l.wA)(n),n=u.Z.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eI(e,t,r,n){for(var i,o,a=0,s=t.length,l=r.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eZ[(i=t.charAt(a++))in m?t.charAt(a++):i])||(n=o(e,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return eL.x=eV(r,eL),eL.X=eV(n,eL),eL.c=eV(t,eL),eF.x=eV(r,eF),eF.X=eV(n,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=ez(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=ez(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,n.parse,o=n.utcFormat,n.utcParse},48623:function(e,t,r){"use strict";r.d(t,{Z:function(){return o},x:function(){return a}});var n=r(22274),i=r(34130);function o(){var e,t,r=(0,i.Z)().unknown(void 0),a=r.domain,s=r.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var r=a().length,n=ut&&(r=e,e=t,t=r),g=function(r){return Math.max(e,Math.min(t,r))}),n=i>2?f:d,c=h=null,x}function x(t){return null==t||isNaN(t=+t)?r:(c||(c=n(p.map(e),m,v)))(e(g(t)))}return x.invert=function(r){return g(t((h||(h=n(m,p.map(e),o.Z)))(r)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(r=e,x):r},function(r,n){return e=r,t=n,y()}}function m(){return p()(u,u)}},79870:function(e,t,r){"use strict";r.r(t),r.d(t,{scaleBand:function(){return n.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,a.Q)(_()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(_());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,o.Z),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(n)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return n.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],r=y.yR;function n(e){if(null!=e&&!isNaN(e=+e))return r(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r=+r)||t.push(r);return t.sort(C.Z),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(0,S.Z)(t,n/e))},n.copy=function(){return e(r).domain(t)},x.O.apply(n,arguments)}},scaleSequentialSqrt:function(){return E},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return P.Z}});var n=r(48623),i=r(93963),o=r(5497),a=r(13641),s=r(46494),l=r(34130),u=r(72851),c=r(19637),d=r(96417),f=r(73408),h=r(74995),p=r(37932),m=r(83803),v=r(69777),g=r(74672),y=r(70552),x=r(22274);function b(){var e,t,r,n,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===r?.5:(t=(n(t)-e)*r,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var r,n;return arguments.length?([r,n]=t,s=e(r,n),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=n(o=+o),t=n(a=+a),r=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return n=i,e=i(o),t=i(a),r=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 E(){return j.apply(null,arguments).exponent(.5)}var k=r(98038),C=r(1169),S=r(33907),O=r(87475);function _(){var e,t,r,n,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,n.G9)(u,c,r))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,r){"use strict";r.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var n=r(32071),i=r(11192),o=r(10070),a=r(70552),s=r(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,r,a=e(l,u),s=a.domain,p=10;function m(){var n,i;return t=(n=p)===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(e){return Math.log(e)/n}),r=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),r=h(r),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=r(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=r(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:r[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([r,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var n=r(98038),i=r(93963),o=r(22274)},19637:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(){var t,r=(0,n.ZP)(),l=[0,1],u=!1;function c(e){var n,i=Math.sign(n=r(e))*Math.sqrt(Math.abs(n));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return r.invert(s(e))},c.domain=function(e){return arguments.length?(r.domain(e),c):r.domain()},c.range=function(e){return arguments.length?(r.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(r.clamp(e),c):r.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(r.domain(),l).round(u).clamp(r.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var n=r(70552),i=r(22274),o=r(93963),a=r(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,r){"use strict";r.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var n=r(93963),i=r(70552),o=r(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,r=e(a(1),s(t));return r.constant=function(r){return arguments.length?e(a(t=+r),s(t)):t},(0,n.Q)(r)}},74995:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(){var t,r=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,n.ZP)(r,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((r=Array.from(e)).length,o.length-1),s):r.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(r.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[r[t-1],r[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(r).range(o).unknown(t)},i.o.apply(s,arguments)}}});var n=r(98038),i=r(22274)},62498:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(32071),i=r(52328),o=r(23733),a=r(11192);function s(e,t,r,s){var l,u,c,d=(0,n.ly)(e,t,r);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},37932:function(e,t,r){"use strict";r.d(t,{Y:function(){return g},Z:function(){return y}});var n=r(1381),i=r(97344),o=r(50690),a=r(76231),s=r(68603),l=r(54076),u=r(18450),c=r(52546),d=r(61743),f=r(70552),h=r(22274),p=r(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,r,n,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),E=u("%b %d"),k=u("%B"),C=u("%Y");function S(e){return(l(e)P*P+T*T&&(C=O,S=_),{cx:C,cy:S,x01:-d,y01:-f,x11:C*(i/j-1),y11:S*(i/j-1)}}function f(){var e=a,t=s,r=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,n.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,j=c,E=u,k=c,C=g,S=g,O=m.apply(this,arguments)/2,_=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+r.apply(this,arguments)),A=M,P=M;if(_>o.Ho){var T=(0,o.ZR)(_/s*(0,o.O$)(O)),N=(0,o.ZR)(_/l*(0,o.O$)(O));(C-=2*T)>o.Ho?(T*=y?1:-1,E+=T,k-=T):(C=0,E=k=(u+c)/2),(S-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(S=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var Z,V=l*(0,o.mC)(j),z=l*(0,o.O$)(j),I=s*(0,o.mC)(E),B=s*(0,o.O$)(E);if(go.Ho?P>o.Ho?(x=d(I,B,R,D,l,P,y),b=d(V,z,L,F,l,P,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Po.Ho&&C>o.Ho?A>o.Ho?(x=d(L,F,V,z,s,-A,y),b=d(R,D,I,B,s,-A,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+r(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(r){return arguments.length?(e="function"==typeof r?r:(0,i.Z)(+r),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?(r="function"==typeof e?e:(0,i.Z)(+e),l=null,h):r},h.y0=function(e){return arguments.length?(r="function"==typeof e?e:(0,i.Z)(+e),h):r},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(r)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(r)},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,r){"use strict";r.d(t,{t:function(){return n}});var n=Array.prototype.slice},33554:function(e,t,r){"use strict";function n(e){return function(){return e}}r.d(t,{Z:function(){return n}})},46385:function(e,t,r){"use strict";function n(e,t,r){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-r),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}r.d(t,{pC:function(){return i},xm:function(){return n}}),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:n(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:n(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 r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},20651:function(e,t,r){"use strict";function n(e){this._context=e}function i(e){return new n(e)}r.d(t,{Z:function(){return i}}),n.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,r){"use strict";function n(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function i(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function o(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}r.d(t,{Z:function(){return u},s:function(){return c}}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,r=n(this,e,t)),r);break;default:o(this,this._t0,r=n(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}}},23165:function(e,t,r){"use strict";r.d(t,{Z:function(){return o},j:function(){return n}});var n=o(r(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,r){"use strict";function n(e,t){this._context=e,this._t=t}function i(e){return new n(e,.5)}function o(e){return new n(e,0)}function a(e){return new n(e,1)}r.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),n.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}}},59207:function(e,t,r){"use strict";r.r(t),r.d(t,{arc:function(){return n.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return E},curveBasisClosed:function(){return C},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return Z},curveCatmullRomClosed:function(){return z},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return $.Z},curveMonotoneY:function(){return $.s},curveNatural:function(){return G},curveStep:function(){return K.ZP},curveStepAfter:function(){return K.cD},curveStepBefore:function(){return K.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return er.Z},stackOrderAppearance:function(){return en.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var n=r(38764),i=r(79493),o=r(79767),a=r(69619),s=r(23165),l=r(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,r=e.lineX0,n=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(r())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(n())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=r(3326),d=r(72215),f=r(24037),h=r(62628),p=r(9135),m=r(82893),v=r(44523),g=r(86707),y=r(42965),x=r(60598);function b(){}function w(e,t,r){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+r)/6)}function j(e){this._context=e}function E(e){return new j(e)}function k(e){this._context=e}function C(e){return new k(e)}function S(e){this._context=e}function O(e){return new S(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}},k.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},S.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);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,r=e.length-1;if(r>0)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+n*a),this._beta*t[l]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function r(e){return 1===t?new j(e):new _(e,t)}return r.beta=function(t){return e(+t)},r}(.85),A=r(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,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var T=function e(t){function r(e){return new P(e,t)}return r.tension=function(t){return e(+t)},r}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function r(e){return new N(e,t)}return r.tension=function(t){return e(+t)},r}(0),D=r(15);function L(e,t,r){var n=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z=function e(t){function r(e){return t?new F(e,t):new A.pC(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var z=function e(t){function r(e){return t?new V(e,t):new P(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function r(e){return t?new I(e,t):new N(e,0)}return r.alpha=function(t){return e(+t)},r}(.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=r(20651),$=r(27266);function q(e){this._context=e}function Y(e){var t,r,n=e.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[n-1]=(e[n]+i[n-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,r){"use strict";function n(e,t){if((s=e.length)>0)for(var r,n,i,o,a,s,l=0,u=e[t[0]].length;l0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=a,n[0]=a+=i):(n[0]=0,n[1]=i)}r.d(t,{Z:function(){return n}})},22254:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(90541);function i(e,t){if((i=e.length)>0){for(var r,i,o,a=0,s=e[0].length;a1)for(var r,n,i,o=1,a=e[t[0]],s=a.length;o0){for(var r,i=0,o=e[t[0]],a=o.length;i0&&(i=(r=e[t[0]]).length)>0){for(var r,i,o,a=0,s=1;so&&(o=t,n=r);return n}},19721:function(e,t,r){"use strict";r.d(t,{S:function(){return o},Z:function(){return i}});var n=r(81182);function i(e){var t=e.map(o);return(0,n.Z)(e).sort(function(e,r){return t[e]-t[r]})}function o(e){for(var t,r=0,n=-1,i=e.length;++n=0;)r[t]=t;return r}r.d(t,{Z:function(){return n}})},40277:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(81182);function i(e){return(0,n.Z)(e).reverse()}},69619:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=r(15);function s(){var e=o,t=i,r=null,s=(0,n.Z)(0),l=(0,n.Z)(a.BZ),u=(0,n.Z)(0);function c(n){var i,o,c,d,f,h=n.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,r){return t(v[e],v[r])}):null!=r&&m.sort(function(e,t){return r(n[e],n[t])}),i=0,c=p?(y-h*b)/p:0;i0?f*c:0)+b,v[o]={data:n[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,r=null,c):t},c.sort=function(e){return arguments.length?(r=e,t=null,c):r},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,n.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,n.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,n.Z)(+e),c):u},c}},11053:function(e,t,r){"use strict";function n(e){return e[0]}function i(e){return e[1]}r.d(t,{x:function(){return n},y:function(){return i}})},3326:function(e,t,r){"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.d(t,{Z:function(){return n}})},98926:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(72299),i=r(33554),o=r(90541),a=r(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,r=o.Z,l=s;function u(n){var i,o,a=e.apply(this,arguments),s=n.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,r){"use strict";r.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return n},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let n=1e3,i=6e4,o=36e5,a=864e5,s=6048e5,l=2592e6,u=31536e6},54076:function(e,t,r){"use strict";r.d(t,{i:function(){return a}});var n=r(22179),i=r(1514),o=(0,n.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,r){"use strict";r.r(t),r.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return n.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var n=r(22179),i=r(30356),o=r(52546),a=r(18450),s=r(54076),l=r(68603),u=r(76231),c=r(50690),d=r(97344),f=r(52004),h=r(28239),p=r(12370),m=r(97631),v=r(94758),g=r(2908),y=r(1381)},22179:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(t,r,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),r(e,1),t(e),e},s.round=function(e){var t=s(e),r=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),r(e,i),t(e);while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;r(e,-1),!n(e););else for(;--t>=0;)for(;r(e,1),!n(e););}})},o&&(s.count=function(e,r){return n.setTime(+e),i.setTime(+r),t(n),t(i),Math.floor(o(n,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var n=new Date,i=new Date},30356:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(22179),i=(0,n.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,n.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,r){"use strict";r.d(t,{L:function(){return a}});var n=r(22179),i=r(1514),o=(0,n.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,r){"use strict";r.d(t,{e:function(){return i}});var n=(0,r(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=n;var i=n.range},52546:function(e,t,r){"use strict";r.d(t,{m:function(){return a}});var n=r(22179),i=r(1514),o=(0,n.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,r){"use strict";r.d(t,{_g:function(){return C},jK:function(){return k},jo:function(){return E},WG:function(){return j}});var n=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,r){var a=Math.abs(t-e)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=n?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>{var n;return(n=e(t))r?1:n>=r?0:NaN}),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,r/s.qz,n));if(0===o)return l.Z.every(Math.max(a(t,r,n),1));let[u,d]=c[i/c[o-1][2]0?(0,n.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,r){"use strict";r.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var n=r(22179),i=r(1514);function o(e){return(0,n.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});var n=r(22179),i=(0,n.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,n.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},t.Z=i;var o=i.range},36386:function(e){function t(e,t,r){function n(){var u=Date.now()-s;u=0?i=setTimeout(n,t-u):(i=null,r||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=r&&!i;return i||(i=setTimeout(n,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},92683:function(e,t,r){"use strict";r.d(t,{TA:function(){return Z}});var n=r(2784),i=r(78435),o=r.n(i),a=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,r){return e.concat(t).map(function(e){return l(e,r)})}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||u,r.isMergeableObject=r.isMergeableObject||a;var n,i,o=Array.isArray(t);return o!==Array.isArray(e)?l(t,r):o?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=c(e[r],t[r],n):i[r]=l(t[r],n)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return c(e,r,t)},{})};var d=c,f=r(36394),h=r(32991),p=function(e){return(0,h.Z)(e,4)},m=r(25079),v=r(43737),g=r(52059),y=r(81470),x=r(11620),b=r(14551),w=r(16601),j=function(e){return(0,g.Z)(e)?(0,m.Z)(e,b.Z):(0,y.Z)(e)?[e]:(0,v.Z)((0,x.Z)((0,w.Z)(e)))},E=function(e,t){};function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function S(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(73463);var O=function(e){return Array.isArray(e)&&0===e.length},_=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},A=function(e){return"[object String]"===Object.prototype.toString.call(e)},P=function(e){return M(e)&&_(e.then)};function T(e,t,r,n){void 0===n&&(n=0);for(var i=j(t);e&&n=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}var R=(0,n.createContext)(void 0);function D(e,t){switch(t.type){case"SET_VALUES":return k({},e,{values:t.payload});case"SET_TOUCHED":return k({},e,{touched:t.payload});case"SET_ERRORS":if(o()(e.errors,t.payload))return e;return k({},e,{errors:t.payload});case"SET_STATUS":return k({},e,{status:t.payload});case"SET_ISSUBMITTING":return k({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return k({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return k({},e,{values:N(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return k({},e,{touched:N(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return k({},e,{errors:N(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return k({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return k({},e,{touched:function e(t,r,n,i){void 0===n&&(n=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var o,a=o;T(t,a.path)||(t=N(t,a.path,a.message))}}return t}(r)):t(r)})})},[v.validationSchema]),z=(0,n.useCallback)(function(e,t){return new Promise(function(r){return r(j.current[e].validate(t))})},[]),B=(0,n.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 z(t,T(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=N(e,t[n],r)),e},{})})},[z]),H=(0,n.useCallback)(function(e){return Promise.all([B(e),v.validationSchema?Z(e):{},v.validate?R(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return d.all([t,r,n],{arrayMerge:V})})},[v.validate,v.validationSchema,B,R,Z]),U=I(function(e){return void 0===e&&(e=S.values),O({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e})});(0,n.useEffect)(function(){l&&!0===w.current&&o()(g.current,v.initialValues)&&U(g.current)},[l,U]);var W=(0,n.useCallback)(function(e){var t=e&&e.values?e.values:g.current,r=e&&e.errors?e.errors:y.current?y.current:v.initialErrors||{},n=e&&e.touched?e.touched:x.current?x.current:v.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:v.initialStatus;g.current=t,y.current=r,x.current=n,b.current=i;var o=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(S.values,ec);P(a)?a.then(o):o()}else o()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,n.useEffect)(function(){!0===w.current&&!o()(g.current,v.initialValues)&&(h&&(g.current=v.initialValues,W()),l&&U(g.current))},[h,v.initialValues,W,l,U]),(0,n.useEffect)(function(){h&&!0===w.current&&!o()(y.current,v.initialErrors)&&(y.current=v.initialErrors||L,O({type:"SET_ERRORS",payload:v.initialErrors||L}))},[h,v.initialErrors]),(0,n.useEffect)(function(){h&&!0===w.current&&!o()(x.current,v.initialTouched)&&(x.current=v.initialTouched||F,O({type:"SET_TOUCHED",payload:v.initialTouched||F}))},[h,v.initialTouched]),(0,n.useEffect)(function(){h&&!0===w.current&&!o()(b.current,v.initialStatus)&&(b.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))},[h,v.initialStatus,v.initialTouched]);var $=I(function(e){if(j.current[e]&&_(j.current[e].validate)){var t=T(S.values,e),r=j.current[e].validate(t);return P(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),Z(S.values,e).then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),q=(0,n.useCallback)(function(e,t){var r=t.validate;j.current[e]={validate:r}},[]),Y=(0,n.useCallback)(function(e){delete j.current[e]},[]),G=I(function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?U(S.values):Promise.resolve()}),K=(0,n.useCallback)(function(e){O({type:"SET_ERRORS",payload:e})},[]),X=I(function(e,t){var n=_(e)?e(S.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?U(n):Promise.resolve()}),J=(0,n.useCallback)(function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=I(function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?U(N(S.values,e,t)):Promise.resolve()}),ee=(0,n.useCallback)(function(e,t){var r,n=t,i=e;if(!A(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;n=t||s||l,i=/number|range/.test(a)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(T(S.values,n),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&Q(n,i)},[Q,S.values]),et=I(function(e){if(A(e))return function(t){return ee(t,e)};ee(e)}),er=I(function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?a:r)?U(S.values):Promise.resolve()}),en=(0,n.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,er(t||n||i,!0)},[er]),ei=I(function(e){if(A(e))return function(t){return en(t,e)};en(e)}),eo=(0,n.useCallback)(function(e){_(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),ea=(0,n.useCallback)(function(e){O({type:"SET_STATUS",payload:e})},[]),es=(0,n.useCallback)(function(e){O({type:"SET_ISSUBMITTING",payload:e})},[]),el=I(function(){return O({type:"SUBMIT_ATTEMPT"}),U().then(function(e){var t,r=e instanceof Error;if(!r&&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&&O({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw O({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(O({type:"SUBMIT_FAILURE"}),r))throw e})}),eu=I(function(e){e&&e.preventDefault&&_(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:$,setErrors:K,setFieldError:J,setFieldTouched:er,setFieldValue:Q,setStatus:ea,setSubmitting:es,setTouched:G,setValues:X,setFormikState:eo,submitForm:el},ed=I(function(){return p(S.values,ec)}),ef=I(function(e){e&&e.preventDefault&&_(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,n.useCallback)(function(e){return{value:T(S.values,e),error:T(S.errors,e),touched:!!T(S.touched,e),initialValue:T(g.current,e),initialTouched:!!T(x.current,e),initialError:T(y.current,e)}},[S.errors,S.touched,S.values]),ep=(0,n.useCallback)(function(e){return{setValue:function(t,r){return Q(e,t,r)},setTouched:function(t,r){return er(e,t,r)},setError:function(t){return J(e,t)}}},[Q,er,J]),em=(0,n.useCallback)(function(e){var t=M(e),r=t?e.name:e,n=T(S.values,r),i={name:r,value:n,onChange:et,onBlur:ei};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,S.values]),ev=(0,n.useMemo)(function(){return!o()(g.current,S.values)},[g.current,S.values]),eg=(0,n.useMemo)(function(){return void 0!==u?ev?S.errors&&0===Object.keys(S.errors).length:!1!==u&&_(u)?u(v):u:S.errors&&0===Object.keys(S.errors).length},[u,ev,S.errors,v]);return k({},S,{initialValues:g.current,initialErrors:y.current,initialTouched:x.current,initialStatus:b.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:K,setFormikState:eo,setFieldTouched:er,setFieldValue:Q,setFieldError:J,setStatus:ea,setSubmitting:es,setTouched:G,setValues:X,submitForm:el,validateForm:U,validateField:$,isValid:eg,dirty:ev,unregisterField:Y,registerField:q,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:a,validateOnChange:r,validateOnMount:l})}function V(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var o=!1!==r.clone&&r.isMergeableObject(t);n[i]=o?d(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=d(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var z="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function I(e){var t=(0,n.useRef)(e);return z(function(){t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;ne?t:e},0);return Array.from(k({},e,{length:t+1}))};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)(function(r){var i=N(r.values,o,e(T(r.values,o))),a=n?("function"==typeof n?n:e)(T(r.errors,o)):void 0,s=t?("function"==typeof t?t:e)(T(r.touched,o)):void 0;return O(a)&&(a=void 0),O(s)&&(s=void 0),k({},r,{values:i,errors:n?N(r.errors,o,a):r.errors,touched:t?N(r.touched,o,s):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat($(t),[(0,h.Z)(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return H(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return B(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return U(r,e,t)},function(t){return U(t,e,null)},function(t){return U(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return W(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(S(r)),r.pop=r.pop.bind(S(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(T(e.formik.values,e.name),T(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?$(r):[];return t||(t=n[e]),_(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,i=t.render,o=t.children,a=t.name,s=C(t.formik,["validate","validationSchema"]),l=k({},e,{form:s,name:a});return r?(0,n.createElement)(r,l):i?i(l):o?"function"==typeof o?o(l):0===n.Children.count(o)?null:n.Children.only(o):null},t})(n.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},39515:function(e,t,r){var n=r(38761)(r(37772),"DataView");e.exports=n},89612:function(e,t,r){var n=r(52118),i=r(96909),o=r(98138),a=r(4174),s=r(7942);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ti?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=i?e:n(e,t,r)}},24019:function(e,t,r){var n=r(37772)["__core-js_shared__"];e.exports=n},55463:function(e){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},83126:function(e,t,r){var n=r(23895),i=r(33880),o=r(8435),a=r(66188);e.exports=function(e){return function(t){var r=i(t=a(t))?o(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,r){var n=r(81207),i=r(97329),o=r(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,r){var n=r(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},83043:function(e,t,r){var n=r(38761),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,r){var n=r(45386),i=r(87064),o=r(59950);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,r){var n=r(22218);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r(89612),i=r(80235),o=r(10326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},36417:function(e,t,r){var n=r(27937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).get(e)}},18052:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r(27937);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},73477:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},77777:function(e,t,r){var n=r(30733);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r(38761)(Object,"create");e.exports=n},54248:function(e,t,r){var n=r(60241)(Object.keys,Object);e.exports=n},4146:function(e,t,r){e=r.nmd(e);var n=r(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},37772:function(e,t,r){var n=r(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},15243:function(e,t,r){var n=r(80235);e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,r){var n=r(80235),i=r(10326),o=r(96738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},8435:function(e,t,r){var n=r(50217),i=r(33880),o=r(63344);e.exports=function(e){return i(e)?o(e):n(e)}},54452:function(e,t,r){var n=r(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=a},33812:function(e,t,r){var n=r(4795),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},63344:function(e){var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+n+"]",u="[^"+t+o+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",x="(?:"+["["+r+"]",c,d].join("|")+")"+(g+v+y),b=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},96009:function(e,t,r){var n=r(82108),i=r(34311)(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)});e.exports=i},82108:function(e,t,r){var n=r(66188),i=r(23779);e.exports=function(e){return i(n(e).toLowerCase())}},54073:function(e,t,r){var n=r(29259),i=r(61100),o=r(7642),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,p=t,d=e.apply(n,r)}function x(e){var r=e-h,n=e-p;return void 0===h||r>=t||r<0||v&&n>=c}function b(){var e,r,n,o=i();if(x(o))return w(o);f=setTimeout(b,(e=o-h,r=o-p,n=t-e,v?s(n,c-r):n))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,r=i(),n=x(r);if(l=arguments,u=this,h=r,n){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(o(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,r){var n=r(61655),i=r(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,r){var n=r(13324);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},93352:function(e,t,r){var n=r(32726),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},95041:function(e,t,r){var n=r(20187),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,r){var n=r(15183),i=r(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,r){var n=r(61049),i=r(61158);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r(37772),i=r(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,r){var n=r(53366),i=r(29259);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r(35522),i=r(47826),o=r(4146),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},90249:function(e,t,r){var n=r(1634),i=r(86411),o=r(67878);e.exports=function(e){return o(e)?n(e):i(e)}},19950:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,t(e,i,o),e)}),r}},34519:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},30733:function(e,t,r){var n=r(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},61100:function(e,t,r){var n=r(37772);e.exports=function(){return n.Date.now()}},65798:function(e,t,r){var n=r(20256),i=r(82952),o=r(21401),a=r(33812);e.exports=function(e){return o(e)?n(a(e)):i(e)}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,r){var n=r(51704),i=r(29259),o=r(4795),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},66188:function(e,t,r){var n=r(1054);e.exports=function(e){return null==e?"":n(e)}},23779:function(e,t,r){var n=r(83126)("toUpperCase");e.exports=n},11618:function(e,t,r){var n=r(45981),i=r(83559),o=r(66188),a=r(75304);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},53207:function(e,t,r){var n=r(96570);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},66655:function(e,t,r){"use strict";var n=r(72346);function i(e,t){for(var r=0;rp.length-2?p.length-1:e.length-l;r>0;r--)if(void 0!==p[r])for(i=0;i0&&kr)s.push(e);else{for(;r>=i&&!c||c&&i1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},38617:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,n.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,n.useContext)(s))&&void 0!==e?e:l},c=e=>(0,n.useContext)(s)?n.createElement(n.Fragment,null,e.children):n.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:x})=>{let[b,w]=(0,n.useState)(()=>p(l,c)),[j,E]=(0,n.useState)(()=>p(l)),k=g?Object.values(g):u,C=(0,n.useCallback)(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=v());let o=g?g[n]:n,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(n)?n:e;l.style.colorScheme=t}null==s||s()},[]),S=(0,n.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,n.useCallback)(t=>{E(v(t)),"system"===b&&r&&!e&&C("system")},[b,e]);(0,n.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,n.useEffect)(()=>{let e=e=>{e.key===l&&S(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),(0,n.useEffect)(()=>{C(null!=e?e:b)},[e,b]);let _=(0,n.useMemo)(()=>({theme:b,setTheme:S,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:r?[...u,"system"]:u,systemTheme:r?j:void 0}),[b,S,e,j,r,u]);return n.createElement(s.Provider,{value:_},n.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:x}),y)},h=(0,n.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&n&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},93542:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(42351)},86570:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(65047)}])},7513:function(e,t,r){"use strict";r.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var n=r(52322),i=r(14522),o=r(82851),a=r(65304);function s(e){let{currentPage:t,parentPage:r,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==r?void 0:r.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,n.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:r,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=r.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||r.namespace===(null==t?void 0:t.namespace))return(0,n.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(r.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:r,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=r.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||r.namespace===(null==t?void 0:t.namespace))return(0,n.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(r.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:r,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,n.jsx)(a.mY.Group,{heading:l&&(null==r?void 0:r.namespace)!==o.namespace&&(0,n.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}r(2784)},63328:function(e,t,r){"use strict";r.d(t,{F:function(){return y}});var n=r(52322),i=r(7513);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:r}=e;return(0,n.jsx)(i.fu,{currentPage:r,commandPage:o,children:a.map(e=>(0,n.jsx)(i.WD,{currentPage:r,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=r(54494),u=r(32088);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:r}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,n.jsx)(i.fu,{currentPage:r,commandPage:c,children:(0,n.jsx)(i.WD,{currentPage:r,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:r,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,n.jsx)(i.Ul,{currentPage:r,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{currentPage:t,select:r}),(0,n.jsx)(d,{currentPage:t,select:r})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:r,pushPage:a,select:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Ul,{currentPage:t,parentPage:r,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,n.jsx)(f,{currentPage:t,parentPage:r,commandPage:p,select:s})]})}var v=r(65717),g=r(2784);function y(e){let{currentPage:t,parentPage:r,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{parentPage:r,currentPage:t,pushPage:i,select:l}),(0,n.jsx)(h,{currentPage:t,select:l})]})}},4300:function(e,t,r){"use strict";r.d(t,{_:function(){return i},h:function(){return o}});var n=r(79338);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=n.ay},99634:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});let n=(0,r(60381).XB)(15)},29703:function(e,t,r){"use strict";r.d(t,{iV:function(){return j},ZR:function(){return w}});var n=r(52322),i=r(2784),o=r(14522),a=r(60381),s=r(83906),l=r(6391),u=r.n(l);let c=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],d={pinnedCurrency:"",pinnedThreshold:new(u())(0),shouldPinStoragePrice:!1,storagePricePinned:new(u())(0),shouldPinEgressPrice:!1,egressPricePinned:new(u())(0),shouldPinIngressPrice:!1,ingressPricePinned:new(u())(0),shouldPinMaxCollateral:!1,maxCollateralPinned:new(u())(0)},f={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,priceTableValidity:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:"",...d};function h(e){let{settings:t,settingsPinned:r}=e,n=null;return"duckdns"===t.ddns.provider&&(n={dnsDuckDnsToken:t.ddns.options.token}),"noip"===t.ddns.provider&&(n={dnsNoIpEmail:t.ddns.options.email,dnsNoIpPassword:t.ddns.options.password}),"route53"===t.ddns.provider&&(n={dnsAwsId:t.ddns.options.id,dnsAwsSecret:t.ddns.options.secret,dnsAwsZoneId:t.ddns.options.zoneID}),"cloudflare"===t.ddns.provider&&(n={dnsCloudflareToken:t.ddns.options.token,dnsCloudflareZoneId:t.ddns.options.zoneID}),{acceptingContracts:t.acceptingContracts,netAddress:t.netAddress,maxContractDuration:new(u())(t.maxContractDuration).div((0,a.S5)(1)),contractPrice:(0,a.ll)(t.contractPrice,6),baseRPCPrice:(0,a.ll)((0,s.sS)(t.baseRPCPrice),6),sectorAccessPrice:(0,a.ll)((0,s.nS)(t.sectorAccessPrice),6),collateralMultiplier:new(u())(t.collateralMultiplier),maxCollateral:(0,a.ll)(t.maxCollateral,6),storagePrice:(0,a.ll)((0,s.SY)(t.storagePrice),6),egressPrice:(0,a.ll)((0,s.B1)(t.egressPrice),6),ingressPrice:(0,a.ll)((0,s.dK)(t.ingressPrice),6),priceTableValidity:new(u())(t.priceTableValidity).div(1e9).div(60),accountExpiry:new(u())(t.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,a.ll)(t.maxAccountBalance,6),ingressLimit:(0,a.BT)(new(u())(t.ingressLimit)),egressLimit:(0,a.BT)(new(u())(t.egressLimit)),dnsProvider:t.ddns.provider,dnsIpv4:t.ddns.ipv4,dnsIpv6:t.ddns.ipv6,...n,...r?{pinnedCurrency:r.currency,pinnedThreshold:new(u())(r.threshold).times(100),shouldPinMaxCollateral:r.maxCollateral.pinned,maxCollateralPinned:new(u())(r.maxCollateral.value),shouldPinStoragePrice:r.storage.pinned,storagePricePinned:new(u())(r.storage.value),shouldPinEgressPrice:r.egress.pinned,egressPricePinned:new(u())(r.egress.value),shouldPinIngressPrice:r.ingress.pinned,ingressPricePinned:new(u())(r.ingress.value)}:d}}var p=r(63694),m=r(63955),v=r(36219);function g(e,t){return t?new(u())(new(u())(e).div(t).div(10).toFixed(0)).times(10):void 0}function y(e,t){return(r,n)=>!e.pinningEnabled||(t?t(r,n):!!r||"required")}var x=r(92762);let b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function j(e){let{children:t}=e,r=function(){var e;let{settings:t,settingsPinned:r,dynDNSCheck:l}={settings:(0,p.rV)({config:{swr:{refreshInterval:(0,a.sW)(1)}}}),settingsPinned:(0,p.E5)({config:{swr:{refreshInterval:(0,a.sW)(1),errorRetryCount:0}}}),dynDNSCheck:(0,p.WT)({config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}})},{form:d,fields:b,configViewMode:w,setConfigViewMode:j}=function(){var e;let t=(0,m.cI)({mode:"all",defaultValues:f}),r=t.watch("storagePrice"),o=t.watch("collateralMultiplier"),[s,l]=(0,x.Z)("v0/config/mode",{defaultValue:"basic"});!function(e){let{form:t}=e,r=(0,i.useMemo)(()=>({}),[]);(0,i.useEffect)(()=>{for(let[e,n]of Object.entries(r))t.setValue(e,n,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})},[t,r])}({form:t});let d=(0,v.J)({currency:"usd"}),h=(0,p.ER)(),b=null===(e=h.data)||void 0===e?void 0:e.explorer.enabled,w=(0,i.useRef)({pinningEnabled:b});return(0,i.useEffect)(()=>{w.current.pinningEnabled=b},[b]),{form:t,fields:(0,i.useMemo)(()=>{var e;return function(e){let{pinningEnabled:t,configViewMode:r,storageTBMonth:i,collateralMultiplier:o,exchangeRateUSD:s,validationContext:l}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,n.jsx)(n.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,n.jsx)(n.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com",validation:{required:"required",validate:{noProtocol:e=>!/^https?:\/\//.test(e||"")||"must not start with http:// or https://",noPort:e=>!/:\d+$/.test(e||"")||"must not include port"}}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(u())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,n.jsx)(n.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:"basic"===r,validation:{required:"required",validate:{min:e=>new(u())(e).gte((0,a.E6)(4320))||"must be at least 1 month"}}},pinnedCurrency:{title:"Pinned currency",description:"Currency to use for fields where price pinning is enabled.",type:"select",options:[...v.mV.map(e=>{let{id:t,label:r}=e;return{label:r,value:t}}),{label:"none",value:""}],hidden:!t,validation:{}},pinnedThreshold:{title:"Pinned currency change threshold",type:"number",suggestionTip:"A threshold of 2% is recommended.",suggestion:new(u())(2),units:"%",decimalsLimit:0,description:(0,n.jsx)(n.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."}),hidden:!t||"basic"===r,validation:{validate:{required:y(l),max:y(l,e=>new(u())(e).lte(100)||"must be at most 100%"),min:y(l,e=>new(u())(e).gte(0)||"must be at least 0%")}}},shouldPinStoragePrice:{title:"Pin storage price",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},storagePrice:{title:"Storage price",description:(0,n.jsx)(n.Fragment,{children:"The host's storage price per TB per month. Choose whether to set your storage price in siacoin per TB per month or to pin the siacoin price to a fixed fiat value per TB per month."}),type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:s?g(1,s):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",validation:{required:"required"}},storagePricePinned:{title:"Pinned storage price",description:"",units:"/TB/month",type:"fiat",category:"pricing",hidden:!t,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinStoragePrice||(null==e?void 0:e.gt(0))||"storage price must be greater than 0")}}},shouldPinEgressPrice:{title:"Pin egress price",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},egressPrice:{title:"Egress price",description:(0,n.jsx)(n.Fragment,{children:"The host's egress price per TB per month. Egress means bandwidth usage by outgoing download traffic. Choose whether to set your egress price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:s?g(10,s):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",validation:{required:"required"}},egressPricePinned:{title:"Pinned egress price",description:"",type:"fiat",units:"/TB",category:"pricing",hidden:!t,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinEgressPrice||(null==e?void 0:e.gt(0))||"egress price must be greater than 0")}}},shouldPinIngressPrice:{title:"Pin ingress price",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},ingressPrice:{title:"Ingress price",description:(0,n.jsx)(n.Fragment,{children:"The host's ingress price per TB per month. Ingress means bandwidth usage by incoming upload traffic. Choose whether to set your ingress price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),type:"siacoin",category:"pricing",units:"SC/TB",suggestion:s?g(.05,s):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,validation:{required:"required"}},ingressPricePinned:{title:"Pinned ingress price",description:"",type:"fiat",units:"/TB",category:"pricing",hidden:!t,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinIngressPrice||(null==e?void 0:e.gt(0))||"ingress price must be greater than 0")}}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,n.jsx)(n.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(u())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},shouldPinMaxCollateral:{title:"Pin max collateral",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},maxCollateral:{title:"Max collateral",description:(0,n.jsx)(n.Fragment,{children:"The host's maximum collateral. Choose whether to set your max collateral price in siacoin or to pin the max collateral to a fixed fiat value."}),type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:i&&o?!i||!o||(null==i?void 0:i.isZero())||(null==o?void 0:o.isZero())?new(u())(0):new(u())(12960).times(i).div((0,a.S5)(1)).times(o):void 0,suggestionTip:"The suggested maximum collateral, calculated based on the configured storage price and collateral multiplier.",validation:{required:"required"}},maxCollateralPinned:{title:"Pinned max collateral",description:"",type:"fiat",category:"pricing",hidden:!t||"basic"===r,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinMaxCollateral||(null==e?void 0:e.gt(0))||"max collateral must be greater than 0")}}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(u())(.2),description:(0,n.jsx)(n.Fragment,{children:"The host's contract price in siacoins."}),hidden:"basic"===r,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(u())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,n.jsx)(n.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:"basic"===r,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(u())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,n.jsx)(n.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:"basic"===r,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(u())(30),suggestionTip:"The suggested price table validity.",description:(0,n.jsx)(n.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:"basic"===r,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(u())(30),suggestionTip:"The suggested account expiry.",description:(0,n.jsx)(n.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:"basic"===r,validation:{required:"required",validate:{min:e=>new(u())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(u())(10),suggestionTip:"The suggested maximum account balance.",description:(0,n.jsx)(n.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:"basic"===r,validation:{required:"required",validate:{min:e=>new(u())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,n.jsx)(n.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,n.jsx)(n.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:c,description:(0,n.jsx)(n.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!c.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({pinningEnabled:null===(e=h.data)||void 0===e?void 0:e.explorer.enabled,configViewMode:s,storageTBMonth:r,collateralMultiplier:o,exchangeRateUSD:d.rate,validationContext:w.current})},[s,r,o,d.rate,h.data]),storageTBMonth:r,collateralMultiplier:o,configViewMode:s,setConfigViewMode:l}}(),E=(0,i.useMemo)(()=>({settings:{data:t.data,error:t.error},settingsPinned:{data:r.data,error:r.error}}),[t.data,t.error,r.data,r.error]),k=(0,i.useMemo)(()=>!function(e){let{settings:t,settingsPinned:r}=e;return!!(t.data&&(r.data||r.error))}(E)?null:h({settings:E.settings.data,settingsPinned:E.settingsPinned.data}),[E]),C=(0,i.useMemo)(()=>(function(e){let{settings:t}=e;return!!t.error})(E),[E]),S=null===(e=(0,p.ER)().data)||void 0===e?void 0:e.explorer.enabled,O=(0,i.useCallback)(async()=>{let e=await t.mutate(),n=await r.mutate();if(e&&(!S||n))return await l.mutate(),d.reset(h({settings:e,settingsPinned:n}));(0,o.OHV)({title:"Error fetching settings"})},[d,t,r,l,S]);(0,o.u$d)({form:d,remoteValues:k}),(0,o.Z4p)({form:d,remoteValues:k});let{changeCount:_}=(0,o.mYE)({form:d}),M=function(e){let{resources:t,revalidateAndResetForm:r}=e,n=(0,p.ER)({config:{swr:{refreshInterval:(0,a.sW)(1)}}}),l=(0,p.Te)(),u=(0,p.Vp)();return(0,i.useCallback)(async e=>{if(t)try{var i,c,d,f;let h;let p=(f=t.settings.data,h=null,"duckdns"===e.dnsProvider&&(h={token:e.dnsDuckDnsToken}),"noip"===e.dnsProvider&&(h={email:e.dnsNoIpEmail,password:e.dnsNoIpPassword}),"route53"===e.dnsProvider&&(h={id:e.dnsAwsId,secret:e.dnsAwsSecret,zoneID:e.dnsAwsZoneId}),"cloudflare"===e.dnsProvider&&(h={token:e.dnsCloudflareToken,zoneID:e.dnsCloudflareZoneId}),{...f,acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:Number(e.maxContractDuration.times((0,a.S5)(1)).toFixed(0)),contractPrice:(0,a.qN)(e.contractPrice).toString(),baseRPCPrice:e.baseRPCPrice.div((0,a.ll)((0,s.sS)(1))).toFixed(0),sectorAccessPrice:e.sectorAccessPrice.div((0,a.ll)((0,s.nS)(1))).toFixed(0),collateralMultiplier:e.collateralMultiplier.toNumber(),maxCollateral:(0,a.qN)(e.maxCollateral).toString(),storagePrice:e.storagePrice.div((0,a.ll)((0,s.SY)(1))).toFixed(0),egressPrice:e.egressPrice.div((0,a.ll)((0,s.B1)(1))).toFixed(0),ingressPrice:e.ingressPrice.div((0,a.ll)((0,s.dK)(1))).toFixed(0),priceTableValidity:Number(e.priceTableValidity.times(60).times(1e9).toFixed(0)),accountExpiry:Number(e.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,a.qN)(e.maxAccountBalance).toString(),ingressLimit:Number((0,a.Y)(e.ingressLimit).toFixed(0)),egressLimit:Number((0,a.Y)(e.egressLimit).toFixed(0)),ddns:{...null==f?void 0:f.ddns,provider:e.dnsProvider,ipv4:e.dnsIpv4,ipv6:e.dnsIpv6,options:h}}),m=await l.patch({payload:p});if(m.error)throw Error(m.error);if(null===(i=n.data)||void 0===i?void 0:i.explorer.enabled){let r=await u.put({payload:{...t.settingsPinned.data,currency:e.pinnedCurrency,threshold:e.pinnedThreshold.div(100).toNumber(),storage:{pinned:e.shouldPinStoragePrice,value:e.storagePricePinned.toNumber()},ingress:{pinned:e.shouldPinIngressPrice,value:e.ingressPricePinned.toNumber()},egress:{pinned:e.shouldPinEgressPrice,value:e.egressPricePinned.toNumber()},maxCollateral:{pinned:e.shouldPinMaxCollateral,value:e.maxCollateralPinned.toNumber()}}});if(r.error)throw Error(r.error)}(null===(d=n.data)||void 0===d?void 0:null===(c=d.lastAnnouncement)||void 0===c?void 0:c.address)!==e.netAddress?(0,o.OPV)({title:"Settings have been saved",body:"Address has changed, make sure to re-announce the host.",options:{duration:2e4}}):(0,o.OPV)({title:"Settings have been saved"}),await r()}catch(e){(0,o.OHV)({title:"Error updating settings",body:e.message}),console.log(e)}},[t,l,u,r,n.data])}({resources:E,revalidateAndResetForm:O}),A=(0,o.WsO)(b),P=(0,i.useMemo)(()=>d.handleSubmit(M,A),[d,M,A]),T=(0,i.useRef)();return{fields:b,settings:t,dynDNSCheck:l,changeCount:_,revalidateAndResetForm:O,form:d,onSubmit:P,setConfigViewMode:j,configViewMode:w,remoteError:C,takeScreenshot:(0,i.useCallback)(async e=>{(0,o.S5N)(T.current,e)},[]),configRef:T,pinningEnabled:S}}();return(0,n.jsx)(b.Provider,{value:r,children:t})}},65717:function(e,t,r){"use strict";r.d(t,{x:function(){return w},G:function(){return b}});var n=r(52322),i=r(14522),o=r(5632),a=r(63694),s=r(2784),l=r(46850),u=r(35138),c=r(60381),d=r(54494);function f(e){let{id:t,status:r,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)({title:"Error starting integrity check",body:e.error}):(0,i.OPV)({title:"Integrity check started",body:(0,n.jsxs)(n.Fragment,{children:["Depending on contract data size this operation can take a while. Check ",(0,n.jsx)(i.EKh,{children:"hostd"})," ",(0,n.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),options:{duration:12e3}})},[t,c,f]),p=["active","pending"].includes(r);return(0,n.jsxs)(i.h_2,{trigger:(0,n.jsx)(i.zxk,{"aria-label":"contract context menu",icon:"hover",size:"none",...l,children:(0,n.jsx)(u.EMN,{})}),contentProps:{align:"start",...o},children:[(0,n.jsx)("div",{className:"px-1.5 py-1",children:(0,n.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,n.jsx)(i.Juw,{children:"Actions"}),(0,n.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,n.jsx)("div",{children:(0,n.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,n.jsx)(i.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},render:e=>{let{data:{id:t,status:r}}=e;return(0,n.jsx)(f,{id:t,status:r})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t,context:r}=e,{id:o,renewedFrom:a,isRenewedFrom:s,renewedTo:l,isRenewedTo:c}=t;return(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,n.jsx)(i.XxW,{size:"12",value:(0,i.I13)(o),type:"contract",siascanUrl:r.siascanUrl}),s&&(0,n.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",children:(0,n.jsx)(u.L6f,{className:"scale-75"})}),(0,n.jsx)(i.XxW,{testId:"renewedFrom",color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:r.siascanUrl})]})}),c&&(0,n.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",children:(0,n.jsx)(u.IRm,{className:"scale-75"})}),(0,n.jsx)(i.XxW,{testId:"renewedTo",color:"subtle",size:"10",value:(0,i.I13)(l),type:"contract",siascanUrl:r.siascanUrl})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,n.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:r,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,n.jsx)("div",{className:"w-[400px]",children:(0,n.jsx)(i.TaT,{currentHeight:r,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:r}}=e;return(0,n.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(r,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:r}}=e;return(0,n.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(r,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:r}}=e;return(0,n.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,c.jr)(r,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,n.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,n.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,n.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=r(6391),m=r.n(p),v=r(16211),g=r(66510),y=r(99634);let x=(0,s.createContext)({}),b=()=>(0,s.useContext)(x);function w(e){let{children:t}=e,r=function(){var e,t;let r=(0,o.useRouter)(),n=Number(r.query.limit||50),u=Number(r.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:x}=(0,i.Uu5)(),{configurableColumns:b,enabledColumns:w,sortableColumns:j,toggleColumnVisibility:E,setColumnsVisible:k,setColumnsHidden:C,toggleSort:S,setSortDirection:O,setSortField:_,sortField:M,sortDirection:A,resetDefaultColumnVisibility:P}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),T=(0,a.GP)({payload:{limit:n,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===M))||void 0===e?void 0:e.value,sortDesc:"desc"===A,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:y.h}}}),N=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;if(t.data)return(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let r=new(m())(e.usage.accountFunding||0),n=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=r.plus(n).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:r,egress:n,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]},[t.data])}({response:T}),R=(0,s.useMemo)(()=>h.filter(e=>w.includes(e.id)),[w]),D=T.isValidating,L=T.error,F=(0,i.c2j)(N,D,L,c),{estimatedBlockHeight:Z,isSynced:V,nodeBlockHeight:z}=(0,v.n)(),I=V?z:Z,{range:B}=(0,s.useMemo)(()=>(0,i.EJC)(I,N||[]),[I,N]),H=(0,i.A7R)(N),U=(0,s.useMemo)(()=>{if(N)return N.map(e=>({...e,onClick:t=>H.onSelect(e.id,t),isSelected:!!H.selection[e.id]}))},[N,H]),W=(0,g.B)();return{dataState:F,offset:u,limit:n,cellContext:(0,s.useMemo)(()=>({contractsTimeRange:B,currentHeight:I,siascanUrl:W,multiSelect:H}),[B,I,W,H]),pageCount:(null==U?void 0:U.length)||0,totalCount:null===(t=T.data)||void 0===t?void 0:t.count,columns:R,datasetPage:U,configurableColumns:b,enabledColumns:w,sortableColumns:j,toggleColumnVisibility:E,setColumnsVisible:k,setColumnsHidden:C,toggleSort:S,setSortDirection:O,setSortField:_,sortField:M,sortDirection:A,resetDefaultColumnVisibility:P,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:x,multiSelect:H}}();return(0,n.jsx)(x.Provider,{value:r,children:t})}},46850:function(e,t,r){"use strict";r.d(t,{Fo:function(){return i},gd:function(){return n},nw:function(){return o}});let n=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},54494:function(e,t,r){"use strict";r.d(t,{Tu:function(){return ek},xQ:function(){return eC},Rh:function(){return eE}});var n=r(52322),i=r(2784),o=r(14522),a=r(63694),s=r(60381),l=r(6391),u=r.n(l),c=r(63955);function d(e,t,r){var n=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(r=r||{}).leading,m=!("trailing"in r)||!!r.trailing,v="maxWait"in r,g=v?Math.max(+r.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,r=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(r,t)},r=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var r=e-o.current;return!o.current||r>=t||r<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var n=Date.now();if(i(n))return y(n);if(f.current){var s=t-(n-o.current);r(e,v?Math.min(s,g-(n-a.current)):s)}},b=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=n,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,r(x,t),p?e(o.current):c.current;if(v)return r(x,t),e(o.current)}return s.current||r(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}function f(e){return"function"==typeof e?function(){return e}:e}var h=r(65304),p=r(7513),m=r(35138);function v(e){let{search:t}=e;return(0,n.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,n.jsx)(m.Qbr,{})}),(0,n.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function g(){var e;return(null===(e=(0,a.ER)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}}).data)||void 0===e?void 0:e.os)==="windows"?"\\":"/"}var y=r(36556),x=r(90821),b=r(45904),w=function(e,t){for(var r=e.length;r--&&(0,b.Z)(t,e[r],0)>-1;);return r},j=r(51075),E=r(16601),k=r(62593),C=function(e,t,r){if((e=(0,E.Z)(e))&&(r||void 0===t))return e.slice(0,(0,k.Z)(e)+1);if(!e||!(t=(0,y.Z)(t)))return e;var n=(0,j.Z)(e),i=w(n,(0,j.Z)(t))+1;return(0,x.Z)(n,0,i).join("")},S=r(39982),O=function(e,t){for(var r=-1,n=e.length;++r-1;);return r},_=function(e,t,r){if((e=(0,E.Z)(e))&&(r||void 0===t))return(0,S.Z)(e);if(!e||!(t=(0,y.Z)(t)))return e;var n=(0,j.Z)(e),i=(0,j.Z)(t),o=O(n,i),a=w(n,i)+1;return(0,x.Z)(n,o,a).join("")};function M(e){let{currentPath:t,childPath:r,separator:n}=e;return"\\"===t&&r.endsWith(":")?r+n:A(t,r,n)}function A(e,t,r){e=e===r?e:C(e,r),t=_(t,r);let n="";return(n=e.length?t.length&&t!==r?e===r?r+t:e+r+t:e:t).endsWith(":")?n+r:n}function P(){return(0,n.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,n.jsx)(m.Qbr,{})}),(0,n.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function T(e){let{path:t,onCreate:r}=e,s=g(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:M({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)({title:"Error creating directory",body:e.error}):(r(u),c(""))},[l,u,r,t,s]);return(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,n.jsx)(m.L37,{})}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function N(e){let{path:t,setPath:r,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=g();return(0,n.jsx)(p.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),r(function(e,t){if(e.endsWith(":\\"))return t;let r="".concat(e.split(t).slice(0,-1).join(t));return""===r?t:r.endsWith(":")?r+t:r}(t,u)),l&&l())},value:"..",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,n.jsx)(m.ROc,{size:16})}),(0,n.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let R={namespace:"volumes/directorySelect",label:"Directory select"};function D(e){var t,r,i,a,s,l,u;let{path:c,dir:d,setPath:f,currentPage:y,beforeSelect:x,afterSelect:b}=e,w=g(),j=(null===(t=d.data)||void 0===t?void 0:t.path)===w,E=(null===(r=d.data)||void 0===r?void 0:r.path)==="\\";return(0,n.jsxs)(p.fu,{currentPage:y,commandPage:R,children:[d.isValidating||!d.data||d.error?null:j?null:(0,n.jsx)(N,{path:d.data.path,setPath:f,currentPage:y,commandPage:R,afterSelect:b,beforeSelect:x}),(0,n.jsxs)(h.mY.Empty,{children:[!d.isValidating&&d.error?(0,n.jsx)(P,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,n.jsx)(v,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,n.jsx)(p.WD,{commandPage:R,currentPage:y,onSelect:()=>{x&&x(),f(M({currentPath:d.data.path,childPath:e,separator:w})),b&&b()},value:e,children:(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,n.jsx)(m.ROc,{size:16})}),(0,n.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!E&&!d.isValidating&&!d.error&&(0,n.jsx)(p.WD,{commandPage:R,currentPage:y,value:"create new directory",children:(0,n.jsx)(T,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var r;return{...t,directories:(null==t?void 0:null===(r=t.directories)||void 0===r?void 0:r.concat(e))||[e]}})}})})]})}function L(e){let{path:t,dir:r,onChange:i}=e;return(0,n.jsx)(h.mY,{label:"Select volume",shouldFilter:!1,children:(0,n.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,n.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,n.jsx)(h.mY.List,{children:(0,n.jsx)(D,{path:t,dir:r,setPath:i,currentPage:R})})})})})}var F=r(82851);function Z(e){let{label:t,newSizeGB:r,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=ir,c=r>a;return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,n.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==r&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,n.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==r&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(r/a*100,"%"):"0%"}})]}),(0,n.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,n.jsx)("div",{}),void 0!==r&&a?(0,n.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((r/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,s.Hz)(a))," available")}):null]})]})}let V=new(u())(10),z={size:void 0,name:"",path:"~",immediatePath:"~"};function I(e){let{trigger:t,open:r,onOpenChange:l}=e,{closeDialog:f}=eE(),h=(0,a.HU)(),p=g(),m=(0,c.cI)({mode:"all",defaultValues:z}),v=m.watch("path"),y=m.watch("immediatePath"),x=m.watch("name"),b=m.watch("size"),w=d(()=>{v!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{v!==y&&m.setValue("immediatePath",v)},[v]);let j=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:A(v,x,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error creating volume",body:t.error}):((0,o.OPV)({title:"New volume created"}),m.reset(z),f())},[m,h,f,x,v,p]),E=(0,a.cM)({disabled:!r,params:{path:""===v?p:v},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{E.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[E.error]),(0,i.useEffect)(()=>{E.data&&E.data.path!==v&&m.setValue("path",E.data.path)},[E.data]);let k=(0,i.useMemo)(()=>b||new(u())(0),[b]),C=(0,i.useMemo)(()=>E.data?(0,s.Uz)(E.data.freeBytes):new(u())(0),[E.data]),S=(0,i.useMemo)(()=>{var e;return(0,s.Uz)((null===(e=E.data)||void 0===e?void 0:e.freeBytes)||new(u())(0))},[E.data]),O=(0,i.useMemo)(()=>{var e,t;return e=V.toNumber(),t=S.toNumber(),{name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:r=>{let n="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return r<=t&&r>=e||n},nospace:()=>t>e||"not enough space in directory"}}}}},[S]),_=(0,o.WsO)(O);return(0,i.useEffect)(()=>{m.register("path",O.path.validation)},[m,O.path.validation]),(0,n.jsx)(o.VqE,{title:"Create Volume",description:"Create a new volume. Select a system directory and specific the size of the volume.",trigger:t,open:r,onOpenChange:e=>{e||m.reset(z),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(j,_),controls:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(o.yEL,{name:"name",form:m,fields:O}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)(o.yEL,{name:"immediatePath",form:m,fields:O})}),(0,n.jsx)(L,{path:v,dir:E,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,n.jsx)(o.jIp,{name:"size",form:m,fields:O}),(0,n.jsx)(Z,{newSizeGB:k.toNumber(),currentSizeGB:0,maxSizeGB:C.toNumber()})]})})}let B=new(u())(10);function H(e){var t,r;let{trigger:l,open:d,onOpenChange:f}=e,{id:h}=eE(),p=g(),m=(0,a.ST)({disabled:!d||!h,params:{id:h}}),v=(0,a.cM)({disabled:!d||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),x={size:m.data?(0,o.bjP)(m.data.totalSectors):new(u())(0)},b=(0,c.cI)({mode:"all",defaultValues:x}),w=b.watch("size"),{closeAndReset:j,handleOpenChange:E}=(0,o.t0Y)({form:b,onOpenChange:f,defaultValues:x,initKey:[m.isLoading]}),k=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(h)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error resizing volume",body:t.error}):((0,o.OPV)({title:"Volume resizing initiated"}),j())},[h,y,j]),C=(0,i.useMemo)(()=>w||new(u())(0),[w]),S=(0,i.useMemo)(()=>m.data?(0,o.bjP)(m.data.totalSectors):new(u())(0),[m.data]),O=(0,i.useMemo)(()=>v.data?(0,s.Uz)(v.data.freeBytes):new(u())(0),[v.data]),_=(0,i.useMemo)(()=>S.plus(O),[S,O]),M=S.lt(C),A=S.minus(C).abs().gte(1),P=(0,i.useMemo)(()=>{var e,t;return e=B.toNumber(),t=_.toNumber(),{size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:r=>{let n="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return(null==r?void 0:r.lte(t))&&(null==r?void 0:r.gte(e))||n}}}}}},[_]),T=(0,o.WsO)(P);return(0,n.jsx)(o.VqE,{title:"Resize Volume",trigger:l,open:d,onOpenChange:E,contentVariants:{className:"max-w-[400px]"},onSubmit:b.handleSubmit(k,T),controls:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)(o.ZqQ,{form:b,children:"Resize"})}),children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,n.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(o.__J,{children:"Volume"}),(0,n.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(r=m.data)||void 0===r?void 0:r.localPath})]}),(0,n.jsx)(o.jIp,{name:"size",form:b,fields:P}),(0,n.jsx)(Z,{currentSizeGB:S.toNumber(),newSizeGB:C.toNumber(),maxSizeGB:_.toNumber(),label:A?(0,n.jsx)(o.xvT,{size:"12",color:"subtle",children:M?"Increase by ".concat((0,s.vW)((0,s.Hz)(C.minus(S)))):"Decrease by ".concat((0,s.vW)((0,s.Hz)(S.minus(C))))}):(0,n.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,s.Hz)(S)))})})]})})}let U={path:"",force:!1};function W(e){var t,r,l;let{trigger:u,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eE(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!d||!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(r=v.data)||void 0===r?void 0:r.usedSectors),x=null===(l=v.data)||void 0===l?void 0:l.localPath,b=(0,c.cI)({mode:"all",defaultValues:U}),w=(0,i.useCallback)(async e=>{var t;let r=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.id,force:e.force}});r.error?(0,o.OHV)({title:"Error deleting volume",body:r.error}):((0,o.OPV)({title:"Volume is now being permanently deleted"}),b.reset(),p())},[b,v.data,m,p]),j=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:x,validation:{required:"required",validate:{equals:e=>e===x||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[x]),E=(0,o.WsO)(j);return(0,n.jsx)(o.VqE,{title:"Delete Volume",trigger:u,open:d,onOpenChange:e=>{e||b.reset(U),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:b.handleSubmit(w,E),children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,n.jsxs)(o.nvN,{size:"14",children:[(0,n.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,n.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,n.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,n.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,n.jsx)(o.yEL,{name:"path",form:b,fields:j}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)(o.QBj,{name:"force",size:"medium",form:b,fields:j}),(0,n.jsx)(o.Yqd,{children:(0,n.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,n.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,n.jsx)(o.ZqQ,{variant:"red",form:b,children:"Delete"})]})})}function $(){let{dialog:e,onOpenChange:t}=eE(),r=(0,a.Os)(),s=(0,a.cj)(),l=(0,a.hV)(),c=(0,i.useMemo)(()=>l.data?new(u())(l.data).times(1200):void 0,[l.data]),d=(0,i.useCallback)(async e=>{let{address:t,hastings:r,includeFee:n}=e,i=await s.post({payload:{address:t,amount:r.toString(),subtractMinerFee:n}});return i.error?{error:i.error}:{transactionId:i.data}},[s]);return(0,n.jsx)(o.weF,{balance:r.data?new(u())(r.data.spendable):void 0,send:d,fee:c,open:"sendSiacoin"===e,onOpenChange:t})}var q=r(88022);function Y(){let{id:e,dialog:t,onOpenChange:r}=eE(),{dataset:a}=(0,q.n)(),s=(0,i.useMemo)(()=>null==a?void 0:a.find(t=>t.id===e),[a,e]);return(0,n.jsx)(o.mPE,{id:e,transaction:s,open:"transactionDetails"===t,onOpenChange:r})}var G=r(32088),K=r(36219),X=r(4300),J=r(5632);let Q={namespace:"wallet",label:"Wallet"};function ee(e){let{currentPage:t,parentPage:r,pushPage:i}=e,{openDialog:s,closeDialog:l}=eE(),u=(0,J.useRouter)(),c=(0,a.Os)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:Q,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:Q,onSelect:()=>{i(Q)},children:Q.label}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{u.push(X._.wallet.view),l()},children:"View wallet transactions"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.address,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var et=r(38617);let er={namespace:"settings",label:"Settings"};function en(e){let{currentPage:t,parentPage:r}=e,{openDialog:i,closeDialog:o}=eE(),{setTheme:a}=(0,et.F)(),{settings:s,setExternalDataSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,K.Hv)();return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:er,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:er,onSelect:()=>{i("settings")},children:"Open settings"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,n.jsx)(p.o4,{currentPage:t,commandPage:er,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:r,label:i}=e;return(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{d(r),o()},children:"Set currency to ".concat(i)},r)})]})}let ei={namespace:"node",label:"Blockchain node"};function eo(e){let{currentPage:t,parentPage:r,pushPage:i}=e,{openDialog:o,closeDialog:a}=eE(),s=(0,J.useRouter)();return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:ei,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:ei,onSelect:()=>{i(ei)},children:ei.label}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:ei,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(X._.node.index),a()},children:"View peers"})]})}var ea=r(29703);let es={namespace:"configuration",label:"Configuration"};function el(e){let{currentPage:t,parentPage:r,pushPage:i}=e,o=(0,J.useRouter)(),{configViewMode:a}=(0,ea.ZR)(),{closeDialog:s}=eE();return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:es,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:es,onSelect:()=>{i(es)},children:es.label}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.index),s()},children:"Open configuration"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.host),s()},children:"Configure host"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.pricing),s()},children:"Configure pricing"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.dns),s()},children:"Configure DNS"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.bandwidth),s()},children:"Configure bandwidth"}),"advanced"===a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.registry),s()},children:"Configure registry"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.accounts),s()},children:"Configure accounts"})]})]})}var eu=r(65717);function ec(e){let{search:t}=e;return(0,n.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,n.jsx)(m.owP,{})}),(0,n.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var ed=r(63328);let ef={namespace:"contracts",label:"Contracts"};function eh(e){let{currentPage:t,parentPage:r,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,J.useRouter)(),{closeDialog:l}=eE();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:r,onSelect:()=>{i(ef)},children:ef.label}),(0,n.jsx)(p.fu,{currentPage:t,commandPage:ef,children:(0,n.jsx)(p.WD,{currentPage:t,commandPage:ef,onSelect:()=>{s.push(X._.contracts.index),l()},children:"View contracts"})}),(0,n.jsx)(ed.F,{parentPage:ef,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ep={namespace:"volumes",label:"Volumes"};function em(e){let{currentPage:t,parentPage:r,pushPage:i}=e,o=(0,J.useRouter)(),{openDialog:a,closeDialog:s}=eE();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:r,onSelect:()=>{i(ep)},children:ep.label}),(0,n.jsxs)(p.fu,{currentPage:t,commandPage:ep,children:[(0,n.jsx)(p.WD,{currentPage:t,commandPage:ep,onSelect:()=>{o.push(X._.volumes.index),s()},children:"View volumes"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:ep,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function ev(e){var t,r,a,s,l,u,c,p,m;let{panel:v}=e,g=(0,J.useRouter)(),{resetFilters:y}=(0,eu.G)(),{closeDialog:x}=eE(),[b,w]=(0,i.useState)(""),[j]=(l=(a=(r=(0,i.useState)(f(b)))[1],s=[r[0],(0,i.useCallback)(function(e){return a(f(e))},[])])[0],u=s[1],c=d((0,i.useCallback)(function(e){return u(e)},[u]),500,t),m=(p=(0,i.useRef)(b)).current,m===b||(c(b),p.current=b),[l,c]),[E,k]=(0,i.useState)([]),C=E[E.length-1],S=0===E.length,O=(0,i.useCallback)(e=>{k(t=>[...t,e])},[k]),_=(0,i.useCallback)(()=>{x()},[x]),M=(0,i.useCallback)(()=>{w("")},[w]),A=(null==C?void 0:C.empty)||ec;return(0,n.jsxs)(h.mY,{label:"Command Menu",loop:!0,className:(0,F.cx)(v&&(0,o.z$)()),onKeyDown:e=>{(E.length>0&&"Escape"===e.key||"Backspace"===e.key&&!b)&&(e.preventDefault(),k(e=>e.slice(0,-1)))},children:[C&&(0,n.jsx)(o.__J,{className:"px-2",children:C.label}),(0,n.jsx)(h.mY.Input,{value:b,onValueChange:w,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==C?void 0:C.prompt)||(S?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,n.jsx)(o.Z0O,{className:"my-2"}),(0,n.jsxs)(h.mY.List,{children:[(0,n.jsx)(h.mY.Empty,{children:(0,n.jsx)(A,{search:b,debouncedSearch:j})}),(0,n.jsx)(en,{currentPage:C,pushPage:O}),(0,n.jsx)(ee,{currentPage:C,pushPage:O}),(0,n.jsx)(em,{currentPage:C,pushPage:O}),(0,n.jsx)(eh,{currentPage:C,pushPage:O,beforeSelect:()=>{_(),y()},afterSelect:()=>{g.pathname.startsWith(X._.contracts.index)||g.push(X._.contracts.index),M()}}),(0,n.jsx)(el,{currentPage:C,pushPage:O}),(0,n.jsx)(eo,{currentPage:C,pushPage:O})]})]})}function eg(e){let{open:t,onOpenChange:r,setOpen:a}=e,{isUnlockedAndAuthedRoute:s}=(0,K.Hv)(),{isConnected:l}=(0,o.Y97)({route:X.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.VqE,{open:t,title:"Command palette",titleVisuallyHidden:!0,onOpenChange:r,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,n.jsx)(ev,{})})})}var ey=r(99634);function ex(e){let{open:t,onOpenChange:r}=e,s=(0,a.Z7)({config:{swr:{refreshInterval:ey.h}}}),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)({title:"Error dismissing alert",body:t.error}):(0,o.OPV)({title:"Alert has been dismissed"})},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let r=await l.post({payload:e});r.error?(0,o.OHV)({title:t?"Error dismissing all ".concat(t," alerts"):"Error dismissing all alerts",body:r.error}):(0,o.OPV)({title:t?"All ".concat(t," alerts have been dismissed"):"All alerts have been dismissed"})},[l,s]);return(0,n.jsx)(o.hcY,{open:t,onOpenChange:e=>{r(e)},alerts:s,dataFieldOrder:eb,dataFields:ew,dismissMany:c,dismissOne:u})}let eb=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ew={error:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,n.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,n.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},ej=(0,i.createContext)({}),eE=()=>(0,i.useContext)(ej);function ek(e){let{children:t}=e,r=function(){let[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(),o=(0,i.useCallback)((e,r)=>{t(e),n(r)},[t,n]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),n(void 0),s(void 0)},[t,n,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:r,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,n.jsx)(ej.Provider,{value:r,children:t})}function eC(){var e;let{dialog:t,openDialog:r,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=eE(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eg,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>r("cmdk")}),(0,n.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,n.jsx)(ex,{open:"alerts"===t,onOpenChange:s}),(0,n.jsx)($,{}),(0,n.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:s}),(0,n.jsx)(Y,{}),(0,n.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:s}),(0,n.jsx)(I,{open:"volumeCreate"===t,onOpenChange:s}),(0,n.jsx)(H,{open:"volumeResize"===t,onOpenChange:s}),(0,n.jsx)(W,{open:"volumeDelete"===t,onOpenChange:s}),(0,n.jsx)(G.Y,{open:"contractsFilterContractId"===t,onOpenChange:s}),(0,n.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},68202:function(e,t,r){"use strict";r.d(t,{C:function(){return j},B:function(){return w}});var n=r(52322),i=r(2784),o=r(14522),a=r(60381);let s={active:{color:o.O9T.amber[600]},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},renewed:{color:o.O9T.blue[600]},finalized:{color:o.O9T.yellow[600]},successful:{color:o.O9T.green[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=r(63694);function u(e,t,r){return{...e,category:t,pattern:r}}function c(e,t,r){return{...e,category:t,label:r}}var d=r(6391),f=r.n(d),h=r(71978),p=r(49435);function m(e,t){for(var r=Math.abs(e).toString();r.length"7"===e.value),b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function j(e){let{children:t}=e,r=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:x.value}),[r,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:x.interval}),b=function(e){let[t,r]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{r(new Date().getTime());let t=(0,a.yt)(1),n=setInterval(()=>{r(new Date().getTime())},Math.min((0,h.uQ)(e),t));return()=>clearInterval(n)},[e]),t}(r),w=(0,i.useMemo)(()=>(0,o.OQF)(e,b),[e,b]),j=(0,i.useCallback)(e=>{let r=h.lv.find(t=>t.value===e);d(r.interval),t(r.value)},[t,d]),E=(0,i.useMemo)(()=>(0,o.kOJ)(r),[r]),k=(0,l.KU)({params:{interval:r,start:function(e,t){(0,v.Z)(1,arguments);var r=(0,p.Z)(e);if(isNaN(r.getTime()))throw RangeError("Invalid time value");var n=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==n&&"basic"!==n)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===n?"-":"";if("time"!==i){var l=m(r.getDate(),2),u=m(r.getMonth()+1,2),c=m(r.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=r.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(r.getHours(),2),x=m(r.getMinutes(),2),b=m(r.getSeconds(),2),w=""===o?"":"T",j=[y,x,b].join("extended"===n?":":"");o="".concat(o).concat(w).concat(j).concat(a)}return o}(new Date(w.start-(0,h.uQ)(r)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,a.XB)(60)}}}),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),r=(0,o.fVJ)(t);return{data:t.map(e=>({storagePotential:Math.max(e.storagePotential,0),ingressPotential:Math.max(e.ingressPotential,0),egressPotential:Math.max(e.egressPotential,0),rpcPotential:Math.max(e.rpcPotential,0),storage:Math.max(e.storage,0),ingress:Math.max(e.ingress,0),egress:Math.max(e.egress,0),rpc:Math.max(e.rpc,0),timestamp:new Date(e.timestamp).getTime()})),stats:r,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],enabledTip:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},formatComponent:function(e){let{value:t}=e;return(0,n.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),formatTimestamp:E,disableAnimations:!0,chartType:"barstack",stackOffset:"diverging"},isLoading:k.isValidating}},[k,E]),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},formatComponent:function(e){let{value:t}=e;return(0,n.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:E,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"area",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},formatComponent:function(e){let{value:t}=e;return(0,n.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:E,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,rejected:e.contracts.rejected,failed:e.contracts.failed,renewed:e.contracts.renewed,finalized:e.contracts.finalized,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["active","rejected","failed","renewed","finalized","successful"],enabledTip:["active","rejected","failed","renewed","finalized","successful"],data:{active:s.active,rejected:s.rejected,failed:s.failed,renewed:s.renewed,finalized:s.finalized,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:E,formatTickY:e=>(0,a.yF)(e),disableAnimations:!0,chartType:"areastack",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,a.B$)(e.storage.totalSectors).times(4).toNumber(),tempSectors:(0,a.B$)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,a.B$)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,a.B$)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","maxSectors"],enabledTip:["contractSectors","physicalSectors","tempSectors","maxSectors"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:E,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]);return{dataTimeSpan:e,setDataTimeSpan:j,timeRange:w,dataInterval:r,setDataInterval:d,operations:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["storageReads","storageWrites"],enabledTip:["storageReads","storageWrites"],data:{storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTickY:e=>(0,a.yF)(e),formatTimestamp:E,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),revenue:C,collateral:S,contracts:_,storage:M,pricing:O,bandwidth:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp.egress,ingress:e.data.rhp.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:E,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E])}}();return(0,n.jsx)(b.Provider,{value:r,children:t})}},71978:function(e,t,r){"use strict";r.d(t,{lv:function(){return i},uQ:function(){return o}});var n=r(60381);let i=[{label:"1D",interval:"15m",value:"1"},{label:"7D",interval:"hourly",value:"7"},{label:"1M",interval:"daily",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"weekly",value:"365"},{label:"ALL",interval:"monthly",value:"all"}];function o(e){return"5m"===e?(0,n.sW)(5):"15m"===e?(0,n.sW)(15):"hourly"===e?(0,n.yt)(1):"daily"===e?(0,n.Nr)(1):"weekly"===e?(0,n.Nr)(7):"monthly"===e?(0,n.Nr)(30):"yearly"===e?(0,n.Nr)(365):0}},88022:function(e,t,r){"use strict";r.d(t,{v:function(){return y},n:function(){return g}});var n=r(52322),i=r(14522),o=r(63694),a=r(2784),s=r(5632),l=r(66510),u=r(99634),c=r(16211),d=r(60381),f=r(35138);let h=[{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{id:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID",type:"transaction",siascanUrl:r.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{txType:t}}=e;return(0,n.jsx)(i.Cts,{size:"small",children:(0,d.pX)(t)})}},{id:"height",label:"height",category:"general",contentClassName:"justify-end",render:e=>{let{data:{height:t,pending:r,maturityHeight:o,isMature:a}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):t?t&&o&&o>t?(0,n.jsx)(i.ua7,{content:a?"The maturity height has been reached.":"The maturity height has not been reached, therefore the output is still locked.",children:(0,n.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(i.xvT,{size:"12",font:"mono",ellipsis:!0,color:a?"green":"red",className:"flex gap-1 items-center",children:[a?(0,n.jsx)(f.VmF,{}):(0,n.jsx)(f.Lur,{}),o.toLocaleString()]})}),(0,n.jsxs)("div",{className:"flex justify-between items-end gap-1",children:[(0,n.jsx)("div",{className:"pl-[8px] pb-[6px]",children:(0,n.jsx)("div",{className:"border-l border-b border-gray-800 dark:border-graydark-800 h-[20px] w-[7px]"})}),(0,n.jsx)(i.xvT,{size:"12",font:"mono",color:"subtle",ellipsis:!0,children:t.toLocaleString()})]})]})}):(0,n.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",contentClassName:"justify-end",render:e=>{let{data:{timestamp:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,d.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amountSc:t,amountSf:r}}=e;return t?(0,n.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!t.isZero()&&(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}),!!r&&(0,n.jsx)(i.Sby,{size:"12",value:r})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"contract ID",siascanUrl:r.siascanUrl}):null}}],p=["transactionId","type","height","timestamp","amount","fee"],m=[],v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,r=function(){let e=(0,s.useRouter)(),t=Number(e.query.limit||50),r=Number(e.query.offset||0),n=(0,o.sG)({params:{limit:t,offset:r},config:{swr:{refreshInterval:u.h}}}),f=(0,o.a0)({config:{swr:{refreshInterval:u.h}}}),{filters:v,setFilter:g,removeFilter:y,removeLastFilter:x,resetFilters:b}=(0,i.Uu5)(),w=(0,c.n)(),j=(0,a.useMemo)(()=>{if(!n.data||!f.data)return null;let e=f.data.map(e=>{let t=(0,d.Jz)(e),r=(0,d.hq)(e);return{id:e.id,timestamp:0,pending:!0,type:e.type,txType:(0,d.uC)(e),isMature:!1,amountSc:t,fee:r}}),t=n.data.map(e=>{let t=(0,d.Jz)(e),r=(0,d.hq)(e),n=(0,d.hR)(e),i=e.maturityHeight<=w.nodeBlockHeight;return{id:e.id,type:e.type,txType:(0,d.uC)(e),timestamp:new Date(e.timestamp).getTime(),maturityHeight:e.maturityHeight,isMature:i,height:e.index.height,pending:!1,amountSc:t,fee:r,contractId:n}});return[...e.reverse(),...t]},[n.data,f.data,w.nodeBlockHeight]),{configurableColumns:E,enabledColumns:k,sortableColumns:C,toggleColumnVisibility:S,setColumnsVisible:O,setColumnsHidden:_,toggleSort:M,setSortDirection:A,setSortField:P,sortField:T,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("hostd/v0/events",{columns:h,columnsDefaultVisible:p,sortOptions:m,defaultSortField:"id"}),D=(0,a.useMemo)(()=>h.filter(e=>e.fixed||k.includes(e.id)),[k]),L=n.isValidating||f.isValidating,F=n.error||f.error,Z=(0,i.c2j)(j,L,F,v),V=(0,l.B)(),z=(0,a.useMemo)(()=>({siascanUrl:V}),[V]),I=(0,a.useMemo)(()=>new Date(new Date().getTime()-(0,d.Nr)(30)).toISOString(),[]),B=(0,o.KU)({params:{interval:"daily",start:I}});return{balances:(0,a.useMemo)(()=>(B.data||[]).map(e=>({sc:Number(e.wallet.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[B.data]),metrics:B,dataset:j,error:F,dataState:Z,offset:r,limit:t,pageCount:(null==j?void 0:j.length)||0,defaultPageSize:50,cellContext:z,configurableColumns:E,enabledColumns:k,sortableColumns:C,toggleColumnVisibility:S,setColumnsVisible:O,setColumnsHidden:_,toggleSort:M,setSortDirection:A,setSortField:P,sortField:T,sortDirection:N,resetDefaultColumnVisibility:R,filters:v,setFilter:g,removeFilter:y,removeLastFilter:x,resetFilters:b,filteredTableColumns:D,columns:h}}();return(0,n.jsx)(v.Provider,{value:r,children:t})}},18993:function(e,t,r){"use strict";r.d(t,{Y:function(){return b},F:function(){return x}});var n=r(52322),i=r(14522),o=r(63694),a=r(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=r(35138),u=r(60381),c=r(54494);function d(e){let{id:t,contentProps:r,buttonProps:o}=e;return(0,n.jsx)(i.h_2,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover","aria-label":"volume context menu",...o,children:(0,n.jsx)(l.EMN,{})}),contentProps:{align:"start",...r},children:(0,n.jsx)(f,{id:t})})}function f(e){var t,r;let{id:a}=e,{openDialog:s}=(0,c.Rh)(),u=(0,o.Rz)(),d=(0,o.ST)({params:{id:a}}),f=(0,o._3)(),p=d.data&&"ready"==d.data.status,m=d.data&&!["ready","unavailable"].includes(d.data.status);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"px-1.5 py-1",children:(0,n.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",d.data?(0,i.$Gg)(null===(t=d.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,n.jsx)(i.Juw,{children:"Actions"}),m?(0,n.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=d.data)||void 0===e?void 0:e.status;(await f.delete({params:{id:Number(a)}})).error?(0,i.OHV)({title:"Error canceling volume ".concat(h(t))}):(0,i.OPV)({title:"Canceled volume ".concat(h(t))})},children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.PcV,{})}),"Cancel ".concat(h(null===(r=d.data)||void 0===r?void 0:r.status))]}):null,d.data?(0,n.jsxs)(i.Xiv,{disabled:!p,onSelect:async()=>{let e=!d.data.readOnly;(await u.put({params:{id:Number(a)},payload:{readOnly:e}})).error?(0,i.OHV)({title:e?"Error setting volume to read-only":"Error setting volume to read/write"}):(0,i.OPV)({title:e?"Volume set to read-only":"Volume set to read/write"})},children:[(0,n.jsx)(i.KpP,{children:d.data.readOnly?(0,n.jsx)(l.dr6,{}):(0,n.jsx)(l.Lur,{})}),d.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,n.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>s("volumeResize",a),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.BB5,{})}),"Resize"]}),(0,n.jsxs)(i.Xiv,{disabled:m,onSelect:()=>s("volumeDelete",a),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.Jrl,{})}),"Delete"]})]})}function h(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let p=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,n.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:r}=e;return(0,n.jsx)(i.ua7,{side:"right",content:r.available?"available":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.xvT,{size:"12",children:"unavailable"}),(0,n.jsx)("div",{className:"flex flex-col",children:null===(t=r.errors)||void 0===t?void 0:t.map(e=>(0,n.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[r.available&&"ready"===r.status&&(0,n.jsx)(i.xvT,{color:"green",children:(0,n.jsx)(l.DI$,{})}),r.available&&"ready"!==r.status&&(0,n.jsx)(i.xvT,{color:"amber",children:(0,n.jsx)(l.dsj,{})}),!r.available&&(0,n.jsx)(i.xvT,{color:"amber",children:(0,n.jsx)(l.SmH,{})}),(0,n.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:r.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,n.jsx)(i.ua7,{content:"Read-only",children:(0,n.jsx)(i.xvT,{children:(0,n.jsx)(l.Lur,{})})}):(0,n.jsx)(i.ua7,{content:"Read and write enabled",children:(0,n.jsx)(i.xvT,{color:"subtle",children:(0,n.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,n.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,n.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var m=r(6391),v=r.n(m),g=r(99634);let y=(0,a.createContext)({}),x=()=>(0,a.useContext)(y);function b(e){let{children:t}=e,r=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:r,setColumnsVisible:n,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:h,sortDirection:m,resetDefaultColumnVisibility:y}=(0,i.oy6)("hostd/v0/volumes",{columns:p,columnsDefaultVisible:s}),x=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,u.XB)(5):g.h}}}),b=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.id),localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(v())(e.usedSectors).times((0,u.B$)(4)).toNumber(),totalBytes:new(v())(e.totalSectors).times((0,u.B$)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(v())(e.failedReads),failedWrites:new(v())(e.failedWrites),successfulReads:new(v())(e.successfulReads),successfulWrites:new(v())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:x}),w=(0,a.useMemo)(()=>p.filter(e=>t.includes(e.id)),[t]),j=x.isValidating,E=x.error;return{dataState:(0,i.c2j)(b,j,E,[]),totalCount:(null==b?void 0:b.length)||0,isLoading:x.isValidating,columns:w,dataset:b,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:r,setColumnsVisible:n,setColumnsHidden:l,toggleSort:c,setSortDirection:d,setSortField:f,sortField:h,sortDirection:m,resetDefaultColumnVisibility:y}}();return(0,n.jsx)(y.Provider,{value:r,children:t})}},32088:function(e,t,r){"use strict";r.d(t,{O:function(){return u},Y:function(){return f}});var n=r(52322),i=r(14522),o=r(65717),a=r(92683),s=r(24511),l=r(54494);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:r,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,n.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:r,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,n.jsx)("div",{className:"flex flex-col gap-4",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,n.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},66510:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(14522),i=r(63694);function o(){var e;return(null===(e=(0,i.gM)().data)||void 0===e?void 0:e.name)==="zen"?n.nNd.explore.testnetZen:n.nNd.explore.mainnet}},16211:function(e,t,r){"use strict";r.d(t,{n:function(){return a}});var n=r(36219),i=r(63694),o=r(60381);function a(){var e,t;let{isUnlockedAndAuthedRoute:r}=(0,n.Hv)(),o=(0,i.ek)({config:{swr:{refreshInterval:e=>s(e)?6e4:1e4}}}),a=s(o.data),l=(0,i.nH)(),u=o.data?null===(e=o.data)||void 0===e?void 0:e.index.height:0,c=(0,i.Gp)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.height)>=u?6e4:1e4}}}),d=r&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=r&&u&&c.data?Number((100*Math.min(c.data.height/l,1)).toFixed(1)):0;return{isSynced:a,isWalletSynced:a&&(null===(t=c.data)||void 0===t?void 0:t.height)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}function s(e){return null!=e&&!!e.prevTimestamps[0]&&new Date(null==e?void 0:e.prevTimestamps[0]).getTime()>Date.now()-(0,o.yt)(12)}},83906:function(e,t,r){"use strict";r.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var n=r(60381),i=r(6391),o=r.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,n.xf)(1)).times((0,n.S5)(1))}let l="/million";function u(e){return new(o())(e).times(1e6)}let c="/million";function d(e){return new(o())(e).times(1e6)}let f="/TB/month";function h(e){return new(o())(e).times((0,n.xf)(1)).times((0,n.S5)(1))}let p="/TB";function m(e){return new(o())(e).times((0,n.xf)(1))}let v="/TB";function g(e){return new(o())(e).times((0,n.xf)(1))}},65047:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return x}});var n=r(52322);r(21962);var i=r(14522),o=r(65717),a=r(68202),s=r(54494),l=r(18993),u=r(29703),c=r(88022);function d(e){let{children:t}=e;return(0,n.jsx)(s.Tu,{children:(0,n.jsx)(u.iV,{children:(0,n.jsx)(c.v,{children:(0,n.jsx)(l.Y,{children:(0,n.jsx)(o.x,{children:(0,n.jsxs)(a.C,{children:[(0,n.jsx)(s.xQ,{}),t]})})})})})})}var f=r(4300),h=r(29773),p=r.n(h),m=r(17282),v=r.n(m);let g=(0,r(82851).cx)(p().variable,v().variable);var y=r(79338);function x(e){return(0,n.jsx)(i.PD$,{className:g,fallback:e.pageProps.fallback,daemonExplorerInfoRoute:y.ay,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,n.jsx)(d,{children:(0,n.jsx)(b,{...e})})})}function b(e){let{Component:t,pageProps:r}=e,i=t.Layout,o=t.useLayoutProps(),{fallback:a,...s}=r;return(0,n.jsx)(i,{...o,children:(0,n.jsx)(t,{...s})})}},14522:function(e,t,r){"use strict";let n,i,o,a,s,l,u,c,d,f,h;r.d(t,{hcY:function(){return Di},tU3:function(){return De},$9_:function(){return D_},zXq:function(){return DO},juT:function(){return RD},Cts:function(){return uA},Z58:function(){return D7},WVB:function(){return vp},zxk:function(){return ua},b0u:function(){return A_},XZJ:function(){return u4},EKh:function(){return uN},npL:function(){return LU},vRO:function(){return LI},CN9:function(){return Lz},ckm:function(){return LP},QHy:function(){return Lk},TaT:function(){return Lc},eQh:function(){return uD},HfT:function(){return LO},ncR:function(){return TP},A06:function(){return Lr},Vy9:function(){return Ln},VqE:function(){return f_},h_2:function(){return vx},Xiv:function(){return vb},Juw:function(){return vw},KpP:function(){return vj},jIp:function(){return LT},QBj:function(){return DM},yEL:function(){return Dy},cB7:function(){return TF},ZqQ:function(){return TL},IKw:function(){return TH},WN2:function(){return Fs},X6q:function(){return vS},Yqd:function(){return yF},__J:function(){return vD},rUS:function(){return vZ},xgg:function(){return AS},TRl:function(){return vV},kFS:function(){return vm},FzK:function(){return Lw},Clw:function(){return vh},hv1:function(){return Fi},PD$:function(){return LK},Wxm:function(){return yI},uDJ:function(){return RO},wFK:function(){return R_},s_4:function(){return nr},M9k:function(){return Lj},VXA:function(){return LE},nvN:function(){return ne},u5Q:function(){return D9},j4H:function(){return yZ},J2e:function(){return gu},kod:function(){return gM},xrM:function(){return fC},PhF:function(){return yz},Z0O:function(){return vl},DLL:function(){return DJ},KJW:function(){return RZ},rsf:function(){return xr},D_D:function(){return DI},iA_:function(){return RS},t6k:function(){return L_},xvT:function(){return r9},nvn:function(){return yo},ua7:function(){return ui},mPE:function(){return DB},XxW:function(){return P6},m2c:function(){return Tn},ho9:function(){return Tr},Sby:function(){return P7},QUh:function(){return D0},weF:function(){return DF},YNn:function(){return D$},DmW:function(){return Dq},O9T:function(){return EE},fVJ:function(){return D5},vQq:function(){return P1},Y_Z:function(){return D1},EJC:function(){return Fl},kOJ:function(){return D3},OQF:function(){return D2},eKZ:function(){return F3},Vkc:function(){return vc},S5N:function(){return F4},z$:function(){return nt},x9T:function(){return Fo},bjP:function(){return Fa},f5n:function(){return Dg},I13:function(){return P3},cEb:function(){return yi},OHV:function(){return PJ},OPV:function(){return PX},$Gg:function(){return P4},Y97:function(){return R9},c2j:function(){return Dt},t0Y:function(){return DZ},mYE:function(){return L$},u$d:function(){return Lq},Z4p:function(){return LW},A7R:function(){return Fr},WsO:function(){return Dv},Uu5:function(){return L8},oy6:function(){return L6},nNd:function(){return DY}});var p,m,v,g,y,x,b,w,j,E,k,C,S,O,_,M,A,P,T,N,R,D,L,F,Z,V,z,I,B,H,U,W,$,q,Y,G,K,X,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef={};r.r(ef),r.d(ef,{useDropzone:function(){return ws}});var eh=r(52322),ep=r(2784),em=r.t(ep,2);function ev(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function eg(...e){return ep.useCallback(ev(...e),e)}var ey=ep.forwardRef((e,t)=>{let{children:r,...n}=e,i=ep.Children.toArray(r),o=i.find(ew);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:ep.Children.count(e)>1?ep.Children.only(null):ep.isValidElement(e)?e.props.children:null);return(0,eh.jsx)(ex,{...n,ref:t,children:ep.isValidElement(e)?ep.cloneElement(e,void 0,r):null})}return(0,eh.jsx)(ex,{...n,ref:t,children:r})});ey.displayName="Slot";var ex=ep.forwardRef((e,t)=>{let{children:r,...n}=e;if(ep.isValidElement(r)){let e,i;let o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return ep.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?ev(t,o):o})}return ep.Children.count(r)>1?ep.Children.only(null):null});ex.displayName="SlotClone";var eb=({children:e})=>(0,eh.jsx)(eh.Fragment,{children:e});function ew(e){return ep.isValidElement(e)&&e.type===eb}function ej(e){let t=ep.useRef(e);return ep.useEffect(()=>{t.current=e}),ep.useMemo(()=>(...e)=>t.current?.(...e),[])}function eE({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=ep.useState(e),[n]=r,i=ep.useRef(n),o=ej(t);return ep.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=ej(r);return[a,ep.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s])]}var ek=r(28316),eC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=ep.forwardRef((e,r)=>{let{asChild:n,...i}=e,o=n?ey:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eh.jsx)(o,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eS(e){let t=ep.useRef(e);return ep.useEffect(()=>{t.current=e}),ep.useMemo(()=>(...e)=>t.current?.(...e),[])}var eO=globalThis?.document?ep.useLayoutEffect:()=>{};function e_(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}var eM=ep.forwardRef((e,t)=>{let{children:r,...n}=e,i=ep.Children.toArray(r),o=i.find(eT);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:ep.Children.count(e)>1?ep.Children.only(null):ep.isValidElement(e)?e.props.children:null);return(0,eh.jsx)(eA,{...n,ref:t,children:ep.isValidElement(e)?ep.cloneElement(e,void 0,r):null})}return(0,eh.jsx)(eA,{...n,ref:t,children:r})});eM.displayName="Slot";var eA=ep.forwardRef((e,t)=>{let{children:r,...n}=e;if(ep.isValidElement(r)){let e,i;let o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return ep.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?e_(t,o):o})}return ep.Children.count(r)>1?ep.Children.only(null):null});eA.displayName="SlotClone";var eP=({children:e})=>(0,eh.jsx)(eh.Fragment,{children:e});function eT(e){return ep.isValidElement(e)&&e.type===eP}var eN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=ep.forwardRef((e,r)=>{let{asChild:n,...i}=e,o=n?eM:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eh.jsx)(o,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),eR=globalThis?.document?ep.useLayoutEffect:()=>{},eD=e=>{let t,r;let{present:n,children:i}=e,o=function(e){var t,r;let[n,i]=ep.useState(),o=ep.useRef({}),a=ep.useRef(e),s=ep.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},ep.useReducer((e,t)=>r[e][t]??e,t));return ep.useEffect(()=>{let e=eL(o.current);s.current="mounted"===l?e:"none"},[l]),eR(()=>{let t=o.current,r=a.current;if(r!==e){let n=s.current,i=eL(t);e?u("MOUNT"):"none"===i||t?.display==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),eR(()=>{if(n){let e;let t=n.ownerDocument.defaultView??window,r=r=>{let i=eL(o.current).includes(r.animationName);if(r.target===n&&i&&(u("ANIMATION_END"),!a.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},i=e=>{e.target===n&&(s.current=eL(o.current))};return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ep.useCallback(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(n),a="function"==typeof i?i({present:o.isPresent}):ep.Children.only(i),s=function(...e){return ep.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}(o.ref,(t=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.ref:(t=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.props.ref:a.props.ref||a.ref);return"function"==typeof i||o.isPresent?ep.cloneElement(a,{ref:s}):null};function eL(e){return e?.animationName||"none"}eD.displayName="Presence";var eF=globalThis?.document?ep.useLayoutEffect:()=>{},eZ=em["useId".toString()]||(()=>void 0),eV=0;function ez(e){let[t,r]=ep.useState(eZ());return eF(()=>{e||r(e=>e??String(eV++))},[e]),e||(t?`radix-${t}`:"")}var eI="Collapsible",[eB,eH]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ep.createContext(e));return function(r){let n=r?.[e]||t;return ep.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=ep.createContext(n),o=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,s=r?.[e]?.[o]||i,l=ep.useMemo(()=>a,Object.values(a));return(0,eh.jsx)(s.Provider,{value:l,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let s=a?.[e]?.[o]||i,l=ep.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return ep.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(eI),[eU,eW]=eB(eI),e$=ep.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=function({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=ep.useState(e),[n]=r,i=ep.useRef(n),o=eS(t);return ep.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=eS(r);return[a,ep.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s])]}({prop:n,defaultProp:i,onChange:a});return(0,eh.jsx)(eU,{scope:r,disabled:o,contentId:ez(),open:l,onOpenToggle:ep.useCallback(()=>u(e=>!e),[u]),children:(0,eh.jsx)(eN.div,{"data-state":eJ(l),"data-disabled":o?"":void 0,...s,ref:t})})});e$.displayName=eI;var eq="CollapsibleTrigger",eY=ep.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=eW(eq,r);return(0,eh.jsx)(eN.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":eJ(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onClick,i.onOpenToggle)})});eY.displayName=eq;var eG="CollapsibleContent",eK=ep.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=eW(eG,e.__scopeCollapsible);return(0,eh.jsx)(eD,{present:r||i.open,children:({present:e})=>(0,eh.jsx)(eX,{...n,ref:t,present:e})})});eK.displayName=eG;var eX=ep.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...o}=e,a=eW(eG,r),[s,l]=ep.useState(n),u=ep.useRef(null),c=function(...e){return ep.useCallback(e_(...e),e)}(t,u),d=ep.useRef(0),f=d.current,h=ep.useRef(0),p=h.current,m=a.open||s,v=ep.useRef(m),g=ep.useRef();return ep.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),eO(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationName=g.current.animationName),l(n)}},[a.open,n]),(0,eh.jsx)(eN.div,{"data-state":eJ(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...o,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:m&&i})});function eJ(e){return e?"open":"closed"}var eQ=ep.createContext(void 0),e0="Accordion",e1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[e2,e4,e3]=function(e){let t=e+"CollectionProvider",[r,n]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ep.createContext(e));return function(r){let n=r?.[e]||t;return ep.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=ep.createContext(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=r?.[e][o]||i,l=ep.useMemo(()=>a,Object.values(a));return(0,eh.jsx)(s.Provider,{value:l,children:n})}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=a?.[e][o]||i,l=ep.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return ep.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:r}=e,n=ep.useRef(null),o=ep.useRef(new Map).current;return(0,eh.jsx)(i,{scope:t,itemMap:o,collectionRef:n,children:r})};a.displayName=t;let s=e+"CollectionSlot",l=ep.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=eg(t,o(s,r).collectionRef);return(0,eh.jsx)(ey,{ref:i,children:n})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=ep.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=ep.useRef(null),s=eg(t,a),l=o(u,r);return ep.useEffect(()=>(l.itemMap.set(a,{ref:a,...i}),()=>void l.itemMap.delete(a))),(0,eh.jsx)(ey,{[c]:"",ref:s,children:n})});return d.displayName=u,[{Provider:a,Slot:l,ItemSlot:d},function(t){let r=o(e+"CollectionConsumer",t);return ep.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(e0),[e5,e6]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ep.createContext(e));return function(r){let n=r?.[e]||t;return ep.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=ep.createContext(n),o=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,s=r?.[e]?.[o]||i,l=ep.useMemo(()=>a,Object.values(a));return(0,eh.jsx)(s.Provider,{value:l,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let s=a?.[e]?.[o]||i,l=ep.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return ep.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(e0,[e3,eH]),e8=eH();ep.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,eh.jsx)(e2.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,eh.jsx)(tn,{...n,ref:t}):(0,eh.jsx)(tr,{...n,ref:t})})}).displayName=e0;var[e7,e9]=e5(e0),[te,tt]=e5(e0,{collapsible:!1}),tr=ep.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=eE({prop:r,defaultProp:n,onChange:i});return(0,eh.jsx)(e7,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:ep.useCallback(()=>o&&l(""),[o,l]),children:(0,eh.jsx)(te,{scope:e.__scopeAccordion,collapsible:o,children:(0,eh.jsx)(ta,{...a,ref:t})})})}),tn=ep.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...o}=e,[a=[],s]=eE({prop:r,defaultProp:n,onChange:i}),l=ep.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=ep.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,eh.jsx)(e7,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:(0,eh.jsx)(te,{scope:e.__scopeAccordion,collapsible:!0,children:(0,eh.jsx)(ta,{...o,ref:t})})})}),[ti,to]=e5(e0),ta=ep.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,dir:i,orientation:o="vertical",...a}=e,s=eg(ep.useRef(null),t),l=e4(r),u="ltr"===function(e){let t=ep.useContext(eQ);return e||t||"ltr"}(i),c=function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onKeyDown,e=>{if(!e1.includes(e.key))return;let t=e.target,r=l().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let a=n,s=i-1,c=()=>{(a=n+1)>s&&(a=0)},d=()=>{(a=n-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===o&&(u?c():d());break;case"ArrowDown":"vertical"===o&&c();break;case"ArrowLeft":"horizontal"===o&&(u?d():c());break;case"ArrowUp":"vertical"===o&&d()}let f=a%i;r[f].ref.current?.focus()});return(0,eh.jsx)(ti,{scope:r,disabled:n,direction:i,orientation:o,children:(0,eh.jsx)(e2.Slot,{scope:r,children:(0,eh.jsx)(eC.div,{...a,"data-orientation":o,ref:s,onKeyDown:n?void 0:c})})})}),ts="AccordionItem",[tl,tu]=e5(ts);ep.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=to(ts,r),a=e9(ts,r),s=e8(r),l=ez(),u=n&&a.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,eh.jsx)(tl,{scope:r,open:u,disabled:c,triggerId:l,children:(0,eh.jsx)(e$,{"data-orientation":o.orientation,"data-state":th(u),...s,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})}).displayName=ts;var tc="AccordionHeader";ep.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=to(e0,r),o=tu(tc,r);return(0,eh.jsx)(eC.h3,{"data-orientation":i.orientation,"data-state":th(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})}).displayName=tc;var td="AccordionTrigger";ep.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=to(e0,r),o=tu(td,r),a=tt(td,r),s=e8(r);return(0,eh.jsx)(e2.ItemSlot,{scope:r,children:(0,eh.jsx)(eY,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})}).displayName=td;var tf="AccordionContent";function th(e){return e?"open":"closed"}ep.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=to(e0,r),o=tu(tf,r),a=e8(r);return(0,eh.jsx)(eK,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}).displayName=tf;var tp=r(82851),tm=r(7896),tv=r(41816),tg=r(26215),ty=r(34540),tx=r(72130),tb=r(86029);let tw="dismissableLayer.update",tj=(0,ep.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tE=(0,ep.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,ep.useContext)(tj),[d,f]=(0,ep.useState)(null),[,h]=(0,ep.useState)({}),p=(0,tg.e)(t,e=>f(e)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=d?m.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,b=y>=g,w=function(e){let t=(0,tb.W)(e),r=(0,ep.useRef)(!1),n=(0,ep.useRef)(()=>{});return(0,ep.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){tC("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));!b||r||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),j=function(e){let t=(0,tb.W)(e),r=(0,ep.useRef)(!1);return(0,ep.useEffect)(()=>{let e=e=>{e.target&&!r.current&&tC("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...c.branches].some(e=>e.contains(t))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=(0,tb.W)(e);(0,ep.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{y!==c.layers.size-1||(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,ep.useEffect)(()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),tk(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[d,r,c]),(0,ep.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),tk())},[d,c]),(0,ep.useEffect)(()=>{let e=()=>h({});return document.addEventListener(tw,e),()=>document.removeEventListener(tw,e)},[]),(0,ep.createElement)(tx.WV.div,(0,tm.Z)({},u,{ref:p,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:(0,tv.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,tv.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,tv.M)(e.onPointerDownCapture,w.onPointerDownCapture)}))});function tk(){let e=new CustomEvent(tw);document.dispatchEvent(e)}function tC(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,tx.jH)(i,o):i.dispatchEvent(o)}var tS=r(64680);let tO=em["useId".toString()]||(()=>void 0),t_=0;function tM(e){return e.split("-")[0]}function tA(e){return e.split("-")[1]}function tP(e){return["top","bottom"].includes(tM(e))?"x":"y"}function tT(e){return"y"===e?"height":"width"}function tN(e,t,r){let n,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=tP(t),u=tT(l),c=i[u]/2-o[u]/2,d="x"===l;switch(tM(t)){case"top":n={x:a,y:i.y-o.height};break;case"bottom":n={x:a,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:s};break;case"left":n={x:i.x-o.width,y:s};break;default:n={x:i.x,y:i.y}}switch(tA(t)){case"start":n[l]-=c*(r&&d?-1:1);break;case"end":n[l]+=c*(r&&d?-1:1)}return n}let tR=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=tN(l,n,s),d=n,f={},h=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==r)return{};let u=tD(n),c={x:i,y:o},d=tP(a),f=tA(a),h=tT(d),p=await l.getDimensions(r),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(r)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],j=b-p[h]-u[v],E=b/2-p[h]/2+(g/2-y/2),k=tV(w,tZ(E,j)),C=("start"===f?u[m]:u[v])>0&&E!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(C?EtI[e])}let tH={start:"end",end:"start"};function tU(e){return e.replace(/start|end/g,e=>tH[e])}let tW=["top","right","bottom","left"];function t$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tq(e){return tW.some(t=>e[t]>=0)}tW.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let tY=function(e){let{strategy:t="referenceHidden",...r}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:n}=e;switch(t){case"referenceHidden":{let t=t$(await tF(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tq(t)}}}case"escaped":{let t=t$(await tF(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:tq(t)}}}default:return{}}}}};function tG(e){return"x"===e?"y":"x"}function tK(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tX(e){if(null==e)return window;if(!tK(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tJ(e){return tX(e).getComputedStyle(e)}function tQ(e){return tK(e)?"":e?(e.nodeName||"").toLowerCase():""}function t0(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function t1(e){return e instanceof tX(e).HTMLElement}function t2(e){return e instanceof tX(e).Element}function t4(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tX(e).ShadowRoot||e instanceof ShadowRoot)}function t3(e){let{overflow:t,overflowX:r,overflowY:n}=tJ(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function t5(e){let t=/firefox/i.test(t0()),r=tJ(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function t6(){return!/^((?!chrome|android).)*safari/i.test(t0())}let t8=Math.min,t7=Math.max,t9=Math.round;function re(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&t1(e)&&(l=e.offsetWidth>0&&t9(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&t9(s.height)/e.offsetHeight||1);let c=t2(e)?tX(e):window,d=!t6()&&r,f=(s.left+(d&&null!=(n=null==(i=c.visualViewport)?void 0:i.offsetLeft)?n:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function rt(e){return((e instanceof tX(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function rr(e){return t2(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rn(e){return re(rt(e)).left+rr(e).scrollLeft}function ri(e){return"html"===tQ(e)?e:e.assignedSlot||e.parentNode||(t4(e)?e.host:null)||rt(e)}function ro(e){return t1(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ra(e){let t=tX(e),r=ro(e);for(;r&&["table","td","th"].includes(tQ(r))&&"static"===getComputedStyle(r).position;)r=ro(r);return r&&("html"===tQ(r)||"body"===tQ(r)&&"static"===getComputedStyle(r).position&&!t5(r))?t:r||function(e){let t=ri(e);for(t4(t)&&(t=t.host);t1(t)&&!["html","body"].includes(tQ(t));){if(t5(t))return t;t=t.parentNode}return null}(e)||t}function rs(e){if(t1(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=re(e);return{width:t.width,height:t.height}}function rl(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=ri(t);return["html","body","#document"].includes(tQ(r))?t.ownerDocument.body:t1(r)&&t3(r)?r:e(r)}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=tX(n),a=i?[o].concat(o.visualViewport||[],t3(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(rl(a))}function ru(e,t,r){return"viewport"===t?tL(function(e,t){let r=tX(e),n=rt(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=t6();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):t2(t)?function(e,t){let r=re(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):tL(function(e){var t;let r=rt(e),n=rr(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=t7(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=t7(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+rn(e),l=-n.scrollTop;return"rtl"===tJ(i||r).direction&&(s+=t7(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(rt(e)))}let rc={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?function(e){let t=rl(e),r=["absolute","fixed"].includes(tJ(e).position)&&t1(e)?ra(e):e;return t2(r)?t.filter(e=>t2(e)&&function(e,t){let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&t4(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==tQ(e)):[]}(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=ru(t,r,i);return e.top=t7(n.top,e.top),e.right=t8(n.right,e.right),e.bottom=t8(n.bottom,e.bottom),e.left=t7(n.left,e.left),e},ru(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e,i=t1(r),o=rt(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==tQ(r)||t3(o))&&(a=rr(r)),t1(r))){let e=re(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:t2,getDimensions:rs,getOffsetParent:ra,getDocumentElement:rt,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:function(e,t,r){let n=t1(t),i=rt(t),o=re(e,n&&function(e){let t=re(e);return t9(t.width)!==e.offsetWidth||t9(t.height)!==e.offsetHeight}(t),"fixed"===r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==tQ(t)||t3(i))&&(a=rr(t)),t1(t)){let e=re(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=rn(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,ra(r),n),floating:{...rs(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tJ(e).direction};function rd(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...t2(e)?rl(e):[],...rl(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let d,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),t2(e)&&!s&&f.observe(e),f.observe(t)}let h=s?re(e):null;return s&&function t(){let n=re(e);h&&(n.x!==h.x||n.y!==h.y||n.width!==h.width||n.height!==h.height)&&r(),h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let rf=(e,t,r)=>tR(e,t,{platform:rc,...r});var rh="undefined"!=typeof document?ep.useLayoutEffect:ep.useEffect;let rp=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return tz({element:t.current,padding:r}).fn(e)}else if(t)return tz({element:t,padding:r}).fn(e);return{}}}},rm=(0,ep.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,ep.createElement)(tx.WV.svg,(0,tm.Z)({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,ep.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),rv="Popper",[rg,ry]=(0,ty.b)(rv),[rx,rb]=rg(rv),rw=(0,ep.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=rb("PopperAnchor",r),a=(0,ep.useRef)(null),s=(0,tg.e)(t,a);return(0,ep.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,ep.createElement)(tx.WV.div,(0,tm.Z)({},i,{ref:s}))}),rj="PopperContent",[rE,rk]=rg(rj),[rC,rS]=rg(rj,{hasParent:!1,positionUpdateFns:new Set}),rO=(0,ep.forwardRef)((e,t)=>{var r,n,i,o,a,s,l,u,c,d,f,h;let{__scopePopper:p,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:x=0,collisionBoundary:b=[],collisionPadding:w=0,sticky:j="partial",hideWhenDetached:E=!1,avoidCollisions:k=!0,...C}=e,S=rb(rj,p),[O,_]=(0,ep.useState)(null),M=(0,tg.e)(t,e=>_(e)),[A,P]=(0,ep.useState)(null),T=function(e){let[t,r]=(0,ep.useState)(void 0);return(0,tS.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(A),N=null!==(r=null==T?void 0:T.width)&&void 0!==r?r:0,R=null!==(n=null==T?void 0:T.height)&&void 0!==n?n:0,D="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},L=Array.isArray(b)?b:[b],F=L.length>0,Z={padding:D,boundary:L.filter(rA),altBoundary:F},{reference:V,floating:z,strategy:I,x:B,y:H,placement:U,middlewareData:W,update:$}=function(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=ep.useRef(null),a=ep.useRef(null),s=function(e){let t=ep.useRef(e);return rh(()=>{t.current=e}),t}(i),l=ep.useRef(null),[u,c]=ep.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[d,f]=ep.useState(t);!function e(t,r){let n,i,o;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!t.$$typeof)&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=ep.useCallback(()=>{o.current&&a.current&&rf(o.current,a.current,{middleware:d,placement:r,strategy:n}).then(e=>{p.current&&ek.flushSync(()=>{c(e)})})},[d,r,n]);rh(()=>{p.current&&h()},[h]);let p=ep.useRef(!1);rh(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=ep.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=ep.useCallback(e=>{o.current=e,m()},[m]),g=ep.useCallback(e=>{a.current=e,m()},[m]),y=ep.useMemo(()=>({reference:o,floating:a}),[]);return ep.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:rd,middleware:[{name:"offset",options:c={mainAxis:v+R,alignmentAxis:y},async fn(e){let{x:t,y:r}=e,n=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=tM(r),s=tA(r),l="x"===tP(r),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(e,c);return{x:t+n.x,y:r+n.y,data:n}}},k?{name:"shift",options:f={mainAxis:!0,crossAxis:!1,limiter:"partial"===j?(void 0===d&&(d={}),{options:d,fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=d,u={x:t,y:r},c=tP(n),f=tG(c),h=u[c],p=u[f],m="function"==typeof a?a({...i,placement:n}):a,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===c?"height":"width",t=i.reference[c]-i.floating[e]+v.mainAxis,r=i.reference[c]+i.reference[e]-v.mainAxis;hr&&(h=r)}if(l){var g,y,x,b;let e="y"===c?"width":"height",t=["top","left"].includes(tM(n)),r=i.reference[f]-i.floating[e]+(t&&null!=(g=null==(y=o.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),a=i.reference[f]+i.reference[e]+(t?0:null!=(x=null==(b=o.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pa&&(p=a)}return{[c]:h,[f]:p}}}):void 0,...Z},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=f,l={x:t,y:r},u=await tF(e,s),c=tP(tM(n)),d=tG(c),h=l[c],p=l[d];if(i){let e="y"===c?"bottom":"right";h=tV(h+u["y"===c?"top":"left"],tZ(h,h-u[e]))}if(o){let e="y"===d?"bottom":"right";p=tV(p+u["y"===d?"top":"left"],tZ(p,p-u[e]))}let m=a.fn({...e,[c]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-r}}}}:void 0,A?rp({element:A,padding:x}):void 0,k?{name:"flip",options:h={...Z},async fn(e){var t,r,n,i;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=h,y=tM(o),x=p||(y!==l&&v?function(e){let t=tB(e);return[tU(e),t,tU(t)]}(l):[tB(l)]),b=[l,...x],w=await tF(e,g),j=[],E=(null==(t=a.flip)?void 0:t.overflows)||[];if(d&&j.push(w[y]),f){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=tA(e),i=tP(e),o=tT(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=tB(a)),{main:a,cross:tB(a)}}(o,s,await (null==u.isRTL?void 0:u.isRTL(c.floating)));j.push(w[e],w[t])}if(E=[...E,{placement:o,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(n=a.flip)?void 0:n.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let s="bottom";switch(m){case"bestFit":{let e=null==(i=E.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:i[0].placement;e&&(s=e);break}case"initialPlacement":s=l}if(o!==s)return{reset:{placement:s}}}return{}}}:void 0,rP({arrowWidth:N,arrowHeight:R}),E?tY({strategy:"referenceHidden"}):void 0].filter(rM)});(0,tS.b)(()=>{V(S.anchor)},[V,S.anchor]);let q=null!==B&&null!==H,[Y,G]=rT(U),K=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,ep.useState)();(0,tS.b)(()=>{O&&ee(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:et,positionUpdateFns:er}=rS(rj,p),en=!et;(0,ep.useLayoutEffect)(()=>{if(!en)return er.add($),()=>{er.delete($)}},[en,er,$]),(0,ep.useLayoutEffect)(()=>{en&&q&&Array.from(er).reverse().forEach(e=>requestAnimationFrame(e))},[en,q,er]);let ei={"data-side":Y,"data-align":G,...C,ref:M,style:{...C.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,ep.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:I,left:0,top:0,transform:q?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,ep.createElement)(rE,{scope:p,placedSide:Y,onArrowChange:P,arrowX:K,arrowY:X,shouldHideArrow:J},en?(0,ep.createElement)(rC,{scope:p,hasParent:!0,positionUpdateFns:er},(0,ep.createElement)(tx.WV.div,ei)):(0,ep.createElement)(tx.WV.div,ei)))}),r_={top:"bottom",right:"left",bottom:"top",left:"right"};function rM(e){return void 0!==e}function rA(e){return null!==e}let rP=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=rT(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function rT(e){let[t,r="center"]=e.split("-");return[t,r]}let rN=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,ep.useState)(null);return(0,ep.createElement)(rx,{scope:t,anchor:n,onAnchorChange:i},r)},rR=(0,ep.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?ek.createPortal((0,ep.createElement)(tx.WV.div,(0,tm.Z)({},i,{ref:t})),n):null}),rD=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,i]=(0,ep.useState)(),o=(0,ep.useRef)({}),a=(0,ep.useRef)(e),s=(0,ep.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,ep.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return(0,ep.useEffect)(()=>{let e=rL(o.current);s.current="mounted"===l?e:"none"},[l]),(0,tS.b)(()=>{let t=o.current,r=a.current;if(r!==e){let n=s.current,i=rL(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),(0,tS.b)(()=>{if(n){let e=e=>{let t=rL(o.current).includes(e.animationName);e.target===n&&t&&(0,ek.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(s.current=rL(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,ep.useCallback)(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):ep.Children.only(r),o=(0,tg.e)(n.ref,i.ref);return"function"==typeof r||n.isPresent?(0,ep.cloneElement)(i,{ref:o}):null};function rL(e){return(null==e?void 0:e.animationName)||"none"}rD.displayName="Presence";var rF=r(99575),rZ=r(73597);let rV=(0,ep.forwardRef)((e,t)=>(0,ep.createElement)(tx.WV.span,(0,tm.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}}))),[rz,rI]=(0,ty.b)("Tooltip",[ry]),rB=ry(),rH="tooltip.open",[rU,rW]=rz("TooltipProvider"),r$="Tooltip",[rq,rY]=rz(r$),rG="TooltipTrigger",rK=(0,ep.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=rY(rG,r),o=rW(rG,r),a=rB(r),s=(0,ep.useRef)(null),l=(0,tg.e)(t,s,i.onTriggerChange),u=(0,ep.useRef)(!1),c=(0,ep.useRef)(!1),d=(0,ep.useCallback)(()=>u.current=!1,[]);return(0,ep.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,ep.createElement)(rw,(0,tm.Z)({asChild:!0},a),(0,ep.createElement)(tx.WV.button,(0,tm.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:l,onPointerMove:(0,tv.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,tv.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,tv.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,tv.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,tv.M)(e.onBlur,i.onClose),onClick:(0,tv.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),rX="TooltipPortal",[rJ,rQ]=rz(rX,{forceMount:void 0}),r0="TooltipContent",r1=(0,ep.forwardRef)((e,t)=>{let r=rQ(r0,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=rY(r0,e.__scopeTooltip);return(0,ep.createElement)(rD,{present:n||a.open},a.disableHoverableContent?(0,ep.createElement)(r5,(0,tm.Z)({side:i},o,{ref:t})):(0,ep.createElement)(r2,(0,tm.Z)({side:i},o,{ref:t})))}),r2=(0,ep.forwardRef)((e,t)=>{let r=rY(r0,e.__scopeTooltip),n=rW(r0,e.__scopeTooltip),i=(0,ep.useRef)(null),o=(0,tg.e)(t,i),[a,s]=(0,ep.useState)(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:d}=n,f=(0,ep.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,ep.useCallback)((e,t)=>{let r=e.currentTarget,n=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},r.getBoundingClientRect()),i="right"===n||"bottom"===n?-5:5;s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}(["right"===n||"left"===n?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())])),d(!0)},[d]);return(0,ep.useEffect)(()=>()=>f(),[f]),(0,ep.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,ep.useEffect)(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(i=!i)}return i}(r,a);n?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,ep.createElement)(r5,(0,tm.Z)({},e,{ref:o}))}),[r4,r3]=rz(r$,{isInside:!1}),r5=(0,ep.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=rY(r0,r),u=rB(r),{onClose:c}=l;return(0,ep.useEffect)(()=>(document.addEventListener(rH,c),()=>document.removeEventListener(rH,c)),[c]),(0,ep.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,ep.createElement)(tE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,ep.createElement)(rO,(0,tm.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,ep.createElement)(rF.A4,null,n),(0,ep.createElement)(r4,{scope:r,isInside:!0},(0,ep.createElement)(rV,{id:l.contentId,role:"tooltip"},i||n))))}),r6=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=rW(r$,e.__scopeTooltip),u=rB(t),[c,d]=(0,ep.useState)(null),f=function(e){let[t,r]=ep.useState(tO());return(0,tS.b)(()=>{r(e=>null!=e?e:String(t_++))},[void 0]),t?`radix-${t}`:""}(),h=(0,ep.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,ep.useRef)(!1),[g=!1,y]=(0,rZ.T)({prop:n,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(rH))):l.onClose(),null==o||o(e)}}),x=(0,ep.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),b=(0,ep.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,ep.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,ep.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,ep.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,ep.createElement)(rN,u,(0,ep.createElement)(rq,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,ep.useCallback)(()=>{l.isOpenDelayed?j():b()},[l.isOpenDelayed,j,b]),onTriggerLeave:(0,ep.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:b,onClose:w,disableHoverableContent:p},r))},r8=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=rY(rX,t);return(0,ep.createElement)(rJ,{scope:t,forceMount:r},(0,ep.createElement)(rD,{present:r||o.open},(0,ep.createElement)(rR,{asChild:!0,container:i},n)))},r7=(0,tp.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"}}),r9=ep.forwardRef((e,t)=>{let{tag:r="span",className:n,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,eh.jsx)(r,{ref:t,className:(0,tp.cx)(n,r7({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),ne=ep.forwardRef((e,t)=>{let{size:r="18",...n}=e;return(0,eh.jsx)(r9,{tag:"p",...n,ref:t,weight:"regular",scaleSize:r,color:"subtle",className:(0,tp.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nt=(0,tp.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"}}),nr=ep.forwardRef((e,t)=>{let{className:r,color:n,...i}=e;return(0,eh.jsx)("div",{ref:t,className:nt({className:r,color:n}),...i})});var nn=r(93542);let ni=(void 0===nn||nn.env,"production"),no=1/60*1e3,na="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ns="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(na()),no),nl=!0,nu=!1,nc=!1,nd={delta:0,timestamp:0},nf=["read","update","preRender","render","postRender"],nh=nf.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rnu=!0),e),{}),np=nf.reduce((e,t)=>{let r=nh[t];return e[t]=(e,t=!1,n=!1)=>(nu||nx(),r.schedule(e,t,n)),e},{}),nm=nf.reduce((e,t)=>(e[t]=nh[t].cancel,e),{}),nv=nf.reduce((e,t)=>(e[t]=()=>nh[t].process(nd),e),{}),ng=e=>nh[e].process(nd),ny=e=>{nu=!1,nd.delta=nl?no:Math.max(Math.min(e-nd.timestamp,40),1),nd.timestamp=e,nc=!0,nf.forEach(ng),nc=!1,nu&&(nl=!1,ns(ny))},nx=()=>{nu=!0,nl=!0,nc||ns(ny)},nb=()=>nd,nw="undefined"!=typeof document,nj=nw?ep.useLayoutEffect:ep.useEffect;function nE(){let e=(0,ep.useRef)(!1);return nj(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nk=(0,ep.createContext)(null);function nC(e){let t=(0,ep.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nS extends ep.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nO({children:e,isPresent:t}){let r=(0,ep.useId)(),n=(0,ep.useRef)(null),i=(0,ep.useRef)({width:0,height:0,top:0,left:0});return(0,ep.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!n.current||!e||!o)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,r){"use strict";r.r(t),r.d(t,{ResizeObserver:function(){return $},ResizeObserverEntry:function(){return S},ResizeObserverSize:function(){return c}});var n,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(n=i||(i={})).BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.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,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,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(),r=t.width,n=t.height;return!r&&!n}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,x=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},j=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new c((r?t:e)||0,(r?e:t)||0)},E=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,E),E;var r=getComputedStyle(e),n=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===r.boxSizing,o=x.test(r.writingMode||""),a=!n&&y.test(r.overflowY||""),s=!n&&y.test(r.overflowX||""),l=n?0:w(r.paddingTop),c=n?0:w(r.paddingRight),p=n?0:w(r.paddingBottom),m=n?0:w(r.paddingLeft),v=n?0:w(r.borderTopWidth),k=n?0:w(r.borderRightWidth),C=n?0:w(r.borderBottomWidth),S=n?0:w(r.borderLeftWidth),O=m+c,_=l+p,M=S+k,A=v+C,P=s?e.offsetHeight-A-e.clientHeight:0,T=a?e.offsetWidth-M-e.clientWidth:0,N=n?n.width:w(r.width)-(i?O+M:0)-T,R=n?n.height:w(r.height)-(i?_+A:0)-P,D=N+O+T+M,L=R+_+P+A,F=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:j(D,L,o),contentBoxSize:j(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},C=function(e,t,r){var n=k(e,r),o=n.borderBoxSize,a=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},S=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},O=function(e){if(h(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},_=function(){var e=1/0,t=[];a.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new S(t.target),i=O(t.target);n.push(r),t.lastReportedSize=C(t.target,t.observedBox),ie?t.activeTargets.push(r):t.skippedTargets.push(r))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=_());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},P=[],T=function(e){if(!o){var t=0,r=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),o=function(){r.textContent=""+(t?t--:t++)}}P.push(e),o()},N=function(e){T(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},Z=!1,V=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Z){Z=!0;var r=F(e);N(function(){var n=!1;try{n=A()}finally{if(Z=!1,e=r-F(),!R)return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),z=function(e){!R&&e>0&&V.start(),(R+=e)||V.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var r=0;rU(n.observationTargets,t)&&(i&&a.push(n),n.observationTargets.push(new I(t,r&&r.box)),z(1),V.schedule())},e.unobserve=function(e,t){var r=H.get(e),n=U(r.observationTargets,t),i=1===r.observationTargets.length;n>=0&&(i&&a.splice(a.indexOf(r),1),r.observationTargets.splice(n,1),z(-1))},e.disconnect=function(e){var t=this,r=H.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),$=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,r){"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}r.d(t,{M:function(){return n}})},26215:function(e,t,r){"use strict";r.d(t,{F:function(){return i},e:function(){return o}});var n=r(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,n.useCallback)(i(...e),e)}},34540:function(e,t,r){"use strict";r.d(t,{b:function(){return o},k:function(){return i}});var n=r(2784);function i(e,t){let r=(0,n.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,n.useMemo)(()=>i,Object.values(i));return(0,n.createElement)(r.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,n.useContext)(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],i=()=>{let t=r.map(e=>(0,n.createContext)(e));return function(r){let i=(null==r?void 0:r[e])||t;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return i.scopeName=e,[function(t,i){let o=(0,n.createContext)(i),a=r.length;function s(t){let{scope:r,children:i,...s}=t,l=(null==r?void 0:r[e][a])||o,u=(0,n.useMemo)(()=>s,Object.values(s));return(0,n.createElement)(l.Provider,{value:u},i)}return r=[...r,i],s.displayName=t+"Provider",[s,function(r,s){let l=(null==s?void 0:s[e][a])||o,u=(0,n.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return(0,n.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(i,...t)]}},72130:function(e,t,r){"use strict";r.d(t,{WV:function(){return s},jH:function(){return l}});var n=r(7896),i=r(2784),o=r(28316),a=r(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,i.forwardRef)((e,r)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,n.Z)({},s,{ref:r}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,r){"use strict";r.d(t,{A4:function(){return l},g7:function(){return a}});var n=r(7896),i=r(2784),o=r(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:r,...o}=e,a=i.Children.toArray(r),l=a.find(u);if(l){let e=l.props.children,r=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,n.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,r):null)}return(0,i.createElement)(s,(0,n.Z)({},o,{ref:t}),r)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,i.isValidElement)(r)?(0,i.cloneElement)(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?r[n]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:(0,o.F)(t,r.ref)}):i.Children.count(r)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(2784);function i(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)},[])}},73597:function(e,t,r){"use strict";r.d(t,{T:function(){return o}});var n=r(2784),i=r(86029);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let r=(0,n.useState)(e),[o]=r,a=(0,n.useRef)(o),s=(0,i.W)(t);return(0,n.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:o,u=(0,i.W)(r);return[l,(0,n.useCallback)(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},64680:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(2784);let i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},25447:function(e,t,r){"use strict";e.exports=r(44868)},99550:function(e,t,r){"use strict";e.exports=r(22360)},6901:function(e,t,r){"use strict";e.exports=r(78476)},8669:function(e,t,r){"use strict";e.exports=r(19455)},53609:function(e,t,r){"use strict";e.exports=r(96721)},81401:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,r=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,x=void 0!==y&&y,b=e.left,w=e.numTicks,j=void 0===w?10:w,E=e.orientation,k=void 0===E?d.default.bottom:E,C=e.rangePadding,S=void 0===C?0:C,O=e.scale,_=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,P=e.tickValues,T=e.top,N=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,h),R=null!=_?_:(0,u.default)(O),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,Z=(0,l.default)(O),V=D||L?-1:1,z=O.range(),I=(0,f.default)(S),B=(0,c.default)({x:Number(z[0])+.5-I.start,y:0},F),H=(0,c.default)({x:Number(z[z.length-1])+.5+I.end,y:0},F),U=(null!=P?P:(0,a.getTicks)(O,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,r=e.index,n=(0,a.coerceNumber)(Z(t));return{value:t,index:r,from:(0,c.default)({x:n,y:0},F),to:(0,c.default)({x:n,y:A*V},F),formattedValue:R(t,r,U)}});return n.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===b?0:b},r(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:j,orientation:k,rangePadding:S,scale:O,tickFormat:R,tickLength:A,tickPosition:Z,tickSign:V,ticks:W})))},p(r(13980));var n=p(r(2784)),i=p(r(72779)),o=r(71602),a=r(63243),s=p(r(58052)),l=p(r(71387)),u=p(r(16882)),c=p(r(89591)),d=p(r(87209)),f=p(r(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[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===r?8:r,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===r?36:r,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===r?36:r,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s);return n.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===r?8:r,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var n=l(r(2784)),i=l(r(72779)),o=l(r(81401)),a=l(r(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=a()).done;){var s=n.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,n.default)(e.x,null!=(o=r.xMin)?o:-1/0,null!=(a=r.xMax)?a:1/0),y:(0,n.default)(e.y,null!=(s=r.yMin)?s:-1/0,null!=(l=r.yMax)?l:1/0)}};var n=o(r(30968)),i=o(r(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return(0,n.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,r){if(void 0===r&&(r=1),!e)return[];for(var n=[],i=e.getTotalLength(),o=0;o<=i;o+=r){var a=e.getPointAtLength(o).matrixTransform(t);n.push(a)}return n}(e,t)},[null==e?void 0:e.getTotalLength()])};var n=r(2784)},37016:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.useState)(e),r=t[0],i=t[1],o=(0,n.useRef)(null),a=(0,n.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,n.useLayoutEffect)(function(){o.current&&(o.current(r),o.current=null)},[r]),[r,a]};var n=r(2784)},65319:function(e,t,r){"use strict";r.r(t),r.d(t,{localPoint:function(){return n.Z},touchPoint:function(){return i.Z}});var n=r(91032),i=r(49833)},91032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49833),i=r(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,n.Z)(e,t);if((0,i.cO)(e)){var r=e.target;if(r)return(0,n.Z)(r,e)}return null}},49833:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(19067),i=r(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=r.x,u.y=r.y,u=u.matrixTransform(l.inverse()),new n.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new n.Z({x:r.x-c.left-e.clientLeft,y:r.y-c.top-e.clientTop})}},44321:function(e,t,r){"use strict";function n(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}r.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return n},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,r){"use strict";t.__esModule=!0,t.default=p;var n=f(r(13980)),i=f(r(2784)),o=f(r(72779)),a=f(r(47440)),s=r(71602),l=r(61305),u=r(63243),c=f(r(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[r]=e[r]);return i}(e,d),S=null!=E?E:(0,u.getTicks)(n,void 0===b?10:b),O=(null!=j?j:0)+(0,c.default)(n)/2,_=S.map(function(e,t){var r,i=(null!=(r=(0,u.coerceNumber)(n(e)))?r:0)+O;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===r?0:r},k?k({lines:_}):_.map(function(e){var t=e.from,r=e.to,n=e.index;return i.default.createElement(a.default,h({key:"column-line-"+n,from:t,to:r,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},C))}))}p.propTypes={tickValues:n.default.array,height:n.default.number.isRequired}},34264:function(e,t,r){"use strict";t.__esModule=!0,t.default=p;var n=f(r(13980)),i=f(r(2784)),o=f(r(72779)),a=f(r(47440)),s=r(71602),l=r(61305),u=r(63243),c=f(r(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[r]=e[r]);return i}(e,d),S=null!=k?k:(0,u.getTicks)(n,void 0===w?10:w),O=(null!=E?E:0)+(0,c.default)(n)/2,_=S.map(function(e,t){var r,i=(null!=(r=(0,u.coerceNumber)(n(e)))?r:0)+O;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===r?0:r},b?b({lines:_}):_.map(function(e){var t=e.from,r=e.to,n=e.index;return i.default.createElement(a.default,h({key:"row-line-"+n,from:t,to:r,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},C))}))}p.propTypes={tickValues:n.default.array,width:n.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,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(13980),i=r.n(n),o=r(2784),a=r(72779),s=r.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,r){"use strict";r.r(t),r.d(t,{Group:function(){return n.Z}});var n=r(59309)},19067:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(){function e(e){var t=e.x,r=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===r?0:r}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,r){"use strict";r.r(t),r.d(t,{Point:function(){return n.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var n=r(19067);function i(e,t){return new n.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new n.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,r){"use strict";t.Z=function(e){var t=e.animationTrajectory,r=e.tickComponent,s=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,a),l=(0,n.useMemo)(function(){return function(e){return n.default.createElement(o.default,u({},e,{tickComponent:r,animationTrajectory:t}))}},[t,r]);return n.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(r(13980));var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(void 0);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(2784)),i=l(r(81401)),o=l(r(65154)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a);return n.default.createElement(i.default,{scale:t,height:r,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var r=e.lines;return n.default.createElement(o.default,l({scale:t,lines:r,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,r;return"column-"+(null!=(t=null==e?void 0:null==(r=e.from)?void 0:r.x)?t:"")+"-"+e.index}},p))})};var n=s(r(2784)),i=s(r(21516)),o=s(r(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),h=(0,o.useTransition)(r,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:n}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,r){var n=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=r.key;return i.default.createElement(o.animated.line,u({key:h,x1:n,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:n.default.func.isRequired}},93353:function(e,t,r){"use strict";t.Z=function(e){var t=e.scale,r=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,a);return n.default.createElement(i.default,{scale:t,width:r,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var r=e.lines;return n.default.createElement(o.default,l({scale:t,lines:r,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,r;return"row-"+(null!=(t=null==e?void 0:null==(r=e.from)?void 0:r.y)?t:"")+"-"+e.index}},p))})};var n=s(r(2784)),i=s(r(34264)),o=s(r(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(r){return Object.keys(r).filter(function(e){return r[e]!==t[e]}).every(function(t){return e.includes(t)})?r:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,r=t.left,n=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,top:n,left:r})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),r(c({},b,{ref:g.current,resize:j})))}f.propTypes={className:n.default.string,debounceTime:n.default.number,enableDebounceLeadingCall:n.default.bool,ignoreDimensions:n.default.oneOfType([n.default.any,n.default.arrayOf(n.default.any)]),children:n.default.func.isRequired}},2663:function(e,t,r){"use strict";var n=r(8597),i=r(12430),o=r(70590),a=r(50630),s=r(34278),l=r(64183),u=r(61662),c=r(43634),d=r(73335),f=r(54229),h=r(30558),p=r(71646),m=r(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,n.Z)(e)}},63243:function(e,t,r){"use strict";r.r(t),r.d(t,{coerceNumber:function(){return C.Z},createScale:function(){return b.Z},getTicks:function(){return S.Z},inferScaleType:function(){return k},scaleBand:function(){return n.Z},scaleCanBeZeroed:function(){return _.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return j}});var n=r(26587),i=r(71646),o=r(8597),a=r(19637),s=r(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=r(64183),d=r(61662),f=r(12430),h=r(70590),p=r(30558),m=r(73335),v=r(43634),g=r(34278),y=r(54229),x=r(50630),b=r(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},E=r(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,E.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var C=r(28142),S=r(71220),O=r(51519),_=r(34636)},25176:function(e,t,r){"use strict";r.d(t,{a:function(){return S},Z:function(){return _}});var n=r(88751),i=r(87286),o=r(43780),a=r(77636),s=r(78978),l={lab:n.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=r(68603),c=r(54076),d=r(18450),f=r(50690),h=r(52546),p=r(76231),m=r(97344),v=r(12370),g=r(28239),y=r(52004),x=r(94758),b=r(97631),w=r(2908),j=r(40668),E={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},C=r(74672),S=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var r=t.nice;if("boolean"==typeof r)r&&e.nice();else if("number"==typeof r)e.nice(r);else{var n=(0,j.Z)(e);if("string"==typeof r)e.nice(n?k[r]:E[r]);else{var i=r.interval,o=r.step,a=(n?k[i]:E[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var r=e.domain(),n=r[0],i=r[1],o=i=0||(i[r]=e[r]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?n.createElement(n.Fragment,null,m({path:y})):r||null!=d&&null!=f&&null!=i&&null!=u?n.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(r)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=r(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[r]=e[r]);return i}(e,d),S=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),_=O(void 0===s?[]:s);return j?n.createElement(n.Fragment,null,j({arcs:_,path:S,pie:O})):n.createElement(c.Z,{className:"visx-pie-arcs-group",top:r,left:i},_.map(function(e,r){return n.createElement("g",{key:"pie-arc-"+r},n.createElement("path",f({className:o()("visx-pie-arc",t),d:S(e)||"",fill:null==k||"string"==typeof k?k:k(e)},C)),null==l?void 0:l(S.centroid(e),e))}))}var p=r(63739),m=r(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,v),p=(0,a.aJ)({angle:r,radius:i,defined:s,curve:l});return d?n.createElement(n.Fragment,null,d({path:p})):n.createElement("path",g({ref:c,className:o()("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[r]=e[r]);return i}(e,x),g=(0,a.SO)({x:r,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===f?function(){return!0}:f,curve:p});return t?n.createElement(n.Fragment,null,t({path:g})):n.createElement("path",b({ref:m,className:o()("visx-area",h),d:g(void 0===d?[]:d)||""},v))}var j=r(55746),E=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,E),C=(0,a.kn)({keys:s,value:g,order:y,offset:x}),S=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=C(l);return w?n.createElement(n.Fragment,null,w({stacks:O,path:S,stack:C})):n.createElement(c.Z,{top:r,left:i},O.map(function(e,r){return n.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+r+"-"+(e.key||""),d:S(e)||"",fill:null==b?void 0:b(e.key,r)},j))}))}var S=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,S);return n.createElement(C,O({className:t,top:r,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var r=e.stacks,i=e.path;return r.map(function(e,r){return n.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+r+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,r)},b))})})}var M=r(14582),A=r(10897);function P(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),r=e.domain();return Math.abs(t[t.length-1]-t[0])/r.length}var T=["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[r]=e[r]);return i}(e,T),g=P(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,r){var n=e[t];return{index:r,key:t,value:n,width:g,x:u(t)||0,y:d(n)||0,color:f(t,r),height:p-(d(n)||0)}})}});return m?n.createElement(n.Fragment,null,m(y)):n.createElement(c.Z,{className:o()("visx-bar-group",r),top:i,left:a},y.map(function(e){return n.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return n.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);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,r){var n=e[t];return{index:r,key:t,value:n,height:y,x:l(n)||0,y:f(t)||0,color:p(t,r),width:h(n)||0}})}});return v?n.createElement(n.Fragment,null,v(x)):n.createElement(c.Z,{className:o()("visx-bar-group-horizontal",r),top:i,left:a},x.map(function(e){return n.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return n.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var Z=r(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function z(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function I(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=r(26078),$=r(44081),q=r(30382),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,Y),j=(0,Z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,$.ZP)(y)),x&&j.offset((0,q.ZP)(x));var E=j(t),k=P(h),C=E.map(function(e,t){var r=e.key;return{index:t,key:r,bars:e.map(function(t,n){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:r,index:n,height:i,width:k,x:a||0,y:o||0,color:m(e.key,n)}})}});return b?n.createElement(n.Fragment,null,b(C)):n.createElement(c.Z,{className:o()("visx-bar-stack",r),top:i,left:a},C.map(function(e){return e.bars.map(function(t){return n.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,X),j=(0,Z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,$.ZP)(y)),x&&j.offset((0,q.ZP)(x));var E=j(t),k=P(p),C=E.map(function(e,t){var r=e.key;return{index:t,key:r,bars:e.map(function(t,n){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:r,index:n,height:k,width:i,x:o||0,y:a||0,color:m(e.key,n)}})}});return b?n.createElement(n.Fragment,null,b(C)):n.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",r),top:i,left:a},C.map(function(e){return e.bars.map(function(t){return n.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=r(72215),er=["className","children","data","innerRef","path","x","y","source","target"];function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,er),h=s||ei({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",en({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,ea),h=s||el({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,ec),h=s||ef({source:void 0===c?I:c,target:void 0===d?B:d,angle:void 0===l?V:l,radius:void 0===u?z:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=r(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,em),p=s||eg({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return r?n.createElement(n.Fragment,null,r({path:p})):n.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,ex),p=s||ew({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return r?n.createElement(n.Fragment,null,r({path:p})):n.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var eE=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eE),p=s||eC({source:void 0===d?I:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return r?n.createElement(n.Fragment,null,r({path:p})):n.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function e_(){return(e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eO),h=s||eM({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u});return r?n.createElement(n.Fragment,null,r({path:h})):n.createElement("path",e_({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eP=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eP),h=a||eN({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?z:l});return d?n.createElement(n.Fragment,null,d({path:h})):n.createElement("path",eT({ref:r,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eD),h=a||eF({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?z:l});return d?n.createElement(n.Fragment,null,d({path:h})):n.createElement("path",eL({ref:r,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function ez(){return(ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eV),p=a||eI({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?n.createElement(n.Fragment,null,f({path:p})):n.createElement("path",ez({ref:r,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eH),p=a||eW({source:void 0===c?I:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?n.createElement(n.Fragment,null,f({path:p})):n.createElement("path",eU({ref:r,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var eq=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eK(e){var t=e.className,r=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,eq),h=a||eG({source:void 0===u?I:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?z:l});return d?n.createElement(n.Fragment,null,d({path:h})):n.createElement("path",eY({ref:r,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===r?25:r,center:void 0===i?eQ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?n.createElement(n.Fragment,null,l({points:f})):n.createElement("polygon",eJ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,e4);return n.createElement("circle",e3({ref:r,className:o()("visx-circle",t)},i))}var e6=r(13980),e8=r.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(S)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return n.createElement("g",null,v.map(function(e,i){return t?n.createElement(n.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):n.createElement(m.Z,te({key:i,className:r,data:e,x:tt,y:tr},f[i]||f[i%f.length]))}))}tn.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(2784),i=r(72779),o=r.n(i),a=r(26078),s=r(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l),w=(0,s.SO)({x:t,x0:r,x1:i,defined:void 0===m?function(){return!0}:m,curve:g});return(null==f?w.y0(h.range()[0]):(0,a.Z)(w.y0,f),c&&!d&&(0,a.Z)(w.y1,c),d&&!c&&(0,a.Z)(w.y1,d),x)?n.createElement(n.Fragment,null,x({path:w})):n.createElement("path",u({ref:y,className:o()("visx-area-closed",v),d:w(void 0===p?[]:p)||""},b))}},14582:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(2784),i=r(72779),o=r.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a);return n.createElement("rect",s({ref:r,className:o()("visx-bar",t)},i))}},10897:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(2784),i=r(72779),o=r.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),V=(r=(t={x:k,y:C,width:S,height:O,radius:_,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==P&&P,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,x=t.y,v=r||p||h||v,u=r||i||h||u,l=r||i||d||l,m=r||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?n.createElement(n.Fragment,null,w({path:V})):n.createElement("path",s({ref:E,className:o()("visx-bar-rounded",j),d:V},Z))}},63739:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(2784),i=r(72779),o=r.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),h=r.x===l.x||r.y===l.y;return n.createElement("line",s({ref:d,className:o()("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(2784),i=r(72779),o=r.n(i),a=r(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),v=(0,a.jv)({x:i,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?n.createElement(n.Fragment,null,t({path:v})):n.createElement("path",l({ref:h,className:o()("visx-linepath",d),d:v(void 0===r?[]:r)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},52511:function(e,t,r){"use strict";r.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var n=r(38764),i=r(79493),o=r(79767),a=r(69619),s=r(8329),l=r(98926),u=r(26078),c=r(44081),d=r(30382);function f(e){var t=void 0===e?{}:e,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,n.Z)();return null!=r&&(0,u.Z)(d.innerRadius,r),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,r=t.x,n=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return r&&(0,u.Z)(f.x,r),n&&(0,u.Z)(f.x0,n),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,r=t.x,n=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return r&&(0,u.Z)(s.x,r),n&&(0,u.Z)(s.y,n),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,r=t.startAngle,n=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=r&&(0,u.Z)(c.startAngle,r),null!=n&&(0,u.Z)(c.endAngle,n),c}function v(e){var t=void 0===e?{}:e,r=t.angle,n=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return r&&(0,u.Z)(a.angle,r),n&&(0,u.Z)(a.radius,n),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,r=e.value,n=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),r&&(0,u.Z)(o.value,r),n&&o.order((0,c.ZP)(n)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,r){"use strict";function n(e,t){e(t)}r.d(t,{Z:function(){return n}})},30382:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var n=r(22254),i=r(76751),o=r(90541),a=r(36538),s=r(34928),l={expand:n.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var n=r(19721),i=r(82564),o=r(12197),a=r(81182),s=r(40277),l={ascending:n.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,r){"use strict";t.Z=function(e){var t=e.children,r=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=e.defined,m=e.className,v=e.curve,g=e.innerRef,y=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,a),x=(0,o.area)({x:r,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===p?function(){return!0}:p,curve:v});return t?n.default.createElement(n.default.Fragment,null,t({path:x})):n.default.createElement("path",l({ref:g,className:(0,i.default)("visx-area",m),d:x(void 0===h?[]:h)||""},y))};var n=s(r(2784)),i=s(r(72779)),o=r(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,o),h=r.x===l.x||r.y===l.y;return n.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var n=a(r(2784)),i=a(r(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),v=(0,o.line)({x:s,y:u,defined:void 0===p?function(){return!0}:p,curve:f});return t?n.default.createElement(n.default.Fragment,null,t({path:v})):n.default.createElement("path",l({ref:h,className:(0,i.default)("visx-linepath",d),d:v(void 0===r?[]:r)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))};var n=s(r(2784)),i=s(r(72779)),o=r(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=g.transform;return n.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===r?0:r,fontSize:v,style:s},y.length>0?n.createElement("text",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return n.createElement("tspan",{key:t,x:m,dy:0===t?x:f},e.words.join(" "))})):null)}},89907:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(2784),i=r(32718),o=r.n(i),a=r(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,r=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,x=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,s),b=x.x,w=void 0===b?0:b,j=x.y,E=void 0===j?0:j,k=!u(w)||!u(E),C=(0,n.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),S=C.wordsWithWidth,O=C.spaceWidth,_=(0,n.useMemo)(function(){return k?[]:f||c?S.reduce(function(e,t){var r=t.word,n=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+n+O0){var t=_[0].width||1,r="shrink-only"===c?Math.min(f/t,1):f/t,n=w-r*w,i=E-r*E;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+E+")"),e.length>0?e.join(" "):""},[k,w,E,f,c,_,d]);return{wordsByLines:_,startDy:M,transform:A}}},44425:function(e,t,r){"use strict";r.r(t),r.d(t,{Text:function(){return n.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var n=r(64170),i=r(75715),o=r(89907)},75715:function(e,t,r){"use strict";var n=r(30733),i=r.n(n),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var r=document.getElementById(o);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,r){"use strict";r.d(t,{R:function(){return s}});var n=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,r){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===r&&(r="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[r]||(o[r]=new WeakMap);var l=o[r],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(l.get(e)||0)+1;n.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=n.get(e)-1,o=l.get(e)-1;n.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,r){e.exports=r(25644)},70353:function(e,t,r){"use strict";var n=r(93044),i=r(86955),o=r(92233),a=r(68030),s=r(97948),l=r(51875),u=r(60842),c=r(98560),d=r(21218),f=r(68047),h=r(10738);e.exports=function(e){return new Promise(function(t,r){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function E(){if(x){var n="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){r(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:n,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(E)},x.onabort=function(){x&&(r(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(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",n=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,n.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&n.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(r(!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 C=h(j);if(C&&-1===["http","https","file"].indexOf(C)){r(new d("Unsupported protocol "+C+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,r){"use strict";var n=r(93044),i=r(73644),o=r(62215),a=r(92937),s=function e(t){var r=new o(t),s=i(o.prototype.request,r);return n.extend(s,o.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(10663));s.Axios=o,s.CanceledError=r(68047),s.CancelToken=r(34089),s.isCancel=r(98041),s.VERSION=r(29241).version,s.toFormData=r(49027),s.AxiosError=r(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(70783),s.isAxiosError=r(65587),e.exports=s,e.exports.default=s},34089:function(e,t,r){"use strict";var n=r(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,r=this;this.promise.then(function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,r){"use strict";var n=r(48834).lW,i=r(93044);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return!function e(n,a){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),i.forEach(n,function(r,n){if(!i.isUndefined(r)){var s,l=a?a+"."+n:n;if(r&&!a&&"object"==typeof r){if(i.endsWith(n,"{}"))r=JSON.stringify(r);else if(i.endsWith(n,"[]")&&(s=i.toArray(r))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(r,l)}}),r.pop()}else t.append(a,o(n))}(e),t}},17525:function(e,t,r){"use strict";var n=r(29241).version,i=r(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,r){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new i(o(n," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,r){"use strict";var n,i,o=r(73644),a=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=a.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r0;)a[o=n[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6391:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nu^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function m(e,t,r,n){if(er||e!==l(e))throw Error(u+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else tP?h.c=h.e=null:e.e=10;s/=10,o++);o>P?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return E(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new Z(e),S+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return E(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,Z.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=L.slice(0,t),o=s=0,d=f.length;sr.indexOf(n=f.charAt(s))){if("."==n){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return E(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&Z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>P)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new Z(e),t,r)).e,s=(l=h(e.c)).length,1==n||2==n&&(t<=o||o<=_)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function z(e,t){for(var r,n=1,i=new Z(e[0]);n=10;i/=10,n++);return(r=n+14*r-1)>P?e.c=e.e=null:r=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(n){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(n=n||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),n=r<4?(h||n)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||n||6==r&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),n)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>P?e.c=e.e=null:e.e=M?g(t,r):y(t,r,"0"),e.s<0?"-"+t:t)}return Z.clone=e,Z.ROUND_UP=0,Z.ROUND_DOWN=1,Z.ROUND_CEIL=2,Z.ROUND_FLOOR=3,Z.ROUND_HALF_UP=4,Z.ROUND_HALF_DOWN=5,Z.ROUND_HALF_EVEN=6,Z.ROUND_HALF_CEIL=7,Z.ROUND_HALF_FLOOR=8,Z.EUCLID=9,Z.config=Z.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(r=e[t],0,1e9,t),S=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(r=e[t],0,8,t),O=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(m(r[0],-1e9,0,t),m(r[1],0,1e9,t),_=r[0],M=r[1]):(m(r,-1e9,1e9,t),_=-(M=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)m(r[0],-1e9,-1,t),m(r[1],1,1e9,t),A=r[0],P=r[1];else if(m(r,-1e9,1e9,t),r)A=-(P=r<0?-r:r);else throw Error(u+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=r;else throw T=!r,Error(u+"crypto unavailable")}else T=r}else throw Error(u+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(r=e[t],0,9,t),N=r),e.hasOwnProperty(t="POW_PRECISION")&&(m(r=e[t],0,1e9,t),R=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))D=r;else throw Error(u+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(u+t+" invalid: "+r);F="0123456789"==r.slice(0,10),L=r}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:S,ROUNDING_MODE:O,EXPONENTIAL_AT:[_,M],RANGE:[A,P],CRYPTO:T,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},Z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!Z.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t=1e14||r!==l(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},Z.maximum=Z.max=function(){return z(arguments,k.lt)},Z.minimum=Z.min=function(){return z(arguments,k.gt)},Z.random=(r=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,c=0,f=[],h=new Z(C);if(null==e?e=S:m(e,0,1e9),o=s(e/14),T){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw T=!1,Error(u+"crypto unavailable")}if(!T)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),Z.sum=function(){for(var e=1,t=arguments,r=new Z(t[0]);er-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,u,c,d,f,p,m,v=r.indexOf("."),g=S,x=O;for(v>=0&&(c=R,R=0,r=r.replace(".",""),f=(m=new Z(n)).pow(r.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(r,n,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,x,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(f.s<0?8:7)),l<1||!p[0])r=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,r="";v<=c;r+=s.charAt(p[v++]));r=y(r,u,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,j,E,k,C,S,O=n.s==i.s?1:-1,_=n.c,M=i.c;if(!_||!_[0]||!M||!M[0])return new Z(n.s&&i.s&&(_?!M||_[0]!=M[0]:M)?_&&0==_[0]||!M?0*O:O/0:NaN);for(y=(g=new Z(O)).c=[],O=o+(c=n.e-i.e)+1,s||(s=1e14,c=f(n.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(_[d]||0);d++);if(M[d]>(_[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(E=_.length,C=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),_=e(_,p,s),C=M.length,E=_.length),j=C,b=(x=_.slice(0,C)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,C,b))<0){if(w=x[0],C!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,r(m,Ct(M,x,C,b);)p++,r(x,C=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,r,a){var s,l=r?t:t.replace(b,"");if(x.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!r&&(l=l.replace(n,function(e,t,r){return s="x"==(r=r.toLowerCase())?16:"b"==r?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new Z(l,s);if(Z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new Z(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new Z(e,t))},k.decimalPlaces=k.dp=function(e,t){var r,n,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new Z(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-f(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},k.dividedBy=k.div=function(e,t){return w(this,new Z(e,t),S,O)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new Z(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var r,n,i,o,a,c,d,f,h,p=this;if((e=new Z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new Z(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new Z(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new Z(NaN);(n=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new Z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(r=new Z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new Z(C);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(r),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(d&&(h=C.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},k.integerValue=function(e){var t=new Z(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new Z(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new Z(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new Z(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new Z(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new Z(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new Z(e,t)).s,!a||!t)return new Z(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new Z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new Z(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]=0;){for(r=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,r=((u=h*u+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=r}return r?++n:m.splice(0,1),I(e,m,n)},k.negated=function(){var e=new Z(this);return e.s=-e.s||null,e},k.plus=function(e,t){var r,n=this.s;if(t=(e=new Z(e,t)).s,!n||!t)return new Z(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new Z(n/0);if(!a[0]||!s[0])return s[0]?e:new Z(a[0]?this:0*n)}if(i=f(i),o=f(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),I(e,a,o)},k.precision=k.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new Z(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=S+4,u=new Z("0.5");if(1!==a||!o||!o[0])return new Z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),r=new Z(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new Z(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(r.c)).slice(0,a)){if(r.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}n=d?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):c}return(r.prefix||"")+n+(r.suffix||"")},k.toFraction=function(e){var t,r,n,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new Z(e)).isInteger()&&(s.c||1!==s.s)||s.lt(C)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new Z(this);for(t=new Z(C),c=r=new Z(C),n=l=new Z(C),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=P,P=1/0,s=new Z(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(r),n,0,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,o*=2,p=1>w(c,n,o,O).minus(this).abs().comparedTo(w(l,r,o,O).minus(this).abs())?[c,n]:[l,r],P=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},k.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=_||i>=M?g(h(r.c),i):y(h(r.c),i,"0"):10===e&&F?t=y(h((r=B(new Z(r),S+i+1,O)).c),r.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&Z.set(t),Z}()).default=o.BigNumber=o,void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}(0)},70651:function(e,t,r){let n=r(7967);function i(e,t,r){let n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[n]^c[e],m=c[n+1]^c[e+1];c[n]=m,c[n+1]=p,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[n]^c[e],m=c[n+1]^c[e+1],c[n]=p>>>16^m<<16,c[n+1]=m>>>16^p<<16,i(c,r,n),p=c[t]^c[r],m=c[t+1]^c[r+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let r=0;for(r=0;r<16;r++)c[r]=e.h[r],c[r+16]=l[r];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,u[16*r+0],u[16*r+1]),s(2,10,18,26,u[16*r+2],u[16*r+3]),s(4,12,20,28,u[16*r+4],u[16*r+5]),s(6,14,22,30,u[16*r+6],u[16*r+7]),s(0,10,20,30,u[16*r+8],u[16*r+9]),s(2,12,22,24,u[16*r+10],u[16*r+11]),s(4,14,16,26,u[16*r+12],u[16*r+13]),s(6,8,18,28,u[16*r+14],u[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^c[r]^c[r+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,r&&h.set(r,32),n&&h.set(n,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function g(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));let a=p(r,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,r,i,o){let a=g(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,r){let n=r(7967);function i(e,t,r,n,i,a){l[e]=l[e]+l[t]+i,l[n]=o(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],12),l[e]=l[e]+l[t]+a,l[n]=o(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=o(l[t]^l[r],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=a[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++){var n,o;u[r]=(n=e.b)[o=4*r]^n[o+1]<<8^n[o+2]<<16^n[o+3]<<24}for(r=0;r<10;r++)i(0,4,8,12,u[s[16*r+0]],u[s[16*r+1]]),i(1,5,9,13,u[s[16*r+2]],u[s[16*r+3]]),i(2,6,10,14,u[s[16*r+4]],u[s[16*r+5]]),i(3,7,11,15,u[s[16*r+6]],u[s[16*r+7]]),i(0,5,10,15,u[s[16*r+8]],u[s[16*r+9]]),i(1,6,11,12,u[s[16*r+10]],u[s[16*r+11]]),i(2,7,8,13,u[s[16*r+12]],u[s[16*r+13]]),i(3,4,9,14,u[s[16*r+14]],u[s[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let r=t?t.length:0;if(t&&!(r>0&&r<=32))throw Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function p(e,t,r){r=r||32,e=n.normalizeInput(e);let i=d(r,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,r){let i=p(e,t,r);return n.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,r){let n=r(70651),i=r(39962);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e)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,r,n){let i="\n"+e+" = ";for(let o=0;o2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|h(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(i)return n?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t=+t,r>>>=0,o||j(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,o){return t=+t,r>>>=0,o||j(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function O(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},72779:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(n,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(n.charAt(h-1))?(u*=.9,(d=n.slice(s,h-1).match(r))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(n.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),n.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(n,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,n,e.toLowerCase(),n.toLowerCase(),0,0)}},68847:function(e,t,r){"use strict";r.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return E},Ss:function(){return C},Ym:function(){return P},ZP:function(){return b},xV:function(){return o}});var n=r(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new C(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?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 C(t[1],t[2],t[3],1):(t=f.exec(e))?new C(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new C(NaN,NaN,NaN,0):null}function w(e){return new C(e>>16&255,e>>8&255,255&e,1)}function j(e,t,r,n){return n<=0&&(e=t=r=NaN),new C(e,t,r,n)}function E(e){return(e instanceof i||(e=b(e)),e)?new C((e=e.rgb()).r,e.g,e.b,e.opacity):new C}function k(e,t,r,n){return 1==arguments.length?E(e):new C(e,t,r,null==n?1:n)}function C(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function S(){return"#"+_(this.r)+_(this.g)+_(this.b)}function O(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function _(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,r,n)}function A(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(r-n)/l+(r0&&u<1?0:s,new T(s,l,u,e.opacity)}function P(e,t,r,n){return 1==arguments.length?A(e):new T(e,t,r,null==n?1:n)}function T(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function N(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}(0,n.Z)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:x,toString:x}),(0,n.Z)(C,k,(0,n.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new C(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new C(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:S,formatHex:S,formatRgb:O,toString:O})),(0,n.Z)(T,P,(0,n.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new C(N(e>=240?e-240:e+120,i,n),N(e,i,n),N(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,r){"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.d(t,{Z:function(){return n},l:function(){return i}})},20966:function(e,t,r){"use strict";r.d(t,{Uc:function(){return g},ZP:function(){return d}});var n=r(40948),i=r(68847),o=r(10810),a=4/29,s=6/29,l=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,r,n=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*n+.7168786*o+.0606169*a)/1);return n===o&&o===a?t=r=s:(t=h((.4360747*n+.3850649*o+.1430804*a)/.96422),r=h((.0139322*n+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-r),e.opacity)}function d(e,t,r,n){return 1==arguments.length?c(e):new f(e,t,r,null==n?1:n)}function f(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,r,n){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?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.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 r=(0,u.V)(e,t);if(!r)return e+"";var i=r[0],o=r[1],a=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,r,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,l.Z)(e)).fill,r=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,j=e.type;"n"===j?(x=!0,j="g"):d[j]||(void 0===b&&(b=12),w=!0,j="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var E="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",k="$"===s?u:/[%p]/.test(j)?v:"",C=d[j],S=/[defgprs%]/.test(j);function O(e){var a,s,l,u=E,d=k;if("c"===j)d=C(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:C(Math.abs(e),b),w&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+n/3]:"")+d+(v&&"("===i?")":""),S){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,_=O>1)+u+e+d+_.slice(O);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)),O.toString=function(){return e+""},O}return{format:x,formatPrefix:function(e,t){var r=x(((e=(0,l.Z)(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-n),o=p[8+n/3];return function(e){return r(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(39801);function i(e){return(e=(0,n.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,r){"use strict";function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.d(t,{V:function(){return i},Z:function(){return n}})},52328:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=n.exec(e)))throw Error("invalid format: "+e);return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var r=Array(e),n=0;n0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(r,n,i){if(i===e.length-1){var a=l(n,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),r.concat(a)}return r.concat(function(e,r,n){var i,a=[];if("L"===r.type||"Q"===r.type||"C"===r.type)a=a.concat((i=[[e.x,e.y]],null!=r.x1&&i.push([r.x1,r.y1]),null!=r.x2&&i.push([r.x2,r.y2]),i.push([r.x,r.y]),(function(e,t){for(var r=[],n=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,n):a.length0)for(var r=0;r=1?(r=1,t-1):Math.floor(r*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||r<-180?r-360*Math.round(r/360):r):(0,n.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,r){var i,o,a;return r-t?(i=t,o=r,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,n.Z)(isNaN(t)?r:t)}}function s(e,t){var r=t-e;return r?i(e,r):(0,n.Z)(isNaN(e)?t:e)}},88992:function(e,t,r){"use strict";function n(e){return function(){return e}}r.d(t,{Z:function(){return n}})},77636:function(e,t,r){"use strict";r.d(t,{B:function(){return f},Z:function(){return d}});var n=r(40948),i=r(68847),o=r(10810),a=-1.78277*.29227-.1347134789;function s(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,r=e.g/255,n=e.b/255,s=(a*n+-1.7884503806*t-3.5172982438*r)/(a+-1.7884503806-3.5172982438),u=n-s,c=-((1.97294*(r-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,r,null==n?1:n)}function l(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}(0,n.Z)(l,s,(0,n.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+r*(-.14861*n+1.78277*a)),255*(t+r*(-.29227*n+-.90649*a)),255*(t+1.97294*n*r),this.opacity)}}));var u=r(1234);function c(e){return function t(r){function n(t,n){var i=e((t=s(t)).h,(n=s(n)).h),o=(0,u.ZP)(t.s,n.s),a=(0,u.ZP)(t.l,n.l),l=(0,u.ZP)(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,r)),t.opacity=l(e),t+""}}return r=+r,n.gamma=t,n}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,r){"use strict";function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.d(t,{Z:function(){return n}})},87286:function(e,t,r){"use strict";r.d(t,{b:function(){return a}});var n=r(20966),i=r(1234);function o(e){return function(t,r){var o=e((t=(0,n.Uc)(t)).h,(r=(0,n.Uc)(r)).h),a=(0,i.ZP)(t.c,r.c),s=(0,i.ZP)(t.l,r.l),l=(0,i.ZP)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(68847),i=r(1234);function o(e){return function(t,r){var o=e((t=(0,n.Ym)(t)).h,(r=(0,n.Ym)(r)).h),a=(0,i.ZP)(t.s,r.s),s=(0,i.ZP)(t.l,r.l),l=(0,i.ZP)(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,r){"use strict";r.r(t),r.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return P.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return C},interpolateZoom:function(){return _},piecewise:function(){return R.Z},quantize:function(){return D}});var n,i,o,a,s=r(69777),l=r(47639),u=r(67855),c=r(6984),d=r(91255);function f(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var h=r(1234);function p(e,t){var r=(0,h.wx)(+e,+t);return function(e){var t=r(e);return t-360*Math.floor(t/360)}}var m=r(98876),v=r(43289),g=r(73363),y=r(74672),x=r(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,r,n,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,n)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+n),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,n)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+n),!function(e,t,r,n,o,a){if(e!==r||t!==n){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,r)},{i:s-2,x:(0,m.Z)(t,n)})}else(1!==r||1!==n)&&o.push(i(o)+"scale("+r+","+n+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,r=-1,n=f.length;++rc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,n.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=n-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((r-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%n+n),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=r)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,r){"use strict";function n(e,t){return et?1:e>=t?0:NaN}r.d(t,{Z:function(){return n}})},98038:function(e,t,r){"use strict";r.d(t,{ZP:function(){return l}});var n=r(1169);function i(e){let t=e,r=e;function i(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>(0,n.Z)(e(t),r)),{left:i,center:function(e,r,n,o){null==n&&(n=0),null==o&&(o=e.length);let a=i(e,r,n,o-1);return a>n&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}var o=r(81048);let a=i(n.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,r){"use strict";function n(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 r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}r.d(t,{K:function(){return i},Z:function(){return n}})},33907:function(e,t,r){"use strict";function n(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r=i)&&(r=i)}return r}function i(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.d(t,{Z:function(){return l},s:function(){return u}});var o=r(1169);function a(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}var s=r(81048);function l(e,t,r){if(l=(e=Float64Array.from((0,s.K)(e,r))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return n(e);var l,u=(l-1)*t,c=Math.floor(u),d=n((function e(t,r,n=0,i=t.length-1,s=o.Z){for(;i>n;){if(i-n>600){let o=i-n+1,a=r-n+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(n,Math.floor(r-a*u/o+c)),f=Math.min(i,Math.floor(r+(o-a)*u/o+c));e(t,r,d,f,s)}let o=t[r],l=n,u=i;for(a(t,n,r),s(t[i],o)>0&&a(t,n,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[n],o)?a(t,n,u):a(t,++u,i),u<=r&&(n=u+1),r<=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,r=s.Z){if(n=e.length){if((t=+t)<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,r){"use strict";r.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var n=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,r){var n,i,o,a,l=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/a),n=Math.round(t/a);for(r*at&&--n,o=Array(i=n-r+1);++lt&&--n,o=Array(i=n-r+1);++l=0?(l>=n?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=n?10:l>=i?5:l>=o?2:1)}function l(e,t,r){var a=Math.abs(t-e)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=n?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function E(e,t,r){var n=v.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function k(e,t,r){var n=v.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function C(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function O(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _(e,t,r){var n=v.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function M(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function A(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function P(e,t,r){var n=v.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function T(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function N(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function R(e,t,r){var n=v.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function D(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function L(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function F(e,t,r){var n=v.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Z(e,t,r){var n=v.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function V(e,t,r){var n=v.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function z(e,t,r){var n=g.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function I(e,t,r){var n=v.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function B(e,t,r){var n=v.exec(t.slice(r));return n?(e.s=+n[0],r+n[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 $(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function q(e,t){return x(e.getMilliseconds(),t,3)}function Y(e,t){return q(e,t)+"000"}function G(e,t){return x(e.getMonth()+1,t,2)}function K(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return x(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),x(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function er(e){return e.getDay()}function en(e,t){return x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var r=e.getDay();return x((e=r>=4||0===r?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function eE(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eC(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function eS(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var r=e.getUTCDay();return x((e=r>=4||0===r?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function e_(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eP(e){return Math.floor(+e/1e3)}i=(n=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),x=w(o),b=j(o),ee=w(c),eb=j(c),eT=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:$,L:q,m:G,M:K,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eP,S:X,u:J,U:Q,V:et,w:er,W:en,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eC,G:eO,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eA,s:eP,S:eg,u:ey,U:ex,V:ew,w:ej,W:eE,x:null,X:null,y:ek,Y:eS,Z:e_,"%":eM},eZ={a:function(e,t,r){var n=ee.exec(t.slice(r));return n?(e.w=eb.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=x.exec(t.slice(r));return n?(e.w=b.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=eR.exec(t.slice(r));return n?(e.m=eD.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=eT.exec(t.slice(r));return n?(e.m=eN.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return eI(e,t,r,n)},d:N,e:N,f:V,g:M,G:_,H:D,I:D,j:R,L:Z,m:T,M:L,p:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.p=y.get(n[0].toLowerCase()),r+n[0].length):-1},q:P,Q:I,s:B,S:F,u:k,U:C,V:S,w:E,W:O,x:function(e,t,n){return eI(e,r,t,n)},X:function(e,t,r){return eI(e,n,t,r)},y:M,Y:_,Z:A,"%":z};function eV(e,t){return function(r){var n,i,o,a=[],s=-1,l=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(n):(0,a.l6)(n),n=s.Z.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(n):(0,l.wA)(n),n=u.Z.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eI(e,t,r,n){for(var i,o,a=0,s=t.length,l=r.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eZ[(i=t.charAt(a++))in m?t.charAt(a++):i])||(n=o(e,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return eL.x=eV(r,eL),eL.X=eV(n,eL),eL.c=eV(t,eL),eF.x=eV(r,eF),eF.X=eV(n,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=ez(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=ez(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,n.parse,o=n.utcFormat,n.utcParse},48623:function(e,t,r){"use strict";r.d(t,{Z:function(){return o},x:function(){return a}});var n=r(22274),i=r(34130);function o(){var e,t,r=(0,i.Z)().unknown(void 0),a=r.domain,s=r.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var r=a().length,n=ut&&(r=e,e=t,t=r),g=function(r){return Math.max(e,Math.min(t,r))}),n=i>2?f:d,c=h=null,x}function x(t){return null==t||isNaN(t=+t)?r:(c||(c=n(p.map(e),m,v)))(e(g(t)))}return x.invert=function(r){return g(t((h||(h=n(m,p.map(e),o.Z)))(r)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(r=e,x):r},function(r,n){return e=r,t=n,y()}}function m(){return p()(u,u)}},79870:function(e,t,r){"use strict";r.r(t),r.d(t,{scaleBand:function(){return n.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,a.Q)(_()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(_());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,o.Z),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(n)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return n.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],r=y.yR;function n(e){if(null!=e&&!isNaN(e=+e))return r(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r=+r)||t.push(r);return t.sort(C.Z),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(0,S.Z)(t,n/e))},n.copy=function(){return e(r).domain(t)},x.O.apply(n,arguments)}},scaleSequentialSqrt:function(){return E},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return P.Z}});var n=r(48623),i=r(93963),o=r(5497),a=r(13641),s=r(46494),l=r(34130),u=r(72851),c=r(19637),d=r(96417),f=r(73408),h=r(74995),p=r(37932),m=r(83803),v=r(69777),g=r(74672),y=r(70552),x=r(22274);function b(){var e,t,r,n,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===r?.5:(t=(n(t)-e)*r,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var r,n;return arguments.length?([r,n]=t,s=e(r,n),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=n(o=+o),t=n(a=+a),r=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return n=i,e=i(o),t=i(a),r=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 E(){return j.apply(null,arguments).exponent(.5)}var k=r(98038),C=r(1169),S=r(33907),O=r(87475);function _(){var e,t,r,n,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,n.G9)(u,c,r))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,r){"use strict";r.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var n=r(32071),i=r(11192),o=r(10070),a=r(70552),s=r(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,r,a=e(l,u),s=a.domain,p=10;function m(){var n,i;return t=(n=p)===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(e){return Math.log(e)/n}),r=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),r=h(r),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=r(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=r(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:r[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([r,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var n=r(98038),i=r(93963),o=r(22274)},19637:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(){var t,r=(0,n.ZP)(),l=[0,1],u=!1;function c(e){var n,i=Math.sign(n=r(e))*Math.sqrt(Math.abs(n));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return r.invert(s(e))},c.domain=function(e){return arguments.length?(r.domain(e),c):r.domain()},c.range=function(e){return arguments.length?(r.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(r.clamp(e),c):r.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(r.domain(),l).round(u).clamp(r.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var n=r(70552),i=r(22274),o=r(93963),a=r(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,r){"use strict";r.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var n=r(93963),i=r(70552),o=r(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,r=e(a(1),s(t));return r.constant=function(r){return arguments.length?e(a(t=+r),s(t)):t},(0,n.Q)(r)}},74995:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(){var t,r=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,n.ZP)(r,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((r=Array.from(e)).length,o.length-1),s):r.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(r.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[r[t-1],r[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(r).range(o).unknown(t)},i.o.apply(s,arguments)}}});var n=r(98038),i=r(22274)},62498:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(32071),i=r(52328),o=r(23733),a=r(11192);function s(e,t,r,s){var l,u,c,d=(0,n.ly)(e,t,r);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},37932:function(e,t,r){"use strict";r.d(t,{Y:function(){return g},Z:function(){return y}});var n=r(1381),i=r(97344),o=r(50690),a=r(76231),s=r(68603),l=r(54076),u=r(18450),c=r(52546),d=r(61743),f=r(70552),h=r(22274),p=r(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,r,n,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),E=u("%b %d"),k=u("%B"),C=u("%Y");function S(e){return(l(e)P*P+T*T&&(C=O,S=_),{cx:C,cy:S,x01:-d,y01:-f,x11:C*(i/j-1),y11:S*(i/j-1)}}function f(){var e=a,t=s,r=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,n.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,j=c,E=u,k=c,C=g,S=g,O=m.apply(this,arguments)/2,_=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+r.apply(this,arguments)),A=M,P=M;if(_>o.Ho){var T=(0,o.ZR)(_/s*(0,o.O$)(O)),N=(0,o.ZR)(_/l*(0,o.O$)(O));(C-=2*T)>o.Ho?(T*=y?1:-1,E+=T,k-=T):(C=0,E=k=(u+c)/2),(S-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(S=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var Z,V=l*(0,o.mC)(j),z=l*(0,o.O$)(j),I=s*(0,o.mC)(E),B=s*(0,o.O$)(E);if(go.Ho?P>o.Ho?(x=d(I,B,R,D,l,P,y),b=d(V,z,L,F,l,P,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Po.Ho&&C>o.Ho?A>o.Ho?(x=d(L,F,V,z,s,-A,y),b=d(R,D,I,B,s,-A,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+r(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(r){return arguments.length?(e="function"==typeof r?r:(0,i.Z)(+r),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?(r="function"==typeof e?e:(0,i.Z)(+e),l=null,h):r},h.y0=function(e){return arguments.length?(r="function"==typeof e?e:(0,i.Z)(+e),h):r},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(r)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(r)},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,r){"use strict";r.d(t,{t:function(){return n}});var n=Array.prototype.slice},33554:function(e,t,r){"use strict";function n(e){return function(){return e}}r.d(t,{Z:function(){return n}})},46385:function(e,t,r){"use strict";function n(e,t,r){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-r),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}r.d(t,{pC:function(){return i},xm:function(){return n}}),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:n(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:n(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 r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},20651:function(e,t,r){"use strict";function n(e){this._context=e}function i(e){return new n(e)}r.d(t,{Z:function(){return i}}),n.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,r){"use strict";function n(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function i(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function o(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}r.d(t,{Z:function(){return u},s:function(){return c}}),a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,r=n(this,e,t)),r);break;default:o(this,this._t0,r=n(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}}},23165:function(e,t,r){"use strict";r.d(t,{Z:function(){return o},j:function(){return n}});var n=o(r(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,r){"use strict";function n(e,t){this._context=e,this._t=t}function i(e){return new n(e,.5)}function o(e){return new n(e,0)}function a(e){return new n(e,1)}r.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),n.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}}},59207:function(e,t,r){"use strict";r.r(t),r.d(t,{arc:function(){return n.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return E},curveBasisClosed:function(){return C},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return Z},curveCatmullRomClosed:function(){return z},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return $.Z},curveMonotoneY:function(){return $.s},curveNatural:function(){return G},curveStep:function(){return K.ZP},curveStepAfter:function(){return K.cD},curveStepBefore:function(){return K.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return er.Z},stackOrderAppearance:function(){return en.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var n=r(38764),i=r(79493),o=r(79767),a=r(69619),s=r(23165),l=r(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,r=e.lineX0,n=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(r())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(n())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=r(3326),d=r(72215),f=r(24037),h=r(62628),p=r(9135),m=r(82893),v=r(44523),g=r(86707),y=r(42965),x=r(60598);function b(){}function w(e,t,r){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+r)/6)}function j(e){this._context=e}function E(e){return new j(e)}function k(e){this._context=e}function C(e){return new k(e)}function S(e){this._context=e}function O(e){return new S(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}},k.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},S.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);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,r=e.length-1;if(r>0)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+n*a),this._beta*t[l]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function r(e){return 1===t?new j(e):new _(e,t)}return r.beta=function(t){return e(+t)},r}(.85),A=r(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,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var T=function e(t){function r(e){return new P(e,t)}return r.tension=function(t){return e(+t)},r}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function r(e){return new N(e,t)}return r.tension=function(t){return e(+t)},r}(0),D=r(15);function L(e,t,r){var n=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z=function e(t){function r(e){return t?new F(e,t):new A.pC(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var z=function e(t){function r(e){return t?new V(e,t):new P(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function r(e){return t?new I(e,t):new N(e,0)}return r.alpha=function(t){return e(+t)},r}(.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=r(20651),$=r(27266);function q(e){this._context=e}function Y(e){var t,r,n=e.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[n-1]=(e[n]+i[n-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,r){"use strict";function n(e,t){if((s=e.length)>0)for(var r,n,i,o,a,s,l=0,u=e[t[0]].length;l0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=a,n[0]=a+=i):(n[0]=0,n[1]=i)}r.d(t,{Z:function(){return n}})},22254:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(90541);function i(e,t){if((i=e.length)>0){for(var r,i,o,a=0,s=e[0].length;a1)for(var r,n,i,o=1,a=e[t[0]],s=a.length;o0){for(var r,i=0,o=e[t[0]],a=o.length;i0&&(i=(r=e[t[0]]).length)>0){for(var r,i,o,a=0,s=1;so&&(o=t,n=r);return n}},19721:function(e,t,r){"use strict";r.d(t,{S:function(){return o},Z:function(){return i}});var n=r(81182);function i(e){var t=e.map(o);return(0,n.Z)(e).sort(function(e,r){return t[e]-t[r]})}function o(e){for(var t,r=0,n=-1,i=e.length;++n=0;)r[t]=t;return r}r.d(t,{Z:function(){return n}})},40277:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(81182);function i(e){return(0,n.Z)(e).reverse()}},69619:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=r(15);function s(){var e=o,t=i,r=null,s=(0,n.Z)(0),l=(0,n.Z)(a.BZ),u=(0,n.Z)(0);function c(n){var i,o,c,d,f,h=n.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,r){return t(v[e],v[r])}):null!=r&&m.sort(function(e,t){return r(n[e],n[t])}),i=0,c=p?(y-h*b)/p:0;i0?f*c:0)+b,v[o]={data:n[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,r=null,c):t},c.sort=function(e){return arguments.length?(r=e,t=null,c):r},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,n.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,n.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,n.Z)(+e),c):u},c}},11053:function(e,t,r){"use strict";function n(e){return e[0]}function i(e){return e[1]}r.d(t,{x:function(){return n},y:function(){return i}})},3326:function(e,t,r){"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.d(t,{Z:function(){return n}})},98926:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(72299),i=r(33554),o=r(90541),a=r(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,r=o.Z,l=s;function u(n){var i,o,a=e.apply(this,arguments),s=n.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,r){"use strict";r.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return n},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let n=1e3,i=6e4,o=36e5,a=864e5,s=6048e5,l=2592e6,u=31536e6},54076:function(e,t,r){"use strict";r.d(t,{i:function(){return a}});var n=r(22179),i=r(1514),o=(0,n.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,r){"use strict";r.r(t),r.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return n.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var n=r(22179),i=r(30356),o=r(52546),a=r(18450),s=r(54076),l=r(68603),u=r(76231),c=r(50690),d=r(97344),f=r(52004),h=r(28239),p=r(12370),m=r(97631),v=r(94758),g=r(2908),y=r(1381)},22179:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(t,r,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),r(e,1),t(e),e},s.round=function(e){var t=s(e),r=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),r(e,i),t(e);while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;r(e,-1),!n(e););else for(;--t>=0;)for(;r(e,1),!n(e););}})},o&&(s.count=function(e,r){return n.setTime(+e),i.setTime(+r),t(n),t(i),Math.floor(o(n,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var n=new Date,i=new Date},30356:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(22179),i=(0,n.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,n.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,r){"use strict";r.d(t,{L:function(){return a}});var n=r(22179),i=r(1514),o=(0,n.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,r){"use strict";r.d(t,{e:function(){return i}});var n=(0,r(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=n;var i=n.range},52546:function(e,t,r){"use strict";r.d(t,{m:function(){return a}});var n=r(22179),i=r(1514),o=(0,n.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,r){"use strict";r.d(t,{_g:function(){return C},jK:function(){return k},jo:function(){return E},WG:function(){return j}});var n=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,r){var a=Math.abs(t-e)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=n?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>{var n;return(n=e(t))r?1:n>=r?0:NaN}),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,r/s.qz,n));if(0===o)return l.Z.every(Math.max(a(t,r,n),1));let[u,d]=c[i/c[o-1][2]0?(0,n.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,r){"use strict";r.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var n=r(22179),i=r(1514);function o(e){return(0,n.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});var n=r(22179),i=(0,n.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,n.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},t.Z=i;var o=i.range},36386:function(e){function t(e,t,r){function n(){var u=Date.now()-s;u=0?i=setTimeout(n,t-u):(i=null,r||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=r&&!i;return i||(i=setTimeout(n,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},92683:function(e,t,r){"use strict";r.d(t,{TA:function(){return Z}});var n=r(2784),i=r(78435),o=r.n(i),a=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,r){return e.concat(t).map(function(e){return l(e,r)})}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||u,r.isMergeableObject=r.isMergeableObject||a;var n,i,o=Array.isArray(t);return o!==Array.isArray(e)?l(t,r):o?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=c(e[r],t[r],n):i[r]=l(t[r],n)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return c(e,r,t)},{})};var d=c,f=r(36394),h=r(32991),p=function(e){return(0,h.Z)(e,4)},m=r(25079),v=r(43737),g=r(52059),y=r(81470),x=r(11620),b=r(14551),w=r(16601),j=function(e){return(0,g.Z)(e)?(0,m.Z)(e,b.Z):(0,y.Z)(e)?[e]:(0,v.Z)((0,x.Z)((0,w.Z)(e)))},E=function(e,t){};function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function S(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(73463);var O=function(e){return Array.isArray(e)&&0===e.length},_=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},A=function(e){return"[object String]"===Object.prototype.toString.call(e)},P=function(e){return M(e)&&_(e.then)};function T(e,t,r,n){void 0===n&&(n=0);for(var i=j(t);e&&n=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}var R=(0,n.createContext)(void 0);function D(e,t){switch(t.type){case"SET_VALUES":return k({},e,{values:t.payload});case"SET_TOUCHED":return k({},e,{touched:t.payload});case"SET_ERRORS":if(o()(e.errors,t.payload))return e;return k({},e,{errors:t.payload});case"SET_STATUS":return k({},e,{status:t.payload});case"SET_ISSUBMITTING":return k({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return k({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return k({},e,{values:N(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return k({},e,{touched:N(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return k({},e,{errors:N(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return k({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return k({},e,{touched:function e(t,r,n,i){void 0===n&&(n=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var o,a=o;T(t,a.path)||(t=N(t,a.path,a.message))}}return t}(r)):t(r)})})},[v.validationSchema]),z=(0,n.useCallback)(function(e,t){return new Promise(function(r){return r(j.current[e].validate(t))})},[]),B=(0,n.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 z(t,T(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=N(e,t[n],r)),e},{})})},[z]),H=(0,n.useCallback)(function(e){return Promise.all([B(e),v.validationSchema?Z(e):{},v.validate?R(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return d.all([t,r,n],{arrayMerge:V})})},[v.validate,v.validationSchema,B,R,Z]),U=I(function(e){return void 0===e&&(e=S.values),O({type:"SET_ISVALIDATING",payload:!0}),H(e).then(function(e){return w.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e})});(0,n.useEffect)(function(){l&&!0===w.current&&o()(g.current,v.initialValues)&&U(g.current)},[l,U]);var W=(0,n.useCallback)(function(e){var t=e&&e.values?e.values:g.current,r=e&&e.errors?e.errors:y.current?y.current:v.initialErrors||{},n=e&&e.touched?e.touched:x.current?x.current:v.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:v.initialStatus;g.current=t,y.current=r,x.current=n,b.current=i;var o=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(S.values,ec);P(a)?a.then(o):o()}else o()},[v.initialErrors,v.initialStatus,v.initialTouched]);(0,n.useEffect)(function(){!0===w.current&&!o()(g.current,v.initialValues)&&(h&&(g.current=v.initialValues,W()),l&&U(g.current))},[h,v.initialValues,W,l,U]),(0,n.useEffect)(function(){h&&!0===w.current&&!o()(y.current,v.initialErrors)&&(y.current=v.initialErrors||L,O({type:"SET_ERRORS",payload:v.initialErrors||L}))},[h,v.initialErrors]),(0,n.useEffect)(function(){h&&!0===w.current&&!o()(x.current,v.initialTouched)&&(x.current=v.initialTouched||F,O({type:"SET_TOUCHED",payload:v.initialTouched||F}))},[h,v.initialTouched]),(0,n.useEffect)(function(){h&&!0===w.current&&!o()(b.current,v.initialStatus)&&(b.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))},[h,v.initialStatus,v.initialTouched]);var $=I(function(e){if(j.current[e]&&_(j.current[e].validate)){var t=T(S.values,e),r=j.current[e].validate(t);return P(r)?(O({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),Z(S.values,e).then(function(e){return e}).then(function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),q=(0,n.useCallback)(function(e,t){var r=t.validate;j.current[e]={validate:r}},[]),Y=(0,n.useCallback)(function(e){delete j.current[e]},[]),G=I(function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?U(S.values):Promise.resolve()}),K=(0,n.useCallback)(function(e){O({type:"SET_ERRORS",payload:e})},[]),X=I(function(e,t){var n=_(e)?e(S.values):e;return O({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?U(n):Promise.resolve()}),J=(0,n.useCallback)(function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=I(function(e,t,n){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?U(N(S.values,e,t)):Promise.resolve()}),ee=(0,n.useCallback)(function(e,t){var r,n=t,i=e;if(!A(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;n=t||s||l,i=/number|range/.test(a)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(T(S.values,n),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&Q(n,i)},[Q,S.values]),et=I(function(e){if(A(e))return function(t){return ee(t,e)};ee(e)}),er=I(function(e,t,r){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?a:r)?U(S.values):Promise.resolve()}),en=(0,n.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,er(t||n||i,!0)},[er]),ei=I(function(e){if(A(e))return function(t){return en(t,e)};en(e)}),eo=(0,n.useCallback)(function(e){_(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),ea=(0,n.useCallback)(function(e){O({type:"SET_STATUS",payload:e})},[]),es=(0,n.useCallback)(function(e){O({type:"SET_ISSUBMITTING",payload:e})},[]),el=I(function(){return O({type:"SUBMIT_ATTEMPT"}),U().then(function(e){var t,r=e instanceof Error;if(!r&&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&&O({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw O({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(O({type:"SUBMIT_FAILURE"}),r))throw e})}),eu=I(function(e){e&&e.preventDefault&&_(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:U,validateField:$,setErrors:K,setFieldError:J,setFieldTouched:er,setFieldValue:Q,setStatus:ea,setSubmitting:es,setTouched:G,setValues:X,setFormikState:eo,submitForm:el},ed=I(function(){return p(S.values,ec)}),ef=I(function(e){e&&e.preventDefault&&_(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&_(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,n.useCallback)(function(e){return{value:T(S.values,e),error:T(S.errors,e),touched:!!T(S.touched,e),initialValue:T(g.current,e),initialTouched:!!T(x.current,e),initialError:T(y.current,e)}},[S.errors,S.touched,S.values]),ep=(0,n.useCallback)(function(e){return{setValue:function(t,r){return Q(e,t,r)},setTouched:function(t,r){return er(e,t,r)},setError:function(t){return J(e,t)}}},[Q,er,J]),em=(0,n.useCallback)(function(e){var t=M(e),r=t?e.name:e,n=T(S.values,r),i={name:r,value:n,onChange:et,onBlur:ei};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[ei,et,S.values]),ev=(0,n.useMemo)(function(){return!o()(g.current,S.values)},[g.current,S.values]),eg=(0,n.useMemo)(function(){return void 0!==u?ev?S.errors&&0===Object.keys(S.errors).length:!1!==u&&_(u)?u(v):u:S.errors&&0===Object.keys(S.errors).length},[u,ev,S.errors,v]);return k({},S,{initialValues:g.current,initialErrors:y.current,initialTouched:x.current,initialStatus:b.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:K,setFormikState:eo,setFieldTouched:er,setFieldValue:Q,setFieldError:J,setStatus:ea,setSubmitting:es,setTouched:G,setValues:X,submitForm:el,validateForm:U,validateField:$,isValid:eg,dirty:ev,unregisterField:Y,registerField:q,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:a,validateOnChange:r,validateOnMount:l})}function V(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var o=!1!==r.clone&&r.isMergeableObject(t);n[i]=o?d(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=d(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var z="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function I(e){var t=(0,n.useRef)(e);return z(function(){t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;ne?t:e},0);return Array.from(k({},e,{length:t+1}))};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)(function(r){var i=N(r.values,o,e(T(r.values,o))),a=n?("function"==typeof n?n:e)(T(r.errors,o)):void 0,s=t?("function"==typeof t?t:e)(T(r.touched,o)):void 0;return O(a)&&(a=void 0),O(s)&&(s=void 0),k({},r,{values:i,errors:n?N(r.errors,o,a):r.errors,touched:t?N(r.touched,o,s):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat($(t),[(0,h.Z)(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return H(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return B(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return U(r,e,t)},function(t){return U(t,e,null)},function(t){return U(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return W(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(S(r)),r.pop=r.pop.bind(S(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(T(e.formik.values,e.name),T(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?$(r):[];return t||(t=n[e]),_(n.splice)&&n.splice(e,1),n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,i=t.render,o=t.children,a=t.name,s=C(t.formik,["validate","validationSchema"]),l=k({},e,{form:s,name:a});return r?(0,n.createElement)(r,l):i?i(l):o?"function"==typeof o?o(l):0===n.Children.count(o)?null:n.Children.only(o):null},t})(n.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,r){"use strict";var n=r(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),v=0;v>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},39515:function(e,t,r){var n=r(38761)(r(37772),"DataView");e.exports=n},89612:function(e,t,r){var n=r(52118),i=r(96909),o=r(98138),a=r(4174),s=r(7942);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ti?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=i?e:n(e,t,r)}},24019:function(e,t,r){var n=r(37772)["__core-js_shared__"];e.exports=n},55463:function(e){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},83126:function(e,t,r){var n=r(23895),i=r(33880),o=r(8435),a=r(66188);e.exports=function(e){return function(t){var r=i(t=a(t))?o(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,r){var n=r(81207),i=r(97329),o=r(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},61655:function(e,t,r){var n=r(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},83043:function(e,t,r){var n=r(38761),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},74871:function(e,t,r){var n=r(45386),i=r(87064),o=r(59950);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,r){var n=r(22218);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},92411:function(e,t,r){var n=r(89612),i=r(80235),o=r(10326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},36417:function(e,t,r){var n=r(27937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).get(e)}},18052:function(e,t,r){var n=r(27937);e.exports=function(e){return n(this,e).has(e)}},24150:function(e,t,r){var n=r(27937);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},73477:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},77777:function(e,t,r){var n=r(30733);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},99191:function(e,t,r){var n=r(38761)(Object,"create");e.exports=n},54248:function(e,t,r){var n=r(60241)(Object.keys,Object);e.exports=n},4146:function(e,t,r){e=r.nmd(e);var n=r(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},37772:function(e,t,r){var n=r(51242),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},52842:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:function(e){e.exports=function(e){return this.__data__.has(e)}},16909:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},15243:function(e,t,r){var n=r(80235);e.exports=function(){this.__data__=new n,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,r){var n=r(80235),i=r(10326),o=r(96738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},8435:function(e,t,r){var n=r(50217),i=r(33880),o=r(63344);e.exports=function(e){return i(e)?o(e):n(e)}},54452:function(e,t,r){var n=r(77777),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=a},33812:function(e,t,r){var n=r(4795),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},87035:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},63344:function(e){var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+n+"]",u="[^"+t+o+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+u+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",x="(?:"+["["+r+"]",c,d].join("|")+")"+(g+v+y),b=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},96009:function(e,t,r){var n=r(82108),i=r(34311)(function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)});e.exports=i},82108:function(e,t,r){var n=r(66188),i=r(23779);e.exports=function(e){return i(n(e).toLowerCase())}},54073:function(e,t,r){var n=r(29259),i=r(61100),o=r(7642),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,f,h,p=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,p=t,d=e.apply(n,r)}function x(e){var r=e-h,n=e-p;return void 0===h||r>=t||r<0||v&&n>=c}function b(){var e,r,n,o=i();if(x(o))return w(o);f=setTimeout(b,(e=o-h,r=o-p,n=t-e,v?s(n,c-r):n))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,r=i(),n=x(r);if(l=arguments,u=this,h=r,n){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(o(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,r){var n=r(61655),i=r(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},72579:function(e,t,r){var n=r(13324);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},93352:function(e,t,r){var n=r(32726),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},95041:function(e,t,r){var n=r(20187),i=r(1369);e.exports=function(e,t){return null!=e&&i(e,t,n)}},23059:function(e){e.exports=function(e){return e}},79631:function(e,t,r){var n=r(15183),i=r(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,r){var n=r(61049),i=r(61158);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},73226:function(e,t,r){e=r.nmd(e);var n=r(37772),i=r(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,r){var n=r(53366),i=r(29259);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},77598:function(e,t,r){var n=r(35522),i=r(47826),o=r(4146),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},90249:function(e,t,r){var n=r(1634),i=r(86411),o=r(67878);e.exports=function(e){return o(e)?n(e):i(e)}},19950:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,t(e,i,o),e)}),r}},34519:function(e,t,r){var n=r(13940),i=r(26548),o=r(68286);e.exports=function(e,t){var r={};return t=o(t,3),i(e,function(e,i,o){n(r,i,t(e,i,o))}),r}},30733:function(e,t,r){var n=r(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},61100:function(e,t,r){var n=r(37772);e.exports=function(){return n.Date.now()}},65798:function(e,t,r){var n=r(20256),i=r(82952),o=r(21401),a=r(33812);e.exports=function(e){return o(e)?n(a(e)):i(e)}},57370:function(e,t,r){var n=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=n},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},7642:function(e,t,r){var n=r(51704),i=r(29259),o=r(4795),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},66188:function(e,t,r){var n=r(1054);e.exports=function(e){return null==e?"":n(e)}},23779:function(e,t,r){var n=r(83126)("toUpperCase");e.exports=n},11618:function(e,t,r){var n=r(45981),i=r(83559),o=r(66188),a=r(75304);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},53207:function(e,t,r){var n=r(96570);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},66655:function(e,t,r){"use strict";var n=r(72346);function i(e,t){for(var r=0;rp.length-2?p.length-1:e.length-l;r>0;r--)if(void 0!==p[r])for(i=0;i0&&kr)s.push(e);else{for(;r>=i&&!c||c&&i1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},38617:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,n.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,n.useContext)(s))&&void 0!==e?e:l},c=e=>(0,n.useContext)(s)?n.createElement(n.Fragment,null,e.children):n.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:x})=>{let[b,w]=(0,n.useState)(()=>p(l,c)),[j,E]=(0,n.useState)(()=>p(l)),k=g?Object.values(g):u,C=(0,n.useCallback)(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=v());let o=g?g[n]:n,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(n)?n:e;l.style.colorScheme=t}null==s||s()},[]),S=(0,n.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,n.useCallback)(t=>{E(v(t)),"system"===b&&r&&!e&&C("system")},[b,e]);(0,n.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,n.useEffect)(()=>{let e=e=>{e.key===l&&S(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),(0,n.useEffect)(()=>{C(null!=e?e:b)},[e,b]);let _=(0,n.useMemo)(()=>({theme:b,setTheme:S,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:r?[...u,"system"]:u,systemTheme:r?j:void 0}),[b,S,e,j,r,u]);return n.createElement(s.Provider,{value:_},n.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:x}),y)},h=(0,n.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&n&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},93542:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(42351)},86570:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(65047)}])},7513:function(e,t,r){"use strict";r.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var n=r(52322),i=r(35627),o=r(82851),a=r(65304);function s(e){let{currentPage:t,parentPage:r,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==r?void 0:r.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,n.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:r,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=r.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||r.namespace===(null==t?void 0:t.namespace))return(0,n.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(r.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:r,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=r.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||r.namespace===(null==t?void 0:t.namespace))return(0,n.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(r.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:r,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,n.jsx)(a.mY.Group,{heading:l&&(null==r?void 0:r.namespace)!==o.namespace&&(0,n.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}r(2784)},63328:function(e,t,r){"use strict";r.d(t,{F:function(){return y}});var n=r(52322),i=r(7513);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:r}=e;return(0,n.jsx)(i.fu,{currentPage:r,commandPage:o,children:a.map(e=>(0,n.jsx)(i.WD,{currentPage:r,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=r(54494),u=r(32088);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:r}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,n.jsx)(i.fu,{currentPage:r,commandPage:c,children:(0,n.jsx)(i.WD,{currentPage:r,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:r,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,n.jsx)(i.Ul,{currentPage:r,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{currentPage:t,select:r}),(0,n.jsx)(d,{currentPage:t,select:r})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:r,pushPage:a,select:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Ul,{currentPage:t,parentPage:r,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,n.jsx)(f,{currentPage:t,parentPage:r,commandPage:p,select:s})]})}var v=r(65717),g=r(2784);function y(e){let{currentPage:t,parentPage:r,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{parentPage:r,currentPage:t,pushPage:i,select:l}),(0,n.jsx)(h,{currentPage:t,select:l})]})}},4300:function(e,t,r){"use strict";r.d(t,{_:function(){return i},h:function(){return o}});var n=r(79338);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=n.ay},99634:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});let n=(0,r(60381).XB)(15)},29703:function(e,t,r){"use strict";r.d(t,{iV:function(){return j},ZR:function(){return w}});var n=r(52322),i=r(2784),o=r(35627),a=r(60381),s=r(83906),l=r(6391),u=r.n(l);let c=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],d={pinnedCurrency:"",pinnedThreshold:new(u())(0),shouldPinStoragePrice:!1,storagePricePinned:new(u())(0),shouldPinEgressPrice:!1,egressPricePinned:new(u())(0),shouldPinIngressPrice:!1,ingressPricePinned:new(u())(0),shouldPinMaxCollateral:!1,maxCollateralPinned:new(u())(0)},f={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,priceTableValidity:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:"",...d};function h(e){let{settings:t,settingsPinned:r}=e,n=null;return"duckdns"===t.ddns.provider&&(n={dnsDuckDnsToken:t.ddns.options.token}),"noip"===t.ddns.provider&&(n={dnsNoIpEmail:t.ddns.options.email,dnsNoIpPassword:t.ddns.options.password}),"route53"===t.ddns.provider&&(n={dnsAwsId:t.ddns.options.id,dnsAwsSecret:t.ddns.options.secret,dnsAwsZoneId:t.ddns.options.zoneID}),"cloudflare"===t.ddns.provider&&(n={dnsCloudflareToken:t.ddns.options.token,dnsCloudflareZoneId:t.ddns.options.zoneID}),{acceptingContracts:t.acceptingContracts,netAddress:t.netAddress,maxContractDuration:new(u())(t.maxContractDuration).div((0,a.S5)(1)),contractPrice:(0,a.ll)(t.contractPrice,6),baseRPCPrice:(0,a.ll)((0,s.sS)(t.baseRPCPrice),6),sectorAccessPrice:(0,a.ll)((0,s.nS)(t.sectorAccessPrice),6),collateralMultiplier:new(u())(t.collateralMultiplier),maxCollateral:(0,a.ll)(t.maxCollateral,6),storagePrice:(0,a.ll)((0,s.SY)(t.storagePrice),6),egressPrice:(0,a.ll)((0,s.B1)(t.egressPrice),6),ingressPrice:(0,a.ll)((0,s.dK)(t.ingressPrice),6),priceTableValidity:new(u())(t.priceTableValidity).div(1e9).div(60),accountExpiry:new(u())(t.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,a.ll)(t.maxAccountBalance,6),ingressLimit:(0,a.BT)(new(u())(t.ingressLimit)),egressLimit:(0,a.BT)(new(u())(t.egressLimit)),dnsProvider:t.ddns.provider,dnsIpv4:t.ddns.ipv4,dnsIpv6:t.ddns.ipv6,...n,...r?{pinnedCurrency:r.currency,pinnedThreshold:new(u())(r.threshold).times(100),shouldPinMaxCollateral:r.maxCollateral.pinned,maxCollateralPinned:new(u())(r.maxCollateral.value),shouldPinStoragePrice:r.storage.pinned,storagePricePinned:new(u())(r.storage.value),shouldPinEgressPrice:r.egress.pinned,egressPricePinned:new(u())(r.egress.value),shouldPinIngressPrice:r.ingress.pinned,ingressPricePinned:new(u())(r.ingress.value)}:d}}var p=r(63694),m=r(63955),v=r(36219);function g(e,t){return t?new(u())(new(u())(e).div(t).div(10).toFixed(0)).times(10):void 0}function y(e,t){return(r,n)=>!e.pinningEnabled||(t?t(r,n):!!r||"required")}var x=r(92762);let b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function j(e){let{children:t}=e,r=function(){var e;let{settings:t,settingsPinned:r,dynDNSCheck:l}={settings:(0,p.rV)({config:{swr:{refreshInterval:(0,a.sW)(1)}}}),settingsPinned:(0,p.E5)({config:{swr:{refreshInterval:(0,a.sW)(1),errorRetryCount:0}}}),dynDNSCheck:(0,p.WT)({config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}})},{form:d,fields:b,configViewMode:w,setConfigViewMode:j}=function(){var e;let t=(0,m.cI)({mode:"all",defaultValues:f}),r=t.watch("storagePrice"),o=t.watch("collateralMultiplier"),[s,l]=(0,x.Z)("v0/config/mode",{defaultValue:"basic"});!function(e){let{form:t}=e,r=(0,i.useMemo)(()=>({}),[]);(0,i.useEffect)(()=>{for(let[e,n]of Object.entries(r))t.setValue(e,n,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})},[t,r])}({form:t});let d=(0,v.J)({currency:"usd"}),h=(0,p.ER)(),b=null===(e=h.data)||void 0===e?void 0:e.explorer.enabled,w=(0,i.useRef)({pinningEnabled:b});return(0,i.useEffect)(()=>{w.current.pinningEnabled=b},[b]),{form:t,fields:(0,i.useMemo)(()=>{var e;return function(e){let{pinningEnabled:t,configViewMode:r,storageTBMonth:i,collateralMultiplier:o,exchangeRateUSD:s,validationContext:l}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,n.jsx)(n.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,n.jsx)(n.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com",validation:{required:"required",validate:{noProtocol:e=>!/^https?:\/\//.test(e||"")||"must not start with http:// or https://",noPort:e=>!/:\d+$/.test(e||"")||"must not include port"}}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(u())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,n.jsx)(n.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:"basic"===r,validation:{required:"required",validate:{min:e=>new(u())(e).gte((0,a.E6)(4320))||"must be at least 1 month"}}},pinnedCurrency:{title:"Pinned currency",description:"Currency to use for fields where price pinning is enabled.",type:"select",options:[...v.mV.map(e=>{let{id:t,label:r}=e;return{label:r,value:t}}),{label:"none",value:""}],hidden:!t,validation:{}},pinnedThreshold:{title:"Pinned currency change threshold",type:"number",suggestionTip:"A threshold of 2% is recommended.",suggestion:new(u())(2),units:"%",decimalsLimit:0,description:(0,n.jsx)(n.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."}),hidden:!t||"basic"===r,validation:{validate:{required:y(l),max:y(l,e=>new(u())(e).lte(100)||"must be at most 100%"),min:y(l,e=>new(u())(e).gte(0)||"must be at least 0%")}}},shouldPinStoragePrice:{title:"Pin storage price",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},storagePrice:{title:"Storage price",description:(0,n.jsx)(n.Fragment,{children:"The host's storage price per TB per month. Choose whether to set your storage price in siacoin per TB per month or to pin the siacoin price to a fixed fiat value per TB per month."}),type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:s?g(1,s):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",validation:{required:"required"}},storagePricePinned:{title:"Pinned storage price",description:"",units:"/TB/month",type:"fiat",category:"pricing",hidden:!t,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinStoragePrice||(null==e?void 0:e.gt(0))||"storage price must be greater than 0")}}},shouldPinEgressPrice:{title:"Pin egress price",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},egressPrice:{title:"Egress price",description:(0,n.jsx)(n.Fragment,{children:"The host's egress price per TB per month. Egress means bandwidth usage by outgoing download traffic. Choose whether to set your egress price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:s?g(10,s):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",validation:{required:"required"}},egressPricePinned:{title:"Pinned egress price",description:"",type:"fiat",units:"/TB",category:"pricing",hidden:!t,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinEgressPrice||(null==e?void 0:e.gt(0))||"egress price must be greater than 0")}}},shouldPinIngressPrice:{title:"Pin ingress price",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},ingressPrice:{title:"Ingress price",description:(0,n.jsx)(n.Fragment,{children:"The host's ingress price per TB per month. Ingress means bandwidth usage by incoming upload traffic. Choose whether to set your ingress price in siacoin per TB or to pin the siacoin price to a fixed fiat value per TB."}),type:"siacoin",category:"pricing",units:"SC/TB",suggestion:s?g(.05,s):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,validation:{required:"required"}},ingressPricePinned:{title:"Pinned ingress price",description:"",type:"fiat",units:"/TB",category:"pricing",hidden:!t,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinIngressPrice||(null==e?void 0:e.gt(0))||"ingress price must be greater than 0")}}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,n.jsx)(n.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(u())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},shouldPinMaxCollateral:{title:"Pin max collateral",description:"",type:"boolean",category:"pricing",hidden:!t,validation:{}},maxCollateral:{title:"Max collateral",description:(0,n.jsx)(n.Fragment,{children:"The host's maximum collateral. Choose whether to set your max collateral price in siacoin or to pin the max collateral to a fixed fiat value."}),type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:i&&o?!i||!o||(null==i?void 0:i.isZero())||(null==o?void 0:o.isZero())?new(u())(0):new(u())(12960).times(i).div((0,a.S5)(1)).times(o):void 0,suggestionTip:"The suggested maximum collateral, calculated based on the configured storage price and collateral multiplier.",validation:{required:"required"}},maxCollateralPinned:{title:"Pinned max collateral",description:"",type:"fiat",category:"pricing",hidden:!t||"basic"===r,validation:{validate:{required:y(l),currency:y(l,(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:y(l,(e,t)=>!t.shouldPinMaxCollateral||(null==e?void 0:e.gt(0))||"max collateral must be greater than 0")}}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(u())(.2),description:(0,n.jsx)(n.Fragment,{children:"The host's contract price in siacoins."}),hidden:"basic"===r,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(u())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,n.jsx)(n.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:"basic"===r,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(u())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,n.jsx)(n.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:"basic"===r,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(u())(30),suggestionTip:"The suggested price table validity.",description:(0,n.jsx)(n.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:"basic"===r,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(u())(30),suggestionTip:"The suggested account expiry.",description:(0,n.jsx)(n.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:"basic"===r,validation:{required:"required",validate:{min:e=>new(u())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(u())(10),suggestionTip:"The suggested maximum account balance.",description:(0,n.jsx)(n.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:"basic"===r,validation:{required:"required",validate:{min:e=>new(u())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,n.jsx)(n.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,n.jsx)(n.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:c,description:(0,n.jsx)(n.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!c.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,n.jsx)(n.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({pinningEnabled:null===(e=h.data)||void 0===e?void 0:e.explorer.enabled,configViewMode:s,storageTBMonth:r,collateralMultiplier:o,exchangeRateUSD:d.rate,validationContext:w.current})},[s,r,o,d.rate,h.data]),storageTBMonth:r,collateralMultiplier:o,configViewMode:s,setConfigViewMode:l}}(),E=(0,i.useMemo)(()=>({settings:{data:t.data,error:t.error},settingsPinned:{data:r.data,error:r.error}}),[t.data,t.error,r.data,r.error]),k=(0,i.useMemo)(()=>!function(e){let{settings:t,settingsPinned:r}=e;return!!(t.data&&(r.data||r.error))}(E)?null:h({settings:E.settings.data,settingsPinned:E.settingsPinned.data}),[E]),C=(0,i.useMemo)(()=>(function(e){let{settings:t}=e;return!!t.error})(E),[E]),S=null===(e=(0,p.ER)().data)||void 0===e?void 0:e.explorer.enabled,O=(0,i.useCallback)(async()=>{let e=await t.mutate(),n=await r.mutate();if(e&&(!S||n))return await l.mutate(),d.reset(h({settings:e,settingsPinned:n}));(0,o.OHV)({title:"Error fetching settings"})},[d,t,r,l,S]);(0,o.u$d)({form:d,remoteValues:k}),(0,o.Z4p)({form:d,remoteValues:k});let{changeCount:_}=(0,o.mYE)({form:d}),M=function(e){let{resources:t,revalidateAndResetForm:r}=e,n=(0,p.ER)({config:{swr:{refreshInterval:(0,a.sW)(1)}}}),l=(0,p.Te)(),u=(0,p.Vp)();return(0,i.useCallback)(async e=>{if(t)try{var i,c,d,f;let h;let p=(f=t.settings.data,h=null,"duckdns"===e.dnsProvider&&(h={token:e.dnsDuckDnsToken}),"noip"===e.dnsProvider&&(h={email:e.dnsNoIpEmail,password:e.dnsNoIpPassword}),"route53"===e.dnsProvider&&(h={id:e.dnsAwsId,secret:e.dnsAwsSecret,zoneID:e.dnsAwsZoneId}),"cloudflare"===e.dnsProvider&&(h={token:e.dnsCloudflareToken,zoneID:e.dnsCloudflareZoneId}),{...f,acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:Number(e.maxContractDuration.times((0,a.S5)(1)).toFixed(0)),contractPrice:(0,a.qN)(e.contractPrice).toString(),baseRPCPrice:e.baseRPCPrice.div((0,a.ll)((0,s.sS)(1))).toFixed(0),sectorAccessPrice:e.sectorAccessPrice.div((0,a.ll)((0,s.nS)(1))).toFixed(0),collateralMultiplier:e.collateralMultiplier.toNumber(),maxCollateral:(0,a.qN)(e.maxCollateral).toString(),storagePrice:e.storagePrice.div((0,a.ll)((0,s.SY)(1))).toFixed(0),egressPrice:e.egressPrice.div((0,a.ll)((0,s.B1)(1))).toFixed(0),ingressPrice:e.ingressPrice.div((0,a.ll)((0,s.dK)(1))).toFixed(0),priceTableValidity:Number(e.priceTableValidity.times(60).times(1e9).toFixed(0)),accountExpiry:Number(e.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,a.qN)(e.maxAccountBalance).toString(),ingressLimit:Number((0,a.Y)(e.ingressLimit).toFixed(0)),egressLimit:Number((0,a.Y)(e.egressLimit).toFixed(0)),ddns:{...null==f?void 0:f.ddns,provider:e.dnsProvider,ipv4:e.dnsIpv4,ipv6:e.dnsIpv6,options:h}}),m=await l.patch({payload:p});if(m.error)throw Error(m.error);if(null===(i=n.data)||void 0===i?void 0:i.explorer.enabled){let r=await u.put({payload:{...t.settingsPinned.data,currency:e.pinnedCurrency,threshold:e.pinnedThreshold.div(100).toNumber(),storage:{pinned:e.shouldPinStoragePrice,value:e.storagePricePinned.toNumber()},ingress:{pinned:e.shouldPinIngressPrice,value:e.ingressPricePinned.toNumber()},egress:{pinned:e.shouldPinEgressPrice,value:e.egressPricePinned.toNumber()},maxCollateral:{pinned:e.shouldPinMaxCollateral,value:e.maxCollateralPinned.toNumber()}}});if(r.error)throw Error(r.error)}(null===(d=n.data)||void 0===d?void 0:null===(c=d.lastAnnouncement)||void 0===c?void 0:c.address)!==e.netAddress?(0,o.OPV)({title:"Settings have been saved",body:"Address has changed, make sure to re-announce the host.",options:{duration:2e4}}):(0,o.OPV)({title:"Settings have been saved"}),await r()}catch(e){(0,o.OHV)({title:"Error updating settings",body:e.message}),console.log(e)}},[t,l,u,r,n.data])}({resources:E,revalidateAndResetForm:O}),A=(0,o.WsO)(b),P=(0,i.useMemo)(()=>d.handleSubmit(M,A),[d,M,A]),T=(0,i.useRef)();return{fields:b,settings:t,dynDNSCheck:l,changeCount:_,revalidateAndResetForm:O,form:d,onSubmit:P,setConfigViewMode:j,configViewMode:w,remoteError:C,takeScreenshot:(0,i.useCallback)(async e=>{(0,o.S5N)(T.current,e)},[]),configRef:T,pinningEnabled:S}}();return(0,n.jsx)(b.Provider,{value:r,children:t})}},65717:function(e,t,r){"use strict";r.d(t,{x:function(){return b},G:function(){return x}});var n=r(52322),i=r(35627),o=r(63694),a=r(2784),s=r(46850),l=r(35138),u=r(60381),c=r(54494);function d(e){let{id:t,status:r,contentProps:s,buttonProps:u}=e,d=(0,o.kr)(),{openDialog:f}=(0,c.Rh)(),h=(0,a.useCallback)(async()=>{let e=await d.put({params:{id:t}});e.error?(0,i.OHV)({title:"Error starting integrity check",body:e.error}):(0,i.OPV)({title:"Integrity check started",body:(0,n.jsxs)(n.Fragment,{children:["Depending on contract data size this operation can take a while. Check ",(0,n.jsx)(i.EKh,{children:"hostd"})," ",(0,n.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),options:{duration:12e3}})},[t,d,f]),p=["active","pending"].includes(r);return(0,n.jsxs)(i.h_2,{trigger:(0,n.jsx)(i.zxk,{"aria-label":"contract context menu",icon:"hover",size:"none",...u,children:(0,n.jsx)(l.EMN,{})}),contentProps:{align:"start",...s},children:[(0,n.jsx)("div",{className:"px-1.5 py-1",children:(0,n.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,n.jsx)(i.Juw,{children:"Actions"}),(0,n.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,n.jsx)("div",{children:(0,n.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.dDl,{})}),"Integrity check"]})})})]})}let f=[{id:"actions",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,n.jsx)(i.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},render:e=>{let{data:{id:t,status:r}}=e;return(0,n.jsx)(d,{id:t,status:r})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t,context:r}=e,{id:o,renewedFrom:a,isRenewedFrom:s,renewedTo:u,isRenewedTo:c}=t;return(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,n.jsx)(i.XxW,{size:"12",value:(0,i.I13)(o),type:"contract",siascanUrl:r.siascanUrl}),s&&(0,n.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",children:(0,n.jsx)(l.L6f,{className:"scale-75"})}),(0,n.jsx)(i.XxW,{testId:"renewedFrom",color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:r.siascanUrl})]})}),c&&(0,n.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(i.xvT,{color:"subtle",children:(0,n.jsx)(l.IRm,{className:"scale-75"})}),(0,n.jsx)(i.XxW,{testId:"renewedTo",color:"subtle",size:"10",value:(0,i.I13)(u),type:"contract",siascanUrl:r.siascanUrl})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,n.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:r,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,n.jsx)("div",{className:"w-[400px]",children:(0,n.jsx)(i.TaT,{currentHeight:r,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:r}}=e;return(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)((0,u.jr)(r,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:r}}=e;return(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)((0,u.jr)(r,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:r}}=e;return(0,n.jsx)(i.xvT,{size:"12",children:(0,u.rN)((0,u.jr)(r,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,n.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,u.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,n.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,n.jsx)(l.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var h=r(6391),p=r.n(h),m=r(16211),v=r(66510),g=r(99634);let y=(0,a.createContext)({}),x=()=>(0,a.useContext)(y);function b(e){let{children:t}=e,r=function(){var e,t;let{limit:r,offset:n}=(0,i.It_)(50),{filters:l,setFilter:u,removeFilter:c,removeLastFilter:d,resetFilters:h}=(0,i.Uu5)(),{configurableColumns:y,visibleColumnIds:x,visibleColumns:b,sortableColumns:w,toggleColumnVisibility:j,setColumnsVisible:E,setColumnsHidden:k,toggleSort:C,setSortDirection:S,setSortField:O,sortField:_,sortDirection:M,resetDefaultColumnVisibility:A}=(0,i.oy6)("hostd/v0/contracts",{columns:f,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),P=(0,o.GP)({payload:{limit:r,offset:n,sortField:null===(e=s.Fo.find(e=>e.id===_))||void 0===e?void 0:e.value,sortDesc:"desc"===M,contractIDs:l.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:l.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:g.h}}}),T=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;if(t.data)return(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let r=new(p())(e.usage.accountFunding||0),n=new(p())(e.usage.egress||0),i=new(p())(e.usage.ingress||0),o=new(p())(e.usage.riskedCollateral||0),a=new(p())(e.usage.rpc||0),s=new(p())(e.usage.storage||0),l=r.plus(n).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(p())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(p())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(p())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:r,egress:n,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(p())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]},[t.data])}({response:P}),{estimatedBlockHeight:N,isSynced:R,nodeBlockHeight:D}=(0,m.n)(),L=R?D:N,{range:F}=(0,a.useMemo)(()=>(0,i.EJC)(L,T||[]),[L,T]),Z=(0,i.A7R)(T),V=(0,a.useMemo)(()=>{if(T)return T.map(e=>({...e,onClick:t=>Z.onSelect(e.id,t),isSelected:!!Z.selection[e.id]}))},[T,Z]),z=P.isValidating,I=P.error,B=(0,i.LNN)({datasetPage:V,isValidating:z,error:I,filters:l,offset:n}),H=(0,v.B)();return{datasetState:B,offset:n,limit:r,cellContext:(0,a.useMemo)(()=>({contractsTimeRange:F,currentHeight:L,siascanUrl:H,multiSelect:Z}),[F,L,H,Z]),datasetPageTotal:(null==V?void 0:V.length)||0,datasetFilteredTotal:null===(t=P.data)||void 0===t?void 0:t.count,visibleColumns:b,datasetPage:V,configurableColumns:y,visibleColumnIds:x,sortableColumns:w,toggleColumnVisibility:j,setColumnsVisible:E,setColumnsHidden:k,toggleSort:C,setSortDirection:S,setSortField:O,sortField:_,sortDirection:M,resetDefaultColumnVisibility:A,filters:l,setFilter:u,removeFilter:c,removeLastFilter:d,resetFilters:h,multiSelect:Z}}();return(0,n.jsx)(y.Provider,{value:r,children:t})}},46850:function(e,t,r){"use strict";r.d(t,{Fo:function(){return i},gd:function(){return n},nw:function(){return o}});let n=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},54494:function(e,t,r){"use strict";r.d(t,{Tu:function(){return ek},xQ:function(){return eC},Rh:function(){return eE}});var n=r(52322),i=r(2784),o=r(35627),a=r(63694),s=r(60381),l=r(6391),u=r.n(l),c=r(63955);function d(e,t,r){var n=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(r=r||{}).leading,m=!("trailing"in r)||!!r.trailing,v="maxWait"in r,g=v?Math.max(+r.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,r=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(r,t)},r=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var r=e-o.current;return!o.current||r>=t||r<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var n=Date.now();if(i(n))return y(n);if(f.current){var s=t-(n-o.current);r(e,v?Math.min(s,g-(n-a.current)):s)}},b=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=n,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,r(x,t),p?e(o.current):c.current;if(v)return r(x,t),e(o.current)}return s.current||r(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}function f(e){return"function"==typeof e?function(){return e}:e}var h=r(65304),p=r(7513),m=r(35138);function v(e){let{search:t}=e;return(0,n.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,n.jsx)(m.Qbr,{})}),(0,n.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function g(){var e;return(null===(e=(0,a.ER)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}}).data)||void 0===e?void 0:e.os)==="windows"?"\\":"/"}var y=r(36556),x=r(90821),b=r(45904),w=function(e,t){for(var r=e.length;r--&&(0,b.Z)(t,e[r],0)>-1;);return r},j=r(51075),E=r(16601),k=r(62593),C=function(e,t,r){if((e=(0,E.Z)(e))&&(r||void 0===t))return e.slice(0,(0,k.Z)(e)+1);if(!e||!(t=(0,y.Z)(t)))return e;var n=(0,j.Z)(e),i=w(n,(0,j.Z)(t))+1;return(0,x.Z)(n,0,i).join("")},S=r(39982),O=function(e,t){for(var r=-1,n=e.length;++r-1;);return r},_=function(e,t,r){if((e=(0,E.Z)(e))&&(r||void 0===t))return(0,S.Z)(e);if(!e||!(t=(0,y.Z)(t)))return e;var n=(0,j.Z)(e),i=(0,j.Z)(t),o=O(n,i),a=w(n,i)+1;return(0,x.Z)(n,o,a).join("")};function M(e){let{currentPath:t,childPath:r,separator:n}=e;return"\\"===t&&r.endsWith(":")?r+n:A(t,r,n)}function A(e,t,r){e=e===r?e:C(e,r),t=_(t,r);let n="";return(n=e.length?t.length&&t!==r?e===r?r+t:e+r+t:e:t).endsWith(":")?n+r:n}function P(){return(0,n.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,n.jsx)(m.Qbr,{})}),(0,n.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function T(e){let{path:t,onCreate:r}=e,s=g(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:M({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)({title:"Error creating directory",body:e.error}):(r(u),c(""))},[l,u,r,t,s]);return(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,n.jsx)(m.L37,{})}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function N(e){let{path:t,setPath:r,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=g();return(0,n.jsx)(p.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),r(function(e,t){if(e.endsWith(":\\"))return t;let r="".concat(e.split(t).slice(0,-1).join(t));return""===r?t:r.endsWith(":")?r+t:r}(t,u)),l&&l())},value:"..",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,n.jsx)(m.ROc,{size:16})}),(0,n.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let R={namespace:"volumes/directorySelect",label:"Directory select"};function D(e){var t,r,i,a,s,l,u;let{path:c,dir:d,setPath:f,currentPage:y,beforeSelect:x,afterSelect:b}=e,w=g(),j=(null===(t=d.data)||void 0===t?void 0:t.path)===w,E=(null===(r=d.data)||void 0===r?void 0:r.path)==="\\";return(0,n.jsxs)(p.fu,{currentPage:y,commandPage:R,children:[d.isValidating||!d.data||d.error?null:j?null:(0,n.jsx)(N,{path:d.data.path,setPath:f,currentPage:y,commandPage:R,afterSelect:b,beforeSelect:x}),(0,n.jsxs)(h.mY.Empty,{children:[!d.isValidating&&d.error?(0,n.jsx)(P,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,n.jsx)(v,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,n.jsx)(p.WD,{commandPage:R,currentPage:y,onSelect:()=>{x&&x(),f(M({currentPath:d.data.path,childPath:e,separator:w})),b&&b()},value:e,children:(0,n.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,n.jsx)(m.ROc,{size:16})}),(0,n.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!E&&!d.isValidating&&!d.error&&(0,n.jsx)(p.WD,{commandPage:R,currentPage:y,value:"create new directory",children:(0,n.jsx)(T,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var r;return{...t,directories:(null==t?void 0:null===(r=t.directories)||void 0===r?void 0:r.concat(e))||[e]}})}})})]})}function L(e){let{path:t,dir:r,onChange:i}=e;return(0,n.jsx)(h.mY,{label:"Select volume",shouldFilter:!1,children:(0,n.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,n.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,n.jsx)(h.mY.List,{children:(0,n.jsx)(D,{path:t,dir:r,setPath:i,currentPage:R})})})})})}var F=r(82851);function Z(e){let{label:t,newSizeGB:r,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=ir,c=r>a;return(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,n.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==r&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,n.jsx)("div",{className:(0,F.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==r&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(r/a*100,"%"):"0%"}})]}),(0,n.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,n.jsx)("div",{}),void 0!==r&&a?(0,n.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((r/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,s.Hz)(a))," available")}):null]})]})}let V=new(u())(10),z={size:void 0,name:"",path:"~",immediatePath:"~"};function I(e){let{trigger:t,open:r,onOpenChange:l}=e,{closeDialog:f}=eE(),h=(0,a.HU)(),p=g(),m=(0,c.cI)({mode:"all",defaultValues:z}),v=m.watch("path"),y=m.watch("immediatePath"),x=m.watch("name"),b=m.watch("size"),w=d(()=>{v!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{v!==y&&m.setValue("immediatePath",v)},[v]);let j=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:A(v,x,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error creating volume",body:t.error}):((0,o.OPV)({title:"New volume created"}),m.reset(z),f())},[m,h,f,x,v,p]),E=(0,a.cM)({disabled:!r,params:{path:""===v?p:v},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{E.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[E.error]),(0,i.useEffect)(()=>{E.data&&E.data.path!==v&&m.setValue("path",E.data.path)},[E.data]);let k=(0,i.useMemo)(()=>b||new(u())(0),[b]),C=(0,i.useMemo)(()=>E.data?(0,s.Uz)(E.data.freeBytes):new(u())(0),[E.data]),S=(0,i.useMemo)(()=>{var e;return(0,s.Uz)((null===(e=E.data)||void 0===e?void 0:e.freeBytes)||new(u())(0))},[E.data]),O=(0,i.useMemo)(()=>{var e,t;return e=V.toNumber(),t=S.toNumber(),{name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:r=>{let n="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return r<=t&&r>=e||n},nospace:()=>t>e||"not enough space in directory"}}}}},[S]),_=(0,o.WsO)(O);return(0,i.useEffect)(()=>{m.register("path",O.path.validation)},[m,O.path.validation]),(0,n.jsx)(o.VqE,{title:"Create Volume",description:"Create a new volume. Select a system directory and specific the size of the volume.",trigger:t,open:r,onOpenChange:e=>{e||m.reset(z),l(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(j,_),controls:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(o.yEL,{name:"name",form:m,fields:O}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)(o.yEL,{name:"immediatePath",form:m,fields:O})}),(0,n.jsx)(L,{path:v,dir:E,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,n.jsx)(o.jIp,{name:"size",form:m,fields:O}),(0,n.jsx)(Z,{newSizeGB:k.toNumber(),currentSizeGB:0,maxSizeGB:C.toNumber()})]})})}let B=new(u())(10);function H(e){var t,r;let{trigger:l,open:d,onOpenChange:f}=e,{id:h}=eE(),p=g(),m=(0,a.ST)({disabled:!d||!h,params:{id:h}}),v=(0,a.cM)({disabled:!d||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),x={size:m.data?(0,o.bjP)(m.data.totalSectors):new(u())(0)},b=(0,c.cI)({mode:"all",defaultValues:x}),w=b.watch("size"),{closeAndReset:j,handleOpenChange:E}=(0,o.t0Y)({form:b,onOpenChange:f,defaultValues:x,initKey:[m.isLoading]}),k=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(h)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)({title:"Error resizing volume",body:t.error}):((0,o.OPV)({title:"Volume resizing initiated"}),j())},[h,y,j]),C=(0,i.useMemo)(()=>w||new(u())(0),[w]),S=(0,i.useMemo)(()=>m.data?(0,o.bjP)(m.data.totalSectors):new(u())(0),[m.data]),O=(0,i.useMemo)(()=>v.data?(0,s.Uz)(v.data.freeBytes):new(u())(0),[v.data]),_=(0,i.useMemo)(()=>S.plus(O),[S,O]),M=S.lt(C),A=S.minus(C).abs().gte(1),P=(0,i.useMemo)(()=>{var e,t;return e=B.toNumber(),t=_.toNumber(),{size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:r=>{let n="Must be between ".concat((0,s.vW)((0,s.Hz)(e))," and ").concat((0,s.vW)((0,s.Hz)(t),{fixed:3}));return(null==r?void 0:r.lte(t))&&(null==r?void 0:r.gte(e))||n}}}}}},[_]),T=(0,o.WsO)(P);return(0,n.jsx)(o.VqE,{title:"Resize Volume",trigger:l,open:d,onOpenChange:E,contentVariants:{className:"max-w-[400px]"},onSubmit:b.handleSubmit(k,T),controls:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsx)(o.ZqQ,{form:b,children:"Resize"})}),children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,n.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(o.__J,{children:"Volume"}),(0,n.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(r=m.data)||void 0===r?void 0:r.localPath})]}),(0,n.jsx)(o.jIp,{name:"size",form:b,fields:P}),(0,n.jsx)(Z,{currentSizeGB:S.toNumber(),newSizeGB:C.toNumber(),maxSizeGB:_.toNumber(),label:A?(0,n.jsx)(o.xvT,{size:"12",color:"subtle",children:M?"Increase by ".concat((0,s.vW)((0,s.Hz)(C.minus(S)))):"Decrease by ".concat((0,s.vW)((0,s.Hz)(S.minus(C))))}):(0,n.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,s.Hz)(S)))})})]})})}let U={path:"",force:!1};function W(e){var t,r,l;let{trigger:u,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=eE(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!d||!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(r=v.data)||void 0===r?void 0:r.usedSectors),x=null===(l=v.data)||void 0===l?void 0:l.localPath,b=(0,c.cI)({mode:"all",defaultValues:U}),w=(0,i.useCallback)(async e=>{var t;let r=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.id,force:e.force}});r.error?(0,o.OHV)({title:"Error deleting volume",body:r.error}):((0,o.OPV)({title:"Volume is now being permanently deleted"}),b.reset(),p())},[b,v.data,m,p]),j=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:x,validation:{required:"required",validate:{equals:e=>e===x||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[x]),E=(0,o.WsO)(j);return(0,n.jsx)(o.VqE,{title:"Delete Volume",trigger:u,open:d,onOpenChange:e=>{e||b.reset(U),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:b.handleSubmit(w,E),children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,n.jsxs)(o.nvN,{size:"14",children:[(0,n.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,n.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,n.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,n.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,n.jsx)(o.yEL,{name:"path",form:b,fields:j}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)(o.QBj,{name:"force",size:"medium",form:b,fields:j}),(0,n.jsx)(o.Yqd,{children:(0,n.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,n.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,n.jsx)(o.ZqQ,{variant:"red",form:b,children:"Delete"})]})})}function $(){let{dialog:e,onOpenChange:t}=eE(),r=(0,a.Os)(),s=(0,a.cj)(),l=(0,a.hV)(),c=(0,i.useMemo)(()=>l.data?new(u())(l.data).times(1200):void 0,[l.data]),d=(0,i.useCallback)(async e=>{let{address:t,hastings:r,includeFee:n}=e,i=await s.post({payload:{address:t,amount:r.toString(),subtractMinerFee:n}});return i.error?{error:i.error}:{transactionId:i.data}},[s]);return(0,n.jsx)(o.weF,{balance:r.data?new(u())(r.data.spendable):void 0,send:d,fee:c,open:"sendSiacoin"===e,onOpenChange:t})}var q=r(88022);function Y(){let{id:e,dialog:t,onOpenChange:r}=eE(),{datasetPage:a}=(0,q.n)(),s=(0,i.useMemo)(()=>null==a?void 0:a.find(t=>t.id===e),[a,e]);return(0,n.jsx)(o.mPE,{id:e,transaction:s,open:"transactionDetails"===t,onOpenChange:r})}var G=r(32088),K=r(36219),X=r(4300),J=r(5632);let Q={namespace:"wallet",label:"Wallet"};function ee(e){let{currentPage:t,parentPage:r,pushPage:i}=e,{openDialog:s,closeDialog:l}=eE(),u=(0,J.useRouter)(),c=(0,a.Os)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:Q,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:Q,onSelect:()=>{i(Q)},children:Q.label}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{u.push(X._.wallet.view),l()},children:"View wallet transactions"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:Q,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.address,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var et=r(38617);let er={namespace:"settings",label:"Settings"};function en(e){let{currentPage:t,parentPage:r}=e,{openDialog:i,closeDialog:o}=eE(),{setTheme:a}=(0,et.F)(),{settings:s,setExternalDataSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,K.Hv)();return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:er,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:er,onSelect:()=>{i("settings")},children:"Open settings"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,n.jsx)(p.o4,{currentPage:t,commandPage:er,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:r,label:i}=e;return(0,n.jsx)(p.WD,{currentPage:t,commandPage:er,onSelect:()=>{d(r),o()},children:"Set currency to ".concat(i)},r)})]})}let ei={namespace:"node",label:"Blockchain node"};function eo(e){let{currentPage:t,parentPage:r,pushPage:i}=e,{openDialog:o,closeDialog:a}=eE(),s=(0,J.useRouter)();return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:ei,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:ei,onSelect:()=>{i(ei)},children:ei.label}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:ei,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(X._.node.index),a()},children:"View peers"})]})}var ea=r(29703);let es={namespace:"configuration",label:"Configuration"};function el(e){let{currentPage:t,parentPage:r,pushPage:i}=e,o=(0,J.useRouter)(),{configViewMode:a}=(0,ea.ZR)(),{closeDialog:s}=eE();return(0,n.jsxs)(p.fu,{currentPage:t,commandPage:es,children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:es,onSelect:()=>{i(es)},children:es.label}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.index),s()},children:"Open configuration"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.host),s()},children:"Configure host"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.pricing),s()},children:"Configure pricing"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.dns),s()},children:"Configure DNS"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.bandwidth),s()},children:"Configure bandwidth"}),"advanced"===a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.registry),s()},children:"Configure registry"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:es,onSelect:()=>{o.push(X._.config.accounts),s()},children:"Configure accounts"})]})]})}var eu=r(65717);function ec(e){let{search:t}=e;return(0,n.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,n.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,n.jsx)(m.owP,{})}),(0,n.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var ed=r(63328);let ef={namespace:"contracts",label:"Contracts"};function eh(e){let{currentPage:t,parentPage:r,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,J.useRouter)(),{closeDialog:l}=eE();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:r,onSelect:()=>{i(ef)},children:ef.label}),(0,n.jsx)(p.fu,{currentPage:t,commandPage:ef,children:(0,n.jsx)(p.WD,{currentPage:t,commandPage:ef,onSelect:()=>{s.push(X._.contracts.index),l()},children:"View contracts"})}),(0,n.jsx)(ed.F,{parentPage:ef,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ep={namespace:"volumes",label:"Volumes"};function em(e){let{currentPage:t,parentPage:r,pushPage:i}=e,o=(0,J.useRouter)(),{openDialog:a,closeDialog:s}=eE();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.Ul,{currentPage:t,parentPage:r,commandPage:r,onSelect:()=>{i(ep)},children:ep.label}),(0,n.jsxs)(p.fu,{currentPage:t,commandPage:ep,children:[(0,n.jsx)(p.WD,{currentPage:t,commandPage:ep,onSelect:()=>{o.push(X._.volumes.index),s()},children:"View volumes"}),(0,n.jsx)(p.WD,{currentPage:t,commandPage:ep,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function ev(e){var t,r,a,s,l,u,c,p,m;let{panel:v}=e,g=(0,J.useRouter)(),{resetFilters:y}=(0,eu.G)(),{closeDialog:x}=eE(),[b,w]=(0,i.useState)(""),[j]=(l=(a=(r=(0,i.useState)(f(b)))[1],s=[r[0],(0,i.useCallback)(function(e){return a(f(e))},[])])[0],u=s[1],c=d((0,i.useCallback)(function(e){return u(e)},[u]),500,t),m=(p=(0,i.useRef)(b)).current,m===b||(c(b),p.current=b),[l,c]),[E,k]=(0,i.useState)([]),C=E[E.length-1],S=0===E.length,O=(0,i.useCallback)(e=>{k(t=>[...t,e])},[k]),_=(0,i.useCallback)(()=>{x()},[x]),M=(0,i.useCallback)(()=>{w("")},[w]),A=(null==C?void 0:C.empty)||ec;return(0,n.jsxs)(h.mY,{label:"Command Menu",loop:!0,className:(0,F.cx)(v&&(0,o.z$)()),onKeyDown:e=>{(E.length>0&&"Escape"===e.key||"Backspace"===e.key&&!b)&&(e.preventDefault(),k(e=>e.slice(0,-1)))},children:[C&&(0,n.jsx)(o.__J,{className:"px-2",children:C.label}),(0,n.jsx)(h.mY.Input,{value:b,onValueChange:w,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==C?void 0:C.prompt)||(S?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,n.jsx)(o.Z0O,{className:"my-2"}),(0,n.jsxs)(h.mY.List,{children:[(0,n.jsx)(h.mY.Empty,{children:(0,n.jsx)(A,{search:b,debouncedSearch:j})}),(0,n.jsx)(en,{currentPage:C,pushPage:O}),(0,n.jsx)(ee,{currentPage:C,pushPage:O}),(0,n.jsx)(em,{currentPage:C,pushPage:O}),(0,n.jsx)(eh,{currentPage:C,pushPage:O,beforeSelect:()=>{_(),y()},afterSelect:()=>{g.pathname.startsWith(X._.contracts.index)||g.push(X._.contracts.index),M()}}),(0,n.jsx)(el,{currentPage:C,pushPage:O}),(0,n.jsx)(eo,{currentPage:C,pushPage:O})]})]})}function eg(e){let{open:t,onOpenChange:r,setOpen:a}=e,{isUnlockedAndAuthedRoute:s}=(0,K.Hv)(),{isConnected:l}=(0,o.Y97)({route:X.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.VqE,{open:t,title:"Command palette",titleVisuallyHidden:!0,onOpenChange:r,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,n.jsx)(ev,{})})})}var ey=r(99634);function ex(e){let{open:t,onOpenChange:r}=e,s=(0,a.Z7)({config:{swr:{refreshInterval:ey.h}}}),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)({title:"Error dismissing alert",body:t.error}):(0,o.OPV)({title:"Alert has been dismissed"})},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let r=await l.post({payload:e});r.error?(0,o.OHV)({title:t?"Error dismissing all ".concat(t," alerts"):"Error dismissing all alerts",body:r.error}):(0,o.OPV)({title:t?"All ".concat(t," alerts have been dismissed"):"All alerts have been dismissed"})},[l,s]);return(0,n.jsx)(o.hcY,{open:t,onOpenChange:e=>{r(e)},alerts:s,dataFieldOrder:eb,dataFields:ew,dismissMany:c,dismissOne:u})}let eb=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ew={error:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,n.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,n.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,n.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,n.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,n.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,n.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},ej=(0,i.createContext)({}),eE=()=>(0,i.useContext)(ej);function ek(e){let{children:t}=e,r=function(){let[e,t]=(0,i.useState)(),[r,n]=(0,i.useState)(),o=(0,i.useCallback)((e,r)=>{t(e),n(r)},[t,n]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),n(void 0),s(void 0)},[t,n,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:r,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,n.jsx)(ej.Provider,{value:r,children:t})}function eC(){var e;let{dialog:t,openDialog:r,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=eE(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eg,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>r("cmdk")}),(0,n.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,n.jsx)(ex,{open:"alerts"===t,onOpenChange:s}),(0,n.jsx)($,{}),(0,n.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:s}),(0,n.jsx)(Y,{}),(0,n.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:s}),(0,n.jsx)(I,{open:"volumeCreate"===t,onOpenChange:s}),(0,n.jsx)(H,{open:"volumeResize"===t,onOpenChange:s}),(0,n.jsx)(W,{open:"volumeDelete"===t,onOpenChange:s}),(0,n.jsx)(G.Y,{open:"contractsFilterContractId"===t,onOpenChange:s}),(0,n.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},68202:function(e,t,r){"use strict";r.d(t,{C:function(){return j},B:function(){return w}});var n=r(52322),i=r(2784),o=r(35627),a=r(60381);let s={active:{color:o.O9T.amber[600]},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},renewed:{color:o.O9T.blue[600]},finalized:{color:o.O9T.yellow[600]},successful:{color:o.O9T.green[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=r(63694);function u(e,t,r){return{...e,category:t,pattern:r}}function c(e,t,r){return{...e,category:t,label:r}}var d=r(6391),f=r.n(d),h=r(71978),p=r(49435);function m(e,t){for(var r=Math.abs(e).toString();r.length"7"===e.value),b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function j(e){let{children:t}=e,r=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:x.value}),[r,d]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:x.interval}),b=function(e){let[t,r]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{r(new Date().getTime());let t=(0,a.yt)(1),n=setInterval(()=>{r(new Date().getTime())},Math.min((0,h.uQ)(e),t));return()=>clearInterval(n)},[e]),t}(r),w=(0,i.useMemo)(()=>(0,o.OQF)(e,b),[e,b]),j=(0,i.useCallback)(e=>{let r=h.lv.find(t=>t.value===e);d(r.interval),t(r.value)},[t,d]),E=(0,i.useMemo)(()=>(0,o.kOJ)(r),[r]),k=(0,l.KU)({params:{interval:r,start:function(e,t){(0,v.Z)(1,arguments);var r=(0,p.Z)(e);if(isNaN(r.getTime()))throw RangeError("Invalid time value");var n=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==n&&"basic"!==n)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===n?"-":"";if("time"!==i){var l=m(r.getDate(),2),u=m(r.getMonth()+1,2),c=m(r.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=r.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(r.getHours(),2),x=m(r.getMinutes(),2),b=m(r.getSeconds(),2),w=""===o?"":"T",j=[y,x,b].join("extended"===n?":":"");o="".concat(o).concat(w).concat(j).concat(a)}return o}(new Date(w.start-(0,h.uQ)(r)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,a.XB)(60)}}}),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),r=(0,o.fVJ)(t);return{data:t.map(e=>({storagePotential:Math.max(e.storagePotential,0),ingressPotential:Math.max(e.ingressPotential,0),egressPotential:Math.max(e.egressPotential,0),rpcPotential:Math.max(e.rpcPotential,0),storage:Math.max(e.storage,0),ingress:Math.max(e.ingress,0),egress:Math.max(e.egress,0),rpc:Math.max(e.rpc,0),timestamp:new Date(e.timestamp).getTime()})),stats:r,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],enabledTip:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},formatComponent:function(e){let{value:t}=e;return(0,n.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),formatTimestamp:E,disableAnimations:!0,chartType:"barstack",stackOffset:"diverging"},isLoading:k.isValidating}},[k,E]),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},formatComponent:function(e){let{value:t}=e;return(0,n.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:E,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"area",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},formatComponent:function(e){let{value:t}=e;return(0,n.jsx)(o.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:E,formatTickY:e=>(0,a.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,rejected:e.contracts.rejected,failed:e.contracts.failed,renewed:e.contracts.renewed,finalized:e.contracts.finalized,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["active","rejected","failed","renewed","finalized","successful"],enabledTip:["active","rejected","failed","renewed","finalized","successful"],data:{active:s.active,rejected:s.rejected,failed:s.failed,renewed:s.renewed,finalized:s.finalized,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:E,formatTickY:e=>(0,a.yF)(e),disableAnimations:!0,chartType:"areastack",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,a.B$)(e.storage.totalSectors).times(4).toNumber(),tempSectors:(0,a.B$)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,a.B$)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,a.B$)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","maxSectors"],enabledTip:["contractSectors","physicalSectors","tempSectors","maxSectors"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:E,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]);return{dataTimeSpan:e,setDataTimeSpan:j,timeRange:w,dataInterval:r,setDataInterval:d,operations:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["storageReads","storageWrites"],enabledTip:["storageReads","storageWrites"],data:{storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTickY:e=>(0,a.yF)(e),formatTimestamp:E,disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E]),revenue:C,collateral:S,contracts:_,storage:M,pricing:O,bandwidth:(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp.egress,ingress:e.data.rhp.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),r=(0,o.fVJ)(t);return{data:t,stats:r,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:E,formatTickY:e=>(0,a.vW)(e,{fixed:0}),disableAnimations:!0,chartType:"line",curveType:"linear",stackOffset:"none"},isLoading:k.isValidating}},[k,E])}}();return(0,n.jsx)(b.Provider,{value:r,children:t})}},71978:function(e,t,r){"use strict";r.d(t,{lv:function(){return i},uQ:function(){return o}});var n=r(60381);let i=[{label:"1D",interval:"15m",value:"1"},{label:"7D",interval:"hourly",value:"7"},{label:"1M",interval:"daily",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"weekly",value:"365"},{label:"ALL",interval:"monthly",value:"all"}];function o(e){return"5m"===e?(0,n.sW)(5):"15m"===e?(0,n.sW)(15):"hourly"===e?(0,n.yt)(1):"daily"===e?(0,n.Nr)(1):"weekly"===e?(0,n.Nr)(7):"monthly"===e?(0,n.Nr)(30):"yearly"===e?(0,n.Nr)(365):0}},88022:function(e,t,r){"use strict";r.d(t,{v:function(){return y},n:function(){return g}});var n=r(52322),i=r(35627),o=r(63694),a=r(2784),s=r(5632),l=r(66510),u=r(99634),c=r(16211),d=r(60381),f=r(35138);let h=[{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{id:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID",type:"transaction",siascanUrl:r.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{txType:t}}=e;return(0,n.jsx)(i.Cts,{size:"small",children:(0,d.pX)(t)})}},{id:"height",label:"height",category:"general",contentClassName:"justify-end",render:e=>{let{data:{height:t,pending:r,maturityHeight:o,isMature:a}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):t?t&&o&&o>t?(0,n.jsx)(i.ua7,{content:a?"The maturity height has been reached.":"The maturity height has not been reached, therefore the output is still locked.",children:(0,n.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(i.xvT,{size:"12",font:"mono",ellipsis:!0,color:a?"green":"red",className:"flex gap-1 items-center",children:[a?(0,n.jsx)(f.VmF,{}):(0,n.jsx)(f.Lur,{}),o.toLocaleString()]})}),(0,n.jsxs)("div",{className:"flex justify-between items-end gap-1",children:[(0,n.jsx)("div",{className:"pl-[8px] pb-[6px]",children:(0,n.jsx)("div",{className:"border-l border-b border-gray-800 dark:border-graydark-800 h-[20px] w-[7px]"})}),(0,n.jsx)(i.xvT,{size:"12",font:"mono",color:"subtle",ellipsis:!0,children:t.toLocaleString()})]})]})}):(0,n.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",contentClassName:"justify-end",render:e=>{let{data:{timestamp:t,pending:r}}=e;return r?(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,n.jsx)(i.xgg,{})}):(0,n.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,d.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amountSc:t,amountSf:r}}=e;return t?(0,n.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!t.isZero()&&(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}),!!r&&(0,n.jsx)(i.Sby,{size:"12",value:r})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,n.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t},context:r}=e;return t?(0,n.jsx)(i.XxW,{size:"12",value:t,label:"contract ID",siascanUrl:r.siascanUrl}):null}}],p=["transactionId","type","height","timestamp","amount","fee"],m=[],v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,r=function(){let e=(0,s.useRouter)(),t=Number(e.query.limit||50),r=Number(e.query.offset||0),n=(0,o.sG)({params:{limit:t,offset:r},config:{swr:{refreshInterval:u.h}}}),f=(0,o.a0)({config:{swr:{refreshInterval:u.h}}}),{filters:v,setFilter:g,removeFilter:y,removeLastFilter:x,resetFilters:b}=(0,i.Uu5)(),w=(0,c.n)(),j=(0,a.useMemo)(()=>{if(!n.data||!f.data)return null;let e=f.data.map(e=>{let t=(0,d.Jz)(e),r=(0,d.hq)(e);return{id:e.id,timestamp:0,pending:!0,type:e.type,txType:(0,d.uC)(e),isMature:!1,amountSc:t,fee:r}}),t=n.data.map(e=>{let t=(0,d.Jz)(e),r=(0,d.hq)(e),n=(0,d.hR)(e),i=e.maturityHeight<=w.nodeBlockHeight;return{id:e.id,type:e.type,txType:(0,d.uC)(e),timestamp:new Date(e.timestamp).getTime(),maturityHeight:e.maturityHeight,isMature:i,height:e.index.height,pending:!1,amountSc:t,fee:r,contractId:n}});return 0===r?[...e.reverse(),...t]:[...t]},[n.data,f.data,w.nodeBlockHeight,r]),{configurableColumns:E,visibleColumnIds:k,visibleColumns:C,sortableColumns:S,toggleColumnVisibility:O,setColumnsVisible:_,setColumnsHidden:M,toggleSort:A,setSortDirection:P,setSortField:T,sortField:N,sortDirection:R,resetDefaultColumnVisibility:D}=(0,i.oy6)("hostd/v0/events",{columns:h,columnsDefaultVisible:p,sortOptions:m,defaultSortField:"id"}),L=(0,l.B)(),F=(0,a.useMemo)(()=>({siascanUrl:L}),[L]),Z=(0,a.useMemo)(()=>new Date(new Date().getTime()-(0,d.Nr)(30)).toISOString(),[]),V=(0,o.KU)({params:{interval:"daily",start:Z}}),z=(0,a.useMemo)(()=>(V.data||[]).map(e=>({sc:Number(e.wallet.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[V.data]),I=n.isValidating||f.isValidating,B=n.error||f.error,H=(0,i.LNN)({datasetPage:j,isValidating:I,error:B,filters:v,offset:r});return{balances:z,metrics:V,datasetPage:j,error:B,datasetState:H,offset:r,limit:t,datasetPageTotal:(null==j?void 0:j.length)||0,defaultPageSize:50,cellContext:F,configurableColumns:E,visibleColumnIds:k,sortableColumns:S,toggleColumnVisibility:O,setColumnsVisible:_,setColumnsHidden:M,toggleSort:A,setSortDirection:P,setSortField:T,sortField:N,sortDirection:R,resetDefaultColumnVisibility:D,filters:v,setFilter:g,removeFilter:y,removeLastFilter:x,resetFilters:b,visibleColumns:C}}();return(0,n.jsx)(v.Provider,{value:r,children:t})}},18993:function(e,t,r){"use strict";r.d(t,{Y:function(){return b},F:function(){return x}});var n=r(52322),i=r(35627),o=r(63694),a=r(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=r(35138),u=r(60381),c=r(54494);function d(e){let{id:t,contentProps:r,buttonProps:o}=e;return(0,n.jsx)(i.h_2,{trigger:(0,n.jsx)(i.zxk,{variant:"ghost",icon:"hover","aria-label":"volume context menu",...o,children:(0,n.jsx)(l.EMN,{})}),contentProps:{align:"start",...r},children:(0,n.jsx)(f,{id:t})})}function f(e){var t,r;let{id:a}=e,{openDialog:s}=(0,c.Rh)(),u=(0,o.Rz)(),d=(0,o.ST)({params:{id:a}}),f=(0,o._3)(),p=d.data&&"ready"==d.data.status,m=d.data&&!["ready","unavailable"].includes(d.data.status);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"px-1.5 py-1",children:(0,n.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",d.data?(0,i.$Gg)(null===(t=d.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,n.jsx)(i.Juw,{children:"Actions"}),m?(0,n.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=d.data)||void 0===e?void 0:e.status;(await f.delete({params:{id:Number(a)}})).error?(0,i.OHV)({title:"Error canceling volume ".concat(h(t))}):(0,i.OPV)({title:"Canceled volume ".concat(h(t))})},children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.PcV,{})}),"Cancel ".concat(h(null===(r=d.data)||void 0===r?void 0:r.status))]}):null,d.data?(0,n.jsxs)(i.Xiv,{disabled:!p,onSelect:async()=>{let e=!d.data.readOnly;(await u.put({params:{id:Number(a)},payload:{readOnly:e}})).error?(0,i.OHV)({title:e?"Error setting volume to read-only":"Error setting volume to read/write"}):(0,i.OPV)({title:e?"Volume set to read-only":"Volume set to read/write"})},children:[(0,n.jsx)(i.KpP,{children:d.data.readOnly?(0,n.jsx)(l.dr6,{}):(0,n.jsx)(l.Lur,{})}),d.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,n.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>s("volumeResize",a),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.BB5,{})}),"Resize"]}),(0,n.jsxs)(i.Xiv,{disabled:m,onSelect:()=>s("volumeDelete",a),children:[(0,n.jsx)(i.KpP,{children:(0,n.jsx)(l.Jrl,{})}),"Delete"]})]})}function h(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let p=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,n.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,n.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:r}=e;return(0,n.jsx)(i.ua7,{side:"right",content:r.available?"available":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.xvT,{size:"12",children:"unavailable"}),(0,n.jsx)("div",{className:"flex flex-col",children:null===(t=r.errors)||void 0===t?void 0:t.map(e=>(0,n.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[r.available&&"ready"===r.status&&(0,n.jsx)(i.xvT,{color:"green",children:(0,n.jsx)(l.DI$,{})}),r.available&&"ready"!==r.status&&(0,n.jsx)(i.xvT,{color:"amber",children:(0,n.jsx)(l.dsj,{})}),!r.available&&(0,n.jsx)(i.xvT,{color:"amber",children:(0,n.jsx)(l.SmH,{})}),(0,n.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:r.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,n.jsx)(i.ua7,{content:"Read-only",children:(0,n.jsx)(i.xvT,{children:(0,n.jsx)(l.Lur,{})})}):(0,n.jsx)(i.ua7,{content:"Read and write enabled",children:(0,n.jsx)(i.xvT,{color:"subtle",children:(0,n.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,n.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,n.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,n.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var m=r(6391),v=r.n(m),g=r(99634);let y=(0,a.createContext)({}),x=()=>(0,a.useContext)(y);function b(e){let{children:t}=e,r=function(){let{limit:e,offset:t}=(0,i.It_)(50),{filters:r}=(0,i.Wdu)(),{configurableColumns:n,visibleColumnIds:l,visibleColumns:c,toggleColumnVisibility:d,setColumnsVisible:f,setColumnsHidden:h,toggleSort:m,setSortDirection:y,setSortField:x,sortField:b,sortDirection:w,resetDefaultColumnVisibility:j}=(0,i.oy6)("hostd/v0/volumes",{columns:p,columnsDefaultVisible:s,defaultSortField:"id",defaultSortDirection:"asc"}),E=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,u.XB)(5):g.h}}}),k=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;if(t.data)return(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.id),localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(v())(e.usedSectors).times((0,u.B$)(4)).toNumber(),totalBytes:new(v())(e.totalSectors).times((0,u.B$)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(v())(e.failedReads),failedWrites:new(v())(e.failedWrites),successfulReads:new(v())(e.successfulReads),successfulWrites:new(v())(e.successfulWrites),errors:e.errors})))||[]},[t.data])}({response:E}),{datasetFiltered:C,datasetPage:S}=(0,i._4u)({dataset:k,filters:r,sortField:b,sortDirection:w,offset:t,limit:e}),O=E.isValidating,_=E.error;return{datasetState:(0,i.LNN)({datasetPage:S,isValidating:O,error:_,offset:t}),datasetTotal:(null==k?void 0:k.length)||0,datasetFilteredTotal:(null==C?void 0:C.length)||0,datasetPageTotal:(null==S?void 0:S.length)||0,isLoading:E.isValidating,visibleColumns:c,dataset:k,datasetPage:S,offset:t,limit:e,configurableColumns:n,visibleColumnIds:l,toggleColumnVisibility:d,setColumnsVisible:f,setColumnsHidden:h,toggleSort:m,setSortDirection:y,setSortField:x,sortField:b,sortDirection:w,resetDefaultColumnVisibility:j}}();return(0,n.jsx)(y.Provider,{value:r,children:t})}},32088:function(e,t,r){"use strict";r.d(t,{O:function(){return u},Y:function(){return f}});var n=r(52322),i=r(35627),o=r(65717),a=r(92683),s=r(24511),l=r(54494);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:r,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,n.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:r,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,n.jsx)("div",{className:"flex flex-col gap-4",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,n.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},66510:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(35627),i=r(63694);function o(){var e;return(null===(e=(0,i.gM)().data)||void 0===e?void 0:e.name)==="zen"?n.nNd.explore.testnetZen:n.nNd.explore.mainnet}},16211:function(e,t,r){"use strict";r.d(t,{n:function(){return a}});var n=r(36219),i=r(63694),o=r(60381);function a(){var e,t;let{isUnlockedAndAuthedRoute:r}=(0,n.Hv)(),o=(0,i.ek)({config:{swr:{refreshInterval:e=>s(e)?6e4:1e4}}}),a=s(o.data),l=(0,i.nH)(),u=o.data?null===(e=o.data)||void 0===e?void 0:e.index.height:0,c=(0,i.Gp)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.height)>=u?6e4:1e4}}}),d=r&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=r&&u&&c.data?Number((100*Math.min(c.data.height/l,1)).toFixed(1)):0;return{isSynced:a,isWalletSynced:a&&(null===(t=c.data)||void 0===t?void 0:t.height)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}function s(e){return null!=e&&!!e.prevTimestamps[0]&&new Date(null==e?void 0:e.prevTimestamps[0]).getTime()>Date.now()-(0,o.yt)(12)}},83906:function(e,t,r){"use strict";r.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var n=r(60381),i=r(6391),o=r.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,n.xf)(1)).times((0,n.S5)(1))}let l="/million";function u(e){return new(o())(e).times(1e6)}let c="/million";function d(e){return new(o())(e).times(1e6)}let f="/TB/month";function h(e){return new(o())(e).times((0,n.xf)(1)).times((0,n.S5)(1))}let p="/TB";function m(e){return new(o())(e).times((0,n.xf)(1))}let v="/TB";function g(e){return new(o())(e).times((0,n.xf)(1))}},65047:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return x}});var n=r(52322);r(21962);var i=r(35627),o=r(65717),a=r(68202),s=r(54494),l=r(18993),u=r(29703),c=r(88022);function d(e){let{children:t}=e;return(0,n.jsx)(s.Tu,{children:(0,n.jsx)(u.iV,{children:(0,n.jsx)(c.v,{children:(0,n.jsx)(l.Y,{children:(0,n.jsx)(o.x,{children:(0,n.jsxs)(a.C,{children:[(0,n.jsx)(s.xQ,{}),t]})})})})})})}var f=r(4300),h=r(29773),p=r.n(h),m=r(17282),v=r.n(m);let g=(0,r(82851).cx)(p().variable,v().variable);var y=r(79338);function x(e){return(0,n.jsx)(i.PD$,{className:g,fallback:e.pageProps.fallback,daemonExplorerInfoRoute:y.ay,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,n.jsx)(d,{children:(0,n.jsx)(b,{...e})})})}function b(e){let{Component:t,pageProps:r}=e,i=t.Layout,o=t.useLayoutProps(),{fallback:a,...s}=r;return(0,n.jsx)(i,{...o,children:(0,n.jsx)(t,{...s})})}},35627:function(e,t,r){"use strict";let n,i,o,a,s,l,u,c,d,f,h;r.d(t,{hcY:function(){return Dl},tU3:function(){return Do},$9_:function(){return DT},zXq:function(){return DP},juT:function(){return Rz},Cts:function(){return uA},Z58:function(){return Lr},WVB:function(){return vp},zxk:function(){return ua},b0u:function(){return A_},XZJ:function(){return u4},EKh:function(){return uN},npL:function(){return LY},vRO:function(){return LW},CN9:function(){return LU},ckm:function(){return LD},QHy:function(){return L_},TaT:function(){return Lp},eQh:function(){return uD},HfT:function(){return LP},ncR:function(){return TP},A06:function(){return La},Vy9:function(){return Ls},VqE:function(){return f_},h_2:function(){return vx},Xiv:function(){return vb},Juw:function(){return vw},KpP:function(){return vj},ubH:function(){return RR},jIp:function(){return LL},QBj:function(){return DN},yEL:function(){return Dj},cB7:function(){return TF},ZqQ:function(){return TL},IKw:function(){return TH},WN2:function(){return Fp},X6q:function(){return vS},Yqd:function(){return yF},__J:function(){return vD},rUS:function(){return vZ},xgg:function(){return AS},TRl:function(){return vV},kFS:function(){return vm},FzK:function(){return LC},Clw:function(){return vh},hv1:function(){return Fd},PD$:function(){return L0},Wxm:function(){return yI},uDJ:function(){return RO},wFK:function(){return R_},s_4:function(){return nr},M9k:function(){return LS},VXA:function(){return LO},nvN:function(){return ne},u5Q:function(){return Ln},j4H:function(){return yZ},J2e:function(){return gu},kod:function(){return gM},xrM:function(){return fC},PhF:function(){return yz},Z0O:function(){return vl},DLL:function(){return D2},KJW:function(){return RH},rsf:function(){return xr},D_D:function(){return DW},iA_:function(){return RS},t6k:function(){return LT},xvT:function(){return r9},nvn:function(){return yo},ua7:function(){return ui},mPE:function(){return D$},XxW:function(){return P6},m2c:function(){return Tn},ho9:function(){return Tr},Sby:function(){return P7},QUh:function(){return D3},weF:function(){return DI},YNn:function(){return DK},DmW:function(){return DX},O9T:function(){return EE},fVJ:function(){return D9},vQq:function(){return P1},Y_Z:function(){return D5},EJC:function(){return Fm},kOJ:function(){return D7},OQF:function(){return D6},eKZ:function(){return Zt},Vkc:function(){return vc},S5N:function(){return Ze},z$:function(){return nt},x9T:function(){return Ff},bjP:function(){return Fh},f5n:function(){return Dw},I13:function(){return P3},cEb:function(){return yi},OHV:function(){return PJ},OPV:function(){return PX},$Gg:function(){return P4},_4u:function(){return Fr},Wdu:function(){return Ft},Y97:function(){return Di},LNN:function(){return Da},t0Y:function(){return DB},mYE:function(){return LK},u$d:function(){return LX},Z4p:function(){return LG},A7R:function(){return Fu},WsO:function(){return Db},It_:function(){return Fi},Uu5:function(){return Fn},oy6:function(){return L9},nNd:function(){return DJ}});var p,m,v,g,y,x,b,w,j,E,k,C,S,O,_,M,A,P,T,N,R,D,L,F,Z,V,z,I,B,H,U,W,$,q,Y,G,K,X,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef={};r.r(ef),r.d(ef,{useDropzone:function(){return ws}});var eh=r(52322),ep=r(2784),em=r.t(ep,2);function ev(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function eg(...e){return ep.useCallback(ev(...e),e)}var ey=ep.forwardRef((e,t)=>{let{children:r,...n}=e,i=ep.Children.toArray(r),o=i.find(ew);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:ep.Children.count(e)>1?ep.Children.only(null):ep.isValidElement(e)?e.props.children:null);return(0,eh.jsx)(ex,{...n,ref:t,children:ep.isValidElement(e)?ep.cloneElement(e,void 0,r):null})}return(0,eh.jsx)(ex,{...n,ref:t,children:r})});ey.displayName="Slot";var ex=ep.forwardRef((e,t)=>{let{children:r,...n}=e;if(ep.isValidElement(r)){let e,i;let o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return ep.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?ev(t,o):o})}return ep.Children.count(r)>1?ep.Children.only(null):null});ex.displayName="SlotClone";var eb=({children:e})=>(0,eh.jsx)(eh.Fragment,{children:e});function ew(e){return ep.isValidElement(e)&&e.type===eb}function ej(e){let t=ep.useRef(e);return ep.useEffect(()=>{t.current=e}),ep.useMemo(()=>(...e)=>t.current?.(...e),[])}function eE({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=ep.useState(e),[n]=r,i=ep.useRef(n),o=ej(t);return ep.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=ej(r);return[a,ep.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s])]}var ek=r(28316),eC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=ep.forwardRef((e,r)=>{let{asChild:n,...i}=e,o=n?ey:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eh.jsx)(o,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eS(e){let t=ep.useRef(e);return ep.useEffect(()=>{t.current=e}),ep.useMemo(()=>(...e)=>t.current?.(...e),[])}var eO=globalThis?.document?ep.useLayoutEffect:()=>{};function e_(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}var eM=ep.forwardRef((e,t)=>{let{children:r,...n}=e,i=ep.Children.toArray(r),o=i.find(eT);if(o){let e=o.props.children,r=i.map(t=>t!==o?t:ep.Children.count(e)>1?ep.Children.only(null):ep.isValidElement(e)?e.props.children:null);return(0,eh.jsx)(eA,{...n,ref:t,children:ep.isValidElement(e)?ep.cloneElement(e,void 0,r):null})}return(0,eh.jsx)(eA,{...n,ref:t,children:r})});eM.displayName="Slot";var eA=ep.forwardRef((e,t)=>{let{children:r,...n}=e;if(ep.isValidElement(r)){let e,i;let o=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return ep.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props),ref:t?e_(t,o):o})}return ep.Children.count(r)>1?ep.Children.only(null):null});eA.displayName="SlotClone";var eP=({children:e})=>(0,eh.jsx)(eh.Fragment,{children:e});function eT(e){return ep.isValidElement(e)&&e.type===eP}var eN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=ep.forwardRef((e,r)=>{let{asChild:n,...i}=e,o=n?eM:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,eh.jsx)(o,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),eR=globalThis?.document?ep.useLayoutEffect:()=>{},eD=e=>{let t,r;let{present:n,children:i}=e,o=function(e){var t,r;let[n,i]=ep.useState(),o=ep.useRef({}),a=ep.useRef(e),s=ep.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},ep.useReducer((e,t)=>r[e][t]??e,t));return ep.useEffect(()=>{let e=eL(o.current);s.current="mounted"===l?e:"none"},[l]),eR(()=>{let t=o.current,r=a.current;if(r!==e){let n=s.current,i=eL(t);e?u("MOUNT"):"none"===i||t?.display==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),eR(()=>{if(n){let e;let t=n.ownerDocument.defaultView??window,r=r=>{let i=eL(o.current).includes(r.animationName);if(r.target===n&&i&&(u("ANIMATION_END"),!a.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},i=e=>{e.target===n&&(s.current=eL(o.current))};return n.addEventListener("animationstart",i),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",i),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ep.useCallback(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(n),a="function"==typeof i?i({present:o.isPresent}):ep.Children.only(i),s=function(...e){return ep.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}(o.ref,(t=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.ref:(t=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.props.ref:a.props.ref||a.ref);return"function"==typeof i||o.isPresent?ep.cloneElement(a,{ref:s}):null};function eL(e){return e?.animationName||"none"}eD.displayName="Presence";var eF=globalThis?.document?ep.useLayoutEffect:()=>{},eZ=em["useId".toString()]||(()=>void 0),eV=0;function ez(e){let[t,r]=ep.useState(eZ());return eF(()=>{e||r(e=>e??String(eV++))},[e]),e||(t?`radix-${t}`:"")}var eI="Collapsible",[eB,eH]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ep.createContext(e));return function(r){let n=r?.[e]||t;return ep.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=ep.createContext(n),o=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,s=r?.[e]?.[o]||i,l=ep.useMemo(()=>a,Object.values(a));return(0,eh.jsx)(s.Provider,{value:l,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let s=a?.[e]?.[o]||i,l=ep.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return ep.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(eI),[eU,eW]=eB(eI),e$=ep.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=function({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let r=ep.useState(e),[n]=r,i=ep.useRef(n),o=eS(t);return ep.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,a=o?e:n,s=eS(r);return[a,ep.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[o,e,i,s])]}({prop:n,defaultProp:i,onChange:a});return(0,eh.jsx)(eU,{scope:r,disabled:o,contentId:ez(),open:l,onOpenToggle:ep.useCallback(()=>u(e=>!e),[u]),children:(0,eh.jsx)(eN.div,{"data-state":eJ(l),"data-disabled":o?"":void 0,...s,ref:t})})});e$.displayName=eI;var eq="CollapsibleTrigger",eY=ep.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=eW(eq,r);return(0,eh.jsx)(eN.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":eJ(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onClick,i.onOpenToggle)})});eY.displayName=eq;var eG="CollapsibleContent",eK=ep.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=eW(eG,e.__scopeCollapsible);return(0,eh.jsx)(eD,{present:r||i.open,children:({present:e})=>(0,eh.jsx)(eX,{...n,ref:t,present:e})})});eK.displayName=eG;var eX=ep.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:n,children:i,...o}=e,a=eW(eG,r),[s,l]=ep.useState(n),u=ep.useRef(null),c=function(...e){return ep.useCallback(e_(...e),e)}(t,u),d=ep.useRef(0),f=d.current,h=ep.useRef(0),p=h.current,m=a.open||s,v=ep.useRef(m),g=ep.useRef();return ep.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),eO(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationName=g.current.animationName),l(n)}},[a.open,n]),(0,eh.jsx)(eN.div,{"data-state":eJ(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...o,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:m&&i})});function eJ(e){return e?"open":"closed"}var eQ=ep.createContext(void 0),e0="Accordion",e1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[e2,e4,e3]=function(e){let t=e+"CollectionProvider",[r,n]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ep.createContext(e));return function(r){let n=r?.[e]||t;return ep.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=ep.createContext(n),o=r.length;function a(t){let{scope:r,children:n,...a}=t,s=r?.[e][o]||i,l=ep.useMemo(()=>a,Object.values(a));return(0,eh.jsx)(s.Provider,{value:l,children:n})}return r=[...r,n],a.displayName=t+"Provider",[a,function(r,a){let s=a?.[e][o]||i,l=ep.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return ep.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:r}=e,n=ep.useRef(null),o=ep.useRef(new Map).current;return(0,eh.jsx)(i,{scope:t,itemMap:o,collectionRef:n,children:r})};a.displayName=t;let s=e+"CollectionSlot",l=ep.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=eg(t,o(s,r).collectionRef);return(0,eh.jsx)(ey,{ref:i,children:n})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=ep.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=ep.useRef(null),s=eg(t,a),l=o(u,r);return ep.useEffect(()=>(l.itemMap.set(a,{ref:a,...i}),()=>void l.itemMap.delete(a))),(0,eh.jsx)(ey,{[c]:"",ref:s,children:n})});return d.displayName=u,[{Provider:a,Slot:l,ItemSlot:d},function(t){let r=o(e+"CollectionConsumer",t);return ep.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(e0),[e5,e6]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>ep.createContext(e));return function(r){let n=r?.[e]||t;return ep.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=ep.createContext(n),o=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,s=r?.[e]?.[o]||i,l=ep.useMemo(()=>a,Object.values(a));return(0,eh.jsx)(s.Provider,{value:l,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let s=a?.[e]?.[o]||i,l=ep.useContext(s);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return ep.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(e0,[e3,eH]),e8=eH();ep.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,eh.jsx)(e2.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,eh.jsx)(tn,{...n,ref:t}):(0,eh.jsx)(tr,{...n,ref:t})})}).displayName=e0;var[e7,e9]=e5(e0),[te,tt]=e5(e0,{collapsible:!1}),tr=ep.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=eE({prop:r,defaultProp:n,onChange:i});return(0,eh.jsx)(e7,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:ep.useCallback(()=>o&&l(""),[o,l]),children:(0,eh.jsx)(te,{scope:e.__scopeAccordion,collapsible:o,children:(0,eh.jsx)(ta,{...a,ref:t})})})}),tn=ep.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:i=()=>{},...o}=e,[a=[],s]=eE({prop:r,defaultProp:n,onChange:i}),l=ep.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=ep.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,eh.jsx)(e7,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:(0,eh.jsx)(te,{scope:e.__scopeAccordion,collapsible:!0,children:(0,eh.jsx)(ta,{...o,ref:t})})})}),[ti,to]=e5(e0),ta=ep.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,dir:i,orientation:o="vertical",...a}=e,s=eg(ep.useRef(null),t),l=e4(r),u="ltr"===function(e){let t=ep.useContext(eQ);return e||t||"ltr"}(i),c=function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onKeyDown,e=>{if(!e1.includes(e.key))return;let t=e.target,r=l().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let a=n,s=i-1,c=()=>{(a=n+1)>s&&(a=0)},d=()=>{(a=n-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===o&&(u?c():d());break;case"ArrowDown":"vertical"===o&&c();break;case"ArrowLeft":"horizontal"===o&&(u?d():c());break;case"ArrowUp":"vertical"===o&&d()}let f=a%i;r[f].ref.current?.focus()});return(0,eh.jsx)(ti,{scope:r,disabled:n,direction:i,orientation:o,children:(0,eh.jsx)(e2.Slot,{scope:r,children:(0,eh.jsx)(eC.div,{...a,"data-orientation":o,ref:s,onKeyDown:n?void 0:c})})})}),ts="AccordionItem",[tl,tu]=e5(ts);ep.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=to(ts,r),a=e9(ts,r),s=e8(r),l=ez(),u=n&&a.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,eh.jsx)(tl,{scope:r,open:u,disabled:c,triggerId:l,children:(0,eh.jsx)(e$,{"data-orientation":o.orientation,"data-state":th(u),...s,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})}).displayName=ts;var tc="AccordionHeader";ep.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=to(e0,r),o=tu(tc,r);return(0,eh.jsx)(eC.h3,{"data-orientation":i.orientation,"data-state":th(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})}).displayName=tc;var td="AccordionTrigger";ep.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=to(e0,r),o=tu(td,r),a=tt(td,r),s=e8(r);return(0,eh.jsx)(e2.ItemSlot,{scope:r,children:(0,eh.jsx)(eY,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})}).displayName=td;var tf="AccordionContent";function th(e){return e?"open":"closed"}ep.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=to(e0,r),o=tu(tf,r),a=e8(r);return(0,eh.jsx)(eK,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}).displayName=tf;var tp=r(82851),tm=r(7896),tv=r(41816),tg=r(26215),ty=r(34540),tx=r(72130),tb=r(86029);let tw="dismissableLayer.update",tj=(0,ep.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tE=(0,ep.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,ep.useContext)(tj),[d,f]=(0,ep.useState)(null),[,h]=(0,ep.useState)({}),p=(0,tg.e)(t,e=>f(e)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=d?m.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,b=y>=g,w=function(e){let t=(0,tb.W)(e),r=(0,ep.useRef)(!1),n=(0,ep.useRef)(()=>{});return(0,ep.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){tC("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...c.branches].some(e=>e.contains(t));!b||r||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),j=function(e){let t=(0,tb.W)(e),r=(0,ep.useRef)(!1);return(0,ep.useEffect)(()=>{let e=e=>{e.target&&!r.current&&tC("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...c.branches].some(e=>e.contains(t))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=(0,tb.W)(e);(0,ep.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{y!==c.layers.size-1||(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,ep.useEffect)(()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),tk(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[d,r,c]),(0,ep.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),tk())},[d,c]),(0,ep.useEffect)(()=>{let e=()=>h({});return document.addEventListener(tw,e),()=>document.removeEventListener(tw,e)},[]),(0,ep.createElement)(tx.WV.div,(0,tm.Z)({},u,{ref:p,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:(0,tv.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,tv.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,tv.M)(e.onPointerDownCapture,w.onPointerDownCapture)}))});function tk(){let e=new CustomEvent(tw);document.dispatchEvent(e)}function tC(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,tx.jH)(i,o):i.dispatchEvent(o)}var tS=r(64680);let tO=em["useId".toString()]||(()=>void 0),t_=0;function tM(e){return e.split("-")[0]}function tA(e){return e.split("-")[1]}function tP(e){return["top","bottom"].includes(tM(e))?"x":"y"}function tT(e){return"y"===e?"height":"width"}function tN(e,t,r){let n,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=tP(t),u=tT(l),c=i[u]/2-o[u]/2,d="x"===l;switch(tM(t)){case"top":n={x:a,y:i.y-o.height};break;case"bottom":n={x:a,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:s};break;case"left":n={x:i.x-o.width,y:s};break;default:n={x:i.x,y:i.y}}switch(tA(t)){case"start":n[l]-=c*(r&&d?-1:1);break;case"end":n[l]+=c*(r&&d?-1:1)}return n}let tR=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=tN(l,n,s),d=n,f={},h=0;for(let r=0;r({name:"arrow",options:e,async fn(t){let{element:r,padding:n=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==r)return{};let u=tD(n),c={x:i,y:o},d=tP(a),f=tA(a),h=tT(d),p=await l.getDimensions(r),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(r)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],j=b-p[h]-u[v],E=b/2-p[h]/2+(g/2-y/2),k=tV(w,tZ(E,j)),C=("start"===f?u[m]:u[v])>0&&E!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(C?EtI[e])}let tH={start:"end",end:"start"};function tU(e){return e.replace(/start|end/g,e=>tH[e])}let tW=["top","right","bottom","left"];function t$(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tq(e){return tW.some(t=>e[t]>=0)}tW.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let tY=function(e){let{strategy:t="referenceHidden",...r}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:n}=e;switch(t){case"referenceHidden":{let t=t$(await tF(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tq(t)}}}case"escaped":{let t=t$(await tF(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:tq(t)}}}default:return{}}}}};function tG(e){return"x"===e?"y":"x"}function tK(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tX(e){if(null==e)return window;if(!tK(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function tJ(e){return tX(e).getComputedStyle(e)}function tQ(e){return tK(e)?"":e?(e.nodeName||"").toLowerCase():""}function t0(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function t1(e){return e instanceof tX(e).HTMLElement}function t2(e){return e instanceof tX(e).Element}function t4(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tX(e).ShadowRoot||e instanceof ShadowRoot)}function t3(e){let{overflow:t,overflowX:r,overflowY:n}=tJ(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function t5(e){let t=/firefox/i.test(t0()),r=tJ(e);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||t&&"filter"===r.willChange||t&&!!r.filter&&"none"!==r.filter}function t6(){return!/^((?!chrome|android).)*safari/i.test(t0())}let t8=Math.min,t7=Math.max,t9=Math.round;function re(e,t,r){var n,i,o,a;void 0===t&&(t=!1),void 0===r&&(r=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&t1(e)&&(l=e.offsetWidth>0&&t9(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&t9(s.height)/e.offsetHeight||1);let c=t2(e)?tX(e):window,d=!t6()&&r,f=(s.left+(d&&null!=(n=null==(i=c.visualViewport)?void 0:i.offsetLeft)?n:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function rt(e){return((e instanceof tX(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function rr(e){return t2(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rn(e){return re(rt(e)).left+rr(e).scrollLeft}function ri(e){return"html"===tQ(e)?e:e.assignedSlot||e.parentNode||(t4(e)?e.host:null)||rt(e)}function ro(e){return t1(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ra(e){let t=tX(e),r=ro(e);for(;r&&["table","td","th"].includes(tQ(r))&&"static"===getComputedStyle(r).position;)r=ro(r);return r&&("html"===tQ(r)||"body"===tQ(r)&&"static"===getComputedStyle(r).position&&!t5(r))?t:r||function(e){let t=ri(e);for(t4(t)&&(t=t.host);t1(t)&&!["html","body"].includes(tQ(t));){if(t5(t))return t;t=t.parentNode}return null}(e)||t}function rs(e){if(t1(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=re(e);return{width:t.width,height:t.height}}function rl(e,t){var r;void 0===t&&(t=[]);let n=function e(t){let r=ri(t);return["html","body","#document"].includes(tQ(r))?t.ownerDocument.body:t1(r)&&t3(r)?r:e(r)}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=tX(n),a=i?[o].concat(o.visualViewport||[],t3(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(rl(a))}function ru(e,t,r){return"viewport"===t?tL(function(e,t){let r=tX(e),n=rt(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=t6();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r)):t2(t)?function(e,t){let r=re(e,!1,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,r):tL(function(e){var t;let r=rt(e),n=rr(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=t7(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=t7(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+rn(e),l=-n.scrollTop;return"rtl"===tJ(i||r).direction&&(s+=t7(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(rt(e)))}let rc={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?function(e){let t=rl(e),r=["absolute","fixed"].includes(tJ(e).position)&&t1(e)?ra(e):e;return t2(r)?t.filter(e=>t2(e)&&function(e,t){let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&t4(r)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,r)&&"body"!==tQ(e)):[]}(t):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=ru(t,r,i);return e.top=t7(n.top,e.top),e.right=t8(n.right,e.right),e.bottom=t8(n.bottom,e.bottom),e.left=t7(n.left,e.left),e},ru(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e,i=t1(r),o=rt(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==tQ(r)||t3(o))&&(a=rr(r)),t1(r))){let e=re(r,!0);s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:t2,getDimensions:rs,getOffsetParent:ra,getDocumentElement:rt,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:function(e,t,r){let n=t1(t),i=rt(t),o=re(e,n&&function(e){let t=re(e);return t9(t.width)!==e.offsetWidth||t9(t.height)!==e.offsetHeight}(t),"fixed"===r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(n||!n&&"fixed"!==r){if(("body"!==tQ(t)||t3(i))&&(a=rr(t)),t1(t)){let e=re(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=rn(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,ra(r),n),floating:{...rs(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===tJ(e).direction};function rd(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...t2(e)?rl(e):[],...rl(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let d,f=null;if(a){let n=!0;f=new ResizeObserver(()=>{n||r(),n=!1}),t2(e)&&!s&&f.observe(e),f.observe(t)}let h=s?re(e):null;return s&&function t(){let n=re(e);h&&(n.x!==h.x||n.y!==h.y||n.width!==h.width||n.height!==h.height)&&r(),h=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let rf=(e,t,r)=>tR(e,t,{platform:rc,...r});var rh="undefined"!=typeof document?ep.useLayoutEffect:ep.useEffect;let rp=e=>{let{element:t,padding:r}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return tz({element:t.current,padding:r}).fn(e)}else if(t)return tz({element:t,padding:r}).fn(e);return{}}}},rm=(0,ep.forwardRef)((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,ep.createElement)(tx.WV.svg,(0,tm.Z)({},o,{ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:(0,ep.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),rv="Popper",[rg,ry]=(0,ty.b)(rv),[rx,rb]=rg(rv),rw=(0,ep.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=rb("PopperAnchor",r),a=(0,ep.useRef)(null),s=(0,tg.e)(t,a);return(0,ep.useEffect)(()=>{o.onAnchorChange((null==n?void 0:n.current)||a.current)}),n?null:(0,ep.createElement)(tx.WV.div,(0,tm.Z)({},i,{ref:s}))}),rj="PopperContent",[rE,rk]=rg(rj),[rC,rS]=rg(rj,{hasParent:!1,positionUpdateFns:new Set}),rO=(0,ep.forwardRef)((e,t)=>{var r,n,i,o,a,s,l,u,c,d,f,h;let{__scopePopper:p,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:x=0,collisionBoundary:b=[],collisionPadding:w=0,sticky:j="partial",hideWhenDetached:E=!1,avoidCollisions:k=!0,...C}=e,S=rb(rj,p),[O,_]=(0,ep.useState)(null),M=(0,tg.e)(t,e=>_(e)),[A,P]=(0,ep.useState)(null),T=function(e){let[t,r]=(0,ep.useState)(void 0);return(0,tS.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(A),N=null!==(r=null==T?void 0:T.width)&&void 0!==r?r:0,R=null!==(n=null==T?void 0:T.height)&&void 0!==n?n:0,D="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},L=Array.isArray(b)?b:[b],F=L.length>0,Z={padding:D,boundary:L.filter(rA),altBoundary:F},{reference:V,floating:z,strategy:I,x:B,y:H,placement:U,middlewareData:W,update:$}=function(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=ep.useRef(null),a=ep.useRef(null),s=function(e){let t=ep.useRef(e);return rh(()=>{t.current=e}),t}(i),l=ep.useRef(null),[u,c]=ep.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[d,f]=ep.useState(t);!function e(t,r){let n,i,o;if(t===r)return!0;if(typeof t!=typeof r)return!1;if("function"==typeof t&&t.toString()===r.toString())return!0;if(t&&r&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(("_owner"!==n||!t.$$typeof)&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=ep.useCallback(()=>{o.current&&a.current&&rf(o.current,a.current,{middleware:d,placement:r,strategy:n}).then(e=>{p.current&&ek.flushSync(()=>{c(e)})})},[d,r,n]);rh(()=>{p.current&&h()},[h]);let p=ep.useRef(!1);rh(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=ep.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=ep.useCallback(e=>{o.current=e,m()},[m]),g=ep.useCallback(e=>{a.current=e,m()},[m]),y=ep.useMemo(()=>({reference:o,floating:a}),[]);return ep.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:rd,middleware:[{name:"offset",options:c={mainAxis:v+R,alignmentAxis:y},async fn(e){let{x:t,y:r}=e,n=await async function(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=tM(r),s=tA(r),l="x"===tP(r),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(e,c);return{x:t+n.x,y:r+n.y,data:n}}},k?{name:"shift",options:f={mainAxis:!0,crossAxis:!1,limiter:"partial"===j?(void 0===d&&(d={}),{options:d,fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=d,u={x:t,y:r},c=tP(n),f=tG(c),h=u[c],p=u[f],m="function"==typeof a?a({...i,placement:n}):a,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===c?"height":"width",t=i.reference[c]-i.floating[e]+v.mainAxis,r=i.reference[c]+i.reference[e]-v.mainAxis;hr&&(h=r)}if(l){var g,y,x,b;let e="y"===c?"width":"height",t=["top","left"].includes(tM(n)),r=i.reference[f]-i.floating[e]+(t&&null!=(g=null==(y=o.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),a=i.reference[f]+i.reference[e]+(t?0:null!=(x=null==(b=o.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pa&&(p=a)}return{[c]:h,[f]:p}}}):void 0,...Z},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=f,l={x:t,y:r},u=await tF(e,s),c=tP(tM(n)),d=tG(c),h=l[c],p=l[d];if(i){let e="y"===c?"bottom":"right";h=tV(h+u["y"===c?"top":"left"],tZ(h,h-u[e]))}if(o){let e="y"===d?"bottom":"right";p=tV(p+u["y"===d?"top":"left"],tZ(p,p-u[e]))}let m=a.fn({...e,[c]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-r}}}}:void 0,A?rp({element:A,padding:x}):void 0,k?{name:"flip",options:h={...Z},async fn(e){var t,r,n,i;let{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=h,y=tM(o),x=p||(y!==l&&v?function(e){let t=tB(e);return[tU(e),t,tU(t)]}(l):[tB(l)]),b=[l,...x],w=await tF(e,g),j=[],E=(null==(t=a.flip)?void 0:t.overflows)||[];if(d&&j.push(w[y]),f){let{main:e,cross:t}=function(e,t,r){void 0===r&&(r=!1);let n=tA(e),i=tP(e),o=tT(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=tB(a)),{main:a,cross:tB(a)}}(o,s,await (null==u.isRTL?void 0:u.isRTL(c.floating)));j.push(w[e],w[t])}if(E=[...E,{placement:o,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(n=a.flip)?void 0:n.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let s="bottom";switch(m){case"bestFit":{let e=null==(i=E.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:i[0].placement;e&&(s=e);break}case"initialPlacement":s=l}if(o!==s)return{reset:{placement:s}}}return{}}}:void 0,rP({arrowWidth:N,arrowHeight:R}),E?tY({strategy:"referenceHidden"}):void 0].filter(rM)});(0,tS.b)(()=>{V(S.anchor)},[V,S.anchor]);let q=null!==B&&null!==H,[Y,G]=rT(U),K=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,ep.useState)();(0,tS.b)(()=>{O&&ee(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:et,positionUpdateFns:er}=rS(rj,p),en=!et;(0,ep.useLayoutEffect)(()=>{if(!en)return er.add($),()=>{er.delete($)}},[en,er,$]),(0,ep.useLayoutEffect)(()=>{en&&q&&Array.from(er).reverse().forEach(e=>requestAnimationFrame(e))},[en,q,er]);let ei={"data-side":Y,"data-align":G,...C,ref:M,style:{...C.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,ep.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:I,left:0,top:0,transform:q?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,ep.createElement)(rE,{scope:p,placedSide:Y,onArrowChange:P,arrowX:K,arrowY:X,shouldHideArrow:J},en?(0,ep.createElement)(rC,{scope:p,hasParent:!0,positionUpdateFns:er},(0,ep.createElement)(tx.WV.div,ei)):(0,ep.createElement)(tx.WV.div,ei)))}),r_={top:"bottom",right:"left",bottom:"top",left:"right"};function rM(e){return void 0!==e}function rA(e){return null!==e}let rP=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=rT(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(n=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==n?n:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function rT(e){let[t,r="center"]=e.split("-");return[t,r]}let rN=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,ep.useState)(null);return(0,ep.createElement)(rx,{scope:t,anchor:n,onAnchorChange:i},r)},rR=(0,ep.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?ek.createPortal((0,ep.createElement)(tx.WV.div,(0,tm.Z)({},i,{ref:t})),n):null}),rD=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,i]=(0,ep.useState)(),o=(0,ep.useRef)({}),a=(0,ep.useRef)(e),s=(0,ep.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,ep.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return(0,ep.useEffect)(()=>{let e=rL(o.current);s.current="mounted"===l?e:"none"},[l]),(0,tS.b)(()=>{let t=o.current,r=a.current;if(r!==e){let n=s.current,i=rL(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):r&&n!==i?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),(0,tS.b)(()=>{if(n){let e=e=>{let t=rL(o.current).includes(e.animationName);e.target===n&&t&&(0,ek.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(s.current=rL(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,ep.useCallback)(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):ep.Children.only(r),o=(0,tg.e)(n.ref,i.ref);return"function"==typeof r||n.isPresent?(0,ep.cloneElement)(i,{ref:o}):null};function rL(e){return(null==e?void 0:e.animationName)||"none"}rD.displayName="Presence";var rF=r(99575),rZ=r(73597);let rV=(0,ep.forwardRef)((e,t)=>(0,ep.createElement)(tx.WV.span,(0,tm.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}}))),[rz,rI]=(0,ty.b)("Tooltip",[ry]),rB=ry(),rH="tooltip.open",[rU,rW]=rz("TooltipProvider"),r$="Tooltip",[rq,rY]=rz(r$),rG="TooltipTrigger",rK=(0,ep.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=rY(rG,r),o=rW(rG,r),a=rB(r),s=(0,ep.useRef)(null),l=(0,tg.e)(t,s,i.onTriggerChange),u=(0,ep.useRef)(!1),c=(0,ep.useRef)(!1),d=(0,ep.useCallback)(()=>u.current=!1,[]);return(0,ep.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,ep.createElement)(rw,(0,tm.Z)({asChild:!0},a),(0,ep.createElement)(tx.WV.button,(0,tm.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:l,onPointerMove:(0,tv.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,tv.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,tv.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,tv.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,tv.M)(e.onBlur,i.onClose),onClick:(0,tv.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),rX="TooltipPortal",[rJ,rQ]=rz(rX,{forceMount:void 0}),r0="TooltipContent",r1=(0,ep.forwardRef)((e,t)=>{let r=rQ(r0,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,a=rY(r0,e.__scopeTooltip);return(0,ep.createElement)(rD,{present:n||a.open},a.disableHoverableContent?(0,ep.createElement)(r5,(0,tm.Z)({side:i},o,{ref:t})):(0,ep.createElement)(r2,(0,tm.Z)({side:i},o,{ref:t})))}),r2=(0,ep.forwardRef)((e,t)=>{let r=rY(r0,e.__scopeTooltip),n=rW(r0,e.__scopeTooltip),i=(0,ep.useRef)(null),o=(0,tg.e)(t,i),[a,s]=(0,ep.useState)(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:d}=n,f=(0,ep.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,ep.useCallback)((e,t)=>{let r=e.currentTarget,n=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},r.getBoundingClientRect()),i="right"===n||"bottom"===n?-5:5;s(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}(["right"===n||"left"===n?{x:e.clientX+i,y:e.clientY}:{x:e.clientX,y:e.clientY+i},...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())])),d(!0)},[d]);return(0,ep.useEffect)(()=>()=>f(),[f]),(0,ep.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,ep.useEffect)(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;en!=u>n&&r<(l-a)*(n-s)/(u-s)+a&&(i=!i)}return i}(r,a);n?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,ep.createElement)(r5,(0,tm.Z)({},e,{ref:o}))}),[r4,r3]=rz(r$,{isInside:!1}),r5=(0,ep.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=rY(r0,r),u=rB(r),{onClose:c}=l;return(0,ep.useEffect)(()=>(document.addEventListener(rH,c),()=>document.removeEventListener(rH,c)),[c]),(0,ep.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,ep.createElement)(tE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,ep.createElement)(rO,(0,tm.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,ep.createElement)(rF.A4,null,n),(0,ep.createElement)(r4,{scope:r,isInside:!0},(0,ep.createElement)(rV,{id:l.contentId,role:"tooltip"},i||n))))}),r6=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=rW(r$,e.__scopeTooltip),u=rB(t),[c,d]=(0,ep.useState)(null),f=function(e){let[t,r]=ep.useState(tO());return(0,tS.b)(()=>{r(e=>null!=e?e:String(t_++))},[void 0]),t?`radix-${t}`:""}(),h=(0,ep.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,ep.useRef)(!1),[g=!1,y]=(0,rZ.T)({prop:n,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(rH))):l.onClose(),null==o||o(e)}}),x=(0,ep.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),b=(0,ep.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),w=(0,ep.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,ep.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,ep.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,ep.createElement)(rN,u,(0,ep.createElement)(rq,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,ep.useCallback)(()=>{l.isOpenDelayed?j():b()},[l.isOpenDelayed,j,b]),onTriggerLeave:(0,ep.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:b,onClose:w,disableHoverableContent:p},r))},r8=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=rY(rX,t);return(0,ep.createElement)(rJ,{scope:t,forceMount:r},(0,ep.createElement)(rD,{present:r||o.open},(0,ep.createElement)(rR,{asChild:!0,container:i},n)))},r7=(0,tp.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"}}),r9=ep.forwardRef((e,t)=>{let{tag:r="span",className:n,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,eh.jsx)(r,{ref:t,className:(0,tp.cx)(n,r7({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),ne=ep.forwardRef((e,t)=>{let{size:r="18",...n}=e;return(0,eh.jsx)(r9,{tag:"p",...n,ref:t,weight:"regular",scaleSize:r,color:"subtle",className:(0,tp.cx)("leading-relaxed md:leading-relaxed",e.className)})}),nt=(0,tp.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"}}),nr=ep.forwardRef((e,t)=>{let{className:r,color:n,...i}=e;return(0,eh.jsx)("div",{ref:t,className:nt({className:r,color:n}),...i})});var nn=r(93542);let ni=(void 0===nn||nn.env,"production"),no=1/60*1e3,na="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ns="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(na()),no),nl=!0,nu=!1,nc=!1,nd={delta:0,timestamp:0},nf=["read","update","preRender","render","postRender"],nh=nf.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rnu=!0),e),{}),np=nf.reduce((e,t)=>{let r=nh[t];return e[t]=(e,t=!1,n=!1)=>(nu||nx(),r.schedule(e,t,n)),e},{}),nm=nf.reduce((e,t)=>(e[t]=nh[t].cancel,e),{}),nv=nf.reduce((e,t)=>(e[t]=()=>nh[t].process(nd),e),{}),ng=e=>nh[e].process(nd),ny=e=>{nu=!1,nd.delta=nl?no:Math.max(Math.min(e-nd.timestamp,40),1),nd.timestamp=e,nc=!0,nf.forEach(ng),nc=!1,nu&&(nl=!1,ns(ny))},nx=()=>{nu=!0,nl=!0,nc||ns(ny)},nb=()=>nd,nw="undefined"!=typeof document,nj=nw?ep.useLayoutEffect:ep.useEffect;function nE(){let e=(0,ep.useRef)(!1);return nj(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nk=(0,ep.createContext)(null);function nC(e){let t=(0,ep.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nS extends ep.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nO({children:e,isPresent:t}){let r=(0,ep.useId)(),n=(0,ep.useRef)(null),i=(0,ep.useRef)({width:0,height:0,top:0,left:0});return(0,ep.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!n.current||!e||!o)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${e}px !important; @@ -208,7 +208,7 @@ to { > * { pointer-events: auto; } -`,PY=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=Pk(r);return ep.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(r=>{let o=r.position||t,a=P$(o,l.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return ep.createElement(PW,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?Pq:"",style:a},"custom"===r.type?Ps(r.message,r):i?i(r):ep.createElement(PU,{toast:r,position:o}))}))};function PG(e){let{icon:t,title:r,body:n,toastId:i}=e;return(0,eh.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,eh.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,eh.jsx)(r9,{className:"flex items-center",color:"subtle",children:t}),(0,eh.jsx)(ui,{content:r,children:(0,eh.jsx)(r9,{ellipsis:!0,className:"flex-1",children:r})}),(0,eh.jsx)("div",{className:"flex items-center pl-1",children:(0,eh.jsx)(ua,{icon:"hover",size:"none",onClick:e=>{Pw.dismiss(i)},children:(0,eh.jsx)(us.PcV,{})})})]}),n&&(0,eh.jsx)("div",{className:"pb-1",children:(0,eh.jsx)(fC,{children:(0,eh.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,eh.jsx)(r9,{color:"subtle",size:"14",children:n})})})})]})}let PK=e=>{let{title:t,body:r,icon:n,options:i={}}=e;Pw(e=>(0,eh.jsx)(PG,{toastId:e.id,title:t,body:r,icon:n}),PQ(i))};function PX(e){let{title:t,body:r,options:n}=e;PK({title:t,body:r,icon:(0,eh.jsx)(us.yar,{className:"text-green-600"}),options:n})}function PJ(e){let{title:t,body:r,options:n}=e;PK({title:t,body:r,icon:(0,eh.jsx)(us.T80,{className:"text-red-600"}),options:n})}function PQ(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,tp.cx)(nt(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,eh.jsx)("div",{className:"!flex-none w-5",children:(0,eh.jsx)(us.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,eh.jsx)("div",{className:"!flex-none w-5",children:(0,eh.jsx)(us.Jsc,{className:"w-5 text-red-600"})})},...t}}function P0(){return(0,eh.jsx)(PY,{toastOptions:PQ(),containerStyle:{zIndex:20}})}let P1=(e,t)=>{PK({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,eh.jsx)(us.vtB,{})}),AK(()=>AF?(AA("Using `navigator.clipboard.writeText()`."),AF(e).catch(AX)):AV.resolve(AX(e)))},P2=(e,t,r)=>{var n;PK({title:r?"Copied ".concat(r," to clipboard"):"Copied to clipboard",icon:(0,eh.jsx)(us.vtB,{})}),n=[new ClipboardItem({[t]:e})],AK(()=>AL&&AZ?(AA("Using `navigator.clipboard.write()`."),AV.all(n.map(AQ)).then(e=>AL(e).then(AY).catch(e=>{if(!AJ(n,AM)&&!AJ(n,"text/html"))throw e;return AG}))):AG).then(e=>{var t;return e?Aq:(AJ(n,AM)||AA("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."),A$((t=n[0]).types,function(e){return t.getType(e).then(e=>new AV((t,r)=>{var n=new FileReader;n.addEventListener("load",()=>{var e=n.result;"string"==typeof e?t(e):r("could not convert blob to string")}),n.readAsText(e)}))}).then(e=>{if(!AW(e))throw Error("write() failed")}))})};function P4(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e?t&&e.length>t?"".concat(e.slice(0,t)).concat(r?"...":""):"".concat(e.slice(0,t)):""}function P3(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"").replace(/^bid:/,"")}function P5(e,t,r){return t?"".concat(e," ").concat(P4(t,r)):"".concat(e)}function P6(e){let{testId:t,value:r,displayValue:n,type:i,label:o,href:a,maxLength:s,size:l,scaleSize:u,weight:c,font:d,color:f="contrast",className:h,siascanUrl:p,contextMenu:m}=e,v=o||(0,Ek.uV)(i),g=s||(0,Ek.uF)(i),y=P3(r),x=n||i&&(0,Ek.Lu)(i,y,g)||(0,Ek.mj)(y,g);return(0,eh.jsxs)("div",{"data-testid":t,className:(0,tp.cx)("flex items-center",h),children:[a?(0,eh.jsx)(vZ,{href:a,underline:"hover",size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:x}):(0,eh.jsx)(r9,{size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:x}),(0,eh.jsx)("div",{className:"ml-1 flex items-center",children:m||(0,eh.jsx)(P8,{cleanValue:y,label:v,size:l,siascanUrl:p,type:i})})]})}function P8(e){let{size:t,cleanValue:r,label:n,siascanUrl:i,type:o}=e;return(0,eh.jsxs)(vx,{trigger:(0,eh.jsx)(ua,{size:"none",variant:"ghost",children:(0,eh.jsx)(us.EMN,{className:"10"===t?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,eh.jsxs)(vb,{onSelect:e=>{P1(r,n)},onClick:e=>{e.stopPropagation()},children:[(0,eh.jsx)(vj,{children:(0,eh.jsx)(us.olJ,{})}),"Copy to clipboard"]}),i&&o&&(0,Ek.Lg)(o)&&(0,eh.jsx)(vZ,{target:"_blank",href:(0,Ek.jH)(i,o,r),className:"block w-full",underline:"none",children:(0,eh.jsxs)(vb,{onClick:e=>{e.stopPropagation()},children:[(0,eh.jsx)(vj,{children:(0,eh.jsx)(us.V8Q,{})}),"View on Siascan"]})})]})}function P7(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change"}=e,a=(0,Ek.yF)(String(t),{units:"SF"});return(0,eh.jsx)(ui,{content:(i?"".concat(i," "):"")+a,children:(0,eh.jsxs)(r9,{size:r,scaleSize:n,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function P9(e){let{testId:t,value:r,size:n,scaleSize:i,tooltip:o="",tipSide:a,font:s="mono",variant:l="change",color:u,fixed:c=3,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0}=e,m=r.isGreaterThan(0)?"+":r.isLessThan(0)?"-":"",v=u||("change"===l?r.isGreaterThan(0)?"green":r.isLessThan(0)?"red":"subtle":"contrast"),g=(0,eh.jsxs)(r9,{"data-testid":t,size:n,scaleSize:i,weight:"medium",font:s,ellipsis:!0,color:v,children:["change"===l?"".concat(m).concat((0,Ek.Vz)(r.absoluteValue(),{fixed:c,dynamicUnits:d})):(0,Ek.Vz)(r,{fixed:c,dynamicUnits:d,hastingUnits:f}),h||""]});return p?(0,eh.jsx)(ui,{content:(o?"".concat(o," "):"")+(0,Ek.Vz)(r,{fixed:16,dynamicUnits:!1}),side:a,children:g}):g}function Te(e){let{sc:t,size:r,scaleSize:n,color:i,tooltip:o="",variant:a="change",fixed:s,font:l="mono",fixedTip:u=20,showTooltip:c=!0,tipSide:d,extendedSuffix:f}=e,{rate:h,currency:p}=(0,yD.Nz)(),m=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",v=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!h||!p)return null;let g=h.times(t).div(1e24),y=void 0!==s?s:p.fixed,x=(0,eh.jsx)(r9,{size:r,scaleSize:n,weight:"medium",font:l,ellipsis:!0,color:v,children:"".concat(m).concat(p.prefix).concat(Tt(g.absoluteValue(),y)).concat(f||"")});return c?(0,eh.jsx)(ui,{side:d,content:(o?"".concat(o," "):"")+"".concat(m).concat(p.prefix).concat(Tt(g.absoluteValue(),u)).concat(f||""),children:x}):x}function Tt(e,t){let[r,n]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(r));return n?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(n):i}function Tr(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,font:u="mono",tipSide:c,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0,displayBoth:m=!1,displayBothDirection:v="column"}=e,{settings:{currencyDisplay:g}}=(0,yD.Hv)(),{rate:y}=(0,yD.Nz)(),x=(0,ep.useMemo)(()=>(0,eh.jsx)(P9,{value:t,size:r,color:m&&"row"===v&&"bothPreferFiat"===g?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:a,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,r,n,i,o,a,u,d,f,h,p,c,g,m,v]),b=(0,ep.useMemo)(()=>(0,eh.jsx)(Te,{sc:t,size:r,color:m&&"row"===v&&"bothPreferSc"===g?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:s,fixedTip:l,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,r,n,i,o,u,s,l,d,f,h,p,c,g,m,v]);return"sc"!==g&&y?"fiat"===g?b:"bothPreferSc"===g?m?(0,eh.jsxs)("div",{className:"column"===v?"flex flex-col items-end":"flex gap-1",children:[x,b]}):x:"bothPreferFiat"===g?m?(0,eh.jsxs)("div",{className:"column"===v?"flex flex-col items-end":"flex gap-1",children:[b,x]}):b:x:x}function Tn(e){let{value:t,size:r="14",weight:n="semibold",tooltip:i="",tipSide:o,variant:a="change",color:s,format:l}=e,u=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",c="change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,eh.jsx)(ui,{side:o,content:(i?"".concat(i," "):"")+l(t),children:(0,eh.jsx)(r9,{size:r,weight:n,font:"mono",ellipsis:!0,color:s||c,children:"change"===a?"".concat(u).concat(l(t.absoluteValue())):l(t)})})}var Ti=r(84712),To=1/0,Ta=function(e){var t,r=(t=e)?(t=jE(t))===To||t===-To?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,n=r%1;return r==r?n?r-n:r:0},Ts=Math.min,Tl=function(e,t){if((e=Ta(e))<1||e>9007199254740991)return[];var r,n=4294967295,i=Ts(e,4294967295);t="function"==typeof(r=t)?r:Ay.Z,e-=4294967295;for(var o=(0,Ti.Z)(i,t);++n(0,eh.jsxs)("div",{className:(0,tp.cx)("relative flex gap-4 p-3.5",(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,eh.jsx)(yH,{className:"w-[60px] h-[50px]"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,eh.jsx)(yH,{className:"w-[90%] h-[20px]"}),(0,eh.jsx)(yH,{className:"w-[140px] h-[14px]"})]})]},e))})}var Tc=r(49435),Td=r(4895);function Tf(e,t){(0,Td.Z)(2,arguments);var r=(0,Tc.Z)(e),n=(0,Tc.Z)(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var Th={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Tp={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 Tm(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Tv={date:Tm({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tm({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:Tm({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ty(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function Tx(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r0?"in "+n:n+" ago":n},formatLong:Tv,formatRelative:function(e,t,r,n){return Tg[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ty({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ty({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:Ty({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:Ty({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:Ty({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:(M={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(M.matchPattern);if(!r)return null;var n=r[0],i=e.match(M.parsePattern);if(!i)return null;var o=M.valueCallback?M.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:Tx({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:Tx({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:Tx({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:Tx({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:Tx({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tw(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Tj=r(90821),TE=r(59866),Tk=r(51075),TC=r(16601),TS=function(e){e=(0,TC.Z)(e);var t=(0,TE.Z)(e)?(0,Tk.Z)(e):void 0,r=t?t[0]:e.charAt(0),n=t?(0,Tj.Z)(t,1).join(""):e.slice(1);return r.toUpperCase()+n};function TO(e){let{type:t,label:r,initials:n,href:i,src:o,shape:a}=e,s=(0,eh.jsx)(u_,{interactive:!!i,fallback:n||t&&(t||r||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,eh.jsx)(vZ,{href:i,underline:"none","data-testid":"entity-link",children:s})||s;return t?(0,eh.jsx)(ui,{content:r||(0,Ek.jF)(t),children:(0,eh.jsx)("div",{className:"",children:l})}):l}function T_(e){let{label:t,type:r,avatar:n,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,eh.jsxs)("div",{className:(0,tp.cx)("flex gap-4 p-4",(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,eh.jsx)(TO,{label:t,type:r,shape:i,src:n,initials:o||(r||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function TM(e){let t=e.sc,r=e.sf,n=e.hash&&(0,eh.jsx)(P6,{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,Ek.pX)(e.txType)||(0,Ek.jF)(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?TS(i):i;return(0,eh.jsx)(T_,{...e,children:(0,eh.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,eh.jsx)(r9,{color:"subtle",weight:"semibold",children:(0,eh.jsx)(vZ,{href:e.blockHref,underline:"none",children:(0,Ek.yF)(e.height)})}),o?(0,eh.jsx)(ui,{content:o,children:(0,eh.jsx)(r9,{ellipsis:!0,weight:"medium",children:o})}):(0,eh.jsx)(r9,{ellipsis:!0,weight:"medium",children:n})]}),(0,eh.jsx)("div",{className:"flex-1"}),(0,eh.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,eh.jsx)(Tr,{variant:e.scVariant,value:t}),!!r&&(0,eh.jsx)(P7,{variant:e.sfVariant,value:r})]})]}),(0,eh.jsxs)("div",{className:"flex justify-between w-full",children:[(0,eh.jsx)("div",{className:"flex gap-1",children:!!o&&n}),(0,eh.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(r9,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,eh.jsx)(r9,{color:"verySubtle",children:(0,eh.jsx)(us.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,eh.jsx)(r9,{color:"subtle",children:function(e,t){var r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,Td.Z)(2,arguments);var a=o.locale||Tb;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=Tf(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(r=(0,Tc.Z)(t),n=(0,Tc.Z)(e)):(r=(0,Tc.Z)(e),n=(0,Tc.Z)(t));var u=function(e,t,r){(0,Td.Z)(2,arguments);var n,i=function(e,t){return(0,Td.Z)(2,arguments),(0,Tc.Z)(e).getTime()-(0,Tc.Z)(t).getTime()}(e,t)/1e3;return((n=null==r?void 0:r.roundingMethod)?Th[n]:Th.trunc)(i)}(n,r),c=Math.round((u-(Tw(n)-Tw(r))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440)return a.formatDistance("aboutXHours",Math.round(c/60),l);if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200)return a.formatDistance("xDays",Math.round(c/1440),l);if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,Td.Z)(2,arguments);var r,n=(0,Tc.Z)(e),i=(0,Tc.Z)(t),o=Tf(n,i),a=Math.abs(function(e,t){(0,Td.Z)(2,arguments);var r=(0,Tc.Z)(e),n=(0,Tc.Z)(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,i));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Tf(n,i)===-o;(function(e){(0,Td.Z)(1,arguments);var t=(0,Tc.Z)(e);return(function(e){(0,Td.Z)(1,arguments);var t=(0,Tc.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,Td.Z)(1,arguments);var t=(0,Tc.Z)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,Tc.Z)(e))&&1===a&&1===Tf(e,i)&&(s=!1),r=o*(a-Number(s))}return 0===r?0:r}(n,r))<12)return a.formatDistance("xMonths",Math.round(c/43200),l);var d=i%12,f=Math.floor(i/12);return d<3?a.formatDistance("aboutXYears",f,l):d<9?a.formatDistance("overXYears",f,l):a.formatDistance("almostXYears",f+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function TA(e){let{title:t,actions:r,dataset:n,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u=t||r,c="emptyState";return!i||(null==n?void 0:n.length)||l||(c="skeleton"),((null==n?void 0:n.length)||l)&&(c="currentData"),(0,eh.jsx)(nr,{children:(0,eh.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,eh.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,eh.jsx)(vS,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,eh.jsx)("div",{className:"flex-1"}),r]}),(0,eh.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(o||(0,eh.jsx)("div",{className:(0,tp.cx)("flex items-center justify-center h-[84px]",(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,eh.jsx)(r9,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===c&&(l||(null==n?void 0:n.map((e,t)=>(0,eh.jsx)(TM,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,eh.jsx)(Tu,{skeletonCount:s})]})]})})}function TP(e){let{label:t,entityType:r,entityValue:n,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:v}=e,g=(0,eh.jsx)(r9,{color:"subtle",size:"12",className:"h-6",children:f});return(0,eh.jsx)(nr,{children:(0,eh.jsx)("div",{className:(0,tp.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",v?"cursor-pointer":""),onClick:v,children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,eh.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,eh.jsx)(r9,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?TS(t):t}),i]}),(0,eh.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,eh.jsx)(yH,{className:"h-12 w-[150px]"}):(0,eh.jsxs)(eh.Fragment,{children:[void 0!==u&&(0,eh.jsx)(Tr,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,eh.jsx)(P7,{scaleSize:p,variant:"value",value:d}),r&&(n?(0,eh.jsx)(P6,{scaleSize:p,label:(0,Ek.jF)(r),href:o,value:n,displayValue:"block"===r&&n?Number(n).toLocaleString():n,className:"relative top-0.5"}):(0,eh.jsx)(r9,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,eh.jsx)(P6,{scaleSize:p,label:"hash",value:l}),void 0!==a&&(0,eh.jsx)(r9,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:a})]}),g?(0,eh.jsx)("div",{className:"mt-1",children:m?(0,eh.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,eh.jsx)(yH,{className:"h-4 w-[100px]"})}):h?(0,eh.jsx)(ui,{content:h,children:g}):g}):null]})]})})})}function TT(e){let{title:t,actions:r,name:n}=e;return(0,eh.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,eh.jsx)(vD,{htmlFor:n,noWrap:!0,children:t}):null,r]})}function TN(e){var t;let{form:r,name:n}=e,i=r.formState.errors[n],o=null===(t=r.formState.errors[n])||void 0===t?void 0:t.message;return i?(0,eh.jsx)(r9,{size:"14",color:"red",children:o}):null}function TR(e){let{form:t,title:r,actions:n,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return r||s?(0,eh.jsxs)("div",{className:(0,tp.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,eh.jsx)(TT,{name:i,title:r,actions:n}),(0,eh.jsx)(TN,{form:t,name:i})]}):null}function TD(e){let{children:t,...r}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,eh.jsx)(TR,{...r}),t]})}function TL(e){let{form:t,size:r="medium",variant:n="accent",className:i,children:o}=e;return(0,eh.jsx)(ua,{className:i,size:r,variant:n,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,eh.jsx)(AS,{}):o})}function TF(e){let{formik:t,title:r,name:n,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,eh.jsx)(TB,{formik:t,title:r,name:n,children:"number"===g?(0,eh.jsx)(TV,{formik:t,name:n,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,eh.jsx)(Tz,{formik:t,name:n,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,eh.jsx)(TZ,{formik:t,name:n,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function TZ(e){let{formik:t,name:r,placeholder:n,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,eh.jsx)(yo,{id:r,name:r,autoComplete:i,disabled:o,spellCheck:l,placeholder:n,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[r]||"",...c})}function TV(e){let{formik:t,name:r,units:n,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,eh.jsx)(yR,{id:r,units:n,name:r,placeholder:new(yT())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(r,e),value:t.values[r],...d})}function Tz(e){let{formik:t,name:r,disabled:n,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,eh.jsx)(yL,{id:r,name:r,disabled:n,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(r),sc:new(yT())(t.values[r]),placeholder:new(yT())(a),onChange:e=>t.setFieldValue(r,null==e?void 0:e.toString()),...c})}function TI(e){var t,r;let{formik:n,title:i,name:o,withStatusError:a=!1,className:s}=e,l=n.errors[o]&&n.touched[o]||a&&(null===(t=n.status)||void 0===t?void 0:t.error),u=n.errors[o]||a&&(null===(r=n.status)||void 0===r?void 0:r.error);return(i||l)&&(0,eh.jsxs)("div",{className:(0,tp.cx)("flex justify-between items-center gap-4",s),children:[i?(0,eh.jsx)(vD,{htmlFor:o,children:i}):(0,eh.jsx)("div",{}),l&&(0,eh.jsx)(r9,{size:"14",color:"red",children:u})]})}function TB(e){let{children:t,...r}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,eh.jsx)(TI,{...r}),t]})}function TH(e){var t;let{formik:r,size:n="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,eh.jsxs)(eh.Fragment,{children:[o&&(null===(t=r.status)||void 0===t?void 0:t.error)&&(0,eh.jsx)(r9,{color:"red",children:r.status.error}),(0,eh.jsx)(ua,{size:n,variant:i,state:r.isSubmitting?"waiting":void 0,type:"submit",children:r.isSubmitting?(0,eh.jsx)(AS,{}):a})]})}let TU="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function TW(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function T$(e){return"nodeType"in e}function Tq(e){var t,r;return e?TW(e)?e:T$(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function TY(e){let{Document:t}=Tq(e);return e instanceof t}function TG(e){return!TW(e)&&e instanceof Tq(e).HTMLElement}function TK(e){return e instanceof Tq(e).SVGElement}function TX(e){return e?TW(e)?e.document:T$(e)?TY(e)?e:TG(e)||TK(e)?e.ownerDocument:document:document:document}let TJ=TU?ep.useLayoutEffect:ep.useEffect;function TQ(e){let t=(0,ep.useRef)(e);return TJ(()=>{t.current=e}),(0,ep.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n{r.current!==e&&(r.current=e)},t),r}function T1(e,t){let r=(0,ep.useRef)();return(0,ep.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function T2(e){let t=TQ(e),r=(0,ep.useRef)(null),n=(0,ep.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,n]}function T4(e){let t=(0,ep.useRef)();return(0,ep.useEffect)(()=>{t.current=e},[e]),t.current}let T3={};function T5(e,t){return(0,ep.useMemo)(()=>{if(t)return t;let r=null==T3[e]?0:T3[e]+1;return T3[e]=r,e+"-"+r},[e,t])}function T6(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let T8=T6(1),T7=T6(-1);function T9(e){if(!e)return!1;let{KeyboardEvent:t}=Tq(e.target);return t&&e instanceof t}function Ne(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=Tq(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let Nt=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Nt.Translate.toString(e),Nt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),Nr="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",Nn={display:"none"};function Ni(e){let{id:t,value:r}=e;return ep.createElement("div",{id:t,style:Nn},r)}function No(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return ep.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":n,"aria-atomic":!0},r)}let Na=(0,ep.createContext)(null),Ns={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 "},Nl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Nu(e){let{announcements:t=Nl,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=Ns}=e,{announce:o,announcement:a}=function(){let[e,t]=(0,ep.useState)("");return{announce:(0,ep.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=T5("DndLiveRegion"),[l,u]=(0,ep.useState)(!1);if((0,ep.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,ep.useContext)(Na);(0,ep.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,ep.useMemo)(()=>({onDragStart(e){let{active:r}=e;o(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&o(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;o(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;o(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;o(t.onDragCancel({active:r,over:n}))}}),[o,t])),!l)return null;let c=ep.createElement(ep.Fragment,null,ep.createElement(Ni,{id:n,value:i.draggable}),ep.createElement(No,{id:s,announcement:a}));return r?(0,ek.createPortal)(c,r):c}function Nc(){}function Nd(e,t){return(0,ep.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(A=er||(er={})).DragStart="dragStart",A.DragMove="dragMove",A.DragEnd="dragEnd",A.DragCancel="dragCancel",A.DragOver="dragOver",A.RegisterDroppable="registerDroppable",A.SetDroppableDisabled="setDroppableDisabled",A.UnregisterDroppable="unregisterDroppable";let Nf=Object.freeze({x:0,y:0});function Nh(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}let Np=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,o=r.get(n);if(o){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(n0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(Nh)};function Nm(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Nf}let Nv=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n({...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 Ng(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 Ny={ignoreTransform:!1};function Nx(e,t){void 0===t&&(t=Ny);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=Tq(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=Ng(t);if(!n)return e;let{scaleX:i,scaleY:o,x:a,y:s}=n,l=e.left-a-(1-i)*parseFloat(r),u=e.top-s-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(r,t,n))}let{top:n,left:i,width:o,height:a,bottom:s,right:l}=r;return{top:n,left:i,width:o,height:a,bottom:s,right:l}}function Nb(e){return Nx(e,{ignoreTransform:!0})}function Nw(e,t){let r=[];return e?function n(i){var o;if(null!=t&&r.length>=t||!i)return r;if(TY(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!TG(i)||TK(i)||r.includes(i))return r;let a=Tq(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=Tq(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(i,a)&&r.push(i),void 0===(o=a)&&(o=Tq(i).getComputedStyle(i)),"fixed"===o.position)?r:n(i.parentNode)}(e):r}function Nj(e){let[t]=Nw(e,1);return null!=t?t:null}function NE(e){return TU&&e?TW(e)?e:T$(e)?TY(e)||e===TX(e).scrollingElement?window:TG(e)?e:null:null:null}function Nk(e){return TW(e)?e.scrollX:e.scrollLeft}function NC(e){return TW(e)?e.scrollY:e.scrollTop}function NS(e){return{x:Nk(e),y:NC(e)}}function NO(e){return!!TU&&!!e&&e===document.scrollingElement}function N_(e){let t={x:0,y:0},r=NO(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}(P=en||(en={}))[P.Forward=1]="Forward",P[P.Backward=-1]="Backward";let NM={x:.2,y:.2};function NA(e){return e.reduce((e,t)=>T8(e,NS(t)),Nf)}function NP(e,t){if(void 0===t&&(t=Nx),!e)return;let{top:r,left:n,bottom:i,right:o}=t(e);Nj(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let NT=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Nk(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+NC(t),0)}]];class NN{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 r=Nw(t),n=NA(r);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,NT))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(r),a=n[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class NR{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,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function ND(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function NL(e){e.preventDefault()}function NF(e){e.stopPropagation()}(T=ei||(ei={})).Click="click",T.DragStart="dragstart",T.Keydown="keydown",T.ContextMenu="contextmenu",T.Resize="resize",T.SelectionChange="selectionchange",T.VisibilityChange="visibilitychange",(N=eo||(eo={})).Space="Space",N.Down="ArrowDown",N.Right="ArrowRight",N.Left="ArrowLeft",N.Up="ArrowUp",N.Esc="Escape",N.Enter="Enter";let NZ={start:[eo.Space,eo.Enter],cancel:[eo.Esc],end:[eo.Space,eo.Enter]},NV=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case eo.Right:return{...r,x:r.x+25};case eo.Left:return{...r,x:r.x-25};case eo.Down:return{...r,y:r.y+25};case eo.Up:return{...r,y:r.y-25}}};class Nz{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 NR(TX(t)),this.windowListeners=new NR(Tq(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ei.Resize,this.handleCancel),this.windowListeners.add(ei.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ei.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&NP(r),t(Nf)}handleKeyDown(e){if(T9(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=NZ,coordinateGetter:o=NV,scrollBehavior:a="smooth"}=n,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=r.current,u=l?{x:l.left,y:l.top}:Nf;this.referenceCoordinates||(this.referenceCoordinates=u);let c=o(e,{active:t,context:r.current,currentCoordinates:u});if(c){let t=T7(c,u),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=N_(r),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:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),p={x:Math.min(i===eo.Right?h.right-h.width/2:h.right,Math.max(i===eo.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===eo.Down?h.bottom-h.height/2:h.bottom,Math.max(i===eo.Down?h.top:h.top+h.height/2,c.y))},m=i===eo.Right&&!s||i===eo.Left&&!l,v=i===eo.Down&&!u||i===eo.Up&&!o;if(m&&p.x!==c.x){let e=r.scrollLeft+t.x,o=i===eo.Right&&e<=d.x||i===eo.Left&&e>=f.x;if(o&&!t.y){r.scrollTo({left:e,behavior:a});return}o?n.x=r.scrollLeft-e:n.x=i===eo.Right?r.scrollLeft-d.x:r.scrollLeft-f.x,n.x&&r.scrollBy({left:-n.x,behavior:a});break}if(v&&p.y!==c.y){let e=r.scrollTop+t.y,o=i===eo.Down&&e<=d.y||i===eo.Up&&e>=f.y;if(o&&!t.x){r.scrollTo({top:e,behavior:a});return}o?n.y=r.scrollTop-e:n.y=i===eo.Down?r.scrollTop-d.y:r.scrollTop-f.y,n.y&&r.scrollBy({top:-n.y,behavior:a});break}}this.handleMove(e,T8(T7(c,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(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 NI(e){return!!(e&&"distance"in e)}function NB(e){return!!(e&&"delay"in e)}Nz.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=NZ,onActivation:i}=t,{active:o}=r,{code:a}=e.nativeEvent;if(n.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class NH{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=Tq(e);return e instanceof t?e:TX(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:o}=i;this.props=e,this.events=t,this.document=TX(o),this.documentListeners=new NR(this.document),this.listeners=new NR(r),this.windowListeners=new NR(Tq(o)),this.initialCoordinates=null!=(n=Ne(i))?n:Nf,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:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ei.Resize,this.handleCancel),this.windowListeners.add(ei.DragStart,NL),this.windowListeners.add(ei.VisibilityChange,this.handleCancel),this.windowListeners.add(ei.ContextMenu,NL),this.documentListeners.add(ei.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(NB(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(NI(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(ei.Click,NF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ei.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!n)return;let s=null!=(t=Ne(e))?t:Nf,l=T7(n,s);if(!r&&a){if(NI(a)){if(null!=a.tolerance&&ND(l,a.tolerance))return this.handleCancel();if(ND(l,a.distance))return this.handleStart()}return NB(a)&&ND(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===eo.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let NU={move:{name:"pointermove"},end:{name:"pointerup"}};class NW extends NH{constructor(e){let{event:t}=e;super(e,NU,TX(t.target))}}NW.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let N$={move:{name:"mousemove"},end:{name:"mouseup"}};(R=ea||(ea={}))[R.RightClick=2]="RightClick";class Nq extends NH{constructor(e){super(e,N$,TX(e.event.target))}}Nq.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==ea.RightClick&&(null==n||n({event:r}),!0)}}];let NY={move:{name:"touchmove"},end:{name:"touchend"}};class NG extends NH{constructor(e){super(e,NY)}static setup(){return window.addEventListener(NY.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(NY.move.name,e)};function e(){}}}NG.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],(D=es||(es={}))[D.Pointer=0]="Pointer",D[D.DraggableRect=1]="DraggableRect",(L=el||(el={}))[L.TreeOrder=0]="TreeOrder",L[L.ReversedTreeOrder=1]="ReversedTreeOrder";let NK={x:{[en.Backward]:!1,[en.Forward]:!1},y:{[en.Backward]:!1,[en.Forward]:!1}};(F=eu||(eu={}))[F.Always=0]="Always",F[F.BeforeDragging=1]="BeforeDragging",F[F.WhileDragging=2]="WhileDragging",(ec||(ec={})).Optimized="optimized";let NX=new Map;function NJ(e,t){return T1(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function NQ(e){let{callback:t,disabled:r}=e,n=TQ(t),i=(0,ep.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,ep.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function N0(e){return new NN(Nx(e),e)}function N1(e,t,r){void 0===t&&(t=N0);let[n,i]=(0,ep.useReducer)(function(n){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o},null),o=function(e){let{callback:t,disabled:r}=e,n=TQ(t),i=(0,ep.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,ep.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),a=NQ({callback:i});return TJ(()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),n}let N2=[];function N4(e,t){void 0===t&&(t=[]);let r=(0,ep.useRef)(null);return(0,ep.useEffect)(()=>{r.current=null},t),(0,ep.useEffect)(()=>{let t=e!==Nf;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?T7(e,r.current):Nf}function N3(e){return(0,ep.useMemo)(()=>e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let N5=[];function N6(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return TG(t)?t:e}let N8=[{sensor:NW,options:{}},{sensor:Nz,options:{}}],N7={current:{}},N9={draggable:{measure:Nb},droppable:{measure:Nb,strategy:eu.WhileDragging,frequency:ec.Optimized},dragOverlay:{measure:Nx}};class Re 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,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let Rt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Re,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Nc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:N9,measureDroppableContainers:Nc,windowRect:null,measuringScheduled:!1},Rr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Nc,draggableNodes:new Map,over:null,measureDroppableContainers:Nc},Rn=(0,ep.createContext)(Rr),Ri=(0,ep.createContext)(Rt);function Ro(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Re}}}function Ra(e,t){switch(t.type){case er.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case er.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 er.DragEnd:case er.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case er.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new Re(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case er.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;let a=new Re(e.droppable.containers);return a.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case er.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;let o=new Re(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Rs(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,ep.useContext)(Rn),o=T4(n),a=T4(null==r?void 0:r.id);return(0,ep.useEffect)(()=>{if(!t&&!n&&o&&null!=a){if(!T9(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=e.matches(Nr)?e:e.querySelector(Nr);if(t){t.focus();break}}})}},[n,t,i,a,o]),null}function Rl(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}let Ru=(0,ep.createContext)({...Nf,scaleX:1,scaleY:1});(Z=ed||(ed={}))[Z.Uninitialized=0]="Uninitialized",Z[Z.Initializing=1]="Initializing",Z[Z.Initialized=2]="Initialized";let Rc=(0,ep.memo)(function(e){var t,r,n,i,o,a;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=N8,collisionDetection:f=Np,measuring:h,modifiers:p,...m}=e,[v,g]=(0,ep.useReducer)(Ra,void 0,Ro),[y,x]=function(){let[e]=(0,ep.useState)(()=>new Set),t=(0,ep.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,ep.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[b,w]=(0,ep.useState)(ed.Uninitialized),j=b===ed.Initialized,{draggable:{active:E,nodes:k,translate:C},droppable:{containers:S}}=v,O=E?k.get(E):null,_=(0,ep.useRef)({initial:null,translated:null}),M=(0,ep.useMemo)(()=>{var e;return null!=E?{id:E,data:null!=(e=null==O?void 0:O.data)?e:N7,rect:_}:null},[E,O]),A=(0,ep.useRef)(null),[P,T]=(0,ep.useState)(null),[N,R]=(0,ep.useState)(null),D=T0(m,Object.values(m)),L=T5("DndDescribedBy",s),F=(0,ep.useMemo)(()=>S.getEnabled(),[S]),Z=(0,ep.useMemo)(()=>({draggable:{...N9.draggable,...null==h?void 0:h.draggable},droppable:{...N9.droppable,...null==h?void 0:h.droppable},dragOverlay:{...N9.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:V,measureDroppableContainers:z,measuringScheduled:I}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[o,a]=(0,ep.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,ep.useRef)(e),d=function(){switch(u){case eu.Always:return!1;case eu.BeforeDragging:return r;default:return!r}}(),f=T0(d),h=(0,ep.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,ep.useRef)(null),m=T1(t=>{if(d&&!r)return NX;if(!t||t===NX||c.current!==e||null!=o){let t=new Map;for(let r of e){if(!r)continue;if(o&&o.length>0&&!o.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new NN(l(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,o,r,d,l]);return(0,ep.useEffect)(()=>{c.current=e},[e]),(0,ep.useEffect)(()=>{d||h()},[r,d]),(0,ep.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,ep.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...n]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=o}}(F,{dragging:j,dependencies:[C.x,C.y],config:Z.droppable}),B=function(e,t){let r=null!==t?e.get(t):void 0,n=r?r.node.current:null;return T1(e=>{var r;return null===t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(k,E),H=(0,ep.useMemo)(()=>N?Ne(N):null,[N]),U=function(){let e=(null==P?void 0:P.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,r=j&&!e&&!t;return"object"==typeof u?{...u,enabled:r}:{enabled:r}}(),W=NJ(B,Z.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,o=(0,ep.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;TJ(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=Nm(r(e),n);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Nj(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,s,n,r])}({activeNode:E?k.get(E):null,config:U.layoutShiftCompensation,initialRect:W,measure:Z.draggable.measure});let $=N1(B,Z.draggable.measure,W),q=N1(B?B.parentElement:null),Y=(0,ep.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:S,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=S.getNodeFor(null==(t=Y.current.over)?void 0:t.id),K=function(e){let{measure:t}=e,[r,n]=(0,ep.useState)(null),i=NQ({callback:(0,ep.useCallback)(e=>{for(let{target:r}of e)if(TG(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),[o,a]=T2((0,ep.useCallback)(e=>{let r=N6(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]));return(0,ep.useMemo)(()=>({nodeRef:o,rect:r,setRef:a}),[r,o,a])}({measure:Z.dragOverlay.measure}),X=null!=(r=K.nodeRef.current)?r:B,J=j?null!=(n=K.rect)?n:$:null,Q=!!(K.nodeRef.current&&K.rect),ee=function(e){let t=NJ(e);return Nm(e,t)}(Q?null:$),et=N3(X?Tq(X):null),ei=function(e){let t=(0,ep.useRef)(e),r=T1(r=>e?r&&r!==N2&&e&&t.current&&e.parentNode===t.current.parentNode?r:Nw(e):N2,[e]);return(0,ep.useEffect)(()=>{t.current=e},[e]),r}(j?null!=G?G:B:null),eo=function(e,t){void 0===t&&(t=Nx);let[r]=e,n=N3(r?Tq(r):null),[i,o]=(0,ep.useReducer)(function(){return e.length?e.map(e=>NO(e)?n:new NN(t(e),e)):N5},N5),a=NQ({callback:o});return e.length>0&&i===N5&&o(),TJ(()=>{e.length?e.forEach(e=>null==a?void 0:a.observe(e)):(null==a||a.disconnect(),o())},[e]),i}(ei),ea=Rl(p,{transform:{x:C.x-ee.x,y:C.y-ee.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:$,containerNodeRect:q,draggingNodeRect:J,over:Y.current.over,overlayNodeRect:K.rect,scrollableAncestors:ei,scrollableAncestorRects:eo,windowRect:et}),ec=H?T8(H,C):null,ef=function(e){let[t,r]=(0,ep.useState)(null),n=(0,ep.useRef)(e),i=(0,ep.useCallback)(e=>{let t=NE(e.target);t&&r(e=>e?(e.set(t,NS(t)),new Map(e)):null)},[]);return(0,ep.useEffect)(()=>{let t=n.current;if(e!==t){o(t);let a=e.map(e=>{let t=NE(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,NS(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=NE(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,ep.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>T8(e,t),Nf):NA(e):Nf,[e,t])}(ei),eh=N4(ef),em=N4(ef,[$]),ev=T8(ea,eh),eg=J?Nv(J,ea):null,ey=M&&eg?f({active:M,collisionRect:eg,droppableRects:V,droppableContainers:F,pointerCoordinates:ec}):null,ex=function(e,t){if(!e||0===e.length)return null;let[r]=e;return r.id}(ey,0),[eb,ew]=(0,ep.useState)(null),ej=(o=Q?ea:T8(ea,em),a=null!=(i=null==eb?void 0:eb.rect)?i:null,{...o,scaleX:a&&$?a.width/$.width:1,scaleY:a&&$?a.height/$.height:1}),eE=(0,ep.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==A.current)return;let i=k.get(A.current);if(!i)return;let o=e.nativeEvent,a=new r({active:A.current,activeNode:i,event:o,options:n,context:Y,onStart(e){let t=A.current;if(null==t)return;let r=k.get(t);if(!r)return;let{onDragStart:n}=D.current,i={active:{id:t,data:r.data,rect:_}};(0,ek.unstable_batchedUpdates)(()=>{null==n||n(i),w(ed.Initializing),g({type:er.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){g({type:er.DragMove,coordinates:e})},onEnd:s(er.DragEnd),onCancel:s(er.DragCancel)});function s(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:i}=Y.current,a=null;if(t&&i){let{cancelDrop:s}=D.current;a={activatorEvent:o,active:t,collisions:r,delta:i,over:n},e===er.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=er.DragCancel)}A.current=null,(0,ek.unstable_batchedUpdates)(()=>{g({type:e}),w(ed.Uninitialized),ew(null),T(null),R(null);let t=e===er.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=D.current[t];null==e||e(a),y({type:t,event:a})}})}}(0,ek.unstable_batchedUpdates)(()=>{T(a),R(e.nativeEvent)})},[k]),eC=(0,ep.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,o=k.get(n);null!==A.current||!o||i.dndKit||i.defaultPrevented||!0!==e(r,t.options,{active:o})||(i.dndKit={capturedBy:t.sensor},A.current=n,eE(r,t))},[k,eE]),eS=(0,ep.useMemo)(()=>d.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:eC(e.handler,t)}))]},[]),[d,eC]);(0,ep.useEffect)(()=>{if(!TU)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})),TJ(()=>{$&&b===ed.Initializing&&w(ed.Initialized)},[$,b]),(0,ep.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:r,collisions:n,over:i}=Y.current;if(!t||!r)return;let o={active:t,activatorEvent:r,collisions:n,delta:{x:ev.x,y:ev.y},over:i};(0,ek.unstable_batchedUpdates)(()=>{null==e||e(o),y({type:"onDragMove",event:o})})},[ev.x,ev.y]),(0,ep.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=Y.current;if(!e||null==A.current||!t||!i)return;let{onDragOver:o}=D.current,a=n.get(ex),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:s};(0,ek.unstable_batchedUpdates)(()=>{ew(s),null==o||o(l),y({type:"onDragOver",event:l})})},[ex]),TJ(()=>{Y.current={activatorEvent:N,active:M,activeNode:B,collisionRect:eg,collisions:ey,droppableRects:V,draggableNodes:k,draggingNode:X,draggingNodeRect:J,droppableContainers:S,over:eb,scrollableAncestors:ei,scrollAdjustedTranslate:ev},_.current={initial:J,translated:eg}},[M,B,ey,eg,k,X,J,V,S,eb,ei,ev]),function(e){let{acceleration:t,activator:r=es.Pointer,canScroll:n,draggingRect:i,enabled:o,interval:a=5,order:s=el.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:r}=e,n=T4(t);return T1(e=>{if(r||!n||!e)return NK;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[en.Backward]:e.x[en.Backward]||-1===i.x,[en.Forward]:e.x[en.Forward]||1===i.x},y:{[en.Backward]:e.y[en.Backward]||-1===i.y,[en.Forward]:e.y[en.Forward]||1===i.y}}},[r,t,n])}({delta:d,disabled:!o}),[p,m]=function(){let e=(0,ep.useRef)(null);return[(0,ep.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,ep.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,ep.useRef)({x:0,y:0}),g=(0,ep.useRef)({x:0,y:0}),y=(0,ep.useMemo)(()=>{switch(r){case es.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case es.DraggableRect:return i}},[r,i,l]),x=(0,ep.useRef)(null),b=(0,ep.useCallback)(()=>{let e=x.current;if(!e)return;let t=v.current.x*g.current.x,r=v.current.y*g.current.y;e.scrollBy(t,r)},[]),w=(0,ep.useMemo)(()=>s===el.TreeOrder?[...u].reverse():u,[s,u]);(0,ep.useEffect)(()=>{if(!o||!u.length||!y){m();return}for(let e of w){if((null==n?void 0:n(e))===!1)continue;let r=c[u.indexOf(e)];if(!r)continue;let{direction:i,speed:o}=function(e,t,r,n,i){let{top:o,left:a,right:s,bottom:l}=r;void 0===n&&(n=10),void 0===i&&(i=NM);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=N_(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(h.y=en.Backward,p.y=n*Math.abs((t.top+m.height-o)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=en.Forward,p.y=n*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=en.Forward,p.x=n*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(h.x=en.Backward,p.x=n*Math.abs((t.left+m.width-a)/m.width)),{direction:h,speed:p}}(e,r,y,t,f);for(let e of["x","y"])h[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){m(),x.current=e,p(b,a),v.current=o,g.current=i;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,b,n,m,o,a,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:C,draggingRect:eg,pointerCoordinates:ec,scrollableAncestors:ei,scrollableAncestorRects:eo});let eO=(0,ep.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:$,activatorEvent:N,collisions:ey,containerNodeRect:q,dragOverlay:K,draggableNodes:k,droppableContainers:S,droppableRects:V,over:eb,measureDroppableContainers:z,scrollableAncestors:ei,scrollableAncestorRects:eo,measuringConfiguration:Z,measuringScheduled:I,windowRect:et}),[M,B,$,N,ey,q,K,k,S,V,eb,z,ei,eo,Z,I,et]),e_=(0,ep.useMemo)(()=>({activatorEvent:N,activators:eS,active:M,activeNodeRect:$,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:k,over:eb,measureDroppableContainers:z}),[N,eS,M,$,g,L,k,eb,z]);return ep.createElement(Na.Provider,{value:x},ep.createElement(Rn.Provider,{value:e_},ep.createElement(Ri.Provider,{value:eO},ep.createElement(Ru.Provider,{value:ej},c)),ep.createElement(Rs,{disabled:(null==l?void 0:l.restoreFocus)===!1})),ep.createElement(Nu,{...l,hiddenTextDescribedById:L}))}),Rd=(0,ep.createContext)(null),Rf="button",Rh={timeout:25};function Rp(e){let{animation:t,children:r}=e,[n,i]=(0,ep.useState)(null),[o,a]=(0,ep.useState)(null),s=T4(r);return r||n||!s||i(s),TJ(()=>{if(!o)return;let e=null==n?void 0:n.key,r=null==n?void 0:n.props.id;if(null==e||null==r){i(null);return}Promise.resolve(t(r,o)).then(()=>{i(null)})},[t,n,o]),ep.createElement(ep.Fragment,null,r,n?(0,ep.cloneElement)(n,{ref:a}):null)}let Rm={x:0,y:0,scaleX:1,scaleY:1};function Rv(e){let{children:t}=e;return ep.createElement(Rn.Provider,{value:Rr},ep.createElement(Ru.Provider,{value:Rm},t))}let Rg={position:"fixed",touchAction:"none"},Ry=e=>T9(e)?"transform 250ms ease":void 0,Rx=(0,ep.forwardRef)((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:c=Ry}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...Rg,width:s.width,height:s.height,top:s.top,left:s.left,transform:Nt.Transform.toString(d),transformOrigin:i&&n?function(e,t){let r=Ne(e);if(!r)return"0 0";let n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}(n,s):void 0,transition:"function"==typeof c?c(n):c,...l};return ep.createElement(r,{className:a,style:f,ref:t},o)}),Rb={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:r}}=e;return[{transform:Nt.Transform.toString(t)},{transform:Nt.Transform.toString(r)}]},sideEffects:(a={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:r}=e,n={},{styles:i,className:o}=a;if(null!=i&&i.active)for(let[e,r]of Object.entries(i.active))void 0!==r&&(n[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,r));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=o&&o.active&&t.node.classList.add(o.active),null!=o&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,r]of Object.entries(n))t.node.style.setProperty(e,r);null!=o&&o.active&&t.node.classList.remove(o.active)}})},Rw=0,Rj=ep.memo(e=>{var t;let{adjustScale:r=!1,children:n,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:x,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:j}=(0,ep.useContext)(Ri),E=(0,ep.useContext)(Ru),k=(t=null==f?void 0:f.id,(0,ep.useMemo)(()=>{if(null!=t)return++Rw},[t])),C=Rl(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:E,windowRect:j}),S=NJ(h),O=function(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return TQ((e,o)=>{if(null===t)return;let a=r.get(e);if(!a)return;let s=a.node.current;if(!s)return;let l=N6(o);if(!l)return;let{transform:u}=Tq(o).getComputedStyle(o),c=Ng(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:r,sideEffects:n,keyframes:i}={...Rb,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;let u={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},c={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==n?void 0:n({active:o,dragOverlay:a,...l}),v=a.node.animate(f,{duration:t,easing:r,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==m||m(),e()}})}}(t);return NP(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:n,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:x}),_=S?g.setRef:void 0;return ep.createElement(Rv,null,ep.createElement(Rp,{animation:O},f&&k?ep.createElement(Rx,{key:k,id:f.id,ref:_,as:l,activatorEvent:d,adjustScale:r,className:u,transition:a,rect:S,style:{zIndex:c,...o},transform:C},n):null))});function RE(){return(0,ep.forwardRef)((e,t)=>{let{data:r,style:n,attributes:i,listeners:o,context:a,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,eh.jsx)("tr",{ref:t,...i,...o,style:n,id:r.id,"data-testid":r.id,onClick:r.onClick,className:(0,tp.cx)("border-b",r.isSelected?["bg-blue-400 border-blue-500/30","dark:bg-blue-600/50 dark:border-blue-600/20"]:"border-gray-200/50 dark:border-graydark-100",r.onClick?"cursor-pointer":"",r.className,h),children:s.map((e,t)=>{let{id:n,render:i,contentClassName:o,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,eh.jsx)("td",{"data-testid":n,className:(0,tp.cx)(d(t,(0,tp.cx)(s,h),!1),u&&u===r.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,eh.jsx)("div",{className:(0,tp.cx)(f(t,(0,tp.cx)(o,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,eh.jsx)(i,{data:r,context:a})})},"".concat(n,"/").concat(r.id))})},r.id)})}function Rk(e){let{data:t,context:r,columns:n,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,o=T5("Droppable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,ep.useContext)(Rn),{role:h=Rf,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,g=(0,ep.useContext)(v?Ru:Rd),[y,x]=T2(),[b,w]=T2(),j=(0,ep.useMemo)(()=>a.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[a,t]),E=T0(r);return TJ(()=>(d.set(t,{id:t,key:o,node:y,activatorNode:b,data:E}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,ep.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":n,"aria-pressed":!!v&&h===Rf||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[n,h,m,v,p,c.draggable]),isDragging:v,listeners:n?void 0:j,node:y,over:f,setNodeRef:x,setActivatorNodeRef:w,transform:g}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,ep.useMemo)(()=>RE(),[]);return(0,eh.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:r,columns:n,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function RC(e){let{data:t,context:r,columns:n,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e,o=T5("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=(0,ep.useContext)(Rn),c=(0,ep.useRef)({disabled:r}),d=(0,ep.useRef)(!1),f=(0,ep.useRef)(null),h=(0,ep.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...Rh,...i},g=T0(null!=m?m:n),y=NQ({callback:(0,ep.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),disabled:p||!a}),[x,b]=T2((0,ep.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=T0(t);return(0,ep.useEffect)(()=>{y&&x.current&&(y.disconnect(),d.current=!1,y.observe(x.current))},[x,y]),TJ(()=>(s({type:er.RegisterDroppable,element:{id:n,key:o,disabled:r,node:x,rect:f,data:w}}),()=>s({type:er.UnregisterDroppable,key:o,id:n})),[n]),(0,ep.useEffect)(()=>{r!==c.current.disabled&&(s({type:er.SetDroppableDisabled,id:n,key:o,disabled:r}),c.current.disabled=r)},[n,o,r,s]),{active:a,rect:f,isOver:(null==l?void 0:l.id)===n,node:x,over:l,setNodeRef:b}}({id:t.id}),d=(0,ep.useMemo)(()=>RE(),[]);return(0,eh.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:r,columns:n,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function RS(e){let{columns:t,data:r,context:n={},sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,draggingDatums:x,draggingMultipleLabel:b=e=>"Move selection (".concat(e,")"),testId:w}=e,j="emptyState";!c||(null==r?void 0:r.length)||(j="skeleton"),(null==r?void 0:r.length)&&(j="currentData");let E=(0,ep.useCallback)((e,r,n)=>(0,tp.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",n?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",r),[t]),k=(0,ep.useCallback)((e,t)=>(0,tp.cx)("flex items-center",t),[]),C=(0,ep.useMemo)(()=>RE(),[]),S=function(){for(var e=arguments.length,t=Array(e),r=0;r[...t].filter(e=>null!=e),[...t])}(Nd(Nq,{activationConstraint:{distance:10}}),Nd(NG,{activationConstraint:{delay:250,tolerance:5}})),O=(0,ep.useMemo)(()=>t.some(e=>{let{summary:t}=e;return t&&t({context:n})}),[t,n]);return(0,eh.jsxs)(Rc,{sensors:S,onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,children:[(0,eh.jsx)(Rj,{children:x?1===x.length?(0,eh.jsx)(nr,{className:"inline-block",children:(0,eh.jsx)("table",{children:(0,eh.jsx)("tbody",{children:(0,eh.jsx)(C,{className:"pointer-events-none",data:x[0],context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},x[0].id)})})}):(0,eh.jsx)(nr,{className:"inline-block py-2 px-4",children:(0,eh.jsx)(r9,{children:b(x.length)})}):null}),(0,eh.jsxs)(nr,{children:[(0,eh.jsxs)("table",{"data-testid":w,onMouseDown:e=>{e.shiftKey&&e.preventDefault()},"data-loading":"skeleton"===j,className:"relative z-10 table-auto border-collapse w-full",children:[(0,eh.jsxs)("thead",{className:(0,tp.cx)("sticky -top-px z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,eh.jsx)("tr",{children:t.map((e,t)=>{let{id:r,icon:l,heading:u,label:c,tip:d,cellClassName:f,contentClassName:h}=e,p=(null==a?void 0:a.includes(r))&&!!s,m=i===r;return(0,eh.jsx)("th",{"data-testid":r,className:(0,tp.cx)(E(t,f,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,eh.jsx)("div",{className:"overflow-hidden py-3",children:(0,eh.jsxs)("div",{onClick:()=>{p&&s(r)},className:(0,tp.cx)(k(t,h),p?"cursor-pointer":""),children:[u?(0,eh.jsx)(u,{context:n}):null,(0,eh.jsx)(ui,{content:d,children:(0,eh.jsxs)(r9,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[l?(0,eh.jsx)("div",{children:l}):null,(0,eh.jsx)(r9,{ellipsis:!0,size:"12",weight:"medium",children:c})]})}),m&&(0,eh.jsx)(r9,{color:"contrast",children:"asc"===o?(0,eh.jsx)(us.MR9,{className:"scale-75"}):(0,eh.jsx)(us.cRw,{className:"scale-75"})}),p&&!m&&(0,eh.jsx)(r9,{color:"verySubtle",children:(0,eh.jsx)(us.MR9,{className:"scale-75"})})]})})},r)})}),O&&(0,eh.jsx)("tr",{children:t.map((e,t)=>{let{id:r,cellClassName:i,contentClassName:o,summary:a}=e;return(0,eh.jsx)("th",{"data-testid":r,className:(0,tp.cx)(E(t,i,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,eh.jsx)("div",{className:"overflow-hidden py-3",children:(0,eh.jsx)("div",{className:(0,tp.cx)(k(t,o)),children:a&&(0,eh.jsx)(a,{context:n})})})},r)})})]}),(0,eh.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===j&&(null==r?void 0:r.map(e=>(null==x?void 0:x.find(t=>t.id===e.id))?null:e.isDraggable?(0,eh.jsx)(Rk,{data:e,context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},e.id):e.isDroppable?(0,eh.jsx)(RC,{data:e,context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},e.id):(0,eh.jsx)(C,{data:e,context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},e.id))),"skeleton"===j&&Tl(u).map(e=>(0,eh.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:r,contentClassName:n,cellClassName:i}=e;return(0,eh.jsx)("td",{className:E(t,i,!1),children:(0,eh.jsx)("div",{className:(0,tp.cx)(k(t,n),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(r))})},e))]})]}),"emptyState"===j&&d]})]})}function RO(e){let{offset:t,limit:r,datasetTotal:n,isLoading:i}=e,o=(0,vE.j0)();return(0,eh.jsxs)(uD,{children:[(0,eh.jsx)(ua,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,eh.jsx)("div",{className:"flex scale-[0.65]",children:(0,eh.jsx)(us.XJM,{})})}),(0,eh.jsx)(ua,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,eh.jsx)(us.bdU,{})}),(0,eh.jsx)(ua,{state:"waiting",className:"rounded-none px-3",children:n>0?"".concat(t+1," - ").concat(Math.min(t+r,n)," of ").concat(n?n.toLocaleString():""):i?(0,eh.jsx)(AS,{className:"px-2"}):"No results"}),(0,eh.jsx)(ua,{icon:"contrast",disabled:t+r>=n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+r,n)}}),children:(0,eh.jsx)(us.VUy,{})}),(0,eh.jsx)(ua,{icon:"contrast",disabled:t+r>=n,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(n/r)*r}}),children:(0,eh.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,eh.jsx)(us.RRj,{})})})]})}function R_(e){let{offset:t,limit:r,pageTotal:n,isLoading:i}=e,o=(0,vE.j0)();return(0,eh.jsxs)(uD,{children:[(0,eh.jsx)(ua,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,eh.jsx)("div",{className:"flex scale-[0.65]",children:(0,eh.jsx)(us.XJM,{})})}),(0,eh.jsx)(ua,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,eh.jsx)(us.bdU,{})}),i?(0,eh.jsx)(ua,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,eh.jsx)(AS,{className:"px-2"})}):n?(0,eh.jsxs)(ua,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+r,t+n)]}):(0,eh.jsx)(ua,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,eh.jsx)(ua,{icon:"contrast",disabled:!(n>=r),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+r}}),children:(0,eh.jsx)(us.VUy,{})})]})}function RM(e){let{separator:t,children:r}=e,n=ep.Children.toArray(r).filter(e=>ep.isValidElement(e)&&("function"!=typeof e.type||null!==e.type(e.props)));return(0,eh.jsx)(eh.Fragment,{children:n.map((e,r)=>{var i,o;return(0,eh.jsxs)(ep.Fragment,{children:[e,rs(),children:(0,eh.jsx)(us.UG6,{})}),(0,eh.jsx)(RZ,{title:"Lock app",onClick:a,children:(0,eh.jsx)(us.mBM,{})})]})]})})}var RI=Object.create,RB=Object.defineProperty,RH=Object.getOwnPropertyDescriptor,RU=Object.getOwnPropertyNames,RW=Object.getPrototypeOf,R$=Object.prototype.hasOwnProperty,Rq=(s=(e,t)=>{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=new WeakMap,i=(t=function(e,t){return n.set(e,t),t},function(e){var i=n.get(e),o=void 0===i?e.size:i<1073741824?i+1:0;if(!e.has(o))return t(e,o);if(e.size<536870912){for(;e.has(o);)o=Math.floor(1073741824*Math.random());return t(e,o)}if(e.size>r)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*r);return t(e,o)});e.addUniqueNumber=function(e){var t=i(e);return e.add(t),t},e.generateUniqueNumber=i},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(l||s((l={exports:{}}).exports,l),l.exports));ep.Component;var RY=(d=null!=(u=Rq())?RI(RW(u)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of RU(t))R$.call(e,i)||i===r||RB(e,i,{get:()=>t[i],enumerable:!(n=RH(t,i))||n.enumerable});return e})(!c&&u&&u.__esModule?d:RB(d,"default",{value:u,enumerable:!0}),u)),RG=e=>void 0!==e.method&&"call"===e.method,RK=e=>null===e.error&&"number"==typeof e.id;z=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(RG(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=r.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(RK(e)){let{id:i}=e,o=n.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;n.delete(i),"interval"===s?t.delete(a):r.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,RY.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,RY.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,RY.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,RY.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}},I='(()=>{"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})}}))})();',f=null,()=>{if(null!==f)return f;let e=new Blob([I],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return f=z(t),setTimeout(()=>URL.revokeObjectURL(t)),f};var RX=(typeof window>"u"?"undefined":typeof window)=="object",RJ={setTimeout:RX?setTimeout.bind(window):setTimeout,clearTimeout:RX?clearTimeout.bind(window):clearTimeout,setInterval:RX?setInterval.bind(window):setInterval,clearInterval:RX?clearInterval.bind(window):clearInterval},RQ={},R0=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,RQ[e]=RQ[e]||[],RQ[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),RJ.setTimeout(()=>{window.localStorage.removeItem(r)},500),RQ[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=RQ[this.name].indexOf(this);RQ[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)}},R1=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:R0;function R2(){return Math.random().toString(36).substring(2)}var R4=class{options;channel;token=R2();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>RJ.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>{if(e)return;e=!0;try{RJ.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=RJ.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>RJ.clearInterval(e))}catch{}}}},R3=class{channel;options;elector;token=R2();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new R1(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new R4(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},R5=RX?document:null,R6=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function R8(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();function R9(e){let{route:t}=e,r=(0,yD.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!r.error,isValidating:r.isValidating}}function De(e){let{appName:t,title:r,navTitle:n,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,after:c,dockedControls:d,children:f,sidenav:h,connectivityRoute:p,isSynced:m,showWallet:v,walletBalanceSc:g,routes:y,scroll:x=!0,openSettings:b}=e,{lock:w,settings:j}=(0,yD.Hv)();return!function(e){let{lock:t,route:r,routes:n}=e,{isConnected:i,isValidating:o}=R9({route:r}),{settings:a}=(0,yD.Hv)(),s=(0,vE.j0)();(0,ep.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(n.login),r=!a.password||!i;if(e&&r){t();return}},[s,a.password,i,o])}({lock:w,route:p,routes:y}),!function(e){let{enabled:t,lock:r,lockTimeout:n}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=R5,events:i=R6,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:x=!1,name:b="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:E=!1}={}){let k=(0,ep.useRef)(R7()),C=(0,ep.useRef)(R7()),S=(0,ep.useRef)(null),O=(0,ep.useRef)(null),_=(0,ep.useRef)(0),M=(0,ep.useRef)(0),A=(0,ep.useRef)(0),P=(0,ep.useRef)(0),T=(0,ep.useRef)(!1),N=(0,ep.useRef)(!1),R=(0,ep.useRef)(!1),D=(0,ep.useRef)(!0),L=(0,ep.useRef)(!1),F=(0,ep.useRef)(null),Z=(0,ep.useRef)(null),V=(0,ep.useRef)(e),z=(0,ep.useRef)(0);(0,ep.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(V.current=e-r,z.current=r):(V.current=e,z.current=t),!D.current){if(g||E)return;T.current&&(G.current(null,eP),Z.current&&Z.current.active()),ec()}},[e,t,r,g,E]);let I=(0,ep.useRef)(y);(0,ep.useEffect)(()=>{I.current=y},[y]);let B=(0,ep.useRef)(a),H=(0,ep.useRef)(n),U=(0,ep.useRef)([...new Set([...i,...a]).values()]),W=(0,ep.useRef)(E);(0,ep.useEffect)(()=>{W.current=E,!D.current&&(E?eh():g||ec())},[E]);let $=(0,ep.useRef)(s);(0,ep.useEffect)(()=>{$.current=s},[s]);let q=(0,ep.useRef)(l);(0,ep.useEffect)(()=>{q.current=l},[l]);let Y=(0,ep.useRef)(u);(0,ep.useEffect)(()=>{Y.current=u},[u]);let G=(0,ep.useRef)(c);(0,ep.useEffect)(()=>{G.current=c},[c]);let K=(0,ep.useRef)(d);(0,ep.useEffect)(()=>{K.current=d},[d]);let X=(0,ep.useRef)(f);(0,ep.useEffect)(()=>{X.current=f},[f]);let J=(0,ep.useMemo)(()=>{let e=(e,t)=>K.current(e,t);return h>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,h):p>0?R8(e,p):e},[p,h]),Q=(0,ep.useRef)();(0,ep.useEffect)(()=>{x&&w&&(Q.current=R8(()=>{Z.current.active()},w))},[x,w]);let ee=()=>{null!==F.current&&(RJ.clearTimeout(F.current),F.current=null)},et=(e,t=!0)=>{ee(),F.current=RJ.setTimeout(eo,e||V.current),t&&(O.current=R7())},er=e=>{N.current||T.current||(q.current(e,eP),$.current({type:"active",prompted:!0},eP)),P.current=0,A.current=R7(),N.current=!0,et(z.current,!1)},en=()=>{ee(),T.current||(Y.current(null,eP),$.current({type:"idle"},eP)),T.current=!0,S.current=R7(),I.current?eu():N.current&&(A.current=0,N.current=!1)},ei=e=>{ee(),(T.current||N.current)&&(G.current(e,eP),$.current({type:"active",prompted:!1},eP)),N.current=!1,A.current=0,T.current=!1,_.current+=R7()-S.current,M.current+=R7()-S.current,el(),et()},eo=e=>{if(!T.current){J.cancel&&J.cancel();let t=R7()-O.current;if(!(V.current+z.current0&&!N.current){Z.current?Z.current.prompt():er(e);return}Z.current?Z.current.idle():en();return}Z.current?Z.current.active():ei(e)},ea=e=>{if(v||O.current||(O.current=R7(),G.current(null,eP)),J(e,eP),N.current)return;if(ee(),!T.current&&B.current.includes(e.type)){eo(e);return}let t=R7()-O.current;if(T.current&&!y||!T.current&&t>=V.current){eo(e);return}R.current=!1,P.current=0,A.current=0,et(),x&&w&&Q.current()},es=(0,ep.useRef)(ea);(0,ep.useEffect)(()=>{let e=L.current;e&&eu(),m>0?es.current=R8(ea,m):es.current=ea,e&&el()},[m,p,h,K,x,w]);let el=()=>{RX&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},eu=(e=!1)=>{RX&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ec=(0,ep.useCallback)(e=>!W.current&&(ee(),el(),T.current=!1,N.current=!1,R.current=!1,P.current=0,A.current=0,Z.current&&!e&&Z.current.start(),et(),!0),[F,T,W,V,Z]),ed=(0,ep.useCallback)(e=>!W.current&&(ee(),el(),C.current=R7(),_.current+=R7()-S.current,M.current+=R7()-S.current,_.current=0,T.current=!1,N.current=!1,R.current=!1,P.current=0,A.current=0,Z.current&&!e&&Z.current.reset(),g||et(),!0),[F,T,V,g,W,Z]),ef=(0,ep.useCallback)(e=>!W.current&&(ee(),el(),(T.current||N.current)&&ei(),T.current=!1,N.current=!1,R.current=!1,P.current=0,A.current=0,C.current=R7(),Z.current&&!e&&Z.current.activate(),et(),!0),[F,T,N,W,V,Z]),eh=(0,ep.useCallback)((e=!1)=>!W.current&&!R.current&&(P.current=ej(),R.current=!0,eu(),ee(),Z.current&&!e&&Z.current.pause(),!0),[F,W,Z]),em=(0,ep.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||el(),T.current||et(P.current),A.current&&(A.current=R7()),Z.current&&!e&&Z.current.resume(),!0),[F,V,W,P,Z]),ev=(0,ep.useCallback)((e,t)=>(Z.current?(t&&X.current(e,eP),Z.current.message(e)):t&&X.current(e,eP),!0),[f]),eg=(0,ep.useCallback)(()=>T.current,[T]),ey=(0,ep.useCallback)(()=>N.current,[N]),ex=(0,ep.useCallback)(()=>Z.current?Z.current.isLeader:null,[Z]),eb=(0,ep.useCallback)(()=>Z.current?Z.current.isLastActive:null,[Z]),ew=(0,ep.useCallback)(()=>Z.current?Z.current.token:null,[Z]),ej=(0,ep.useCallback)(()=>{if(R.current)return P.current;let e=Math.floor((P.current?P.current:z.current+V.current)-(O.current?R7()-O.current:0));return e<0?0:Math.abs(e)},[V,z,N,P,O]),eE=(0,ep.useCallback)(()=>Math.round(R7()-C.current),[C]),ek=(0,ep.useCallback)(()=>Math.round(R7()-k.current),[k]),eC=(0,ep.useCallback)(()=>S.current?new Date(S.current):null,[S]),eS=(0,ep.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,ep.useCallback)(()=>T.current?Math.round(R7()-S.current+_.current):Math.round(_.current),[S,_]),e_=(0,ep.useCallback)(()=>T.current?Math.round(R7()-S.current+M.current):Math.round(M.current),[S,M]),eM=(0,ep.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[S,_]),eA=(0,ep.useCallback)(()=>{let e=Math.round(ek()-e_());return e>=0?e:0},[S,_]);(0,ep.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(RJ.setTimeout=o.setTimeout,RJ.clearTimeout=o.clearTimeout,RJ.setInterval=o.setInterval,RJ.clearInterval=o.clearInterval);let e=()=>{Z.current&&Z.current.close(),J.cancel&&J.cancel(),ee(),eu(!0)};return RX&&window.addEventListener("beforeunload",e),()=>{RX&&window.removeEventListener("beforeunload",e),Z.current&&Z.current.close(),J.cancel&&J.cancel(),ee(),eu(!0)}},[]),(0,ep.useEffect)(()=>{Z.current&&Z.current.close(),x?Z.current=new R3({channelName:b,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{en()},onActive:()=>{ei()},onMessage:e=>{X.current(e,eP)},start:ec,reset:ed,activate:ef,pause:eh,resume:em}):Z.current=null},[x,b,j,q,Y,G,X,ec,ed,eh,em]),(0,ep.useEffect)(()=>{D.current||(ee(),eu(!0)),g||E||(v?ec():el())},[g,v,E,D]),(0,ep.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...a]).values()];eu(),U.current=e,H.current=n,B.current=a,g||E||(v?ec():el())}},[n,JSON.stringify(i),JSON.stringify(a),D,E,g,v]),(0,ep.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eP={message:ev,start:ec,reset:ed,activate:ef,pause:eh,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:eE,getTotalElapsedTime:ek,getLastIdleTime:eC,getLastActiveTime:eS,getIdleTime:eO,getTotalIdleTime:e_,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,q.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,K.current=e},setOnMessage:e=>{f=e,X.current=e}}}({disabled:!t,onIdle:(0,ep.useCallback)(()=>{r()},[r]),timeout:n,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,eh.jsxs)(RR,{appName:t,title:r,children:[(0,eh.jsx)(RT,{}),(0,eh.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,eh.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,eh.jsx)(Rz,{routes:y,profile:i,openSettings:b,lock:w,showWallet:v,walletBalanceSc:g,isSynced:m,children:h}),(0,eh.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,eh.jsx)(RA,{title:void 0===n?r:n,nav:s,actions:l,stats:u,after:c}),x?(0,eh.jsx)(fC,{className:"z-0",children:(0,eh.jsx)(u5,{size:o,pad:!1,children:(0,eh.jsx)("div",{className:"flex flex-col gap-5",children:f})})}):(0,eh.jsx)(u5,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:f}),(0,eh.jsx)("div",{className:"z-20 fixed bottom-5 left-0 right-0 flex justify-center dark pointer-events-none",children:d})]})]})]})]})}function Dt(e,t,r,n){let[i,o]=(0,ep.useState)();return(0,ep.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,ep.useMemo)(()=>r?"error":void 0===i||i>0&&!e?"loading":0===i?0===n.length?"noneYet":"noneMatchingFilters":void 0,[e,i,r,n])}function Dr(e){let{filtered:t}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.Hb6,{className:"scale-[200%]"})}),(0,eh.jsx)(r9,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,ep.createContext)(null).Consumer;let Dn=[];function Di(e){let{open:t,onOpenChange:r,dismissOne:n,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=Dt(o.data,o.isValidating,o.error,Dn),[u,c]=(0,ep.useState)(),d=(0,ep.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,ep.useCallback)(e=>Object.keys(e).sort((e,t)=>{let r=a.indexOf(e),n=a.indexOf(t);return -1===r&&-1===n?0:-1===r?1:-1===n?-1:r-n}),[a]);return(0,eh.jsx)(f_,{open:t,onOpenChange:e=>{r(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsxs)(vS,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,eh.jsxs)("div",{className:"flex gap-1",children:[(0,eh.jsx)(ua,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,eh.jsx)(ua,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,eh.jsx)(ua,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,eh.jsx)(ua,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,eh.jsx)(ua,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,eh.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,eh.jsxs)(ua,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,eh.jsx)(us.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,eh.jsxs)("div",{className:(0,tp.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,eh.jsx)(Dr,{filtered:!1}),"error"===l&&(0,eh.jsx)("div",{className:(0,tp.cx)("flex items-center justify-center h-[100px]",Ds()),children:(0,eh.jsx)(r9,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,eh.jsx)(Da,{}),!l&&(0,eh.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,eh.jsxs)("div",{className:(0,tp.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,eh.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,eh.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,eh.jsxs)(r9,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,eh.jsx)(ua,{tip:"Dismiss alert",onClick:()=>n(e.id),children:(0,eh.jsx)(us.NlZ,{})})]}),(0,eh.jsxs)("div",{className:"flex justify-between w-full",children:[(0,eh.jsx)(r9,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,eh.jsx)(r9,{color:"contrast",ellipsis:!0,children:(0,Ek.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var r;let n=e.data[t];if(null==n||"object"==typeof n&&!Object.keys(n).length)return null;let i=(null==s?void 0:null===(r=s[t])||void 0===r?void 0:r.render)||Do;return(0,eh.jsx)(i,{label:t,value:n},t)})]},e.id)):(0,eh.jsx)(Dr,{filtered:!!u})})]})})}function Do(e){let{label:t,value:r}=e;return(0,eh.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,eh.jsx)(r9,{color:"subtle",children:t}),(0,eh.jsx)(r9,{color:"contrast",ellipsis:!0,children:String(r)})]})}function Da(){return(0,eh.jsx)(eh.Fragment,{children:Tl(10,e=>(0,eh.jsx)("div",{className:(0,tp.cx)("relative flex gap-4 p-3.5",Ds()),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,eh.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,eh.jsx)(yH,{className:"w-[160px] h-[20px]"}),(0,eh.jsx)(yH,{className:"w-[160px] h-[20px]"})]}),(0,eh.jsx)(yH,{className:"w-[100px] h-[20px]"}),(0,eh.jsx)(yH,{className:"w-full h-[120px]"})]})},e))})}function Ds(){return(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var Dl=r(89644),Du=r.n(Dl),Dc=r(63955),Dd=r(40871),Df=r(95849),Dh=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r},Dp=(B=r(91139).Z,function(e){var t,r=(0,Dd.Z)(e);return"[object Map]"==r?(0,Df.Z)(e):"[object Set]"==r?Dh(e):(t=B(e),(0,M6.Z)(t,function(t){return[t,e[t]]}))});function Dm(e){let{form:t,field:r,name:n}=e,i=t.watch(n),o=t.formState.touchedFields[n]&&!!t.formState.errors[n],{ref:a,onChange:s}=t.register(n,r.validation),l=(0,ep.useCallback)(e=>{var n;s(e),null===(n=r.trigger)||void 0===n||n.forEach(e=>t.trigger(e))},[s,t,r]),u=(0,ep.useCallback)(()=>{var e;t.trigger(n),null===(e=r.trigger)||void 0===e||e.forEach(e=>t.trigger(e))},[t,r,n]),c=(0,ep.useCallback)((e,i)=>{var o;t.setValue(n,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=r.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[n,t,r]);return{ref:a,name:n,value:i,error:o,onBlur:u,onChange:l,setValue:c}}function Dv(e){return(0,ep.useCallback)(t=>{PJ({title:"Error",body:Dp(t).map(t=>{let[r,n]=t;return"".concat(e[r].title||r,": ").concat(null==n?void 0:n.message)}).join(", ")})},[e])}function Dg(e){let{name:t,form:r,fields:n}=e,i=n[t];return!i.hidden&&(!i.show||i.show(r.getValues()))}function Dy(e){let{name:t,form:r,fields:n,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0,type:u}=e,c=n[t],{ref:d,onChange:f,onBlur:h,error:p}=Dm({name:t,form:r,field:c}),m=(0,eh.jsx)(yo,{ref:d,name:t,placeholder:c.placeholder,size:i,autoComplete:void 0!==o?o:c.autoComplete,type:u||c.type,readOnly:c.readOnly,spellCheck:a,onClick:c.onClick,state:s?p?"invalid":r.formState.dirtyFields[t]?"valid":"default":"default",onChange:f,onBlur:h});return l?(0,eh.jsx)(TD,{title:c.title,actions:c.actions,name:t,form:r,children:m}):m}var Dx=r(34001),Db=function(e,t){return Aw(Av(e,t,Ay.Z),e+"")},Dw=r(92725),Dj=r(18226),DE=r(76325),Dk=function(e,t,r){if(!(0,jh.Z)(r))return!1;var n=typeof t;return("number"==n?!!((0,Dj.Z)(r)&&(0,DE.Z)(t,r.length)):"string"==n&&t in r)&&(0,Dw.Z)(r[t],e)},DC=Db(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Dk(e,t[0],t[1])?t=[]:r>2&&Dk(t[0],t[1],t[2])&&(t=[t[0]]),(0,Dx.Z)(e,Ah(t,1),[])});async function DS(e){let{api:t,route:r,password:n}=e;try{return await Du().get("".concat(t,"/api").concat(r),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(n))},timeout:1e4}),{}}catch(r){let e=r.code,t=r.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function DO(e){let{appName:t,route:r,routes:n}=e,i=(0,vE.j0)(),{settings:o,setRequestSettings:a}=(0,yD.Hv)(),{loginWithCustomApi:s}=o,l=(0,ep.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,Dc.cI)({mode:"onBlur",defaultValues:l});(0,ep.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,ep.useCallback)(async e=>{let t="";if(s){let r=new URL(e.api);t="".concat(r.protocol,"//").concat(r.host)}let{error:c}=await DS({api:t,route:r,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):n.home),u.reset(l))},[s,u,i,n,o,a,l,r]),d=function(e){let{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:s}),f=Dv(d),h=u.formState.errors.api||u.formState.errors.password,p=DC(Object.entries(o.recentApis),e=>{let[t,{lastUsed:r}]=e;return-r}).map(e=>{let[t]=e;return t});return(0,eh.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,eh.jsx)(nr,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,eh.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,eh.jsxs)("div",{className:"flex justify-between items-center",children:[(0,eh.jsx)(r9,{font:"mono",weight:"bold",size:"20",children:t}),(0,eh.jsx)(vx,{label:"login settings",trigger:(0,eh.jsx)(ua,{icon:"hover",variant:"ghost",children:(0,eh.jsx)(us.shL,{})}),children:(0,eh.jsx)(vb,{onSelect:()=>a({loginWithCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,eh.jsx)(vl,{className:"w-full mt-2 mb-3"}),(0,eh.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,eh.jsxs)(uD,{children:[(0,eh.jsx)(Dy,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,eh.jsx)(vx,{trigger:(0,eh.jsx)(ua,{type:"button",children:(0,eh.jsx)(us.wGX,{})}),children:p.map(e=>(0,eh.jsx)(vb,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,eh.jsx)(Dy,{name:"password",form:u,fields:d,group:!1}),h&&(0,eh.jsx)(r9,{size:"14",color:"red",children:h.message}),(0,eh.jsx)(TL,{size:"small",form:u,children:"Unlock"})]})})]})})})}function D_(e){let{children:t}=e;return(0,eh.jsx)(nD,{children:t&&(0,eh.jsx)(ut.div,{className:"pointer-events-auto",initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.2},children:t})})}function DM(e){let{name:t,form:r,fields:n,size:i="medium",group:o=!0,before:a,children:s}=e,l=n[t],{setValue:u,onBlur:c,value:d,error:f}=Dm({name:t,field:l,form:r}),h=(0,eh.jsxs)("div",{className:"flex gap-1 items-center",children:[a,(0,eh.jsx)(xr,{"aria-label":t,name:t,size:i,checked:d,state:f?"invalid":r.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{u(e,!0)},onBlur:c}),s]});return o?(0,eh.jsx)(TD,{title:l.title,name:t,form:r,className:"pb-[1.5px]",children:h}):h}function DA(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6,showFiat:h}=a,{setValue:p,onBlur:m,value:v,error:g}=Dm({name:t,field:a,form:r}),y=(0,ep.useMemo)(()=>s?new(yT())(s):u&&"boolean"!=typeof u?new(yT())(u):l&&"boolean"!=typeof l?new(yT())(l):void 0,[s,u,l]),x=(0,eh.jsx)(yL,{name:t,size:i,sc:v,units:c,showFiat:h,decimalsLimitSc:d,decimalsLimitFiat:f,readOnly:a.readOnly,error:g,changed:r.formState.dirtyFields[t],placeholder:y,onChange:e=>{p(e,!0)},onBlur:m});return o?(0,eh.jsx)(TD,{title:a.title,name:t,form:r,children:x}):x}let DP={address:"",siacoin:void 0,includeFee:!1};function DT(e){let{hastings:t,includeFee:r,fee:n}=e;return r?t:t.plus(n)}function DN(e){let{address:t,hastings:r,fee:n,transactionId:i}=e,o=r.plus(n);return(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,eh.jsx)(P6,{testId:"address",value:t,type:"address"})]}),(0,eh.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"amount",size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,eh.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"networkFee",size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,eh.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"total",size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,eh.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,eh.jsx)(P6,{testId:"transactionId",value:i,type:"transaction"})]})]})}function DR(e){let{activeStep:t,steps:r,onChange:n}=e,i=r.findIndex(e=>e.id===t),o=r.length-1;return(0,eh.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,eh.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,eh.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),r.map((e,r)=>{let{id:a,label:s}=e,l=t===a,u=i>=r,c=r===o,d=0===r,f=u&&i!==o;return(0,eh.jsxs)("div",{className:(0,tp.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(r/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&n(a)},children:[(0,eh.jsx)(r9,{color:l?"contrast":"verySubtle",className:(0,tp.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,eh.jsx)("div",{className:(0,tp.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,eh.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function DD(e){let{data:{address:t,hastings:r},fee:n,transactionId:i}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(DN,{address:t,hastings:r,fee:n,transactionId:i}),(0,eh.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.Z$8,{})}),(0,eh.jsx)(r9,{children:"Transaction successfully broadcasted."})]})]})}let DL={address:"",hastings:new(yT())(0)};function DF(e){let{trigger:t,open:r,onOpenChange:n,balance:i,fee:o,send:a}=e,[s,l]=(0,ep.useState)("setup"),[u,c]=(0,ep.useState)(),[d,f]=(0,ep.useState)(DL),h=function(e){let{balance:t,fee:r,onComplete:n}=e,i=(0,Dc.cI)({defaultValues:DP}),o=async e=>{if(!e.siacoin||!t)return;let i=e.includeFee?(0,Ek.qN)(e.siacoin).minus(r):(0,Ek.qN)(e.siacoin),o=DT({hastings:i,includeFee:e.includeFee,fee:r});t.isLessThan(o)||n({address:e.address,hastings:i})},a=function(e){let{balance:t,fee:r}=e;return{address:{title:"Address",type:"text",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{isValidAddress:e=>(0,Ek.At)(e)||"Invalid address"}}},siacoin:{title:"Siacoin",type:"siacoin",placeholder:"100",validation:{required:"required",validate:{greaterThanZero:e=>!new(yT())(e||0).isZero()||"Must be greater than zero",lessThanBalance:(e,n)=>DT({hastings:(0,Ek.qN)(e||0),includeFee:n.includeFee,fee:r}).isLessThan(t||0)||"Not enough funds in wallet"}}},includeFee:{type:"boolean",title:"Include fee",validation:{}}}}({balance:t,fee:r}),s=i.handleSubmit(o),l=i.watch("includeFee"),u=i.watch("siacoin"),c=(0,Ek.qN)(u||0);return{el:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(Dy,{form:i,fields:a,size:"medium",name:"address",autoComplete:"off"}),(0,eh.jsx)(DA,{form:i,fields:a,name:"siacoin"}),(0,eh.jsxs)("div",{className:"flex items-center",children:[(0,eh.jsx)(DM,{name:"includeFee",form:i,size:"small",fields:a,group:!1,children:(0,eh.jsx)(r9,{size:"14",color:"contrast",children:"Include fee"})}),(0,eh.jsx)(yF,{children:"Include or exclude the network fee from the above transaction value."}),(0,eh.jsx)("div",{className:"flex flex-1"})]}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,eh.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",children:"Network fee"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"networkFee",size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,eh.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",children:"Total"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"total",size:"14",value:DT({hastings:c,includeFee:l,fee:r}),variant:"value",dynamicUnits:!1})})]})]})]}),reset:i.reset,form:i,submit:s}}({balance:i,fee:o,onComplete:e=>{f(e),l("confirm")}}),p=function(e){let{send:t,params:r,fee:n,onConfirm:i}=e,{address:o,hastings:a}=r||{},s=(0,Dc.cI)({defaultValues:{}}),l=(0,ep.useCallback)(async()=>{let{transactionId:e,error:r}=await t({address:o,hastings:a,includeFee:!1});if(r){PJ({title:"Error sending siacoin",body:r});return}i({transactionId:e})},[i,o,a,t]),u=(0,ep.useMemo)(()=>s.handleSubmit(l),[s,l]);return{el:(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:(0,eh.jsx)(DN,{address:o,hastings:a,fee:n})}),form:s,reset:s.reset,submit:u}}({fee:o,params:d,send:a,onConfirm:e=>{let{transactionId:t}=e;c(t),l("done")}}),m=(0,ep.useMemo)(()=>"setup"===s?{submitLabel:"Generate transaction",el:h.el,form:h.form,reset:h.reset,submit:h.submit}:"confirm"===s?{submitLabel:"Broadcast transaction",el:p.el,form:p.form,reset:p.reset,submit:p.submit}:void 0,[s,h,p]);return(0,eh.jsx)(f_,{trigger:t,open:r,onOpenChange:e=>{e||(h.reset(),p.reset(),l("setup")),n(e)},title:"Send siacoin",onSubmit:m?m.submit:void 0,controls:m&&(0,eh.jsx)("div",{className:"flex flex-col gap-1",children:(0,eh.jsx)(TL,{form:m.form,children:m.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(DR,{onChange:e=>l(e),activeStep:s,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,eh.jsx)(vl,{className:"w-full mt-4"}),"setup"===s&&h.el,"confirm"===s&&p.el,"done"===s&&(0,eh.jsx)(DD,{data:d,fee:o,transactionId:u})]})})}function DZ(e){let{form:t,onOpenChange:r,defaultValues:n,initKey:i}=e,o=(0,ep.useCallback)(()=>{t.reset(n)},[t,n]),a=(0,ep.useCallback)(()=>{r(!1),t.reset(n)},[t,r,n]),s=(0,ep.useCallback)(e=>{e?(r(!0),setTimeout(()=>{o()},0)):a()},[a,o,r]),l=function(e){let[t,r]=(0,ep.useState)(e);return(0,ep.useEffect)(()=>{if(!e||!e.length)return;let n=!1;for(let r=0;r{l&&l.length&&l.every(e=>!!e)&&o()},[l]),{reset:o,closeAndReset:a,handleOpenChange:s}}let DV={address:""},Dz={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function DI(e){let{trigger:t,open:r,connect:n,onOpenChange:i}=e,o=(0,Dc.cI)({mode:"all",defaultValues:DV}),{handleOpenChange:a,closeAndReset:s}=DZ({form:o,onOpenChange:i,defaultValues:DV}),l=(0,ep.useCallback)(async e=>{let t=await n(e.address);t.error?PJ({title:t.error}):(PX({title:"Connected to peer"}),s())},[s,n]);return(0,eh.jsx)(f_,{trigger:t,title:"Connect peer",description:"Connect to a peer by IP address.",open:r,onOpenChange:a,contentVariants:{className:"w-[400px]"},onSubmit:o.handleSubmit(l),controls:(0,eh.jsx)("div",{className:"px-1",children:(0,eh.jsx)(TL,{form:o,size:"medium",className:"w-full",children:"Connect"})}),children:(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:(0,eh.jsx)(Dy,{form:o,fields:Dz,name:"address",size:"medium"})})})}function DB(e){var t,r;let{id:n,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,eh.jsx)(f_,{title:P5((null==i?void 0:i.txType)?TS((0,Ek.pX)(i.txType)):"Transaction",n||"",16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,eh.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,eh.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Inflow"}),(0,eh.jsx)(P9,{value:new(yT())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Outflow"}),(0,eh.jsx)(P9,{value:new(yT())((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,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Miner fee"}),(0,eh.jsx)(P9,{value:new(yT())((null==i?void 0:null===(r=i.raw.minerFees)||void 0===r?void 0:r.reduce((e,t)=>e.plus(t),new(yT())(0)))||0)})]}),(0,eh.jsx)("div",{className:"flex-1"}),(0,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Timestamp"}),(0,eh.jsx)(r9,{children:(null==i?void 0:i.timestamp)?(0,Ek.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,eh.jsx)(uP,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,eh.jsx)(r9,{children:"Could not find transaction in wallet"})})}r(92683);var DH=r(24511);DH.Ry().shape({address:DH.Z_().required("Required"),description:DH.Z_().required("Required"),index:DH.Rx().integer().required("Required")});var DU=r(38001);function DW(e){let{title:t,description:r,address:n}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,eh.jsx)(vS,{size:"20",font:"mono",children:t}),r&&(0,eh.jsx)(r9,{children:r}),(0,eh.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,eh.jsx)("div",{className:"absolute",children:(0,eh.jsx)(DU.Z,{size:200,value:n})})}),(0,eh.jsx)(P6,{type:"address",value:n})]})}function D$(e){let{address:t,isValidating:r,trigger:n,open:i,onOpenChange:o}=e;return(0,eh.jsx)(f_,{title:P5("Address",P3(t||"")||"",16),trigger:n,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:t||r?(0,eh.jsx)(DW,{address:t||""}):(0,eh.jsx)(r9,{children:"Could not retreive wallet address"})})})}function Dq(e){let{isSynced:t,isWalletSynced:r,syncPercent:n,walletScanPercent:i}=e;return t?r?null:(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{color:"amber",children:(0,eh.jsx)(us.qdM,{})}),(0,eh.jsxs)(r9,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{color:"amber",children:(0,eh.jsx)(us.qdM,{})}),(0,eh.jsxs)(r9,{size:"14",children:["Blockchain is syncing (",n,"%), transaction data may be incomplete."]})]})}let DY={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 DG(){let{settings:e,setCurrency:t,currencyOptions:r}=(0,yD.Hv)();return(0,eh.jsx)(yz,{"aria-label":"currency fiat",name:"currencyFiat",disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:r.map(e=>{let{id:t,label:r}=e;return(0,eh.jsx)(yI,{value:t,children:r},t)})})}let DK=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function DX(){let{settings:e,setExternalDataSettings:t}=(0,yD.Hv)();return(0,eh.jsx)(yz,{"aria-label":"currency display",name:"currencyDisplay",disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:DK.map(e=>{let{id:t,label:r}=e;return(0,eh.jsx)(yI,{value:t,children:r},t)})})}function DJ(e){let{open:t,onOpenChange:r,securityEl:n,showGpuSetting:i}=e,{settings:o,setRequestSettings:a,setExternalDataSettings:s,daemonExplorer:l,gpu:u}=(0,yD.Hv)();return(0,eh.jsx)(f_,{open:t,title:"App preferences",onOpenChange:r,contentVariants:{className:"w-[450px]"},children:(0,eh.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Display"}),(0,eh.jsx)(ne,{size:"14",children:"Configure visual and locale display preferences."}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Currency display"}),(0,eh.jsx)(DX,{})]}),(0,eh.jsx)(ne,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires a third-party API enabled under Privacy."})]})}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Fiat"}),(0,eh.jsx)(DG,{})]}),(0,eh.jsx)(ne,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires a third-party API enabled under Privacy."})]})}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Theme"}),(0,eh.jsx)(bE,{})]}),(0,eh.jsx)(ne,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"GPU"}),(0,eh.jsx)(xr,{disabled:!u.canGpuRender,checked:u.canGpuRender&&u.isGpuEnabled,onCheckedChange:u.setIsGpuEnabled,size:"medium"})]}),(0,eh.jsxs)(ne,{size:"14",children:["Enable features that require a GPU."," ",u.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Security"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(ne,{size:"14",children:"Configure security preferences."}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Lock app"}),(0,eh.jsx)(xr,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,eh.jsxs)(yz,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,eh.jsx)(yI,{value:(0,Ek.sW)(5),children:"5 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(10),children:"10 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(20),children:"20 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(30),children:"30 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(60),children:"1 hour"})]})]}),(0,eh.jsx)(ne,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),n]})]}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Privacy"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(ne,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. Third-party APIs are optional and can be toggled on or off."}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Sia Central"}),(0,eh.jsx)(xr,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>s({siaCentral:e})})]}),(0,eh.jsx)(ne,{size:"14",children:"The app fetches network average prices and host geolocation from the Sia Central API."})]})}),l.isSupported?(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-1 items-center justify-between",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Explorer"})]}),(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[l.api?(0,eh.jsx)(P6,{maxLength:30,value:l.api||"https://api.siascan.com"}):(0,eh.jsx)(r9,{size:"14",weight:"medium",color:"subtle",children:"Not configured"}),(0,eh.jsx)(xr,{size:"medium",disabled:!0,checked:l.enabled,onCheckedChange:e=>s({siaCentral:e})})]})]}),(0,eh.jsx)(ne,{size:"14",children:"The app fetches Siacoin exchange rates from the configured explorer API. This API is configured and enabled in the daemon's startup configuration."})]})}):(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Siascan"}),(0,eh.jsx)(xr,{size:"medium",checked:o.siascan,onCheckedChange:e=>s({siascan:e})})]}),(0,eh.jsx)(ne,{size:"14",children:"The app fetches Siacoin exchange rates from the Siascan API."})]})})]})]}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Help"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(ne,{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,eh.jsxs)("div",{className:"flex gap-4",children:[(0,eh.jsxs)(vZ,{href:DY.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.lq1,{}),"Website"]}),(0,eh.jsxs)(vZ,{href:DY.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.RdX,{}),"Docs"]}),(0,eh.jsxs)(vZ,{href:DY.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.Sfn,{}),"About"]}),(0,eh.jsxs)(vZ,{href:DY.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.b47,{}),"Discord"]})]})]})]})]})})}function DQ(e){let{balanceSc:t,isSynced:r,syncingMessage:n}=e;return t?r?(0,eh.jsx)(RL,{side:"bottom",balanceSc:t,children:(0,eh.jsx)(nr,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,eh.jsx)(Tr,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,eh.jsx)(ui,{content:n||"Blockchain is syncing, balance may be incorrect.",children:(0,eh.jsxs)(nr,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,eh.jsx)(r9,{color:"amber",children:(0,eh.jsx)(us.qdM,{})}),(0,eh.jsx)(Tr,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function D0(e){let{isSynced:t,isWalletSynced:r,syncPercent:n,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,eh.jsxs)(eh.Fragment,{children:[o&&(0,eh.jsx)(DQ,{isSynced:t&&r,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(n,"%), balance may be incorrect."),balanceSc:o}),s&&(0,eh.jsxs)(ua,{"aria-label":"receive",size:"small",onClick:s,children:[(0,eh.jsx)(us.xHM,{}),"Receive"]}),(0,eh.jsxs)(ua,{"aria-label":"send",size:"small",variant:"accent",onClick:a,children:[(0,eh.jsx)(us.rW0,{}),"Send"]})]})}function D1(e,t){if(!e||!e.length)return[];let r=Object.keys(AE(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(r.forEach(r=>{let n=t[r],a=e[i-1][r];o[r]=n-a}),n.push(o))}):n=e,n}function D2(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-(0,Ek.Nr)(Number(e)),end:t}}let D4={"5m":e=>{let t=e+(0,Ek.sW)(5);return"5m interval from ".concat((0,Ek.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,Ek.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+(0,Ek.sW)(15);return"15m interval from ".concat((0,Ek.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,Ek.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+(0,Ek.yt)(1);return"Hour interval from ".concat((0,Ek.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,Ek.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+(0,Ek.yt)(24);return"Day interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},weekly:e=>{let t=e+(0,Ek.Nr)(7);return"Week interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},monthly:e=>{let t=e+(0,Ek.Nr)(30);return"Month interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},yearly:e=>{let t=e+(0,Ek.Nr)(365);return"Year interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},default:e=>"".concat((0,Ek.rN)(e))};function D3(e){return D4[e]||D4.default}function D5(e){if(!e||!e.length)return{};let t=Object.keys(AE(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...t.reduce((t,r)=>({...t,[r]:function(e,t){var r,n;let i=(null===(r=t[0])||void 0===r?void 0:r[e])||0,o=(null===(n=t[t.length-1])||void 0===n?void 0:n[e])||0;return D6({total:t.reduce((t,r)=>t+(r[e]||0),0),start:i,end:o,count:t.length})}(r,e)}),{}),total:function(e,t){let r=D8(e,t[0]),n=D8(e,t[t.length-1]);return D6({total:t.reduce((t,r)=>t+D8(e,r),0),start:r,end:n,count:t.length})}(t,e)}}function D6(e){let{total:t,start:r,end:n,count:i}=e,o=n-r;return{total:t,diff:o,change:0===r?void 0:o/r*100,latest:n,average:t/i}}function D8(e,t){return e.reduce((e,r)=>e+((null==t?void 0:t[r])||0),0)}function D7(e){let{balances:t,isLoading:r,chartType:n="area"}=e,{resolvedTheme:i}=(0,bw.F)(),o=(0,ep.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:EE.accent[800]}}:{sc:{label:"siacoin",color:EE.accentdark[800]}},[i]),a=(0,ep.useMemo)(()=>({data:D1(t,"none"),stats:D5(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,Ek.Vz)(e),formatTimestamp:D3("default"),formatTickY:e=>(0,Ek.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:n},isLoading:r}),[t,r,o,n]);return(0,eh.jsx)("div",{className:"relative",children:(0,eh.jsx)(A_,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function D9(e){let{peers:t,isLoading:r,connectPeer:n}=e;return(0,eh.jsx)(TA,{title:"Peers",actions:(0,eh.jsx)(ua,{onClick:n,children:"Connect"}),isLoading:r,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Le(e){let{size:t,label:r,enabled:n=!0,onChange:i,color:o}=e;return(0,eh.jsxs)("div",{className:(0,tp.cx)("flex gap-1.5 items-center",n?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(n?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!n),children:[o&&(0,eh.jsx)("div",{className:"relative top-px",children:(0,eh.jsx)(yW,{style:{backgroundColor:o}})}),(0,eh.jsx)(r9,{size:t,children:r})]})}let Lt={total:"total",average:"average",latest:"latest"};function Lr(e){let{category:t,label:r,color:n,sc:i,scFixed:o=2,value:a,extendedSuffix:s,valueFormat:l=e=>e.toFixed(2),defaultMode:u,enabledModes:c=["total","average","latest"],isLoading:d,showChange:f=!0}=e,[h,p]=(0,Ak.Z)("v0/datum/".concat(t,"/").concat(r),{defaultValue:u});return(0,eh.jsx)(TP,{isLoading:d,label:(0,eh.jsx)(Le,{label:r,color:n}),actions:(0,eh.jsx)(yz,{onChange:e=>p(e.currentTarget.value),defaultValue:h,children:c.map(e=>(0,eh.jsx)(yI,{value:e,children:Lt[e]},e))}),sc:(null==i?void 0:i[h])!==void 0?new(yT())(i[h]):void 0,scFixed:o,extendedSuffix:s,value:(null==a?void 0:a[h])!==void 0&&l?l(a[h]):void 0,comment:i?(0,eh.jsxs)("div",{className:"flex items-center gap-4",children:[(0,eh.jsx)(Tr,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(yT())(i.diff)}),f&&void 0!==i.change&&(0,eh.jsx)(ui,{content:"Percent change over time range",children:(0,eh.jsxs)(r9,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):a&&(0,eh.jsxs)("div",{className:"flex items-center gap-4",children:[(0,eh.jsx)(Tn,{tooltip:"Net change over time range:",format:e=>l(e.toNumber()),value:new(yT())(a.diff)}),f&&void 0!==a.change&&(0,eh.jsx)(ui,{content:"Percent change over time range",children:(0,eh.jsxs)(r9,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[a.change.toFixed(2),"%"]})})]})})}function Ln(e){let{children:t,bleed:r}=e;return(0,eh.jsx)("div",{className:(0,tp.cx)(r?"-mx-5 overflow-hidden":""),children:(0,eh.jsx)(fC,{children:(0,eh.jsx)("div",{className:(0,tp.cx)("flex gap-4 py-4",r?"px-5 w-fit":""),children:t})})})}function Li(e){let{children:t,variant:r,align:n}=e;return(0,eh.jsx)("div",{className:"relative",style:{top:"primary"===r?"6px":void 0,left:"start"===n?"0px":void 0,right:"end"===n?"0px":void 0},children:(0,eh.jsx)(r9,{size:"10",color:"contrast",dir:"start"===n?"rtl":"ltr",weight:"primary"===r?"semibold":"regular",ellipsis:!0,children:t})})}function Lo(e){let{date:t,align:r,variant:n}=e;return t?(0,eh.jsx)(Li,{variant:n,align:r,children:(0,Ek.rN)(t)}):null}function La(e){let{blockHeight:t,align:r,variant:n}=e;return t?(0,eh.jsx)(Li,{variant:n,align:r,children:t.toLocaleString()}):null}function Ls(e){let{label:t,currentHeight:r,range:n,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=n.endHeight-n.startHeight,f=(0,Ek.pp)(d),h=(0,Ek.jr)(r,n.startHeight),p=(0,Ek.jr)(r,i),m=(0,Ek.jr)(r,o),v=(p-h)/f,g=(m-h)/f;return(0,eh.jsxs)("div",{className:(0,tp.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Ll(v),width:Ll(g-v)},children:[(0,eh.jsx)("div",{className:(0,tp.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,eh.jsx)("div",{className:(0,tp.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ll(1-g)}:{left:Ll(v)},children:[(0,eh.jsx)(La,{blockHeight:i,align:"start",variant:"primary"}),(0,eh.jsx)(Li,{variant:"primary",children:t}),(0,eh.jsx)(La,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,eh.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ll(1-g)}:{left:Ll(v)},children:[(0,eh.jsx)(Lo,{date:p,align:"start",variant:"secondary"}),(0,eh.jsx)(Lo,{date:m,align:"start",variant:"secondary"})]}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ll(1-g)}:{left:Ll(v)},children:[(0,eh.jsx)(Lo,{date:p,align:"start",variant:"secondary"}),(0,eh.jsx)(Lo,{date:m,align:"start",variant:"secondary"})]})]})}function Ll(e){return"".concat(100*e,"%")}function Lu(e){var t;let{currentHeight:r,eventHeight:n,range:i,label:o,bottomLabel:a,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!n&&n>r,d=n&&!c&&r-n<6,f=i.endHeight-i.startHeight,h=(0,Ek.pp)(f),p=(0,Ek.jr)(r,i.startHeight),m=n?(0,Ek.jr)(r,n):0;return n?(0,eh.jsx)("div",{className:(0,tp.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,eh.jsxs)("div",{className:(0,tp.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,eh.jsx)("div",{className:(0,tp.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,eh.jsx)("div",{className:(0,tp.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,eh.jsx)("div",{className:(0,tp.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,eh.jsx)(La,{blockHeight:n,align:"start",variant:"primary"}),(0,eh.jsx)(Li,{variant:"primary",children:o})]}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,eh.jsx)(Lo,{date:m,align:"start",variant:"secondary"}),a&&(0,eh.jsx)(Li,{variant:"secondary",children:a})]})]})}):null}function Lc(e){let{currentHeight:t,contractHeightStart:r,contractHeightEnd:n,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-r<6;return(0,eh.jsx)("div",{className:"group/main relative w-full",children:(0,eh.jsx)("div",{className:"relative py-6",children:(0,eh.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,eh.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,eh.jsxs)("div",{className:"group/segments",children:[(0,eh.jsx)(Ls,{label:"contract duration",currentHeight:t,startHeight:r,endHeight:n,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,eh.jsx)(Ls,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,eh.jsx)(Lu,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:r,range:l,color:u?"amber":"blue",className:"z-20"}),(0,eh.jsx)(Lu,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,eh.jsx)(Lu,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,eh.jsx)(Lu,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Ld=r(36446),Lf=r(45904),Lh=function(e,t){return!!(null==e?0:e.length)&&(0,Lf.Z)(e,t,0)>-1},Lp=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n=200&&(o=Lv.Z,a=!1,t=new Ld.Z(t));t:for(;++i{e.stopPropagation(),i(r)},children:(0,eh.jsx)(us.xVB,{})}),(0,eh.jsx)(ua,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(r)},children:(0,eh.jsx)(us.pHg,{})})]})]})}function Lj(e){let{title:t,children:r}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,eh.jsx)(vS,{anchorLink:!0,size:"24",children:t}),(0,eh.jsx)(nr,{className:"p-6",children:(0,eh.jsx)("div",{className:"flex flex-col gap-6",children:(0,eh.jsx)(RM,{separator:(0,eh.jsx)(vl,{className:"w-full my-3"}),children:r})})})]})}function LE(e){let{id:t,title:r,description:n,control:i}=e;return(0,eh.jsxs)("div",{className:"flex gap-10 justify-between","data-testid":t,children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,eh.jsx)(vS,{id:t||r,anchorLink:!0,size:"20",children:r}),(0,eh.jsx)(ne,{size:"14",children:n})]}),(0,eh.jsx)("div",{className:"",children:i})]})}function Lk(e){let{open:t,params:r,trigger:n,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=r||{},c=(0,Dc.cI)(),d=(0,ep.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,eh.jsx)(f_,{title:a,trigger:n,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,eh.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,eh.jsx)("div",{className:"flex gap-1 justify-end",children:(0,eh.jsx)(TL,{variant:s,form:c,size:"small",children:l})})]})})})}function LC(e){let{name:t,peerCount:r,isSynced:n,nodeBlockHeight:i,connectPeer:o}=e;return(0,eh.jsxs)("div",{className:"flex justify-between items-center",children:[(0,eh.jsx)(r9,{font:"mono",weight:"bold",size:"20",children:t}),(0,eh.jsxs)("div",{className:"flex items-center",children:[r?(0,eh.jsxs)(ua,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(r," connected peers"),children:[(0,eh.jsx)(r9,{color:"subtle",children:r.toLocaleString()}),(0,eh.jsx)(us.RK4,{})]}):null,i&&n?(0,eh.jsx)(ui,{content:"Blockchain is synced",children:(0,eh.jsx)("div",{className:"relative left-2",children:(0,eh.jsxs)(ua,{variant:"ghost",state:"waiting",children:[(0,eh.jsx)(r9,{color:"subtle",children:i.toLocaleString()}),(0,eh.jsx)(r9,{color:"green",children:(0,eh.jsx)(us.Y3p,{})})]})})}):null]})]})}function LS(e){let{nodeBlockHeight:t,networkBlockHeight:r,moreThan100BlocksToSync:n,percent:i}=e;return(0,eh.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,eh.jsx)(gM,{variant:"accent",value:t&&r?t:0,max:r||1,className:""}),(0,eh.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,eh.jsx)(r9,{color:"subtle",size:"10",children:"Syncing..."}),t&&r?n?(0,eh.jsx)(r9,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(r.toLocaleString()," (").concat(i,"%)")}):(0,eh.jsx)(r9,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function LO(e){let{name:t,peerCount:r,connectPeer:n,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,eh.jsx)(xP,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,eh.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,eh.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,eh.jsxs)(r9,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,eh.jsx)(vV,{size:30})]}),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,eh.jsx)(LC,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:r,connectPeer:n}),i?(0,eh.jsx)(vl,{className:"w-full mb-0.5"}):(0,eh.jsx)(LS,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(r9,{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,eh.jsx)(vl,{className:"w-full mb-1"})]}),c]})})}function L_(e){let{testnetName:t}=e;return(0,eh.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,eh.jsx)(r9,{color:"lo",children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsxs)(r9,{size:"14",color:"lo",children:["You are on the ",t," testnet."]})]})}function LM(e){let{type:t,label:r,link:n,tip:i,icon:o,value:a,onClick:s,format:l,decimalsLimit:u,units:c}=e;return(0,eh.jsxs)("div",{className:"flex justify-between items-center",children:[(0,eh.jsx)(ui,{align:"start",side:"bottom",content:i,children:(0,eh.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,eh.jsx)(r9,{className:"flex relative",children:o||(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(r9,{size:"12",ellipsis:!0,children:n?(0,eh.jsx)(vZ,{href:n,target:"_blank",children:r}):r})]})}),(0,eh.jsx)("div",{role:"button",tabIndex:0,"aria-label":r,className:(0,tp.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,eh.jsx)(Tr,{value:a,variant:"value",size:"12",fixed:u,dynamicUnits:!1,showTooltip:!1,tipSide:"bottom"}):(0,eh.jsx)(Tn,{value:a,variant:"value",size:"12",format:l||(e=>"".concat(yN(e,u)).concat(c?" ".concat(c):"")),tipSide:"bottom"})})]})}function LA(e){let{form:t,fields:r,name:n}=e;return(0,ep.useCallback)((e,i)=>{!function(e){var t;let{form:r,fields:n,name:i,value:o,options:a}=e;r.setValue(i,o,"boolean"==typeof a?a?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:a),null===(t=n[i].trigger)||void 0===t||t.forEach(e=>r.trigger(e))}({form:t,fields:r,name:n,value:e,options:i})},[n,t,r])}function LP(e){let{name:t,form:r,fields:n}=e,{average:i,averageTip:o,suggestionLabel:a,suggestion:s,suggestionTip:l,before:u,after:c,tipsDecimalsLimitSc:d=0}=n[t],f=LA({name:t,fields:n,form:r});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,eh.jsx)(u||(()=>null),{name:t,form:r,fields:n}),(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(DA,{name:t,fields:n,form:r,group:!1,size:"small"}),i&&(0,eh.jsx)(LM,{type:"siacoin",label:"Network average",tip:o||"Averages provided by Sia Central.",decimalsLimit:d,value:(0,Ek.qN)(i),onClick:()=>{f(i,!0)}}),s&&l&&(0,eh.jsx)(LM,{type:"siacoin",label:a||"Suggestion",tip:l,decimalsLimit:d,value:(0,Ek.qN)(s),onClick:()=>{f(s,!0)}}),(0,eh.jsx)(c||(()=>null),{name:t,form:r,fields:n})]})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LT(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimit:d=2,disableGroupSeparators:f,autoComplete:h,prefix:p}=a,{setValue:m,onBlur:v,error:g,value:y}=Dm({form:r,field:a,name:t}),x=(0,ep.useMemo)(()=>s?new(yT())(s):u&&"boolean"!=typeof u?new(yT())(u):l&&"boolean"!=typeof l?new(yT())(l):void 0,[s,u,l]),b=(0,eh.jsx)(yR,{prefix:p,name:t,value:y,units:c,size:i,decimalsLimit:d,disableGroupSeparators:f,autoComplete:h,placeholder:x?new(yT())(x):void 0,state:g?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:e=>{m(void 0!==e?new(yT())(e):void 0,!0)},onBlur:v});return o?(0,eh.jsx)(TD,{title:a.title,name:t,form:r,wrap:!0,children:b}):b}function LN(e){let{name:t,form:r,fields:n}=e,{average:i,averageTip:o,suggestionLabel:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,after:c,units:d}=n[t],f=LA({form:r,fields:n,name:t});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(LT,{name:t,fields:n,form:r,group:!1}),i&&(0,eh.jsx)(LM,{type:"number",label:"Network average",tip:o||"Averages provided by Sia Central.",decimalsLimit:u,value:i,onClick:()=>{f(i,!0)}}),s&&l&&(0,eh.jsx)(LM,{type:"number",label:a||"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}}),(0,eh.jsx)(c||(()=>null),{name:t,form:r,fields:n})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LR(e){let{label:t,link:r,tip:n,value:i,onClick:o}=e;return(0,eh.jsxs)("div",{className:"flex justify-between gap-1 items-center overflow-hidden",children:[(0,eh.jsx)("div",{children:(0,eh.jsx)(ui,{align:"start",side:"bottom",content:n,children:(0,eh.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,eh.jsx)(r9,{className:"flex relative",children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(r9,{size:"12",children:r?(0,eh.jsx)(vZ,{href:r,target:"_blank",children:t}):t})]})})}),(0,eh.jsx)("div",{className:"overflow-hidden",children:(0,eh.jsx)(r9,{role:"button",tabIndex:0,"aria-label":t,className:"flex cursor-pointer items-center",onClick:o,size:"12",children:(0,eh.jsx)(uN,{ellipsis:!0,className:"block",children:i})})})]})}function LD(e){let{name:t,form:r,fields:n,type:i}=e,{suggestionLabel:o,suggestion:a,suggestionTip:s}=n[t],l=LA({form:r,name:t,fields:n});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(Dy,{name:t,form:r,fields:n,type:i,group:!1}),a&&s&&(0,eh.jsx)(LR,{label:o||"Suggestion",tip:s,value:a,onClick:()=>{l(a,!0)}})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LL(e){let{name:t,form:r,fields:n}=e,{suggestionLabel:i,suggestion:o,suggestionTip:a}=n[t],s=LA({form:r,name:t,fields:n});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)("div",{className:"flex justify-end w-full",children:(0,eh.jsx)(DM,{name:t,form:r,fields:n,group:!1})}),void 0!==o&&a&&(0,eh.jsx)(LR,{label:i||"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LF(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{options:s}=a,{ref:l,onChange:u,onBlur:c,error:d}=Dm({name:t,form:r,field:a}),f=(0,eh.jsx)(yz,{ref:l,name:t,size:i,state:d?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,eh.jsx)(yI,{value:e.value,children:e.label},e.value))});return o?(0,eh.jsx)(TD,{title:a.title,name:t,form:r,children:f}):f}function LZ(e){let{name:t,form:r,fields:n}=e,{suggestionLabel:i,suggestion:o,suggestionTip:a}=n[t],s=LA({form:r,name:t,fields:n});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)("div",{className:"flex justify-end w-full",children:(0,eh.jsx)(LF,{name:t,fields:n,form:r,group:!1,size:"small"})}),o&&a&&(0,eh.jsx)(LR,{label:i||"Suggestion",tip:a,value:o,onClick:()=>{s(o,!0)}})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LV(e){let{name:t,form:r,fields:n}=e,i=n[t],o=i.custom||(()=>null);return"custom"===i.type?(0,eh.jsx)(o,{form:r,name:t,fields:n}):"number"===i.type?(0,eh.jsx)(LN,{form:r,name:t,fields:n}):"siacoin"===i.type?(0,eh.jsx)(LP,{form:r,name:t,fields:n}):"text"===i.type?(0,eh.jsx)(LD,{form:r,name:t,fields:n}):"password"===i.type?(0,eh.jsx)(LD,{form:r,type:"password",fields:n,name:t}):"boolean"===i.type?(0,eh.jsx)(LL,{form:r,name:t,fields:n}):"select"===i.type?(0,eh.jsx)(LZ,{form:r,name:t,fields:n}):null}function Lz(e){let{name:t,form:r,fields:n,autoVisibility:i}=e,o=n[t],a=Dg({form:r,fields:n,name:t});return!i||a?(0,eh.jsx)(LE,{id:t,title:o.title,description:o.description,control:(0,eh.jsx)(LV,{form:r,name:t,fields:n})}):null}function LI(e){let{title:t,category:r,form:n,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,o]=e;return o.category===r&&Dg({form:n,fields:i,name:t})}).map(e=>{let[t]=e;return t});return 0===o.length?null:(0,eh.jsx)(Lj,{title:t,children:o.map(e=>(0,eh.jsx)(Lz,{name:e,form:n,fields:i},e))})}function LB(e){let{name:t,form:r,fields:n,size:i="small",currency:o,group:a=!0}=e,s=(0,yD.J)({currency:o||void 0}).rate,l=n[t],{placeholder:u,decimalsLimit:c=2,units:d}=l,{setValue:f,onBlur:h,error:p,value:m}=Dm({form:r,field:l,name:t}),v=(0,ep.useMemo)(()=>yD.mV.find(e=>e.id===o),[o]),g=r.formState.dirtyFields[t],y=(0,eh.jsxs)("div",{className:(0,tp.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",l.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",l.readOnly?"pointer-events-none":"",l.readOnly?"border-blue-400 dark:border-blue-400":p?"border-red-500 dark:border-red-400":g?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,eh.jsx)(yR,{name:t,value:m,units:"".concat((null==v?void 0:v.label)||"?").concat(d||""),prefix:null==v?void 0:v.prefix,size:i,variant:"ghost",focus:"none",readOnly:l.readOnly,decimalsLimit:(null==v?void 0:v.fixed)||c,placeholder:u?new(yT())(u):void 0,state:p?"invalid":g?"valid":"default",onChange:e=>{f(void 0!==e?new(yT())(e):void 0,!0)},onBlur:h}),s&&(0,eh.jsx)(LH,{value:m,currency:o,rate:s})]});return a?(0,eh.jsx)(TD,{title:l.title,name:t,form:r,wrap:!0,children:y}):y}function LH(e){let{value:t,rate:r}=e,n=t&&!t.isZero()&&r&&!r.isZero(),i=n?(0,Ek.qN)(t).div(r):new(yT())(0);return(0,eh.jsxs)(nr,{className:"flex gap-1 items-center justify-between relative overflow-hidden px-2 py-1.5 rounded-t-none",children:[(0,eh.jsx)(ui,{side:"bottom",content:"The pinned value's current siacoin value",children:(0,eh.jsxs)(r9,{className:"flex gap-1 relative",size:"12",children:[(0,eh.jsx)(us.oce,{}),"Current value"]})}),n?(0,eh.jsx)(P9,{value:i,size:"12",variant:"value",fixed:0,dynamicUnits:!0,hastingUnits:!1,tipSide:"bottom"}):(0,eh.jsx)(r9,{size:"12",ellipsis:!0,color:n?"contrast":"verySubtle",children:"-"})]})}function LU(e){let{name:t,form:r,fields:n,currency:i}=e,{average:o,averageTip:a,suggestionLabel:s,suggestion:l,suggestionTip:u,before:c,after:d}=n[t],f=LA({form:r,fields:n,name:t}),h=(0,yD.J)({currency:i||void 0}).rate,p=(0,ep.useMemo)(()=>o&&"boolean"!=typeof o&&h?new(yT())(o).times(h):void 0,[o,h]),m=(0,ep.useMemo)(()=>l&&"boolean"!=typeof l&&h?new(yT())(l).times(h):void 0,[l,h]);return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,eh.jsx)(c||(()=>null),{name:t,form:r,fields:n}),(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(LB,{name:t,fields:n,form:r,group:!1,currency:i}),p&&(0,eh.jsx)(LM,{type:"siacoin",label:"Network average",tip:a||"Averages provided by Sia Central.",value:p,decimalsLimit:0,onClick:()=>{f(o,!0)}}),m&&u&&(0,eh.jsx)(LM,{type:"siacoin",label:s||"Suggestion",tip:u,decimalsLimit:0,value:m,onClick:()=>{f(l,!0)}}),(0,eh.jsx)(d||(()=>null),{name:t,form:r,fields:n})]})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LW(e){let{form:t,remoteValues:r}=e,n=(0,ep.useCallback)(()=>{if(t.formState.isSubmitting||!r)return;let e=t.getValues();for(let[e,n]of Object.entries(r))t.resetField(e,{defaultValue:n,keepDirty:!0,keepError:!0,keepTouched:!0});for(let[r,n]of Object.entries(e))t.getFieldState(r).isDirty&&t.setValue(r,n)},[t,r]);(0,ep.useEffect)(()=>{n()},[r])}function L$(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,r]=e;return!!r}).length}}function Lq(e){let{form:t,remoteValues:r}=e,[n,i]=(0,ep.useState)(!1),{isUnlockedAndAuthedRoute:o}=(0,yD.Hv)();(0,ep.useEffect)(()=>{o||i(!1)},[o]),(0,ep.useEffect)(()=>{!n&&r&&(i(!0),t.reset(r))},[r])}us.lg1,us.eHR,us.I$H,us.KiD,us.P5r,us.CCF,us.w9S,us.EL$,us.aPl,us.wEY,us.EOT,us.kSc,us.W$S,us.lJ7,us.ORH,us.ka0,us.BdP,us.d19,us.Mes,us.VUg,us.U_S,us.T85;let LY=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,ep.useState)(!0),l=(0,ep.useRef)(!1),u=(0,ep.useRef)(0);return(0,ep.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,ep.createElement)(rU,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:(0,ep.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,ep.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:(0,ep.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function LG(e){let{children:t}=e,[r,n]=(0,ep.useState)(!1);return(0,ep.useEffect)(()=>{n(!0)},[]),(0,eh.jsx)("div",{children:r?t:null})}function LK(e){let{className:t,daemonExplorerInfoRoute:r,passwordProtectRequestHooks:n,fallback:i,children:o,lockRoutes:a}=e;return(0,eh.jsx)(LG,{children:(0,eh.jsx)(yD.kl,{fallback:i,children:(0,eh.jsx)(bw.f,{attribute:"class",children:(0,eh.jsx)(LY,{children:(0,eh.jsx)(yD.bW,{lockRoutes:a,daemonExplorerInfoRoute:r,passwordProtectRequestHooks:n,children:(0,eh.jsxs)("div",{id:"root",className:t,children:[(0,eh.jsx)(P0,{}),o]})})})})})})}var LX=r(83864),LJ=r(74994),LQ=LX.Z&&1/(0,LJ.Z)(new LX.Z([,-0]))[1]==1/0?function(e){return new LX.Z(e)}:function(){},L0=function(e,t,r){var n=-1,i=Lh,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=Lp;else if(o>=200){var u=t?null:LQ(e);if(u)return(0,LJ.Z)(u);a=!1,i=Lv.Z,l=new Ld.Z}else l=t?[]:s;t:for(;++n=120&&c.length>=120)?new Ld.Z(a&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,ep.useCallback)(e=>{l(t=>{var r;return(r=[...t,...e]).length?L0(r):[]})},[l]),d=(0,ep.useCallback)(e=>{l(t=>Lb(t,e))},[l]),f=(0,ep.useCallback)(()=>{l(n)},[l,n]),h=(0,ep.useMemo)(()=>r.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[r,a]),p=(0,ep.useMemo)(()=>r.filter(e=>{let t=e.fixed||s.includes(e.id),r=null==a?void 0:a.includes(e.category||"");return t&&!r}).map(e=>e.id),[r,s,a]),{sortField:m,sortDirection:v,setSortField:g,setSortDirection:y,toggleSort:x}=function(e,t){let{defaultSortField:r,sortOptions:n,enabledColumns:i}=t,[o,a]=(0,Ak.Z)("".concat(e,"/sortField"),{defaultValue:r}),[s,l]=(0,Ak.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,ep.useCallback)(e=>{if(o!==e){a(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[o,a,l]),setSortDirection:l,setSortField:a,sortableColumns:(0,ep.useMemo)(()=>n?L3(n.map(e=>e.id),i):[],[n,i]),sortField:o,sortDirection:s}}(e,{defaultSortField:i,sortOptions:o,enabledColumns:p}),b=(0,ep.useMemo)(()=>o?L3(o.map(e=>e.id),p):[],[o,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:x,setSortDirection:y,setSortField:g,sortableColumns:b,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function L8(){let[e,t]=(0,ep.useState)([]),r=function(){let e=(0,vE.xj)(),t=(0,vE.jD)(),r=(0,vE.lr)();return(0,ep.useCallback)(()=>{if(!e||!t)return;let n=new URLSearchParams(r),i=n.toString();n.delete("limit"),n.delete("offset"),n.delete("marker");let o=n.toString(),a=i?"".concat(t,"?").concat(i):t,s=o?"".concat(t,"?").concat(o):t;s!==a&&e.replace(s)},[e,r,t])}(),n=(0,ep.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),r()},[t,r]),i=(0,ep.useCallback)(()=>{t([]),r()},[t,r]),o=(0,ep.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),r()},[t,r]),a=(0,ep.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),r())},[e,t,r]);return{filters:e,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}var L7=r(1619),L9=r(71310),Fe=r(27491),Ft=function(e,t){var r={};return t=(0,Fe.Z)(t,3),(0,L9.Z)(e,function(e,n,i){(0,L7.Z)(r,n,t(e,n,i))}),r};function Fr(e){let[t,r]=(0,ep.useState)({}),n=(0,ep.useMemo)(()=>Object.keys(t),[t]),i=(0,ep.useMemo)(()=>Object.entries(t).map(e=>{let[t,r]=e;return r}).sort((e,t)=>e.index-t.index),[t]),[[o,a],s]=(0,ep.useState)([void 0,void 0]),l=(0,ep.useCallback)(()=>{s([void 0,void 0])},[]),u=(0,ep.useCallback)((e,t)=>{s([e,t])},[]),c=(0,ep.useMemo)(()=>null==e?void 0:e.map(e=>e.id).join(","),[e]);(0,ep.useEffect)(()=>{l()},[c]);let d=(0,ep.useCallback)((n,s)=>{if(!e)return;let c=e.findIndex(e=>e.id===n);if(-1===c)return;let d=e[c],f={row:d,index:c},h=!!(null==s?void 0:s.ctrlKey)||!!(null==s?void 0:s.metaKey),p=!!(null==s?void 0:s.shiftKey),m={...t};if(h){if(m[d.id]){var v,g;delete m[d.id];let e=(v=i,g=c,v.find(e=>e.index>g)||[...v].reverse().find(e=>e.indexFn({dataset:e,selectionMap:t}),[e,t]),h=(0,ep.useMemo)(()=>e?n.some(t=>!e.some(e=>e.id===t)):n.length>0,[e,n]),p=(0,ep.useMemo)(()=>!!e&&e.some(e=>t[e.id]),[e,t]),m=(0,ep.useCallback)(()=>{e&&r(t=>{let r={...t},n=Fn({dataset:e,selectionMap:t});return!1===n||"indeterminate"===n?e.forEach((e,t)=>{r[e.id]={row:e,index:t}}):e.forEach(e=>{delete r[e.id]}),r})},[e]),v=(0,ep.useCallback)(e=>{r(t=>{let r={...t};return e.forEach(e=>{delete r[e]}),r}),e.find(e=>e===(null==o?void 0:o.row.id))&&l()},[null==o?void 0:o.row.id,l]),g=(0,ep.useCallback)(()=>{r({}),l()},[l]),y=(0,ep.useMemo)(()=>n.length,[n]);return{onSelect:d,onSelectPage:m,selection:(0,ep.useMemo)(()=>Ft(t,e=>e.row),[t]),selectedIds:n,isPageAllSelected:f,selectionCount:y,someSelectedRowsOutsideCurrentPage:h,someSelectedOnCurrentPage:p,deselect:v,deselectAll:g}}function Fn(e){let{dataset:t,selectionMap:r}=e;return!!t&&(!!t.every(e=>r[e.id])||!!t.some(e=>r[e.id])&&"indeterminate")}function Fi(e){let{multiSelect:t,children:r,entityWord:n,entityWordPlural:i}=e;return t.selectionCount>0?(0,eh.jsx)(D_,{children:(0,eh.jsxs)(nr,{"aria-label":n+" multi-select menu",className:"pl-3 pr-2 py-2 min-w-[250px] flex gap-2 items-center rounded-lg light:bg-black pointer-events-auto",children:[!!t.selectionCount&&(0,eh.jsx)(r9,{size:"14",children:"".concat((0,Ek._6)(t.selectionCount,n,{plural:i})," selected").concat(t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?" on this and other pages":!t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?"":t.someSelectedRowsOutsideCurrentPage&&!t.someSelectedOnCurrentPage?" on other pages":"")}),(0,eh.jsx)("div",{className:"flex-1"}),r,(0,eh.jsx)(ua,{tip:"Deselect all",onClick:t.deselectAll,size:"small",children:(0,eh.jsx)(us.PcV,{})})]})}):(0,eh.jsx)(D_,{})}function Fo(e){return(0,Ek.B$)(e).times(4)}function Fa(e){return(0,Ek.Uz)(Fo(e))}function Fs(e){var t;return t=(0,Ek.Hz)(e),(0,Ek.il)(t).div(4).integerValue()}function Fl(e,t){let r=t.reduce((e,t)=>{let r=e.startHeight,n=e.endHeight;return t.contractHeightStartn&&(n=t.contractHeightEnd),{startHeight:r,endHeight:n}},{startHeight:e,endHeight:0});r.endHeight=Math.max(r.endHeight,e)+(0,Ek.gU)(5),r.startHeight=r.startHeight-(0,Ek.gU)(5);let n=[],i=r.startHeight;for(;i<=r.endHeight;)n.push(i),i+=(0,Ek.Nr)(1);return{allDatesMap:n.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:r}}let Fu=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Fc(e){let t=[];for(let r=0,n=e.length;r{let n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function Fp(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Fm(e,t,r){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),Fp(i)}let Fv=(e,t)=>{if(e instanceof t)return!0;let r=Object.getPrototypeOf(e);return null!==r&&(r.constructor.name===t.name||Fv(r,t))};function Fg(e,t,r){let n=window.getComputedStyle(e,r),i=n.getPropertyValue("content");if(""===i||"none"===i)return;let o=Fu();try{t.className=`${t.className} ${o}`}catch(e){return}let a=document.createElement("style");a.appendChild(function(e,t,r){let n=`.${e}:${t}`,i=r.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(r):Fc(r).map(e=>{let t=r.getPropertyValue(e),n=r.getPropertyPriority(e);return`${e}: ${t}${n?" !important":""};`}).join(" ");return document.createTextNode(`${n}{${i}}`)}(o,r,n)),t.appendChild(a)}let Fy="application/font-woff",Fx="image/jpeg",Fb={woff:Fy,woff2:Fy,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Fx,jpeg:Fx,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Fw(e){return Fb[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function Fj(e){return -1!==e.search(/^(data:)/)}function FE(e,t){return`data:${t};base64,${e}`}async function Fk(e,t,r){let n=await fetch(e,t);if(404===n.status)throw Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((e,t)=>{let o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(r({res:n,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)})}let FC={};async function FS(e,t,r){var n,i,o;let a,s;let l=(n=e,i=t,o=r.includeQueryParams,s=n.replace(/\?.*/,""),o&&(s=n),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=FC[l])return FC[l];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let n=await Fk(e,r.fetchRequestInit,({res:e,result:r})=>(t||(t=e.headers.get("Content-Type")||""),r.split(/,/)[1]));a=FE(n,t)}catch(n){a=r.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;n&&(t="string"==typeof n?n:n.message),t&&console.warn(t)}return FC[l]=a,a}async function FO(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Fh(t)}async function F_(e,t){if(e.currentSrc){let t=document.createElement("canvas"),r=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==r||r.drawImage(e,0,0,t.width,t.height),Fh(t.toDataURL())}let r=e.poster,n=Fw(r);return Fh(await FS(r,n,t))}async function FM(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await FR(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function FA(e,t){return Fv(e,HTMLCanvasElement)?FO(e):Fv(e,HTMLVideoElement)?F_(e,t):Fv(e,HTMLIFrameElement)?FM(e):e.cloneNode(!1)}let FP=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function FT(e,t,r){var n,i;let o=[];return FP(e)&&e.assignedNodes?o=Fc(e.assignedNodes()):Fv(e,HTMLIFrameElement)&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?o=Fc(e.contentDocument.body.childNodes):o=Fc((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===o.length||Fv(e,HTMLVideoElement)||await o.reduce((e,n)=>e.then(()=>FR(n,r)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function FN(e,t){let r=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===r.length)return e;let n={};for(let i=0;iFA(e,t)).then(r=>FT(e,r,t)).then(t=>{var r,n;return r=e,Fv(n=t,Element)&&(!function(e,t){let r=t.style;if(!r)return;let n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):Fc(n).forEach(i=>{let o=n.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}Fv(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(i,o,n.getPropertyPriority(i))})}(r,n),Fg(r,n,":before"),Fg(r,n,":after"),Fv(r,HTMLTextAreaElement)&&(n.innerHTML=r.value),Fv(r,HTMLInputElement)&&n.setAttribute("value",r.value),function(e,t){if(Fv(e,HTMLSelectElement)){let r=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));r&&r.setAttribute("selected","")}}(r,n)),n}).then(e=>FN(e,t)):null}let FD=/url\((['"]?)([^'"]+?)\1\)/g,FL=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,FF=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function FZ(e,t,r,n,i){try{let o;let a=r?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 r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}(t,r):t,s=Fw(t);if(i){let e=await i(a);o=FE(e,s)}else o=await FS(a,s,n);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${o}$3`)}catch(e){}return e}function FV(e){return -1!==e.search(FD)}async function Fz(e,t,r){if(!FV(e))return e;let n=function(e,{preferredFontFormat:t}){return t?e.replace(FF,e=>{for(;;){let[r,,n]=FL.exec(e)||[];if(!n)return"";if(n===t)return`src: ${r};`}}):e}(e,r);return(function(e){let t=[];return e.replace(FD,(e,r,n)=>(t.push(n),e)),t.filter(e=>!Fj(e))})(n).reduce((e,n)=>e.then(e=>FZ(e,n,t,r)),Promise.resolve(n))}async function FI(e,t,r){var n;let i=null===(n=t.style)||void 0===n?void 0:n.getPropertyValue(e);if(i){let n=await Fz(i,null,r);return t.style.setProperty(e,n,t.style.getPropertyPriority(e)),!0}return!1}async function FB(e,t){await FI("background",e,t)||await FI("background-image",e,t),await FI("mask",e,t)||await FI("mask-image",e,t)}async function FH(e,t){let r=Fv(e,HTMLImageElement);if(!(r&&!Fj(e.src))&&!(Fv(e,SVGImageElement)&&!Fj(e.href.baseVal)))return;let n=r?e.src:e.href.baseVal,i=await FS(n,Fw(n),t);await new Promise((t,n)=>{e.onload=t,e.onerror=n,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}async function FU(e,t){let r=Fc(e.childNodes).map(e=>FW(e,t));await Promise.all(r).then(()=>e)}async function FW(e,t){Fv(e,Element)&&(await FB(e,t),await FH(e,t),await FU(e,t))}let F$={};async function Fq(e){let t=F$[e];if(null!=t)return t;let r=await fetch(e);return t={url:e,cssText:await r.text()},F$[e]=t,t}async function FY(e,t){let r=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((r.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),Fk(o,t.fetchRequestInit,({result:e})=>(r=r.replace(i,`url(${e})`),[i,e]))})).then(()=>r)}function FG(e){if(null==e)return[];let t=[],r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),n=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=n.exec(r);if(null===e)break;t.push(e[0])}r=r.replace(n,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(r);if(null===e){if(null===(e=o.exec(r)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function FK(e,t){let r=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{Fc(r.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1,a=e.href,s=Fq(a).then(e=>FY(e,t)).then(e=>FG(e).forEach(e=>{try{r.insertRule(e,e.startsWith("@import")?o+=1:r.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())});n.push(s)}})}catch(o){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=r.href&&n.push(Fq(r.href).then(e=>FY(e,t)).then(e=>FG(e).forEach(e=>{i.insertRule(e,r.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{Fc(e.cssRules||[]).forEach(e=>{r.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),r))}async function FX(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let r=Fc(e.ownerDocument.styleSheets);return(await FK(r,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>FV(e.style.getPropertyValue("src")))}async function FJ(e,t){let r=await FX(e,t);return(await Promise.all(r.map(e=>{let r=e.parentStyleSheet?e.parentStyleSheet.href:null;return Fz(e.cssText,r,t)}))).join("\n")}async function FQ(e,t){let r=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await FJ(e,t);if(r){let t=document.createElement("style"),n=document.createTextNode(r);t.appendChild(n),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function F0(e,t={}){let{width:r,height:n}=Ff(e,t),i=await FR(e,t,!0);return await FQ(i,t),await FW(i,t),!function(e,t){let{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);let n=t.style;null!=n&&Object.keys(n).forEach(e=>{r[e]=n[e]})}(i,t),await Fm(i,r,n)}async function F1(e,t={}){let{width:r,height:n}=Ff(e,t),i=await F0(e,t),o=await Fh(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let r=t&&t.env?t.env.devicePixelRatio:null;return r&&Number.isNaN(e=parseInt(r,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||r,c=t.canvasHeight||n;return a.width=u*l,a.height=c*l,!t.skipAutoScale&&(a.width>16384||a.height>16384)&&(a.width>16384&&a.height>16384?a.width>a.height?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384):a.width>16384?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384)),a.style.width=`${u}`,a.style.height=`${c}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function F2(e,t={}){return(await F1(e,t)).toDataURL()}async function F4(e,t){let{name:r,quality:n,copy:i,download:o}=t;if(!e)throw Error("HTML node required");let a=await F2(e,{quality:n||.5});if(o){let e=document.createElement("a");e.download="".concat(r,".png"),e.href=a,e.click()}if(i){let e=await fetch(a);P2(await e.blob(),"image/png",r)}}async function F3(e,t){var r;let n=e.length,i=0;for(let t of(await Promise.all(e)))t.error&&i++;let o=n-i;i>0?PJ(t.toastError({totalCount:n,errorCount:i,successCount:o})):PX(t.toastSuccess({totalCount:n,errorCount:i,successCount:o})),await (null===(r=t.after)||void 0===r?void 0:r.call(t))}},63694:function(e,t,r){"use strict";r.d(t,{Z7:function(){return Z},Uy:function(){return V},gM:function(){return u},ek:function(){return l},GP:function(){return x},kr:function(){return b},nH:function(){return d},ER:function(){return s},Gp:function(){return c},KU:function(){return w},rV:function(){return j},Az:function(){return k},WT:function(){return C},E5:function(){return O},Vp:function(){return _},Te:function(){return E},Wl:function(){return h},cQ:function(){return f},cM:function(){return L},Kw:function(){return F},hV:function(){return y},ST:function(){return A},_3:function(){return D},HU:function(){return P},uq:function(){return N},G:function(){return R},Rz:function(){return T},Fn:function(){return M},Os:function(){return p},sG:function(){return m},a0:function(){return v},cj:function(){return g}});var n=r(36219),i=r(79381),o=r(79338),a=r(60381);function s(e){return(0,n.Nf)({...e,route:o.ay})}function l(e){return(0,n.Nf)({...e,route:o.KR})}function u(e){return(0,n.Nf)({...e,route:o.fw})}function c(e){return(0,n.Nf)({...e,route:o.SX})}function d(){let e=u({config:{swr:{revalidateOnFocus:!1}}});return(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.name)==="zen"?(0,a.du)():(0,a.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function f(e){return(0,n.Nf)({...e,route:o.cz})}function h(e){return(0,n.V1)({...e,route:o.cz},async e=>{e(e=>e===o.cz)})}function p(e){return(0,n.Nf)({...e,route:o.Vx})}function m(e){return(0,n.Nf)({...e,route:o.A8})}function v(e){return(0,n.Nf)({...e,route:o.l0})}function g(e){return(0,n.mw)({...e,route:o.ix},async e=>{await (0,n.gw)(2e3),e(e=>e.startsWith(o.l0))})}function y(e){return(0,n.Nf)({...e,route:o.zC})}function x(e){return(0,n.q0)({...e,route:o.mU})}function b(e){return(0,n.V1)({...e,route:o.FQ})}function w(e){return(0,n.Nf)({...e,route:o.GX})}function j(e){return(0,n.Nf)({...e,route:o.pu})}function E(e){return(0,n.E)({...e,route:o.pu},async e=>{await e(e=>e.startsWith(o.pu)||e.startsWith(o.ay))})}function k(e){return(0,n.mw)({...e,route:o.ym})}function C(e){return(0,n.I7)({...e,payload:{},route:o.EO})}let S="/settings/pinned";function O(e){return(0,n.Nf)({...e,route:S})}function _(e){return(0,n.V1)({...e,route:S},async e=>{e(e=>e.startsWith(S))})}function M(e){return(0,n.Nf)({...e,route:o.Jy})}function A(e){return(0,n.Nf)({...e,route:o.rg})}function P(e){return(0,n.mw)({...e,route:o.Jy},async e=>{e(e=>e.startsWith(o.Jy))})}function T(e){return(0,n.V1)({...e,route:o.rg},async e=>{e(e=>e.startsWith(o.Jy))})}function N(e){return(0,n.iv)({...e,route:o.rg},async e=>{e(e=>e.startsWith(o.Jy))})}function R(e){return(0,n.V1)({...e,route:o.vh},async e=>{await (0,n.gw)(1e4),e(e=>e.startsWith(o.Jy))})}function D(e){return(0,n.iv)({...e,route:o.kU},async e=>{await (0,n.gw)(3e3),e(e=>e.startsWith(o.Jy))})}function L(e){return(0,n.Nf)({...e,route:o.n8})}function F(e){return(0,n.V1)({...e,route:o.n8})}function Z(e){return(0,n.Nf)({...e,route:o.sk})}function V(e){return(0,n.mw)({...e,route:o.FS},async e=>{e(e=>e.startsWith(o.sk))})}},79338:function(e,t,r){"use strict";r.d(t,{A8:function(){return u},EO:function(){return y},FQ:function(){return p},FS:function(){return C},GX:function(){return m},Jy:function(){return x},KR:function(){return o},SX:function(){return a},Vx:function(){return l},ay:function(){return n},cz:function(){return s},fw:function(){return i},ix:function(){return d},kU:function(){return j},l0:function(){return c},mU:function(){return h},n8:function(){return E},pu:function(){return v},rg:function(){return b},sk:function(){return k},vh:function(){return w},ym:function(){return g},zC:function(){return f}});let n="/state",i="/consensus/network",o="/consensus/tipstate",a="/index/tip",s="/syncer/peers",l="/wallet",u="/wallet/events",c="/wallet/pending",d="/wallet/send",f="/tpool/fee",h="/contracts",p="/contracts/:id/integrity",m="/metrics/:interval",v="/settings",g="/settings/announce",y="/settings/ddns/update",x="/volumes",b="/volumes/:id",w="/volumes/:id/resize",j="/volumes/:id/cancel",E="/system/dir",k="/alerts",C="/alerts/dismiss"},76221:function(e,t,r){"use strict";r.d(t,{Ee:function(){return l.a},Fb:function(){return a.a},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 n=r(39097),i=r.n(n),o=r(97729),a=r.n(o),s=r(96577),l=r.n(s),u=r(82876),c=r(5632)},36219:function(e,t,r){"use strict";r.d(t,{bW:function(){return ee},kl:function(){return eu},mV:function(){return $},gw:function(){return s},Nz:function(){return el},Hv:function(){return J},iv:function(){return er},J:function(){return es},Nf:function(){return et},E:function(){return N},mw:function(){return A},q0:function(){return M},Tb:function(){return U},V1:function(){return T},I7:function(){return P}});var n={};r.r(n),r.d(n,{getGPUTier:function(){return H}});var i=r(79381);function o(e,t,r){return[e,"".concat(t).concat((null==r?void 0:r.payload)?JSON.stringify(r.payload):"")]}function a(e,t){return!e||t?null:e}function s(e){return new Promise(t=>setTimeout(t,e))}var l=r(89644),u=r.n(l),c=r(2784);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){return{...e,config:{...null==e?void 0:e.config}}}function p(e,t,r){return(null==r?void 0:r.api)||(null==t?void 0:t.api)||e.api}function m(e,t,r){var n,i;let o=function(e,t,r){var n,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(n=i.axios)||void 0===n?void 0:n.headers,...null==r?void 0:null===(a=r.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=p(e,t,r);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,r);return{responseType:"json",...null===(n=t.config)||void 0===n?void 0:n.axios,...null==r?void 0:null===(i=r.config)||void 0===i?void 0:i.axios,headers:o}}function v(e,t,r,n){let i=(null==r?void 0:r.params)||{};n&&n.params&&(i={...i,...n.params}),t=function(e,t){if(e&&t)for(let r of Object.keys(t)){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}return e}(t,i);let o=p(e,r,n);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function g(e,t,r,n){let i=p(e,r,n);return i===e.api?t[1].replace("".concat(i,"/api"),""):t[1].replace(i,"")}var y=r(52322);let x=(0,c.createContext)({}),b=()=>(0,c.useContext)(x);function w(e){let{children:t}=e,r=function(){let[e,t]=(0,c.useState)({}),r=(0,c.useCallback)((e,r)=>{t(t=>({...t,[e]:{key:e,...r}}))},[t]);return{setWorkflow:r,removeWorkflow:(0,c.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,c.useCallback)(()=>{t({})},[t]),workflows:(0,c.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,y.jsx)(x.Provider,{value:r,children:t})}var j=r(76221),E=r(92762);let k={api:"",loginWithCustomApi:!1,password:void 0,recentApis:{},autoLock:!1,autoLockTimeout:6e5},C=(0,c.createContext)({}),S=()=>(0,c.useContext)(C);function O(e){let{children:t,...r}=e,n=function(e){let{passwordProtectRequestHooks:t,lockRoutes:r,defaultSettings:n}=e,o=(0,c.useMemo)(()=>({...k,...n}),[n]),[a,s]=(0,E.Z)("v1/requestConfig",{defaultValue:o});(0,c.useEffect)(()=>{s(e=>({...o,...e}))},[]);let l=(0,c.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:u}=b(),d=(0,c.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,j.xj)(),h=(0,j.jD)(),[p,m]=(0,c.useState)({}),v=(0,c.useCallback)((e,t)=>{m(r=>({...r,[e]:t}))},[m]),g=(0,c.useCallback)(()=>{for(let[e,t]of(r&&f.push("".concat(r.login,"?prev=").concat([r.login].includes(h)?r.home:h)),d({password:""}),u(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(p)))t&&t()},[f,r,d,u,p,h]),y=function(e){let t=(0,j.jD)();return![e.login].includes(t)}({login:(null==r?void 0:r.login)||"/login"}),x=(0,c.useMemo)(()=>!!l.password,[l]);return{requestSettings:l,setRequestSettings:d,lock:g,isUnlockedAndAuthedRoute:x&&y,passwordProtectRequestHooks:t,setOnLockCallback:v}}(r);return(0,y.jsx)(C.Provider,{value:n,children:t})}function _(e,t,r,n,i,o,a){return e(e=>!!e&&"string"!=typeof e&&2===e.length&&i(g(t,e,r,n)),o||(e=>e),a)}function M(e){var t;let r=(0,c.useMemo)(()=>f(e),[e]),{requestSettings:n,passwordProtectRequestHooks:s}=S(),l=v(n,r.route,r,void 0),d=(0,c.useMemo)(()=>a(o("post",l,e),r.disabled||s&&!n.password),[l,e,r,s,n]);return(0,i.ZP)(d,async()=>{if(!r.route)throw Error("No route");let t=m(n,r,void 0);if(!l)throw Error("No route");try{return(await u().post(l,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=r.config)||void 0===t?void 0:t.swr)}function A(e,t){let{setWorkflow:r,removeWorkflow:n}=b(),{mutate:a}=(0,i.kY)(),{requestSettings:s}=S(),l=d(e);return{post:async e=>{let i=h(e);try{let c;let d=m(s,l,i),f=v(s,l.route,l,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=o("post",f,e),p=g(s,h,e,i),y=h.join("");r(y,{route:p,payload:c});let x=await u().post(f,c,d);return t&&await t(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=arguments.length>2?arguments[2]:void 0;return _(a,s,e,i,t,r,n)},i,x),n(y),{status:x.status,data:x.data,headers:x.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function P(e){var t;let r=(0,c.useMemo)(()=>f(e),[e]),{requestSettings:n,passwordProtectRequestHooks:s}=S(),l=v(n,r.route,r,void 0),d=(0,c.useMemo)(()=>a(o("put",l,e),r.disabled||s&&!n.password),[l,e,r,s,n]);return(0,i.ZP)(d,async()=>{if(!r.route)throw Error("No route");let t=m(n,r,void 0);if(!l)throw Error("No route");try{return(await u().put(l,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=r.config)||void 0===t?void 0:t.swr)}function T(e,t){let{mutate:r}=(0,i.kY)(),{requestSettings:n}=S(),{setWorkflow:a,removeWorkflow:s}=b(),l=d(e);return{put:async e=>{let i=h(e);try{let c;let d=m(n,l,i),f=v(n,l.route,l,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=o("put",f,e),p=g(n,h,e,i),y=h.join("");a(y,{route:p,payload:c});let x=await u().put(f,c,d);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return _(r,n,e,i,t,o,a)},i,x),s(y),{status:x.status,data:x.data,headers:x.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function N(e,t){let{mutate:r}=(0,i.kY)(),{requestSettings:n}=S(),{setWorkflow:a,removeWorkflow:s}=b(),l=d(e);return{patch:async e=>{let i=h(e);try{let c;let d=m(n,l,i),f=v(n,l.route,l,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=o("patch",f,e),p=g(n,h,e,i),y=h.join("");a(y,{route:p,payload:c});let x=await u().patch(f,c,d);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return _(r,n,e,i,t,o,a)},i,x),s(y),{status:x.status,data:x.data,headers:x.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function R(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}let D=["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 L(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 F="undefined"==typeof window,Z=(()=>{if(F)return;let{userAgent:e,platform:t,maxTouchPoints:r}=window.navigator,n=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&r>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||n||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class V extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let z=[],I=[];function B(e){return null!=e}let H=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:r={},glContext:n,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>R(void 0,void 0,void 0,function*(){let a={};if(F)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==Z?void 0:Z.isIpad),isMobile:l=!!(null==Z?void 0:Z.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>R(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new V("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=r,{renderer:d}=r,f=(e,t,r,n,i)=>({device:i,fps:n,gpu:r,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=L(d)];else{var m;let e=n||function(e,t=!1){let r={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete r.powerPreference;let n=window.document.createElement("canvas"),i=n.getContext("webgl",r)||n.getContext("experimental-webgl",r);return null!=i?i:void 0}(null==Z?void 0:Z.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=L(d))?function(e,t,r){let n;if(!r)return[t];let i=function(e){let t=e.createShader(35633),r=e.createShader(35632),n=e.createProgram();if(!(r&&t&&n))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(r,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(r),e.attachShader(n,t),e.attachShader(n,r),e.linkProgram(n),e.detachShader(n,t),e.detachShader(n,r),e.deleteShader(t),e.deleteShader(r),e.useProgram(n);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(n,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(n),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==Z?void 0:Z.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?n=l.filter(([,,e])=>e>=14):(n=l.filter(([,e])=>e===i)).length||(n=l),n.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return R(this,void 0,void 0,function*(){let r;let n=(e=>{for(let t of l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!n)return;let i=`${l?"m":"d"}-${n}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{r=yield o}catch(e){if(e instanceof V)throw e;return}let d=function(e){var t;let r=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==r?void 0:r.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=r.filter(([,e])=>e===d);f.length||(f=r.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,r)=>0===t||e!==r[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,r]=e,n=Math.abs(b-t*r);ne===r?t-n:e-r);if(!v.length){let e=D.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,x]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,x);let b=l?e:t,w=0;for(let e=0;e=b[e]&&(w=e);return f(w,"BENCHMARK",y,g,x)});function U(){var e,t;let r=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!r||!!r.matches}let{getGPUTier:W}=n,$=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],q={siaCentral:!0,siascan:!0,currency:$[0],currencyDisplay:"bothPreferSc"},Y=(0,c.createContext)({}),G=()=>(0,c.useContext)(Y);function K(e){let{children:t,...r}=e,n=function(e){let{daemonExplorerInfoRoute:t,defaultSettings:r}=e,n=(0,c.useMemo)(()=>({...q,...r}),[r]),[i,o]=(0,E.Z)("v1/externalData",{defaultValue:n});(0,c.useEffect)(()=>{o(e=>({...n,...e}))},[]);let a=(0,c.useMemo)(()=>({...n,...i}),[i,n]),s=(0,c.useCallback)(e=>{o(t=>({...t,...e}))},[o]),l=(0,c.useCallback)(e=>{let t=$.find(t=>t.id===e);t&&s({currency:t})},[s]);return{externalDataSettings:a,setExternalDataSettings:s,setCurrency:l,currencyOptions:$,daemonExplorer:function(e){var t;let{route:r,config:n,disabled:i}=e,o=et({disabled:!r||i,route:r||"",config:{...n,swr:{...null==n?void 0:n.swr,revalidateOnFocus:!1}}}),{url:a,enabled:s}=(null===(t=o.data)||void 0===t?void 0:t.explorer)||{},l=(0,c.useMemo)(()=>{if(a)try{let{origin:e}=new URL(a);return e}catch(e){console.error(e)}},[a]);return(0,c.useMemo)(()=>({isSupported:!!o.data,enabled:!!s&&!!l,api:l,isValidating:o.isValidating,isLoading:o.isLoading}),[s,l,o.isValidating,o.isLoading,o.data])}({route:t})}}(r);return(0,y.jsx)(Y.Provider,{value:n,children:t})}let X=(0,c.createContext)({}),J=()=>(0,c.useContext)(X);function Q(e){let{children:t}=e,r=function(){let{requestSettings:e,setRequestSettings:t,lock:r,isUnlockedAndAuthedRoute:n,setOnLockCallback:i}=S(),{externalDataSettings:o,setExternalDataSettings:a,setCurrency:s,currencyOptions:l,daemonExplorer:u}=G(),d=function(){let e=U(),[t,r]=(0,c.useState)(!1),[n,i]=(0,c.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,E.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,c.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(r=>({...r,isGpuEnabled:e,hasUserSet:t}))},[s]),u=(0,c.useCallback)(async()=>{let e=!1;{let t=await W();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&l(!1,!1)}i(e),r(!0)},[i,l,a]);return(0,c.useEffect)(()=>{u()},[]),{hasCheckedGpu:t,canGpuRender:n,isGpuEnabled:o,shouldRender:n&&o,setCanGpuRender:i,setIsGpuEnabled:l}}();return{settings:(0,c.useMemo)(()=>({...e,...o}),[e,o]),requestSettings:e,externalDataSettings:o,setRequestSettings:t,setExternalDataSettings:a,siascan:o.siascan,siaCentral:o.siaCentral,gpu:d,lock:r,isUnlockedAndAuthedRoute:n,setOnLockCallback:i,setCurrency:s,currencyOptions:l,daemonExplorer:u}}();return(0,y.jsx)(X.Provider,{value:r,children:t})}function ee(e){let{children:t,...r}=e;return(0,y.jsx)(O,{...r,children:(0,y.jsx)(K,{...r,children:(0,y.jsx)(Q,{...r,children:t})})})}function et(e){var t;let r=(0,c.useMemo)(()=>f(e),[e]),{requestSettings:n,passwordProtectRequestHooks:s}=S(),l=v(n,r.route,r,void 0);return(0,i.ZP)(a(o("get",l),r.disabled||s&&!n.password),async()=>{if(!r.route)throw Error("No route");let e=m(n,r,void 0);if(!l)throw Error("No route");try{return(await u().get(l,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=r.config)||void 0===t?void 0:t.swr)}function er(e,t){let{mutate:r}=(0,i.kY)(),{requestSettings:n}=S(),{setWorkflow:a,removeWorkflow:s}=b(),l=d(e);return{delete:async e=>{let i=h(e);try{let c=m(n,l,i),d=v(n,l.route,l,i);if(!d)throw Error("No route");let f=o("delete",d),h=g(n,f,e,i),p=f.join("");a(p,{route:h});let y=await u().delete(d,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return _(r,n,e,i,t,o,a)},i,y),s(p),{status:y.status,data:y.data,headers:y.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}var en=r(6391),ei=r.n(en),eo=r(60381);let ea={revalidateOnFocus:!1,refreshInterval:(0,eo.sW)(5),dedupingInterval:(0,eo.sW)(5)};function es(e){let{currency:t,config:r,disabled:n}=e,{daemonExplorer:i}=J(),o=function(e){let{currency:t,config:r,disabled:n}=e,{daemonExplorer:{enabled:i,api:o},currencyOptions:a}=J(),s=et({params:{currency:t},disabled:!i||n||!t,api:o,route:"/exchange-rate/siacoin/:currency",config:{...r,swr:{...ea,...null==r?void 0:r.swr}}});return(0,c.useMemo)(()=>({rate:s.data?new(ei())(s.data):void 0,error:s.error,isValidating:s.isValidating,isLoading:s.isLoading,currency:a.find(e=>e.id===t)}),[s.data,s.error,s.isValidating,s.isLoading,a,t])}({currency:t,config:r,disabled:!i.enabled||n}),a=function(e){let{currency:t,config:r,disabled:n}=e,{settings:i,currencyOptions:o}=J(),a=et({params:{currency:t},api:"https://api.siascan.com",route:"/exchange-rate/siacoin/:currency",config:{...r,swr:{...ea,...null==r?void 0:r.swr}},disabled:!i.siascan||!t||n});return(0,c.useMemo)(()=>({rate:a.data?new(ei())(a.data):void 0,error:a.error,isValidating:a.isValidating,isLoading:a.isLoading,currency:o.find(e=>e.id===t)}),[a.data,a.error,a.isValidating,a.isLoading,o,t])}({currency:t,config:r,disabled:i.enabled||n});return i.enabled?o:a}function el(){let{config:e,disabled:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{settings:r}=J();return es({currency:r.currency.id,config:e,disabled:t})}function eu(e){let{fallback:t,cacheProvider:r,children:n}=e;return(0,y.jsx)(w,{children:(0,y.jsx)(i.J$,{value:{fallback:t||{},provider:r},children:n})})}},35138:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{RVU:function(){return tX},eHR:function(){return t5},xHM:function(){return t6},IRm:function(){return t8},L6f:function(){return t7},rW0:function(){return t9},osk:function(){return re},JaG:function(){return rt},wWN:function(){return iI},Dkj:function(){return iX},cfm:function(){return rn},YV2:function(){return rd},EMN:function(){return rf},bdU:function(){return rh},VUy:function(){return rp},Cp0:function(){return rm},Mes:function(){return rv},oce:function(){return rg},DI$:function(){return rx},NlZ:function(){return rP},Y3p:function(){return rN},Z$8:function(){return rT},tEK:function(){return rD},yar:function(){return rR},cRw:function(){return rL},MR9:function(){return rF},PcV:function(){return rV},QN4:function(){return rZ},Jsc:function(){return rI},T80:function(){return rz},wEY:function(){return rW},olJ:function(){return rq},vtB:function(){return r$},KiD:function(){return rK},dDl:function(){return rX},Jrl:function(){return r0},aPl:function(){return r1},kBK:function(){return iq},Bpb:function(){return r3},vzB:function(){return r5},dr6:function(){return r9},d19:function(){return ne},w9S:function(){return nt},VBo:function(){return iB},Hb6:function(){return ni},CCF:function(){return no},Qbr:function(){return nu},L37:function(){return nc},ROc:function(){return iG},UG6:function(){return iY},lq1:function(){return nd},zvn:function(){return iH},K2o:function(){return i$},EL$:function(){return nh},BdP:function(){return nx},dsj:function(){return nb},P5r:function(){return nw},RdX:function(){return nj},U_S:function(){return nE},V8Q:function(){return nO},POp:function(){return n_},kSc:function(){return nM},mBM:function(){return iW},Lur:function(){return nN},b47:function(){return nR},Sfn:function(){return nD},W$S:function(){return nB},T85:function(){return nH},Ckx:function(){return nU},dZ8:function(){return nq},EOT:function(){return n$},fDA:function(){return nW},RK4:function(){return nG},jH8:function(){return n0},XJM:function(){return n1},RRj:function(){return n2},ka0:function(){return n4},hzZ:function(){return n5},VUg:function(){return ie},owP:function(){return it},Fs9:function(){return ir},wGX:function(){return ii},Wet:function(){return il},BB5:function(){return iu},ZEk:function(){return ic},$Iz:function(){return im},shL:function(){return iv},hiv:function(){return ig},eOF:function(){return iw},mli:function(){return ib},lJ7:function(){return iK},ORH:function(){return ik},VmF:function(){return iC},xVB:function(){return iP},pHg:function(){return iT},I$H:function(){return iN},oaN:function(){return iU},qdM:function(){return iD},gFQ:function(){return iR},SmH:function(){return iZ},lg1:function(){return iV}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,j,E,k,C,S,O,_,M,A,P,T,N,R,D,L,F,Z,V,z,I,B,H,U,W,$,q,Y,G,K,X,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eC,eS,eO,e_,eM,eA,eP,eT,eN,eR,eD,eL,eF,eZ,eV,ez,eI,eB,eH,eU,eW,e$,eq,eY,eG,eK,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tr,tn,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tx,tb,tw,tj,tE,tk,tC,tS,tO,t_,tM,tA,tP,tT,tN,tR,tD,tL,tF=["width","height","viewBox"],tZ=["tabindex"],tV={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tz=r(13980),tI=r.n(tz),tB=r(2784);function tH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tU(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tq=["className","children","tabIndex"],tY=["tabindex"],tG=tB.forwardRef(function(e,t){var r=e.className,n=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,s=o(e,tF),l=s.tabindex,u=o(s,tZ),c=i(i(i({},tV),u),{},{width:t,height:r,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tU(tU({},t$(e,tq)),{},{tabindex:a})),l=s.tabindex,u=t$(s,tY);return r&&(u.className=r),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tB.createElement("svg",u,n)});tG.displayName="Icon",tG.propTypes={"aria-hidden":tI().string,"aria-label":tI().string,"aria-labelledby":tI().string,children:tI().node,className:tI().string,height:tI().oneOfType([tI().number,tI().string]),preserveAspectRatio:tI().string,tabIndex:tI().string,viewBox:tI().string,width:tI().oneOfType([tI().number,tI().string]),xmlns:tI().string},tG.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tK=["children"],tX=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,tK);return tB.createElement(tG,tW({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=tB.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),r)}),tJ=["children"],tQ=["children"],t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,tJ);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=tB.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tB.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),r)}),t6=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,tQ);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),u||(u=tB.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),r)}),t8=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,t0);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=tB.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),r)}),t7=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,t1);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),d||(d=tB.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"})),r)}),t9=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,t2);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=tB.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),r)}),re=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,t4);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),h||(h=tB.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),r)}),rt=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,t3);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),p||(p=tB.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tB.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tB.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tB.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tB.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=tB.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tB.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tB.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),j||(j=tB.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),r)}),rr=["children"],rn=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rr);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),E||(E=tB.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),r)}),ri=["children"],ro=["children"],ra=["children"],rs=["children"],rl=["children"],ru=["children"],rc=["children"],rd=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ri);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),k||(k=tB.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),r)}),rf=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ro);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),C||(C=tB.createElement("path",{d:"M24 12L16 22 8 12z"})),r)}),rh=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ra);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),S||(S=tB.createElement("path",{d:"M20 24L10 16 20 8z"})),r)}),rp=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rs);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),O||(O=tB.createElement("path",{d:"M12 8L22 16 12 24z"})),r)}),rm=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rl);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),_||(_=tB.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),r)}),rv=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ru);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),M||(M=tB.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),r)}),rg=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rc);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),A||(A=tB.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"})),r)}),ry=["children"],rx=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ry);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),P||(P=tB.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"})),T||(T=tB.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"})),r)}),rb=["children"],rw=["children"],rj=["children"],rE=["children"],rk=["children"],rC=["children"],rS=["children"],rO=["children"],r_=["children"],rM=["children"],rA=["children"],rP=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rb);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),N||(N=tB.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),r)}),rT=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rw);return tB.createElement(tG,tW({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),R||(R=tB.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tB.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),r)}),rN=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rj);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),L||(L=tB.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=tB.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),r)}),rR=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rE);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Z||(Z=tB.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),V||(V=tB.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),rD=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rk);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),z||(z=tB.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),I||(I=tB.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),rL=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rC);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),B||(B=tB.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r)}),rF=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rS);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),H||(H=tB.createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),r)}),rZ=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rO);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),U||(U=tB.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}),rV=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,r_);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),W||(W=tB.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}),rz=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rM);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),$||($=tB.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"})),q||(q=tB.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),rI=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rA);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Y||(Y=tB.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"})),G||(G=tB.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),rB=["children"],rH=["children"],rU=["children"],rW=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rB);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),K||(K=tB.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"})),X||(X=tB.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),r)}),r$=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rH);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),J||(J=tB.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),Q||(Q=tB.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),rq=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rU);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ee||(ee=tB.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"})),et||(et=tB.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),rY=["children"],rG=["children"],rK=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rY);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),er||(er=tB.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"})),en||(en=tB.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),r)}),rX=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rG);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ei||(ei=tB.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),eo||(eo=tB.createElement("circle",{cx:"11",cy:"8",r:"1"})),ea||(ea=tB.createElement("circle",{cx:"11",cy:"16",r:"1"})),es||(es=tB.createElement("circle",{cx:"11",cy:"24",r:"1"})),el||(el=tB.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),r)}),rJ=["children"],rQ=["children"],r0=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rJ);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eu||(eu=tB.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),ec||(ec=tB.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),r)}),r1=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,rQ);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ed||(ed=tB.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ef||(ef=tB.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),r)}),r2=["children"],r4=["children"],r3=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,r2);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eh||(eh=tB.createElement("circle",{cx:"16",cy:"16",r:"8"})),r)}),r5=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,r4);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ep||(ep=tB.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"})),r)}),r6=["children"],r8=["children"],r7=["children"],r9=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,r6);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),em||(em=tB.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),r)}),ne=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,r8);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ev||(ev=tB.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"})),eg||(eg=tB.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ey||(ey=tB.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),r)}),nt=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,r7);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ex||(ex=tB.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),r)}),nr=["children"],nn=["children"],ni=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nr);return tB.createElement(tG,tW({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eb||(eb=tB.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),r)}),no=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nn);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ew||(ew=tB.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),r)}),na=["children"],ns=["children"],nl=["children"],nu=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,na);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ej||(ej=tB.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"})),r)}),nc=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ns);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eE||(eE=tB.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"})),ek||(ek=tB.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"})),r)}),nd=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nl);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eC||(eC=tB.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"})),eS||(eS=tB.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),r)}),nf=["children"],nh=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nf);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eO||(eO=tB.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),r)}),np=["children"],nm=["children"],nv=["children"],ng=["children"],ny=["children"],nx=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,np);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e_||(e_=tB.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),r)}),nb=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nm);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eM||(eM=tB.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),r)}),nw=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nv);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eA||(eA=tB.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),r)}),nj=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ng);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eP||(eP=tB.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"})),eT||(eT=tB.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),r)}),nE=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ny);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eN||(eN=tB.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),r)}),nk=["children"],nC=["children"],nS=["children"],nO=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nk);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eR||(eR=tB.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"})),eD||(eD=tB.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),r)}),n_=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nC);return tB.createElement(tG,tW({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eL||(eL=tB.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"})),eF||(eF=tB.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),r)}),nM=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nS);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eZ||(eZ=tB.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),r)}),nA=["children"],nP=["children"],nT=["children"],nN=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nA);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eV||(eV=tB.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),r)}),nR=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nP);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ez||(ez=tB.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"})),eI||(eI=tB.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),r)}),nD=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nT);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eB||(eB=tB.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),r)}),nL=["children"],nF=["children"],nZ=["children"],nV=["children"],nz=["children"],nI=["children"],nB=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nL);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eH||(eH=tB.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"})),eU||(eU=tB.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),r)}),nH=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nF);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eW||(eW=tB.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),r)}),nU=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nZ);return tB.createElement(tG,tW({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e$||(e$=tB.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"})),eq||(eq=tB.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),nW=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nV);return tB.createElement(tG,tW({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eY||(eY=tB.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"})),eG||(eG=tB.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),n$=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nz);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eK||(eK=tB.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"})),eX||(eX=tB.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),nq=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nI);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eJ||(eJ=tB.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"})),eQ||(eQ=tB.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),nY=["children"],nG=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nY);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e0||(e0=tB.createElement("circle",{cx:"21",cy:"26",r:"2"})),e1||(e1=tB.createElement("circle",{cx:"21",cy:"6",r:"2"})),e2||(e2=tB.createElement("circle",{cx:"4",cy:"16",r:"2"})),e4||(e4=tB.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),r)}),nK=["children"],nX=["children"],nJ=["children"],nQ=["children"],n0=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nK);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e3||(e3=tB.createElement("circle",{cx:"8",cy:"16",r:"2"})),e5||(e5=tB.createElement("circle",{cx:"16",cy:"16",r:"2"})),e6||(e6=tB.createElement("circle",{cx:"24",cy:"16",r:"2"})),r)}),n1=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nX);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e8||(e8=tB.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),r)}),n2=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nJ);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e7||(e7=tB.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),r)}),n4=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,nQ);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e9||(e9=tB.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"})),te||(te=tB.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),n3=["children"],n5=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,n3);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tt||(tt=tB.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),tr||(tr=tB.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"})),r)}),n6=["children"],n8=["children"],n7=["children"],n9=["children"],ie=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,n6);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tn||(tn=tB.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"})),ti||(ti=tB.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),r)}),it=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,n8);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),to||(to=tB.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),ta||(ta=tB.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"})),ts||(ts=tB.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"})),r)}),ir=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,n7);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tl||(tl=tB.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),ii=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,n9);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tu||(tu=tB.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tc||(tc=tB.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),r)}),io=["children"],ia=["children"],is=["children"],il=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,io);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),td||(td=tB.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)}),iu=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ia);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tf||(tf=tB.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),r)}),ic=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,is);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),th||(th=tB.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"})),r)}),id=["children"],ih=["children"],ip=["children"],im=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,id);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tp||(tp=tB.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),r)}),iv=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ih);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tm||(tm=tB.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"})),tv||(tv=tB.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),r)}),ig=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ip);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tg||(tg=tB.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),r)}),iy=["children"],ix=["children"],ib=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iy);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ty||(ty=tB.createElement("path",{d:"M8 15H24V17H8z"})),r)}),iw=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ix);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tx||(tx=tB.createElement("path",{d:"M8 15H24V17H8z"})),r)}),ij=["children"],iE=["children"],ik=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,ij);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tb||(tb=tB.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),r)}),iC=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iE);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tw||(tw=tB.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),r)}),iS=["children"],iO=["children"],i_=["children"],iM=["children"],iA=["children"],iP=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iS);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tj||(tj=tB.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"})),tE||(tE=tB.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),r)}),iT=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iO);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tk||(tk=tB.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tC||(tC=tB.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),r)}),iN=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,i_);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tS||(tS=tB.createElement("path",{d:"M22 17H24V19H22z"})),tO||(tO=tB.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),r)}),iR=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iM);return tB.createElement(tG,tW({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),t_||(t_=tB.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"})),tM||(tM=tB.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),r)}),iD=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iA);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tA||(tA=tB.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"})),tP||(tP=tB.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),r)}),iL=["children"],iF=["children"],iZ=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iL);return tB.createElement(tG,tW({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tT||(tT=tB.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"})),tN||(tN=tB.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"})),r)}),iV=tB.forwardRef(function(e,t){var r=e.children,n=t$(e,iF);return tB.createElement(tG,tW({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tR||(tR=tB.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"})),tD||(tD=tB.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"})),tL||(tL=tB.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),r)}),iz=r(52322);function iI(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iz.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 iB(e){let{size:t=24,className:r}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:r,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iz.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 iH(e){let{size:t=24,className:r}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:r,children:(0,iz.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 iU(e){let{size:t=24,className:r}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:r,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iz.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 iW(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iz.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 i$(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,iz.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function iq(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iz.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 iY(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iz.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 iG(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iz.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 iK(e){let{size:t=24}=e;return(0,iz.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,iz.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iz.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,iz.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,iz.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,iz.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iX(e){let{size:t=24}=e;return(0,iz.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iz.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"})})}},60381:function(e,t,r){"use strict";r.d(t,{Hz:function(){return u},Y:function(){return d},B$:function(){return a},xf:function(){return s},jr:function(){return T},pp:function(){return A},E6:function(){return P},Uz:function(){return l},BT:function(){return c},il:function(){return o},Jz:function(){return z},Nr:function(){return S},gU:function(){return _},mj:function(){return Y},Lg:function(){return $},Lu:function(){return G},uF:function(){return W},jH:function(){return q},uV:function(){return U},jF:function(){return B},hR:function(){return Z},hq:function(){return F},uC:function(){return V},Tc:function(){return N},du:function(){return R},pX:function(){return L},yt:function(){return C},vW:function(){return g},rN:function(){return b},yF:function(){return x},Vz:function(){return v},bc:function(){return y},At:function(){return E},sW:function(){return k},S5:function(){return M},_6:function(){return K},XB:function(){return O},qN:function(){return p},ll:function(){return h}});var n=r(6391),i=r.n(n);function o(e){return new(i())(e).div(1048576)}function a(e){return new(i())(e).times(1048576)}function s(e){return new(i())(e).times(1e12)}function l(e){return new(i())(e).div(1e9)}function u(e){return new(i())(e).times(1e9)}function c(e){return new(i())(e).div(1e6)}function d(e){return new(i())(e).times(1e6)}n.BigNumber.config({EXPONENTIAL_AT:1e9}),n.BigNumber.config({DECIMAL_PLACES:30});let f=new n.BigNumber("10").exponentiatedBy(24);function h(e,t){return void 0!==t?new n.BigNumber(new n.BigNumber(e).dividedBy(f).toFixed(t)):new n.BigNumber(e).dividedBy(f)}function p(e){return new n.BigNumber(new n.BigNumber(e).times(f).toFixed(0))}let m={fixed:3,dynamicUnits:!0,hastingUnits:!1};function v(e,t){let{fixed:r,dynamicUnits:i,hastingUnits:o}={...m,...t},a=new n.BigNumber(1e12),s=new n.BigNumber(1e3),l=new n.BigNumber(e),u=new n.BigNumber(e).abs(),c=l.isNegative()?"-":"";if(!i)return"".concat(c).concat(h(u).toFormat(r)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(c).concat(u," H"):"".concat(c,"0 SC");let d=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new n.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===d.length-1)return"".concat(c).concat(i.toFormat(r)," ").concat(d[e])}return""}function g(e,t){let r="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:n=2}=t||{};if(!r)return"0 B";if(r<1e3)return"".concat(r," B");let o=Math.floor(Math.log10(r)/Math.log10(1e3));return(r/Math.pow(1e3,o)).toFixed(n)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function y(e,t){let{format:r="abbreviated"}=t||{},n="abbreviated"===r;if(e<1e3)return"".concat(e.toFixed(0)).concat(n?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(n?"s":" seconds");let o=i/60;if(o<60)return"".concat(o.toFixed(0)).concat(n?"m":" minutes");let a=o/60;return a<24?"".concat(a.toFixed(0)).concat(n?"h":" hours"):"".concat((a/24).toFixed(0)).concat(n?"d":" days")}function x(e,t){let{fixed:r=0,units:n="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(r)).concat(t[i]?" ".concat(t[i]):"").concat(n?" ".concat(n):"")}return"".concat(a.toFormat(r)).concat(n?" ".concat(n):"")}function b(e,t){let r;return r=navigator.language,new Intl.DateTimeFormat(r,{dateStyle:"short",...t}).format(new Date(e))}var w=r(81395),j=r(22814);function E(e){return 76===e.length&&function(e){var t;let r=function(e){let t=[];for(let r=0;r0?"storageProof":r.fileContracts&&r.fileContracts.length>0&&r.fileContractRevisions&&r.fileContractRevisions.length>0?"contractRenewal":r.fileContractRevisions&&r.fileContractRevisions.length>0?"contractRevision":r.fileContracts&&r.fileContracts.length>0?"contractFormation":r.arbitraryData&&r.arbitraryData.length>0&&0===atob(r.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":r.siafundOutputs&&r.siafundOutputs.length>0?"siafund":r.siacoinOutputs&&r.siacoinOutputs.length>0?"siacoin":"unknown"}return"v2Transaction"===t?function(e){var t;if(e.fileContractResolutions&&e.fileContractResolutions.length>0)return({expiration:"contractExpiration",finalization:"contractFinalization",renewal:"contractRenewal","storage proof":"storageProof"})[e.fileContractResolutions[0].resolution.type];if(e.fileContractRevisions&&e.fileContractRevisions.length>0)return"contractRevision";if(e.fileContracts&&e.fileContracts.length>0)return"contractFormation";let r=null===(t=e.attestations)||void 0===t?void 0:t.filter(e=>"HostAnnouncement"===e.key);return r&&r.length>0?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":"unknown"}(e.data):"v1ContractResolution"===t||"v2ContractResolution"===t?"contractPayout":"miner"===t?"minerPayout":"foundation"===t?"foundationSubsidy":t}function z(e){return"v2Transaction"===e.type?(e.data.siacoinOutputs||[]).reduce((t,r)=>e.relevant.includes(r.address)?t.plus(r.value):t,new(i())(0)).minus((e.data.siacoinInputs||[]).reduce((t,r)=>e.relevant.includes(r.parent.siacoinOutput.address)?t.plus(r.parent.siacoinOutput.value):t,new(i())(0))):"v1Transaction"===e.type?(e.data.transaction.siacoinOutputs||[]).reduce((t,r)=>e.relevant.includes(r.address)?t.plus(r.value):t,new(i())(0)).minus((e.data.spentSiacoinElements||[]).reduce((t,r)=>e.relevant.includes(r.siacoinOutput.address)?t.plus(r.siacoinOutput.value):t,new(i())(0))):new(i())(e.data.siacoinElement.siacoinOutput.value)}let I={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function B(e){return e?I[e]:void 0}let H={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 U(e){return e?H[e]:void 0}function W(e){return e&&["ip","hostIp"].includes(e)?20:12}function $(e){return e&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(e)}function q(e,t,r){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(r);case"contract":return"".concat(e,"/contract/").concat(r);case"transaction":return"".concat(e,"/tx/").concat(r);case"address":return"".concat(e,"/address/").concat(r);case"block":return"".concat(e,"/block/").concat(r);default:return""}}function Y(e,t){return"".concat(null==e?void 0:e.slice(0,t)).concat(((null==e?void 0:e.length)||0)>t?"...":"")}function G(e,t,r){if("blockHash"===e){let e=r/2;return t.slice(0,Math.floor(e))+"..."+t.slice(t.length-Math.ceil(e))}return Y(t,r)}function K(e,t,r){let n="1 ".concat(t),i="".concat(t,"s"),o="";"string"==typeof r&&(i=r),"object"==typeof r&&(r.plural&&(i=r.plural),r.customZero&&(o=r.customZero));let a="".concat(e.toLocaleString()," ").concat(i);return 0===e?o||a:1===e?n:a}},4895:function(e,t,r){"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},49435:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(4895);function i(e){(0,n.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))}},74669:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(80465).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)},4437:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=r(74669);("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)},80465:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new 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)},42642:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=r(2784),i=r(47640),o=r(30154),a=r(30454),s=r(70166),l=r(32374),u=r(33843);function c(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,n.useContext)(o.PathnameContext)}function f(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,n.useContext)(o.PathParamsContext)}function p(e){void 0===e&&(e="children");let t=(0,n.useContext)(i.LayoutRouterContext);return t?function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,a.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,r,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=p(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===s.DEFAULT_SEGMENT_KEY?null: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)},32374:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return a},RedirectType:function(){return n.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=r(23825),i=r(17356);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("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)},17356:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return i},notFound:function(){return n}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19228:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.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)},23825:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return c}});let o=r(98512),a=r(4437),s=r(19228),l="NEXT_REDIRECT";function u(e,t,r){void 0===r&&(r=s.RedirectStatusCode.TemporaryRedirect);let n=Error(l);n.digest=l+";"+t+";"+e+";"+r+";";let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function c(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in s.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=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12516:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(80465).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)},98512:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=r(12516);function i(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("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)},30454:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19745:function(e,t){"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return h}});let a="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("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)},12394:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(14079),("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)},22657:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let n=r(43219),i=r(16794),o=r(52322),a=i._(r(2784)),s=n._(r(28316)),l=n._(r(68792)),u=r(25123),c=r(96648),d=r(41897);r(71388);let f=r(24698),h=n._(r(59553)),p={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 m(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:g,fill:y,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:j,sizesInput:E,onLoad:k,onError:C,...S}=e;return(0,o.jsx)("img",{...S,...v(f),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&m(e,h,x,b,w,g,E))},[r,h,x,b,w,C,g,E,t]),onLoad:e=>{m(e.currentTarget,h,x,b,w,g,E)},onError:e=>{j(!0),"empty"!==h&&w(!0),C&&C(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let x=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=p||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let v=(0,a.useRef)(l);(0,a.useEffect)(()=>{v.current=l},[l]);let[x,b]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),{props:E,meta:k}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:x,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{...E,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:b,setShowAltText:j,sizesInput:e.sizes,ref:t}),k.priority?(0,o.jsx)(y,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(43219),i=r(52322),o=n._(r(2784)),a=r(40706),s=r(90345),l=r(8985),u=r(70286),c=r(95549),d=r(24698),f=r(47640),h=r(34407),p=r(12394),m=r(70558),v=r(19745),g=new Set;function y(e,t,r,n,i,o){if(o||(0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:w=null,passHref:j,replace:E,shallow:k,scroll:C,locale:S,onClick:O,onMouseEnter:_,onTouchStart:M,legacyBehavior:A=!1,...P}=e;r=b,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let T=o.default.useContext(d.RouterContext),N=o.default.useContext(f.AppRouterContext),R=null!=T?T:N,D=!T,L=!1!==w,F=null===w?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:Z,as:V}=o.default.useMemo(()=>{if(!T){let e=x(l);return{href:e,as:g?x(g):e}}let[e,t]=(0,a.resolveHref)(T,l,!0);return{href:e,as:g?(0,a.resolveHref)(T,g):t||e}},[T,l,g]),z=o.default.useRef(Z),I=o.default.useRef(V);A&&(n=o.default.Children.only(r));let B=A?n&&"object"==typeof n&&n.ref:t,[H,U,W]=(0,h.useIntersection)({rootMargin:"200px"}),$=o.default.useCallback(e=>{(I.current!==V||z.current!==Z)&&(W(),I.current=V,z.current=Z),H(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[V,B,Z,W,H]);o.default.useEffect(()=>{R&&U&&L&&y(R,Z,V,{locale:S},{kind:F},D)},[V,Z,U,S,L,null==T?void 0:T.locale,R,D,F]);let q={ref:$,onClick(e){A||"function"!=typeof O||O(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,i,a,l,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,s.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};c?o.default.startTransition(f):f()}(e,R,Z,V,E,k,C,S,D)},onMouseEnter(e){A||"function"!=typeof _||_(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(L||!D)&&y(R,Z,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:F},D)},onTouchStart:function(e){A||"function"!=typeof M||M(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(L||!D)&&y(R,Z,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:F},D)}};if((0,u.isAbsoluteUrl)(V))q.href=V;else if(!A||j||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(V,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(V,e,null==T?void 0:T.defaultLocale))}return A?o.default.cloneElement(n,q):(0,i.jsx)("a",{...P,...q,children: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)},34407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(2784),i=r(41346),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.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)},25123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(71388);let n=r(74999),i=r(96648);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:x=!1,style:b,overrideSrc:w,onLoad:j,onLoadingComplete:E,placeholder:k="empty",blurDataURL:C,fetchPriority:S,layout:O,objectFit:_,objectPosition:M,lazyBoundary:A,lazyRoot:P,...T}=e,{imgConf:N,showAltText:R,blurComplete:D,defaultLoader:L}=t,F=N||i.imageConfigDefault;if("allSizes"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let Z=T.loader||L;delete T.loader,delete T.srcSet;let V="__next_img_default"in Z;if(V){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=Z;Z=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!d&&(d=t)}let z="",I=a(g),B=a(y);if("object"==typeof(r=c)&&(o(r)||void 0!==r.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,z=e.src,!x){if(I||B){if(I&&!B){let t=I/e.width;B=Math.round(e.height*t)}else if(!I&&B){let t=B/e.height;I=Math.round(e.width*t)}}else I=e.width,B=e.height}}let H=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,H=!1),s.unoptimized&&(f=!0),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let U=a(v),W=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:M}:{},R?{}:{color:"transparent"},b),$=D||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:I,heightInt:B,blurWidth:l,blurHeight:u,blurDataURL:C||"",objectFit:W.objectFit})+'")':'url("'+k+'")',q=$?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:$}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:I,quality:U,sizes:d,loader:Z});return{props:{...T,loading:H?"lazy":p,fetchPriority:S,width:I,height:B,decoding:"async",className:m,style:{...W,...q},sizes:Y.sizes,srcSet:Y.srcSet,src:w||Y.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:x}}}},74999:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},5329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(43219),i=r(25123),o=r(22657),a=n._(r(59553));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},59553:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},33843:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(16794)._(r(2784)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},21962:function(){},17282:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},29773: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,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(r)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,r){for(var n=0,i=t.length,o=e;n>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,r){var n=r(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&(n>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[n][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,n,s-l)&&(u=!u),this.modules[n][s-l]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,n)},l.createBytes=function(e,t){for(var r=0,n=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case a.PATTERN000:return(t+r)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return r%3==0;case a.PATTERN011:return(t+r)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case a.PATTERN101:return t*r%2+t*r%3==0;case a.PATTERN110:return(t*r%2+t*r%3)%2==0;case a.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(var n=0;n=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",n({},s,{height:r,width:r,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,n({},f,{size:s}),p.map(function(e,n){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(n*m),s=Math.round((i+1)*m)-o,c=Math.round((n+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+n+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?r:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},95346:function(e,t,r){"use strict";r.d(t,{Av:function(){return a},pF:function(){return n},xv:function(){return o},zi:function(){return i}});var n="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},181:function(e,t,r){"use strict";r.d(t,{jp:function(){return m}});var n=r(2784),i=r(33225),o=r(95346),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(r),s(n),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=l(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},c=(0,i.Ws)(),d="data-scroll-locked",f=function(e,t,r,n){var i=e.left,a=e.top,s=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(o.xv," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.pF," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.zi," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.pF," .").concat(o.pF," {\n right: 0 ").concat(n,";\n }\n \n .").concat(o.zi," .").concat(o.zi," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(d,"] {\n ").concat(o.Av,": ").concat(l,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},p=function(){n.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;p();var a=n.useMemo(function(){return u(o)},[o]);return n.createElement(c,{styles:f(a,!t,o,r?"":"!important")})}},33225:function(e,t,r){"use strict";r.d(t,{Ws:function(){return s}});var n,i=r(2784),o=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=o();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},s=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},32718:function(e,t,r){var n,i=r(58085),o=r(41964),a=r(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,o,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,o="",a=t;n=s.exec(a);){n[0].index>0&&(o+=a.substring(0,n[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",r);o+=l.pre+u,a=l.post}return o+a}(r,l));if(c.length>1||r.indexOf("var(")>-1)return o+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=r.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+r+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},41964:function(e,t,r){var n=r(82294);e.exports=function e(t,r,i){return(function(e,t){var r=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=n("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,o){var a,s;return n.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,r,i),s,t)))},t)}},6692:function(e,t,r){let n=r(83128);e.exports=(n.__esModule?n:{default:n}).default},83128:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(n=r(37540))&&n.__esModule?n:{default:n};function o({version:e,from:t,to:r}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,r){"use strict";var n,i=r(93542);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:()=>l,default:()=>u});let o=(n=r(24470))&&n.__esModule?n:{default:n},a=new Set;function s(e,t,r){(void 0===i||!i.env.JEST_WORKER_ID)&&(r&&a.has(r)||(r&&a.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var r=e.length,n=Array(r),i={},o=r,a=function(e){for(var t=new Map,r=0,n=e.length;r{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,r=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,n.useRef)({item:null,parsed:t}),d=(0,n.useSyncExternalStore)((0,n.useCallback)(t=>{let r=r=>{e===r&&t()};return o.add(r),()=>{o.delete(r)}},[e]),()=>{var r;let n=null!==(r=s(()=>localStorage.getItem(e)))&&void 0!==r?r:null;if(i.has(e))c.current={item:n,parsed:i.get(e)};else if(n!==c.current.item){let e;try{e=null===n?t:l(n)}catch(r){e=t}c.current={item:n,parsed:e}}return c.current.parsed},()=>t),f=(0,n.useCallback)(t=>{let r=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(r)),i.delete(e)}catch(t){i.set(e,r)}a(e)},[e,u]);return(0,n.useEffect)(()=>{if(!r)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,r]),(0,n.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,r,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},57758:function(e,t,r){"use strict";r.d(t,{L:function(){return a}});var n=r(22970),i=r(2784),o=function(e){var t=e.sideCar,r=(0,n._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,(0,n.pi)({},r))};function a(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},64597:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});var n=r(22970);function i(e){return e}function o(e){void 0===e&&(e={});var t,r,o,a=(void 0===t&&(t=i),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var n=t(e,o);return r.push(n),function(){r=r.filter(function(e){return e!==n})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return a.options=(0,n.pi)({async:!0,ssr:!1},e),a}},20452:function(e,t,r){"use strict";var n=r(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},43100:function(e,t,r){"use strict";e.exports=r(20452)},24511:function(e,t,r){"use strict";r.d(t,{Rx:function(){return X},Ry:function(){return ey},Z_:function(){return Y}});try{y=Map}catch(e){}try{x=Set}catch(e){}function n(e){return function e(t,r,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(n);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){r.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=r.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],r,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return s.call(e).replace(l,"Symbol($1)");let n=i.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+o.call(e)+"]":"RegExp"===n?a.call(e):null}function c(e,t){let r=u(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=u(this[e],t);return null!==n?n:r},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:r,originalValue:n})=>{let i=null!=n&&n!==r,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(r,!0)}\``+(i?` (cast from the value \`${c(n,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},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}"},v={noUnknown:"${path} field has unspecified keys: ${unknown}"},g={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:v,array:g,boolean:m});var y,x,b=r(93352),w=r.n(b),j=e=>e&&e.__isYupSchema__;class E{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:r,then:n,otherwise:i}=t,o="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),a=o(...e)?n:i;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!j(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}}function k(e){return null==e?[]:[].concat(e)}function C(){return(C=Object.assign||function(e){for(var t=1;tc(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],k(e).forEach(e=>{O.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,O)}}let _=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function M(e,t){let{endEarly:r,tests:n,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=n.length,d=[];if(a=a||[],!c)return a.length?u(new O(a,o,l)):u(null,o);for(let e=0;e=0||(i[r]=e[r]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return R.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=P()(D({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),r=new O(O.formatError(e.message||p,t),i,t.path,e.type||d);return r.params=t,r}let x=D({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{O.isError(e)?r(e):e?r(null,e):r(y())}).catch(r)}catch(e){r(e)}return}try{var b;if(n=f.call(x,i,x),"function"==typeof(null==(b=n)?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){r(e);return}O.isError(n)?r(n):n?r(null,n):r(y())}return t.OPTIONS=e,t}R.prototype.__isYupRef=!0;let F=e=>e.substr(0,e.length-1).substr(1);class Z{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,r)=>t.concat(R.isRef(r)?e(r):r),[])}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 Z;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function V(){return(V=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=V({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=V({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=n(V({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=V({},this.spec,t.spec);return t.spec=r,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let r=this.resolve(V({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let i=c(e),o=c(n);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". +`,PY=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=Pk(r);return ep.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(r=>{let o=r.position||t,a=P$(o,l.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return ep.createElement(PW,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?Pq:"",style:a},"custom"===r.type?Ps(r.message,r):i?i(r):ep.createElement(PU,{toast:r,position:o}))}))};function PG(e){let{icon:t,title:r,body:n,toastId:i}=e;return(0,eh.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,eh.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,eh.jsx)(r9,{className:"flex items-center",color:"subtle",children:t}),(0,eh.jsx)(ui,{content:r,children:(0,eh.jsx)(r9,{ellipsis:!0,className:"flex-1",children:r})}),(0,eh.jsx)("div",{className:"flex items-center pl-1",children:(0,eh.jsx)(ua,{icon:"hover",size:"none",onClick:e=>{Pw.dismiss(i)},children:(0,eh.jsx)(us.PcV,{})})})]}),n&&(0,eh.jsx)("div",{className:"pb-1",children:(0,eh.jsx)(fC,{children:(0,eh.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,eh.jsx)(r9,{color:"subtle",size:"14",children:n})})})})]})}let PK=e=>{let{title:t,body:r,icon:n,options:i={}}=e;Pw(e=>(0,eh.jsx)(PG,{toastId:e.id,title:t,body:r,icon:n}),PQ(i))};function PX(e){let{title:t,body:r,options:n}=e;PK({title:t,body:r,icon:(0,eh.jsx)(us.yar,{className:"text-green-600"}),options:n})}function PJ(e){let{title:t,body:r,options:n}=e;PK({title:t,body:r,icon:(0,eh.jsx)(us.T80,{className:"text-red-600"}),options:n})}function PQ(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,tp.cx)(nt(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,eh.jsx)("div",{className:"!flex-none w-5",children:(0,eh.jsx)(us.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,eh.jsx)("div",{className:"!flex-none w-5",children:(0,eh.jsx)(us.Jsc,{className:"w-5 text-red-600"})})},...t}}function P0(){return(0,eh.jsx)(PY,{toastOptions:PQ(),containerStyle:{zIndex:20}})}let P1=(e,t)=>{PK({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,eh.jsx)(us.vtB,{})}),AK(()=>AF?(AA("Using `navigator.clipboard.writeText()`."),AF(e).catch(AX)):AV.resolve(AX(e)))},P2=(e,t,r)=>{var n;PK({title:r?"Copied ".concat(r," to clipboard"):"Copied to clipboard",icon:(0,eh.jsx)(us.vtB,{})}),n=[new ClipboardItem({[t]:e})],AK(()=>AL&&AZ?(AA("Using `navigator.clipboard.write()`."),AV.all(n.map(AQ)).then(e=>AL(e).then(AY).catch(e=>{if(!AJ(n,AM)&&!AJ(n,"text/html"))throw e;return AG}))):AG).then(e=>{var t;return e?Aq:(AJ(n,AM)||AA("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."),A$((t=n[0]).types,function(e){return t.getType(e).then(e=>new AV((t,r)=>{var n=new FileReader;n.addEventListener("load",()=>{var e=n.result;"string"==typeof e?t(e):r("could not convert blob to string")}),n.readAsText(e)}))}).then(e=>{if(!AW(e))throw Error("write() failed")}))})};function P4(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e?t&&e.length>t?"".concat(e.slice(0,t)).concat(r?"...":""):"".concat(e.slice(0,t)):""}function P3(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"").replace(/^bid:/,"")}function P5(e,t,r){return t?"".concat(e," ").concat(P4(t,r)):"".concat(e)}function P6(e){let{testId:t,value:r,displayValue:n,type:i,label:o,href:a,maxLength:s,size:l,scaleSize:u,weight:c,font:d,color:f="contrast",className:h,siascanUrl:p,contextMenu:m}=e,v=o||(0,Ek.uV)(i),g=s||(0,Ek.uF)(i),y=P3(r),x=n||i&&(0,Ek.Lu)(i,y,g)||(0,Ek.mj)(y,g);return(0,eh.jsxs)("div",{"data-testid":t,className:(0,tp.cx)("flex items-center",h),children:[a?(0,eh.jsx)(vZ,{href:a,underline:"hover",size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:x}):(0,eh.jsx)(r9,{size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:x}),(0,eh.jsx)("div",{className:"ml-1 flex items-center",children:m||(0,eh.jsx)(P8,{cleanValue:y,label:v,size:l,siascanUrl:p,type:i})})]})}function P8(e){let{size:t,cleanValue:r,label:n,siascanUrl:i,type:o}=e;return(0,eh.jsxs)(vx,{trigger:(0,eh.jsx)(ua,{size:"none",variant:"ghost",children:(0,eh.jsx)(us.EMN,{className:"10"===t?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,eh.jsxs)(vb,{onSelect:e=>{P1(r,n)},onClick:e=>{e.stopPropagation()},children:[(0,eh.jsx)(vj,{children:(0,eh.jsx)(us.olJ,{})}),"Copy to clipboard"]}),i&&o&&(0,Ek.Lg)(o)&&(0,eh.jsx)(vZ,{target:"_blank",href:(0,Ek.jH)(i,o,r),className:"block w-full",underline:"none",children:(0,eh.jsxs)(vb,{onClick:e=>{e.stopPropagation()},children:[(0,eh.jsx)(vj,{children:(0,eh.jsx)(us.V8Q,{})}),"View on Siascan"]})})]})}function P7(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change"}=e,a=(0,Ek.yF)(String(t),{units:"SF"});return(0,eh.jsx)(ui,{content:(i?"".concat(i," "):"")+a,children:(0,eh.jsxs)(r9,{size:r,scaleSize:n,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function P9(e){let{testId:t,value:r,size:n,scaleSize:i,tooltip:o="",tipSide:a,font:s="mono",variant:l="change",color:u,fixed:c=3,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0}=e,m=r.isGreaterThan(0)?"+":r.isLessThan(0)?"-":"",v=u||("change"===l?r.isGreaterThan(0)?"green":r.isLessThan(0)?"red":"subtle":"contrast"),g=(0,eh.jsxs)(r9,{"data-testid":t,size:n,scaleSize:i,weight:"medium",font:s,ellipsis:!0,color:v,children:["change"===l?"".concat(m).concat((0,Ek.Vz)(r.absoluteValue(),{fixed:c,dynamicUnits:d})):(0,Ek.Vz)(r,{fixed:c,dynamicUnits:d,hastingUnits:f}),h||""]});return p?(0,eh.jsx)(ui,{content:(o?"".concat(o," "):"")+(0,Ek.Vz)(r,{fixed:16,dynamicUnits:!1}),side:a,children:g}):g}function Te(e){let{sc:t,size:r,scaleSize:n,color:i,tooltip:o="",variant:a="change",fixed:s,font:l="mono",fixedTip:u=20,showTooltip:c=!0,tipSide:d,extendedSuffix:f}=e,{rate:h,currency:p}=(0,yD.Nz)(),m=t.isZero()?"":t.isGreaterThan(0)&&"change"===a?"+":t.isLessThan(0)?"-":"",v=i||("change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast");if(!h||!p)return null;let g=h.times(t).div(1e24),y=void 0!==s?s:p.fixed,x=(0,eh.jsx)(r9,{size:r,scaleSize:n,weight:"medium",font:l,ellipsis:!0,color:v,children:"".concat(m).concat(p.prefix).concat(Tt(g.absoluteValue(),y)).concat(f||"")});return c?(0,eh.jsx)(ui,{side:d,content:(o?"".concat(o," "):"")+"".concat(m).concat(p.prefix).concat(Tt(g.absoluteValue(),u)).concat(f||""),children:x}):x}function Tt(e,t){let[r,n]=e.toFixed(t).split("."),i=new Intl.NumberFormat().format(parseInt(r));return n?"".concat(i).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(n):i}function Tr(e){let{value:t,size:r,scaleSize:n,tooltip:i="",variant:o="change",fixed:a=3,fixedFiat:s,fixedTipFiat:l,font:u="mono",tipSide:c,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0,displayBoth:m=!1,displayBothDirection:v="column"}=e,{settings:{currencyDisplay:g}}=(0,yD.Hv)(),{rate:y}=(0,yD.Nz)(),x=(0,ep.useMemo)(()=>(0,eh.jsx)(P9,{value:t,size:r,color:m&&"row"===v&&"bothPreferFiat"===g?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:a,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,r,n,i,o,a,u,d,f,h,p,c,g,m,v]),b=(0,ep.useMemo)(()=>(0,eh.jsx)(Te,{sc:t,size:r,color:m&&"row"===v&&"bothPreferSc"===g?"subtle":void 0,scaleSize:n,tooltip:i,variant:o,fixed:s,fixedTip:l,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,r,n,i,o,u,s,l,d,f,h,p,c,g,m,v]);return"sc"!==g&&y?"fiat"===g?b:"bothPreferSc"===g?m?(0,eh.jsxs)("div",{className:"column"===v?"flex flex-col items-end":"flex gap-1",children:[x,b]}):x:"bothPreferFiat"===g?m?(0,eh.jsxs)("div",{className:"column"===v?"flex flex-col items-end":"flex gap-1",children:[b,x]}):b:x:x}function Tn(e){let{value:t,size:r="14",weight:n="semibold",tooltip:i="",tipSide:o,variant:a="change",color:s,format:l}=e,u=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",c="change"===a?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,eh.jsx)(ui,{side:o,content:(i?"".concat(i," "):"")+l(t),children:(0,eh.jsx)(r9,{size:r,weight:n,font:"mono",ellipsis:!0,color:s||c,children:"change"===a?"".concat(u).concat(l(t.absoluteValue())):l(t)})})}var Ti=r(84712),To=1/0,Ta=function(e){var t,r=(t=e)?(t=jE(t))===To||t===-To?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,n=r%1;return r==r?n?r-n:r:0},Ts=Math.min,Tl=function(e,t){if((e=Ta(e))<1||e>9007199254740991)return[];var r,n=4294967295,i=Ts(e,4294967295);t="function"==typeof(r=t)?r:Ay.Z,e-=4294967295;for(var o=(0,Ti.Z)(i,t);++n(0,eh.jsxs)("div",{className:(0,tp.cx)("relative flex gap-4 p-3.5",(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,eh.jsx)(yH,{className:"w-[60px] h-[50px]"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,eh.jsx)(yH,{className:"w-[90%] h-[20px]"}),(0,eh.jsx)(yH,{className:"w-[140px] h-[14px]"})]})]},e))})}var Tc=r(49435),Td=r(4895);function Tf(e,t){(0,Td.Z)(2,arguments);var r=(0,Tc.Z)(e),n=(0,Tc.Z)(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var Th={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},Tp={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 Tm(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Tv={date:Tm({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tm({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:Tm({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Tg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ty(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function Tx(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r0?"in "+n:n+" ago":n},formatLong:Tv,formatRelative:function(e,t,r,n){return Tg[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ty({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ty({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:Ty({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:Ty({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:Ty({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:(M={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(M.matchPattern);if(!r)return null;var n=r[0],i=e.match(M.parsePattern);if(!i)return null;var o=M.valueCallback?M.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:Tx({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:Tx({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:Tx({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:Tx({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:Tx({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tw(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Tj=r(90821),TE=r(59866),Tk=r(51075),TC=r(16601),TS=function(e){e=(0,TC.Z)(e);var t=(0,TE.Z)(e)?(0,Tk.Z)(e):void 0,r=t?t[0]:e.charAt(0),n=t?(0,Tj.Z)(t,1).join(""):e.slice(1);return r.toUpperCase()+n};function TO(e){let{type:t,label:r,initials:n,href:i,src:o,shape:a}=e,s=(0,eh.jsx)(u_,{interactive:!!i,fallback:n||t&&(t||r||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,eh.jsx)(vZ,{href:i,underline:"none","data-testid":"entity-link",children:s})||s;return t?(0,eh.jsx)(ui,{content:r||(0,Ek.jF)(t),children:(0,eh.jsx)("div",{className:"",children:l})}):l}function T_(e){let{label:t,type:r,avatar:n,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,eh.jsxs)("div",{className:(0,tp.cx)("flex gap-4 p-4",(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,eh.jsx)(TO,{label:t,type:r,shape:i,src:n,initials:o||(r||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function TM(e){let t=e.sc,r=e.sf,n=e.hash&&(0,eh.jsx)(P6,{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,Ek.pX)(e.txType)||(0,Ek.jF)(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?TS(i):i;return(0,eh.jsx)(T_,{...e,children:(0,eh.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,eh.jsx)(r9,{color:"subtle",weight:"semibold",children:(0,eh.jsx)(vZ,{href:e.blockHref,underline:"none",children:(0,Ek.yF)(e.height)})}),o?(0,eh.jsx)(ui,{content:o,children:(0,eh.jsx)(r9,{ellipsis:!0,weight:"medium",children:o})}):(0,eh.jsx)(r9,{ellipsis:!0,weight:"medium",children:n})]}),(0,eh.jsx)("div",{className:"flex-1"}),(0,eh.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,eh.jsx)(Tr,{variant:e.scVariant,value:t}),!!r&&(0,eh.jsx)(P7,{variant:e.sfVariant,value:r})]})]}),(0,eh.jsxs)("div",{className:"flex justify-between w-full",children:[(0,eh.jsx)("div",{className:"flex gap-1",children:!!o&&n}),(0,eh.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(r9,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,eh.jsx)(r9,{color:"verySubtle",children:(0,eh.jsx)(us.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,eh.jsx)(r9,{color:"subtle",children:function(e,t){var r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,Td.Z)(2,arguments);var a=o.locale||Tb;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=Tf(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(r=(0,Tc.Z)(t),n=(0,Tc.Z)(e)):(r=(0,Tc.Z)(e),n=(0,Tc.Z)(t));var u=function(e,t,r){(0,Td.Z)(2,arguments);var n,i=function(e,t){return(0,Td.Z)(2,arguments),(0,Tc.Z)(e).getTime()-(0,Tc.Z)(t).getTime()}(e,t)/1e3;return((n=null==r?void 0:r.roundingMethod)?Th[n]:Th.trunc)(i)}(n,r),c=Math.round((u-(Tw(n)-Tw(r))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440)return a.formatDistance("aboutXHours",Math.round(c/60),l);if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200)return a.formatDistance("xDays",Math.round(c/1440),l);if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,Td.Z)(2,arguments);var r,n=(0,Tc.Z)(e),i=(0,Tc.Z)(t),o=Tf(n,i),a=Math.abs(function(e,t){(0,Td.Z)(2,arguments);var r=(0,Tc.Z)(e),n=(0,Tc.Z)(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,i));if(a<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Tf(n,i)===-o;(function(e){(0,Td.Z)(1,arguments);var t=(0,Tc.Z)(e);return(function(e){(0,Td.Z)(1,arguments);var t=(0,Tc.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,Td.Z)(1,arguments);var t=(0,Tc.Z)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,Tc.Z)(e))&&1===a&&1===Tf(e,i)&&(s=!1),r=o*(a-Number(s))}return 0===r?0:r}(n,r))<12)return a.formatDistance("xMonths",Math.round(c/43200),l);var d=i%12,f=Math.floor(i/12);return d<3?a.formatDistance("aboutXYears",f,l):d<9?a.formatDistance("overXYears",f,l):a.formatDistance("almostXYears",f+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function TA(e){let{title:t,actions:r,dataset:n,isLoading:i,emptyState:o,emptyMessage:a,skeletonCount:s=10,children:l}=e,u=t||r,c="emptyState";return!i||(null==n?void 0:n.length)||l||(c="skeleton"),((null==n?void 0:n.length)||l)&&(c="currentData"),(0,eh.jsx)(nr,{children:(0,eh.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,eh.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,eh.jsx)(vS,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,eh.jsx)("div",{className:"flex-1"}),r]}),(0,eh.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(o||(0,eh.jsx)("div",{className:(0,tp.cx)("flex items-center justify-center h-[84px]",(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,eh.jsx)(r9,{size:"18",color:"subtle",children:a||"No results"})})),"currentData"===c&&(l||(null==n?void 0:n.map((e,t)=>(0,eh.jsx)(TM,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,eh.jsx)(Tu,{skeletonCount:s})]})]})})}function TP(e){let{label:t,entityType:r,entityValue:n,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:v}=e,g=(0,eh.jsx)(r9,{color:"subtle",size:"12",className:"h-6",children:f});return(0,eh.jsx)(nr,{children:(0,eh.jsx)("div",{className:(0,tp.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",v?"cursor-pointer":""),onClick:v,children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,eh.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,eh.jsx)(r9,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?TS(t):t}),i]}),(0,eh.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,eh.jsx)(yH,{className:"h-12 w-[150px]"}):(0,eh.jsxs)(eh.Fragment,{children:[void 0!==u&&(0,eh.jsx)(Tr,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,eh.jsx)(P7,{scaleSize:p,variant:"value",value:d}),r&&(n?(0,eh.jsx)(P6,{scaleSize:p,label:(0,Ek.jF)(r),href:o,value:n,displayValue:"block"===r&&n?Number(n).toLocaleString():n,className:"relative top-0.5"}):(0,eh.jsx)(r9,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,eh.jsx)(P6,{scaleSize:p,label:"hash",value:l}),void 0!==a&&(0,eh.jsx)(r9,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:a})]}),g?(0,eh.jsx)("div",{className:"mt-1",children:m?(0,eh.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,eh.jsx)(yH,{className:"h-4 w-[100px]"})}):h?(0,eh.jsx)(ui,{content:h,children:g}):g}):null]})]})})})}function TT(e){let{title:t,actions:r,name:n}=e;return(0,eh.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,eh.jsx)(vD,{htmlFor:n,noWrap:!0,children:t}):null,r]})}function TN(e){var t;let{form:r,name:n}=e,i=r.formState.errors[n],o=null===(t=r.formState.errors[n])||void 0===t?void 0:t.message;return i?(0,eh.jsx)(r9,{size:"14",color:"red",children:o}):null}function TR(e){let{form:t,title:r,actions:n,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return r||s?(0,eh.jsxs)("div",{className:(0,tp.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,eh.jsx)(TT,{name:i,title:r,actions:n}),(0,eh.jsx)(TN,{form:t,name:i})]}):null}function TD(e){let{children:t,...r}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,eh.jsx)(TR,{...r}),t]})}function TL(e){let{form:t,size:r="medium",variant:n="accent",className:i,children:o}=e;return(0,eh.jsx)(ua,{className:i,size:r,variant:n,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,eh.jsx)(AS,{}):o})}function TF(e){let{formik:t,title:r,name:n,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,eh.jsx)(TB,{formik:t,title:r,name:n,children:"number"===g?(0,eh.jsx)(TV,{formik:t,name:n,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,eh.jsx)(Tz,{formik:t,name:n,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,eh.jsx)(TZ,{formik:t,name:n,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function TZ(e){let{formik:t,name:r,placeholder:n,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,eh.jsx)(yo,{id:r,name:r,autoComplete:i,disabled:o,spellCheck:l,placeholder:n,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[r]||"",...c})}function TV(e){let{formik:t,name:r,units:n,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,eh.jsx)(yR,{id:r,units:n,name:r,placeholder:new(yT())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(r,e),value:t.values[r],...d})}function Tz(e){let{formik:t,name:r,disabled:n,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,eh.jsx)(yL,{id:r,name:r,disabled:n,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(r),sc:new(yT())(t.values[r]),placeholder:new(yT())(a),onChange:e=>t.setFieldValue(r,null==e?void 0:e.toString()),...c})}function TI(e){var t,r;let{formik:n,title:i,name:o,withStatusError:a=!1,className:s}=e,l=n.errors[o]&&n.touched[o]||a&&(null===(t=n.status)||void 0===t?void 0:t.error),u=n.errors[o]||a&&(null===(r=n.status)||void 0===r?void 0:r.error);return(i||l)&&(0,eh.jsxs)("div",{className:(0,tp.cx)("flex justify-between items-center gap-4",s),children:[i?(0,eh.jsx)(vD,{htmlFor:o,children:i}):(0,eh.jsx)("div",{}),l&&(0,eh.jsx)(r9,{size:"14",color:"red",children:u})]})}function TB(e){let{children:t,...r}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,eh.jsx)(TI,{...r}),t]})}function TH(e){var t;let{formik:r,size:n="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,eh.jsxs)(eh.Fragment,{children:[o&&(null===(t=r.status)||void 0===t?void 0:t.error)&&(0,eh.jsx)(r9,{color:"red",children:r.status.error}),(0,eh.jsx)(ua,{size:n,variant:i,state:r.isSubmitting?"waiting":void 0,type:"submit",children:r.isSubmitting?(0,eh.jsx)(AS,{}):a})]})}let TU="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function TW(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function T$(e){return"nodeType"in e}function Tq(e){var t,r;return e?TW(e)?e:T$(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function TY(e){let{Document:t}=Tq(e);return e instanceof t}function TG(e){return!TW(e)&&e instanceof Tq(e).HTMLElement}function TK(e){return e instanceof Tq(e).SVGElement}function TX(e){return e?TW(e)?e.document:T$(e)?TY(e)?e:TG(e)||TK(e)?e.ownerDocument:document:document:document}let TJ=TU?ep.useLayoutEffect:ep.useEffect;function TQ(e){let t=(0,ep.useRef)(e);return TJ(()=>{t.current=e}),(0,ep.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n{r.current!==e&&(r.current=e)},t),r}function T1(e,t){let r=(0,ep.useRef)();return(0,ep.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function T2(e){let t=TQ(e),r=(0,ep.useRef)(null),n=(0,ep.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,n]}function T4(e){let t=(0,ep.useRef)();return(0,ep.useEffect)(()=>{t.current=e},[e]),t.current}let T3={};function T5(e,t){return(0,ep.useMemo)(()=>{if(t)return t;let r=null==T3[e]?0:T3[e]+1;return T3[e]=r,e+"-"+r},[e,t])}function T6(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let T8=T6(1),T7=T6(-1);function T9(e){if(!e)return!1;let{KeyboardEvent:t}=Tq(e.target);return t&&e instanceof t}function Ne(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=Tq(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let Nt=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Nt.Translate.toString(e),Nt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),Nr="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",Nn={display:"none"};function Ni(e){let{id:t,value:r}=e;return ep.createElement("div",{id:t,style:Nn},r)}function No(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return ep.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":n,"aria-atomic":!0},r)}let Na=(0,ep.createContext)(null),Ns={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 "},Nl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Nu(e){let{announcements:t=Nl,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=Ns}=e,{announce:o,announcement:a}=function(){let[e,t]=(0,ep.useState)("");return{announce:(0,ep.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=T5("DndLiveRegion"),[l,u]=(0,ep.useState)(!1);if((0,ep.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,ep.useContext)(Na);(0,ep.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,ep.useMemo)(()=>({onDragStart(e){let{active:r}=e;o(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&o(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;o(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;o(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;o(t.onDragCancel({active:r,over:n}))}}),[o,t])),!l)return null;let c=ep.createElement(ep.Fragment,null,ep.createElement(Ni,{id:n,value:i.draggable}),ep.createElement(No,{id:s,announcement:a}));return r?(0,ek.createPortal)(c,r):c}function Nc(){}function Nd(e,t){return(0,ep.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(A=er||(er={})).DragStart="dragStart",A.DragMove="dragMove",A.DragEnd="dragEnd",A.DragCancel="dragCancel",A.DragOver="dragOver",A.RegisterDroppable="registerDroppable",A.SetDroppableDisabled="setDroppableDisabled",A.UnregisterDroppable="unregisterDroppable";let Nf=Object.freeze({x:0,y:0});function Nh(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}let Np=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,o=r.get(n);if(o){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(n0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(Nh)};function Nm(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Nf}let Nv=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n({...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 Ng(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 Ny={ignoreTransform:!1};function Nx(e,t){void 0===t&&(t=Ny);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=Tq(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=Ng(t);if(!n)return e;let{scaleX:i,scaleY:o,x:a,y:s}=n,l=e.left-a-(1-i)*parseFloat(r),u=e.top-s-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}(r,t,n))}let{top:n,left:i,width:o,height:a,bottom:s,right:l}=r;return{top:n,left:i,width:o,height:a,bottom:s,right:l}}function Nb(e){return Nx(e,{ignoreTransform:!0})}function Nw(e,t){let r=[];return e?function n(i){var o;if(null!=t&&r.length>=t||!i)return r;if(TY(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!TG(i)||TK(i)||r.includes(i))return r;let a=Tq(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=Tq(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(i,a)&&r.push(i),void 0===(o=a)&&(o=Tq(i).getComputedStyle(i)),"fixed"===o.position)?r:n(i.parentNode)}(e):r}function Nj(e){let[t]=Nw(e,1);return null!=t?t:null}function NE(e){return TU&&e?TW(e)?e:T$(e)?TY(e)||e===TX(e).scrollingElement?window:TG(e)?e:null:null:null}function Nk(e){return TW(e)?e.scrollX:e.scrollLeft}function NC(e){return TW(e)?e.scrollY:e.scrollTop}function NS(e){return{x:Nk(e),y:NC(e)}}function NO(e){return!!TU&&!!e&&e===document.scrollingElement}function N_(e){let t={x:0,y:0},r=NO(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y;return{isTop:i,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}(P=en||(en={}))[P.Forward=1]="Forward",P[P.Backward=-1]="Backward";let NM={x:.2,y:.2};function NA(e){return e.reduce((e,t)=>T8(e,NS(t)),Nf)}function NP(e,t){if(void 0===t&&(t=Nx),!e)return;let{top:r,left:n,bottom:i,right:o}=t(e);Nj(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let NT=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Nk(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+NC(t),0)}]];class NN{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 r=Nw(t),n=NA(r);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,NT))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(r),a=n[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class NR{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,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function ND(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function NL(e){e.preventDefault()}function NF(e){e.stopPropagation()}(T=ei||(ei={})).Click="click",T.DragStart="dragstart",T.Keydown="keydown",T.ContextMenu="contextmenu",T.Resize="resize",T.SelectionChange="selectionchange",T.VisibilityChange="visibilitychange",(N=eo||(eo={})).Space="Space",N.Down="ArrowDown",N.Right="ArrowRight",N.Left="ArrowLeft",N.Up="ArrowUp",N.Esc="Escape",N.Enter="Enter";let NZ={start:[eo.Space,eo.Enter],cancel:[eo.Esc],end:[eo.Space,eo.Enter]},NV=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case eo.Right:return{...r,x:r.x+25};case eo.Left:return{...r,x:r.x-25};case eo.Down:return{...r,y:r.y+25};case eo.Up:return{...r,y:r.y-25}}};class Nz{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 NR(TX(t)),this.windowListeners=new NR(Tq(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ei.Resize,this.handleCancel),this.windowListeners.add(ei.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ei.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&NP(r),t(Nf)}handleKeyDown(e){if(T9(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=NZ,coordinateGetter:o=NV,scrollBehavior:a="smooth"}=n,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=r.current,u=l?{x:l.left,y:l.top}:Nf;this.referenceCoordinates||(this.referenceCoordinates=u);let c=o(e,{active:t,context:r.current,currentCoordinates:u});if(c){let t=T7(c,u),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=N_(r),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:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),p={x:Math.min(i===eo.Right?h.right-h.width/2:h.right,Math.max(i===eo.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===eo.Down?h.bottom-h.height/2:h.bottom,Math.max(i===eo.Down?h.top:h.top+h.height/2,c.y))},m=i===eo.Right&&!s||i===eo.Left&&!l,v=i===eo.Down&&!u||i===eo.Up&&!o;if(m&&p.x!==c.x){let e=r.scrollLeft+t.x,o=i===eo.Right&&e<=d.x||i===eo.Left&&e>=f.x;if(o&&!t.y){r.scrollTo({left:e,behavior:a});return}o?n.x=r.scrollLeft-e:n.x=i===eo.Right?r.scrollLeft-d.x:r.scrollLeft-f.x,n.x&&r.scrollBy({left:-n.x,behavior:a});break}if(v&&p.y!==c.y){let e=r.scrollTop+t.y,o=i===eo.Down&&e<=d.y||i===eo.Up&&e>=f.y;if(o&&!t.x){r.scrollTo({top:e,behavior:a});return}o?n.y=r.scrollTop-e:n.y=i===eo.Down?r.scrollTop-d.y:r.scrollTop-f.y,n.y&&r.scrollBy({top:-n.y,behavior:a});break}}this.handleMove(e,T8(T7(c,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(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 NI(e){return!!(e&&"distance"in e)}function NB(e){return!!(e&&"delay"in e)}Nz.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=NZ,onActivation:i}=t,{active:o}=r,{code:a}=e.nativeEvent;if(n.start.includes(a)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class NH{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=Tq(e);return e instanceof t?e:TX(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:o}=i;this.props=e,this.events=t,this.document=TX(o),this.documentListeners=new NR(this.document),this.listeners=new NR(r),this.windowListeners=new NR(Tq(o)),this.initialCoordinates=null!=(n=Ne(i))?n:Nf,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:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ei.Resize,this.handleCancel),this.windowListeners.add(ei.DragStart,NL),this.windowListeners.add(ei.VisibilityChange,this.handleCancel),this.windowListeners.add(ei.ContextMenu,NL),this.documentListeners.add(ei.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(NB(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(NI(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(ei.Click,NF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ei.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!n)return;let s=null!=(t=Ne(e))?t:Nf,l=T7(n,s);if(!r&&a){if(NI(a)){if(null!=a.tolerance&&ND(l,a.tolerance))return this.handleCancel();if(ND(l,a.distance))return this.handleStart()}return NB(a)&&ND(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===eo.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let NU={move:{name:"pointermove"},end:{name:"pointerup"}};class NW extends NH{constructor(e){let{event:t}=e;super(e,NU,TX(t.target))}}NW.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let N$={move:{name:"mousemove"},end:{name:"mouseup"}};(R=ea||(ea={}))[R.RightClick=2]="RightClick";class Nq extends NH{constructor(e){super(e,N$,TX(e.event.target))}}Nq.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==ea.RightClick&&(null==n||n({event:r}),!0)}}];let NY={move:{name:"touchmove"},end:{name:"touchend"}};class NG extends NH{constructor(e){super(e,NY)}static setup(){return window.addEventListener(NY.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(NY.move.name,e)};function e(){}}}NG.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],(D=es||(es={}))[D.Pointer=0]="Pointer",D[D.DraggableRect=1]="DraggableRect",(L=el||(el={}))[L.TreeOrder=0]="TreeOrder",L[L.ReversedTreeOrder=1]="ReversedTreeOrder";let NK={x:{[en.Backward]:!1,[en.Forward]:!1},y:{[en.Backward]:!1,[en.Forward]:!1}};(F=eu||(eu={}))[F.Always=0]="Always",F[F.BeforeDragging=1]="BeforeDragging",F[F.WhileDragging=2]="WhileDragging",(ec||(ec={})).Optimized="optimized";let NX=new Map;function NJ(e,t){return T1(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function NQ(e){let{callback:t,disabled:r}=e,n=TQ(t),i=(0,ep.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,ep.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function N0(e){return new NN(Nx(e),e)}function N1(e,t,r){void 0===t&&(t=N0);let[n,i]=(0,ep.useReducer)(function(n){if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o},null),o=function(e){let{callback:t,disabled:r}=e,n=TQ(t),i=(0,ep.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,ep.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),a=NQ({callback:i});return TJ(()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),n}let N2=[];function N4(e,t){void 0===t&&(t=[]);let r=(0,ep.useRef)(null);return(0,ep.useEffect)(()=>{r.current=null},t),(0,ep.useEffect)(()=>{let t=e!==Nf;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?T7(e,r.current):Nf}function N3(e){return(0,ep.useMemo)(()=>e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let N5=[];function N6(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return TG(t)?t:e}let N8=[{sensor:NW,options:{}},{sensor:Nz,options:{}}],N7={current:{}},N9={draggable:{measure:Nb},droppable:{measure:Nb,strategy:eu.WhileDragging,frequency:ec.Optimized},dragOverlay:{measure:Nx}};class Re 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,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let Rt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Re,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Nc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:N9,measureDroppableContainers:Nc,windowRect:null,measuringScheduled:!1},Rr={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Nc,draggableNodes:new Map,over:null,measureDroppableContainers:Nc},Rn=(0,ep.createContext)(Rr),Ri=(0,ep.createContext)(Rt);function Ro(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Re}}}function Ra(e,t){switch(t.type){case er.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case er.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 er.DragEnd:case er.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case er.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new Re(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case er.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;let a=new Re(e.droppable.containers);return a.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case er.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;let o=new Re(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Rs(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,ep.useContext)(Rn),o=T4(n),a=T4(null==r?void 0:r.id);return(0,ep.useEffect)(()=>{if(!t&&!n&&o&&null!=a){if(!T9(o)||document.activeElement===o.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=e.matches(Nr)?e:e.querySelector(Nr);if(t){t.focus();break}}})}},[n,t,i,a,o]),null}function Rl(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}let Ru=(0,ep.createContext)({...Nf,scaleX:1,scaleY:1});(Z=ed||(ed={}))[Z.Uninitialized=0]="Uninitialized",Z[Z.Initializing=1]="Initializing",Z[Z.Initialized=2]="Initialized";let Rc=(0,ep.memo)(function(e){var t,r,n,i,o,a;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=N8,collisionDetection:f=Np,measuring:h,modifiers:p,...m}=e,[v,g]=(0,ep.useReducer)(Ra,void 0,Ro),[y,x]=function(){let[e]=(0,ep.useState)(()=>new Set),t=(0,ep.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,ep.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[b,w]=(0,ep.useState)(ed.Uninitialized),j=b===ed.Initialized,{draggable:{active:E,nodes:k,translate:C},droppable:{containers:S}}=v,O=E?k.get(E):null,_=(0,ep.useRef)({initial:null,translated:null}),M=(0,ep.useMemo)(()=>{var e;return null!=E?{id:E,data:null!=(e=null==O?void 0:O.data)?e:N7,rect:_}:null},[E,O]),A=(0,ep.useRef)(null),[P,T]=(0,ep.useState)(null),[N,R]=(0,ep.useState)(null),D=T0(m,Object.values(m)),L=T5("DndDescribedBy",s),F=(0,ep.useMemo)(()=>S.getEnabled(),[S]),Z=(0,ep.useMemo)(()=>({draggable:{...N9.draggable,...null==h?void 0:h.draggable},droppable:{...N9.droppable,...null==h?void 0:h.droppable},dragOverlay:{...N9.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:V,measureDroppableContainers:z,measuringScheduled:I}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[o,a]=(0,ep.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,ep.useRef)(e),d=function(){switch(u){case eu.Always:return!1;case eu.BeforeDragging:return r;default:return!r}}(),f=T0(d),h=(0,ep.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),p=(0,ep.useRef)(null),m=T1(t=>{if(d&&!r)return NX;if(!t||t===NX||c.current!==e||null!=o){let t=new Map;for(let r of e){if(!r)continue;if(o&&o.length>0&&!o.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new NN(l(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,o,r,d,l]);return(0,ep.useEffect)(()=>{c.current=e},[e]),(0,ep.useEffect)(()=>{d||h()},[r,d]),(0,ep.useEffect)(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),(0,ep.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...n]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=o}}(F,{dragging:j,dependencies:[C.x,C.y],config:Z.droppable}),B=function(e,t){let r=null!==t?e.get(t):void 0,n=r?r.node.current:null;return T1(e=>{var r;return null===t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(k,E),H=(0,ep.useMemo)(()=>N?Ne(N):null,[N]),U=function(){let e=(null==P?void 0:P.autoScrollEnabled)===!1,t="object"==typeof u?!1===u.enabled:!1===u,r=j&&!e&&!t;return"object"==typeof u?{...u,enabled:r}:{enabled:r}}(),W=NJ(B,Z.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,o=(0,ep.useRef)(!1),{x:a,y:s}="boolean"==typeof i?{x:i,y:i}:i;TJ(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=Nm(r(e),n);if(a||(i.x=0),s||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Nj(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,s,n,r])}({activeNode:E?k.get(E):null,config:U.layoutShiftCompensation,initialRect:W,measure:Z.draggable.measure});let $=N1(B,Z.draggable.measure,W),q=N1(B?B.parentElement:null),Y=(0,ep.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:S,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=S.getNodeFor(null==(t=Y.current.over)?void 0:t.id),K=function(e){let{measure:t}=e,[r,n]=(0,ep.useState)(null),i=NQ({callback:(0,ep.useCallback)(e=>{for(let{target:r}of e)if(TG(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),[o,a]=T2((0,ep.useCallback)(e=>{let r=N6(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]));return(0,ep.useMemo)(()=>({nodeRef:o,rect:r,setRef:a}),[r,o,a])}({measure:Z.dragOverlay.measure}),X=null!=(r=K.nodeRef.current)?r:B,J=j?null!=(n=K.rect)?n:$:null,Q=!!(K.nodeRef.current&&K.rect),ee=function(e){let t=NJ(e);return Nm(e,t)}(Q?null:$),et=N3(X?Tq(X):null),ei=function(e){let t=(0,ep.useRef)(e),r=T1(r=>e?r&&r!==N2&&e&&t.current&&e.parentNode===t.current.parentNode?r:Nw(e):N2,[e]);return(0,ep.useEffect)(()=>{t.current=e},[e]),r}(j?null!=G?G:B:null),eo=function(e,t){void 0===t&&(t=Nx);let[r]=e,n=N3(r?Tq(r):null),[i,o]=(0,ep.useReducer)(function(){return e.length?e.map(e=>NO(e)?n:new NN(t(e),e)):N5},N5),a=NQ({callback:o});return e.length>0&&i===N5&&o(),TJ(()=>{e.length?e.forEach(e=>null==a?void 0:a.observe(e)):(null==a||a.disconnect(),o())},[e]),i}(ei),ea=Rl(p,{transform:{x:C.x-ee.x,y:C.y-ee.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:$,containerNodeRect:q,draggingNodeRect:J,over:Y.current.over,overlayNodeRect:K.rect,scrollableAncestors:ei,scrollableAncestorRects:eo,windowRect:et}),ec=H?T8(H,C):null,ef=function(e){let[t,r]=(0,ep.useState)(null),n=(0,ep.useRef)(e),i=(0,ep.useCallback)(e=>{let t=NE(e.target);t&&r(e=>e?(e.set(t,NS(t)),new Map(e)):null)},[]);return(0,ep.useEffect)(()=>{let t=n.current;if(e!==t){o(t);let a=e.map(e=>{let t=NE(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,NS(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=NE(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,ep.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>T8(e,t),Nf):NA(e):Nf,[e,t])}(ei),eh=N4(ef),em=N4(ef,[$]),ev=T8(ea,eh),eg=J?Nv(J,ea):null,ey=M&&eg?f({active:M,collisionRect:eg,droppableRects:V,droppableContainers:F,pointerCoordinates:ec}):null,ex=function(e,t){if(!e||0===e.length)return null;let[r]=e;return r.id}(ey,0),[eb,ew]=(0,ep.useState)(null),ej=(o=Q?ea:T8(ea,em),a=null!=(i=null==eb?void 0:eb.rect)?i:null,{...o,scaleX:a&&$?a.width/$.width:1,scaleY:a&&$?a.height/$.height:1}),eE=(0,ep.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==A.current)return;let i=k.get(A.current);if(!i)return;let o=e.nativeEvent,a=new r({active:A.current,activeNode:i,event:o,options:n,context:Y,onStart(e){let t=A.current;if(null==t)return;let r=k.get(t);if(!r)return;let{onDragStart:n}=D.current,i={active:{id:t,data:r.data,rect:_}};(0,ek.unstable_batchedUpdates)(()=>{null==n||n(i),w(ed.Initializing),g({type:er.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){g({type:er.DragMove,coordinates:e})},onEnd:s(er.DragEnd),onCancel:s(er.DragCancel)});function s(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:i}=Y.current,a=null;if(t&&i){let{cancelDrop:s}=D.current;a={activatorEvent:o,active:t,collisions:r,delta:i,over:n},e===er.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=er.DragCancel)}A.current=null,(0,ek.unstable_batchedUpdates)(()=>{g({type:e}),w(ed.Uninitialized),ew(null),T(null),R(null);let t=e===er.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=D.current[t];null==e||e(a),y({type:t,event:a})}})}}(0,ek.unstable_batchedUpdates)(()=>{T(a),R(e.nativeEvent)})},[k]),eC=(0,ep.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,o=k.get(n);null!==A.current||!o||i.dndKit||i.defaultPrevented||!0!==e(r,t.options,{active:o})||(i.dndKit={capturedBy:t.sensor},A.current=n,eE(r,t))},[k,eE]),eS=(0,ep.useMemo)(()=>d.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:eC(e.handler,t)}))]},[]),[d,eC]);(0,ep.useEffect)(()=>{if(!TU)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})),TJ(()=>{$&&b===ed.Initializing&&w(ed.Initialized)},[$,b]),(0,ep.useEffect)(()=>{let{onDragMove:e}=D.current,{active:t,activatorEvent:r,collisions:n,over:i}=Y.current;if(!t||!r)return;let o={active:t,activatorEvent:r,collisions:n,delta:{x:ev.x,y:ev.y},over:i};(0,ek.unstable_batchedUpdates)(()=>{null==e||e(o),y({type:"onDragMove",event:o})})},[ev.x,ev.y]),(0,ep.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=Y.current;if(!e||null==A.current||!t||!i)return;let{onDragOver:o}=D.current,a=n.get(ex),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:s};(0,ek.unstable_batchedUpdates)(()=>{ew(s),null==o||o(l),y({type:"onDragOver",event:l})})},[ex]),TJ(()=>{Y.current={activatorEvent:N,active:M,activeNode:B,collisionRect:eg,collisions:ey,droppableRects:V,draggableNodes:k,draggingNode:X,draggingNodeRect:J,droppableContainers:S,over:eb,scrollableAncestors:ei,scrollAdjustedTranslate:ev},_.current={initial:J,translated:eg}},[M,B,ey,eg,k,X,J,V,S,eb,ei,ev]),function(e){let{acceleration:t,activator:r=es.Pointer,canScroll:n,draggingRect:i,enabled:o,interval:a=5,order:s=el.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:r}=e,n=T4(t);return T1(e=>{if(r||!n||!e)return NK;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[en.Backward]:e.x[en.Backward]||-1===i.x,[en.Forward]:e.x[en.Forward]||1===i.x},y:{[en.Backward]:e.y[en.Backward]||-1===i.y,[en.Forward]:e.y[en.Forward]||1===i.y}}},[r,t,n])}({delta:d,disabled:!o}),[p,m]=function(){let e=(0,ep.useRef)(null);return[(0,ep.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,ep.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),v=(0,ep.useRef)({x:0,y:0}),g=(0,ep.useRef)({x:0,y:0}),y=(0,ep.useMemo)(()=>{switch(r){case es.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case es.DraggableRect:return i}},[r,i,l]),x=(0,ep.useRef)(null),b=(0,ep.useCallback)(()=>{let e=x.current;if(!e)return;let t=v.current.x*g.current.x,r=v.current.y*g.current.y;e.scrollBy(t,r)},[]),w=(0,ep.useMemo)(()=>s===el.TreeOrder?[...u].reverse():u,[s,u]);(0,ep.useEffect)(()=>{if(!o||!u.length||!y){m();return}for(let e of w){if((null==n?void 0:n(e))===!1)continue;let r=c[u.indexOf(e)];if(!r)continue;let{direction:i,speed:o}=function(e,t,r,n,i){let{top:o,left:a,right:s,bottom:l}=r;void 0===n&&(n=10),void 0===i&&(i=NM);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=N_(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(h.y=en.Backward,p.y=n*Math.abs((t.top+m.height-o)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=en.Forward,p.y=n*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=en.Forward,p.x=n*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(h.x=en.Backward,p.x=n*Math.abs((t.left+m.width-a)/m.width)),{direction:h,speed:p}}(e,r,y,t,f);for(let e of["x","y"])h[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){m(),x.current=e,p(b,a),v.current=o,g.current=i;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,b,n,m,o,a,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...U,delta:C,draggingRect:eg,pointerCoordinates:ec,scrollableAncestors:ei,scrollableAncestorRects:eo});let eO=(0,ep.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:$,activatorEvent:N,collisions:ey,containerNodeRect:q,dragOverlay:K,draggableNodes:k,droppableContainers:S,droppableRects:V,over:eb,measureDroppableContainers:z,scrollableAncestors:ei,scrollableAncestorRects:eo,measuringConfiguration:Z,measuringScheduled:I,windowRect:et}),[M,B,$,N,ey,q,K,k,S,V,eb,z,ei,eo,Z,I,et]),e_=(0,ep.useMemo)(()=>({activatorEvent:N,activators:eS,active:M,activeNodeRect:$,ariaDescribedById:{draggable:L},dispatch:g,draggableNodes:k,over:eb,measureDroppableContainers:z}),[N,eS,M,$,g,L,k,eb,z]);return ep.createElement(Na.Provider,{value:x},ep.createElement(Rn.Provider,{value:e_},ep.createElement(Ri.Provider,{value:eO},ep.createElement(Ru.Provider,{value:ej},c)),ep.createElement(Rs,{disabled:(null==l?void 0:l.restoreFocus)===!1})),ep.createElement(Nu,{...l,hiddenTextDescribedById:L}))}),Rd=(0,ep.createContext)(null),Rf="button",Rh={timeout:25};function Rp(e){let{animation:t,children:r}=e,[n,i]=(0,ep.useState)(null),[o,a]=(0,ep.useState)(null),s=T4(r);return r||n||!s||i(s),TJ(()=>{if(!o)return;let e=null==n?void 0:n.key,r=null==n?void 0:n.props.id;if(null==e||null==r){i(null);return}Promise.resolve(t(r,o)).then(()=>{i(null)})},[t,n,o]),ep.createElement(ep.Fragment,null,r,n?(0,ep.cloneElement)(n,{ref:a}):null)}let Rm={x:0,y:0,scaleX:1,scaleY:1};function Rv(e){let{children:t}=e;return ep.createElement(Rn.Provider,{value:Rr},ep.createElement(Ru.Provider,{value:Rm},t))}let Rg={position:"fixed",touchAction:"none"},Ry=e=>T9(e)?"transform 250ms ease":void 0,Rx=(0,ep.forwardRef)((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:c=Ry}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...Rg,width:s.width,height:s.height,top:s.top,left:s.left,transform:Nt.Transform.toString(d),transformOrigin:i&&n?function(e,t){let r=Ne(e);if(!r)return"0 0";let n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}(n,s):void 0,transition:"function"==typeof c?c(n):c,...l};return ep.createElement(r,{className:a,style:f,ref:t},o)}),Rb={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:r}}=e;return[{transform:Nt.Transform.toString(t)},{transform:Nt.Transform.toString(r)}]},sideEffects:(a={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:r}=e,n={},{styles:i,className:o}=a;if(null!=i&&i.active)for(let[e,r]of Object.entries(i.active))void 0!==r&&(n[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,r));if(null!=i&&i.dragOverlay)for(let[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=o&&o.active&&t.node.classList.add(o.active),null!=o&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,r]of Object.entries(n))t.node.style.setProperty(e,r);null!=o&&o.active&&t.node.classList.remove(o.active)}})},Rw=0,Rj=ep.memo(e=>{var t;let{adjustScale:r=!1,children:n,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:v,dragOverlay:g,over:y,measuringConfiguration:x,scrollableAncestors:b,scrollableAncestorRects:w,windowRect:j}=(0,ep.useContext)(Ri),E=(0,ep.useContext)(Ru),k=(t=null==f?void 0:f.id,(0,ep.useMemo)(()=>{if(null!=t)return++Rw},[t])),C=Rl(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:b,scrollableAncestorRects:w,transform:E,windowRect:j}),S=NJ(h),O=function(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return TQ((e,o)=>{if(null===t)return;let a=r.get(e);if(!a)return;let s=a.node.current;if(!s)return;let l=N6(o);if(!l)return;let{transform:u}=Tq(o).getComputedStyle(o),c=Ng(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:r,sideEffects:n,keyframes:i}={...Rb,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;let u={x:a.rect.left-o.rect.left,y:a.rect.top-o.rect.top},c={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==n?void 0:n({active:o,dragOverlay:a,...l}),v=a.node.animate(f,{duration:t,easing:r,fill:"forwards"});return new Promise(e=>{v.onfinish=()=>{null==m||m(),e()}})}}(t);return NP(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:n,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:x}),_=S?g.setRef:void 0;return ep.createElement(Rv,null,ep.createElement(Rp,{animation:O},f&&k?ep.createElement(Rx,{key:k,id:f.id,ref:_,as:l,activatorEvent:d,adjustScale:r,className:u,transition:a,rect:S,style:{zIndex:c,...o},transform:C},n):null))});function RE(){return(0,ep.forwardRef)((e,t)=>{let{data:r,style:n,attributes:i,listeners:o,context:a,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,eh.jsx)("tr",{ref:t,...i,...o,style:n,id:r.id,"data-testid":r.id,onClick:r.onClick,className:(0,tp.cx)("border-b",r.isSelected?["bg-blue-400 border-blue-500/30","dark:bg-blue-600/50 dark:border-blue-600/20"]:"border-gray-200/50 dark:border-graydark-100",r.onClick?"cursor-pointer":"",r.className,h),children:s.map((e,t)=>{let{id:n,render:i,contentClassName:o,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,eh.jsx)("td",{"data-testid":n,className:(0,tp.cx)(d(t,(0,tp.cx)(s,h),!1),u&&u===r.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,eh.jsx)("div",{className:(0,tp.cx)(f(t,(0,tp.cx)(o,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,eh.jsx)(i,{data:r,context:a})})},"".concat(n,"/").concat(r.id))})},r.id)})}function Rk(e){let{data:t,context:r,columns:n,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,o=T5("Droppable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,ep.useContext)(Rn),{role:h=Rf,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===t,g=(0,ep.useContext)(v?Ru:Rd),[y,x]=T2(),[b,w]=T2(),j=(0,ep.useMemo)(()=>a.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[a,t]),E=T0(r);return TJ(()=>(d.set(t,{id:t,key:o,node:y,activatorNode:b,data:E}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,ep.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":n,"aria-pressed":!!v&&h===Rf||void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[n,h,m,v,p,c.draggable]),isDragging:v,listeners:n?void 0:j,node:y,over:f,setNodeRef:x,setActivatorNodeRef:w,transform:g}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,ep.useMemo)(()=>RE(),[]);return(0,eh.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:r,columns:n,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function RC(e){let{data:t,context:r,columns:n,rowSize:i="default",focusId:o,focusColor:a="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e,o=T5("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=(0,ep.useContext)(Rn),c=(0,ep.useRef)({disabled:r}),d=(0,ep.useRef)(!1),f=(0,ep.useRef)(null),h=(0,ep.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...Rh,...i},g=T0(null!=m?m:n),y=NQ({callback:(0,ep.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),disabled:p||!a}),[x,b]=T2((0,ep.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=T0(t);return(0,ep.useEffect)(()=>{y&&x.current&&(y.disconnect(),d.current=!1,y.observe(x.current))},[x,y]),TJ(()=>(s({type:er.RegisterDroppable,element:{id:n,key:o,disabled:r,node:x,rect:f,data:w}}),()=>s({type:er.UnregisterDroppable,key:o,id:n})),[n]),(0,ep.useEffect)(()=>{r!==c.current.disabled&&(s({type:er.SetDroppableDisabled,id:n,key:o,disabled:r}),c.current.disabled=r)},[n,o,r,s]),{active:a,rect:f,isOver:(null==l?void 0:l.id)===n,node:x,over:l,setNodeRef:b}}({id:t.id}),d=(0,ep.useMemo)(()=>RE(),[]);return(0,eh.jsx)(d,{ref:c,className:u?"bg-blue-200/20 dark:bg-blue-300/20":"",data:t,context:r,columns:n,rowSize:i,focusId:o,focusColor:a,getCellClassNames:s,getContentClassNames:l})}function RS(e){let{columns:t,data:r,context:n={},sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,draggingDatums:x,draggingMultipleLabel:b=e=>"Move selection (".concat(e,")"),testId:w}=e,j="emptyState";!c||(null==r?void 0:r.length)||(j="skeleton"),(null==r?void 0:r.length)&&(j="currentData");let E=(0,ep.useCallback)((e,r,n)=>(0,tp.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",n?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",r),[t]),k=(0,ep.useCallback)((e,t)=>(0,tp.cx)("flex items-center",t),[]),C=(0,ep.useMemo)(()=>RE(),[]),S=function(){for(var e=arguments.length,t=Array(e),r=0;r[...t].filter(e=>null!=e),[...t])}(Nd(Nq,{activationConstraint:{distance:10}}),Nd(NG,{activationConstraint:{delay:250,tolerance:5}})),O=(0,ep.useMemo)(()=>t.some(e=>{let{summary:t}=e;return t&&t({context:n})}),[t,n]);return(0,eh.jsxs)(Rc,{sensors:S,onDragStart:p,onDragOver:m,onDragMove:v,onDragEnd:g,onDragCancel:y,children:[(0,eh.jsx)(Rj,{children:x?1===x.length?(0,eh.jsx)(nr,{className:"inline-block",children:(0,eh.jsx)("table",{children:(0,eh.jsx)("tbody",{children:(0,eh.jsx)(C,{className:"pointer-events-none",data:x[0],context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},x[0].id)})})}):(0,eh.jsx)(nr,{className:"inline-block py-2 px-4",children:(0,eh.jsx)(r9,{children:b(x.length)})}):null}),(0,eh.jsxs)(nr,{children:[(0,eh.jsxs)("table",{"data-testid":w,onMouseDown:e=>{e.shiftKey&&e.preventDefault()},"data-loading":"skeleton"===j,className:"relative z-10 table-auto border-collapse w-full",children:[(0,eh.jsxs)("thead",{className:(0,tp.cx)("sticky -top-px z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,eh.jsx)("tr",{children:t.map((e,t)=>{let{id:r,icon:l,heading:u,label:c,tip:d,cellClassName:f,contentClassName:h}=e,p=(null==a?void 0:a.includes(r))&&!!s,m=i===r;return(0,eh.jsx)("th",{"data-testid":r,className:(0,tp.cx)(E(t,f,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,eh.jsx)("div",{className:"overflow-hidden py-3",children:(0,eh.jsxs)("div",{onClick:()=>{p&&s(r)},className:(0,tp.cx)(k(t,h),p?"cursor-pointer":""),children:[u?(0,eh.jsx)(u,{context:n}):null,(0,eh.jsx)(ui,{content:d,children:(0,eh.jsxs)(r9,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[l?(0,eh.jsx)("div",{children:l}):null,(0,eh.jsx)(r9,{ellipsis:!0,size:"12",weight:"medium",children:c})]})}),m&&(0,eh.jsx)(r9,{color:"contrast",children:"asc"===o?(0,eh.jsx)(us.MR9,{className:"scale-75"}):(0,eh.jsx)(us.cRw,{className:"scale-75"})}),p&&!m&&(0,eh.jsx)(r9,{color:"verySubtle",children:(0,eh.jsx)(us.MR9,{className:"scale-75"})})]})})},r)})}),O&&(0,eh.jsx)("tr",{children:t.map((e,t)=>{let{id:r,cellClassName:i,contentClassName:o,summary:a}=e;return(0,eh.jsx)("th",{"data-testid":r,className:(0,tp.cx)(E(t,i,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,eh.jsx)("div",{className:"overflow-hidden py-3",children:(0,eh.jsx)("div",{className:(0,tp.cx)(k(t,o)),children:a&&(0,eh.jsx)(a,{context:n})})})},r)})})]}),(0,eh.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===j&&(null==r?void 0:r.map(e=>(null==x?void 0:x.find(t=>t.id===e.id))?null:e.isDraggable?(0,eh.jsx)(Rk,{data:e,context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},e.id):e.isDroppable?(0,eh.jsx)(RC,{data:e,context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},e.id):(0,eh.jsx)(C,{data:e,context:n,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:E,getContentClassNames:k},e.id))),"skeleton"===j&&Tl(u).map(e=>(0,eh.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:r,contentClassName:n,cellClassName:i}=e;return(0,eh.jsx)("td",{className:E(t,i,!1),children:(0,eh.jsx)("div",{className:(0,tp.cx)(k(t,n),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(r))})},e))]})]}),"emptyState"===j&&d]})]})}function RO(e){let{offset:t,limit:r,total:n,isLoading:i}=e,o=(0,vE.j0)();return(0,eh.jsxs)(uD,{children:[(0,eh.jsx)(ua,{"aria-label":"go to first page",icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,eh.jsx)("div",{className:"flex scale-[0.65]",children:(0,eh.jsx)(us.XJM,{})})}),(0,eh.jsx)(ua,{"aria-label":"go to previous page",icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,eh.jsx)(us.bdU,{})}),(0,eh.jsx)(ua,{state:"waiting",className:"rounded-none px-3",children:n>0?"".concat(t+1," - ").concat(Math.min(t+r,n)," of ").concat(n?n.toLocaleString():""):i?(0,eh.jsx)(AS,{className:"px-2"}):"No results"}),(0,eh.jsx)(ua,{"aria-label":"go to next page",icon:"contrast",disabled:t+r>=n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+r,n)}}),children:(0,eh.jsx)(us.VUy,{})}),(0,eh.jsx)(ua,{"aria-label":"go to last page",icon:"contrast",disabled:t+r>=n,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(n/r)*r}}),children:(0,eh.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,eh.jsx)(us.RRj,{})})})]})}function R_(e){let{offset:t,limit:r,pageTotal:n,isLoading:i}=e,o=(0,vE.j0)();return(0,eh.jsxs)(uD,{children:[(0,eh.jsx)(ua,{"aria-label":"go to first page",icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,eh.jsx)("div",{className:"flex scale-[0.65]",children:(0,eh.jsx)(us.XJM,{})})}),(0,eh.jsx)(ua,{"aria-label":"go to previous page",icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-r,0)}}),children:(0,eh.jsx)(us.bdU,{})}),i?(0,eh.jsx)(ua,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,eh.jsx)(AS,{className:"px-2"})}):n?(0,eh.jsxs)(ua,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+r,t+n)]}):(0,eh.jsx)(ua,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,eh.jsx)(ua,{"aria-label":"go to next page",icon:"contrast",disabled:!(n>=r),size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+r}}),children:(0,eh.jsx)(us.VUy,{})})]})}function RM(e){let{separator:t,children:r}=e,n=ep.Children.toArray(r).filter(e=>ep.isValidElement(e)&&("function"!=typeof e.type||null!==e.type(e.props)));return(0,eh.jsx)(eh.Fragment,{children:n.map((e,r)=>{var i,o;return(0,eh.jsxs)(ep.Fragment,{children:[e,r{e.push({query:{...e.query,offset:0,marker:void 0}})},[e]);return(0,eh.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.UJc,{className:"scale-[200%]"})}),(0,eh.jsx)(r9,{color:"subtle",className:"text-center max-w-[500px]",children:"No data on this page, reset pagination to continue."}),(0,eh.jsx)(ua,{onClick:t,children:"Back to first page"})]})}function RR(e){let{datasetState:t,noneOnPage:r,noneMatching:n,noneYet:i,error:o}=e;return"noneOnPage"===t?r||(0,eh.jsx)(RN,{}):"noneMatchingFilters"===t?n||(0,eh.jsx)(RA,{}):"noneYet"===t?i||(0,eh.jsx)(RP,{}):"error"===t?o||(0,eh.jsx)(RT,{}):null}function RD(e){let{title:t,nav:r,stats:n,actions:i,after:o}=e;return(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsxs)("div",{"data-testid":"navbar",className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,eh.jsx)(r9,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,eh.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,eh.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:r}),(0,eh.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),n&&(0,eh.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:n}),o]})}let RL=("string"==typeof(V={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:V}:V).src;function RF(e){let{children:t}=e;return(0,eh.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,eh.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,eh.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(RL,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,eh.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function RZ(e){let{appName:t,title:r,children:n}=e,i=r?"".concat(t," - ").concat(r):t;return(0,eh.jsxs)(vE.Fb,{children:[(0,eh.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,eh.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,eh.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,eh.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,eh.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,eh.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,eh.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,eh.jsx)("meta",{name:"theme-color",content:"#ffffff"}),n,(0,eh.jsx)("title",{children:i})]})}function RV(e){let{appName:t,title:r,children:n}=e;return(0,eh.jsxs)("div",{className:"h-screen",children:[(0,eh.jsx)(RZ,{appName:t,title:r}),n]})}function Rz(e){let{appName:t,title:r,children:n,filters:i,actions:o}=e;return(0,eh.jsxs)(RV,{appName:t,title:r,children:[(0,eh.jsx)(RF,{}),(0,eh.jsx)("div",{className:"flex h-full",children:(0,eh.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,eh.jsx)(RD,{nav:i,actions:o}),(0,eh.jsx)("div",{className:"flex-1",children:(0,eh.jsx)(u5,{className:"h-full",children:n})})]})})]})}function RI(e){let{side:t,balanceSc:r,children:n}=e;return r?(0,eh.jsx)(ui,{side:t,content:(0,eh.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,eh.jsxs)("div",{className:"flex gap-4",children:[(0,eh.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,eh.jsx)(r9,{size:"12",children:"spendable"}),(0,eh.jsx)(r9,{size:"12",color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,eh.jsx)("div",{className:"flex justify-end",children:(0,eh.jsx)(Tr,{size:"12",displayBoth:!0,variant:"value",value:r.spendable})})]}),r.immature&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex gap-4",children:[(0,eh.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,eh.jsx)(r9,{size:"12",children:"immature"}),(0,eh.jsx)(r9,{size:"12",color:"subtle",children:"All confirmed but still locked outputs."})]}),(0,eh.jsx)("div",{className:"flex justify-end",children:(0,eh.jsx)(Tr,{size:"12",displayBoth:!0,variant:"value",value:r.unconfirmed})})]})]}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex gap-4",children:[(0,eh.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,eh.jsx)(r9,{size:"12",children:"confirmed"}),(0,eh.jsx)(r9,{size:"12",color:"subtle",children:"All confirmed outputs."})]}),(0,eh.jsx)("div",{className:"flex justify-end",children:(0,eh.jsx)(Tr,{size:"12",displayBoth:!0,variant:"value",value:r.confirmed})})]}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex gap-4",children:[(0,eh.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,eh.jsx)(r9,{size:"12",children:"unconfirmed"}),(0,eh.jsx)(r9,{size:"12",color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,eh.jsx)("div",{className:"flex justify-end",children:(0,eh.jsx)(Tr,{size:"12",displayBoth:!0,variant:"value",value:r.unconfirmed})})]})]}),children:(0,eh.jsx)("div",{children:n})}):null}function RB(e){let{balanceSc:t,isSynced:r,syncingMessage:n}=e;if(!t)return null;let i=(0,eh.jsx)(Tr,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return r?(0,eh.jsx)(RI,{side:"right",balanceSc:t,children:i}):(0,eh.jsx)(ui,{side:"right",content:n||"Blockchain is syncing, balance may be incorrect.",children:(0,eh.jsx)("div",{children:i})})}function RH(e){let{title:t,children:r,route:n,onClick:i}=e,o=(0,vE.jD)(),a=n&&("/"===n?o===n:null==o?void 0:o.startsWith(n));return n?(0,eh.jsx)(vZ,{href:n,className:"no-underline",children:(0,eh.jsx)(ui,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,eh.jsx)(ua,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}):(0,eh.jsx)(ui,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,eh.jsx)(ua,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:r})})}function RU(e){let{walletBalanceSc:t,isSynced:r,routes:n}=e;return(0,eh.jsx)(RH,{title:"Wallet",route:n.wallet.view,children:(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,eh.jsx)(us.oaN,{}),r&&t&&(0,eh.jsx)(RB,{isSynced:r,balanceSc:t})]})})}function RW(e){let{routes:t,profile:r,isSynced:n,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,eh.jsx)(nr,{"data-testid":"sidenav",className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,eh.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,eh.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:r||(0,eh.jsx)(vV,{size:30})}),(0,eh.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,eh.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,eh.jsx)("div",{className:"flex-1"}),(0,eh.jsx)(vl,{className:"w-full"}),i&&(0,eh.jsx)(RU,{routes:t,isSynced:n,walletBalanceSc:o}),(0,eh.jsx)(RH,{title:"Blockchain node",route:t.node.index,children:(0,eh.jsx)(us.kBK,{})}),(0,eh.jsx)(RH,{title:"App preferences",onClick:()=>s(),children:(0,eh.jsx)(us.UG6,{})}),(0,eh.jsx)(RH,{title:"Lock app",onClick:a,children:(0,eh.jsx)(us.mBM,{})})]})]})})}var R$=Object.create,Rq=Object.defineProperty,RY=Object.getOwnPropertyDescriptor,RG=Object.getOwnPropertyNames,RK=Object.getPrototypeOf,RX=Object.prototype.hasOwnProperty,RJ=(s=(e,t)=>{var n,i;n=e,i=function(e){var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=new WeakMap,i=(t=function(e,t){return n.set(e,t),t},function(e){var i=n.get(e),o=void 0===i?e.size:i<1073741824?i+1:0;if(!e.has(o))return t(e,o);if(e.size<536870912){for(;e.has(o);)o=Math.floor(1073741824*Math.random());return t(e,o)}if(e.size>r)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(o);)o=Math.floor(Math.random()*r);return t(e,o)});e.addUniqueNumber=function(e){var t=i(e);return e.add(t),t},e.generateUniqueNumber=i},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&r.amdO?define(["exports"],i):i((n="u">typeof globalThis?globalThis:n||self).fastUniqueNumbers={})},()=>(l||s((l={exports:{}}).exports,l),l.exports));ep.Component;var RQ=(d=null!=(u=RJ())?R$(RK(u)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of RG(t))RX.call(e,i)||i===r||Rq(e,i,{get:()=>t[i],enumerable:!(n=RY(t,i))||n.enumerable});return e})(!c&&u&&u.__esModule?d:Rq(d,"default",{value:u,enumerable:!0}),u)),R0=e=>void 0!==e.method&&"call"===e.method,R1=e=>null===e.error&&"number"==typeof e.id;z=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(R0(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=r.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(R1(e)){let{id:i}=e,o=n.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;n.delete(i),"interval"===s?t.delete(a):r.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,RQ.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,RQ.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,RQ.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,RQ.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}},I='(()=>{"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})}}))})();',f=null,()=>{if(null!==f)return f;let e=new Blob([I],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return f=z(t),setTimeout(()=>URL.revokeObjectURL(t)),f};var R2=(typeof window>"u"?"undefined":typeof window)=="object",R4={setTimeout:R2?setTimeout.bind(window):setTimeout,clearTimeout:R2?clearTimeout.bind(window):clearTimeout,setInterval:R2?setInterval.bind(window):setInterval,clearInterval:R2?clearInterval.bind(window):clearInterval},R3={},R5=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,R3[e]=R3[e]||[],R3[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,t),R4.setTimeout(()=>{window.localStorage.removeItem(r)},500),R3[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=R3[this.name].indexOf(this);R3[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)}},R6=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:R5;function R8(){return Math.random().toString(36).substring(2)}var R7=class{options;channel;token=R8();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:r,action:n}=t.data;r!==this.token&&(0===n&&r>this.token&&(e=!0),1===n&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>R4.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(r=>{let n=()=>{if(e)return;e=!0;try{R4.clearInterval(t)}catch{}let n=this.intervals.indexOf(t);n>=0&&this.intervals.splice(n,1),this.channel.removeEventListener("message",i),r()};t=R4.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>R4.clearInterval(e))}catch{}}}},R9=class{channel;options;elector;token=R8();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new R6(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new R7(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:r,data:n}=e.data;switch(t){case 3:this.registry.set(r,2);break;case 4:this.registry.delete(r);break;case 5:this.idle(r);break;case 6:this.active(r);break;case 7:this.prompt(r);break;case 8:this.start(r);break;case 9:this.reset(r);break;case 10:this.activate(r);break;case 11:this.pause(r);break;case 12:this.resume(r);break;case 13:this.options.onMessage(n)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},De=R2?document:null,Dt=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function Dr(e,t){let r=0;return function(...n){let i=new Date().getTime();if(!(i-rDate.now();function Di(e){let{route:t}=e,r=(0,yD.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!r.error,isValidating:r.isValidating}}function Do(e){let{appName:t,title:r,navTitle:n,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,after:c,dockedControls:d,children:f,sidenav:h,connectivityRoute:p,isSynced:m,showWallet:v,walletBalanceSc:g,routes:y,scroll:x=!0,openSettings:b}=e,{lock:w,settings:j}=(0,yD.Hv)();return!function(e){let{lock:t,route:r,routes:n}=e,{isConnected:i,isValidating:o}=Di({route:r}),{settings:a}=(0,yD.Hv)(),s=(0,vE.j0)();(0,ep.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(n.login),r=!a.password||!i;if(e&&r){t();return}},[s,a.password,i,o])}({lock:w,route:p,routes:y}),!function(e){let{enabled:t,lock:r,lockTimeout:n}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:r=0,element:n=De,events:i=Dt,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:x=!1,name:b="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:E=!1}={}){let k=(0,ep.useRef)(Dn()),C=(0,ep.useRef)(Dn()),S=(0,ep.useRef)(null),O=(0,ep.useRef)(null),_=(0,ep.useRef)(0),M=(0,ep.useRef)(0),A=(0,ep.useRef)(0),P=(0,ep.useRef)(0),T=(0,ep.useRef)(!1),N=(0,ep.useRef)(!1),R=(0,ep.useRef)(!1),D=(0,ep.useRef)(!0),L=(0,ep.useRef)(!1),F=(0,ep.useRef)(null),Z=(0,ep.useRef)(null),V=(0,ep.useRef)(e),z=(0,ep.useRef)(0);(0,ep.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(r>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(r>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(r?(V.current=e-r,z.current=r):(V.current=e,z.current=t),!D.current){if(g||E)return;T.current&&(G.current(null,eP),Z.current&&Z.current.active()),ec()}},[e,t,r,g,E]);let I=(0,ep.useRef)(y);(0,ep.useEffect)(()=>{I.current=y},[y]);let B=(0,ep.useRef)(a),H=(0,ep.useRef)(n),U=(0,ep.useRef)([...new Set([...i,...a]).values()]),W=(0,ep.useRef)(E);(0,ep.useEffect)(()=>{W.current=E,!D.current&&(E?eh():g||ec())},[E]);let $=(0,ep.useRef)(s);(0,ep.useEffect)(()=>{$.current=s},[s]);let q=(0,ep.useRef)(l);(0,ep.useEffect)(()=>{q.current=l},[l]);let Y=(0,ep.useRef)(u);(0,ep.useEffect)(()=>{Y.current=u},[u]);let G=(0,ep.useRef)(c);(0,ep.useEffect)(()=>{G.current=c},[c]);let K=(0,ep.useRef)(d);(0,ep.useEffect)(()=>{K.current=d},[d]);let X=(0,ep.useRef)(f);(0,ep.useEffect)(()=>{X.current=f},[f]);let J=(0,ep.useMemo)(()=>{let e=(e,t)=>K.current(e,t);return h>0?function(e,t){let r;function n(...i){r&&clearTimeout(r),r=setTimeout(()=>{e(...i),r=null},t)}return n.cancel=function(){clearTimeout(r)},n}(e,h):p>0?Dr(e,p):e},[p,h]),Q=(0,ep.useRef)();(0,ep.useEffect)(()=>{x&&w&&(Q.current=Dr(()=>{Z.current.active()},w))},[x,w]);let ee=()=>{null!==F.current&&(R4.clearTimeout(F.current),F.current=null)},et=(e,t=!0)=>{ee(),F.current=R4.setTimeout(eo,e||V.current),t&&(O.current=Dn())},er=e=>{N.current||T.current||(q.current(e,eP),$.current({type:"active",prompted:!0},eP)),P.current=0,A.current=Dn(),N.current=!0,et(z.current,!1)},en=()=>{ee(),T.current||(Y.current(null,eP),$.current({type:"idle"},eP)),T.current=!0,S.current=Dn(),I.current?eu():N.current&&(A.current=0,N.current=!1)},ei=e=>{ee(),(T.current||N.current)&&(G.current(e,eP),$.current({type:"active",prompted:!1},eP)),N.current=!1,A.current=0,T.current=!1,_.current+=Dn()-S.current,M.current+=Dn()-S.current,el(),et()},eo=e=>{if(!T.current){J.cancel&&J.cancel();let t=Dn()-O.current;if(!(V.current+z.current0&&!N.current){Z.current?Z.current.prompt():er(e);return}Z.current?Z.current.idle():en();return}Z.current?Z.current.active():ei(e)},ea=e=>{if(v||O.current||(O.current=Dn(),G.current(null,eP)),J(e,eP),N.current)return;if(ee(),!T.current&&B.current.includes(e.type)){eo(e);return}let t=Dn()-O.current;if(T.current&&!y||!T.current&&t>=V.current){eo(e);return}R.current=!1,P.current=0,A.current=0,et(),x&&w&&Q.current()},es=(0,ep.useRef)(ea);(0,ep.useEffect)(()=>{let e=L.current;e&&eu(),m>0?es.current=Dr(ea,m):es.current=ea,e&&el()},[m,p,h,K,x,w]);let el=()=>{R2&&H.current&&(L.current||(U.current.forEach(e=>{H.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},eu=(e=!1)=>{R2&&H.current&&(L.current||e)&&(U.current.forEach(e=>{H.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ec=(0,ep.useCallback)(e=>!W.current&&(ee(),el(),T.current=!1,N.current=!1,R.current=!1,P.current=0,A.current=0,Z.current&&!e&&Z.current.start(),et(),!0),[F,T,W,V,Z]),ed=(0,ep.useCallback)(e=>!W.current&&(ee(),el(),C.current=Dn(),_.current+=Dn()-S.current,M.current+=Dn()-S.current,_.current=0,T.current=!1,N.current=!1,R.current=!1,P.current=0,A.current=0,Z.current&&!e&&Z.current.reset(),g||et(),!0),[F,T,V,g,W,Z]),ef=(0,ep.useCallback)(e=>!W.current&&(ee(),el(),(T.current||N.current)&&ei(),T.current=!1,N.current=!1,R.current=!1,P.current=0,A.current=0,C.current=Dn(),Z.current&&!e&&Z.current.activate(),et(),!0),[F,T,N,W,V,Z]),eh=(0,ep.useCallback)((e=!1)=>!W.current&&!R.current&&(P.current=ej(),R.current=!0,eu(),ee(),Z.current&&!e&&Z.current.pause(),!0),[F,W,Z]),em=(0,ep.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||el(),T.current||et(P.current),A.current&&(A.current=Dn()),Z.current&&!e&&Z.current.resume(),!0),[F,V,W,P,Z]),ev=(0,ep.useCallback)((e,t)=>(Z.current?(t&&X.current(e,eP),Z.current.message(e)):t&&X.current(e,eP),!0),[f]),eg=(0,ep.useCallback)(()=>T.current,[T]),ey=(0,ep.useCallback)(()=>N.current,[N]),ex=(0,ep.useCallback)(()=>Z.current?Z.current.isLeader:null,[Z]),eb=(0,ep.useCallback)(()=>Z.current?Z.current.isLastActive:null,[Z]),ew=(0,ep.useCallback)(()=>Z.current?Z.current.token:null,[Z]),ej=(0,ep.useCallback)(()=>{if(R.current)return P.current;let e=Math.floor((P.current?P.current:z.current+V.current)-(O.current?Dn()-O.current:0));return e<0?0:Math.abs(e)},[V,z,N,P,O]),eE=(0,ep.useCallback)(()=>Math.round(Dn()-C.current),[C]),ek=(0,ep.useCallback)(()=>Math.round(Dn()-k.current),[k]),eC=(0,ep.useCallback)(()=>S.current?new Date(S.current):null,[S]),eS=(0,ep.useCallback)(()=>O.current?new Date(O.current):null,[O]),eO=(0,ep.useCallback)(()=>T.current?Math.round(Dn()-S.current+_.current):Math.round(_.current),[S,_]),e_=(0,ep.useCallback)(()=>T.current?Math.round(Dn()-S.current+M.current):Math.round(M.current),[S,M]),eM=(0,ep.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[S,_]),eA=(0,ep.useCallback)(()=>{let e=Math.round(ek()-e_());return e>=0?e:0},[S,_]);(0,ep.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(R4.setTimeout=o.setTimeout,R4.clearTimeout=o.clearTimeout,R4.setInterval=o.setInterval,R4.clearInterval=o.clearInterval);let e=()=>{Z.current&&Z.current.close(),J.cancel&&J.cancel(),ee(),eu(!0)};return R2&&window.addEventListener("beforeunload",e),()=>{R2&&window.removeEventListener("beforeunload",e),Z.current&&Z.current.close(),J.cancel&&J.cancel(),ee(),eu(!0)}},[]),(0,ep.useEffect)(()=>{Z.current&&Z.current.close(),x?Z.current=new R9({channelName:b,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{en()},onActive:()=>{ei()},onMessage:e=>{X.current(e,eP)},start:ec,reset:ed,activate:ef,pause:eh,resume:em}):Z.current=null},[x,b,j,q,Y,G,X,ec,ed,eh,em]),(0,ep.useEffect)(()=>{D.current||(ee(),eu(!0)),g||E||(v?ec():el())},[g,v,E,D]),(0,ep.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...a]).values()];eu(),U.current=e,H.current=n,B.current=a,g||E||(v?ec():el())}},[n,JSON.stringify(i),JSON.stringify(a),D,E,g,v]),(0,ep.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eP={message:ev,start:ec,reset:ed,activate:ef,pause:eh,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:eE,getTotalElapsedTime:ek,getLastIdleTime:eC,getLastActiveTime:eS,getIdleTime:eO,getTotalIdleTime:e_,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,q.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,K.current=e},setOnMessage:e=>{f=e,X.current=e}}}({disabled:!t,onIdle:(0,ep.useCallback)(()=>{r()},[r]),timeout:n,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,eh.jsxs)(RV,{appName:t,title:r,children:[(0,eh.jsx)(RF,{}),(0,eh.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,eh.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,eh.jsx)(RW,{routes:y,profile:i,openSettings:b,lock:w,showWallet:v,walletBalanceSc:g,isSynced:m,children:h}),(0,eh.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,eh.jsx)(RD,{title:void 0===n?r:n,nav:s,actions:l,stats:u,after:c}),x?(0,eh.jsx)(fC,{className:"z-0",children:(0,eh.jsx)(u5,{size:o,pad:!1,children:(0,eh.jsx)("div",{className:"flex flex-col gap-5",children:f})})}):(0,eh.jsx)(u5,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:f}),(0,eh.jsx)("div",{className:"z-20 fixed bottom-5 left-0 right-0 flex justify-center dark pointer-events-none",children:d})]})]})]})]})}function Da(e){let{datasetPage:t,isValidating:r,error:n,filters:i,offset:o,marker:a}=e,s=function(e){let{offset:t,marker:r}=e;if(void 0!==r){if(r)return!1;if(null===r)return!0}return void 0===t||!(t>0)}({offset:o,marker:a}),[l,u]=(0,ep.useState)();return(0,ep.useEffect)(()=>{!r&&t&&u(t.length)},[r,t,u]),(0,ep.useMemo)(()=>n?"error":void 0===l||l>0&&!t?"loading":0===l?s?i&&0!==i.length?"noneMatchingFilters":"noneYet":"noneOnPage":"loaded",[t,l,n,i,s])}function Ds(e){let{filtered:t}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.Hb6,{className:"scale-[200%]"})}),(0,eh.jsx)(r9,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}function Dl(e){let{open:t,onOpenChange:r,dismissOne:n,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=Da({datasetPage:o.data,isValidating:o.isValidating,error:o.error}),[u,c]=(0,ep.useState)(),d=(0,ep.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,ep.useCallback)(e=>Object.keys(e).sort((e,t)=>{let r=a.indexOf(e),n=a.indexOf(t);return -1===r&&-1===n?0:-1===r?1:-1===n?-1:r-n}),[a]);return(0,eh.jsx)(f_,{open:t,onOpenChange:e=>{r(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsxs)(vS,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,eh.jsxs)("div",{className:"flex gap-1",children:[(0,eh.jsx)(ua,{variant:void 0===u?"accent":"gray",onClick:()=>c(void 0),children:"all"}),(0,eh.jsx)(ua,{variant:"info"===u?"accent":"gray",onClick:()=>c("info"),children:"info"}),(0,eh.jsx)(ua,{variant:"warning"===u?"accent":"gray",onClick:()=>c("warning"),children:"warning"}),(0,eh.jsx)(ua,{variant:"error"===u?"accent":"gray",onClick:()=>c("error"),children:"error"}),(0,eh.jsx)(ua,{variant:"critical"===u?"accent":"gray",onClick:()=>c("critical"),children:"critical"}),(0,eh.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,eh.jsxs)(ua,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,eh.jsx)(us.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,eh.jsxs)("div",{className:(0,tp.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,eh.jsx)(Ds,{filtered:!1}),"error"===l&&(0,eh.jsx)("div",{className:(0,tp.cx)("flex items-center justify-center h-[100px]",Dd()),children:(0,eh.jsx)(r9,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,eh.jsx)(Dc,{}),!l&&(0,eh.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,eh.jsxs)("div",{className:(0,tp.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,eh.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,eh.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,eh.jsxs)(r9,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,eh.jsx)(ua,{tip:"Dismiss alert",onClick:()=>n(e.id),children:(0,eh.jsx)(us.NlZ,{})})]}),(0,eh.jsxs)("div",{className:"flex justify-between w-full",children:[(0,eh.jsx)(r9,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,eh.jsx)(r9,{color:"contrast",ellipsis:!0,children:(0,Ek.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var r;let n=e.data[t];if(null==n||"object"==typeof n&&!Object.keys(n).length)return null;let i=(null==s?void 0:null===(r=s[t])||void 0===r?void 0:r.render)||Du;return(0,eh.jsx)(i,{label:t,value:n},t)})]},e.id)):(0,eh.jsx)(Ds,{filtered:!!u})})]})})}function Du(e){let{label:t,value:r}=e;return(0,eh.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,eh.jsx)(r9,{color:"subtle",children:t}),(0,eh.jsx)(r9,{color:"contrast",ellipsis:!0,children:String(r)})]})}function Dc(){return(0,eh.jsx)(eh.Fragment,{children:Tl(10,e=>(0,eh.jsx)("div",{className:(0,tp.cx)("relative flex gap-4 p-3.5",Dd()),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,eh.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,eh.jsx)(yH,{className:"w-[160px] h-[20px]"}),(0,eh.jsx)(yH,{className:"w-[160px] h-[20px]"})]}),(0,eh.jsx)(yH,{className:"w-[100px] h-[20px]"}),(0,eh.jsx)(yH,{className:"w-full h-[120px]"})]})},e))})}function Dd(){return(0,tp.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}(0,ep.createContext)(null).Consumer;var Df=r(89644),Dh=r.n(Df),Dp=r(63955),Dm=r(40871),Dv=r(95849),Dg=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r},Dy=(B=r(91139).Z,function(e){var t,r=(0,Dm.Z)(e);return"[object Map]"==r?(0,Dv.Z)(e):"[object Set]"==r?Dg(e):(t=B(e),(0,M6.Z)(t,function(t){return[t,e[t]]}))});function Dx(e){let{form:t,field:r,name:n}=e,i=t.watch(n),o=t.formState.touchedFields[n]&&!!t.formState.errors[n],{ref:a,onChange:s}=t.register(n,r.validation),l=(0,ep.useCallback)(e=>{var n;s(e),null===(n=r.trigger)||void 0===n||n.forEach(e=>t.trigger(e))},[s,t,r]),u=(0,ep.useCallback)(()=>{var e;t.trigger(n),null===(e=r.trigger)||void 0===e||e.forEach(e=>t.trigger(e))},[t,r,n]),c=(0,ep.useCallback)((e,i)=>{var o;t.setValue(n,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=r.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[n,t,r]);return{ref:a,name:n,value:i,error:o,onBlur:u,onChange:l,setValue:c}}function Db(e){return(0,ep.useCallback)(t=>{PJ({title:"Error",body:Dy(t).map(t=>{let[r,n]=t;return"".concat(e[r].title||r,": ").concat(null==n?void 0:n.message)}).join(", ")})},[e])}function Dw(e){let{name:t,form:r,fields:n}=e,i=n[t];return!i.hidden&&(!i.show||i.show(r.getValues()))}function Dj(e){let{name:t,form:r,fields:n,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0,type:u}=e,c=n[t],{ref:d,onChange:f,onBlur:h,error:p}=Dx({name:t,form:r,field:c}),m=(0,eh.jsx)(yo,{ref:d,name:t,placeholder:c.placeholder,size:i,autoComplete:void 0!==o?o:c.autoComplete,type:u||c.type,readOnly:c.readOnly,spellCheck:a,onClick:c.onClick,state:s?p?"invalid":r.formState.dirtyFields[t]?"valid":"default":"default",onChange:f,onBlur:h});return l?(0,eh.jsx)(TD,{title:c.title,actions:c.actions,name:t,form:r,children:m}):m}var DE=r(34001),Dk=function(e,t){return Aw(Av(e,t,Ay.Z),e+"")},DC=r(92725),DS=r(18226),DO=r(76325),D_=function(e,t,r){if(!(0,jh.Z)(r))return!1;var n=typeof t;return("number"==n?!!((0,DS.Z)(r)&&(0,DO.Z)(t,r.length)):"string"==n&&t in r)&&(0,DC.Z)(r[t],e)},DM=Dk(function(e,t){if(null==e)return[];var r=t.length;return r>1&&D_(e,t[0],t[1])?t=[]:r>2&&D_(t[0],t[1],t[2])&&(t=[t[0]]),(0,DE.Z)(e,Ah(t,1),[])});async function DA(e){let{api:t,route:r,password:n}=e;try{return await Dh().get("".concat(t,"/api").concat(r),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(n))},timeout:1e4}),{}}catch(r){let e=r.code,t=r.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function DP(e){let{appName:t,route:r,routes:n}=e,i=(0,vE.j0)(),{settings:o,setRequestSettings:a}=(0,yD.Hv)(),{loginWithCustomApi:s}=o,l=(0,ep.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,Dp.cI)({mode:"onBlur",defaultValues:l});(0,ep.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,ep.useCallback)(async e=>{let t="";if(s){let r=new URL(e.api);t="".concat(r.protocol,"//").concat(r.host)}let{error:c}=await DA({api:t,route:r,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):n.home),u.reset(l))},[s,u,i,n,o,a,l,r]),d=function(e){let{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:s}),f=Db(d),h=u.formState.errors.api||u.formState.errors.password,p=DM(Object.entries(o.recentApis),e=>{let[t,{lastUsed:r}]=e;return-r}).map(e=>{let[t]=e;return t});return(0,eh.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,eh.jsx)(nr,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,eh.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,eh.jsxs)("div",{className:"flex justify-between items-center",children:[(0,eh.jsx)(r9,{font:"mono",weight:"bold",size:"20",children:t}),(0,eh.jsx)(vx,{label:"login settings",trigger:(0,eh.jsx)(ua,{icon:"hover",variant:"ghost",children:(0,eh.jsx)(us.shL,{})}),children:(0,eh.jsx)(vb,{onSelect:()=>a({loginWithCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,eh.jsx)(vl,{className:"w-full mt-2 mb-3"}),(0,eh.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,eh.jsxs)(uD,{children:[(0,eh.jsx)(Dj,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,eh.jsx)(vx,{trigger:(0,eh.jsx)(ua,{type:"button",children:(0,eh.jsx)(us.wGX,{})}),children:p.map(e=>(0,eh.jsx)(vb,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,eh.jsx)(Dj,{name:"password",form:u,fields:d,group:!1}),h&&(0,eh.jsx)(r9,{size:"14",color:"red",children:h.message}),(0,eh.jsx)(TL,{size:"small",form:u,children:"Unlock"})]})})]})})})}function DT(e){let{children:t}=e;return(0,eh.jsx)(nD,{children:t&&(0,eh.jsx)(ut.div,{className:"pointer-events-auto",initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.2},children:t})})}function DN(e){let{name:t,form:r,fields:n,size:i="medium",group:o=!0,before:a,children:s}=e,l=n[t],{setValue:u,onBlur:c,value:d,error:f}=Dx({name:t,field:l,form:r}),h=(0,eh.jsxs)("div",{className:"flex gap-1 items-center",children:[a,(0,eh.jsx)(xr,{"aria-label":t,name:t,size:i,checked:d,state:f?"invalid":r.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{u(e,!0)},onBlur:c}),s]});return o?(0,eh.jsx)(TD,{title:l.title,name:t,form:r,className:"pb-[1.5px]",children:h}):h}function DR(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6,showFiat:h}=a,{setValue:p,onBlur:m,value:v,error:g}=Dx({name:t,field:a,form:r}),y=(0,ep.useMemo)(()=>s?new(yT())(s):u&&"boolean"!=typeof u?new(yT())(u):l&&"boolean"!=typeof l?new(yT())(l):void 0,[s,u,l]),x=(0,eh.jsx)(yL,{name:t,size:i,sc:v,units:c,showFiat:h,decimalsLimitSc:d,decimalsLimitFiat:f,readOnly:a.readOnly,error:g,changed:r.formState.dirtyFields[t],placeholder:y,onChange:e=>{p(e,!0)},onBlur:m});return o?(0,eh.jsx)(TD,{title:a.title,name:t,form:r,children:x}):x}let DD={address:"",siacoin:void 0,includeFee:!1};function DL(e){let{hastings:t,includeFee:r,fee:n}=e;return r?t:t.plus(n)}function DF(e){let{address:t,hastings:r,fee:n,transactionId:i}=e,o=r.plus(n);return(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,eh.jsx)(P6,{testId:"address",value:t,type:"address"})]}),(0,eh.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"amount",size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,eh.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"networkFee",size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,eh.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"total",size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,eh.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,eh.jsx)(r9,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,eh.jsx)(P6,{testId:"transactionId",value:i,type:"transaction"})]})]})}function DZ(e){let{activeStep:t,steps:r,onChange:n}=e,i=r.findIndex(e=>e.id===t),o=r.length-1;return(0,eh.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,eh.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,eh.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),r.map((e,r)=>{let{id:a,label:s}=e,l=t===a,u=i>=r,c=r===o,d=0===r,f=u&&i!==o;return(0,eh.jsxs)("div",{className:(0,tp.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(r/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&n(a)},children:[(0,eh.jsx)(r9,{color:l?"contrast":"verySubtle",className:(0,tp.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,eh.jsx)("div",{className:(0,tp.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,eh.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function DV(e){let{data:{address:t,hastings:r},fee:n,transactionId:i}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(DF,{address:t,hastings:r,fee:n,transactionId:i}),(0,eh.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.Z$8,{})}),(0,eh.jsx)(r9,{children:"Transaction successfully broadcasted."})]})]})}let Dz={address:"",hastings:new(yT())(0)};function DI(e){let{trigger:t,open:r,onOpenChange:n,balance:i,fee:o,send:a}=e,[s,l]=(0,ep.useState)("setup"),[u,c]=(0,ep.useState)(),[d,f]=(0,ep.useState)(Dz),h=function(e){let{balance:t,fee:r,onComplete:n}=e,i=(0,Dp.cI)({defaultValues:DD}),o=async e=>{if(!e.siacoin||!t)return;let i=e.includeFee?(0,Ek.qN)(e.siacoin).minus(r):(0,Ek.qN)(e.siacoin),o=DL({hastings:i,includeFee:e.includeFee,fee:r});t.isLessThan(o)||n({address:e.address,hastings:i})},a=function(e){let{balance:t,fee:r}=e;return{address:{title:"Address",type:"text",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{isValidAddress:e=>(0,Ek.At)(e)||"Invalid address"}}},siacoin:{title:"Siacoin",type:"siacoin",placeholder:"100",validation:{required:"required",validate:{greaterThanZero:e=>!new(yT())(e||0).isZero()||"Must be greater than zero",lessThanBalance:(e,n)=>DL({hastings:(0,Ek.qN)(e||0),includeFee:n.includeFee,fee:r}).isLessThan(t||0)||"Not enough funds in wallet"}}},includeFee:{type:"boolean",title:"Include fee",validation:{}}}}({balance:t,fee:r}),s=i.handleSubmit(o),l=i.watch("includeFee"),u=i.watch("siacoin"),c=(0,Ek.qN)(u||0);return{el:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(Dj,{form:i,fields:a,size:"medium",name:"address",autoComplete:"off"}),(0,eh.jsx)(DR,{form:i,fields:a,name:"siacoin"}),(0,eh.jsxs)("div",{className:"flex items-center",children:[(0,eh.jsx)(DN,{name:"includeFee",form:i,size:"small",fields:a,group:!1,children:(0,eh.jsx)(r9,{size:"14",color:"contrast",children:"Include fee"})}),(0,eh.jsx)(yF,{children:"Include or exclude the network fee from the above transaction value."}),(0,eh.jsx)("div",{className:"flex flex-1"})]}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,eh.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",children:"Network fee"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"networkFee",size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,eh.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,eh.jsx)(r9,{color:"verySubtle",children:"Total"}),(0,eh.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,eh.jsx)(P9,{testId:"total",size:"14",value:DL({hastings:c,includeFee:l,fee:r}),variant:"value",dynamicUnits:!1})})]})]})]}),reset:i.reset,form:i,submit:s}}({balance:i,fee:o,onComplete:e=>{f(e),l("confirm")}}),p=function(e){let{send:t,params:r,fee:n,onConfirm:i}=e,{address:o,hastings:a}=r||{},s=(0,Dp.cI)({defaultValues:{}}),l=(0,ep.useCallback)(async()=>{let{transactionId:e,error:r}=await t({address:o,hastings:a,includeFee:!1});if(r){PJ({title:"Error sending siacoin",body:r});return}i({transactionId:e})},[i,o,a,t]),u=(0,ep.useMemo)(()=>s.handleSubmit(l),[s,l]);return{el:(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:(0,eh.jsx)(DF,{address:o,hastings:a,fee:n})}),form:s,reset:s.reset,submit:u}}({fee:o,params:d,send:a,onConfirm:e=>{let{transactionId:t}=e;c(t),l("done")}}),m=(0,ep.useMemo)(()=>"setup"===s?{submitLabel:"Generate transaction",el:h.el,form:h.form,reset:h.reset,submit:h.submit}:"confirm"===s?{submitLabel:"Broadcast transaction",el:p.el,form:p.form,reset:p.reset,submit:p.submit}:void 0,[s,h,p]);return(0,eh.jsx)(f_,{trigger:t,open:r,onOpenChange:e=>{e||(h.reset(),p.reset(),l("setup")),n(e)},title:"Send siacoin",onSubmit:m?m.submit:void 0,controls:m&&(0,eh.jsx)("div",{className:"flex flex-col gap-1",children:(0,eh.jsx)(TL,{form:m.form,children:m.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(DZ,{onChange:e=>l(e),activeStep:s,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,eh.jsx)(vl,{className:"w-full mt-4"}),"setup"===s&&h.el,"confirm"===s&&p.el,"done"===s&&(0,eh.jsx)(DV,{data:d,fee:o,transactionId:u})]})})}function DB(e){let{form:t,onOpenChange:r,defaultValues:n,initKey:i}=e,o=(0,ep.useCallback)(()=>{t.reset(n)},[t,n]),a=(0,ep.useCallback)(()=>{r(!1),t.reset(n)},[t,r,n]),s=(0,ep.useCallback)(e=>{e?(r(!0),setTimeout(()=>{o()},0)):a()},[a,o,r]),l=function(e){let[t,r]=(0,ep.useState)(e);return(0,ep.useEffect)(()=>{if(!e||!e.length)return;let n=!1;for(let r=0;r{l&&l.length&&l.every(e=>!!e)&&o()},[l]),{reset:o,closeAndReset:a,handleOpenChange:s}}let DH={address:""},DU={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function DW(e){let{trigger:t,open:r,connect:n,onOpenChange:i}=e,o=(0,Dp.cI)({mode:"all",defaultValues:DH}),{handleOpenChange:a,closeAndReset:s}=DB({form:o,onOpenChange:i,defaultValues:DH}),l=(0,ep.useCallback)(async e=>{let t=await n(e.address);t.error?PJ({title:t.error}):(PX({title:"Connected to peer"}),s())},[s,n]);return(0,eh.jsx)(f_,{trigger:t,title:"Connect peer",description:"Connect to a peer by IP address.",open:r,onOpenChange:a,contentVariants:{className:"w-[400px]"},onSubmit:o.handleSubmit(l),controls:(0,eh.jsx)("div",{className:"px-1",children:(0,eh.jsx)(TL,{form:o,size:"medium",className:"w-full",children:"Connect"})}),children:(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:(0,eh.jsx)(Dj,{form:o,fields:DU,name:"address",size:"medium"})})})}function D$(e){var t,r;let{id:n,transaction:i,trigger:o,open:a,onOpenChange:s}=e;return(0,eh.jsx)(f_,{title:P5((null==i?void 0:i.txType)?TS((0,Ek.pX)(i.txType)):"Transaction",n||"",16),trigger:o,open:a,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,eh.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,eh.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Inflow"}),(0,eh.jsx)(P9,{value:new(yT())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Outflow"}),(0,eh.jsx)(P9,{value:new(yT())((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,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Miner fee"}),(0,eh.jsx)(P9,{value:new(yT())((null==i?void 0:null===(r=i.raw.minerFees)||void 0===r?void 0:r.reduce((e,t)=>e.plus(t),new(yT())(0)))||0)})]}),(0,eh.jsx)("div",{className:"flex-1"}),(0,eh.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,eh.jsx)(r9,{children:"Timestamp"}),(0,eh.jsx)(r9,{children:(null==i?void 0:i.timestamp)?(0,Ek.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,eh.jsx)(uP,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,eh.jsx)(r9,{children:"Could not find transaction in wallet"})})}r(92683);var Dq=r(24511);Dq.Ry().shape({address:Dq.Z_().required("Required"),description:Dq.Z_().required("Required"),index:Dq.Rx().integer().required("Required")});var DY=r(38001);function DG(e){let{title:t,description:r,address:n}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,eh.jsx)(vS,{size:"20",font:"mono",children:t}),r&&(0,eh.jsx)(r9,{children:r}),(0,eh.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,eh.jsx)("div",{className:"absolute",children:(0,eh.jsx)(DY.Z,{size:200,value:n})})}),(0,eh.jsx)(P6,{type:"address",value:n})]})}function DK(e){let{address:t,isValidating:r,trigger:n,open:i,onOpenChange:o}=e;return(0,eh.jsx)(f_,{title:P5("Address",P3(t||"")||"",16),trigger:n,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:t||r?(0,eh.jsx)(DG,{address:t||""}):(0,eh.jsx)(r9,{children:"Could not retreive wallet address"})})})}function DX(e){let{isSynced:t,isWalletSynced:r,syncPercent:n,walletScanPercent:i}=e;return t?r?null:(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{color:"amber",children:(0,eh.jsx)(us.qdM,{})}),(0,eh.jsxs)(r9,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{color:"amber",children:(0,eh.jsx)(us.qdM,{})}),(0,eh.jsxs)(r9,{size:"14",children:["Blockchain is syncing (",n,"%), transaction data may be incomplete."]})]})}let DJ={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 DQ(){let{settings:e,setCurrency:t,currencyOptions:r}=(0,yD.Hv)();return(0,eh.jsx)(yz,{"aria-label":"currency fiat",name:"currencyFiat",disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:r.map(e=>{let{id:t,label:r}=e;return(0,eh.jsx)(yI,{value:t,children:r},t)})})}let D0=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function D1(){let{settings:e,setExternalDataSettings:t}=(0,yD.Hv)();return(0,eh.jsx)(yz,{"aria-label":"currency display",name:"currencyDisplay",disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:D0.map(e=>{let{id:t,label:r}=e;return(0,eh.jsx)(yI,{value:t,children:r},t)})})}function D2(e){let{open:t,onOpenChange:r,securityEl:n,showGpuSetting:i}=e,{settings:o,setRequestSettings:a,setExternalDataSettings:s,daemonExplorer:l,gpu:u}=(0,yD.Hv)();return(0,eh.jsx)(f_,{open:t,title:"App preferences",onOpenChange:r,contentVariants:{className:"w-[450px]"},children:(0,eh.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,eh.jsx)("div",{className:"flex flex-col gap-4",children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Display"}),(0,eh.jsx)(ne,{size:"14",children:"Configure visual and locale display preferences."}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Currency display"}),(0,eh.jsx)(D1,{})]}),(0,eh.jsx)(ne,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires a third-party API enabled under Privacy."})]})}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Fiat"}),(0,eh.jsx)(DQ,{})]}),(0,eh.jsx)(ne,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires a third-party API enabled under Privacy."})]})}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Theme"}),(0,eh.jsx)(bE,{})]}),(0,eh.jsx)(ne,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"GPU"}),(0,eh.jsx)(xr,{disabled:!u.canGpuRender,checked:u.canGpuRender&&u.isGpuEnabled,onCheckedChange:u.setIsGpuEnabled,size:"medium"})]}),(0,eh.jsxs)(ne,{size:"14",children:["Enable features that require a GPU."," ",u.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Security"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(ne,{size:"14",children:"Configure security preferences."}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Lock app"}),(0,eh.jsx)(xr,{size:"medium",checked:o.autoLock,onCheckedChange:e=>a({autoLock:e})}),(0,eh.jsxs)(yz,{disabled:!o.autoLock,value:String(o.autoLockTimeout),onChange:e=>{a({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,eh.jsx)(yI,{value:(0,Ek.sW)(5),children:"5 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(10),children:"10 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(20),children:"20 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(30),children:"30 minutes"}),(0,eh.jsx)(yI,{value:(0,Ek.sW)(60),children:"1 hour"})]})]}),(0,eh.jsx)(ne,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),n]})]}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Privacy"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(ne,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. Third-party APIs are optional and can be toggled on or off."}),(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Sia Central"}),(0,eh.jsx)(xr,{size:"medium",checked:o.siaCentral,onCheckedChange:e=>s({siaCentral:e})})]}),(0,eh.jsx)(ne,{size:"14",children:"The app fetches network average prices and host geolocation from the Sia Central API."})]})}),l.isSupported?(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-1 items-center justify-between",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Explorer"})]}),(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[l.api?(0,eh.jsx)(P6,{maxLength:30,value:l.api||"https://api.siascan.com"}):(0,eh.jsx)(r9,{size:"14",weight:"medium",color:"subtle",children:"Not configured"}),(0,eh.jsx)(xr,{size:"medium",disabled:!0,checked:l.enabled,onCheckedChange:e=>s({siaCentral:e})})]})]}),(0,eh.jsx)(ne,{size:"14",children:"The app fetches Siacoin exchange rates from the configured explorer API. This API is configured and enabled in the daemon's startup configuration."})]})}):(0,eh.jsx)(uu,{children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,eh.jsx)(r9,{children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(vS,{size:"20",className:"flex-1",children:"Siascan"}),(0,eh.jsx)(xr,{size:"medium",checked:o.siascan,onCheckedChange:e=>s({siascan:e})})]}),(0,eh.jsx)(ne,{size:"14",children:"The app fetches Siacoin exchange rates from the Siascan API."})]})})]})]}),(0,eh.jsx)(vl,{className:"w-full"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,eh.jsx)(r9,{size:"16",weight:"bold",children:"Help"}),(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,eh.jsx)(ne,{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,eh.jsxs)("div",{className:"flex gap-4",children:[(0,eh.jsxs)(vZ,{href:DJ.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.lq1,{}),"Website"]}),(0,eh.jsxs)(vZ,{href:DJ.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.RdX,{}),"Docs"]}),(0,eh.jsxs)(vZ,{href:DJ.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.Sfn,{}),"About"]}),(0,eh.jsxs)(vZ,{href:DJ.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,eh.jsx)(us.b47,{}),"Discord"]})]})]})]})]})})}function D4(e){let{balanceSc:t,isSynced:r,syncingMessage:n}=e;return t?r?(0,eh.jsx)(RI,{side:"bottom",balanceSc:t,children:(0,eh.jsx)(nr,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,eh.jsx)(Tr,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,eh.jsx)(ui,{content:n||"Blockchain is syncing, balance may be incorrect.",children:(0,eh.jsxs)(nr,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,eh.jsx)(r9,{color:"amber",children:(0,eh.jsx)(us.qdM,{})}),(0,eh.jsx)(Tr,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function D3(e){let{isSynced:t,isWalletSynced:r,syncPercent:n,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,eh.jsxs)(eh.Fragment,{children:[o&&(0,eh.jsx)(D4,{isSynced:t&&r,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(n,"%), balance may be incorrect."),balanceSc:o}),s&&(0,eh.jsxs)(ua,{"aria-label":"receive",size:"small",onClick:s,children:[(0,eh.jsx)(us.xHM,{}),"Receive"]}),(0,eh.jsxs)(ua,{"aria-label":"send",size:"small",variant:"accent",onClick:a,children:[(0,eh.jsx)(us.rW0,{}),"Send"]})]})}function D5(e,t){if(!e||!e.length)return[];let r=Object.keys(AE(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(r.forEach(r=>{let n=t[r],a=e[i-1][r];o[r]=n-a}),n.push(o))}):n=e,n}function D6(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-(0,Ek.Nr)(Number(e)),end:t}}let D8={"5m":e=>{let t=e+(0,Ek.sW)(5);return"5m interval from ".concat((0,Ek.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,Ek.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+(0,Ek.sW)(15);return"15m interval from ".concat((0,Ek.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,Ek.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+(0,Ek.yt)(1);return"Hour interval from ".concat((0,Ek.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,Ek.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+(0,Ek.yt)(24);return"Day interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},weekly:e=>{let t=e+(0,Ek.Nr)(7);return"Week interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},monthly:e=>{let t=e+(0,Ek.Nr)(30);return"Month interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},yearly:e=>{let t=e+(0,Ek.Nr)(365);return"Year interval from ".concat((0,Ek.rN)(e)," to ").concat((0,Ek.rN)(t))},default:e=>"".concat((0,Ek.rN)(e))};function D7(e){return D8[e]||D8.default}function D9(e){if(!e||!e.length)return{};let t=Object.keys(AE(e[0],"timestamp"));return e.sort((e,t)=>e.timestamp>t.timestamp?1:-1),{...t.reduce((t,r)=>({...t,[r]:function(e,t){var r,n;let i=(null===(r=t[0])||void 0===r?void 0:r[e])||0,o=(null===(n=t[t.length-1])||void 0===n?void 0:n[e])||0;return Le({total:t.reduce((t,r)=>t+(r[e]||0),0),start:i,end:o,count:t.length})}(r,e)}),{}),total:function(e,t){let r=Lt(e,t[0]),n=Lt(e,t[t.length-1]);return Le({total:t.reduce((t,r)=>t+Lt(e,r),0),start:r,end:n,count:t.length})}(t,e)}}function Le(e){let{total:t,start:r,end:n,count:i}=e,o=n-r;return{total:t,diff:o,change:0===r?void 0:o/r*100,latest:n,average:t/i}}function Lt(e,t){return e.reduce((e,r)=>e+((null==t?void 0:t[r])||0),0)}function Lr(e){let{balances:t,isLoading:r,chartType:n="area"}=e,{resolvedTheme:i}=(0,bw.F)(),o=(0,ep.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:EE.accent[800]}}:{sc:{label:"siacoin",color:EE.accentdark[800]}},[i]),a=(0,ep.useMemo)(()=>({data:D5(t,"none"),stats:D9(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,Ek.Vz)(e),formatTimestamp:D7("default"),formatTickY:e=>(0,Ek.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:n},isLoading:r}),[t,r,o,n]);return(0,eh.jsx)("div",{className:"relative",children:(0,eh.jsx)(A_,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:a.data,config:a.config})})}function Ln(e){let{peers:t,isLoading:r,connectPeer:n}=e;return(0,eh.jsx)(TA,{title:"Peers",actions:(0,eh.jsx)(ua,{onClick:n,children:"Connect"}),isLoading:r,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Li(e){let{size:t,label:r,enabled:n=!0,onChange:i,color:o}=e;return(0,eh.jsxs)("div",{className:(0,tp.cx)("flex gap-1.5 items-center",n?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(n?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!n),children:[o&&(0,eh.jsx)("div",{className:"relative top-px",children:(0,eh.jsx)(yW,{style:{backgroundColor:o}})}),(0,eh.jsx)(r9,{size:t,children:r})]})}let Lo={total:"total",average:"average",latest:"latest"};function La(e){let{category:t,label:r,color:n,sc:i,scFixed:o=2,value:a,extendedSuffix:s,valueFormat:l=e=>e.toFixed(2),defaultMode:u,enabledModes:c=["total","average","latest"],isLoading:d,showChange:f=!0}=e,[h,p]=(0,Ak.Z)("v0/datum/".concat(t,"/").concat(r),{defaultValue:u});return(0,eh.jsx)(TP,{isLoading:d,label:(0,eh.jsx)(Li,{label:r,color:n}),actions:(0,eh.jsx)(yz,{onChange:e=>p(e.currentTarget.value),defaultValue:h,children:c.map(e=>(0,eh.jsx)(yI,{value:e,children:Lo[e]},e))}),sc:(null==i?void 0:i[h])!==void 0?new(yT())(i[h]):void 0,scFixed:o,extendedSuffix:s,value:(null==a?void 0:a[h])!==void 0&&l?l(a[h]):void 0,comment:i?(0,eh.jsxs)("div",{className:"flex items-center gap-4",children:[(0,eh.jsx)(Tr,{tooltip:"Net change over time range:",fixedTipFiat:10,value:new(yT())(i.diff)}),f&&void 0!==i.change&&(0,eh.jsx)(ui,{content:"Percent change over time range",children:(0,eh.jsxs)(r9,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):a&&(0,eh.jsxs)("div",{className:"flex items-center gap-4",children:[(0,eh.jsx)(Tn,{tooltip:"Net change over time range:",format:e=>l(e.toNumber()),value:new(yT())(a.diff)}),f&&void 0!==a.change&&(0,eh.jsx)(ui,{content:"Percent change over time range",children:(0,eh.jsxs)(r9,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[a.change.toFixed(2),"%"]})})]})})}function Ls(e){let{children:t,bleed:r}=e;return(0,eh.jsx)("div",{className:(0,tp.cx)(r?"-mx-5 overflow-hidden":""),children:(0,eh.jsx)(fC,{children:(0,eh.jsx)("div",{className:(0,tp.cx)("flex gap-4 py-4",r?"px-5 w-fit":""),children:t})})})}function Ll(e){let{children:t,variant:r,align:n}=e;return(0,eh.jsx)("div",{className:"relative",style:{top:"primary"===r?"6px":void 0,left:"start"===n?"0px":void 0,right:"end"===n?"0px":void 0},children:(0,eh.jsx)(r9,{size:"10",color:"contrast",dir:"start"===n?"rtl":"ltr",weight:"primary"===r?"semibold":"regular",ellipsis:!0,children:t})})}function Lu(e){let{date:t,align:r,variant:n}=e;return t?(0,eh.jsx)(Ll,{variant:n,align:r,children:(0,Ek.rN)(t)}):null}function Lc(e){let{blockHeight:t,align:r,variant:n}=e;return t?(0,eh.jsx)(Ll,{variant:n,align:r,children:t.toLocaleString()}):null}function Ld(e){let{label:t,currentHeight:r,range:n,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=n.endHeight-n.startHeight,f=(0,Ek.pp)(d),h=(0,Ek.jr)(r,n.startHeight),p=(0,Ek.jr)(r,i),m=(0,Ek.jr)(r,o),v=(p-h)/f,g=(m-h)/f;return(0,eh.jsxs)("div",{className:(0,tp.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Lf(v),width:Lf(g-v)},children:[(0,eh.jsx)("div",{className:(0,tp.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,eh.jsx)("div",{className:(0,tp.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Lf(1-g)}:{left:Lf(v)},children:[(0,eh.jsx)(Lc,{blockHeight:i,align:"start",variant:"primary"}),(0,eh.jsx)(Ll,{variant:"primary",children:t}),(0,eh.jsx)(Lc,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,eh.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Lf(1-g)}:{left:Lf(v)},children:[(0,eh.jsx)(Lu,{date:p,align:"start",variant:"secondary"}),(0,eh.jsx)(Lu,{date:m,align:"start",variant:"secondary"})]}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Lf(1-g)}:{left:Lf(v)},children:[(0,eh.jsx)(Lu,{date:p,align:"start",variant:"secondary"}),(0,eh.jsx)(Lu,{date:m,align:"start",variant:"secondary"})]})]})}function Lf(e){return"".concat(100*e,"%")}function Lh(e){var t;let{currentHeight:r,eventHeight:n,range:i,label:o,bottomLabel:a,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!n&&n>r,d=n&&!c&&r-n<6,f=i.endHeight-i.startHeight,h=(0,Ek.pp)(f),p=(0,Ek.jr)(r,i.startHeight),m=n?(0,Ek.jr)(r,n):0;return n?(0,eh.jsx)("div",{className:(0,tp.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,eh.jsxs)("div",{className:(0,tp.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,eh.jsx)("div",{className:(0,tp.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,eh.jsx)("div",{className:(0,tp.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,eh.jsx)("div",{className:(0,tp.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,eh.jsx)(Lc,{blockHeight:n,align:"start",variant:"primary"}),(0,eh.jsx)(Ll,{variant:"primary",children:o})]}),(0,eh.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,eh.jsx)(Lu,{date:m,align:"start",variant:"secondary"}),a&&(0,eh.jsx)(Ll,{variant:"secondary",children:a})]})]})}):null}function Lp(e){let{currentHeight:t,contractHeightStart:r,contractHeightEnd:n,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-r<6;return(0,eh.jsx)("div",{className:"group/main relative w-full",children:(0,eh.jsx)("div",{className:"relative py-6",children:(0,eh.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,eh.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,eh.jsxs)("div",{className:"group/segments",children:[(0,eh.jsx)(Ld,{label:"contract duration",currentHeight:t,startHeight:r,endHeight:n,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,eh.jsx)(Ld,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,eh.jsx)(Lh,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:r,range:l,color:u?"amber":"blue",className:"z-20"}),(0,eh.jsx)(Lh,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,eh.jsx)(Lh,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,eh.jsx)(Lh,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Lm=r(36446),Lv=r(45904),Lg=function(e,t){return!!(null==e?0:e.length)&&(0,Lv.Z)(e,t,0)>-1},Ly=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n=200&&(o=Lb.Z,a=!1,t=new Lm.Z(t));t:for(;++i{e.stopPropagation(),i(r)},children:(0,eh.jsx)(us.xVB,{})}),(0,eh.jsx)(ua,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(r)},children:(0,eh.jsx)(us.pHg,{})})]})]})}function LS(e){let{title:t,children:r}=e;return(0,eh.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,eh.jsx)(vS,{anchorLink:!0,size:"24",children:t}),(0,eh.jsx)(nr,{className:"p-6",children:(0,eh.jsx)("div",{className:"flex flex-col gap-6",children:(0,eh.jsx)(RM,{separator:(0,eh.jsx)(vl,{className:"w-full my-3"}),children:r})})})]})}function LO(e){let{id:t,title:r,description:n,control:i}=e;return(0,eh.jsxs)("div",{className:"flex gap-10 justify-between","data-testid":t,children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,eh.jsx)(vS,{id:t||r,anchorLink:!0,size:"20",children:r}),(0,eh.jsx)(ne,{size:"14",children:n})]}),(0,eh.jsx)("div",{className:"",children:i})]})}function L_(e){let{open:t,params:r,trigger:n,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=r||{},c=(0,Dp.cI)(),d=(0,ep.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,eh.jsx)(f_,{title:a,trigger:n,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,eh.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,eh.jsx)("div",{className:"flex gap-1 justify-end",children:(0,eh.jsx)(TL,{variant:s,form:c,size:"small",children:l})})]})})})}function LM(e){let{name:t,peerCount:r,isSynced:n,nodeBlockHeight:i,connectPeer:o}=e;return(0,eh.jsxs)("div",{className:"flex justify-between items-center",children:[(0,eh.jsx)(r9,{font:"mono",weight:"bold",size:"20",children:t}),(0,eh.jsxs)("div",{className:"flex items-center",children:[r?(0,eh.jsxs)(ua,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(r," connected peers"),children:[(0,eh.jsx)(r9,{color:"subtle",children:r.toLocaleString()}),(0,eh.jsx)(us.RK4,{})]}):null,i&&n?(0,eh.jsx)(ui,{content:"Blockchain is synced",children:(0,eh.jsx)("div",{className:"relative left-2",children:(0,eh.jsxs)(ua,{variant:"ghost",state:"waiting",children:[(0,eh.jsx)(r9,{color:"subtle",children:i.toLocaleString()}),(0,eh.jsx)(r9,{color:"green",children:(0,eh.jsx)(us.Y3p,{})})]})})}):null]})]})}function LA(e){let{nodeBlockHeight:t,networkBlockHeight:r,moreThan100BlocksToSync:n,percent:i}=e;return(0,eh.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,eh.jsx)(gM,{variant:"accent",value:t&&r?t:0,max:r||1,className:""}),(0,eh.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,eh.jsx)(r9,{color:"subtle",size:"10",children:"Syncing..."}),t&&r?n?(0,eh.jsx)(r9,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(r.toLocaleString()," (").concat(i,"%)")}):(0,eh.jsx)(r9,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function LP(e){let{name:t,peerCount:r,connectPeer:n,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,eh.jsx)(xP,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,eh.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,eh.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,eh.jsxs)(r9,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,eh.jsx)(vV,{size:30})]}),children:(0,eh.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,eh.jsx)(LM,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:r,connectPeer:n}),i?(0,eh.jsx)(vl,{className:"w-full mb-0.5"}):(0,eh.jsx)(LA,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(r9,{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,eh.jsx)(vl,{className:"w-full mb-1"})]}),c]})})}function LT(e){let{testnetName:t}=e;return(0,eh.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,eh.jsx)(r9,{color:"lo",children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsxs)(r9,{size:"14",color:"lo",children:["You are on the ",t," testnet."]})]})}function LN(e){let{type:t,label:r,link:n,tip:i,icon:o,value:a,onClick:s,format:l,decimalsLimit:u,units:c}=e;return(0,eh.jsxs)("div",{className:"flex justify-between items-center",children:[(0,eh.jsx)(ui,{align:"start",side:"bottom",content:i,children:(0,eh.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,eh.jsx)(r9,{className:"flex relative",children:o||(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(r9,{size:"12",ellipsis:!0,children:n?(0,eh.jsx)(vZ,{href:n,target:"_blank",children:r}):r})]})}),(0,eh.jsx)("div",{role:"button",tabIndex:0,"aria-label":r,className:(0,tp.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,eh.jsx)(Tr,{value:a,variant:"value",size:"12",fixed:u,dynamicUnits:!1,showTooltip:!1,tipSide:"bottom"}):(0,eh.jsx)(Tn,{value:a,variant:"value",size:"12",format:l||(e=>"".concat(yN(e,u)).concat(c?" ".concat(c):"")),tipSide:"bottom"})})]})}function LR(e){let{form:t,fields:r,name:n}=e;return(0,ep.useCallback)((e,i)=>{!function(e){var t;let{form:r,fields:n,name:i,value:o,options:a}=e;r.setValue(i,o,"boolean"==typeof a?a?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:a),null===(t=n[i].trigger)||void 0===t||t.forEach(e=>r.trigger(e))}({form:t,fields:r,name:n,value:e,options:i})},[n,t,r])}function LD(e){let{name:t,form:r,fields:n}=e,{average:i,averageTip:o,suggestionLabel:a,suggestion:s,suggestionTip:l,before:u,after:c,tipsDecimalsLimitSc:d=0}=n[t],f=LR({name:t,fields:n,form:r});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,eh.jsx)(u||(()=>null),{name:t,form:r,fields:n}),(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(DR,{name:t,fields:n,form:r,group:!1,size:"small"}),i&&(0,eh.jsx)(LN,{type:"siacoin",label:"Network average",tip:o||"Averages provided by Sia Central.",decimalsLimit:d,value:(0,Ek.qN)(i),onClick:()=>{f(i,!0)}}),s&&l&&(0,eh.jsx)(LN,{type:"siacoin",label:a||"Suggestion",tip:l,decimalsLimit:d,value:(0,Ek.qN)(s),onClick:()=>{f(s,!0)}}),(0,eh.jsx)(c||(()=>null),{name:t,form:r,fields:n})]})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LL(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimit:d=2,disableGroupSeparators:f,autoComplete:h,prefix:p}=a,{setValue:m,onBlur:v,error:g,value:y}=Dx({form:r,field:a,name:t}),x=(0,ep.useMemo)(()=>s?new(yT())(s):u&&"boolean"!=typeof u?new(yT())(u):l&&"boolean"!=typeof l?new(yT())(l):void 0,[s,u,l]),b=(0,eh.jsx)(yR,{prefix:p,name:t,value:y,units:c,size:i,decimalsLimit:d,disableGroupSeparators:f,autoComplete:h,placeholder:x?new(yT())(x):void 0,state:g?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:e=>{m(void 0!==e?new(yT())(e):void 0,!0)},onBlur:v});return o?(0,eh.jsx)(TD,{title:a.title,name:t,form:r,wrap:!0,children:b}):b}function LF(e){let{name:t,form:r,fields:n}=e,{average:i,averageTip:o,suggestionLabel:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,after:c,units:d}=n[t],f=LR({form:r,fields:n,name:t});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(LL,{name:t,fields:n,form:r,group:!1}),i&&(0,eh.jsx)(LN,{type:"number",label:"Network average",tip:o||"Averages provided by Sia Central.",decimalsLimit:u,value:i,onClick:()=>{f(i,!0)}}),s&&l&&(0,eh.jsx)(LN,{type:"number",label:a||"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}}),(0,eh.jsx)(c||(()=>null),{name:t,form:r,fields:n})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LZ(e){let{label:t,link:r,tip:n,value:i,onClick:o}=e;return(0,eh.jsxs)("div",{className:"flex justify-between gap-1 items-center overflow-hidden",children:[(0,eh.jsx)("div",{children:(0,eh.jsx)(ui,{align:"start",side:"bottom",content:n,children:(0,eh.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,eh.jsx)(r9,{className:"flex relative",children:(0,eh.jsx)(us.RdX,{})}),(0,eh.jsx)(r9,{size:"12",children:r?(0,eh.jsx)(vZ,{href:r,target:"_blank",children:t}):t})]})})}),(0,eh.jsx)("div",{className:"overflow-hidden",children:(0,eh.jsx)(r9,{role:"button",tabIndex:0,"aria-label":t,className:"flex cursor-pointer items-center",onClick:o,size:"12",children:(0,eh.jsx)(uN,{ellipsis:!0,className:"block",children:i})})})]})}function LV(e){let{name:t,form:r,fields:n,type:i}=e,{suggestionLabel:o,suggestion:a,suggestionTip:s}=n[t],l=LR({form:r,name:t,fields:n});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(Dj,{name:t,form:r,fields:n,type:i,group:!1}),a&&s&&(0,eh.jsx)(LZ,{label:o||"Suggestion",tip:s,value:a,onClick:()=>{l(a,!0)}})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function Lz(e){let{name:t,form:r,fields:n}=e,{suggestionLabel:i,suggestion:o,suggestionTip:a}=n[t],s=LR({form:r,name:t,fields:n});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)("div",{className:"flex justify-end w-full",children:(0,eh.jsx)(DN,{name:t,form:r,fields:n,group:!1})}),void 0!==o&&a&&(0,eh.jsx)(LZ,{label:i||"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LI(e){let{name:t,form:r,fields:n,size:i="small",group:o=!0}=e,a=n[t],{options:s}=a,{ref:l,onChange:u,onBlur:c,error:d}=Dx({name:t,form:r,field:a}),f=(0,eh.jsx)(yz,{ref:l,name:t,size:i,state:d?"invalid":r.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,eh.jsx)(yI,{value:e.value,children:e.label},e.value))});return o?(0,eh.jsx)(TD,{title:a.title,name:t,form:r,children:f}):f}function LB(e){let{name:t,form:r,fields:n}=e,{suggestionLabel:i,suggestion:o,suggestionTip:a}=n[t],s=LR({form:r,name:t,fields:n});return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)("div",{className:"flex justify-end w-full",children:(0,eh.jsx)(LI,{name:t,fields:n,form:r,group:!1,size:"small"})}),o&&a&&(0,eh.jsx)(LZ,{label:i||"Suggestion",tip:a,value:o,onClick:()=>{s(o,!0)}})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LH(e){let{name:t,form:r,fields:n}=e,i=n[t],o=i.custom||(()=>null);return"custom"===i.type?(0,eh.jsx)(o,{form:r,name:t,fields:n}):"number"===i.type?(0,eh.jsx)(LF,{form:r,name:t,fields:n}):"siacoin"===i.type?(0,eh.jsx)(LD,{form:r,name:t,fields:n}):"text"===i.type?(0,eh.jsx)(LV,{form:r,name:t,fields:n}):"password"===i.type?(0,eh.jsx)(LV,{form:r,type:"password",fields:n,name:t}):"boolean"===i.type?(0,eh.jsx)(Lz,{form:r,name:t,fields:n}):"select"===i.type?(0,eh.jsx)(LB,{form:r,name:t,fields:n}):null}function LU(e){let{name:t,form:r,fields:n,autoVisibility:i}=e,o=n[t],a=Dw({form:r,fields:n,name:t});return!i||a?(0,eh.jsx)(LO,{id:t,title:o.title,description:o.description,control:(0,eh.jsx)(LH,{form:r,name:t,fields:n})}):null}function LW(e){let{title:t,category:r,form:n,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,o]=e;return o.category===r&&Dw({form:n,fields:i,name:t})}).map(e=>{let[t]=e;return t});return 0===o.length?null:(0,eh.jsx)(LS,{title:t,children:o.map(e=>(0,eh.jsx)(LU,{name:e,form:n,fields:i},e))})}function L$(e){let{name:t,form:r,fields:n,size:i="small",currency:o,group:a=!0}=e,s=(0,yD.J)({currency:o||void 0}).rate,l=n[t],{placeholder:u,decimalsLimit:c=2,units:d}=l,{setValue:f,onBlur:h,error:p,value:m}=Dx({form:r,field:l,name:t}),v=(0,ep.useMemo)(()=>yD.mV.find(e=>e.id===o),[o]),g=r.formState.dirtyFields[t],y=(0,eh.jsxs)("div",{className:(0,tp.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",l.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",l.readOnly?"pointer-events-none":"",l.readOnly?"border-blue-400 dark:border-blue-400":p?"border-red-500 dark:border-red-400":g?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,eh.jsx)(yR,{name:t,value:m,units:"".concat((null==v?void 0:v.label)||"?").concat(d||""),prefix:null==v?void 0:v.prefix,size:i,variant:"ghost",focus:"none",readOnly:l.readOnly,decimalsLimit:(null==v?void 0:v.fixed)||c,placeholder:u?new(yT())(u):void 0,state:p?"invalid":g?"valid":"default",onChange:e=>{f(void 0!==e?new(yT())(e):void 0,!0)},onBlur:h}),s&&(0,eh.jsx)(Lq,{value:m,currency:o,rate:s})]});return a?(0,eh.jsx)(TD,{title:l.title,name:t,form:r,wrap:!0,children:y}):y}function Lq(e){let{value:t,rate:r}=e,n=t&&!t.isZero()&&r&&!r.isZero(),i=n?(0,Ek.qN)(t).div(r):new(yT())(0);return(0,eh.jsxs)(nr,{className:"flex gap-1 items-center justify-between relative overflow-hidden px-2 py-1.5 rounded-t-none",children:[(0,eh.jsx)(ui,{side:"bottom",content:"The pinned value's current siacoin value",children:(0,eh.jsxs)(r9,{className:"flex gap-1 relative",size:"12",children:[(0,eh.jsx)(us.oce,{}),"Current value"]})}),n?(0,eh.jsx)(P9,{value:i,size:"12",variant:"value",fixed:0,dynamicUnits:!0,hastingUnits:!1,tipSide:"bottom"}):(0,eh.jsx)(r9,{size:"12",ellipsis:!0,color:n?"contrast":"verySubtle",children:"-"})]})}function LY(e){let{name:t,form:r,fields:n,currency:i}=e,{average:o,averageTip:a,suggestionLabel:s,suggestion:l,suggestionTip:u,before:c,after:d}=n[t],f=LR({form:r,fields:n,name:t}),h=(0,yD.J)({currency:i||void 0}).rate,p=(0,ep.useMemo)(()=>o&&"boolean"!=typeof o&&h?new(yT())(o).times(h):void 0,[o,h]),m=(0,ep.useMemo)(()=>l&&"boolean"!=typeof l&&h?new(yT())(l).times(h):void 0,[l,h]);return(0,eh.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,eh.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,eh.jsx)(c||(()=>null),{name:t,form:r,fields:n}),(0,eh.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,eh.jsx)(L$,{name:t,fields:n,form:r,group:!1,currency:i}),p&&(0,eh.jsx)(LN,{type:"siacoin",label:"Network average",tip:a||"Averages provided by Sia Central.",value:p,decimalsLimit:0,onClick:()=>{f(o,!0)}}),m&&u&&(0,eh.jsx)(LN,{type:"siacoin",label:s||"Suggestion",tip:u,decimalsLimit:0,value:m,onClick:()=>{f(l,!0)}}),(0,eh.jsx)(d||(()=>null),{name:t,form:r,fields:n})]})]}),(0,eh.jsx)("div",{className:"h-[20px]",children:(0,eh.jsx)(TN,{form:r,name:t})})]})}function LG(e){let{form:t,remoteValues:r}=e,n=(0,ep.useCallback)(()=>{if(t.formState.isSubmitting||!r)return;let e=t.getValues();for(let[e,n]of Object.entries(r))t.resetField(e,{defaultValue:n,keepDirty:!0,keepError:!0,keepTouched:!0});for(let[r,n]of Object.entries(e))t.getFieldState(r).isDirty&&t.setValue(r,n)},[t,r]);(0,ep.useEffect)(()=>{n()},[r])}function LK(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,r]=e;return!!r}).length}}function LX(e){let{form:t,remoteValues:r}=e,[n,i]=(0,ep.useState)(!1),{isUnlockedAndAuthedRoute:o}=(0,yD.Hv)();(0,ep.useEffect)(()=>{o||i(!1)},[o]),(0,ep.useEffect)(()=>{!n&&r&&(i(!0),t.reset(r))},[r])}us.lg1,us.eHR,us.I$H,us.KiD,us.P5r,us.CCF,us.w9S,us.EL$,us.aPl,us.wEY,us.EOT,us.kSc,us.W$S,us.lJ7,us.ORH,us.ka0,us.BdP,us.d19,us.Mes,us.VUg,us.U_S,us.T85;let LJ=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,ep.useState)(!0),l=(0,ep.useRef)(!1),u=(0,ep.useRef)(0);return(0,ep.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,ep.createElement)(rU,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:(0,ep.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,ep.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:(0,ep.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function LQ(e){let{children:t}=e,[r,n]=(0,ep.useState)(!1);return(0,ep.useEffect)(()=>{n(!0)},[]),(0,eh.jsx)("div",{children:r?t:null})}function L0(e){let{className:t,daemonExplorerInfoRoute:r,passwordProtectRequestHooks:n,fallback:i,children:o,lockRoutes:a}=e;return(0,eh.jsx)(LQ,{children:(0,eh.jsx)(yD.kl,{fallback:i,children:(0,eh.jsx)(bw.f,{attribute:"class",children:(0,eh.jsx)(LJ,{children:(0,eh.jsx)(yD.bW,{lockRoutes:a,daemonExplorerInfoRoute:r,passwordProtectRequestHooks:n,children:(0,eh.jsxs)("div",{id:"root",className:t,children:[(0,eh.jsx)(P0,{}),o]})})})})})})}var L1=r(83864),L2=r(74994),L4=L1.Z&&1/(0,L2.Z)(new L1.Z([,-0]))[1]==1/0?function(e){return new L1.Z(e)}:function(){},L3=function(e,t,r){var n=-1,i=Lg,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=Ly;else if(o>=200){var u=t?null:L4(e);if(u)return(0,L2.Z)(u);a=!1,i=Lb.Z,l=new Lm.Z}else l=t?[]:s;t:for(;++n=120&&c.length>=120)?new Lm.Z(a&&c):void 0}c=e[0];var d=-1,f=s[0];t:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,ep.useCallback)(e=>{l(t=>{var r;return(r=[...t,...e]).length?L3(r):[]})},[l]),d=(0,ep.useCallback)(e=>{l(t=>Lk(t,e))},[l]),f=(0,ep.useCallback)(()=>{l(n)},[l,n]),h=(0,ep.useMemo)(()=>r.filter(e=>!e.fixed),[r]),p=(0,ep.useMemo)(()=>r.filter(e=>e.fixed||s.includes(e.id)),[s,r]),m=(0,ep.useMemo)(()=>p.map(e=>e.id),[p]),{sortField:v,sortDirection:g,setSortField:y,setSortDirection:x,toggleSort:b}=function(e,t){let{defaultSortField:r,defaultSortDirection:n,sortOptions:i,visibleColumnIds:o}=t,[a,s]=(0,Ak.Z)("".concat(e,"/sortField"),{defaultValue:r}),[l,u]=(0,Ak.Z)("".concat(e,"/sortDirection"),{defaultValue:n||"desc"});return{toggleSort:(0,ep.useCallback)(e=>{if(a!==e){s(e),u("asc");return}u(e=>"desc"===e?"asc":"desc")},[a,s,u]),setSortDirection:u,setSortField:s,sortableColumns:(0,ep.useMemo)(()=>i?L7(i.map(e=>e.id),o):[],[i,o]),sortField:a,sortDirection:l}}(e,{defaultSortField:i,defaultSortDirection:o,sortOptions:a,visibleColumnIds:m}),w=(0,ep.useMemo)(()=>a?L7(a.map(e=>e.id),m):[],[a,m]);return{configurableColumns:h,visibleColumnIds:m,visibleColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:x,setSortField:y,sortableColumns:w,sortField:v,setColumnsVisible:c,setColumnsHidden:d,sortDirection:g,resetDefaultColumnVisibility:f}}function Fe(){let e=(0,vE.xj)(),t=(0,vE.jD)(),r=(0,vE.lr)();return(0,ep.useCallback)(()=>{if(!e||!t)return;let n=new URLSearchParams(r),i=n.toString();n.delete("limit"),n.delete("offset"),n.delete("marker");let o=n.toString(),a=i?"".concat(t,"?").concat(i):t,s=o?"".concat(t,"?").concat(o):t;s!==a&&e.replace(s)},[e,r,t])}function Ft(){let[e,t]=(0,ep.useState)([]),r=Fe(),n=(0,ep.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),r()},[t,r]),i=(0,ep.useCallback)(()=>{t([]),r()},[t,r]),o=(0,ep.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),r()},[t,r]),a=(0,ep.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),r())},[t,e,r]);return{filters:e,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Fr(e){let{dataset:t,filters:r,sortField:n,sortDirection:i,limit:o,offset:a}=e,s=(0,ep.useMemo)(()=>{if(!t)return;let e=Object.entries(r).map(e=>{let[t,r]=e;return r}),o=e.length?t.filter(t=>{for(let r of e)if(!r.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let r=e[n],o=t[n];return"desc"===i?void 0===r?1:void 0===o?-1:r instanceof yT()&&o instanceof yT()?r.lte(o)?1:-1:r<=o?1:-1:void 0===r?-1:void 0===o?1:r instanceof yT()&&o instanceof yT()?r.gte(o)?1:-1:r>=o?1:-1})]},[t,r,n,i]),l=(0,ep.useMemo)(()=>{if(s)return s.slice(a,a+o)},[s,a,o]);return{datasetFiltered:s,datasetPage:l}}function Fn(){let[e,t]=(0,ep.useState)([]),r=Fe(),n=(0,ep.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),r()},[t,r]),i=(0,ep.useCallback)(()=>{t([]),r()},[t,r]),o=(0,ep.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),r()},[t,r]),a=(0,ep.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),r())},[e,t,r]);return{filters:e,setFilter:n,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Fi(e){let t=(0,vE.lr)();return{limit:Number(t.get("limit")||e),offset:Number(t.get("offset")||0)}}var Fo=r(1619),Fa=r(71310),Fs=r(27491),Fl=function(e,t){var r={};return t=(0,Fs.Z)(t,3),(0,Fa.Z)(e,function(e,n,i){(0,Fo.Z)(r,n,t(e,n,i))}),r};function Fu(e){let[t,r]=(0,ep.useState)({}),n=(0,ep.useMemo)(()=>Object.keys(t),[t]),i=(0,ep.useMemo)(()=>Object.entries(t).map(e=>{let[t,r]=e;return r}).sort((e,t)=>e.index-t.index),[t]),[[o,a],s]=(0,ep.useState)([void 0,void 0]),l=(0,ep.useCallback)(()=>{s([void 0,void 0])},[]),u=(0,ep.useCallback)((e,t)=>{s([e,t])},[]),c=(0,ep.useMemo)(()=>null==e?void 0:e.map(e=>e.id).join(","),[e]);(0,ep.useEffect)(()=>{l()},[c]);let d=(0,ep.useCallback)((n,s)=>{if(!e)return;let c=e.findIndex(e=>e.id===n);if(-1===c)return;let d=e[c],f={row:d,index:c},h=!!(null==s?void 0:s.ctrlKey)||!!(null==s?void 0:s.metaKey),p=!!(null==s?void 0:s.shiftKey),m={...t};if(h){if(m[d.id]){var v,g;delete m[d.id];let e=(v=i,g=c,v.find(e=>e.index>g)||[...v].reverse().find(e=>e.indexFc({dataset:e,selectionMap:t}),[e,t]),h=(0,ep.useMemo)(()=>e?n.some(t=>!e.some(e=>e.id===t)):n.length>0,[e,n]),p=(0,ep.useMemo)(()=>!!e&&e.some(e=>t[e.id]),[e,t]),m=(0,ep.useCallback)(()=>{e&&r(t=>{let r={...t},n=Fc({dataset:e,selectionMap:t});return!1===n||"indeterminate"===n?e.forEach((e,t)=>{r[e.id]={row:e,index:t}}):e.forEach(e=>{delete r[e.id]}),r})},[e]),v=(0,ep.useCallback)(e=>{r(t=>{let r={...t};return e.forEach(e=>{delete r[e]}),r}),e.find(e=>e===(null==o?void 0:o.row.id))&&l()},[null==o?void 0:o.row.id,l]),g=(0,ep.useCallback)(()=>{r({}),l()},[l]),y=(0,ep.useMemo)(()=>n.length,[n]);return{onSelect:d,onSelectPage:m,selection:(0,ep.useMemo)(()=>Fl(t,e=>e.row),[t]),selectedIds:n,isPageAllSelected:f,selectionCount:y,someSelectedRowsOutsideCurrentPage:h,someSelectedOnCurrentPage:p,deselect:v,deselectAll:g}}function Fc(e){let{dataset:t,selectionMap:r}=e;return!!t&&(!!t.every(e=>r[e.id])||!!t.some(e=>r[e.id])&&"indeterminate")}function Fd(e){let{multiSelect:t,children:r,entityWord:n,entityWordPlural:i}=e;return t.selectionCount>0?(0,eh.jsx)(DT,{children:(0,eh.jsxs)(nr,{"aria-label":n+" multi-select menu",className:"pl-3 pr-2 py-2 min-w-[250px] flex gap-2 items-center rounded-lg light:bg-black pointer-events-auto",children:[!!t.selectionCount&&(0,eh.jsx)(r9,{size:"14",children:"".concat((0,Ek._6)(t.selectionCount,n,{plural:i})," selected").concat(t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?" on this and other pages":!t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?"":t.someSelectedRowsOutsideCurrentPage&&!t.someSelectedOnCurrentPage?" on other pages":"")}),(0,eh.jsx)("div",{className:"flex-1"}),r,(0,eh.jsx)(ua,{tip:"Deselect all",onClick:t.deselectAll,size:"small",children:(0,eh.jsx)(us.PcV,{})})]})}):(0,eh.jsx)(DT,{})}function Ff(e){return(0,Ek.B$)(e).times(4)}function Fh(e){return(0,Ek.Uz)(Ff(e))}function Fp(e){var t;return t=(0,Ek.Hz)(e),(0,Ek.il)(t).div(4).integerValue()}function Fm(e,t){let r=t.reduce((e,t)=>{let r=e.startHeight,n=e.endHeight;return t.contractHeightStartn&&(n=t.contractHeightEnd),{startHeight:r,endHeight:n}},{startHeight:e,endHeight:0});r.endHeight=Math.max(r.endHeight,e)+(0,Ek.gU)(5),r.startHeight=r.startHeight-(0,Ek.gU)(5);let n=[],i=r.startHeight;for(;i<=r.endHeight;)n.push(i),i+=(0,Ek.Nr)(1);return{allDatesMap:n.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:r}}let Fv=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Fg(e){let t=[];for(let r=0,n=e.length;r{let n=new Image;n.decode=()=>t(n),n.onload=()=>t(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function Fw(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Fj(e,t,r){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),Fw(i)}let FE=(e,t)=>{if(e instanceof t)return!0;let r=Object.getPrototypeOf(e);return null!==r&&(r.constructor.name===t.name||FE(r,t))};function Fk(e,t,r){let n=window.getComputedStyle(e,r),i=n.getPropertyValue("content");if(""===i||"none"===i)return;let o=Fv();try{t.className=`${t.className} ${o}`}catch(e){return}let a=document.createElement("style");a.appendChild(function(e,t,r){let n=`.${e}:${t}`,i=r.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(r):Fg(r).map(e=>{let t=r.getPropertyValue(e),n=r.getPropertyPriority(e);return`${e}: ${t}${n?" !important":""};`}).join(" ");return document.createTextNode(`${n}{${i}}`)}(o,r,n)),t.appendChild(a)}let FC="application/font-woff",FS="image/jpeg",FO={woff:FC,woff2:FC,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:FS,jpeg:FS,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function F_(e){return FO[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function FM(e){return -1!==e.search(/^(data:)/)}function FA(e,t){return`data:${t};base64,${e}`}async function FP(e,t,r){let n=await fetch(e,t);if(404===n.status)throw Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((e,t)=>{let o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(r({res:n,result:o.result}))}catch(e){t(e)}},o.readAsDataURL(i)})}let FT={};async function FN(e,t,r){var n,i,o;let a,s;let l=(n=e,i=t,o=r.includeQueryParams,s=n.replace(/\?.*/,""),o&&(s=n),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=FT[l])return FT[l];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let n=await FP(e,r.fetchRequestInit,({res:e,result:r})=>(t||(t=e.headers.get("Content-Type")||""),r.split(/,/)[1]));a=FA(n,t)}catch(n){a=r.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;n&&(t="string"==typeof n?n:n.message),t&&console.warn(t)}return FT[l]=a,a}async function FR(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):Fb(t)}async function FD(e,t){if(e.currentSrc){let t=document.createElement("canvas"),r=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==r||r.drawImage(e,0,0,t.width,t.height),Fb(t.toDataURL())}let r=e.poster,n=F_(r);return Fb(await FN(r,n,t))}async function FL(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await FI(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function FF(e,t){return FE(e,HTMLCanvasElement)?FR(e):FE(e,HTMLVideoElement)?FD(e,t):FE(e,HTMLIFrameElement)?FL(e):e.cloneNode(!1)}let FZ=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function FV(e,t,r){var n,i;let o=[];return FZ(e)&&e.assignedNodes?o=Fg(e.assignedNodes()):FE(e,HTMLIFrameElement)&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?o=Fg(e.contentDocument.body.childNodes):o=Fg((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===o.length||FE(e,HTMLVideoElement)||await o.reduce((e,n)=>e.then(()=>FI(n,r)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Fz(e,t){let r=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===r.length)return e;let n={};for(let i=0;iFF(e,t)).then(r=>FV(e,r,t)).then(t=>{var r,n;return r=e,FE(n=t,Element)&&(!function(e,t){let r=t.style;if(!r)return;let n=window.getComputedStyle(e);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):Fg(n).forEach(i=>{let o=n.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}FE(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),r.setProperty(i,o,n.getPropertyPriority(i))})}(r,n),Fk(r,n,":before"),Fk(r,n,":after"),FE(r,HTMLTextAreaElement)&&(n.innerHTML=r.value),FE(r,HTMLInputElement)&&n.setAttribute("value",r.value),function(e,t){if(FE(e,HTMLSelectElement)){let r=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));r&&r.setAttribute("selected","")}}(r,n)),n}).then(e=>Fz(e,t)):null}let FB=/url\((['"]?)([^'"]+?)\1\)/g,FH=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,FU=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function FW(e,t,r,n,i){try{let o;let a=r?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 r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}(t,r):t,s=F_(t);if(i){let e=await i(a);o=FA(e,s)}else o=await FN(a,s,n);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${o}$3`)}catch(e){}return e}function F$(e){return -1!==e.search(FB)}async function Fq(e,t,r){if(!F$(e))return e;let n=function(e,{preferredFontFormat:t}){return t?e.replace(FU,e=>{for(;;){let[r,,n]=FH.exec(e)||[];if(!n)return"";if(n===t)return`src: ${r};`}}):e}(e,r);return(function(e){let t=[];return e.replace(FB,(e,r,n)=>(t.push(n),e)),t.filter(e=>!FM(e))})(n).reduce((e,n)=>e.then(e=>FW(e,n,t,r)),Promise.resolve(n))}async function FY(e,t,r){var n;let i=null===(n=t.style)||void 0===n?void 0:n.getPropertyValue(e);if(i){let n=await Fq(i,null,r);return t.style.setProperty(e,n,t.style.getPropertyPriority(e)),!0}return!1}async function FG(e,t){await FY("background",e,t)||await FY("background-image",e,t),await FY("mask",e,t)||await FY("mask-image",e,t)}async function FK(e,t){let r=FE(e,HTMLImageElement);if(!(r&&!FM(e.src))&&!(FE(e,SVGImageElement)&&!FM(e.href.baseVal)))return;let n=r?e.src:e.href.baseVal,i=await FN(n,F_(n),t);await new Promise((t,n)=>{e.onload=t,e.onerror=n,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}async function FX(e,t){let r=Fg(e.childNodes).map(e=>FJ(e,t));await Promise.all(r).then(()=>e)}async function FJ(e,t){FE(e,Element)&&(await FG(e,t),await FK(e,t),await FX(e,t))}let FQ={};async function F0(e){let t=FQ[e];if(null!=t)return t;let r=await fetch(e);return t={url:e,cssText:await r.text()},FQ[e]=t,t}async function F1(e,t){let r=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((r.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),FP(o,t.fetchRequestInit,({result:e})=>(r=r.replace(i,`url(${e})`),[i,e]))})).then(()=>r)}function F2(e){if(null==e)return[];let t=[],r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),n=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=n.exec(r);if(null===e)break;t.push(e[0])}r=r.replace(n,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(r);if(null===e){if(null===(e=o.exec(r)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function F4(e,t){let r=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{Fg(r.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1,a=e.href,s=F0(a).then(e=>F1(e,t)).then(e=>F2(e).forEach(e=>{try{r.insertRule(e,e.startsWith("@import")?o+=1:r.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())});n.push(s)}})}catch(o){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=r.href&&n.push(F0(r.href).then(e=>F1(e,t)).then(e=>F2(e).forEach(e=>{i.insertRule(e,r.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{Fg(e.cssRules||[]).forEach(e=>{r.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),r))}async function F3(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let r=Fg(e.ownerDocument.styleSheets);return(await F4(r,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>F$(e.style.getPropertyValue("src")))}async function F5(e,t){let r=await F3(e,t);return(await Promise.all(r.map(e=>{let r=e.parentStyleSheet?e.parentStyleSheet.href:null;return Fq(e.cssText,r,t)}))).join("\n")}async function F6(e,t){let r=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await F5(e,t);if(r){let t=document.createElement("style"),n=document.createTextNode(r);t.appendChild(n),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function F8(e,t={}){let{width:r,height:n}=Fx(e,t),i=await FI(e,t,!0);return await F6(i,t),await FJ(i,t),!function(e,t){let{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);let n=t.style;null!=n&&Object.keys(n).forEach(e=>{r[e]=n[e]})}(i,t),await Fj(i,r,n)}async function F7(e,t={}){let{width:r,height:n}=Fx(e,t),i=await F8(e,t),o=await Fb(i),a=document.createElement("canvas"),s=a.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let r=t&&t.env?t.env.devicePixelRatio:null;return r&&Number.isNaN(e=parseInt(r,10))&&(e=1),e||window.devicePixelRatio||1}(),u=t.canvasWidth||r,c=t.canvasHeight||n;return a.width=u*l,a.height=c*l,!t.skipAutoScale&&(a.width>16384||a.height>16384)&&(a.width>16384&&a.height>16384?a.width>a.height?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384):a.width>16384?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384)),a.style.width=`${u}`,a.style.height=`${c}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,a.width,a.height)),s.drawImage(o,0,0,a.width,a.height),a}async function F9(e,t={}){return(await F7(e,t)).toDataURL()}async function Ze(e,t){let{name:r,quality:n,copy:i,download:o}=t;if(!e)throw Error("HTML node required");let a=await F9(e,{quality:n||.5});if(o){let e=document.createElement("a");e.download="".concat(r,".png"),e.href=a,e.click()}if(i){let e=await fetch(a);P2(await e.blob(),"image/png",r)}}async function Zt(e,t){var r;let n=e.length,i=0;for(let t of(await Promise.all(e)))t.error&&i++;let o=n-i;i>0?PJ(t.toastError({totalCount:n,errorCount:i,successCount:o})):PX(t.toastSuccess({totalCount:n,errorCount:i,successCount:o})),await (null===(r=t.after)||void 0===r?void 0:r.call(t))}},63694:function(e,t,r){"use strict";r.d(t,{Z7:function(){return Z},Uy:function(){return V},gM:function(){return u},ek:function(){return l},GP:function(){return x},kr:function(){return b},nH:function(){return d},ER:function(){return s},Gp:function(){return c},KU:function(){return w},rV:function(){return j},Az:function(){return k},WT:function(){return C},E5:function(){return O},Vp:function(){return _},Te:function(){return E},Wl:function(){return h},cQ:function(){return f},cM:function(){return L},Kw:function(){return F},hV:function(){return y},ST:function(){return A},_3:function(){return D},HU:function(){return P},uq:function(){return N},G:function(){return R},Rz:function(){return T},Fn:function(){return M},Os:function(){return p},sG:function(){return m},a0:function(){return v},cj:function(){return g}});var n=r(36219),i=r(79381),o=r(79338),a=r(60381);function s(e){return(0,n.Nf)({...e,route:o.ay})}function l(e){return(0,n.Nf)({...e,route:o.KR})}function u(e){return(0,n.Nf)({...e,route:o.fw})}function c(e){return(0,n.Nf)({...e,route:o.SX})}function d(){let e=u({config:{swr:{revalidateOnFocus:!1}}});return(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.name)==="zen"?(0,a.du)():(0,a.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function f(e){return(0,n.Nf)({...e,route:o.cz})}function h(e){return(0,n.V1)({...e,route:o.cz},async e=>{e(e=>e===o.cz)})}function p(e){return(0,n.Nf)({...e,route:o.Vx})}function m(e){return(0,n.Nf)({...e,route:o.A8})}function v(e){return(0,n.Nf)({...e,route:o.l0})}function g(e){return(0,n.mw)({...e,route:o.ix},async e=>{await (0,n.gw)(2e3),e(e=>e.startsWith(o.l0))})}function y(e){return(0,n.Nf)({...e,route:o.zC})}function x(e){return(0,n.q0)({...e,route:o.mU})}function b(e){return(0,n.V1)({...e,route:o.FQ})}function w(e){return(0,n.Nf)({...e,route:o.GX})}function j(e){return(0,n.Nf)({...e,route:o.pu})}function E(e){return(0,n.E)({...e,route:o.pu},async e=>{await e(e=>e.startsWith(o.pu)||e.startsWith(o.ay))})}function k(e){return(0,n.mw)({...e,route:o.ym})}function C(e){return(0,n.I7)({...e,payload:{},route:o.EO})}let S="/settings/pinned";function O(e){return(0,n.Nf)({...e,route:S})}function _(e){return(0,n.V1)({...e,route:S},async e=>{e(e=>e.startsWith(S))})}function M(e){return(0,n.Nf)({...e,route:o.Jy})}function A(e){return(0,n.Nf)({...e,route:o.rg})}function P(e){return(0,n.mw)({...e,route:o.Jy},async e=>{e(e=>e.startsWith(o.Jy))})}function T(e){return(0,n.V1)({...e,route:o.rg},async e=>{e(e=>e.startsWith(o.Jy))})}function N(e){return(0,n.iv)({...e,route:o.rg},async e=>{e(e=>e.startsWith(o.Jy))})}function R(e){return(0,n.V1)({...e,route:o.vh},async e=>{await (0,n.gw)(1e4),e(e=>e.startsWith(o.Jy))})}function D(e){return(0,n.iv)({...e,route:o.kU},async e=>{await (0,n.gw)(3e3),e(e=>e.startsWith(o.Jy))})}function L(e){return(0,n.Nf)({...e,route:o.n8})}function F(e){return(0,n.V1)({...e,route:o.n8})}function Z(e){return(0,n.Nf)({...e,route:o.sk})}function V(e){return(0,n.mw)({...e,route:o.FS},async e=>{e(e=>e.startsWith(o.sk))})}},79338:function(e,t,r){"use strict";r.d(t,{A8:function(){return u},EO:function(){return y},FQ:function(){return p},FS:function(){return C},GX:function(){return m},Jy:function(){return x},KR:function(){return o},SX:function(){return a},Vx:function(){return l},ay:function(){return n},cz:function(){return s},fw:function(){return i},ix:function(){return d},kU:function(){return j},l0:function(){return c},mU:function(){return h},n8:function(){return E},pu:function(){return v},rg:function(){return b},sk:function(){return k},vh:function(){return w},ym:function(){return g},zC:function(){return f}});let n="/state",i="/consensus/network",o="/consensus/tipstate",a="/index/tip",s="/syncer/peers",l="/wallet",u="/wallet/events",c="/wallet/pending",d="/wallet/send",f="/tpool/fee",h="/contracts",p="/contracts/:id/integrity",m="/metrics/:interval",v="/settings",g="/settings/announce",y="/settings/ddns/update",x="/volumes",b="/volumes/:id",w="/volumes/:id/resize",j="/volumes/:id/cancel",E="/system/dir",k="/alerts",C="/alerts/dismiss"},76221:function(e,t,r){"use strict";r.d(t,{Ee:function(){return l.a},Fb:function(){return a.a},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 n=r(39097),i=r.n(n),o=r(97729),a=r.n(o),s=r(96577),l=r.n(s),u=r(82876),c=r(5632)},36219:function(e,t,r){"use strict";r.d(t,{bW:function(){return ee},kl:function(){return eu},mV:function(){return $},gw:function(){return s},Nz:function(){return el},Hv:function(){return J},iv:function(){return er},J:function(){return es},Nf:function(){return et},E:function(){return N},mw:function(){return A},q0:function(){return M},Tb:function(){return U},V1:function(){return T},I7:function(){return P}});var n={};r.r(n),r.d(n,{getGPUTier:function(){return H}});var i=r(79381);function o(e,t,r){return[e,"".concat(t).concat((null==r?void 0:r.payload)?JSON.stringify(r.payload):"")]}function a(e,t){return!e||t?null:e}function s(e){return new Promise(t=>setTimeout(t,e))}var l=r(89644),u=r.n(l),c=r(2784);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){return{...e,config:{...null==e?void 0:e.config}}}function p(e,t,r){return(null==r?void 0:r.api)||(null==t?void 0:t.api)||e.api}function m(e,t,r){var n,i;let o=function(e,t,r){var n,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(n=i.axios)||void 0===n?void 0:n.headers,...null==r?void 0:null===(a=r.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=p(e,t,r);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,r);return{responseType:"json",...null===(n=t.config)||void 0===n?void 0:n.axios,...null==r?void 0:null===(i=r.config)||void 0===i?void 0:i.axios,headers:o}}function v(e,t,r,n){let i=(null==r?void 0:r.params)||{};n&&n.params&&(i={...i,...n.params}),t=function(e,t){if(e&&t)for(let r of Object.keys(t)){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}return e}(t,i);let o=p(e,r,n);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function g(e,t,r,n){let i=p(e,r,n);return i===e.api?t[1].replace("".concat(i,"/api"),""):t[1].replace(i,"")}var y=r(52322);let x=(0,c.createContext)({}),b=()=>(0,c.useContext)(x);function w(e){let{children:t}=e,r=function(){let[e,t]=(0,c.useState)({}),r=(0,c.useCallback)((e,r)=>{t(t=>({...t,[e]:{key:e,...r}}))},[t]);return{setWorkflow:r,removeWorkflow:(0,c.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,c.useCallback)(()=>{t({})},[t]),workflows:(0,c.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,y.jsx)(x.Provider,{value:r,children:t})}var j=r(76221),E=r(92762);let k={api:"",loginWithCustomApi:!1,password:void 0,recentApis:{},autoLock:!1,autoLockTimeout:6e5},C=(0,c.createContext)({}),S=()=>(0,c.useContext)(C);function O(e){let{children:t,...r}=e,n=function(e){let{passwordProtectRequestHooks:t,lockRoutes:r,defaultSettings:n}=e,o=(0,c.useMemo)(()=>({...k,...n}),[n]),[a,s]=(0,E.Z)("v1/requestConfig",{defaultValue:o});(0,c.useEffect)(()=>{s(e=>({...o,...e}))},[]);let l=(0,c.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:u}=b(),d=(0,c.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,j.xj)(),h=(0,j.jD)(),[p,m]=(0,c.useState)({}),v=(0,c.useCallback)((e,t)=>{m(r=>({...r,[e]:t}))},[m]),g=(0,c.useCallback)(()=>{for(let[e,t]of(r&&f.push("".concat(r.login,"?prev=").concat([r.login].includes(h)?r.home:h)),d({password:""}),u(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(p)))t&&t()},[f,r,d,u,p,h]),y=function(e){let t=(0,j.jD)();return![e.login].includes(t)}({login:(null==r?void 0:r.login)||"/login"}),x=(0,c.useMemo)(()=>!!l.password,[l]);return{requestSettings:l,setRequestSettings:d,lock:g,isUnlockedAndAuthedRoute:x&&y,passwordProtectRequestHooks:t,setOnLockCallback:v}}(r);return(0,y.jsx)(C.Provider,{value:n,children:t})}function _(e,t,r,n,i,o,a){return e(e=>!!e&&"string"!=typeof e&&2===e.length&&i(g(t,e,r,n)),o||(e=>e),a)}function M(e){var t;let r=(0,c.useMemo)(()=>f(e),[e]),{requestSettings:n,passwordProtectRequestHooks:s}=S(),l=v(n,r.route,r,void 0),d=(0,c.useMemo)(()=>a(o("post",l,e),r.disabled||s&&!n.password),[l,e,r,s,n]);return(0,i.ZP)(d,async()=>{if(!r.route)throw Error("No route");let t=m(n,r,void 0);if(!l)throw Error("No route");try{return(await u().post(l,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=r.config)||void 0===t?void 0:t.swr)}function A(e,t){let{setWorkflow:r,removeWorkflow:n}=b(),{mutate:a}=(0,i.kY)(),{requestSettings:s}=S(),l=d(e);return{post:async e=>{let i=h(e);try{let c;let d=m(s,l,i),f=v(s,l.route,l,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=o("post",f,e),p=g(s,h,e,i),y=h.join("");r(y,{route:p,payload:c});let x=await u().post(f,c,d);return t&&await t(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=arguments.length>2?arguments[2]:void 0;return _(a,s,e,i,t,r,n)},i,x),n(y),{status:x.status,data:x.data,headers:x.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function P(e){var t;let r=(0,c.useMemo)(()=>f(e),[e]),{requestSettings:n,passwordProtectRequestHooks:s}=S(),l=v(n,r.route,r,void 0),d=(0,c.useMemo)(()=>a(o("put",l,e),r.disabled||s&&!n.password),[l,e,r,s,n]);return(0,i.ZP)(d,async()=>{if(!r.route)throw Error("No route");let t=m(n,r,void 0);if(!l)throw Error("No route");try{return(await u().put(l,e.payload,t)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=r.config)||void 0===t?void 0:t.swr)}function T(e,t){let{mutate:r}=(0,i.kY)(),{requestSettings:n}=S(),{setWorkflow:a,removeWorkflow:s}=b(),l=d(e);return{put:async e=>{let i=h(e);try{let c;let d=m(n,l,i),f=v(n,l.route,l,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=o("put",f,e),p=g(n,h,e,i),y=h.join("");a(y,{route:p,payload:c});let x=await u().put(f,c,d);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return _(r,n,e,i,t,o,a)},i,x),s(y),{status:x.status,data:x.data,headers:x.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function N(e,t){let{mutate:r}=(0,i.kY)(),{requestSettings:n}=S(),{setWorkflow:a,removeWorkflow:s}=b(),l=d(e);return{patch:async e=>{let i=h(e);try{let c;let d=m(n,l,i),f=v(n,l.route,l,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=o("patch",f,e),p=g(n,h,e,i),y=h.join("");a(y,{route:p,payload:c});let x=await u().patch(f,c,d);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return _(r,n,e,i,t,o,a)},i,x),s(y),{status:x.status,data:x.data,headers:x.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function R(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}let D=["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 L(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 F="undefined"==typeof window,Z=(()=>{if(F)return;let{userAgent:e,platform:t,maxTouchPoints:r}=window.navigator,n=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&r>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||n||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class V extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let z=[],I=[];function B(e){return null!=e}let H=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:r={},glContext:n,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>R(void 0,void 0,void 0,function*(){let a={};if(F)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==Z?void 0:Z.isIpad),isMobile:l=!!(null==Z?void 0:Z.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>R(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new V("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=r,{renderer:d}=r,f=(e,t,r,n,i)=>({device:i,fps:n,gpu:r,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=L(d)];else{var m;let e=n||function(e,t=!1){let r={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete r.powerPreference;let n=window.document.createElement("canvas"),i=n.getContext("webgl",r)||n.getContext("experimental-webgl",r);return null!=i?i:void 0}(null==Z?void 0:Z.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=L(d))?function(e,t,r){let n;if(!r)return[t];let i=function(e){let t=e.createShader(35633),r=e.createShader(35632),n=e.createProgram();if(!(r&&t&&n))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(r,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(r),e.attachShader(n,t),e.attachShader(n,r),e.linkProgram(n),e.detachShader(n,t),e.detachShader(n,r),e.deleteShader(t),e.deleteShader(r),e.useProgram(n);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(n,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(n),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==Z?void 0:Z.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?n=l.filter(([,,e])=>e>=14):(n=l.filter(([,e])=>e===i)).length||(n=l),n.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return R(this,void 0,void 0,function*(){let r;let n=(e=>{for(let t of l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(e.includes(t))return t})(e);if(!n)return;let i=`${l?"m":"d"}-${n}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{r=yield o}catch(e){if(e instanceof V)throw e;return}let d=function(e){var t;let r=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==r?void 0:r.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=r.filter(([,e])=>e===d);f.length||(f=r.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,r)=>0===t||e!==r[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,i=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-i);)n--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,r]=e,n=Math.abs(b-t*r);ne===r?t-n:e-r);if(!v.length){let e=D.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,x]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,x);let b=l?e:t,w=0;for(let e=0;e=b[e]&&(w=e);return f(w,"BENCHMARK",y,g,x)});function U(){var e,t;let r=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!r||!!r.matches}let{getGPUTier:W}=n,$=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],q={siaCentral:!0,siascan:!0,currency:$[0],currencyDisplay:"bothPreferSc"},Y=(0,c.createContext)({}),G=()=>(0,c.useContext)(Y);function K(e){let{children:t,...r}=e,n=function(e){let{daemonExplorerInfoRoute:t,defaultSettings:r}=e,n=(0,c.useMemo)(()=>({...q,...r}),[r]),[i,o]=(0,E.Z)("v1/externalData",{defaultValue:n});(0,c.useEffect)(()=>{o(e=>({...n,...e}))},[]);let a=(0,c.useMemo)(()=>({...n,...i}),[i,n]),s=(0,c.useCallback)(e=>{o(t=>({...t,...e}))},[o]),l=(0,c.useCallback)(e=>{let t=$.find(t=>t.id===e);t&&s({currency:t})},[s]);return{externalDataSettings:a,setExternalDataSettings:s,setCurrency:l,currencyOptions:$,daemonExplorer:function(e){var t;let{route:r,config:n,disabled:i}=e,o=et({disabled:!r||i,route:r||"",config:{...n,swr:{...null==n?void 0:n.swr,revalidateOnFocus:!1}}}),{url:a,enabled:s}=(null===(t=o.data)||void 0===t?void 0:t.explorer)||{},l=(0,c.useMemo)(()=>{if(a)try{let{origin:e}=new URL(a);return e}catch(e){console.error(e)}},[a]);return(0,c.useMemo)(()=>({isSupported:!!o.data,enabled:!!s&&!!l,api:l,isValidating:o.isValidating,isLoading:o.isLoading}),[s,l,o.isValidating,o.isLoading,o.data])}({route:t})}}(r);return(0,y.jsx)(Y.Provider,{value:n,children:t})}let X=(0,c.createContext)({}),J=()=>(0,c.useContext)(X);function Q(e){let{children:t}=e,r=function(){let{requestSettings:e,setRequestSettings:t,lock:r,isUnlockedAndAuthedRoute:n,setOnLockCallback:i}=S(),{externalDataSettings:o,setExternalDataSettings:a,setCurrency:s,currencyOptions:l,daemonExplorer:u}=G(),d=function(){let e=U(),[t,r]=(0,c.useState)(!1),[n,i]=(0,c.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,E.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,c.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(r=>({...r,isGpuEnabled:e,hasUserSet:t}))},[s]),u=(0,c.useCallback)(async()=>{let e=!1;{let t=await W();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&l(!1,!1)}i(e),r(!0)},[i,l,a]);return(0,c.useEffect)(()=>{u()},[]),{hasCheckedGpu:t,canGpuRender:n,isGpuEnabled:o,shouldRender:n&&o,setCanGpuRender:i,setIsGpuEnabled:l}}();return{settings:(0,c.useMemo)(()=>({...e,...o}),[e,o]),requestSettings:e,externalDataSettings:o,setRequestSettings:t,setExternalDataSettings:a,siascan:o.siascan,siaCentral:o.siaCentral,gpu:d,lock:r,isUnlockedAndAuthedRoute:n,setOnLockCallback:i,setCurrency:s,currencyOptions:l,daemonExplorer:u}}();return(0,y.jsx)(X.Provider,{value:r,children:t})}function ee(e){let{children:t,...r}=e;return(0,y.jsx)(O,{...r,children:(0,y.jsx)(K,{...r,children:(0,y.jsx)(Q,{...r,children:t})})})}function et(e){var t;let r=(0,c.useMemo)(()=>f(e),[e]),{requestSettings:n,passwordProtectRequestHooks:s}=S(),l=v(n,r.route,r,void 0);return(0,i.ZP)(a(o("get",l),r.disabled||s&&!n.password),async()=>{if(!r.route)throw Error("No route");let e=m(n,r,void 0);if(!l)throw Error("No route");try{return(await u().get(l,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=r.config)||void 0===t?void 0:t.swr)}function er(e,t){let{mutate:r}=(0,i.kY)(),{requestSettings:n}=S(),{setWorkflow:a,removeWorkflow:s}=b(),l=d(e);return{delete:async e=>{let i=h(e);try{let c=m(n,l,i),d=v(n,l.route,l,i);if(!d)throw Error("No route");let f=o("delete",d),h=g(n,f,e,i),p=f.join("");a(p,{route:h});let y=await u().delete(d,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return _(r,n,e,i,t,o,a)},i,y),s(p),{status:y.status,data:y.data,headers:y.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}var en=r(6391),ei=r.n(en),eo=r(60381);let ea={revalidateOnFocus:!1,refreshInterval:(0,eo.sW)(5),dedupingInterval:(0,eo.sW)(5)};function es(e){let{currency:t,config:r,disabled:n}=e,{daemonExplorer:i}=J(),o=function(e){let{currency:t,config:r,disabled:n}=e,{daemonExplorer:{enabled:i,api:o},currencyOptions:a}=J(),s=et({params:{currency:t},disabled:!i||n||!t,api:o,route:"/exchange-rate/siacoin/:currency",config:{...r,swr:{...ea,...null==r?void 0:r.swr}}});return(0,c.useMemo)(()=>({rate:s.data?new(ei())(s.data):void 0,error:s.error,isValidating:s.isValidating,isLoading:s.isLoading,currency:a.find(e=>e.id===t)}),[s.data,s.error,s.isValidating,s.isLoading,a,t])}({currency:t,config:r,disabled:!i.enabled||n}),a=function(e){let{currency:t,config:r,disabled:n}=e,{settings:i,currencyOptions:o}=J(),a=et({params:{currency:t},api:"https://api.siascan.com",route:"/exchange-rate/siacoin/:currency",config:{...r,swr:{...ea,...null==r?void 0:r.swr}},disabled:!i.siascan||!t||n});return(0,c.useMemo)(()=>({rate:a.data?new(ei())(a.data):void 0,error:a.error,isValidating:a.isValidating,isLoading:a.isLoading,currency:o.find(e=>e.id===t)}),[a.data,a.error,a.isValidating,a.isLoading,o,t])}({currency:t,config:r,disabled:i.enabled||n});return i.enabled?o:a}function el(){let{config:e,disabled:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{settings:r}=J();return es({currency:r.currency.id,config:e,disabled:t})}function eu(e){let{fallback:t,cacheProvider:r,children:n}=e;return(0,y.jsx)(w,{children:(0,y.jsx)(i.J$,{value:{fallback:t||{},provider:r},children:n})})}},35138:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{RVU:function(){return t2},eHR:function(){return re},xHM:function(){return rt},IRm:function(){return rr},L6f:function(){return rn},rW0:function(){return ri},osk:function(){return ro},JaG:function(){return ra},wWN:function(){return iK},Dkj:function(){return i6},cfm:function(){return rl},YV2:function(){return rv},EMN:function(){return rg},bdU:function(){return ry},VUy:function(){return rx},Cp0:function(){return rb},Mes:function(){return rw},oce:function(){return rj},DI$:function(){return rk},NlZ:function(){return rL},Y3p:function(){return rZ},Z$8:function(){return rF},tEK:function(){return rz},yar:function(){return rV},cRw:function(){return rI},MR9:function(){return rB},PcV:function(){return rU},QN4:function(){return rH},Jsc:function(){return r$},T80:function(){return rW},wEY:function(){return rK},olJ:function(){return rJ},vtB:function(){return rX},KiD:function(){return r2},NZ7:function(){return r4},dDl:function(){return r3},Jrl:function(){return r8},aPl:function(){return r7},kBK:function(){return i2},Bpb:function(){return nt},vzB:function(){return nr},dr6:function(){return na},d19:function(){return ns},w9S:function(){return nl},VBo:function(){return iX},Hb6:function(){return nd},CCF:function(){return nf},Qbr:function(){return nv},L37:function(){return ng},ROc:function(){return i3},UG6:function(){return i4},lq1:function(){return ny},zvn:function(){return iJ},K2o:function(){return i1},EL$:function(){return nb},BdP:function(){return nS},dsj:function(){return nO},P5r:function(){return n_},RdX:function(){return nM},U_S:function(){return nA},V8Q:function(){return nR},POp:function(){return nD},kSc:function(){return nL},mBM:function(){return i0},Lur:function(){return nz},b47:function(){return nI},Sfn:function(){return nB},W$S:function(){return nG},T85:function(){return nK},Ckx:function(){return nX},dZ8:function(){return n0},EOT:function(){return nQ},fDA:function(){return nJ},RK4:function(){return n2},jH8:function(){return n8},XJM:function(){return n7},RRj:function(){return n9},ka0:function(){return ie},hzZ:function(){return ir},VUg:function(){return il},owP:function(){return iu},Fs9:function(){return ic},wGX:function(){return id},Wet:function(){return iy},UJc:function(){return ig},BB5:function(){return ix},ZEk:function(){return ib},$Iz:function(){return ik},shL:function(){return iC},hiv:function(){return iS},eOF:function(){return iA},mli:function(){return iM},lJ7:function(){return i5},ORH:function(){return iN},VmF:function(){return iR},xVB:function(){return iz},pHg:function(){return iI},I$H:function(){return iB},oaN:function(){return iQ},qdM:function(){return iU},gFQ:function(){return iH},SmH:function(){return iq},lg1:function(){return iY}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,j,E,k,C,S,O,_,M,A,P,T,N,R,D,L,F,Z,V,z,I,B,H,U,W,$,q,Y,G,K,X,J,Q,ee,et,er,en,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eC,eS,eO,e_,eM,eA,eP,eT,eN,eR,eD,eL,eF,eZ,eV,ez,eI,eB,eH,eU,eW,e$,eq,eY,eG,eK,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tr,tn,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tx,tb,tw,tj,tE,tk,tC,tS,tO,t_,tM,tA,tP,tT,tN,tR,tD,tL,tF,tZ,tV,tz,tI,tB=["width","height","viewBox"],tH=["tabindex"],tU={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tW=r(13980),t$=r.n(tW),tq=r(2784);function tY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tG(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tJ=["className","children","tabIndex"],tQ=["tabindex"],t0=tq.forwardRef(function(e,t){var r=e.className,n=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,s=o(e,tB),l=s.tabindex,u=o(s,tH),c=i(i(i({},tU),u),{},{width:t,height:r,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tG(tG({},tX(e,tJ)),{},{tabindex:a})),l=s.tabindex,u=tX(s,tQ);return r&&(u.className=r),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tq.createElement("svg",u,n)});t0.displayName="Icon",t0.propTypes={"aria-hidden":t$().string,"aria-label":t$().string,"aria-labelledby":t$().string,children:t$().node,className:t$().string,height:t$().oneOfType([t$().number,t$().string]),preserveAspectRatio:t$().string,tabIndex:t$().string,viewBox:t$().string,width:t$().oneOfType([t$().number,t$().string]),xmlns:t$().string},t0.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var t1=["children"],t2=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t1);return tq.createElement(t0,tK({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=tq.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),r)}),t4=["children"],t3=["children"],t5=["children"],t6=["children"],t8=["children"],t7=["children"],t9=["children"],re=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t4);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),s||(s=tq.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tq.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),r)}),rt=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t3);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),u||(u=tq.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),r)}),rr=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t5);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=tq.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),r)}),rn=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t6);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),d||(d=tq.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"})),r)}),ri=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t8);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),f||(f=tq.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),r)}),ro=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t7);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),h||(h=tq.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),r)}),ra=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,t9);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),p||(p=tq.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tq.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tq.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tq.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tq.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=tq.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tq.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tq.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),j||(j=tq.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),r)}),rs=["children"],rl=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rs);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),E||(E=tq.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),r)}),ru=["children"],rc=["children"],rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rv=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ru);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),k||(k=tq.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),r)}),rg=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rc);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),C||(C=tq.createElement("path",{d:"M24 12L16 22 8 12z"})),r)}),ry=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rd);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),S||(S=tq.createElement("path",{d:"M20 24L10 16 20 8z"})),r)}),rx=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rf);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),O||(O=tq.createElement("path",{d:"M12 8L22 16 12 24z"})),r)}),rb=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rh);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),_||(_=tq.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),r)}),rw=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rp);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),M||(M=tq.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),r)}),rj=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rm);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),A||(A=tq.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"})),r)}),rE=["children"],rk=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rE);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),P||(P=tq.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"})),T||(T=tq.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"})),r)}),rC=["children"],rS=["children"],rO=["children"],r_=["children"],rM=["children"],rA=["children"],rP=["children"],rT=["children"],rN=["children"],rR=["children"],rD=["children"],rL=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rC);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),N||(N=tq.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),r)}),rF=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rS);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),R||(R=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tq.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),r)}),rZ=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rO);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),L||(L=tq.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=tq.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),r)}),rV=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,r_);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Z||(Z=tq.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),V||(V=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),rz=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rM);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),z||(z=tq.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),I||(I=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),rI=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rA);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),B||(B=tq.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r)}),rB=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rP);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),H||(H=tq.createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),r)}),rH=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rT);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),U||(U=tq.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}),rU=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rN);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),W||(W=tq.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}),rW=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rR);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),$||($=tq.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"})),q||(q=tq.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),r$=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rD);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),Y||(Y=tq.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"})),G||(G=tq.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),rq=["children"],rY=["children"],rG=["children"],rK=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rq);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),K||(K=tq.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"})),X||(X=tq.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),r)}),rX=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rY);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),J||(J=tq.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),Q||(Q=tq.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),rJ=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rG);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ee||(ee=tq.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"})),et||(et=tq.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),r)}),rQ=["children"],r0=["children"],r1=["children"],r2=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,rQ);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),er||(er=tq.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"})),en||(en=tq.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),r)}),r4=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,r0);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ei||(ei=tq.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V5A2,2,0,0,0,24,3Zm0,2v6H8V5ZM8,19V13H24v6Zm0,8V21H24v6Z"})),eo||(eo=tq.createElement("circle",{cx:"11",cy:"8",r:"1"})),ea||(ea=tq.createElement("circle",{cx:"11",cy:"16",r:"1"})),es||(es=tq.createElement("circle",{cx:"11",cy:"24",r:"1"})),r)}),r3=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,r1);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),el||(el=tq.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),eu||(eu=tq.createElement("circle",{cx:"11",cy:"8",r:"1"})),ec||(ec=tq.createElement("circle",{cx:"11",cy:"16",r:"1"})),ed||(ed=tq.createElement("circle",{cx:"11",cy:"24",r:"1"})),ef||(ef=tq.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),r)}),r5=["children"],r6=["children"],r8=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,r5);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eh||(eh=tq.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),ep||(ep=tq.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),r)}),r7=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,r6);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),em||(em=tq.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ev||(ev=tq.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),r)}),r9=["children"],ne=["children"],nt=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,r9);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eg||(eg=tq.createElement("circle",{cx:"16",cy:"16",r:"8"})),r)}),nr=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ne);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ey||(ey=tq.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"})),r)}),nn=["children"],ni=["children"],no=["children"],na=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nn);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ex||(ex=tq.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),r)}),ns=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ni);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eb||(eb=tq.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"})),ew||(ew=tq.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ej||(ej=tq.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),r)}),nl=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,no);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eE||(eE=tq.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),r)}),nu=["children"],nc=["children"],nd=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nu);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ek||(ek=tq.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),r)}),nf=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nc);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eC||(eC=tq.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),r)}),nh=["children"],np=["children"],nm=["children"],nv=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nh);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eS||(eS=tq.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"})),r)}),ng=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,np);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eO||(eO=tq.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"})),e_||(e_=tq.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"})),r)}),ny=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nm);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eM||(eM=tq.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"})),eA||(eA=tq.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),r)}),nx=["children"],nb=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nx);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eP||(eP=tq.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),r)}),nw=["children"],nj=["children"],nE=["children"],nk=["children"],nC=["children"],nS=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nw);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eT||(eT=tq.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),r)}),nO=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nj);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eN||(eN=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),r)}),n_=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nE);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eR||(eR=tq.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),r)}),nM=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nk);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eD||(eD=tq.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eL||(eL=tq.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),r)}),nA=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nC);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eF||(eF=tq.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),r)}),nP=["children"],nT=["children"],nN=["children"],nR=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nP);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eZ||(eZ=tq.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eV||(eV=tq.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),r)}),nD=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nT);return tq.createElement(t0,tK({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ez||(ez=tq.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eI||(eI=tq.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),r)}),nL=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nN);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eB||(eB=tq.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),r)}),nF=["children"],nZ=["children"],nV=["children"],nz=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nF);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eH||(eH=tq.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),r)}),nI=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nZ);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eU||(eU=tq.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"})),eW||(eW=tq.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),r)}),nB=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nV);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e$||(e$=tq.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),r)}),nH=["children"],nU=["children"],nW=["children"],n$=["children"],nq=["children"],nY=["children"],nG=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nH);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eq||(eq=tq.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"})),eY||(eY=tq.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),r)}),nK=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nU);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eG||(eG=tq.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),r)}),nX=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nW);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eK||(eK=tq.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"})),eX||(eX=tq.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),r)}),nJ=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,n$);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),eJ||(eJ=tq.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"})),eQ||(eQ=tq.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),nQ=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nq);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e0||(e0=tq.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"})),e1||(e1=tq.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),n0=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,nY);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e2||(e2=tq.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e4||(e4=tq.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),r)}),n1=["children"],n2=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,n1);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e3||(e3=tq.createElement("circle",{cx:"21",cy:"26",r:"2"})),e5||(e5=tq.createElement("circle",{cx:"21",cy:"6",r:"2"})),e6||(e6=tq.createElement("circle",{cx:"4",cy:"16",r:"2"})),e8||(e8=tq.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),r)}),n4=["children"],n3=["children"],n5=["children"],n6=["children"],n8=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,n4);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),e7||(e7=tq.createElement("circle",{cx:"8",cy:"16",r:"2"})),e9||(e9=tq.createElement("circle",{cx:"16",cy:"16",r:"2"})),te||(te=tq.createElement("circle",{cx:"24",cy:"16",r:"2"})),r)}),n7=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,n3);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tt||(tt=tq.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),r)}),n9=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,n5);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tr||(tr=tq.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),r)}),ie=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,n6);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tn||(tn=tq.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"})),ti||(ti=tq.createElement("circle",{cx:"22",cy:"10",r:"2"})),r)}),it=["children"],ir=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,it);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),to||(to=tq.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"})),ta||(ta=tq.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"})),r)}),ii=["children"],io=["children"],ia=["children"],is=["children"],il=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ii);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ts||(ts=tq.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=tq.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),r)}),iu=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,io);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tu||(tu=tq.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tc||(tc=tq.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"})),td||(td=tq.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"})),r)}),ic=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ia);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tf||(tf=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)}),id=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,is);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),th||(th=tq.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tp||(tp=tq.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),r)}),ih=["children"],ip=["children"],im=["children"],iv=["children"],ig=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ih);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tm||(tm=tq.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)}),iy=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ip);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tv||(tv=tq.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),r)}),ix=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,im);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tg||(tg=tq.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),r)}),ib=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iv);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),ty||(ty=tq.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"})),r)}),iw=["children"],ij=["children"],iE=["children"],ik=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iw);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tx||(tx=tq.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),r)}),iC=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,ij);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tb||(tb=tq.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"})),tw||(tw=tq.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),r)}),iS=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iE);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tj||(tj=tq.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),r)}),iO=["children"],i_=["children"],iM=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iO);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tE||(tE=tq.createElement("path",{d:"M8 15H24V17H8z"})),r)}),iA=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,i_);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tk||(tk=tq.createElement("path",{d:"M8 15H24V17H8z"})),r)}),iP=["children"],iT=["children"],iN=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iP);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tC||(tC=tq.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),r)}),iR=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iT);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tS||(tS=tq.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),r)}),iD=["children"],iL=["children"],iF=["children"],iZ=["children"],iV=["children"],iz=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iD);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tO||(tO=tq.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"})),t_||(t_=tq.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),r)}),iI=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iL);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tM||(tM=tq.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tA||(tA=tq.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),r)}),iB=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iF);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tP||(tP=tq.createElement("path",{d:"M22 17H24V19H22z"})),tT||(tT=tq.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),r)}),iH=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iZ);return tq.createElement(t0,tK({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tN||(tN=tq.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"})),tR||(tR=tq.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),r)}),iU=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iV);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tD||(tD=tq.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"})),tL||(tL=tq.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),r)}),iW=["children"],i$=["children"],iq=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,iW);return tq.createElement(t0,tK({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tF||(tF=tq.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"})),tZ||(tZ=tq.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"})),r)}),iY=tq.forwardRef(function(e,t){var r=e.children,n=tX(e,i$);return tq.createElement(t0,tK({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),tV||(tV=tq.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"})),tz||(tz=tq.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"})),tI||(tI=tq.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),r)}),iG=r(52322);function iK(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iG.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 iX(e){let{size:t=24,className:r}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:r,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iG.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 iJ(e){let{size:t=24,className:r}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:r,children:(0,iG.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 iQ(e){let{size:t=24,className:r}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:r,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iG.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 i0(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iG.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 i1(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,iG.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function i2(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iG.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 i4(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iG.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 i3(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iG.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 i5(e){let{size:t=24}=e;return(0,iG.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,iG.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iG.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,iG.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,iG.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,iG.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function i6(e){let{size:t=24}=e;return(0,iG.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iG.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"})})}},60381:function(e,t,r){"use strict";r.d(t,{Hz:function(){return u},Y:function(){return d},B$:function(){return a},xf:function(){return s},jr:function(){return T},pp:function(){return A},E6:function(){return P},Uz:function(){return l},BT:function(){return c},il:function(){return o},Jz:function(){return z},Nr:function(){return S},gU:function(){return _},mj:function(){return Y},Lg:function(){return $},Lu:function(){return G},uF:function(){return W},jH:function(){return q},uV:function(){return U},jF:function(){return B},hR:function(){return Z},hq:function(){return F},uC:function(){return V},Tc:function(){return N},du:function(){return R},pX:function(){return L},yt:function(){return C},vW:function(){return g},rN:function(){return b},yF:function(){return x},Vz:function(){return v},bc:function(){return y},At:function(){return E},sW:function(){return k},S5:function(){return M},_6:function(){return K},XB:function(){return O},qN:function(){return p},ll:function(){return h}});var n=r(6391),i=r.n(n);function o(e){return new(i())(e).div(1048576)}function a(e){return new(i())(e).times(1048576)}function s(e){return new(i())(e).times(1e12)}function l(e){return new(i())(e).div(1e9)}function u(e){return new(i())(e).times(1e9)}function c(e){return new(i())(e).div(1e6)}function d(e){return new(i())(e).times(1e6)}n.BigNumber.config({EXPONENTIAL_AT:1e9}),n.BigNumber.config({DECIMAL_PLACES:30});let f=new n.BigNumber("10").exponentiatedBy(24);function h(e,t){return void 0!==t?new n.BigNumber(new n.BigNumber(e).dividedBy(f).toFixed(t)):new n.BigNumber(e).dividedBy(f)}function p(e){return new n.BigNumber(new n.BigNumber(e).times(f).toFixed(0))}let m={fixed:3,dynamicUnits:!0,hastingUnits:!1};function v(e,t){let{fixed:r,dynamicUnits:i,hastingUnits:o}={...m,...t},a=new n.BigNumber(1e12),s=new n.BigNumber(1e3),l=new n.BigNumber(e),u=new n.BigNumber(e).abs(),c=l.isNegative()?"-":"";if(!i)return"".concat(c).concat(h(u).toFormat(r)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(c).concat(u," H"):"".concat(c,"0 SC");let d=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new n.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===d.length-1)return"".concat(c).concat(i.toFormat(r)," ").concat(d[e])}return""}function g(e,t){let r="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:n=2}=t||{};if(!r)return"0 B";if(r<1e3)return"".concat(r," B");let o=Math.floor(Math.log10(r)/Math.log10(1e3));return(r/Math.pow(1e3,o)).toFixed(n)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function y(e,t){let{format:r="abbreviated"}=t||{},n="abbreviated"===r;if(e<1e3)return"".concat(e.toFixed(0)).concat(n?"ms":" milliseconds");let i=e/1e3;if(i<60)return"".concat(i.toFixed(0)).concat(n?"s":" seconds");let o=i/60;if(o<60)return"".concat(o.toFixed(0)).concat(n?"m":" minutes");let a=o/60;return a<24?"".concat(a.toFixed(0)).concat(n?"h":" hours"):"".concat((a/24).toFixed(0)).concat(n?"d":" days")}function x(e,t){let{fixed:r=0,units:n="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(r)).concat(t[i]?" ".concat(t[i]):"").concat(n?" ".concat(n):"")}return"".concat(a.toFormat(r)).concat(n?" ".concat(n):"")}function b(e,t){let r;return r=navigator.language,new Intl.DateTimeFormat(r,{dateStyle:"short",...t}).format(new Date(e))}var w=r(81395),j=r(22814);function E(e){return 76===e.length&&function(e){var t;let r=function(e){let t=[];for(let r=0;r0?"storageProof":r.fileContracts&&r.fileContracts.length>0&&r.fileContractRevisions&&r.fileContractRevisions.length>0?"contractRenewal":r.fileContractRevisions&&r.fileContractRevisions.length>0?"contractRevision":r.fileContracts&&r.fileContracts.length>0?"contractFormation":r.arbitraryData&&r.arbitraryData.length>0&&0===atob(r.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":r.siafundOutputs&&r.siafundOutputs.length>0?"siafund":r.siacoinOutputs&&r.siacoinOutputs.length>0?"siacoin":"unknown"}return"v2Transaction"===t?function(e){var t;if(e.fileContractResolutions&&e.fileContractResolutions.length>0)return({expiration:"contractExpiration",finalization:"contractFinalization",renewal:"contractRenewal","storage proof":"storageProof"})[e.fileContractResolutions[0].resolution.type];if(e.fileContractRevisions&&e.fileContractRevisions.length>0)return"contractRevision";if(e.fileContracts&&e.fileContracts.length>0)return"contractFormation";let r=null===(t=e.attestations)||void 0===t?void 0:t.filter(e=>"HostAnnouncement"===e.key);return r&&r.length>0?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":"unknown"}(e.data):"v1ContractResolution"===t||"v2ContractResolution"===t?"contractPayout":"miner"===t?"minerPayout":"foundation"===t?"foundationSubsidy":t}function z(e){return"v2Transaction"===e.type?(e.data.siacoinOutputs||[]).reduce((t,r)=>e.relevant.includes(r.address)?t.plus(r.value):t,new(i())(0)).minus((e.data.siacoinInputs||[]).reduce((t,r)=>e.relevant.includes(r.parent.siacoinOutput.address)?t.plus(r.parent.siacoinOutput.value):t,new(i())(0))):"v1Transaction"===e.type?(e.data.transaction.siacoinOutputs||[]).reduce((t,r)=>e.relevant.includes(r.address)?t.plus(r.value):t,new(i())(0)).minus((e.data.spentSiacoinElements||[]).reduce((t,r)=>e.relevant.includes(r.siacoinOutput.address)?t.plus(r.siacoinOutput.value):t,new(i())(0))):new(i())(e.data.siacoinElement.siacoinOutput.value)}let I={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function B(e){return e?I[e]:void 0}let H={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 U(e){return e?H[e]:void 0}function W(e){return e&&["ip","hostIp"].includes(e)?20:12}function $(e){return e&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(e)}function q(e,t,r){switch(t){case"hostIp":case"hostPublicKey":return"".concat(e,"/host/").concat(r);case"contract":return"".concat(e,"/contract/").concat(r);case"transaction":return"".concat(e,"/tx/").concat(r);case"address":return"".concat(e,"/address/").concat(r);case"block":return"".concat(e,"/block/").concat(r);default:return""}}function Y(e,t){return"".concat(null==e?void 0:e.slice(0,t)).concat(((null==e?void 0:e.length)||0)>t?"...":"")}function G(e,t,r){if("blockHash"===e){let e=r/2;return t.slice(0,Math.floor(e))+"..."+t.slice(t.length-Math.ceil(e))}return Y(t,r)}function K(e,t,r){let n="1 ".concat(t),i="".concat(t,"s"),o="";"string"==typeof r&&(i=r),"object"==typeof r&&(r.plural&&(i=r.plural),r.customZero&&(o=r.customZero));let a="".concat(e.toLocaleString()," ").concat(i);return 0===e?o||a:1===e?n:a}},4895:function(e,t,r){"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},49435:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(4895);function i(e){(0,n.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))}},74669:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(80465).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)},4437:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=r(74669);("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)},80465:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new 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)},42642:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=r(2784),i=r(47640),o=r(30154),a=r(30454),s=r(70166),l=r(32374),u=r(33843);function c(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,n.useContext)(o.PathnameContext)}function f(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,n.useContext)(o.PathParamsContext)}function p(e){void 0===e&&(e="children");let t=(0,n.useContext)(i.LayoutRouterContext);return t?function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,a.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,r,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=p(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===s.DEFAULT_SEGMENT_KEY?null: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)},32374:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return a},RedirectType:function(){return n.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=r(23825),i=r(17356);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("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)},17356:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return i},notFound:function(){return n}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19228:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.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)},23825:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return c}});let o=r(98512),a=r(4437),s=r(19228),l="NEXT_REDIRECT";function u(e,t,r){void 0===r&&(r=s.RedirectStatusCode.TemporaryRedirect);let n=Error(l);n.digest=l+";"+t+";"+e+";"+r+";";let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function c(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw u(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in s.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=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12516:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(80465).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)},98512:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=r(12516);function i(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("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)},30454:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19745:function(e,t){"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return h}});let a="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("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)},12394:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(14079),("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)},22657:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let n=r(43219),i=r(16794),o=r(52322),a=i._(r(2784)),s=n._(r(28316)),l=n._(r(68792)),u=r(25123),c=r(96648),d=r(41897);r(71388);let f=r(24698),h=n._(r(59553)),p={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 m(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:g,fill:y,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:j,sizesInput:E,onLoad:k,onError:C,...S}=e;return(0,o.jsx)("img",{...S,...v(f),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&m(e,h,x,b,w,g,E))},[r,h,x,b,w,C,g,E,t]),onLoad:e=>{m(e.currentTarget,h,x,b,w,g,E)},onError:e=>{j(!0),"empty"!==h&&w(!0),C&&C(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let x=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=p||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let v=(0,a.useRef)(l);(0,a.useEffect)(()=>{v.current=l},[l]);let[x,b]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),{props:E,meta:k}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:x,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{...E,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:b,setShowAltText:j,sizesInput:e.sizes,ref:t}),k.priority?(0,o.jsx)(y,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(43219),i=r(52322),o=n._(r(2784)),a=r(40706),s=r(90345),l=r(8985),u=r(70286),c=r(95549),d=r(24698),f=r(47640),h=r(34407),p=r(12394),m=r(70558),v=r(19745),g=new Set;function y(e,t,r,n,i,o){if(o||(0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:w=null,passHref:j,replace:E,shallow:k,scroll:C,locale:S,onClick:O,onMouseEnter:_,onTouchStart:M,legacyBehavior:A=!1,...P}=e;r=b,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let T=o.default.useContext(d.RouterContext),N=o.default.useContext(f.AppRouterContext),R=null!=T?T:N,D=!T,L=!1!==w,F=null===w?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:Z,as:V}=o.default.useMemo(()=>{if(!T){let e=x(l);return{href:e,as:g?x(g):e}}let[e,t]=(0,a.resolveHref)(T,l,!0);return{href:e,as:g?(0,a.resolveHref)(T,g):t||e}},[T,l,g]),z=o.default.useRef(Z),I=o.default.useRef(V);A&&(n=o.default.Children.only(r));let B=A?n&&"object"==typeof n&&n.ref:t,[H,U,W]=(0,h.useIntersection)({rootMargin:"200px"}),$=o.default.useCallback(e=>{(I.current!==V||z.current!==Z)&&(W(),I.current=V,z.current=Z),H(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[V,B,Z,W,H]);o.default.useEffect(()=>{R&&U&&L&&y(R,Z,V,{locale:S},{kind:F},D)},[V,Z,U,S,L,null==T?void 0:T.locale,R,D,F]);let q={ref:$,onClick(e){A||"function"!=typeof O||O(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,i,a,l,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,s.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};c?o.default.startTransition(f):f()}(e,R,Z,V,E,k,C,S,D)},onMouseEnter(e){A||"function"!=typeof _||_(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(L||!D)&&y(R,Z,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:F},D)},onTouchStart:function(e){A||"function"!=typeof M||M(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(L||!D)&&y(R,Z,V,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:F},D)}};if((0,u.isAbsoluteUrl)(V))q.href=V;else if(!A||j||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(V,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(V,e,null==T?void 0:T.defaultLocale))}return A?o.default.cloneElement(n,q):(0,i.jsx)("a",{...P,...q,children: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)},34407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(2784),i=r(41346),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[h,c,(0,n.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)},25123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(71388);let n=r(74999),i=r(96648);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:x=!1,style:b,overrideSrc:w,onLoad:j,onLoadingComplete:E,placeholder:k="empty",blurDataURL:C,fetchPriority:S,layout:O,objectFit:_,objectPosition:M,lazyBoundary:A,lazyRoot:P,...T}=e,{imgConf:N,showAltText:R,blurComplete:D,defaultLoader:L}=t,F=N||i.imageConfigDefault;if("allSizes"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let Z=T.loader||L;delete T.loader,delete T.srcSet;let V="__next_img_default"in Z;if(V){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=Z;Z=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!d&&(d=t)}let z="",I=a(g),B=a(y);if("object"==typeof(r=c)&&(o(r)||void 0!==r.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,z=e.src,!x){if(I||B){if(I&&!B){let t=I/e.width;B=Math.round(e.height*t)}else if(!I&&B){let t=B/e.height;I=Math.round(e.width*t)}}else I=e.width,B=e.height}}let H=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,H=!1),s.unoptimized&&(f=!0),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let U=a(v),W=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:M}:{},R?{}:{color:"transparent"},b),$=D||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:I,heightInt:B,blurWidth:l,blurHeight:u,blurDataURL:C||"",objectFit:W.objectFit})+'")':'url("'+k+'")',q=$?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:$}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:I,quality:U,sizes:d,loader:Z});return{props:{...T,loading:H?"lazy":p,fetchPriority:S,width:I,height:B,decoding:"async",className:m,style:{...W,...q},sizes:Y.sizes,srcSet:Y.srcSet,src:w||Y.src},meta:{unoptimized:f,priority:h,placeholder:k,fill:x}}}},74999:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},5329:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(43219),i=r(25123),o=r(22657),a=n._(r(59553));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},59553:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},33843:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(16794)._(r(2784)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},21962:function(){},17282:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},29773: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,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(r)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,r){for(var n=0,i=t.length,o=e;n>>7-e%8&1)==1},put:function(e,t){for(var r=0;r>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,r){var n=r(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var r=0;r=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1)&&!(this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[e+r][t+n]=!0:this.modules[e+r][t+n]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=a.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},u.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!e&&(t>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},u.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=a.getBCHTypeInfo(r),i=0;i<15;i++){var o=!e&&(n>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[n][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,n,s-l)&&(u=!u),this.modules[n][s-l]=u,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,r){for(var n=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,n)},l.createBytes=function(e,t){for(var r=0,n=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case a.PATTERN000:return(t+r)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return r%3==0;case a.PATTERN011:return(t+r)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case a.PATTERN101:return t*r%2+t*r%3==0;case a.PATTERN110:return(t*r%2+t*r%3)%2==0;case a.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),r=0;r5&&(r+=3+o-5)}for(var n=0;n=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",n({},s,{height:r,width:r,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,n({},f,{size:s}),p.map(function(e,n){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(n*m),s=Math.round((i+1)*m)-o,c=Math.round((n+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+n+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?r:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},95346:function(e,t,r){"use strict";r.d(t,{Av:function(){return a},pF:function(){return n},xv:function(){return o},zi:function(){return i}});var n="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},181:function(e,t,r){"use strict";r.d(t,{jp:function(){return m}});var n=r(2784),i=r(33225),o=r(95346),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(r),s(n),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=l(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},c=(0,i.Ws)(),d="data-scroll-locked",f=function(e,t,r,n){var i=e.left,a=e.top,s=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(o.xv," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.pF," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.zi," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.pF," .").concat(o.pF," {\n right: 0 ").concat(n,";\n }\n \n .").concat(o.zi," .").concat(o.zi," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(d,"] {\n ").concat(o.Av,": ").concat(l,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},p=function(){n.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i;p();var a=n.useMemo(function(){return u(o)},[o]);return n.createElement(c,{styles:f(a,!t,o,r?"":"!important")})}},33225:function(e,t,r){"use strict";r.d(t,{Ws:function(){return s}});var n,i=r(2784),o=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=o();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},s=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},32718:function(e,t,r){var n,i=r(58085),o=r(41964),a=r(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,o,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,o="",a=t;n=s.exec(a);){n[0].index>0&&(o+=a.substring(0,n[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",r);o+=l.pre+u,a=l.post}return o+a}(r,l));if(c.length>1||r.indexOf("var(")>-1)return o+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=r.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+r+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},41964:function(e,t,r){var n=r(82294);e.exports=function e(t,r,i){return(function(e,t){var r=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=n("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,o){var a,s;return n.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,r,i),s,t)))},t)}},6692:function(e,t,r){let n=r(83128);e.exports=(n.__esModule?n:{default:n}).default},83128:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(n=r(37540))&&n.__esModule?n:{default:n};function o({version:e,from:t,to:r}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,r){"use strict";var n,i=r(93542);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dim:()=>l,default:()=>u});let o=(n=r(24470))&&n.__esModule?n:{default:n},a=new Set;function s(e,t,r){(void 0===i||!i.env.JEST_WORKER_ID)&&(r&&a.has(r)||(r&&a.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var r=e.length,n=Array(r),i={},o=r,a=function(e){for(var t=new Map,r=0,n=e.length;r{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,r=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,n.useRef)({item:null,parsed:t}),d=(0,n.useSyncExternalStore)((0,n.useCallback)(t=>{let r=r=>{e===r&&t()};return o.add(r),()=>{o.delete(r)}},[e]),()=>{var r;let n=null!==(r=s(()=>localStorage.getItem(e)))&&void 0!==r?r:null;if(i.has(e))c.current={item:n,parsed:i.get(e)};else if(n!==c.current.item){let e;try{e=null===n?t:l(n)}catch(r){e=t}c.current={item:n,parsed:e}}return c.current.parsed},()=>t),f=(0,n.useCallback)(t=>{let r=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(r)),i.delete(e)}catch(t){i.set(e,r)}a(e)},[e,u]);return(0,n.useEffect)(()=>{if(!r)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,r]),(0,n.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,r,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},57758:function(e,t,r){"use strict";r.d(t,{L:function(){return a}});var n=r(22970),i=r(2784),o=function(e){var t=e.sideCar,r=(0,n._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,(0,n.pi)({},r))};function a(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},64597:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});var n=r(22970);function i(e){return e}function o(e){void 0===e&&(e={});var t,r,o,a=(void 0===t&&(t=i),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var n=t(e,o);return r.push(n),function(){r=r.filter(function(e){return e!==n})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return a.options=(0,n.pi)({async:!0,ssr:!1},e),a}},20452:function(e,t,r){"use strict";var n=r(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},43100:function(e,t,r){"use strict";e.exports=r(20452)},24511:function(e,t,r){"use strict";r.d(t,{Rx:function(){return X},Ry:function(){return ey},Z_:function(){return Y}});try{y=Map}catch(e){}try{x=Set}catch(e){}function n(e){return function e(t,r,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(n);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){r.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=r.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],r,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return s.call(e).replace(l,"Symbol($1)");let n=i.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+o.call(e)+"]":"RegExp"===n?a.call(e):null}function c(e,t){let r=u(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=u(this[e],t);return null!==n?n:r},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:r,originalValue:n})=>{let i=null!=n&&n!==r,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(r,!0)}\``+(i?` (cast from the value \`${c(n,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},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}"},v={noUnknown:"${path} field has unspecified keys: ${unknown}"},g={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:v,array:g,boolean:m});var y,x,b=r(93352),w=r.n(b),j=e=>e&&e.__isYupSchema__;class E{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:r,then:n,otherwise:i}=t,o="function"==typeof r?r:(...e)=>e.every(e=>e===r);this.fn=function(...e){let t=e.pop(),r=e.pop(),a=o(...e)?n:i;if(a)return"function"==typeof a?a(r):r.concat(a.resolve(t))}}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!j(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}}function k(e){return null==e?[]:[].concat(e)}function C(){return(C=Object.assign||function(e){for(var t=1;tc(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],k(e).forEach(e=>{O.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,O)}}let _=e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}};function M(e,t){let{endEarly:r,tests:n,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=n.length,d=[];if(a=a||[],!c)return a.length?u(new O(a,o,l)):u(null,o);for(let e=0;e=0||(i[r]=e[r]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return R.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=P()(D({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),r=new O(O.formatError(e.message||p,t),i,t.path,e.type||d);return r.params=t,r}let x=D({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{O.isError(e)?r(e):e?r(null,e):r(y())}).catch(r)}catch(e){r(e)}return}try{var b;if(n=f.call(x,i,x),"function"==typeof(null==(b=n)?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){r(e);return}O.isError(n)?r(n):n?r(null,n):r(y())}return t.OPTIONS=e,t}R.prototype.__isYupRef=!0;let F=e=>e.substr(0,e.length-1).substr(1);class Z{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,r)=>t.concat(R.isRef(r)?e(r):r),[])}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 Z;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let r=this.clone();return e.list.forEach(e=>r.add(e)),e.refs.forEach(e=>r.add(e)),t.list.forEach(e=>r.delete(e)),t.refs.forEach(e=>r.delete(e)),r}}function V(){return(V=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=V({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=V({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=n(V({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=V({},this.spec,t.spec);return t.spec=r,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let r=this.resolve(V({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let i=c(e),o=c(n);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". attempted value: ${i} `+(o!==i?`result of cast: ${o}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,V({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:n,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),M({args:c,value:u,path:i,sync:n,tests:d,endEarly:l},e=>{if(e)return void r(e,u);M({tests:this.tests.concat(f),args:c,path:i,sync:n,value:u,endEarly:l},r)})}validate(e,t,r){let n=this.resolve(V({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise((r,i)=>n._validate(e,t,(e,t)=>{e?i(e):r(t)}))}validateSync(e,t){let r;return this.resolve(V({},t,{value:e}))._validate(e,V({},t,{sync:!0}),(e,t)=>{if(e)throw e;r=t}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(O.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(O.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):n(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 r=this.clone(),n=L(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=k(e).map(e=>new R(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push(new E(n,t)),r}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 r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r._whitelistError=L({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=d.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r._blacklistError=L({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:r}=e.spec;return{meta:r,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,r)=>r.findIndex(t=>t.name===e.name)===t)}}}for(let e of(z.prototype.__isYupSchema__=!0,["validate","validateSync"]))z.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:a}=function(e,t,r,n=r){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?F(s):s;if((e=e.resolve({context:n,parent:i,value:r})).innerType){let n=u?parseInt(c,10):0;if(r&&n>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[n],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=r,r=r&&r[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,r,n.context);return a[e](i&&i[o],V({},n,{parent:i,path:t}))};for(let e of["equals","is"])z.prototype[e]=z.prototype.oneOf;for(let e of["not","nope"])z.prototype[e]=z.prototype.notOneOf;z.prototype.optional=z.prototype.notRequired,z.prototype;var I=e=>null==e;class B extends z{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=>I(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>I(e)||!1===e})}}B.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,$=e=>I(e)||e===e.trim(),q=({}).toString();function Y(){return new G}class G extends z{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===q?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 I(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 I(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 I(t)||t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||f.matches,params:{regex:e},test:t=>I(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:$})}lowercase(e=f.lowercase){return this.transform(e=>I(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>I(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toUpperCase()})}}Y.prototype=G.prototype;let K=e=>e!=+e;function X(){return new J}class J extends z{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!K(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(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 I(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 I(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=>I(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>I(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>I(t)?t:Math[e](t))}}X.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 er(){return new en}class en extends z{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,r,n=[1,4,5,6,7,10,11],i=0;if(r=Q.exec(e)){for(var o,a=0;o=n[a];++a)r[o]=+r[o]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?ee:new Date(e)})})}_typeCheck(e){return et(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if(R.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=p.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return I(e)||e>=this.resolve(r)}})}max(e,t=p.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return I(e)||e<=this.resolve(r)}})}}en.INVALID_DATE=ee,er.prototype=en.prototype,er.INVALID_DATE=ee;var ei=r(57370),eo=r.n(ei),ea=r(96009),es=r.n(ea),el=r(19950),eu=r.n(el),ec=r(95159),ed=r.n(ec);function ef(e,t){let r=1/0;return e.some((e,n)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return r=n,!0}),r}function eh(e){return(t,r)=>ef(e,t)-ef(e,r)}function ep(){return(ep=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),ev=eh([]);class eg extends z{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ev,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 r;let n=super._cast(e,t);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(n).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ep({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let r=i[e],a=w()(n,e);if(r){let i;let o=n[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(r=r.resolve({value:o,context:t.context,parent:s}))?r.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in n;continue}void 0!==(i=t.__validating&&c?n[e]:r.cast(n[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=n[e]);s[e]!==n[e]&&(u=!0)}return u?s:n}_validate(e,t={},r){let n=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!O.isError(e)||s)return void r(e,u);n.push(e)}if(!l||!em(u)){r(n[0]||null,u);return}a=a||u,M({sync:i,tests:this._nodes.map(e=>(r,n)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ep({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),n);return}n(null)}),value:u,errors:n,endEarly:s,sort:this._sortErrors,path:t.path},r)})}clone(e){let t=super.clone(e);return t.fields=ep({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];void 0===n?r[e]=t:n instanceof z&&t instanceof z&&(r[e]=t.concat(n))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let r=this.fields[t];e[t]="default"in r?r.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let r=this.clone(),n=Object.assign(r.fields,e);return r.fields=n,r._sortErrors=eh(Object.keys(n)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,T.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let t in e)if(w()(e,t)){let r=e[t];n.add(t),R.isRef(r)&&r.isSibling?o(r.path,t):j(r)&&"deps"in r&&r.deps.forEach(e=>o(e,t))}return ed().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),r=t.fields;for(let n of(t.fields={},e))delete r[n];return t.withMutation(()=>t.shape(r))}from(e,t,r){let n=(0,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return w()(i,e)&&(o=ep({},i),r||delete o[e],o[t]=n(i)),o})}noUnknown(e=!0,t=v.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let r;if(null==t)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===r.indexOf(e)));return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=v.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&eu()(t,(t,r)=>e(r)))}camelCase(){return this.transformKeys(es())}snakeCase(){return this.transformKeys(eo())}constantCase(){return this.transformKeys(e=>eo()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=P()(this.fields,e=>e.describe()),e}}function ey(e){return new eg(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 r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,ex({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r){var n,i;let o=[],a=t.sync,s=t.path,l=this.innerType,u=null!=(n=t.abortEarly)?n:this.spec.abortEarly,c=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,n)=>{if(e){if(!O.isError(e)||u)return void r(e,n);o.push(e)}if(!c||!l||!this._typeCheck(n)){r(o[0]||null,n);return}d=d||n;let i=Array(n.length);for(let e=0;el.validate(r,a,t)}M({sync:a,path:s,value:n,errors:o,endEarly:u,tests:i},r)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!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=g.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return I(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||g.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||g.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return I(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}eb.prototype},44868:function(e,t,r){"use strict";let n,i,o;var a=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===r||s(e,i,{get:()=>t[i],enumerable:!(n=l(t,i))||n.enumerable});return e},h={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(h,{Animated:()=>b,AnimatedArray:()=>M,AnimatedObject:()=>_,AnimatedString:()=>k,AnimatedValue:()=>j,createHost:()=>z,getAnimated:()=>g,getAnimatedType:()=>T,getPayload:()=>x,isAnimated:()=>v,setAnimated:()=>y}),e.exports=f(s({},"__esModule",{value:!0}),h);var p=r(6901),m=Symbol.for("Animated:node"),v=e=>!!e&&e[m]===e,g=e=>e&&e[m],y=(e,t)=>(0,p.defineHidden)(e,m,t),x=e=>e&&e[m]&&e[m].getPayload(),b=class{constructor(){y(this,this)}getPayload(){return this.payload||[]}},w=r(6901),j=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,w.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new j(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return w.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,w.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=r(6901),k=class extends j{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new k(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},C=r(6901),S=r(6901),O={dependencies:null},_=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(r,n)=>{v(r)?t[n]=r.getValue(e):(0,S.hasFluidValue)(r)?t[n]=(0,S.getFluidValue)(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){O.dependencies&&(0,S.hasFluidValue)(e)&&O.dependencies.add(e);let t=x(e);t&&(0,S.each)(t,e=>this.add(e))}},M=class extends _{constructor(e){super(e)}static create(e){return new M(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(A)),!0)}};function A(e){return((0,C.isAnimatedString)(e)?k:j).create(e)}var P=r(6901);function T(e){let t=g(e);return t?t.constructor:P.is.arr(e)?M:(0,P.isAnimatedString)(e)?k:j}var N=r(6901),R=(o=null!=(n=r(2784))?a(c(n)):{},f(!i&&n&&n.__esModule?o:s(o,"default",{value:n,enumerable:!0}),n)),D=r(2784),L=r(6901),F=(e,t)=>{let r=!L.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,D.forwardRef)((n,i)=>{var o;let a;let s=(0,D.useRef)(null),l=r&&(0,D.useCallback)(e=>{s.current=(i&&(L.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=n,a=new Set,O.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new _(o),O.dependencies=null,[o,a]),d=(0,L.useForceUpdate)(),f=()=>{let e=s.current;(!r||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new Z(f,c),p=(0,D.useRef)();(0,L.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,L.each)(c,e=>(0,L.addFluidObserver)(e,h)),()=>{p.current&&((0,L.each)(p.current.deps,e=>(0,L.removeFluidObserver)(e,p.current)),L.raf.cancel(p.current.update))})),(0,D.useEffect)(f,[]),(0,L.useOnce)(()=>()=>{let e=p.current;(0,L.each)(e.deps,t=>(0,L.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return R.createElement(e,{...m,ref:l})})},Z=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&L.raf.write(this.update)}},V=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new _(e),getComponentProps:n=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{let t=I(e)||"Anonymous";return(e=N.is.str(e)?o[e]||(o[e]=F(e,i)):e[V]||(e[V]=F(e,i))).displayName=`Animated(${t})`,e};return(0,N.eachProp)(e,(t,r)=>{N.is.arr(e)&&(r=I(t)),o[r]=o(t)}),{animated:o}},I=e=>N.is.str(e)?e:e&&N.is.str(e.displayName)?e.displayName:N.is.fun(e)&&e.name||null},22360:function(e,t,r){"use strict";let n,i;var o,a=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===r||s(e,i,{get:()=>t[i],enumerable:!(n=l(t,i))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?a(c(e)):{},f(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),p={};((e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})})(p,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>eo,Globals:()=>tu.Globals,Interpolation:()=>tn,Spring:()=>e6,SpringContext:()=>eR,SpringRef:()=>eF,SpringValue:()=>ef,Trail:()=>e7,Transition:()=>e9,config:()=>Z,createInterpolator:()=>td.createInterpolator,easings:()=>td.easings,inferTo:()=>C,interpolate:()=>tl,to:()=>ts,update:()=>tc,useChain:()=>P,useInView:()=>e5,useIsomorphicLayoutEffect:()=>td.useIsomorphicLayoutEffect,useReducedMotion:()=>td.useReducedMotion,useResize:()=>e1,useScroll:()=>eQ,useSpring:()=>eV,useSpringRef:()=>eB,useSpringValue:()=>eU,useSprings:()=>eZ,useTrail:()=>e$,useTransition:()=>eK}),e.exports=f(s({},"__esModule",{value:!0}),p);var m=r(6901),v=r(6901);function g(e,...t){return v.is.fun(e)?e(...t):e}var y=(e,t)=>!0===e||!!(t&&e&&(v.is.fun(e)?e(t):(0,v.toArray)(e).includes(t))),x=(e,t)=>v.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,w=e=>e,j=(e,t=w)=>{let r=E;e.default&&!0!==e.default&&(r=Object.keys(e=e.default));let n={};for(let i of r){let r=t(e[i],i);v.is.und(r)||(n[i]=r)}return n},E=["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 C(e){let t=function(e){let t={},r=0;if((0,v.eachProp)(e,(e,n)=>{k[n]||(t[n]=e,r++)}),r)return t}(e);if(t){let r={to:t};return(0,v.eachProp)(e,(e,n)=>n in t||(r[n]=e)),r}return{...e}}function S(e){return e=(0,v.getFluidValue)(e),v.is.arr(e)?e.map(S):(0,v.isAnimatedString)(e)?v.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function O(e){for(let t in e)return!0;return!1}function _(e){return v.is.fun(e)||v.is.arr(e)&&v.is.obj(e[0])}function M(e,t){e.ref?.delete(e),t?.delete(e)}function A(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function P(e,t,r=1e3){(0,m.useIsomorphicLayoutEffect)(()=>{if(t){let n=0;(0,m.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=r*t[i];isNaN(a)?a=n:n=a,(0,m.each)(o,e=>{(0,m.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+g(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,m.each)(e,e=>{let r=e.current;if(r.length){let n=r.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,m.each)(r,(e,t)=>(0,m.each)(n[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var T=r(6901),N=r(2784),R=r(6901),D=r(6901),L=r(25447),F=r(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}},V={...Z.default,mass:1,damping:1,easing:F.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,V)}};function I(e,t){if(F.is.und(t.decay)){let r=!F.is.und(t.tension)||!F.is.und(t.friction);!r&&F.is.und(t.frequency)&&F.is.und(t.damping)&&F.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var B=[],H=class{constructor(){this.changed=!1,this.values=B,this.toValues=null,this.fromValues=B,this.config=new z,this.immediate=!1}},U=r(6901);function W(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=y(r.cancel??n?.cancel,t);if(c)h();else{U.is.und(r.pause)||(i.paused=y(r.pause,t));let e=n?.pause;!0!==e&&(e=i.paused||y(e,t)),l=g(r.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-U.raf.now()}function f(){l>0&&!U.Globals.skipAnimation?(i.delayed=!0,u=U.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...r,callId:e,cancel:c},a)}catch(e){s(e)}}})}var $=r(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?K(e.get()):t.every(e=>e.noop)?Y(e.get()):G(e.get(),t.every(e=>e.finished)),Y=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),G=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),K=e=>({value:e,cancelled:!0,finished:!1});function X(e,t,r,n){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;let u=j(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(r.cancelId||0)&&K(n)||i!==r.asyncId&&G(n,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new ee;return(async()=>{if($.Globals.skipAnimation)throw J(r),a.result=G(n,!1),d(a),a;h(o);let s=$.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,$.eachProp)(u,(e,t)=>{$.is.und(s[t])&&(s[t]=e)});let l=await n.start(s);return h(o),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),l})()},m;if($.Globals.skipAnimation)return J(r),G(n,!1);try{let t;t=$.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,n.stop.bind(n))),await Promise.all([t.then(c),f]),m=G(n.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof ee)m=e.result;else throw e}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return $.is.fun(a)&&$.raf.batchedUpdates(()=>{a(m,n,n.item)}),m})():l}function J(e,t){(0,$.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ee=class extends Error{constructor(){super("SkipAnimationSignal")}},et=r(6901),er=r(25447),en=e=>e instanceof eo,ei=1,eo=class extends et.FluidValue{constructor(){super(...arguments),this.id=ei++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,er.getAnimated)(this);return e&&e.getValue()}to(...e){return et.Globals.to(this,e)}interpolate(...e){return(0,et.deprecateInterpolate)(),et.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,et.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||et.frameLoop.sort(this),(0,et.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},ea=Symbol.for("SpringPhase"),es=e=>(1&e[ea])>0,el=e=>(2&e[ea])>0,eu=e=>(4&e[ea])>0,ec=(e,t)=>t?e[ea]|=3:e[ea]&=-3,ed=(e,t)=>t?e[ea]|=4:e[ea]&=-5,ef=class extends eo{constructor(e,t){if(super(),this.animation=new H,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,!D.is.und(e)||!D.is.und(t)){let r=D.is.obj(e)?{...e}:{...t,from:e};D.is.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(el(this)||this._state.asyncTo)||eu(this)}get goal(){return(0,D.getFluidValue)(this.animation.to)}get velocity(){let e=(0,L.getAnimated)(this);return e instanceof L.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return es(this)}get isAnimating(){return el(this)}get isPaused(){return eu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,n=this.animation,{toValues:i}=n,{config:o}=n,a=(0,L.getPayload)(n.to);!a&&(0,D.hasFluidValue)(n.to)&&(i=(0,D.toArray)((0,D.getFluidValue)(n.to))),n.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==L.AnimatedString?1:a?a[l].lastPosition:i[l],c=n.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,r=n.fromValues[l],i=null!=s.v0?s.v0:s.v0=D.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(r==u?.005:Math.min(1,.001*Math.abs(u-r)));if(D.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,n=Math.exp(-(1-e)*t);d=r+i/(1-e)*(1-n),c=Math.abs(s.lastPosition-d)<=f,a=i*n}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,n=o.clamp?0:o.bounce,l=!D.is.und(n),h=r==u?s.v0>0:rt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*n,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let n=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(n=(o.progress||0)+t/this._memoizedDuration)>1?1:n<0?0:n,s.durationProgress=n),a=((d=r+o.easing(n)*(u-r))-s.lastPosition)/e,c=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(r=!0)});let s=(0,L.getAnimated)(this),l=s.getValue();if(t){let e=(0,D.getFluidValue)(n.to);(l!==e||r)&&!o.decay?(s.setValue(e),this._onChange(e)):r&&o.decay&&this._onChange(l),this._stop()}else r&&this._onChange(l)}set(e){return D.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;D.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 r;return D.is.und(e)?(r=this.queue||[],this.queue=[]):r=[D.is.obj(e)?e:{...t,to:e}],Promise.all(r.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),J(this._state,e&&this._lastCallId),D.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:r,from:n}=e;(null==(r=D.is.obj(r)?r[t]:r)||_(r))&&(r=void 0),null==(n=D.is.obj(n)?n[t]:n)&&(n=void 0);let i={to:r,from:n};return es(this)||(e.reverse&&([r,n]=[n,r]),n=(0,D.getFluidValue)(n),D.is.und(n)?(0,L.getAnimated)(this)||this._set(r):this._set(n)),i}_update({...e},t){let{key:r,defaultProps:n}=this;e.default&&Object.assign(n,j(e,(e,t)=>/^on/.test(t)?x(e,r):e)),ey(this,e,"onProps"),ex(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return W(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{eu(this)||(ed(this,!0),(0,D.flushCalls)(o.pauseQueue),ex(this,"onPause",G(this,eh(this,this.animation.to)),this))},resume:()=>{eu(this)&&(ed(this,!1),el(this)&&this._resume(),(0,D.flushCalls)(o.resumeQueue),ex(this,"onResume",G(this,eh(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(r=>{if(e.loop&&r.finished&&!(t&&r.noop)){let t=ep(e);if(t)return this._update(t,!0)}return r})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(K(this));let n=!D.is.und(e.to),i=!D.is.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(K(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!n&&(!t.default||D.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,D.isEqual)(d,u);f&&(s.from=d),d=(0,D.getFluidValue)(d);let h=!(0,D.isEqual)(c,l);h&&this._focus(c);let p=_(t.to),{config:m}=s,{decay:v,velocity:x}=m;(n||i)&&(m.velocity=0),t.config&&!p&&function(e,t,r){for(let n in r&&(I(r={...r},t),t={...r,...t}),I(e,t),Object.assign(e,t),V)null==e[n]&&(e[n]=V[n]);let{frequency:n,damping:i}=e,{mass:o}=e;F.is.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*o,e.friction=4*Math.PI*i*o/n)}(m,g(t.config,o),t.config!==a.config?g(a.config,o):void 0);let b=(0,L.getAnimated)(this);if(!b||D.is.und(c))return r(G(this,!0));let w=D.is.und(t.reset)?i&&!t.default:!D.is.und(d)&&y(t.reset,o),j=w?d:this.get(),E=S(c),k=D.is.num(E)||D.is.arr(E)||(0,D.isAnimatedString)(E),C=!p&&(!k||y(a.immediate||t.immediate,o));if(h){let e=(0,L.getAnimatedType)(c);if(e!==b.constructor){if(C)b=this._set(E);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=b.constructor,M=(0,D.hasFluidValue)(c),A=!1;if(!M){let e=w||!es(this)&&f;(h||e)&&(M=!(A=(0,D.isEqual)(S(j),E))),((0,D.isEqual)(s.immediate,C)||C)&&(0,D.isEqual)(m.decay,v)&&(0,D.isEqual)(m.velocity,x)||(M=!0)}if(A&&el(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,D.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,D.hasFluidValue)(c)?null:O==L.AnimatedString?[1]:(0,D.toArray)(E)),s.immediate==C||(s.immediate=C,C||w||this._set(l)),M)){let{onRest:e}=s;(0,D.each)(eg,e=>ey(this,t,e));let n=G(this,eh(this,l));(0,D.flushCalls)(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&D.raf.batchedUpdates(()=>{s.changed=!w,e?.(n,this),w?g(a.onRest,n):s.onStart?.(n,this)})}w&&this._set(j),p?r(X(t.to,t,this._state,this)):M?this._start():el(this)&&!h?this._pendingCalls.add(r):r(Y(j))}_focus(e){let t=this.animation;e!==t.to&&((0,D.getFluidObservers)(this)&&this._detach(),t.to=e,(0,D.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,D.hasFluidValue)(t)&&((0,D.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,D.hasFluidValue)(e)&&(0,D.removeFluidObserver)(e,this)}_set(e,t=!0){let r=(0,D.getFluidValue)(e);if(!D.is.und(r)){let e=(0,L.getAnimated)(this);if(!e||!(0,D.isEqual)(r,e.getValue())){let n=(0,L.getAnimatedType)(r);e&&e.constructor==n?e.setValue(r):(0,L.setAnimated)(this,n.create(r)),e&&D.raf.batchedUpdates(()=>{this._onChange(r,t)})}}return(0,L.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ex(this,"onStart",G(this,eh(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,L.getAnimated)(this).reset((0,D.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),el(this)||(ec(this,!0),eu(this)||this._resume())}_resume(){D.Globals.skipAnimation?this.finish():D.frameLoop.start(this)}_stop(e,t){if(el(this)){ec(this,!1);let r=this.animation;(0,D.each)(r.values,e=>{e.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),(0,D.callFluidObservers)(this,{type:"idle",parent:this});let n=t?K(this.get()):G(this.get(),eh(this,e??r.to));(0,D.flushCalls)(this._pendingCalls,n),r.changed&&(r.changed=!1,ex(this,"onRest",n,this))}}};function eh(e,t){let r=S(t),n=S(e.get());return(0,D.isEqual)(n,r)}function ep(e,t=e.loop,r=e.to){let n=g(t);if(n){let i=!0!==n&&C(n),o=(i||e).reverse,a=!i||i.reset;return em({...e,loop:t,default:!1,pause:void 0,to:!o||_(r)?r:void 0,from:a?e.from:void 0,reset:a,...i})}}function em(e){let{to:t,from:r}=e=C(e),n=new Set;return D.is.obj(t)&&ev(t,n),D.is.obj(r)&&ev(r,n),e.keys=n.size?Array.from(n):null,e}function ev(e,t){(0,D.eachProp)(e,(e,r)=>null!=e&&t.add(r))}var eg=["onStart","onRest","onChange","onPause","onResume"];function ey(e,t,r){e.animation[r]=t[r]!==b(t,r)?x(t[r],e.key):void 0}function ex(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var eb=r(6901),ew=["onStart","onChange","onRest"],ej=1,eE=class{constructor(e,t){this.id=ej++,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,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];eb.is.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(em(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(em):this.queue=[],this._flush?this._flush(this,t):(eA(this,t),ek(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let r=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>r[t].stop(!!e))}else J(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,eb.flush)(r,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}eb.raf.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(t=>eC(e,t))).then(t=>q(e,t))}async function eC(e,t,r){let{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ew,r=>{let n=t[r];if(eb.is.fun(n)){let i=e._events[r];t[r]=({finished:e,cancelled:t})=>{let r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[r]=t[r])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(n||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(W(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,r){h?(J(d,e._lastAsyncId),r(K(e))):(t.onRest=s,r(X(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(r&&p.noop)){let r=ep(t,a,i);if(r)return eA(e,[r]),eC(e,r,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let r={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=em(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eM(r,e,e=>e_(e))}),eO(e,r),r}function eO(e,t){(0,eb.eachProp)(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,(0,eb.addFluidObserver)(t,e))})}function e_(e,t){let r=new ef;return r.key=e,t&&(0,eb.addFluidObserver)(r,t),r}function eM(e,t,r){t.keys&&(0,eb.each)(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function eA(e,t){(0,eb.each)(t,t=>{eM(e.springs,t,t=>e_(t,e))})}var eP=h(r(2784)),eT=r(2784),eN=r(6901),eR=({children:e,...t})=>{let r=(0,eT.useContext)(eD),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=(0,eN.useMemoOne)(()=>({pause:n,immediate:i}),[n,i]);let{Provider:o}=eD;return eP.createElement(o,{value:t},e)},eD=(o={},Object.assign(eR,eP.createContext(o)),eR.Provider._context=eR,eR.Consumer._context=eR,eR);eR.Provider=eD.Provider,eR.Consumer=eD.Consumer;var eL=r(6901),eF=()=>{let e=[],t=function(t){(0,eL.deprecateDirectCall)();let n=[];return(0,eL.each)(e,(e,i)=>{if(eL.is.und(t))n.push(e.start());else{let o=r(t,e,i);o&&n.push(e.start(o))}}),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return(0,eL.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eL.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eL.each)(e,(e,r)=>{let n=eL.is.fun(t)?t(r,e):t;n&&e.set(n)})},t.start=function(t){let r=[];return(0,eL.each)(e,(e,n)=>{if(eL.is.und(t))r.push(e.start());else{let i=this._getProps(t,e,n);i&&r.push(e.start(i))}}),r},t.stop=function(){return(0,eL.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eL.each)(e,(e,r)=>e.update(this._getProps(t,e,r))),this};let r=function(e,t,r){return eL.is.fun(e)?e(r,t):e};return t._getProps=r,t};function eZ(e,t,r){let n=R.is.fun(t)&&t;n&&!r&&(r=[]);let i=(0,N.useMemo)(()=>n||3==arguments.length?eF():void 0,[]),o=(0,N.useRef)(0),a=(0,R.useForceUpdate)(),s=(0,N.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let r=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(r).some(t=>!e.springs[t])?new Promise(n=>{eO(e,r),s.queue.push(()=>{n(ek(e,t))}),a()}):ek(e,t)}}),[]),l=(0,N.useRef)([...s.ctrls]),u=[],c=(0,R.usePrev)(e)||0;function d(e,r){for(let i=e;i{(0,R.each)(l.current.slice(e,c),e=>{M(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,N.useMemo)(()=>{d(0,Math.min(c,e))},r);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,N.useContext)(eR),p=(0,R.usePrev)(h),m=h!==p&&O(h);(0,R.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,R.each)(e,e=>e())),(0,R.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let r=u[t];r&&(A(e,r.ref),e.ref?e.queue.push(r):e.start(r))})}),(0,R.useOnce)(()=>()=>{(0,R.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eV(e,t){let r=T.is.fun(e),[[n],i]=eZ(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}var ez=r(2784),eI=()=>eF(),eB=()=>(0,ez.useState)(eI)[0],eH=r(6901),eU=(e,t)=>{let r=(0,eH.useConstant)(()=>new ef(e,t));return(0,eH.useOnce)(()=>()=>{r.stop()}),r},eW=r(6901);function e$(e,t,r){let n=eW.is.fun(t)&&t;n&&!r&&(r=[]);let i=!0,o,a=eZ(e,(e,r)=>{let a=n?n(e,r):t;return o=a.ref,i=i&&a.reverse,a},r||[{}]);if((0,eW.useIsomorphicLayoutEffect)(()=>{(0,eW.each)(a[1].current,(e,t)=>{let r=a[1].current[t+(i?1:-1)];if(A(e,o),e.ref){r&&e.update({to:r.springs});return}r?e.start({to:r.springs}):e.start()})},r),n||3==arguments.length){let e=o??a[1];return e._getProps=(t,r,n)=>{let i=eW.is.fun(t)?t(n,r):t;if(i){let t=e.current[n+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=h(r(2784)),eY=r(2784),eG=r(6901);function eK(e,t,r){let n=eG.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=n?n():t,f=(0,eY.useMemo)(()=>n||3==arguments.length?eF():void 0,[]),h=(0,eG.toArray)(e),p=[],m=(0,eY.useRef)(null),v=i?null:m.current;(0,eG.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eG.useOnce)(()=>((0,eG.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eG.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),M(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:r=t},n){if(null===r){let t=new Set;return e.map(e=>{let r=n&&n.find(r=>r.item===e&&"leave"!==r.phase&&!t.has(r));return r?(t.add(r),r.key):eX++})}return eG.is.und(r)?e:eG.is.fun(r)?e.map(r):(0,eG.toArray)(r)}(h,n?n():t,v),x=i&&m.current||[];(0,eG.useIsomorphicLayoutEffect)(()=>(0,eG.each)(x,({ctrl:e,item:t,key:r})=>{M(e,f),g(u,t,r)}));let b=[];if(v&&(0,eG.each)(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eG.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:r}=n?n():t;(0,eG.each)(b,(t,n)=>{let i=v[n];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):r&&p.splice(++e,0,i)})}eG.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,E=(0,eG.useForceUpdate)(),k=j(t),S=new Map,_=(0,eY.useRef)(new Map),P=(0,eY.useRef)(!1);(0,eG.each)(p,(e,r)=>{let i=e.key,o=e.phase,u=n?n():t,f,h,p=g(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=g(f,e.item,r),!(f=eG.is.obj(f)?C(f):{to:f}).config){let t=d||k.config;f.config=g(t,e.item,r,h)}w+=a;let x={...k,delay:p+w,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eG.is.und(x.from)){let i=n?n():t,o=eG.is.und(i.initial)||v?i.from:i.initial;x.from=g(o,e.item,r)}let{onResolve:b}=x;x.onResolve=e=>{g(b,e);let t=m.current,r=t.find(e=>e.key===i);if(r&&!(e.cancelled&&"update"!=r.phase)&&r.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==r.phase){let t=g(s,r.item);if(!1!==t){let n=!0===t?0:t;if(r.expired=!0,!e&&n>0){n<=2147483647&&(r.expirationId=setTimeout(E,n));return}}}e&&t.some(e=>e.expired)&&(_.current.delete(r),l&&(P.current=!0),E())}};let j=eS(e.ctrl,x);"leave"===h&&l?_.current.set(e,{phase:h,springs:j,payload:x}):S.set(e,{phase:h,springs:j,payload:x})});let T=(0,eY.useContext)(eR),N=(0,eG.usePrev)(T),R=T!==N&&O(T);(0,eG.useIsomorphicLayoutEffect)(()=>{R&&(0,eG.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eG.each)(S,(e,t)=>{if(_.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eG.useIsomorphicLayoutEffect)(()=>{(0,eG.each)(_.current.size?_.current:S,({phase:e,payload:t},r)=>{let{ctrl:n}=r;r.phase=e,f?.add(n),R&&"enter"==e&&n.start({default:T}),t&&(A(n,t.ref),(n.ref||f)&&!P.current?n.update(t):(n.start(t),P.current&&(P.current=!1)))})},i?void 0:r);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,r)=>{let{springs:n}=S.get(t)||t.ctrl,i=e({...n},t.item,t,r);return i&&i.type?eq.createElement(i.type,{...i.props,key:eG.is.str(t.key)||eG.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eJ=r(6901),eQ=({container:e,...t}={})=>{let[r,n]=eV(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onScroll)(({x:e,y:t})=>{n.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(r),e=>e.stop()),t()}},[]),r},e0=r(6901),e1=({container:e,...t})=>{let[r,n]=eV(()=>({width:0,height:0,...t}),[]);return(0,e0.useIsomorphicLayoutEffect)(()=>{let t=(0,e0.onResize)(({width:e,height:t})=>{n.start({width:e,height:t,immediate:0===r.width.get()||0===r.height.get()})},{container:e?.current||void 0});return()=>{(0,e0.each)(Object.values(r),e=>e.stop()),t()}},[]),r},e2=r(2784),e4=r(6901),e3={any:0,all:1};function e5(e,t){let[r,n]=(0,e2.useState)(!1),i=(0,e2.useRef)(),o=e4.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eV(()=>({from:s,...l}),[]);return(0,e4.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&r||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),n(!0),o?void 0:()=>{s&&d.start(s),n(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e4.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e3[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,r]}function e6({children:e,...t}){return e(eV(t))}var e8=r(6901);function e7({items:e,children:t,...r}){let n=e$(e.length,r);return e.map((e,r)=>{let i=t(e,r);return e8.is.fun(i)?i(n[r]):i})}function e9({items:e,children:t,...r}){return eK(e,r)(t)}var te=r(6901),tt=r(6901),tr=r(25447),tn=class extends eo{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,tt.createInterpolator)(...t);let r=this._get(),n=(0,tr.getAnimatedType)(r);(0,tr.setAnimated)(this,n.create(r))}advance(e){let t=this._get(),r=this.get();(0,tt.isEqual)(t,r)||((0,tr.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&to(this._active)&&ta(this)}_get(){let e=tt.is.arr(this.source)?this.source.map(tt.getFluidValue):(0,tt.toArray)((0,tt.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!to(this._active)&&(this.idle=!1,(0,tt.each)((0,tr.getPayload)(this),e=>{e.done=!1}),tt.Globals.skipAnimation?(tt.raf.batchedUpdates(()=>this.advance()),ta(this)):tt.frameLoop.start(this))}_attach(){let e=1;(0,tt.each)((0,tt.toArray)(this.source),t=>{(0,tt.hasFluidValue)(t)&&(0,tt.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,tt.each)((0,tt.toArray)(this.source),e=>{(0,tt.hasFluidValue)(e)&&(0,tt.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,tt.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function ti(e){return!1!==e.idle}function to(e){return!e.size||Array.from(e).every(ti)}function ta(e){e.idle||(e.idle=!0,(0,tt.each)((0,tr.getPayload)(e),e=>{e.done=!0}),(0,tt.callFluidObservers)(e,{type:"idle",parent:e}))}var ts=(e,...t)=>new tn(e,t),tl=(e,...t)=>((0,te.deprecateInterpolate)(),new tn(e,t)),tu=r(6901);tu.Globals.assign({createStringInterpolator:tu.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tc=tu.frameLoop.advance,td=r(6901);n=r(8669),i=e.exports,f(p,n,"default"),i&&f(i,n,"default")},78476:function(e,t,r){"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},l={};s(l,{FluidValue:()=>eP,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eG,each:()=>T,eachProp:()=>N,easings:()=>eE,flush:()=>D,flushCalls:()=>Z,frameLoop:()=>Y,getFluidObservers:()=>e_,getFluidValue:()=>eO,hasFluidValue:()=>eS,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eJ,isEqual:()=>P,isSSR:()=>V,noop:()=>_,onResize:()=>e6,onScroll:()=>ti,once:()=>eq,prefix:()=>e$,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eT,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of o(t))a.call(e,l)||l===r||n(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(n({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>z,createStringInterpolator:()=>L,skipAnimation:()=>I,to:()=>F,willAdvance:()=>B});var c=S(),d=e=>j(e,c),f=S();d.write=e=>j(e,f);var h=S();d.onStart=e=>j(e,h);var p=S();d.onFrame=e=>j(e,p);var m=S();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let r=d.now()+t,n=()=>{let e=v.findIndex(e=>e.cancel==n);~e&&v.splice(e,1),b-=~e?1:0},i={time:r,handler:e,cancel:n};return v.splice(g(r),0,i),b+=1,E(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,d.onStart(r)}return n.handler=e,n.cancel=()=>{h.delete(r),t=null},n};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"):C()};var x=-1,b=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),E())}function E(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(C))}function C(){let e=x,t=g(x=d.now());if(t&&(O(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function S(){let e=new Set,t=e;return{add(r){b+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(b-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,b-=t.size,O(t,t=>t(r)&&e.add(t)),b+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function _(){}var M=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function P(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let r=0;re.forEach(t);function N(e,t,r){if(A.arr(e)){for(let n=0;nA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let r=Array.from(e);e.clear(),T(r,t)}}var L,F,Z=(e,...t)=>D(e,e=>e(...t)),V=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),z=null,I=!1,B=_,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(z=e.colors),null!=e.skipAnimation&&(I=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],$=[],q=0,Y={get idle(){return!U.size&&!W.length},start(e){q>e.priority?(U.add(e),d.onStart(G)):(K(e),d(J))},advance:J,sort(e){if(q)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(K),U.clear(),d(J)}function K(e){W.includes(e)||X(e)}function X(e){var t,r;let n;W.splice((t=W,r=t=>t.priority>e.priority,(n=t.findIndex(r))<0?t.length:n),0,e)}function J(e){let t=$;for(let r=0;r0}var Q=(e,t,r)=>Math.min(Math.max(r,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+",er=et+"%";function en(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+en(et,et,et)),eo=RegExp("rgba"+en(et,et,et,et)),ea=RegExp("hsl"+en(et,er,er)),es=RegExp("hsla"+en(et,er,er,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function eh(e,t,r){let n=r<.5?r*(1+t):r+t-r*t,i=2*r-n;return Math.round(255*ef(i,n,e+1/3))<<24|Math.round(255*ef(i,n,e))<<16|Math.round(255*ef(i,n,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let r="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:z&&void 0!==z[e]?z[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;if(null===r)return e;let n=(4278190080&(r=r||0))>>>24,i=(16711680&r)>>>16,o=(65280&r)>>>8,a=(255&r)/255;return`rgba(${n}, ${i}, ${o}, ${a})`}var ex=(e,t,r)=>{if(A.fun(e))return e;if(A.arr(e))return ex({range:e,output:t,extrapolate:r});if(A.str(e.output[0]))return L(e);let n=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let r=function(e,t){for(var r=1;r=e);++r);return r-1}(t,i);return function(e,t,r,n,i,o,a,s,l){let u=l?l(e):e;if(ur){if("identity"===s)return u;"clamp"===s&&(u=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?u=-u:r===1/0?u-=t:u=(u-t)/(r-t),u=o(u),n===-1/0?u=-u:i===1/0?u+=n:u=u*(i-n)+n,u)}(t,i[r],i[r+1],n[r],n[r+1],s,o,a,e.map)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eE={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")=>r=>{let n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return Q(0,1,("end"===t?Math.floor(n):Math.ceil(n))/e)}},ek=Symbol.for("FluidValue.get"),eC=Symbol.for("FluidValue.observers"),eS=e=>!!(e&&e[ek]),eO=e=>e&&e[ek]?e[ek]():e,e_=e=>e[eC]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let r=e[eC];r&&r.forEach(e=>{eM(e,t)})}var eP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eT(this,e)}},eT=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){let r=e[eC];r||eL(e,eC,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function eR(e,t){let r=e[eC];if(r&&r.has(t)){let n=r.size-1;n?r.delete(t):e[eC]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var eD,eL=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eV=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),ez=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,r]=eH(e);if(!t||V())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||e:r&&eI.test(r)?eB(r):r||e},eH=e=>{let t=eI.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]},eU=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,eW=e=>{eD||(eD=z?RegExp(`(${Object.keys(z).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eO(e).replace(eI,eB).replace(eZ,ey).replace(eD,ey)),r=t.map(e=>e.match(eF).map(Number)),n=r[0].map((e,t)=>r.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 r=!eV.test(t[0])&&t.find(e=>eV.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${n[i++](e)}${r||""}`).replace(ez,eU)}},e$="react-spring: ",eq=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${e$}once requires a function parameter`);return(...r)=>{t||(e(...r),t=!0)}},eY=eq(console.warn);function eG(){eY(`${e$}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eK=eq(console.warn);function eX(){eK(`${e$}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 A.str(e)&&("#"==e[0]||/\d/.test(e)||!V()&&eI.test(e)||e in(z||{}))}var eQ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let r;return t===document.documentElement?e5(e):(eQ||"u">typeof ResizeObserver&&(eQ=new ResizeObserver(e2)),(r=e1.get(t))||(r=new Set,e1.set(t,r)),r.add(e),eQ&&eQ.observe(t),()=>{let r=e1.get(t);r&&(r.delete(e),!r.size&&eQ&&eQ.unobserve(t))})},e8=(e,t,r)=>t-e==0?1:(r-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:r,position:n}=e7[e];t.current=this.container[`scroll${n}`],t.scrollLength=this.container["scroll"+r]-this.container["client"+r],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,tr=new WeakMap,tn=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let r=tr.get(t);r||(r=new Set,tr.set(t,r));let n=new e9(e,t);if(r.add(n),!te.has(t)){let e=()=>(r?.forEach(e=>e.advance()),!0);te.set(t,e);let n=tn(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),n.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tr.get(t);if(!e||(e.delete(n),e.size))return;let r=te.get(t);te.delete(t),r&&(tn(t).removeEventListener("scroll",r),window.removeEventListener("resize",r),tt.get(t)?.())}},to=r(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=r(2784),tl=r(2784),tu=r(2784),tc=V()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=r(2784);function tp(e,t){let[r]=(0,th.useState)(()=>({inputs:t,result:e()})),n=(0,th.useRef)(),i=n.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}var tm=r(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=r(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=r(2784),tw=()=>{let[e,t]=(0,tb.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),r=e=>{t(e.matches),H({skipAnimation:e.matches})};return r(e),e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let l of n(o))i.call(e,l)||l===a||t(e,l,{get:()=>o[l],enumerable:!(s=r(o,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,r){"use strict";let n,i;var o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},c={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=r(99550),f=r(28316),h=r(6901),p=r(25447),m=/^--/,v={},g={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(r=>e[y(r,t)]=e[t]),e),g);var b=r(25447),w=r(6901),j=/^(matrix|translate|scale|rotate|skew)/,E=/^(translate)/,k=/^(rotate|skew)/,C=(e,t)=>w.is.num(e)&&0!==e?e+t:e,S=(e,t)=>w.is.arr(e)?e.every(e=>S(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,O=class extends b.AnimatedObject{constructor({x:e,y:t,z:r,...n}){let i=[],o=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),o.push(e=>[`translate3d(${e.map(e=>C(e,"px")).join(",")})`,S(e,0)])),(0,w.eachProp)(n,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete n[t],w.is.und(e))return;let r=E.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${C(i,r)})`,S(i,0)]:e=>[`${t}(${e.map(e=>C(e,r)).join(",")})`,S(e,t.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new _(i,o)),super(n)}},_=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,(r,n)=>{let i=(0,w.getFluidValue)(r[0]),[o,a]=this.transforms[n](w.is.arr(i)?i:r.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};n=r(99550),i=e.exports,u(c,n,"default"),i&&u(i,n,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:n,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),n)if(n.hasOwnProperty(t)){var d;let r=null==(d=n[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,r):e.style[t]=r}c.forEach((t,r)=>{e.setAttribute(t,u[r])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}).animated},7896:function(e,t,r){"use strict";function n(){return(n=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,r=0,n="";rr=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],i=null==s?void 0:s[e];if(null===t)return null;let o=n(t)||n(i);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,l,null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},65304:function(e,t,r){"use strict";let n,i;r.d(t,{mY:function(){return eJ},U8:function(){return e4}});var o=r(7896),a=r(2784),s=r.t(a,2),l=r(41816),u=r(26215),c=r(34540),d=r(64680);let f=s["useId".toString()]||(()=>void 0),h=0;function p(e){let[t,r]=a.useState(f());return(0,d.b)(()=>{e||r(e=>null!=e?e:String(h++))},[e]),e||(t?`radix-${t}`:"")}var m=r(73597),v=r(72130),g=r(86029);let y="dismissableLayer.update",x=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b=(0,a.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...h}=e,p=(0,a.useContext)(x),[m,b]=(0,a.useState)(null),[,E]=(0,a.useState)({}),k=(0,u.e)(t,e=>b(e)),C=Array.from(p.layers),[S]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),O=C.indexOf(S),_=m?C.indexOf(m):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,A=_>=O,P=function(e){let t=(0,g.W)(e),r=(0,a.useRef)(!1),n=(0,a.useRef)(()=>{});return(0,a.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){j("dismissableLayer.pointerDownOutside",t,r,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",n.current),n.current=i,document.addEventListener("click",n.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",n.current)}},[t]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,r=[...p.branches].some(e=>e.contains(t));!A||r||(null==s||s(e),null==d||d(e),e.defaultPrevented||null==f||f())}),T=function(e){let t=(0,g.W)(e),r=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=e=>{e.target&&!r.current&&j("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...p.branches].some(e=>e.contains(t))||(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())});return!function(e){let t=(0,g.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.layers.size-1||(null==i||i(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))}),(0,a.useEffect)(()=>{if(m)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(n=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),w(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=n)}},[m,r,p]),(0,a.useEffect)(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),w())},[m,p]),(0,a.useEffect)(()=>{let e=()=>E({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,a.createElement)(v.WV.div,(0,o.Z)({},h,{ref:k,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,l.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,l.M)(e.onPointerDownCapture,P.onPointerDownCapture)}))});function w(){let e=new CustomEvent(y);document.dispatchEvent(e)}function j(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,v.jH)(i,o):i.dispatchEvent(o)}let E="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},S=(0,a.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,d]=(0,a.useState)(null),f=(0,g.W)(i),h=(0,g.W)(s),p=(0,a.useRef)(null),m=(0,u.e)(t,e=>d(e)),y=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.useEffect)(()=>{if(n){function e(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:M(p.current,{select:!0})}function t(e){y.paused||!c||c.contains(e.relatedTarget)||M(p.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[n,c,y.paused]),(0,a.useEffect)(()=>{if(c){A.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(E,C);c.addEventListener(E,f),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(M(n,{select:t}),document.activeElement!==r)return}(O(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&M(c))}return()=>{c.removeEventListener(E,f),setTimeout(()=>{let t=new CustomEvent(k,C);c.addEventListener(k,h),c.dispatchEvent(t),t.defaultPrevented||M(null!=e?e:document.body,{select:!0}),c.removeEventListener(k,h),A.remove(y)},0)}}},[c,f,h,y]);let x=(0,a.useCallback)(e=>{if(!r&&!n||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,o]=function(e){let t=O(e);return[_(t,e),_(t.reverse(),e)]}(t);n&&o?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&M(o,{select:!0})):(e.preventDefault(),r&&M(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,y.paused]);return(0,a.createElement)(v.WV.div,(0,o.Z)({tabIndex:-1},l,{ref:m,onKeyDown:x}))});function O(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function M(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}let A=(i=[],{add(e){let t=i[0];e!==t&&(null==t||t.pause()),(i=P(i,e)).unshift(e)},remove(e){var t;null===(t=(i=P(i,e))[0])||void 0===t||t.resume()}});function P(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var T=r(28316);let N=(0,a.forwardRef)((e,t)=>{var r;let{container:n=null==globalThis?void 0:null===(r=globalThis.document)||void 0===r?void 0:r.body,...i}=e;return n?T.createPortal((0,a.createElement)(v.WV.div,(0,o.Z)({},i,{ref:t})),n):null}),R=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,i]=(0,a.useState)(),o=(0,a.useRef)({}),s=(0,a.useRef)(e),l=(0,a.useRef)("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,a.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return(0,a.useEffect)(()=>{let e=D(o.current);l.current="mounted"===u?e:"none"},[u]),(0,d.b)(()=>{let t=o.current,r=s.current;if(r!==e){let n=l.current,i=D(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):r&&n!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),(0,d.b)(()=>{if(n){let e=e=>{let t=D(o.current).includes(e.animationName);e.target===n&&t&&(0,T.flushSync)(()=>c("ANIMATION_END"))},t=e=>{e.target===n&&(l.current=D(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,a.useCallback)(e=>{e&&(o.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):a.Children.only(r),o=(0,u.e)(n.ref,i.ref);return"function"==typeof r||n.isPresent?(0,a.cloneElement)(i,{ref:o}):null};function D(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";let L=0;function F(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Z=r(22970),V=r(95346),z=r(22442),I=(0,r(64597)._)(),B=function(){},H=a.forwardRef(function(e,t){var r=a.useRef(null),n=a.useState({onScrollCapture:B,onWheelCapture:B,onTouchMoveCapture:B}),i=n[0],o=n[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=(0,Z._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=(0,z.q)([r,t]),b=(0,Z.pi)((0,Z.pi)({},y),i);return a.createElement(a.Fragment,null,d&&a.createElement(h,{sideCar:I,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),s?a.cloneElement(a.Children.only(l),(0,Z.pi)((0,Z.pi)({},b),{ref:x})):a.createElement(void 0===g?"div":g,(0,Z.pi)({},b,{className:u,ref:x}),l))});H.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},H.classNames={fullWidth:V.zi,zeroRight:V.pF};var U=r(57758),W=r(181),$=r(33225),q=!1;if("undefined"!=typeof window)try{var Y=Object.defineProperty({},"passive",{get:function(){return q=!0,!0}});window.addEventListener("test",Y,Y),window.removeEventListener("test",Y,Y)}catch(e){q=!1}var G=!!q&&{passive:!1},K=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},X=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},J=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Q(e,r)){var n=ee(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Q=function(e,t){return"v"===e?K(t):X(t)},ee=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},et=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=ee(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&Q(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},er=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},en=function(e){return[e.deltaX,e.deltaY]},ei=function(e){return e&&"current"in e?e.current:e},eo=0,ea=[],es=(0,U.L)(I,function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),i=a.useState(eo++)[0],o=a.useState(function(){return(0,$.Ws)()})[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,Z.ev)([e.lockRef.current],(e.shards||[]).map(ei),!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=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=er(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=J(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=J(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var h=n.current||i;return et(h,t,e,"h"===h?l:u,!0)},[]),u=a.useCallback(function(e){if(ea.length&&ea[ea.length-1]===o){var r="deltaY"in e?en(e):er(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.preventDefault();return}if(!n){var i=(s.current.shards||[]).map(ei).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.preventDefault()}}},[]),c=a.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=a.useCallback(function(e){r.current=er(e),n.current=void 0},[]),f=a.useCallback(function(t){c(t.type,en(t),t.target,l(t,e.lockRef.current))},[]),h=a.useCallback(function(t){c(t.type,er(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return ea.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,G),document.addEventListener("touchmove",u,G),document.addEventListener("touchstart",d,G),function(){ea=ea.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,G),document.removeEventListener("touchmove",u,G),document.removeEventListener("touchstart",d,G)}},[]);var p=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?a.createElement(W.jp,{gapMode:"margin"}):null)}),el=a.forwardRef(function(e,t){return a.createElement(H,(0,Z.pi)({},e,{ref:t,sideCar:es}))});el.classNames=H.classNames;var eu=r(49732),ec=r(99575);let ed="Dialog",[ef,eh]=(0,c.b)(ed),[ep,em]=ef(ed),ev="DialogPortal",[eg,ey]=ef(ev,{forceMount:void 0}),ex="DialogOverlay",eb=(0,a.forwardRef)((e,t)=>{let r=ey(ex,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=em(ex,e.__scopeDialog);return s.modal?(0,a.createElement)(R,{present:n||s.open},(0,a.createElement)(ew,(0,o.Z)({},i,{ref:t}))):null}),ew=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=em(ex,r);return(0,a.createElement)(el,{as:ec.g7,allowPinchZoom:!0,shards:[i.contentRef]},(0,a.createElement)(v.WV.div,(0,o.Z)({"data-state":eO(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),ej="DialogContent",eE=(0,a.forwardRef)((e,t)=>{let r=ey(ej,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=em(ej,e.__scopeDialog);return(0,a.createElement)(R,{present:n||s.open},s.modal?(0,a.createElement)(ek,(0,o.Z)({},i,{ref:t})):(0,a.createElement)(eC,(0,o.Z)({},i,{ref:t})))}),ek=(0,a.forwardRef)((e,t)=>{let r=em(ej,e.__scopeDialog),n=(0,a.useRef)(null),i=(0,u.e)(t,r.contentRef,n);return(0,a.useEffect)(()=>{let e=n.current;if(e)return(0,eu.R)(e)},[]),(0,a.createElement)(eS,(0,o.Z)({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,l.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,l.M)(e.onFocusOutside,e=>e.preventDefault())}))}),eC=(0,a.forwardRef)((e,t)=>{let r=em(ej,e.__scopeDialog),n=(0,a.useRef)(!1);return(0,a.createElement)(eS,(0,o.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),n.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(n.current=!0);let a=t.target;(null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(a))&&t.preventDefault()}}))}),eS=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=em(ej,r),d=(0,a.useRef)(null),f=(0,u.e)(t,d);return(0,a.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:F()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:F()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(S,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},(0,a.createElement)(b,(0,o.Z)({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eO(c.open)},l,{ref:f,onDismiss:()=>c.onOpenChange(!1)}))),!1)});function eO(e){return e?"open":"closed"}let[e_,eM]=(0,c.k)("DialogTitleWarning",{contentName:ej,titleName:"DialogTitle",docsSlug:"dialog"}),eA=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=(0,a.useRef)(null),u=(0,a.useRef)(null),[c=!1,d]=(0,m.T)({prop:n,defaultProp:i,onChange:o});return(0,a.createElement)(ep,{scope:t,triggerRef:l,contentRef:u,contentId:p(),titleId:p(),descriptionId:p(),open:c,onOpenChange:d,onOpenToggle:(0,a.useCallback)(()=>d(e=>!e),[d]),modal:s},r)},eP=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=em(ev,t);return(0,a.createElement)(eg,{scope:t,forceMount:r},a.Children.map(n,e=>(0,a.createElement)(R,{present:r||o.open},(0,a.createElement)(N,{asChild:!0,container:i},e))))};var eT=r(40844),eN='[cmdk-group=""]',eR='[cmdk-group-items=""]',eD='[cmdk-item=""]',eL=`${eD}:not([aria-disabled="true"])`,eF="cmdk-item-select",eZ="data-value",eV=(e,t)=>eT(e,t),ez=a.createContext(void 0),eI=()=>a.useContext(ez),eB=a.createContext(void 0),eH=()=>a.useContext(eB),eU=a.createContext(void 0),eW=a.forwardRef((e,t)=>{let r=a.useRef(null),n=e1(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),i=e1(()=>new Set),o=e1(()=>new Map),s=e1(()=>new Map),l=e1(()=>new Set),u=eQ(e),{label:c,children:d,value:f,onValueChange:h,filter:p,shouldFilter:m,...v}=e,g=a.useId(),y=a.useId(),x=a.useId(),b=e5();e0(()=>{if(void 0!==f){let e=f.trim().toLowerCase();n.current.value=e,b(6,O),w.emit()}},[f]);let w=a.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,o,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)S(),k(),b(1,C);else if("value"===e){if((null==(i=u.current)?void 0:i.value)!==void 0){null==(a=(o=u.current).onValueChange)||a.call(o,t);return}r||b(5,O)}w.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),j=a.useMemo(()=>({value:(e,t)=>{t!==s.current.get(e)&&(s.current.set(e,t),n.current.filtered.items.set(e,E(t)),b(2,()=>{k(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),b(3,()=>{S(),k(),n.current.value||C(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e),b(4,()=>{S(),C(),w.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{s.current.delete(e),o.current.delete(e)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],listId:g,inputId:x,labelId:y}),[]);function E(e){var t;let r=(null==(t=u.current)?void 0:t.filter)??eV;return e?r(e,n.current.search):0}function k(){if(!r.current||!n.current.search||!1===u.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(r=>{let n=o.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let i=r.current.querySelector('[cmdk-list-sizer=""]');M().sort((t,r)=>{let n=t.getAttribute(eZ),i=r.getAttribute(eZ);return(e.get(i)??0)-(e.get(n)??0)}).forEach(e=>{let t=e.closest(eR);t?t.appendChild(e.parentElement===t?e:e.closest(`${eR} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${eR} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=r.current.querySelector(`${eN}[${eZ}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function C(){let e=M().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(eZ);w.setState("value",t||void 0)}function S(){if(!n.current.search||!1===u.current.shouldFilter){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of i.current){let r=E(s.current.get(t));n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function O(){var e,t,r;let n=_();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(eN))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function _(){return r.current.querySelector(`${eD}[aria-selected="true"]`)}function M(){return Array.from(r.current.querySelectorAll(eL))}function A(e){let t=M()[e];t&&w.setState("value",t.getAttribute(eZ))}function P(e){var t;let r=_(),n=M(),i=n.findIndex(e=>e===r),o=n[i+e];null!=(t=u.current)&&t.loop&&(o=i+e<0?n[n.length-1]:i+e===n.length?n[0]:n[i+e]),o&&w.setState("value",o.getAttribute(eZ))}function T(e){let t=_(),r=null==t?void 0:t.closest(eN),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,eN):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,eN))?void 0:r.querySelector(eL);n?w.setState("value",n.getAttribute(eZ)):P(e)}let N=()=>A(M().length-1),R=e=>{e.preventDefault(),e.metaKey?N():e.altKey?T(1):P(1)},D=e=>{e.preventDefault(),e.metaKey?A(0):e.altKey?T(-1):P(-1)};return a.createElement("div",{ref:e2([r,t]),...v,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=v.onKeyDown)||t.call(v,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&R(e);break;case"ArrowDown":R(e);break;case"p":case"k":e.ctrlKey&&D(e);break;case"ArrowUp":D(e);break;case"Home":e.preventDefault(),A(0);break;case"End":e.preventDefault(),N();break;case"Enter":{e.preventDefault();let t=_();if(t){let e=new Event(eF);t.dispatchEvent(e)}}}}},a.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:e6},c),a.createElement(eB.Provider,{value:w},a.createElement(ez.Provider,{value:j},d)))}),e$=a.forwardRef((e,t)=>{let r=a.useId(),n=a.useRef(null),i=a.useContext(eU),o=eI(),s=eQ(e);e0(()=>o.item(r,i),[]);let l=e3(r,n,[e.value,e.children,n]),u=eH(),c=e4(e=>e.value&&e.value===l.current),d=e4(e=>!1===o.filter()||!e.search||e.filtered.items.get(r)>0);function f(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(a.useEffect(()=>{let t=n.current;if(!(!t||e.disabled))return t.addEventListener(eF,f),()=>t.removeEventListener(eF,f)},[d,e.onSelect,e.disabled]),!d)return null;let{disabled:h,value:p,onSelect:m,...v}=e;return a.createElement("div",{ref:e2([n,t]),...v,"cmdk-item":"",role:"option","aria-disabled":h||void 0,"aria-selected":c||void 0,"data-selected":c||void 0,onPointerMove:h?void 0:function(){u.setState("value",l.current,!0)},onClick:h?void 0:f},e.children)}),eq=a.forwardRef((e,t)=>{let{heading:r,children:n,...i}=e,o=a.useId(),s=a.useRef(null),l=a.useRef(null),u=a.useId(),c=eI(),d=e4(e=>!1===c.filter()||!e.search||e.filtered.groups.has(o));e0(()=>c.group(o),[]),e3(o,s,[e.value,e.heading,l]);let f=a.createElement(eU.Provider,{value:o},n);return a.createElement("div",{ref:e2([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},r&&a.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),a.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},f))}),eY=a.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,i=a.useRef(null),o=e4(e=>!e.search);return r||o?a.createElement("div",{ref:e2([i,t]),...n,"cmdk-separator":"",role:"separator"}):null}),eG=a.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,i=null!=e.value,o=eH(),s=e4(e=>e.search),l=eI();return a.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),a.createElement("input",{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:i?e.value:s,onChange:e=>{i||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),eK=a.forwardRef((e,t)=>{let{children:r,...n}=e,i=a.useRef(null),o=a.useRef(null),s=eI();return a.useEffect(()=>{if(o.current&&i.current){let e=o.current,t=i.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),a.createElement("div",{ref:e2([i,t]),...n,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},a.createElement("div",{ref:o,"cmdk-list-sizer":""},r))}),eX=a.forwardRef((e,t)=>{let{open:r,onOpenChange:n,container:i,...o}=e;return a.createElement(eA,{open:r,onOpenChange:n},a.createElement(eP,{container:i},a.createElement(eb,{"cmdk-overlay":""}),a.createElement(eE,{"aria-label":e.label,"cmdk-dialog":""},a.createElement(eW,{ref:t,...o}))))}),eJ=Object.assign(eW,{List:eK,Item:e$,Input:eG,Group:eq,Separator:eY,Dialog:eX,Empty:a.forwardRef((e,t)=>{let r=a.useRef(!0),n=e4(e=>0===e.filtered.count);return a.useEffect(()=>{r.current=!1},[]),r.current||!n?null:a.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:a.forwardRef((e,t)=>{let{progress:r,children:n,...i}=e;return a.createElement("div",{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},a.createElement("div",{"aria-hidden":!0},n))})});function eQ(e){let t=a.useRef(e);return e0(()=>{t.current=e}),t}var e0=typeof window>"u"?a.useEffect:a.useLayoutEffect;function e1(e){let t=a.useRef();return void 0===t.current&&(t.current=e()),t}function e2(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function e4(e){let t=eH(),r=()=>e(t.snapshot());return a.useSyncExternalStore(t.subscribe,r,r)}function e3(e,t,r){let n=a.useRef(),i=eI();return e0(()=>{var o;let a=(()=>{var e;for(let t of r){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()}})();i.value(e,a),null==(o=t.current)||o.setAttribute(eZ,a),n.current=a}),n}var e5=()=>{let[e,t]=a.useState(),r=e1(()=>new Map);return e0(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}},e6={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},5931:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(92725),i=function(e,t){for(var r=e.length;r--;)if((0,n.Z)(e[r][0],t))return r;return -1},o=Array.prototype.splice;function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},a.prototype.set=function(e,t){var r=this.__data__,n=i(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var s=a},51558:function(e,t,r){"use strict";var n=r(3648),i=r(22327),o=(0,n.Z)(i.Z,"Map");t.Z=o},28114:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=(0,r(3648).Z)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++tc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&r?new i.Z:void 0;for(l.set(e,t),l.set(t,e);++pt||o&&a&&l&&!s&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e=s)return l;return l*("desc"==r[n]?-1:1)}}return e.index-t.index},p=r(45036),m=r(52059),v=function(e,t,r){t=t.length?(0,n.Z)(t,function(e){return(0,m.Z)(e)?function(t){return(0,i.Z)(t,1===e.length?e[0]:e)}:e}):[p.Z];var a=-1;return t=(0,n.Z)(t,(0,c.Z)(o.Z)),u(l(e,function(e,r,i){return{criteria:(0,n.Z)(t,function(t){return t(e)}),index:++a,value:e}}),function(e,t){return h(e,t,r)})}},95068:function(e,t){"use strict";t.Z=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=i?e:(0,n.Z)(e,t,r)}},43737:function(e,t){"use strict";t.Z=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},88225:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},99982:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},36394:function(e,t,r){"use strict";var n=r(85084),i=r(61153),o=r(99982),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);t.Z=function(e){if(!(0,o.Z)(e)||"[object Object]"!=(0,n.Z)(e))return!1;var t=(0,i.Z)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},81470:function(e,t,r){"use strict";var n=r(85084),i=r(99982);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,n.Z)(e)}},93779:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(85084),i=r(45432),o=r(99982),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=r(9769),l=r(20329),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,o.Z)(e)&&(0,i.Z)(e.length)&&!!a[(0,n.Z)(e)]}},91139:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(62212),i=r(59208),o=(0,r(35100).Z)(Object.keys,Object),a=Object.prototype.hasOwnProperty,s=function(e){if(!(0,i.Z)(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t},l=r(18226),u=function(e){return(0,l.Z)(e)?(0,n.Z)(e):s(e)}},81330:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(62212),i=r(88225),o=r(59208),a=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return a(e);var t=(0,o.Z)(e),r=[];for(var n in e)"constructor"==n&&(t||!s.call(e,n))||r.push(n);return r},u=r(18226),c=function(e){return(0,u.Z)(e)?(0,n.Z)(e,!0):l(e)}},57978:function(e,t){"use strict";t.Z=function(){return[]}},16601:function(e,t,r){"use strict";var n=r(36556);t.Z=function(e){return null==e?"":(0,n.Z)(e)}},63955:function(e,t,r){"use strict";r.d(t,{cI:function(){return em}});var n=r(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=p(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(n)||n===e?v(e[t])?r:e[t]:n},y=e=>"boolean"==typeof e,x=e=>/^\w*$/.test(e),b=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,t,r)=>{let n=-1,i=x(t)?[t]:b(t),o=i.length,a=o-1;for(;++n{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==E.all&&(t._proxyFormState[o]=!n||E.all),r&&(r[o]=!0),e[o])});return i},S=e=>l(e)&&!Object.keys(e).length,O=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return S(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||E.all))},_=e=>Array.isArray(e)?e:[e],M=e=>"string"==typeof e,A=(e,t,r,n,i)=>M(e)?(n&&t.watch.add(e),g(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),g(r,e))):(n&&(t.watchAll=!0),r),P=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},T=e=>({isOnSubmit:!e||e===E.onSubmit,isOnBlur:e===E.onBlur,isOnChange:e===E.onChange,isOnAll:e===E.all,isOnTouch:e===E.onTouched}),N=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let R=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=g(e,i);if(r){let{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n||e.ref&&t(e.ref,e.name)&&!n)break;R(o,t)}else l(o)&&R(o,t)}}};var D=(e,t,r)=>{let n=m(g(e,r));return w(n,"root",t[r]),w(e,r,n),e},L=e=>"file"===e.type,F=e=>"function"==typeof e,Z=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>M(e),z=e=>"radio"===e.type,I=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var $=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function q(e,t,r="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||y(e)&&!e)return{type:r,message:V(e)?e:"",ref:t}}var Y=e=>l(e)&&!I(e)?e:{value:e,message:""},G=async(e,t,r,n,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:x,name:b,valueAsNumber:w,mount:j,disabled:E}=e._f,C=g(t,b);if(!j||E)return{};let O=u?u[0]:s,_=e=>{n&&O.reportValidity&&(O.setCustomValidity(y(e)?"":e||""),O.reportValidity())},A={},T=z(s),N=i(s),R=(w||L(s))&&v(s.value)&&v(C)||Z(s)&&""===s.value||""===C||Array.isArray(C)&&!C.length,D=P.bind(null,b,r,A),B=(e,t,r,n=k.maxLength,i=k.minLength)=>{let o=e?t:r;A[b]={type:e?n:i,message:o,ref:s,...D(e?n:i,o)}};if(o?!Array.isArray(C)||!C.length:c&&(!(T||N)&&(R||a(C))||y(C)&&!C||N&&!U(u).isValid||T&&!$(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:Y(c);if(e&&(A[b]={type:k.required,message:t,ref:O,...D(k.required,t)},!r))return _(t),A}if(!R&&(!a(h)||!a(p))){let e,t;let n=Y(p),i=Y(h);if(a(C)||isNaN(C)){let r=s.valueAsDate||new Date(C),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;M(n.value)&&C&&(e=a?o(C)>o(n.value):l?C>n.value:r>new Date(n.value)),M(i.value)&&C&&(t=a?o(C)n.value),a(i.value)||(t=r+e.value,i=!a(t.value)&&C.length<+t.value;if((n||i)&&(B(n,e.message,t.message),!r))return _(A[b].message),A}if(m&&!R&&M(C)){let{value:e,message:t}=Y(m);if(I(e)&&!C.match(e)&&(A[b]={type:k.pattern,message:t,ref:s,...D(k.pattern,t)},!r))return _(t),A}if(x){if(F(x)){let e=q(await x(C,t),O);if(e&&(A[b]={...e,...D(k.validate,e.message)},!r))return _(e.message),A}else if(l(x)){let e={};for(let n in x){if(!S(e)&&!r)break;let i=q(await x[n](C,t),O,n);i&&(e={...i,...D(n,i.message)},_(i.message),r&&(A[b]=e))}if(!S(e)&&(A[b]={ref:O,...e},!r))return A}}return _(!0),A};function K(e,t){let r=Array.isArray(t)?t:x(t)?[t]:b(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!Q(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>z(e)||i(e),er=e=>Z(e)&&e.isConnected,en=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!en(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ei(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var eo=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!en(t[i])?v(r)||J(n[i])?n[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(r)?{}:r[i],n[i]):n[i]=!Q(t[i],r[i]);return n})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>v(e)?e:t?""===e?NaN:e?+e:e:r&&M(e)?new Date(e):n?n(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:z(t)?$(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,n)=>{let i={};for(let r of e){let e=g(t,r);e&&w(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},eu=e=>v(e)?e:I(e)?e.source:l(e)?I(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,r){let n=g(e,r);if(n||x(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=g(t,n),a=g(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var ef=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&K(e,t);let ep={mode:E.onSubmit,reValidateMode:E.onChange,shouldFocusError:!0};function em(e={}){let t=n.useRef(),r=n.useRef(),[s,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,r={...ep,...e},n={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},c=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},f=r.shouldUnregister?{}:p(c),x={action:!1,mount:!1,watch:!1},b={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0,C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},O={values:X(),array:X(),state:X()},P=T(r.mode),V=T(r.reValidateMode),z=r.criteriaMode===E.all,I=e=>t=>{clearTimeout(k),k=setTimeout(e,t)},B=async e=>{if(C.isValid||e){let e=r.resolver?S((await Y()).errors):await ei(s,!0);e!==n.isValid&&O.state.next({isValid:e})}},H=(e,t)=>{(C.isValidating||C.validatingFields)&&((e||Array.from(b.mount)).forEach(e=>{e&&(t?w(n.validatingFields,e,t):K(n.validatingFields,e))}),O.state.next({validatingFields:n.validatingFields,isValidating:!S(n.validatingFields)}))},U=(e,t)=>{w(n.errors,e,t),O.state.next({errors:n.errors})},W=(e,t,r,n)=>{let i=g(s,e);if(i){let o=g(f,e,v(r)?g(c,e):r);v(o)||n&&n.defaultChecked||t?w(f,e,t?o:es(i._f)):eg(e,o),x.mount&&B()}},$=(e,t,r,i,o)=>{let a=!1,l=!1,u={name:e},d=!!(g(s,e)&&g(s,e)._f&&g(s,e)._f.disabled);if(!r||i){C.isDirty&&(l=n.isDirty,n.isDirty=u.isDirty=em(),a=l!==u.isDirty);let r=d||Q(g(c,e),t);l=!!(!d&&g(n.dirtyFields,e)),r||d?K(n.dirtyFields,e):w(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,a=a||C.dirtyFields&&!r!==l}if(r){let t=g(n.touchedFields,e);t||(w(n.touchedFields,e,r),u.touchedFields=n.touchedFields,a=a||C.touchedFields&&t!==r)}return a&&o&&O.state.next(u),a?u:{}},q=(r,i,o,a)=>{let s=g(n.errors,r),l=C.isValid&&y(i)&&n.isValid!==i;if(e.delayError&&o?(t=I(()=>U(r,o)))(e.delayError):(clearTimeout(k),t=null,o?w(n.errors,r,o):K(n.errors,r)),(o?!Q(s,o):s)||!S(a)||l){let e={...a,...l&&y(i)?{isValid:i}:{},errors:n.errors,name:r};n={...n,...e},O.state.next(e)}},Y=async e=>{H(e,!0);let t=await r.resolver(f,r.context,el(e||b.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return H(e),t},en=async e=>{let{errors:t}=await Y(e);if(e)for(let r of e){let e=g(t,r);e?w(n.errors,r,e):K(n.errors,r)}else n.errors=t;return t},ei=async(e,t,i={valid:!0})=>{for(let o in e){let a=e[o];if(a){let{_f:e,...s}=a;if(e){let s=b.array.has(e.name);H([o],!0);let l=await G(a,f,z,r.shouldUseNativeValidation&&!t,s);if(H([o]),l[e.name]&&(i.valid=!1,t))break;t||(g(l,e.name)?s?D(n.errors,l,e.name):w(n.errors,e.name,l[e.name]):K(n.errors,e.name))}s&&await ei(s,t,i)}}return i.valid},em=(e,t)=>(e&&t&&w(f,e,t),!Q(eE(),c)),ev=(e,t,r)=>A(e,b,{...x.mount?f:v(t)?c:M(e)?{[e]:t}:t},r,t),eg=(e,t,r={})=>{let n=g(s,e),o=t;if(n){let r=n._f;r&&(r.disabled||w(f,e,ea(t,r)),o=Z(r.ref)&&a(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach(e=>e.checked=e.value===o):L(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||O.values.next({name:e,values:{...f}})))}(r.shouldDirty||r.shouldTouch)&&$(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ej(e)},ey=(e,t,r)=>{for(let n in t){let i=t[n],a=`${e}.${n}`,l=g(s,a);!b.array.has(e)&&J(i)&&(!l||l._f)||o(i)?eg(a,i,r):ey(a,i,r)}},ex=(e,t,r={})=>{let i=g(s,e),o=b.array.has(e),l=p(t);w(f,e,l),o?(O.array.next({name:e,values:{...f}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&O.state.next({name:e,dirtyFields:eo(c,f),isDirty:em(e,l)})):!i||i._f||a(l)?eg(e,l,r):ey(e,l,r),N(e,b)&&O.state.next({...n}),O.values.next({name:x.mount?e:void 0,values:{...f}})},eb=async e=>{x.mount=!0;let i=e.target,o=i.name,a=!0,l=g(s,o),c=e=>{a=Number.isNaN(e)||e===g(f,o,e)};if(l){let d,h;let p=i.type?es(l._f):u(e),m=e.type===j.BLUR||e.type===j.FOCUS_OUT,v=!ec(l._f)&&!r.resolver&&!g(n.errors,o)&&!l._f.deps||ef(m,g(n.touchedFields,o),n.isSubmitted,V,P),y=N(o,b,m);w(f,o,p),m?(l._f.onBlur&&l._f.onBlur(e),t&&t(0)):l._f.onChange&&l._f.onChange(e);let x=$(o,p,m,!1),E=!S(x)||y;if(m||O.values.next({name:o,type:e.type,values:{...f}}),v)return C.isValid&&B(),E&&O.state.next({name:o,...y?{}:x});if(!m&&y&&O.state.next({...n}),r.resolver){let{errors:e}=await Y([o]);if(c(p),a){let t=ed(n.errors,s,o),r=ed(e,s,t.name||o);d=r.error,o=r.name,h=S(e)}}else H([o],!0),d=(await G(l,f,z,r.shouldUseNativeValidation))[o],H([o]),c(p),a&&(d?h=!1:C.isValid&&(h=await ei(s,!0)));a&&(l._f.deps&&ej(l._f.deps),q(o,h,d,x))}},ew=(e,t)=>{if(g(n.errors,t)&&e.focus)return e.focus(),1},ej=async(e,t={})=>{let i,o;let a=_(e);if(r.resolver){let t=await en(v(e)?e:a);i=S(t),o=e?!a.some(e=>g(t,e)):i}else e?((o=(await Promise.all(a.map(async e=>{let t=g(s,e);return await ei(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&B():o=i=await ei(s);return O.state.next({...!M(e)||C.isValid&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!o&&R(s,ew,e?a:b.mount),o},eE=e=>{let t={...x.mount?f:c};return v(e)?t:M(e)?g(t,e):e.map(e=>g(t,e))},ek=(e,t)=>({invalid:!!g((t||n).errors,e),isDirty:!!g((t||n).dirtyFields,e),error:g((t||n).errors,e),isValidating:!!g(n.validatingFields,e),isTouched:!!g((t||n).touchedFields,e)}),eC=(e,t,r)=>{let i=(g(s,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:l,...u}=g(n.errors,e)||{};w(n.errors,e,{...u,...t,ref:i}),O.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eS=(e,t={})=>{for(let i of e?_(e):b.mount)b.mount.delete(i),b.array.delete(i),t.keepValue||(K(s,i),K(f,i)),t.keepError||K(n.errors,i),t.keepDirty||K(n.dirtyFields,i),t.keepTouched||K(n.touchedFields,i),t.keepIsValidating||K(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||K(c,i);O.values.next({values:{...f}}),O.state.next({...n,...t.keepDirty?{isDirty:em()}:{}}),t.keepIsValid||B()},eO=({disabled:e,name:t,field:r,fields:n,value:i})=>{if(y(e)&&x.mount||e){let o=e?void 0:v(i)?es(r?r._f:g(n,t)._f):i;w(f,t,o),$(t,o,!1,!1,!0)}},e_=(e,t={})=>{let n=g(s,e),i=y(t.disabled);return w(s,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),b.mount.add(e),n?eO({field:n,disabled:t.disabled,name:e,value:t.value}):W(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.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),n=g(s,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(w(s,e,{_f:{...n._f,...o?{refs:[...a.filter(er),r,...Array.isArray(g(c,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),W(e,!1,void 0,r))}else(n=g(s,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(b.array,e)&&x.action)&&b.unMount.add(e)}}},eM=()=>r.shouldFocusError&&R(s,ew,b.mount),eA=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=p(f);if(O.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await Y();n.errors=e,a=t}else await ei(s);if(K(n.errors,"root"),S(n.errors)){O.state.next({errors:{}});try{await e(a,i)}catch(e){o=e}}else t&&await t({...n.errors},i),eM(),setTimeout(eM);if(O.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:S(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},eP=(t,r={})=>{let i=t?p(t):c,o=p(i),a=S(t),l=a?c:o;if(r.keepDefaultValues||(c=i),!r.keepValues){if(r.keepDirtyValues)for(let e of b.mount)g(n.dirtyFields,e)?w(l,e,g(f,e)):ex(e,g(l,e));else{if(h&&v(t))for(let e of b.mount){let t=g(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Z(e)){let t=e.closest("form");if(t){t.reset();break}}}}s={}}f=e.shouldUnregister?r.keepDefaultValues?p(c):{}:p(l),O.array.next({values:{...l}}),O.values.next({values:{...l}})}b={mount:r.keepDirtyValues?b.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount=!C.isValid||!!r.keepIsValid||!!r.keepDirtyValues,x.watch=!!e.shouldUnregister,O.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!a&&(r.keepDirty?n.isDirty:!!(r.keepDefaultValues&&!Q(t,c))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:a?[]:r.keepDirtyValues?r.keepDefaultValues&&f?eo(c,f):n.dirtyFields:r.keepDefaultValues&&t?eo(c,t):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eT=(e,t)=>eP(F(e)?e(f):e,t);return{control:{register:e_,unregister:eS,getFieldState:ek,handleSubmit:eA,setError:eC,_executeSchema:Y,_getWatch:ev,_getDirty:em,_updateValid:B,_removeUnmounted:()=>{for(let e of b.unMount){let t=g(s,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eS(e)}b.unMount=new Set},_updateFieldArray:(e,t=[],r,i,o=!0,a=!0)=>{if(i&&r){if(x.action=!0,a&&Array.isArray(g(s,e))){let t=r(g(s,e),i.argA,i.argB);o&&w(s,e,t)}if(a&&Array.isArray(g(n.errors,e))){let t=r(g(n.errors,e),i.argA,i.argB);o&&w(n.errors,e,t),eh(n.errors,e)}if(C.touchedFields&&a&&Array.isArray(g(n.touchedFields,e))){let t=r(g(n.touchedFields,e),i.argA,i.argB);o&&w(n.touchedFields,e,t)}C.dirtyFields&&(n.dirtyFields=eo(c,f)),O.state.next({name:e,isDirty:em(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else w(f,e,t)},_updateDisabledField:eO,_getFieldArray:t=>m(g(x.mount?f:c,t,e.shouldUnregister?g(c,t,[]):[])),_reset:eP,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),O.state.next({isLoading:!1})}),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{y(e)&&(O.state.next({disabled:e}),R(s,(t,r)=>{let n=g(s,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:O,_proxyFormState:C,_setErrors:e=>{n.errors=e,O.state.next({errors:n.errors,isValid:!1})},get _fields(){return s},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 n},set _formState(value){n=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ej,register:e_,handleSubmit:eA,watch:(e,t)=>F(e)?O.values.subscribe({next:r=>e(ev(void 0,t),r)}):ev(e,t,!0),setValue:ex,getValues:eE,reset:eT,resetField:(e,t={})=>{g(s,e)&&(v(t.defaultValue)?ex(e,p(g(c,e))):(ex(e,t.defaultValue),w(c,e,p(t.defaultValue))),t.keepTouched||K(n.touchedFields,e),t.keepDirty||(K(n.dirtyFields,e),n.isDirty=t.defaultValue?em(e,p(g(c,e))):em()),!t.keepError&&(K(n.errors,e),C.isValid&&B()),O.state.next({...n}))},clearErrors:e=>{e&&_(e).forEach(e=>K(n.errors,e)),O.state.next({errors:e?n.errors:{}})},unregister:eS,setError:eC,setFocus:(e,t={})=>{let r=g(s,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ek}}(e),formState:s});let f=t.current.control;return f._options=e,!function(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:f._subjects.state,next:e=>{O(e,f._proxyFormState,f._updateFormState,!0)&&c({...f._formState})}}),n.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),n.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==s.isDirty&&f._subjects.state.next({isDirty:e})}},[f,s.isDirty]),n.useEffect(()=>{e.values&&!Q(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values,c(e=>({...e}))):f._resetDefaultValues()},[e.values,f]),n.useEffect(()=>{e.errors&&f._setErrors(e.errors)},[e.errors,f]),n.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()}),n.useEffect(()=>{e.shouldUnregister&&f._subjects.values.next({values:f._getWatch()})},[e.shouldUnregister,f]),t.current.formState=C(s,f),t.current}},79381:function(e,t,r){"use strict";let n;r.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return I},kY:function(){return Y}});var i=r(2784),o=r(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let r=a.get(e);return[()=>e.get(t)||s,n=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),r[5](t,p(i,n),i||s)}},r[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},b=new WeakMap,w=0,j=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(r=0,t="@";r(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},r=()=>{E=!1};return k("online",t),k("offline",r),()=>{C("online",t),C("offline",r)}}},O=!i.useId,_=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=_?i.useEffect:i.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,T=!_&&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 F(...e){let[t,r,n,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(r)){let e=[],n=t.keys();for(let i=n.next();!i.done;i=n.next()){let n=i.value;!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n)}return Promise.all(e.map(g))}return g(r);async function g(r){let i;let[o]=N(r);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],j=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let E=n,k=D();y[o]=[k,0];let C=!f(u),S=l(),O=S.data,_=S._c,M=f(_)?O:_;if(C&&p({data:u=h(u)?u(M):u,_c:M}),h(E))try{E=E(M)}catch(e){i=e}if(E&&h(E.then)){if(E=await E.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return E}i&&C&&m(i)&&(s=!0,p({data:E=M,_c:c}))}s&&!i&&(h(s)&&(E=s(E,M)),p({data:E,_c:c})),y[o][1]=D();let A=await j();if(p({_c:c}),i){if(v)throw i;return}return s?A:E}}let Z=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!a.has(e)){let r=p(S,t),n={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!a.has(e)&&(a.set(e,[n,{},{},{},i,d,l]),!_)){let t=r.initFocus(setTimeout.bind(c,Z.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,Z.bind(c,n,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[z,I]=V(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(n,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:z,mutate:I,fallback:{}},{isOnline:()=>E,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let r=p(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=p(i,a))}return r},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,$=W?window.__SWR_DEVTOOLS_USE__:[],q=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=$.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let n=N(t)[0],[,,,i]=a.get(z),o=i[n];return o?(delete i[n],o):r(...e)});return e(t,i,n)}),K=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(U),n=h(t),o=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?o:H(r,o),[n,r,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||z),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var Q=(n=(e,t,r)=>{let{cache:n,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=r,[w,j,E]=a.get(n),[k,C]=N(e),S=(0,i.useRef)(!1),P=(0,i.useRef)(!1),T=(0,i.useRef)(k),R=(0,i.useRef)(t),Z=(0,i.useRef)(r),V=()=>Z.current,z=()=>V().isVisible()&&V().isOnline(),[I,B,H,U]=x(n,k),W=(0,i.useRef)({}).current,$=f(u)?r.fallback[k]:u,q=(e,t)=>{let r=!0;for(let n in W)"data"===n?s(t[n],e[n])||f(e[n])&&s(t[n],ei)||(r=!1):t[n]!==e[n]&&(r=!1);return r},Y=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),r=t=>{let r=p(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=I(),i=U(),o=r(n),a=n===i?o:r(i),s=o;return[()=>{let e=r(I());return q(e,s)?s:s=e},()=>a]},[n,k]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,r)=>{q(r,t)||e()}),[n,k]),Y[0],Y[1]),J=!S.current,Q=w[k]&&w[k].length>0,ee=G.data,et=f(ee)?$:ee,er=G.error,en=(0,i.useRef)(et),ei=b?f(ee)?en.current:ee:et,eo=(!Q||!!f(er))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&J&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,n;let i=R.current;if(!k||!i||P.current||V().isPaused())return!1;let o=!0,a=e||{},l=!E[k]||!a.dedupe,u=()=>O?!P.current&&k===T.current&&S.current:k===T.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=E[k];e&&e[1]===n&&delete E[k]},v={isValidating:!0};f(I().data)&&(v.isLoading=!0);try{if(l&&(B(v),r.loadingTimeout&&f(I().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(k,r)},r.loadingTimeout),E[k]=[i(C),D()]),[t,n]=E[k],t=await t,l&&setTimeout(m,r.dedupingInterval),!E[k]||E[k][1]!==n)return l&&u()&&V().onDiscarded(k),!1;d.error=c;let e=j[k];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(k),!1;let a=I().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,k,r)}catch(r){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,l&&u()&&(e.onError(r,k,e),(!0===t||h(t)&&t(r))&&z()&&e.onErrorRetry(r,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,n]),ec=(0,i.useCallback)((...e)=>F(n,T.current,...e),[]);if(A(()=>{R.current=t,Z.current=r,f(ee)||(en.current=ee)}),A(()=>{if(!k)return;let e=eu.bind(c,X),t=0,r=K(k,w,(r,n={})=>{if(r==L.FOCUS_EVENT){let r=Date.now();V().revalidateOnFocus&&r>t&&z()&&(t=r+V().focusThrottleInterval,e())}else if(r==L.RECONNECT_EVENT)V().revalidateOnReconnect&&z()&&e();else if(r==L.MUTATE_EVENT)return eu();else if(r==L.ERROR_REVALIDATE_EVENT)return eu(n)});return P.current=!1,T.current=k,S.current=!0,B({_k:C}),eo&&(f(et)||_?e():M(e)),()=>{P.current=!0,r()}},[k]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!I().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!O&&_)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,Z.current=r,P.current=!1,f(er)?eu(X):er}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,er},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Y(),[r,i,o]=q(e),a=H(t,o),s=n,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(r,i||a.fetcher||null,a)})},22970:function(e,t,r){"use strict";r.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},pi:function(){return n}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function a(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function l(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;ie(),children:"Reload"})]})]})}function c(){let{fields:e,form:i,remoteError:n,configRef:a}=(0,r.ZR)(),c=i.watch("shouldPinStoragePrice"),o=i.watch("shouldPinEgressPrice"),d=i.watch("shouldPinIngressPrice"),x=i.watch("shouldPinMaxCollateral"),u=i.watch("pinnedCurrency");return n?(0,s.jsx)(t,{}):(0,s.jsxs)("div",{ref:a,className:"px-5 py-6 flex flex-col gap-16",children:[(0,s.jsx)(l.vRO,{title:"Host",category:"host",fields:e,form:i}),(0,s.jsxs)(l.M9k,{title:"Pricing",children:[(0,s.jsx)(l.CN9,{autoVisibility:!0,name:"pinnedCurrency",form:i,fields:e}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"pinnedThreshold"}),(0,s.jsx)(l.VXA,{id:"storagePriceGroup",title:"Storage price",description:e.storagePrice.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinStoragePrice"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinStoragePrice",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinStoragePrice"})&&c?(0,s.jsx)(l.npL,{name:"storagePricePinned",form:i,fields:e,currency:u||void 0}):(0,s.jsx)(l.ckm,{name:"storagePrice",form:i,fields:e})]})}),(0,s.jsx)(l.VXA,{id:"egressPriceGroup",title:"Egress price",description:e.egressPrice.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinEgressPrice"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinEgressPrice",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinEgressPrice"})&&o?(0,s.jsx)(l.npL,{name:"egressPricePinned",form:i,fields:e,currency:u}):(0,s.jsx)(l.ckm,{name:"egressPrice",form:i,fields:e})]})}),(0,s.jsx)(l.VXA,{id:"ingressPriceGroup",title:"Ingress price",description:e.ingressPrice.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinIngressPrice"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinIngressPrice",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinIngressPrice"})&&d?(0,s.jsx)(l.npL,{name:"ingressPricePinned",form:i,fields:e,currency:u}):(0,s.jsx)(l.ckm,{name:"ingressPrice",form:i,fields:e})]})}),(0,s.jsx)(l.CN9,{name:"collateralMultiplier",form:i,fields:e}),(0,l.f5n)({form:i,fields:e,name:"maxCollateral"})&&(0,s.jsx)(l.VXA,{id:"maxCollateralGroup",title:"Max collateral",description:e.maxCollateral.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinMaxCollateral"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinMaxCollateral",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinMaxCollateral"})&&x?(0,s.jsx)(l.npL,{name:"maxCollateralPinned",form:i,fields:e,currency:u}):(0,s.jsx)(l.ckm,{name:"maxCollateral",form:i,fields:e})]})}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"contractPrice"}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"baseRPCPrice"}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"sectorAccessPrice"}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"priceTableValidity"})]}),(0,s.jsx)(l.vRO,{title:"DNS",category:"DNS",fields:e,form:i}),(0,s.jsx)(l.vRO,{title:"Bandwidth",category:"bandwidth",fields:e,form:i}),(0,s.jsx)(l.vRO,{title:"Registry",category:"registry",fields:e,form:i}),(0,s.jsx)(l.vRO,{title:"Accounts",category:"RHP3",fields:e,form:i})]})}var o=n(13779),d=n(4300),x=n(54494),u=n(41941);function f(){return(0,s.jsx)("div",{className:"pl-1"})}var m=n(63694),h=n(60381),j=n(2784),g=n(6391),v=n.n(g);function p(){var e,i,n;let{openConfirmDialog:r}=(0,x.Rh)(),t=(0,m.hV)(),c=(0,m.Az)(),o=(0,m.ER)(),d=(0,m.rV)({config:{swr:{refreshInterval:(0,h.sW)(1)}}}),u=(null===(i=o.data)||void 0===i?void 0:null===(e=i.lastAnnouncement)||void 0===e?void 0:e.address)!==(null===(n=d.data)||void 0===n?void 0:n.netAddress),f=(0,j.useCallback)(()=>r({title:"Announce",action:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.cfm,{}),"Announce"]}),variant:"accent",body:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),t.data&&(0,s.jsxs)(l.nvN,{size:"14",children:["Announcing will cost"," ",(0,h.Vz)(new(v())(t.data).times(1e3)),"."]})]}),onConfirm:async()=>{if((await c.post({})).error){(0,l.OHV)({title:"Error announcing host"});return}(0,l.OPV)({title:"Successfully broadcast host announcement"})}}),[r,c,t]);return(0,s.jsxs)(l.zxk,{tip:"Announce host address",onClick:f,disabled:!u,children:[(0,s.jsx)(a.cfm,{}),"Announce"]})}function P(){let{takeScreenshot:e}=(0,r.ZR)();return(0,s.jsxs)(l.h_2,{trigger:(0,s.jsx)(l.zxk,{children:(0,s.jsx)(a.jH8,{})}),contentProps:{align:"end"},children:[(0,s.jsx)(l.Juw,{children:"Actions"}),(0,s.jsxs)(l.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,s.jsx)(l.KpP,{children:(0,s.jsx)(a.olJ,{})}),"Copy image of configuration"]}),(0,s.jsxs)(l.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,s.jsx)(l.KpP,{children:(0,s.jsx)(a.vzB,{})}),"Download image of configuration"]})]})}function y(){let{configViewMode:e,setConfigViewMode:i}=(0,r.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(l.ua7,{content:"advanced"===e?"Show advanced settings":"Hide advanced settings",children:(0,s.jsx)("div",{children:(0,s.jsx)(l.rsf,{"aria-label":"configViewMode",checked:"advanced"===e,onCheckedChange:e=>i(e?"advanced":"basic")})})})})}function w(){return(0,s.jsx)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,s.jsx)(a.hiv,{}),"View",(0,s.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Show advanced settings"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(y,{})})]})})}function N(){let{changeCount:e,revalidateAndResetForm:i,form:n,onSubmit:t}=(0,r.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!e&&(0,s.jsx)(l.xvT,{size:"12",color:"subtle",children:(0,h._6)(e,"change","changes")}),(0,s.jsx)(l.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!e,onClick:i,children:(0,s.jsx)(a.Wet,{})}),(0,s.jsxs)(l.zxk,{tip:"Save all changes",variant:"accent",disabled:!n.formState.isDirty||n.formState.isSubmitting,onClick:t,children:[(0,s.jsx)(a.ZEk,{}),"Save changes"]}),(0,s.jsx)(p,{}),(0,s.jsx)(P,{}),(0,s.jsx)(w,{})]})}let b=u.q;function C(){return(0,s.jsx)(c,{})}C.Layout=b,C.useLayoutProps=function(){var e;let{openDialog:i}=(0,x.Rh)(),{settings:n,dynDNSCheck:t}=(0,r.ZR)();return{title:"Configuration",routes:d._,nav:(0,s.jsx)(f,{}),sidenav:(0,s.jsx)(o.N,{}),stats:(null===(e=n.data)||void 0===e?void 0:e.ddns.provider)&&!t.isValidating?t.error?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.xvT,{color:"amber",children:(0,s.jsx)(a.qdM,{})}),(0,s.jsxs)(l.xvT,{size:"14",children:["Error with dynamic DNS configuration: ",t.error.message]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.xvT,{color:"green",children:(0,s.jsx)(a.Y3p,{})}),(0,s.jsx)(l.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,s.jsx)(N,{}),openSettings:()=>i("settings"),size:"3"}}}},function(e){e.O(0,[546,888,774,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(53048)}])},53048:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return C}});var s=n(52322),l=n(35627),r=n(29703),a=n(35138);function t(){let{revalidateAndResetForm:e}=(0,r.ZR)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(a.gFQ,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,s.jsx)(l.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)(l.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function c(){let{fields:e,form:i,remoteError:n,configRef:a}=(0,r.ZR)(),c=i.watch("shouldPinStoragePrice"),o=i.watch("shouldPinEgressPrice"),d=i.watch("shouldPinIngressPrice"),x=i.watch("shouldPinMaxCollateral"),u=i.watch("pinnedCurrency");return n?(0,s.jsx)(t,{}):(0,s.jsxs)("div",{ref:a,className:"px-5 py-6 flex flex-col gap-16",children:[(0,s.jsx)(l.vRO,{title:"Host",category:"host",fields:e,form:i}),(0,s.jsxs)(l.M9k,{title:"Pricing",children:[(0,s.jsx)(l.CN9,{autoVisibility:!0,name:"pinnedCurrency",form:i,fields:e}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"pinnedThreshold"}),(0,s.jsx)(l.VXA,{id:"storagePriceGroup",title:"Storage price",description:e.storagePrice.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinStoragePrice"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinStoragePrice",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinStoragePrice"})&&c?(0,s.jsx)(l.npL,{name:"storagePricePinned",form:i,fields:e,currency:u||void 0}):(0,s.jsx)(l.ckm,{name:"storagePrice",form:i,fields:e})]})}),(0,s.jsx)(l.VXA,{id:"egressPriceGroup",title:"Egress price",description:e.egressPrice.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinEgressPrice"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinEgressPrice",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinEgressPrice"})&&o?(0,s.jsx)(l.npL,{name:"egressPricePinned",form:i,fields:e,currency:u}):(0,s.jsx)(l.ckm,{name:"egressPrice",form:i,fields:e})]})}),(0,s.jsx)(l.VXA,{id:"ingressPriceGroup",title:"Ingress price",description:e.ingressPrice.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinIngressPrice"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinIngressPrice",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinIngressPrice"})&&d?(0,s.jsx)(l.npL,{name:"ingressPricePinned",form:i,fields:e,currency:u}):(0,s.jsx)(l.ckm,{name:"ingressPrice",form:i,fields:e})]})}),(0,s.jsx)(l.CN9,{name:"collateralMultiplier",form:i,fields:e}),(0,l.f5n)({form:i,fields:e,name:"maxCollateral"})&&(0,s.jsx)(l.VXA,{id:"maxCollateralGroup",title:"Max collateral",description:e.maxCollateral.description,control:(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-[250px]",children:[(0,l.f5n)({form:i,fields:e,name:"shouldPinMaxCollateral"})&&(0,s.jsx)(l.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)(l.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,s.jsx)(l.QBj,{name:"shouldPinMaxCollateral",form:i,fields:e,size:"small",group:!1})]})}),(0,l.f5n)({form:i,fields:e,name:"shouldPinMaxCollateral"})&&x?(0,s.jsx)(l.npL,{name:"maxCollateralPinned",form:i,fields:e,currency:u}):(0,s.jsx)(l.ckm,{name:"maxCollateral",form:i,fields:e})]})}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"contractPrice"}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"baseRPCPrice"}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"sectorAccessPrice"}),(0,s.jsx)(l.CN9,{autoVisibility:!0,form:i,fields:e,name:"priceTableValidity"})]}),(0,s.jsx)(l.vRO,{title:"DNS",category:"DNS",fields:e,form:i}),(0,s.jsx)(l.vRO,{title:"Bandwidth",category:"bandwidth",fields:e,form:i}),(0,s.jsx)(l.vRO,{title:"Registry",category:"registry",fields:e,form:i}),(0,s.jsx)(l.vRO,{title:"Accounts",category:"RHP3",fields:e,form:i})]})}var o=n(13779),d=n(4300),x=n(54494),u=n(41941);function f(){return(0,s.jsx)("div",{className:"pl-1"})}var m=n(63694),h=n(60381),j=n(2784),g=n(6391),v=n.n(g);function p(){var e,i,n;let{openConfirmDialog:r}=(0,x.Rh)(),t=(0,m.hV)(),c=(0,m.Az)(),o=(0,m.ER)(),d=(0,m.rV)({config:{swr:{refreshInterval:(0,h.sW)(1)}}}),u=(null===(i=o.data)||void 0===i?void 0:null===(e=i.lastAnnouncement)||void 0===e?void 0:e.address)!==(null===(n=d.data)||void 0===n?void 0:n.netAddress),f=(0,j.useCallback)(()=>r({title:"Announce",action:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.cfm,{}),"Announce"]}),variant:"accent",body:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),t.data&&(0,s.jsxs)(l.nvN,{size:"14",children:["Announcing will cost"," ",(0,h.Vz)(new(v())(t.data).times(1e3)),"."]})]}),onConfirm:async()=>{if((await c.post({})).error){(0,l.OHV)({title:"Error announcing host"});return}(0,l.OPV)({title:"Successfully broadcast host announcement"})}}),[r,c,t]);return(0,s.jsxs)(l.zxk,{tip:"Announce host address",onClick:f,disabled:!u,children:[(0,s.jsx)(a.cfm,{}),"Announce"]})}function P(){let{takeScreenshot:e}=(0,r.ZR)();return(0,s.jsxs)(l.h_2,{trigger:(0,s.jsx)(l.zxk,{children:(0,s.jsx)(a.jH8,{})}),contentProps:{align:"end"},children:[(0,s.jsx)(l.Juw,{children:"Actions"}),(0,s.jsxs)(l.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,s.jsx)(l.KpP,{children:(0,s.jsx)(a.olJ,{})}),"Copy image of configuration"]}),(0,s.jsxs)(l.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,s.jsx)(l.KpP,{children:(0,s.jsx)(a.vzB,{})}),"Download image of configuration"]})]})}function y(){let{configViewMode:e,setConfigViewMode:i}=(0,r.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(l.ua7,{content:"advanced"===e?"Show advanced settings":"Hide advanced settings",children:(0,s.jsx)("div",{children:(0,s.jsx)(l.rsf,{"aria-label":"configViewMode",checked:"advanced"===e,onCheckedChange:e=>i(e?"advanced":"basic")})})})})}function w(){return(0,s.jsx)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,s.jsx)(a.hiv,{}),"View",(0,s.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Show advanced settings"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(y,{})})]})})}function N(){let{changeCount:e,revalidateAndResetForm:i,form:n,onSubmit:t}=(0,r.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!e&&(0,s.jsx)(l.xvT,{size:"12",color:"subtle",children:(0,h._6)(e,"change","changes")}),(0,s.jsx)(l.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!e,onClick:i,children:(0,s.jsx)(a.Wet,{})}),(0,s.jsxs)(l.zxk,{tip:"Save all changes",variant:"accent",disabled:!n.formState.isDirty||n.formState.isSubmitting,onClick:t,children:[(0,s.jsx)(a.ZEk,{}),"Save changes"]}),(0,s.jsx)(p,{}),(0,s.jsx)(P,{}),(0,s.jsx)(w,{})]})}let b=u.q;function C(){return(0,s.jsx)(c,{})}C.Layout=b,C.useLayoutProps=function(){var e;let{openDialog:i}=(0,x.Rh)(),{settings:n,dynDNSCheck:t}=(0,r.ZR)();return{title:"Configuration",routes:d._,nav:(0,s.jsx)(f,{}),sidenav:(0,s.jsx)(o.N,{}),stats:(null===(e=n.data)||void 0===e?void 0:e.ddns.provider)&&!t.isValidating?t.error?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.xvT,{color:"amber",children:(0,s.jsx)(a.qdM,{})}),(0,s.jsxs)(l.xvT,{size:"14",children:["Error with dynamic DNS configuration: ",t.error.message]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.xvT,{color:"green",children:(0,s.jsx)(a.Y3p,{})}),(0,s.jsx)(l.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,s.jsx)(N,{}),openSettings:()=>i("settings"),size:"3"}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-9bbbfcef4e4f3b37.js b/hostd/assets/_next/static/chunks/pages/contracts-9bbbfcef4e4f3b37.js deleted file mode 100644 index 389b6c187..000000000 --- a/hostd/assets/_next/static/chunks/pages/contracts-9bbbfcef4e4f3b37.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(73986)}])},73986:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return S}});var n=s(52322),l=s(14522),a=s(65717),c=s(35138);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function i(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(c.VBo,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function o(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}function u(){let{columns:e,datasetPage:t,sortField:s,sortDirection:c,sortableColumns:u,toggleSort:x,limit:d,dataState:h,cellContext:j}=(0,a.G)();return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"contractsTable",context:j,isLoading:"loading"===h,emptyState:"noneMatchingFilters"===h?(0,n.jsx)(r,{}):"noneYet"===h?(0,n.jsx)(i,{}):"error"===h?(0,n.jsx)(o,{}):null,pageSize:d,data:t,columns:e,sortableColumns:u,sortDirection:c,sortField:s,toggleSort:x})})}var x=s(13779),d=s(4300),h=s(54494),j=s(41941),m=s(46850),f=s(83894);function p(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:r,setColumnsHidden:i,sortField:o,setSortField:u,sortDirection:x,setSortDirection:d,enabledColumns:h}=(0,a.G)(),j=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),g=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(c.hiv,{}),"View",(0,n.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Order by"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.PhF,{value:o,onChange:e=>{u(e.currentTarget.value)},children:Object.entries((0,f.Z)(m.Fo,"category")).map(e=>{let[t,s]=e;return(0,n.jsx)("optgroup",{label:t,children:s.map(e=>(0,n.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},t)})})})]}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Direction"}),(0,n.jsx)(l.kFS,{children:(0,n.jsxs)(l.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,n.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(l.Clw,{}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(c.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:j.map(e=>e.value),enabled:h,setColumnsVisible:r,setColumnsHidden:i}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:j,values:h,onChange:e=>t(e)})}),(0,n.jsx)(l.FzK,{label:"Time",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:r,setColumnsHidden:i}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:p,values:h,onChange:e=>t(e)})}),(0,n.jsx)(l.FzK,{label:"Usage",columns:g.map(e=>e.value),enabled:h,setColumnsVisible:r,setColumnsHidden:i}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:g,values:h,onChange:e=>t(e)})})]})}function g(){return(0,n.jsx)("div",{className:"flex gap-2",children:(0,n.jsx)(p,{})})}var v=s(65304),b=s(2784),k=s(63328);function C(){let{filters:e,removeFilter:t,removeLastFilter:s}=(0,a.G)(),[r,i]=(0,b.useState)(!1),[o,u]=(0,b.useState)(""),[x,d]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),f=(0,b.useCallback)(e=>{d(t=>[...t,e])},[d]),p=(0,b.useCallback)(()=>{d([])},[d]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let g=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),C=(0,b.useCallback)(()=>{u(""),p()},[p]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(l.eQh,{children:[(0,n.jsx)(l.zxk,{variant:"active",state:"waiting",children:(0,l.$Gg)(e.label,30)}),(0,n.jsx)(l.zxk,{variant:"active",size:"small",onClick:()=>t(e.id),children:(0,n.jsx)(c.PcV,{})})]},e.id)),(0,n.jsxs)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>i(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||o)||(e.preventDefault(),d(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||o||s(),"Escape"===e.key&&!o)){var t;i(!1),null===(t=m.current)||void 0===t||t.blur()}},children:[(0,n.jsx)(v.mY.Input,{ref:m,value:o,onValueChange:u,className:(0,l.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),r&&(0,n.jsx)(l.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(l.xrM,{children:[h&&(0,n.jsx)(l.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(v.mY.List,{children:(0,n.jsx)(k.F,{currentPage:h,beforeSelect:g,afterSelect:C,pushPage:f})})]})})]})]})}function y(){let{offset:e,limit:t,totalCount:s,pageCount:c,dataState:r}=(0,a.G)();return(0,n.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,n.jsx)(C,{}),(0,n.jsx)(l.uDJ,{offset:e,limit:t,isLoading:"loading"===r,datasetTotal:s,pageTotal:c})]})}var N=s(60381),_=s(63694);function w(){let{openDialog:e}=(0,h.Rh)(),{multiSelect:t}=(0,a.G)(),s=(0,_.kr)(),r=(0,b.useMemo)(()=>Object.entries(t.selection).map(e=>{let[t,s]=e;return s.id}),[t.selection]),i=(0,b.useCallback)(async()=>{await (0,l.eKZ)(r.map(e=>s.put({params:{id:e}})),{toastError:e=>{let{successCount:t,errorCount:s,totalCount:n}=e;return{title:"Integrity checks started for ".concat((0,N._6)(t,"contract")),body:"Error starting integrity checks for ".concat(s,"/").concat(n," total contracts.")}},toastSuccess:t=>{let{totalCount:s}=t;return{title:"Integrity checks started for ".concat((0,N._6)(s,"contract")),body:(0,n.jsxs)(n.Fragment,{children:["Depending on contract data size this operation can take a while. Check ",(0,n.jsx)(l.EKh,{children:"hostd"})," ",(0,n.jsx)(l.rUS,{onClick:()=>e("alerts"),children:"alerts"})," for status updates."]})}},after:()=>{t.deselectAll()}})},[t,r,s,e]);return(0,n.jsx)(l.zxk,{"aria-label":"run integrity check for each contract",tip:"Run integrity check for each contract",onClick:i,children:(0,n.jsx)(c.dDl,{})})}function E(){let{multiSelect:e}=(0,a.G)();return(0,n.jsx)(l.hv1,{multiSelect:e,entityWord:"contract",children:(0,n.jsx)(w,{})})}let F=j.q;function S(){return(0,n.jsx)(u,{})}S.Layout=F,S.useLayoutProps=function(){let{openDialog:e}=(0,h.Rh)();return{title:"Contracts",routes:d._,sidenav:(0,n.jsx)(x.N,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(g,{}),stats:(0,n.jsx)(y,{}),size:"full",dockedControls:(0,n.jsx)(E,{})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-ecdca8d2d3dd318e.js b/hostd/assets/_next/static/chunks/pages/contracts-ecdca8d2d3dd318e.js new file mode 100644 index 000000000..460048006 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/contracts-ecdca8d2d3dd318e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(73986)}])},73986:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return z}});var n=s(52322),l=s(35627),a=s(65717),c=s(35138);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function i(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(c.VBo,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function o(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}function u(){let{visibleColumns:e,datasetPage:t,sortField:s,sortDirection:c,sortableColumns:u,toggleSort:x,limit:d,datasetState:h,cellContext:j}=(0,a.G)();return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"contractsTable",context:j,isLoading:"loading"===h,emptyState:(0,n.jsx)(l.ubH,{datasetState:h,noneMatching:(0,n.jsx)(r,{}),noneYet:(0,n.jsx)(i,{}),error:(0,n.jsx)(o,{})}),pageSize:d,data:t,columns:e,sortableColumns:u,sortDirection:c,sortField:s,toggleSort:x})})}var x=s(13779),d=s(4300),h=s(54494),j=s(41941),m=s(46850),f=s(83894);function p(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:r,setColumnsHidden:i,sortField:o,setSortField:u,sortDirection:x,setSortDirection:d,visibleColumnIds:h}=(0,a.G)(),j=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),g=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(c.hiv,{}),"View",(0,n.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Order by"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.PhF,{value:o,onChange:e=>{u(e.currentTarget.value)},children:Object.entries((0,f.Z)(m.Fo,"category")).map(e=>{let[t,s]=e;return(0,n.jsx)("optgroup",{label:t,children:s.map(e=>(0,n.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},t)})})})]}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Direction"}),(0,n.jsx)(l.kFS,{children:(0,n.jsxs)(l.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,n.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(l.Clw,{}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(c.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:j.map(e=>e.value),enabled:h,setColumnsVisible:r,setColumnsHidden:i}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:j,values:h,onChange:e=>t(e)})}),(0,n.jsx)(l.FzK,{label:"Time",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:r,setColumnsHidden:i}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:p,values:h,onChange:e=>t(e)})}),(0,n.jsx)(l.FzK,{label:"Usage",columns:g.map(e=>e.value),enabled:h,setColumnsVisible:r,setColumnsHidden:i}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:g,values:h,onChange:e=>t(e)})})]})}function g(){return(0,n.jsx)("div",{className:"flex gap-2",children:(0,n.jsx)(p,{})})}var v=s(65304),b=s(2784),k=s(63328);function C(){let{filters:e,removeFilter:t,removeLastFilter:s}=(0,a.G)(),[r,i]=(0,b.useState)(!1),[o,u]=(0,b.useState)(""),[x,d]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),f=(0,b.useCallback)(e=>{d(t=>[...t,e])},[d]),p=(0,b.useCallback)(()=>{d([])},[d]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&i(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let g=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),C=(0,b.useCallback)(()=>{u(""),p()},[p]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(l.eQh,{children:[(0,n.jsx)(l.zxk,{variant:"active",state:"waiting",children:(0,l.$Gg)(e.label,30)}),(0,n.jsx)(l.zxk,{variant:"active",size:"small",onClick:()=>t(e.id),children:(0,n.jsx)(c.PcV,{})})]},e.id)),(0,n.jsxs)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>i(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||o)||(e.preventDefault(),d(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||o||s(),"Escape"===e.key&&!o)){var t;i(!1),null===(t=m.current)||void 0===t||t.blur()}},children:[(0,n.jsx)(v.mY.Input,{ref:m,value:o,onValueChange:u,className:(0,l.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),r&&(0,n.jsx)(l.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(l.xrM,{children:[h&&(0,n.jsx)(l.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(v.mY.List,{children:(0,n.jsx)(k.F,{currentPage:h,beforeSelect:g,afterSelect:C,pushPage:f})})]})})]})]})}function y(){let{offset:e,limit:t,datasetFilteredTotal:s,datasetState:c}=(0,a.G)();return(0,n.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,n.jsx)(C,{}),(0,n.jsx)(l.uDJ,{offset:e,limit:t,isLoading:"loading"===c,total:s})]})}var N=s(60381),_=s(63694);function w(){let{openDialog:e}=(0,h.Rh)(),{multiSelect:t}=(0,a.G)(),s=(0,_.kr)(),r=(0,b.useMemo)(()=>Object.entries(t.selection).map(e=>{let[t,s]=e;return s.id}),[t.selection]),i=(0,b.useCallback)(async()=>{await (0,l.eKZ)(r.map(e=>s.put({params:{id:e}})),{toastError:e=>{let{successCount:t,errorCount:s,totalCount:n}=e;return{title:"Integrity checks started for ".concat((0,N._6)(t,"contract")),body:"Error starting integrity checks for ".concat(s,"/").concat(n," total contracts.")}},toastSuccess:t=>{let{totalCount:s}=t;return{title:"Integrity checks started for ".concat((0,N._6)(s,"contract")),body:(0,n.jsxs)(n.Fragment,{children:["Depending on contract data size this operation can take a while. Check ",(0,n.jsx)(l.EKh,{children:"hostd"})," ",(0,n.jsx)(l.rUS,{onClick:()=>e("alerts"),children:"alerts"})," for status updates."]})}},after:()=>{t.deselectAll()}})},[t,r,s,e]);return(0,n.jsx)(l.zxk,{"aria-label":"run integrity check for each contract",tip:"Run integrity check for each contract",onClick:i,children:(0,n.jsx)(c.dDl,{})})}function E(){let{multiSelect:e}=(0,a.G)();return(0,n.jsx)(l.hv1,{multiSelect:e,entityWord:"contract",children:(0,n.jsx)(w,{})})}let S=j.q;function z(){return(0,n.jsx)(u,{})}z.Layout=S,z.useLayoutProps=function(){let{openDialog:e}=(0,h.Rh)();return{title:"Contracts",routes:d._,sidenav:(0,n.jsx)(x.N,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(g,{}),stats:(0,n.jsx)(y,{}),size:"full",dockedControls:(0,n.jsx)(E,{})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/index-af45c5a05f243adc.js b/hostd/assets/_next/static/chunks/pages/index-0abaa5751d9a81ed.js similarity index 99% rename from hostd/assets/_next/static/chunks/pages/index-af45c5a05f243adc.js rename to hostd/assets/_next/static/chunks/pages/index-0abaa5751d9a81ed.js index 136d17b84..7f01ef3e1 100644 --- a/hostd/assets/_next/static/chunks/pages/index-af45c5a05f243adc.js +++ b/hostd/assets/_next/static/chunks/pages/index-0abaa5751d9a81ed.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(59801)}])},59801:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return y}});var s=t(52322),o=t(14522),l=t(68202);function i(){let{revenue:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Revenue"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"revenue",label:"potential - all",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,s.jsx)(o.Z0O,{variant:"vertical"}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - all",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var n=t(60381);function d(){let{storage:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,s.jsx)(o.X6q,{children:"Storage"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"storage",label:"storage - physical",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:n.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"storage - contract",color:e.config.data.contractSectors.color,value:e.stats.contractSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:n.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"storage - temp",color:e.config.data.tempSectors.color,value:e.stats.tempSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:n.vW})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function r(){let{contracts:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Contracts"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Renewed contracts",color:e.config.data.renewed.color,value:e.stats.renewed,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/contracts",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}var c=t(83906);function g(){let{pricing:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Pricing"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:c.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:c.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:c.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:c.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:c.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:c.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}function x(){let{operations:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,s.jsx)(o.X6q,{children:"Operations"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:n.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:n.yF})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})}function f(){let{bandwidth:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,s.jsx)(o.X6q,{children:"Bandwidth"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,valueFormat:n.vW}),(0,s.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,valueFormat:n.vW})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function u(){let{collateral:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Collateral"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/collateral",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}function h(){return(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,s.jsx)(i,{}),(0,s.jsx)(u,{}),(0,s.jsx)(d,{}),(0,s.jsx)(f,{}),(0,s.jsx)(x,{}),(0,s.jsx)(r,{}),(0,s.jsx)(g,{})]})}var v=t(35138),j=t(41941),b=t(4300),L=t(13779),m=t(54494),p=t(71978);let M=j.q;function y(){return(0,s.jsx)(h,{})}y.Layout=M,y.useLayoutProps=function(){let{openDialog:e}=(0,m.Rh)(),{timeRange:a,dataTimeSpan:t,setDataTimeSpan:i,dataInterval:d}=(0,l.B)();return{title:"Overview",routes:b._,sidenav:(0,s.jsx)(L.N,{}),openSettings:()=>e("settings"),nav:(0,s.jsx)("div",{className:"flex gap-2 flex-1",children:(0,s.jsxs)(o.eQh,{children:[(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,n.rN)(a.start,{dateStyle:"long"})})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,n.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(d),children:(0,s.jsx)("div",{children:(0,s.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,s.jsx)(v.BB5,{}),d]})})}),(0,s.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,s.jsx)("div",{children:(0,s.jsx)(o.PhF,{value:String(t),onChange:e=>{i(e.currentTarget.value)},icon:(0,s.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,s.jsx)(v.YV2,{})}),children:p.lv.map(e=>(0,s.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(59801)}])},59801:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return y}});var s=t(52322),o=t(35627),l=t(68202);function i(){let{revenue:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Revenue"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"revenue",label:"potential - all",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,s.jsx)(o.Z0O,{variant:"vertical"}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - all",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"earned - ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var n=t(60381);function d(){let{storage:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,s.jsx)(o.X6q,{children:"Storage"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"storage",label:"storage - physical",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:n.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"storage - contract",color:e.config.data.contractSectors.color,value:e.stats.contractSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:n.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"storage - temp",color:e.config.data.tempSectors.color,value:e.stats.tempSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],valueFormat:n.vW})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function r(){let{contracts:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Contracts"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Renewed contracts",color:e.config.data.renewed.color,value:e.stats.renewed,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,valueFormat:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/contracts",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}var c=t(83906);function g(){let{pricing:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Pricing"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:c.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:c.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:c.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:c.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:c.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:c.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}function x(){let{operations:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,s.jsx)(o.X6q,{children:"Operations"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:n.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],valueFormat:n.yF})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})}function f(){let{bandwidth:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,s.jsx)(o.X6q,{children:"Bandwidth"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,valueFormat:n.vW}),(0,s.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,valueFormat:n.vW})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function u(){let{collateral:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Collateral"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"hostd/v0/metrics/graphs/collateral",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,height:300})]})}function h(){return(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,s.jsx)(i,{}),(0,s.jsx)(u,{}),(0,s.jsx)(d,{}),(0,s.jsx)(f,{}),(0,s.jsx)(x,{}),(0,s.jsx)(r,{}),(0,s.jsx)(g,{})]})}var v=t(35138),j=t(41941),b=t(4300),L=t(13779),m=t(54494),p=t(71978);let M=j.q;function y(){return(0,s.jsx)(h,{})}y.Layout=M,y.useLayoutProps=function(){let{openDialog:e}=(0,m.Rh)(),{timeRange:a,dataTimeSpan:t,setDataTimeSpan:i,dataInterval:d}=(0,l.B)();return{title:"Overview",routes:b._,sidenav:(0,s.jsx)(L.N,{}),openSettings:()=>e("settings"),nav:(0,s.jsx)("div",{className:"flex gap-2 flex-1",children:(0,s.jsxs)(o.eQh,{children:[(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,n.rN)(a.start,{dateStyle:"long"})})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,n.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(d),children:(0,s.jsx)("div",{children:(0,s.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,s.jsx)(v.BB5,{}),d]})})}),(0,s.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,s.jsx)("div",{children:(0,s.jsx)(o.PhF,{value:String(t),onChange:e=>{i(e.currentTarget.value)},icon:(0,s.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,s.jsx)(v.YV2,{})}),children:p.lv.map(e=>(0,s.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/login-de26710ad55ea5b3.js b/hostd/assets/_next/static/chunks/pages/login-d7a094f2f2729149.js similarity index 88% rename from hostd/assets/_next/static/chunks/pages/login-de26710ad55ea5b3.js rename to hostd/assets/_next/static/chunks/pages/login-d7a094f2f2729149.js index 075fd6aeb..417d60368 100644 --- a/hostd/assets/_next/static/chunks/pages/login-de26710ad55ea5b3.js +++ b/hostd/assets/_next/static/chunks/pages/login-d7a094f2f2729149.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1603)}])},1603:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return i}});var o=t(52322),r=t(14522),e=t(4300);function s(){return(0,o.jsx)(r.zXq,{appName:"hostd",route:e.h,routes:e._})}function i(){return(0,o.jsx)(s,{})}i.Layout=function(n){return(0,o.jsx)(r.juT,{appName:"hostd",...n})},i.useLayoutProps=function(){return{}}}},function(n){n.O(0,[888,774,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(1603)}])},1603:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return i}});var o=t(52322),r=t(35627),e=t(4300);function s(){return(0,o.jsx)(r.zXq,{appName:"hostd",route:e.h,routes:e._})}function i(){return(0,o.jsx)(s,{})}i.Layout=function(n){return(0,o.jsx)(r.juT,{appName:"hostd",...n})},i.useLayoutProps=function(){return{}}}},function(n){n.O(0,[888,774,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-42bd003397121ec3.js b/hostd/assets/_next/static/chunks/pages/node-73902e405e8bb4ac.js similarity index 95% rename from hostd/assets/_next/static/chunks/pages/node-42bd003397121ec3.js rename to hostd/assets/_next/static/chunks/pages/node-73902e405e8bb4ac.js index 3e71a9c5f..92c19491a 100644 --- a/hostd/assets/_next/static/chunks/pages/node-42bd003397121ec3.js +++ b/hostd/assets/_next/static/chunks/pages/node-73902e405e8bb4ac.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(63825)}])},63825:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var o=t(52322),a=t(14522),l=t(63694),i=t(54494),s=t(2784),c=t(34001),u=t(52059),r=t(16211);function d(){var e;let n=(0,l.cQ)(),t=(0,r.n)(),{openDialog:d}=(0,i.Rh)(),f=(0,s.useMemo)(()=>{var e,t,o;return n.data?(e=n.data,t=["address"],null==e?[]:((0,u.Z)(t)||(t=null==t?[]:[t]),(0,u.Z)(o)||(o=null==o?[]:[o]),(0,c.Z)(e,t,o))).map(e=>e.address):null},[n.data]);return(0,o.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,o.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,o.jsx)(a.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,o.jsx)(a.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,o.jsx)(a.u5Q,{peers:f,isLoading:n.isValidating,connectPeer:()=>d("connectPeer")})]})}var f=t(4300),g=t(13779);let h=t(41941).q;function p(){return(0,o.jsx)(d,{})}p.Layout=h,p.useLayoutProps=function(){let{openDialog:e}=(0,i.Rh)();return{title:"Node",routes:f._,sidenav:(0,o.jsx)(g.N,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(63825)}])},63825:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var o=t(52322),a=t(35627),l=t(63694),i=t(54494),s=t(2784),c=t(34001),u=t(52059),r=t(16211);function d(){var e;let n=(0,l.cQ)(),t=(0,r.n)(),{openDialog:d}=(0,i.Rh)(),f=(0,s.useMemo)(()=>{var e,t,o;return n.data?(e=n.data,t=["address"],null==e?[]:((0,u.Z)(t)||(t=null==t?[]:[t]),(0,u.Z)(o)||(o=null==o?[]:[o]),(0,c.Z)(e,t,o))).map(e=>e.address):null},[n.data]);return(0,o.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,o.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,o.jsx)(a.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,o.jsx)(a.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,o.jsx)(a.u5Q,{peers:f,isLoading:n.isValidating,connectPeer:()=>d("connectPeer")})]})}var f=t(4300),g=t(13779);let h=t(41941).q;function p(){return(0,o.jsx)(d,{})}p.Layout=h,p.useLayoutProps=function(){let{openDialog:e}=(0,i.Rh)();return{title:"Node",routes:f._,sidenav:(0,o.jsx)(g.N,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-17637d9fadbeac60.js b/hostd/assets/_next/static/chunks/pages/volumes-17637d9fadbeac60.js new file mode 100644 index 000000000..577fa9d7f --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/volumes-17637d9fadbeac60.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return t(69815)}])},69815:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return h}});var n=t(52322),l=t(35627),i=t(18993),a=t(35138);function o(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.zvn,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function r(){let{datasetPage:e,datasetState:s,isLoading:t,visibleColumns:a}=(0,i.F)();return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"volumesTable",isLoading:t,pageSize:20,data:e,columns:a,emptyState:(0,n.jsx)(l.ubH,{datasetState:s,noneYet:(0,n.jsx)(o,{})})})})}var u=t(41941),c=t(54494),x=t(13779),d=t(4300);function j(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,setColumnsVisible:o,setColumnsHidden:r,visibleColumnIds:u}=(0,i.F)(),c=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(a.hiv,{}),"View",(0,n.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,n.jsx)(a.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:c.map(e=>e.value),enabled:u,setColumnsVisible:o,setColumnsHidden:r}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:c,values:u,onChange:e=>s(e)})}),(0,n.jsx)(l.FzK,{label:"Operations",columns:x.map(e=>e.value),enabled:u,setColumnsVisible:o,setColumnsHidden:r}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:x,values:u,onChange:e=>s(e)})})]})}var m=t(60381);function v(){let{dataset:e,datasetState:s,datasetFilteredTotal:t,offset:a,limit:o}=(0,i.F)(),r=null==e?void 0:e.reduce((e,s)=>e+s.totalBytes,0),u=null==e?void 0:e.reduce((e,s)=>e+s.usedBytes,0);return(0,n.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,n.jsxs)("div",{className:"flex gap-4",children:[(0,n.jsx)(l.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,m.vW)(u)," used")}),(0,n.jsx)(l.Z0O,{variant:"vertical"}),(0,n.jsx)(l.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,m.vW)(r-u)," free")}),(0,n.jsx)(l.Z0O,{variant:"vertical"}),(0,n.jsx)(l.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,m.vW)(r)," total")})]}),(0,n.jsx)(l.uDJ,{offset:a,limit:o,isLoading:"loading"===s,total:t})]})}let f=u.q;function h(){return(0,n.jsx)(r,{})}h.Layout=f,h.useLayoutProps=function(){let{openDialog:e}=(0,c.Rh)();return{title:"Volumes",routes:d._,sidenav:(0,n.jsx)(x.N,{}),openSettings:()=>e("settings"),actions:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.zxk,{onClick:()=>e("volumeCreate"),children:[(0,n.jsx)(a.RVU,{}),"Create volume"]}),(0,n.jsx)(j,{})]}),stats:(0,n.jsx)(v,{})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-219806c2783a31cc.js b/hostd/assets/_next/static/chunks/pages/volumes-219806c2783a31cc.js deleted file mode 100644 index b5bfb9e58..000000000 --- a/hostd/assets/_next/static/chunks/pages/volumes-219806c2783a31cc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return n(79432)}])},79432:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return h}});var t=n(52322),l=n(14522),i=n(18993),a=n(35138);function o(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(l.xvT,{children:(0,t.jsx)(a.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function r(){let{dataset:e,isLoading:s,columns:n}=(0,i.F)();return(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(l.iA_,{testId:"volumesTable",isLoading:s,pageSize:20,data:e,columns:n,emptyState:(0,t.jsx)(o,{})})})}var c=n(60381),u=n(41941),x=n(54494),d=n(13779),m=n(4300);function j(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:o,setColumnsHidden:r,enabledColumns:c}=(0,i.F)(),u=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(l.J2e,{trigger:(0,t.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(a.hiv,{}),"View",(0,t.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(l.WVB,{children:[(0,t.jsx)(l.__J,{children:"Display properties"}),(0,t.jsx)(l.kFS,{children:(0,t.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(a.Wet,{})})})]}),(0,t.jsx)(l.FzK,{label:"General",columns:u.map(e=>e.value),enabled:c,setColumnsVisible:o,setColumnsHidden:r}),(0,t.jsx)(l.WVB,{children:(0,t.jsx)(l.j4H,{options:u,values:c,onChange:e=>s(e)})}),(0,t.jsx)(l.FzK,{label:"Operations",columns:x.map(e=>e.value),enabled:c,setColumnsVisible:o,setColumnsHidden:r}),(0,t.jsx)(l.WVB,{children:(0,t.jsx)(l.j4H,{options:x,values:c,onChange:e=>s(e)})})]})}let v=u.q;function h(){return(0,t.jsx)(r,{})}h.Layout=v,h.useLayoutProps=function(){let{openDialog:e}=(0,x.Rh)(),{dataset:s}=(0,i.F)(),n=null==s?void 0:s.reduce((e,s)=>e+s.totalBytes,0),o=null==s?void 0:s.reduce((e,s)=>e+s.usedBytes,0);return{title:"Volumes",routes:m._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(a.RVU,{}),"Create volume"]}),(0,t.jsx)(j,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(l.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,c.vW)(o)," used")}),(0,t.jsx)(l.Z0O,{variant:"vertical"}),(0,t.jsx)(l.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,c.vW)(n-o)," free")}),(0,t.jsx)(l.Z0O,{variant:"vertical"}),(0,t.jsx)(l.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,c.vW)(n)," total")})]})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-792dee25d88d7eba.js b/hostd/assets/_next/static/chunks/pages/wallet-792dee25d88d7eba.js deleted file mode 100644 index 01fe02557..000000000 --- a/hostd/assets/_next/static/chunks/pages/wallet-792dee25d88d7eba.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return s(11495)}])},11495:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return N}});var t=s(52322),a=s(14522),l=s(88022),i=s(35138);function c(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(i.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function r(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(i.fDA,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function o(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(i.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}function x(){let{balances:e,metrics:n,dataset:s,dataState:i,columns:x,cellContext:d,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j,defaultPageSize:h}=(0,l.n)();return(0,t.jsxs)("div",{className:"flex flex-col gap-4 px-6 py-7 min-w-fit",children:[(null==e?void 0:e.length)&&e.find(e=>e.sc)?(0,t.jsx)(a.Z58,{balances:e,isLoading:n.isValidating}):null,(0,t.jsx)(a.iA_,{testId:"eventsTable",isLoading:"loading"===i,emptyState:"noneMatchingFilters"===i?(0,t.jsx)(c,{}):"noneYet"===i?(0,t.jsx)(r,{}):"error"===i?(0,t.jsx)(o,{}):null,pageSize:h,data:s,context:d,columns:x,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j})]})}var d=s(63694),u=s(54494),f=s(4300),m=s(6391),j=s.n(m),h=s(13779),p=s(41941),g=s(16211);function w(){let{isSynced:e,syncPercent:n,isWalletSynced:s,walletScanPercent:i}=(0,g.n)(),{offset:c,limit:r,pageCount:o,dataState:x}=(0,l.n)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(a.DmW,{isSynced:e,isWalletSynced:s,syncPercent:n,walletScanPercent:i}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(a.wFK,{offset:c,limit:r,pageTotal:o,isLoading:"loading"===x})]})}let v=p.q;function N(){return(0,t.jsx)(x,{})}N.Layout=v,N.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)(),n=(0,d.Os)(),{isSynced:s,isWalletSynced:l,syncPercent:i,walletScanPercent:c}=(0,g.n)();return{title:"Wallet",routes:f._,sidenav:(0,t.jsx)(h.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(a.QUh,{isSynced:s,isWalletSynced:l,syncPercent:i,walletScanPercent:c,balanceSc:n.data?{spendable:new(j())(n.data.spendable),unconfirmed:new(j())(n.data.unconfirmed),confirmed:new(j())(n.data.confirmed),immature:new(j())(n.data.immature)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,t.jsx)(w,{})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-d19b2d4688b6a55c.js b/hostd/assets/_next/static/chunks/pages/wallet-d19b2d4688b6a55c.js new file mode 100644 index 000000000..0844c0c48 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/wallet-d19b2d4688b6a55c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return s(11495)}])},11495:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return N}});var t=s(52322),a=s(35627),c=s(88022),i=s(35138);function l(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(i.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function r(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(i.fDA,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function o(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(a.xvT,{children:(0,t.jsx)(i.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}function x(){let{balances:e,metrics:n,datasetPage:s,datasetState:i,visibleColumns:x,cellContext:d,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j,defaultPageSize:h}=(0,c.n)();return(0,t.jsxs)("div",{className:"flex flex-col gap-4 px-6 py-7 min-w-fit",children:[(null==e?void 0:e.length)&&e.find(e=>e.sc)?(0,t.jsx)(a.Z58,{balances:e,isLoading:n.isValidating}):null,(0,t.jsx)(a.iA_,{testId:"eventsTable",isLoading:"loading"===i,emptyState:(0,t.jsx)(a.ubH,{datasetState:i,noneMatching:(0,t.jsx)(l,{}),noneYet:(0,t.jsx)(r,{}),error:(0,t.jsx)(o,{})}),pageSize:h,data:s,context:d,columns:x,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j})]})}var d=s(63694),u=s(54494),f=s(4300),m=s(6391),j=s.n(m),h=s(13779),p=s(41941),g=s(16211);function w(){let{isSynced:e,syncPercent:n,isWalletSynced:s,walletScanPercent:i}=(0,g.n)(),{offset:l,limit:r,datasetPageTotal:o,datasetState:x}=(0,c.n)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(a.DmW,{isSynced:e,isWalletSynced:s,syncPercent:n,walletScanPercent:i}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(a.wFK,{offset:l,limit:r,pageTotal:o,isLoading:"loading"===x})]})}let v=p.q;function N(){return(0,t.jsx)(x,{})}N.Layout=v,N.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)(),n=(0,d.Os)(),{isSynced:s,isWalletSynced:c,syncPercent:i,walletScanPercent:l}=(0,g.n)();return{title:"Wallet",routes:f._,sidenav:(0,t.jsx)(h.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsx)(a.QUh,{isSynced:s,isWalletSynced:c,syncPercent:i,walletScanPercent:l,balanceSc:n.data?{spendable:new(j())(n.data.spendable),unconfirmed:new(j())(n.data.unconfirmed),confirmed:new(j())(n.data.confirmed),immature:new(j())(n.data.immature)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,t.jsx)(w,{})}}}},function(e){e.O(0,[546,888,774,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/jg47y9ezZPD-H3jbR2g7m/_buildManifest.js b/hostd/assets/_next/static/jg47y9ezZPD-H3jbR2g7m/_buildManifest.js deleted file mode 100644 index d7212e1e5..000000000 --- a/hostd/assets/_next/static/jg47y9ezZPD-H3jbR2g7m/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-af45c5a05f243adc.js"],"/404":[s,"static/chunks/pages/404-87dcb3432ecb3c39.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/config":[s,"static/chunks/pages/config-b00f01b65e893d03.js"],"/contracts":[s,"static/chunks/pages/contracts-9bbbfcef4e4f3b37.js"],"/login":["static/chunks/pages/login-de26710ad55ea5b3.js"],"/node":[s,"static/chunks/pages/node-42bd003397121ec3.js"],"/volumes":[s,"static/chunks/pages/volumes-219806c2783a31cc.js"],"/wallet":[s,"static/chunks/pages/wallet-792dee25d88d7eba.js"],sortedPages:["/","/404","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]}}("static/chunks/546-5581ac6e9fd0df49.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/config.html b/hostd/assets/config.html index 53232fed5..1d6c78350 100644 --- a/hostd/assets/config.html +++ b/hostd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/contracts.html b/hostd/assets/contracts.html index 8a1fb0024..111f04f90 100644 --- a/hostd/assets/contracts.html +++ b/hostd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/index.html b/hostd/assets/index.html index bcd0a3ef5..45bfb9381 100644 --- a/hostd/assets/index.html +++ b/hostd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/login.html b/hostd/assets/login.html index 5ff3d9ca0..d030a037a 100644 --- a/hostd/assets/login.html +++ b/hostd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/node.html b/hostd/assets/node.html index 5cfa4af1b..0bbb41409 100644 --- a/hostd/assets/node.html +++ b/hostd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/volumes.html b/hostd/assets/volumes.html index 9abe8f46a..dcc338cc2 100644 --- a/hostd/assets/volumes.html +++ b/hostd/assets/volumes.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/wallet.html b/hostd/assets/wallet.html index 807cc2a31..9b4305a08 100644 --- a/hostd/assets/wallet.html +++ b/hostd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/404.html b/renterd/assets/404.html index 9712a519c..7084a7d75 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/Q3umR26zs3TtcJHHUTyxT/_buildManifest.js b/renterd/assets/_next/static/Q3umR26zs3TtcJHHUTyxT/_buildManifest.js deleted file mode 100644 index eaec8c5cd..000000000 --- a/renterd/assets/_next/static/Q3umR26zs3TtcJHHUTyxT/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-7bd31586412389b2.js"],"/404":[s,"static/chunks/pages/404-6444fd59ec933aba.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/alerts":[s,"static/chunks/pages/alerts-5269e287cf327531.js"],"/buckets":[s,e,"static/chunks/pages/buckets-09164b5b81bb3c9a.js"],"/buckets/[bucket]/files/[[...path]]":[s,e,"static/chunks/pages/buckets/[bucket]/files/[[...path]]-c316853e42bd1398.js"],"/buckets/[bucket]/uploads":[s,"static/chunks/pages/buckets/[bucket]/uploads-025b2138291e0bf5.js"],"/config":[s,"static/chunks/pages/config-8ea20c38d7a742e9.js"],"/contracts":[s,"static/chunks/pages/contracts-77ed6db24c1b79ee.js"],"/hosts":[s,"static/chunks/pages/hosts-422c362d70dc61ec.js"],"/keys":[s,"static/chunks/pages/keys-8abb7a2a9b5efcf4.js"],"/login":["static/chunks/pages/login-2434eef88aea94b0.js"],"/node":[s,"static/chunks/pages/node-6a5ee2c79c8cd9f3.js"],"/wallet":[s,"static/chunks/pages/wallet-447851b622413f4a.js"],sortedPages:["/","/404","/_app","/_error","/alerts","/buckets","/buckets/[bucket]/files/[[...path]]","/buckets/[bucket]/uploads","/config","/contracts","/hosts","/keys","/login","/node","/wallet"]}}("static/chunks/705-2b825a5725a68ab8.js","static/chunks/940-0c32f119e8b7b36f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/705-2b825a5725a68ab8.js b/renterd/assets/_next/static/chunks/705-2b825a5725a68ab8.js deleted file mode 100644 index 65f089fd6..000000000 --- a/renterd/assets/_next/static/chunks/705-2b825a5725a68ab8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{80063:function(e,n,i){i.d(n,{z:function(){return a}});var s=i(52322),t=i(18575),l=i(91426),r=i(2784);function a(e){var n;let{size:i}=e,a=(0,l.oe)(),d=(0,l.e$)(),c=(0,r.useCallback)(()=>{var e;d.data&&a.put({payload:{...d.data,enabled:!(null===(e=d.data)||void 0===e?void 0:e.enabled)}})},[d.data,a]);return(0,s.jsx)(t.ua7,{content:"Enable or disable the system autopilot which handles forming contracts and maintaining files.",children:(0,s.jsx)("div",{children:(0,s.jsx)(t.rsf,{size:i,checked:!!(null===(n=d.data)||void 0===n?void 0:n.enabled),onCheckedChange:c})})})}},69367:function(e,n,i){i.d(n,{F:function(){return l}});var s=i(91426),t=i(74282);function l(){var e;let n=(0,s.NF)(),{datasetCount:i,isLoading:l}=(0,t.G)();return{active:n.data&&!l&&iu("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(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===(r=m.data)||void 0===r?void 0:r.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:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(){let e=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"mainnet"!==e.data.network?(0,s.jsx)(t.t6k,{testnetName:e.data.network}):null}var m=i(2784),j=i(28420),f=i(69367),v=i(83429),p=i(92762),g=i(40144);function b(){let{isUnlockedAndAuthedRoute:e}=(0,v.Hv)(),{openDialog:n}=(0,o.Rh)(),i=(0,l.X2)(),[r,u]=(0,p.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),h=(0,c.n)(),m=(0,f.F)(),{estimatedSpendingPerMonth:b}=(0,g.S)();if(!e)return null;let y=new(a())(i.data?i.data.confirmed+i.data.unconfirmed:0),k=h.isSynced,N=y.gt(0),z=!m.active,T=[!0,k,N,z],S=T.length,_=T.filter(e=>e).length;return S===_?(0,s.jsx)(t.$9_,{}):r?(0,s.jsx)(t.$9_,{children:(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(t.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,s.jsxs)(t.xrM,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)(t.TRl,{}),(0,s.jsx)(t.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,s.jsx)(t.zxk,{"aria-label":"minimize onboarding wizard",variant:"ghost",onClick:()=>u(!1),children:(0,s.jsx)(j.mli,{})})]}),(0,s.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,s.jsx)(t.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,s.jsx)(w,{title:(0,s.jsx)(t.rUS,{href:d._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify your estimated usage and maximum pricing values.",action:(0,s.jsx)(t.rUS,{href:d._.config.index,children:(0,s.jsx)(j.V8Q,{})})}),(0,s.jsx)(w,{title:(0,s.jsx)(t.rUS,{href:d._.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:k?(0,s.jsx)(t.xvT,{color:"green",children:(0,s.jsx)(j.Y3p,{})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(t.xvT,{ellipsis:!0,size:"14",children:[h.syncPercent,"%"]}),(0,s.jsx)(t.xvT,{color:"amber",children:(0,s.jsx)(j.hzZ,{})})]})}),(0,s.jsx)(w,{title:(0,s.jsx)(t.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,x.Vz)(b||0)," siacoin to cover the estimated spending for a month.").concat(h.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:N?(0,s.jsx)(t.xvT,{color:"green",children:(0,s.jsx)(j.Y3p,{})}):(0,s.jsxs)(s.Fragment,{children:[!h.isWalletSynced&&(0,s.jsx)(t.ua7,{content:"Wallet scanning progress ".concat(h.walletScanPercent,"%"),children:(0,s.jsxs)(t.xvT,{size:"14",children:[h.walletScanPercent,"%"]})}),(0,s.jsx)(t.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),children:(0,s.jsx)(j.V8Q,{})}),(0,s.jsx)(t.xvT,{color:"amber",children:(0,s.jsx)(j.Fs9,{})})]})}),(0,s.jsx)(w,{title:(0,s.jsx)(t.rUS,{href:d._.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:z?(0,s.jsx)(t.xvT,{color:"green",children:(0,s.jsx)(j.Y3p,{})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(t.xvT,{ellipsis:!0,size:"14",children:[m.count,"/",m.required]}),(0,s.jsx)(t.xvT,{color:"amber",children:(0,s.jsx)(j.hzZ,{})})]})})]})})})}):(0,s.jsx)(t.$9_,{children:(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(t.zxk,{onClick:()=>u(!0),size:"large",className:"flex gap-3 !px-3",children:(0,s.jsxs)(t.xvT,{size:"14",className:"flex items-center gap-1",children:[(0,s.jsx)(t.TRl,{}),"Setup: ",_,"/",S," steps complete"]})})})})}function w(e){let{title:n,action:i,description:l}=e;return(0,s.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("div",{className:"flex-1 flex items-center",children:n}),i]}),(0,s.jsx)("div",{className:"pr-5",children:(0,s.jsx)(t.xvT,{size:"12",color:"subtle",children:l})})]})})}var y=i(95810),k=i(45382);function N(e){let{loaded:n,size:i,path:l,abortTip:r,abort:a,status:d}=e;return(0,s.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,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(t.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:l}),(0,s.jsx)(t.zxk,{tip:r,variant:"ghost",size:"none",onClick:()=>null==a?void 0:a(),children:(0,s.jsx)(j.PcV,{})})]}),(0,s.jsx)(k.s,{loaded:n,size:i,status:d})]})}var z=i(26706);function T(){let{isUnlockedAndAuthedRoute:e}=(0,v.Hv)(),{downloadsList:n,downloadCancel:i,isViewingUploads:l,navigateToUploads:r}=(0,y.b)(),{pageCount:a}=(0,z.x)(),[d,c]=(0,m.useState)(!0),o=!!a,x=n.length,u=!!x;if(!e||!o&&!u)return(0,s.jsx)(t.$9_,{});let h=(0,s.jsxs)("div",{className:"flex gap-2 justify-center",children:[o&&!l?(0,s.jsxs)(t.zxk,{tip:"Uploads list",onClick:r,className:"flex gap-1",children:[(0,s.jsx)(j.R$6,{className:"opacity-50 scale-75 relative top-px"}),"Active uploads"]}):null,u?(0,s.jsxs)(t.zxk,{tip:"Downloads list",onClick:()=>c(e=>!e),className:"flex gap-1",children:[(0,s.jsx)(j.vzB,{className:"opacity-50 scale-75"}),"Active downloads"]}):null]});return u&&d?(0,s.jsx)(t.$9_,{children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2",children:[(0,s.jsx)(t.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,s.jsx)(t.xrM,{children:u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,s.jsxs)(t.xvT,{size:"16",weight:"semibold",children:["Active downloads (",x,")"]}),(0,s.jsx)(t.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,s.jsx)(j.mli,{})})]}),n.map(e=>(0,s.jsx)(N,{path:e.path,loaded:e.loaded||0,size:e.size,status:e.loaded===e.size?"processing":"downloading",abort:()=>i(e),abortTip:"Cancel download"},e.id))]}):null})}),h]})}):(0,s.jsx)(t.$9_,{children:h})}var S=i(80063),_=i(63131);function C(){let e=(0,l.e$)();return!e.data||e.data.enabled?(0,s.jsx)(t.$9_,{}):(0,s.jsx)(t.$9_,{children:(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)(t.s_4,{className:"w-[400px] flex flex-col gap-2 max-h-[600px] p-3",children:[(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(t.xvT,{size:"18",weight:"medium",color:"contrast",children:(0,s.jsx)(_.KTM,{})}),(0,s.jsx)(t.xvT,{size:"18",weight:"medium",color:"contrast",children:"Autopilot is currently disabled"}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(S.z,{size:"medium"})]}),(0,s.jsx)(t.xvT,{size:"12",color:"subtle",children:"Enable autopilot to form contracts and maintain files."})]})})})}function W(e){let{children:n}=e;return(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[n,(0,s.jsx)(T,{}),(0,s.jsx)(b,{}),(0,s.jsx)(C,{})]})}function B(e){let{dockedControls:n,...i}=e,r=(0,l.X2)(),{isSynced:o}=(0,c.n)();return(0,s.jsx)(t.tU3,{appName:"renterd",connectivityRoute:d.h,profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(h,{}),isSynced:o,walletBalanceSc:r.data&&{spendable:new(a())(r.data.spendable),confirmed:new(a())(r.data.confirmed),immature:new(a())(r.data.immature),unconfirmed:new(a())(r.data.unconfirmed)},dockedControls:(0,s.jsx)(W,{children:n}),...i})}},70825:function(e,n,i){i.d(n,{e:function(){return o}});var s=i(52322),t=i(18575),l=i(28420),r=i(82851),a=i(4300),d=i(45209),c=i(82285);function o(){let{openDialog:e}=(0,c.Rh)(),{totals:n}=(0,d.Z)(),i=n.all===n.info;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.KJW,{title:"Files",route:a._.buckets.index,children:(0,s.jsx)(l.ROc,{})}),(0,s.jsx)(t.KJW,{title:"Configuration",route:a._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsx)(t.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(t.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,s.jsx)(l.VHe,{})}),(0,s.jsx)(t.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,s.jsx)(l._m8,{})}),(0,s.jsxs)("div",{className:"relative",children:[n.all?i?(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,s.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:n.all.toLocaleString()}):null,(0,s.jsx)(t.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,s.jsx)(l.Dkj,{})})]}),(0,s.jsx)(t.KJW,{title:"Bug report",onClick:()=>e("bugReport"),children:(0,s.jsx)(l.nnZ,{})})]})}},5001:function(e,n,i){i.d(n,{DQ:function(){return t},Z0:function(){return l}});var s=i(60381);function t(e){let{estimatedSpendingPerMonth:n,maxPricingFactor:i=1.5,storageTB:s,downloadTBMonth:t,uploadTBMonth:l,redundancyMultiplier:r,storageWeight:a=4,downloadWeight:d=5,uploadWeight:c=1}=e;if(!(null==n?void 0:n.gt(0))||i<=0||!(null==r?void 0:r.gt(0))||!(null==s?void 0:s.gt(0))||!(null==t?void 0:t.gt(0))||!(null==l?void 0:l.gt(0)))return;let o=n.times(i),x=s.times(r),u=l.times(r),h=o.div(x.times(a).plus(t.times(d)).plus(u.times(c)));return{maxUploadPriceTB:h.times(c),maxDownloadPriceTB:h.times(d),maxStoragePriceTBMonth:h.times(a)}}function l(e){let{maxStoragePriceTBMonth:n,maxDownloadPriceTB:i,maxUploadPriceTB:t,maxPricingFactor:l=1.5,storageTB:r,downloadTBMonth:a,uploadTBMonth:d,redundancyMultiplier:c}=e;if(!(null==n?void 0:n.gt(0))||!(null==i?void 0:i.gt(0))||!(null==t?void 0:t.gt(0))||l<=0||!(null==c?void 0:c.gt(0))||!(null==r?void 0:r.gt(0))||!(null==a?void 0:a.gt(0))||!(null==d?void 0:d.gt(0)))return;let o=(0,s.Nk)({maxStoragePriceTBMonth:n,maxDownloadPriceTB:i,maxUploadPriceTB:t,storageTB:r,downloadTBMonth:a,uploadTBMonth:d,redundancyMultiplier:c}),x=null==o?void 0:o.div(l);return null==x?void 0:x.integerValue()}},40144:function(e,n,i){i.d(n,{S:function(){return d}});var s=i(90040),t=i(2784),l=i(5880),r=i(5001),a=i(75346);function d(){let{form:e}=(0,s.ZR)(),n=function(){let{form:e}=(0,s.ZR)(),n=e.watch("minShards"),i=e.watch("totalShards"),d=e.watch("storageTB"),c=e.watch("downloadTBMonth"),o=e.watch("uploadTBMonth"),x=(0,l.i)({minShards:n,totalShards:i}),u=(0,a.w)({form:e});return(0,t.useMemo)(()=>{if(!u)return;let{maxStoragePriceTBMonth:e,maxUploadPriceTB:n,maxDownloadPriceTB:i}=u;return(0,r.Z0)({maxStoragePriceTBMonth:e,maxDownloadPriceTB:i,maxUploadPriceTB:n,storageTB:d,downloadTBMonth:c,uploadTBMonth:o,redundancyMultiplier:x})},[u,d,c,o,x])}(),i=e.watch("storageTB"),d=(0,t.useMemo)(()=>{if((null==n?void 0:n.gt(0))&&(null==i?void 0:i.gt(0)))return n.div(i)},[n,i]);return{estimatedSpendingPerMonth:n,estimatedSpendingPerTB:d}}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/705-b20b87b6824937eb.js b/renterd/assets/_next/static/chunks/705-b20b87b6824937eb.js new file mode 100644 index 000000000..048bb68da --- /dev/null +++ b/renterd/assets/_next/static/chunks/705-b20b87b6824937eb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{80063:function(e,n,i){i.d(n,{z:function(){return a}});var t=i(52322),s=i(70150),l=i(91426),r=i(2784);function a(e){var n;let{size:i}=e,a=(0,l.oe)(),d=(0,l.e$)(),c=(0,r.useCallback)(()=>{var e;d.data&&a.put({payload:{...d.data,enabled:!(null===(e=d.data)||void 0===e?void 0:e.enabled)}})},[d.data,a]);return(0,t.jsx)(s.ua7,{content:"Enable or disable the system autopilot which handles forming contracts and maintaining files.",children:(0,t.jsx)("div",{children:(0,t.jsx)(s.rsf,{size:i,checked:!!(null===(n=d.data)||void 0===n?void 0:n.enabled),onCheckedChange:c})})})}},69367:function(e,n,i){i.d(n,{F:function(){return l}});var t=i(91426),s=i(74282);function l(){var e;let n=(0,t.NF)(),{datasetTotal:i,isLoading:l}=(0,s.G)();return{active:n.data&&!l&&iu("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.XxW,{size:"14",maxLength:50,value:(null===(r=m.data)||void 0===r?void 0:r.address)||"",type:"address"})})]}),h.data&&(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.xvT,{size:"14",children:(0,x.bc)(g,{format:"long"})})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,t.jsx)(s.xvT,{size:"14",children:null===(a=h.data)||void 0===a?void 0:a.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(s.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(){let e=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"mainnet"!==e.data.network?(0,t.jsx)(s.t6k,{testnetName:e.data.network}):null}var m=i(2784),j=i(28420),f=i(69367),v=i(463),p=i(92762),g=i(40144);function b(){let{isUnlockedAndAuthedRoute:e}=(0,v.Hv)(),{openDialog:n}=(0,o.Rh)(),i=(0,l.X2)(),[r,u]=(0,p.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),h=(0,c.n)(),m=(0,f.F)(),{estimatedSpendingPerMonth:b}=(0,g.S)();if(!e)return null;let y=new(a())(i.data?i.data.confirmed+i.data.unconfirmed:0),k=h.isSynced,N=y.gt(0),z=!m.active,T=[!0,k,N,z],S=T.length,_=T.filter(e=>e).length;return S===_?(0,t.jsx)(s.$9_,{}):r?(0,t.jsx)(s.$9_,{children:(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(s.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,t.jsxs)(s.xrM,{children:[(0,t.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)(s.TRl,{}),(0,t.jsx)(s.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,t.jsx)(s.zxk,{"aria-label":"minimize onboarding wizard",variant:"ghost",onClick:()=>u(!1),children:(0,t.jsx)(j.mli,{})})]}),(0,t.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,t.jsx)(s.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,t.jsx)(w,{title:(0,t.jsx)(s.rUS,{href:d._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify your estimated usage and maximum pricing values.",action:(0,t.jsx)(s.rUS,{href:d._.config.index,children:(0,t.jsx)(j.V8Q,{})})}),(0,t.jsx)(w,{title:(0,t.jsx)(s.rUS,{href:d._.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:k?(0,t.jsx)(s.xvT,{color:"green",children:(0,t.jsx)(j.Y3p,{})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.xvT,{ellipsis:!0,size:"14",children:[h.syncPercent,"%"]}),(0,t.jsx)(s.xvT,{color:"amber",children:(0,t.jsx)(j.hzZ,{})})]})}),(0,t.jsx)(w,{title:(0,t.jsx)(s.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,x.Vz)(b||0)," siacoin to cover the estimated spending for a month.").concat(h.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:N?(0,t.jsx)(s.xvT,{color:"green",children:(0,t.jsx)(j.Y3p,{})}):(0,t.jsxs)(t.Fragment,{children:[!h.isWalletSynced&&(0,t.jsx)(s.ua7,{content:"Wallet scanning progress ".concat(h.walletScanPercent,"%"),children:(0,t.jsxs)(s.xvT,{size:"14",children:[h.walletScanPercent,"%"]})}),(0,t.jsx)(s.rUS,{href:d._.wallet.view,onClick:()=>n("addressDetails"),children:(0,t.jsx)(j.V8Q,{})}),(0,t.jsx)(s.xvT,{color:"amber",children:(0,t.jsx)(j.Fs9,{})})]})}),(0,t.jsx)(w,{title:(0,t.jsx)(s.rUS,{href:d._.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:z?(0,t.jsx)(s.xvT,{color:"green",children:(0,t.jsx)(j.Y3p,{})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.xvT,{ellipsis:!0,size:"14",children:[m.count,"/",m.required]}),(0,t.jsx)(s.xvT,{color:"amber",children:(0,t.jsx)(j.hzZ,{})})]})})]})})})}):(0,t.jsx)(s.$9_,{children:(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(s.zxk,{onClick:()=>u(!0),size:"large",className:"flex gap-3 !px-3",children:(0,t.jsxs)(s.xvT,{size:"14",className:"flex items-center gap-1",children:[(0,t.jsx)(s.TRl,{}),"Setup: ",_,"/",S," steps complete"]})})})})}function w(e){let{title:n,action:i,description:l}=e;return(0,t.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)("div",{className:"flex-1 flex items-center",children:n}),i]}),(0,t.jsx)("div",{className:"pr-5",children:(0,t.jsx)(s.xvT,{size:"12",color:"subtle",children:l})})]})})}var y=i(8068),k=i(45382);function N(e){let{loaded:n,size:i,path:l,abortTip:r,abort:a,status:d}=e;return(0,t.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,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(s.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:l}),(0,t.jsx)(s.zxk,{tip:r,variant:"ghost",size:"none",onClick:()=>null==a?void 0:a(),children:(0,t.jsx)(j.PcV,{})})]}),(0,t.jsx)(k.s,{loaded:n,size:i,status:d})]})}var z=i(67899);function T(){let{isUnlockedAndAuthedRoute:e}=(0,v.Hv)(),{downloadsList:n,downloadCancel:i,isViewingUploads:l,navigateToUploads:r}=(0,y.b)(),{datasetPageTotal:a}=(0,z.x)(),[d,c]=(0,m.useState)(!0),o=!!a,x=n.length,u=!!x;if(!e||!o&&!u)return(0,t.jsx)(s.$9_,{});let h=(0,t.jsxs)("div",{className:"flex gap-2 justify-center",children:[o&&!l?(0,t.jsxs)(s.zxk,{tip:"Uploads list",onClick:r,className:"flex gap-1",children:[(0,t.jsx)(j.R$6,{className:"opacity-50 scale-75 relative top-px"}),"Active uploads"]}):null,u?(0,t.jsxs)(s.zxk,{tip:"Downloads list",onClick:()=>c(e=>!e),className:"flex gap-1",children:[(0,t.jsx)(j.vzB,{className:"opacity-50 scale-75"}),"Active downloads"]}):null]});return u&&d?(0,t.jsx)(s.$9_,{children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2",children:[(0,t.jsx)(s.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,t.jsx)(s.xrM,{children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,t.jsxs)(s.xvT,{size:"16",weight:"semibold",children:["Active downloads (",x,")"]}),(0,t.jsx)(s.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,t.jsx)(j.mli,{})})]}),n.map(e=>(0,t.jsx)(N,{path:e.path,loaded:e.loaded||0,size:e.size,status:e.loaded===e.size?"processing":"downloading",abort:()=>i(e),abortTip:"Cancel download"},e.id))]}):null})}),h]})}):(0,t.jsx)(s.$9_,{children:h})}var S=i(80063),_=i(63131);function C(){let e=(0,l.e$)();return!e.data||e.data.enabled?(0,t.jsx)(s.$9_,{}):(0,t.jsx)(s.$9_,{children:(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)(s.s_4,{className:"w-[400px] flex flex-col gap-2 max-h-[600px] p-3",children:[(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(s.xvT,{size:"18",weight:"medium",color:"contrast",children:(0,t.jsx)(_.KTM,{})}),(0,t.jsx)(s.xvT,{size:"18",weight:"medium",color:"contrast",children:"Autopilot is currently disabled"}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(S.z,{size:"medium"})]}),(0,t.jsx)(s.xvT,{size:"12",color:"subtle",children:"Enable autopilot to form contracts and maintain files."})]})})})}function W(e){let{children:n}=e;return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[n,(0,t.jsx)(T,{}),(0,t.jsx)(b,{}),(0,t.jsx)(C,{})]})}function B(e){let{dockedControls:n,...i}=e,r=(0,l.X2)(),{isSynced:o}=(0,c.n)();return(0,t.jsx)(s.tU3,{appName:"renterd",connectivityRoute:d.h,profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(h,{}),isSynced:o,walletBalanceSc:r.data&&{spendable:new(a())(r.data.spendable),confirmed:new(a())(r.data.confirmed),immature:new(a())(r.data.immature),unconfirmed:new(a())(r.data.unconfirmed)},dockedControls:(0,t.jsx)(W,{children:n}),...i})}},70825:function(e,n,i){i.d(n,{e:function(){return o}});var t=i(52322),s=i(70150),l=i(28420),r=i(82851),a=i(4300),d=i(45209),c=i(82285);function o(){let{openDialog:e}=(0,c.Rh)(),{totals:n}=(0,d.Z)(),i=n.all===n.info;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.KJW,{title:"Files",route:a._.buckets.index,children:(0,t.jsx)(l.ROc,{})}),(0,t.jsx)(s.KJW,{title:"Configuration",route:a._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsx)(s.KJW,{title:"Contracts",route:a._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(s.KJW,{title:"Hosts",route:a._.hosts.index,children:(0,t.jsx)(l.VHe,{})}),(0,t.jsx)(s.KJW,{title:"S3 authentication keypairs",route:a._.keys.index,children:(0,t.jsx)(l._m8,{})}),(0,t.jsxs)("div",{className:"relative",children:[n.all?i?(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}):(0,t.jsx)(s.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:n.all.toLocaleString()}):null,(0,t.jsx)(s.KJW,{title:"Alerts",route:a._.alerts.index,children:(0,t.jsx)(l.Dkj,{})})]}),(0,t.jsx)(s.KJW,{title:"Bug report",onClick:()=>e("bugReport"),children:(0,t.jsx)(l.nnZ,{})})]})}},5001:function(e,n,i){i.d(n,{DQ:function(){return s},Z0:function(){return l}});var t=i(60381);function s(e){let{estimatedSpendingPerMonth:n,maxPricingFactor:i=1.5,storageTB:t,downloadTBMonth:s,uploadTBMonth:l,redundancyMultiplier:r,storageWeight:a=4,downloadWeight:d=5,uploadWeight:c=1}=e;if(!(null==n?void 0:n.gt(0))||i<=0||!(null==r?void 0:r.gt(0))||!(null==t?void 0:t.gt(0))||!(null==s?void 0:s.gt(0))||!(null==l?void 0:l.gt(0)))return;let o=n.times(i),x=t.times(r),u=l.times(r),h=o.div(x.times(a).plus(s.times(d)).plus(u.times(c)));return{maxUploadPriceTB:h.times(c),maxDownloadPriceTB:h.times(d),maxStoragePriceTBMonth:h.times(a)}}function l(e){let{maxStoragePriceTBMonth:n,maxDownloadPriceTB:i,maxUploadPriceTB:s,maxPricingFactor:l=1.5,storageTB:r,downloadTBMonth:a,uploadTBMonth:d,redundancyMultiplier:c}=e;if(!(null==n?void 0:n.gt(0))||!(null==i?void 0:i.gt(0))||!(null==s?void 0:s.gt(0))||l<=0||!(null==c?void 0:c.gt(0))||!(null==r?void 0:r.gt(0))||!(null==a?void 0:a.gt(0))||!(null==d?void 0:d.gt(0)))return;let o=(0,t.Nk)({maxStoragePriceTBMonth:n,maxDownloadPriceTB:i,maxUploadPriceTB:s,storageTB:r,downloadTBMonth:a,uploadTBMonth:d,redundancyMultiplier:c}),x=null==o?void 0:o.div(l);return null==x?void 0:x.integerValue()}},40144:function(e,n,i){i.d(n,{S:function(){return d}});var t=i(90040),s=i(2784),l=i(5880),r=i(5001),a=i(75346);function d(){let{form:e}=(0,t.ZR)(),n=function(){let{form:e}=(0,t.ZR)(),n=e.watch("minShards"),i=e.watch("totalShards"),d=e.watch("storageTB"),c=e.watch("downloadTBMonth"),o=e.watch("uploadTBMonth"),x=(0,l.i)({minShards:n,totalShards:i}),u=(0,a.w)({form:e});return(0,s.useMemo)(()=>{if(!u)return;let{maxStoragePriceTBMonth:e,maxUploadPriceTB:n,maxDownloadPriceTB:i}=u;return(0,r.Z0)({maxStoragePriceTBMonth:e,maxDownloadPriceTB:i,maxUploadPriceTB:n,storageTB:d,downloadTBMonth:c,uploadTBMonth:o,redundancyMultiplier:x})},[u,d,c,o,x])}(),i=e.watch("storageTB"),d=(0,s.useMemo)(()=>{if((null==n?void 0:n.gt(0))&&(null==i?void 0:i.gt(0)))return n.div(i)},[n,i]);return{estimatedSpendingPerMonth:n,estimatedSpendingPerTB:d}}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/940-0c32f119e8b7b36f.js b/renterd/assets/_next/static/chunks/940-0c32f119e8b7b36f.js deleted file mode 100644 index 40217a9db..000000000 --- a/renterd/assets/_next/static/chunks/940-0c32f119e8b7b36f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[940],{19634:function(e,s,l){l.d(s,{C:function(){return a}});var t=l(52322),i=l(18575),n=l(28420),r=l(95810);function c(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:l,isViewingUploads:c,navigateToUploads:a}=(0,r.b)();return(0,t.jsxs)(i.h_2,{trigger:(0,t.jsx)(i.zxk,{"aria-label":"change explorer mode",tipSide:"bottom",tip:c?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:c?(0,t.jsx)(n.bQp,{}):"directory"===e?(0,t.jsx)(n.Qbr,{}):(0,t.jsx)(n.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.Xiv,{onSelect:s,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(n.Qbr,{})}),"Directory"]}),(0,t.jsxs)(i.Xiv,{onSelect:l,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(n.nDH,{})}),"All files"]}),(0,t.jsxs)(i.Xiv,{onSelect:a,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(n.bQp,{})}),"Uploads"]})]})}function a(){let{isViewingBuckets:e}=(0,r.b)();return e?(0,t.jsx)(i.ua7,{content:"Viewing all buckets",children:(0,t.jsx)("div",{children:(0,t.jsx)(i.zxk,{state:"waiting",children:(0,t.jsx)(n.fi8,{size:16})})})}):(0,t.jsx)(c,{})}},15222:function(e,s,l){l.d(s,{A:function(){return L},r:function(){return R}});var t=l(52322),i=l(70825),n=l(4300),r=l(82285),c=l(2784),a=l(18575),o=l(28420),x=l(95810),d=l(19634);function u(){let{activeDirectory:e,setActiveDirectory:s}=(0,x.b)(),l=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=l.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,t.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,t.jsx)(d.C,{}),(0,t.jsx)(a.xrM,{children:(0,t.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,t.jsx)(a.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),e.length>0&&(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),e.map((e,l)=>(0,t.jsxs)(c.Fragment,{children:[l>0&&(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{onClick:()=>s(e=>e.slice(0,l+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+l)),(0,t.jsx)("div",{ref:l})]})})]})}function h(){let{activeBucketName:e,setActiveDirectory:s}=(0,x.b)();return(0,t.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,t.jsx)(d.C,{}),(0,t.jsx)(a.xrM,{children:(0,t.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,t.jsx)(a.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{onClick:()=>null,size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,t.jsx)(a.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(a.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"All files"})]})})]})}var j=l(31392),f=l(74424),m=l(89421),v=l(83894);function p(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:l,sortField:i,setSortField:n,sortDirection:r,setSortDirection:c,enabledColumns:d}=(0,x.b)();return(0,t.jsxs)(a.J2e,{trigger:(0,t.jsxs)(a.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Order by"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.PhF,{value:i,onChange:e=>{n(e.currentTarget.value)},children:Object.entries((0,v.Z)(m.Fo,"category")).map(e=>{let[s,l]=e;return(0,t.jsx)("optgroup",{label:s,children:l.map(e=>(0,t.jsx)(a.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Direction"}),(0,t.jsx)(a.kFS,{children:(0,t.jsxs)(a.PhF,{value:r,onClick:e=>{e.stopPropagation()},onChange:e=>{c(e.currentTarget.value)},children:[(0,t.jsx)(a.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(a.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(a.Clw,{}),(0,t.jsxs)(a.WVB,{children:[(0,t.jsx)(a.__J,{children:"Display properties"}),(0,t.jsx)(a.kFS,{children:(0,t.jsx)(a.zxk,{onClick:e=>{e.stopPropagation(),l()},children:"Reset default"})})]}),(0,t.jsx)(a.WVB,{children:(0,t.jsx)(a.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:d,onChange:e=>s(e)})})]})}var g=l(31925);let{useDropzone:b}=f;function N(){let{openDialog:e}=(0,r.Rh)(),{uploadFiles:s,isViewingBuckets:l}=(0,x.b)(),i=(0,g.u)(),{getRootProps:n,getInputProps:c}=b({noDrag:!0,noClick:!i,onDrop:s});return(0,t.jsxs)("div",{className:"flex gap-2",children:[l?(0,t.jsxs)(a.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,t.jsx)(o.aXP,{}),"Create bucket"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.zxk,{onClick:()=>e("filesSearch"),tip:"Search files","aria-label":"search files",children:(0,t.jsx)(o.UBs,{})}),(0,t.jsxs)(a.zxk,{"aria-label":"Upload files",...n(),tip:"Upload files",disabled:!i,children:[(0,t.jsx)("input",{...c()}),(0,t.jsx)(o.bQp,{})]}),(0,t.jsx)(a.zxk,{"aria-label":"Create directory",disabled:!i,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,t.jsx)(o.L37,{})})]}),(0,t.jsx)(p,{})]})}var y=l(3031),k=l(91426),T=l(60381);function z(){let e=(0,k.Q5)({config:{swr:{refreshInterval:(0,T.sW)(5),revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,t.jsx)(a.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize+e.data.totalUnfinishedObjectsSize,l=s?e.data.totalSectorsSize/s:0;return(0,t.jsx)(a.ua7,{side:"bottom",content:(0,t.jsxs)("div",{className:"flex justify-between gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!l&&(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,t.jsx)(a.Z0O,{className:"w-full my-1"}),(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,t.jsx)(a.xvT,{size:"12",children:(0,T.vW)(e.data.totalObjectsSize)}),(0,t.jsx)(a.xvT,{size:"12",children:(0,T.vW)(e.data.totalSectorsSize)}),!!l&&(0,t.jsxs)(a.xvT,{size:"12",font:"mono",children:[l.toFixed(1),"x"]}),(0,t.jsx)(a.Z0O,{className:"w-full my-1"}),(0,t.jsx)(a.xvT,{size:"12",children:(0,T.vW)(e.data.totalUploadedSize)})]})]}),children:(0,t.jsx)(a.xvT,{size:"12",font:"mono",children:"".concat((0,T.vW)(e.data.totalObjectsSize)).concat(l?" @ ".concat(l.toFixed(1),"x"):"")})})}var w=l(32974);function C(){var e,s;let l=(0,k.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),{displayHealth:i,label:n}=(0,w.D)({health:null===(e=l.data)||void 0===e?void 0:e.minHealth,size:1,isDirectory:!0}),r=(null===(s=l.data)||void 0===s?void 0:s.totalObjectsSize)===0;return!l.data||r?null:(0,t.jsx)(a.ua7,{align:"end",content:(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden mb-1",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)(a.xvT,{size:"12",children:n}),(0,t.jsxs)(a.xvT,{size:"12",children:[(100*i).toFixed(0),"%"]})]}),(0,t.jsx)(a.Z0O,{className:"w-full my-1.5"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"Health is calculated as the minimum health value from across all file slabs. For directories this is across all contained files."}),(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"Slab health is calculated as the number of shards with active contracts in the autopilot contract set above the minimum required shards and expressed as a percentage."})]}),(0,t.jsx)(a.Z0O,{className:"w-full my-1.5"}),(0,t.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"excellent health"}),(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"good health"}),(0,t.jsx)(a.xvT,{size:"12",color:"subtle",children:"poor health"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,t.jsxs)(a.xvT,{size:"12",color:"subtle",children:[100*w.V.excellent,"%"]}),(0,t.jsxs)(a.xvT,{size:"12",color:"subtle",children:[100*w.V.good,"% -"," ",100*w.V.excellent,"%"]}),(0,t.jsxs)(a.xvT,{size:"12",color:"subtle",children:[100*w.V.poor,"% - ",100*w.V.good,"%"]})]})]})]}),children:(0,t.jsx)(a.xvT,{size:"12",font:"mono",className:"flex",children:n})})}var S=l(16211),F=l(28924),D=l(69367);function _(){let e=(0,S.n)(),s=(0,F.s)(),l=(0,D.F)(),i=(0,c.useMemo)(()=>e.isSynced?null:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(a.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until renterd is synced."}),(0,t.jsx)(a.nvN,{size:"12",children:"The blockchain must be fully synced before uploading files. This can take a while depending on your hardware and network connection."})]},"syncStatus"),[e.isSynced]),n=(0,c.useMemo)(()=>s.active?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(a.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Autopilot is currently disabled."}),(0,t.jsx)(a.nvN,{size:"12",children:"Files and contracts will not be automatically maintained while autopilot is disabled."})]},"autopilotNotConfigured"):null,[s.active]),r=(0,c.useMemo)(()=>l.active?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(a.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,t.jsxs)(a.nvN,{size:"12",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",l.required," shards which means at least that many contracts are required."]})]},"notEnoughContracts"):null,[l]),x=(0,c.useMemo)(()=>[i,n,r].filter(Boolean),[i,n,r]);if(x.length)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.J2e,{trigger:(0,t.jsx)(a.zxk,{variant:"ghost",icon:"contrast",color:"amber",children:(0,t.jsx)(o.qdM,{})}),children:(0,t.jsx)("div",{className:"flex flex-col gap-3 px-1 py-2",children:x})}),(0,t.jsx)(a.Z0O,{variant:"vertical",className:"h-full"})]})}var O=l(40824);function P(){var e;let{isViewingABucket:s,uploadsList:l,activeExplorerMode:i}=(0,x.b)(),{pageCount:n}=(0,y.J)(),{pageCount:r}=(0,O.o)(),c=(0,k.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),o=((null===(e=c.data)||void 0===e?void 0:e.numObjects)||0)+l.length;return s?(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(a.ua7,{side:"bottom",content:"Number of files in page of current directory",children:(0,t.jsx)(a.xvT,{size:"12",font:"mono",children:("flat"===i?r:n).toLocaleString()})}),(0,t.jsx)(a.ua7,{side:"bottom",content:"Number of files across all buckets",children:(0,t.jsx)(a.xvT,{size:"12",font:"mono",children:c.data?"of ".concat(o.toLocaleString()," files"):" files"})})]}):(0,t.jsx)(a.ua7,{side:"bottom",content:"Number of files across all buckets",children:c.data?(0,t.jsxs)(a.xvT,{size:"12",font:"mono",children:[o.toLocaleString()," files"]}):(0,t.jsx)(a.xgg,{})})}function V(){return(0,t.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,t.jsx)(_,{}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(a.ua7,{side:"bottom",content:"Filtered statistics",children:(0,t.jsx)(a.xvT,{size:"12",color:"verySubtle",children:(0,t.jsx)(o.q0D,{})})}),(0,t.jsx)(P,{})]}),(0,t.jsx)(a.Z0O,{variant:"vertical",className:"h-full"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(a.ua7,{side:"bottom",content:"Global statistics",children:(0,t.jsx)(a.xvT,{size:"12",color:"verySubtle",children:(0,t.jsx)(o.RFr,{})})}),(0,t.jsx)(z,{}),(0,t.jsx)(C,{})]})]})}var W=l(94225);function M(e){let{placeholder:s}=e,{setFilter:l,removeFilter:i,fileNamePrefixFilter:n}=(0,x.b)(),[r,d]=(0,c.useState)(n),[u]=(0,W.Nr)(r,500);return(0,c.useEffect)(()=>{n!==r&&d(n)},[n]),(0,c.useEffect)(()=>{n!==u&&(u.length?l({id:"fileNamePrefix",label:"",value:u}):i("fileNamePrefix"))},[u]),(0,t.jsxs)("div",{className:"flex gap-1 flex-1",children:[(0,t.jsx)(a.nvn,{"aria-label":"filter files in current directory",variant:"ghost",focus:"none",placeholder:s||"Filter files in current directory",value:r,onChange:e=>d(e.currentTarget.value),className:"w-full !pl-0"}),!!r.length&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.zxk,{variant:"ghost",onClick:()=>d(""),children:(0,t.jsx)(o.PcV,{})}),(0,t.jsx)(a.Z0O,{variant:"vertical",className:"h-full"})]})]})}function B(){let{isViewingABucket:e,isViewingBuckets:s}=(0,x.b)(),{limit:l,marker:i,isMore:n,pageCount:r,dataState:c}=(0,y.J)();return(0,t.jsxs)("div",{className:"flex gap-3 w-full",children:[s?(0,t.jsx)("div",{className:"flex-1"}):(0,t.jsx)(M,{}),(0,t.jsx)(V,{}),e&&(0,t.jsx)(a._5,{isMore:n,marker:i,limit:l,pageTotal:r,isLoading:"loading"===c})]})}function E(e){let{multiSelect:s}=e,l=(0,c.useMemo)(()=>Object.entries(s.selection).map(e=>{let[s,l]=e;return{bucket:l.bucket.name,prefix:l.key}}),[s.selection]),{openConfirmDialog:i}=(0,r.Rh)(),n=(0,k.Lh)(),x=(0,c.useCallback)(async()=>{await (0,a.eKZ)(l.map(e=>{let{bucket:s,prefix:l}=e;return n.post({payload:{bucket:s,prefix:l}})}),{toastError:e=>{let{totalCount:s,errorCount:l,successCount:t}=e;return{title:"".concat((0,T._6)(t,"file")," deleted"),body:"Error deleting ".concat(l,"/").concat(s," total files.")}},toastSuccess:e=>{let{totalCount:s}=e;return{title:"".concat((0,T._6)(s,"file")," deleted")}},after:()=>{s.deselectAll()}})},[s,l,n]);return(0,t.jsx)(a.zxk,{"aria-label":"delete selected files",tip:"Delete selected files",onClick:()=>{i({title:"Delete files",action:"Delete",variant:"red",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to delete the"," ",(0,T._6)(s.selectionCount,"selected file"),"?"]})}),onConfirm:async()=>{x()}})},children:(0,t.jsx)(o.Jrl,{})})}function J(){let{openConfirmDialog:e}=(0,r.Rh)(),{multiSelect:s,moveSelectedFiles:l,moveSelectedFilesOperationCount:i}=(0,y.J)();return(0,t.jsx)(a.zxk,{disabled:0===i,"aria-label":"move selected files to the current directory",tip:"Move selected files to the current directory",onClick:()=>{e({title:"Move files",action:"Move",variant:"accent",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(a.nvN,{size:"14",children:["Are you sure you would like to move the"," ",s.selectionCount.toLocaleString()," selected files to the current directory?"]})}),onConfirm:async()=>{l()}})},children:(0,t.jsx)(o.jef,{})})}function Q(){let{multiSelect:e}=(0,y.J)();return(0,t.jsxs)(a.hv1,{multiSelect:e,entityWord:"file",children:[(0,t.jsx)(J,{}),(0,t.jsx)(E,{multiSelect:e})]})}function A(){let{multiSelect:e}=(0,O.o)();return(0,t.jsx)(a.hv1,{multiSelect:e,entityWord:"file",children:(0,t.jsx)(E,{multiSelect:e})})}let L=j.J;function R(){let{openDialog:e}=(0,r.Rh)(),{isViewingBuckets:s,activeExplorerMode:l}=(0,x.b)();return"directory"===l||s?{title:"Files",navTitle:null,routes:n._,sidenav:(0,t.jsx)(i.e,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)(u,{}),stats:(0,t.jsx)(B,{}),actions:(0,t.jsx)(N,{}),dockedControls:(0,t.jsx)(Q,{})}:{title:"Files",navTitle:null,routes:n._,sidenav:(0,t.jsx)(i.e,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)(h,{}),stats:(0,t.jsx)(B,{}),actions:(0,t.jsx)(N,{}),dockedControls:(0,t.jsx)(A,{})}}},28924:function(e,s,l){l.d(s,{s:function(){return i}});var t=l(91426);function i(){var e;return{active:!(null===(e=(0,t.e$)().data)||void 0===e?void 0:e.enabled)}}},70348:function(e,s,l){l.d(s,{h:function(){return D}});var t=l(52322),i=l(18575),n=l(3031),r=l(28420),c=l(4300),a=l(28924),o=l(69367);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}var d=l(95810);function u(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Hb6,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,t.jsx)(i.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function h(){let{activeBucketName:e,activeDirectory:s,setActiveDirectory:l}=(0,d.b)();return s.length>1?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The current directory does not contain any files yet, drag and drop files or click here to start uploading."}),(0,t.jsx)(i.zxk,{onClick:e=>{e.stopPropagation(),l(e=>e.slice(0,-1))},children:"Back"})]})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,t.jsx)(i.EKh,{children:e})," bucket does not contain any files, drag and drop files or click here to start uploading."]}),(0,t.jsx)(i.Qjf,{href:c._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}var j=l(82285);function f(){let{openDialog:e}=(0,j.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.fi8,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Create a bucket to get started. Buckets are distinct storage areas that you can use to organize your files."}),(0,t.jsxs)(i.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,t.jsx)(r.aXP,{}),"Create bucket"]})]})]})}function m(){let{isViewingRootOfABucket:e,isViewingBuckets:s}=(0,d.b)(),{dataState:l}=(0,n.J)(),j=(0,a.s)(),m=(0,o.F)();return"noneMatchingFilters"===l?(0,t.jsx)(u,{}):"error"===l?(0,t.jsx)(x,{}):e&&"noneYet"===l&&j.active?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure and enable your settings. Once enabled, ",(0,t.jsx)(i.EKh,{children:"renterd"})," will find contracts with hosts based on the settings. ",(0,t.jsx)(i.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,t.jsx)(i.Qjf,{variant:"accent",href:c._.config.index,children:"Configure"})]})]}):e&&"noneYet"===l&&m.active?(0,t.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",m.required," shards which means at least that many contracts are required."]}),(0,t.jsxs)(i.xvT,{size:"30",className:"text-center max-w-[500px]",children:[m.count,"/",m.required]})]})]}):"noneYet"===l?s?(0,t.jsx)(f,{}):(0,t.jsx)(h,{}):null}var v=l(31925),p=l(83548),g=l(60381);function b(){let{uploadFiles:e,sortField:s,sortDirection:l,sortableColumns:r,toggleSort:c,isViewingBuckets:a}=(0,d.b)(),{datasetPage:o,pageCount:x,dataState:u,cellContext:h,onDragEnd:j,onDragOver:f,onDragStart:b,onDragCancel:N,onDragMove:y,draggingObjects:k}=(0,n.J)(),T=(0,v.u)();return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(i.fhJ,{testId:"filesDropzone",onDrop:e,noClick:!T||x>0,noDrag:!T,children:(0,t.jsx)(i.iA_,{testId:a?"bucketsTable":"filesTable",isLoading:"loading"===u,emptyState:(0,t.jsx)(m,{}),pageSize:10,data:o,context:h,columns:p.z,sortableColumns:r,sortField:s,sortDirection:l,toggleSort:c,rowSize:"dense",onDragStart:b,onDragOver:f,onDragEnd:j,onDragCancel:N,onDragMove:y,draggingDatums:k,draggingMultipleLabel:e=>"move ".concat((0,g._6)(e,"file"))})})})}function N(){return(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(b,{})})}function y(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function k(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Hb6,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,t.jsx)(i.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function T(){let{activeBucketName:e}=(0,d.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,t.jsx)(i.EKh,{children:e})," bucket does not contain any files."]}),(0,t.jsx)(i.Qjf,{href:c._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}var z=l(40824);function w(){let{dataState:e}=(0,z.o)();return"noneMatchingFilters"===e?(0,t.jsx)(k,{}):"error"===e?(0,t.jsx)(y,{}):"noneYet"===e?(0,t.jsx)(T,{}):null}var C=l(16830);function S(){let{sortableColumns:e,toggleSort:s}=(0,d.b)(),{datasetPage:l,dataState:n,cellContext:r,sortField:c,sortDirection:a}=(0,z.o)();return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(i.iA_,{testId:"filesTable",isLoading:"loading"===n,emptyState:(0,t.jsx)(w,{}),pageSize:10,data:l,context:r,columns:C.z,sortableColumns:e,sortField:c,sortDirection:a,toggleSort:s,rowSize:"dense"})})}function F(){return(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(S,{})})}function D(){let{isViewingBuckets:e,activeExplorerMode:s}=(0,d.b)();return"directory"===s||e?(0,t.jsx)(N,{}):(0,t.jsx)(F,{})}},31925:function(e,s,l){l.d(s,{u:function(){return r}});var t=l(16211),i=l(95810),n=l(69367);function r(){let{isViewingABucket:e}=(0,i.b)(),s=(0,t.n)(),l=(0,n.F)();return e&&!l.active&&s.isSynced}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/953-1c073c0c2fe0b283.js b/renterd/assets/_next/static/chunks/953-1c073c0c2fe0b283.js new file mode 100644 index 000000000..fc78f1edb --- /dev/null +++ b/renterd/assets/_next/static/chunks/953-1c073c0c2fe0b283.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[953],{19634:function(e,s,l){l.d(s,{C:function(){return c}});var t=l(52322),i=l(70150),n=l(28420),r=l(8068);function a(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:l,isViewingUploads:a,navigateToUploads:c}=(0,r.b)();return(0,t.jsxs)(i.h_2,{trigger:(0,t.jsx)(i.zxk,{"aria-label":"change explorer mode",tipSide:"bottom",tip:a?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:a?(0,t.jsx)(n.bQp,{}):"directory"===e?(0,t.jsx)(n.Qbr,{}):(0,t.jsx)(n.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.Xiv,{onSelect:s,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(n.Qbr,{})}),"Directory"]}),(0,t.jsxs)(i.Xiv,{onSelect:l,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(n.nDH,{})}),"All files"]}),(0,t.jsxs)(i.Xiv,{onSelect:c,children:[(0,t.jsx)(i.KpP,{children:(0,t.jsx)(n.bQp,{})}),"Uploads"]})]})}function c(){let{isViewingBuckets:e}=(0,r.b)();return e?(0,t.jsx)(i.ua7,{content:"Viewing all buckets",children:(0,t.jsx)("div",{children:(0,t.jsx)(i.zxk,{state:"waiting",children:(0,t.jsx)(n.fi8,{size:16})})})}):(0,t.jsx)(a,{})}},47209:function(e,s,l){l.d(s,{A:function(){return R},r:function(){return Y}});var t=l(52322),i=l(70825),n=l(4300),r=l(82285),a=l(2784),c=l(70150),o=l(28420),x=l(8068),d=l(19634);function u(){let{activeDirectory:e,setActiveDirectory:s}=(0,x.b)(),l=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=l.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,t.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,t.jsx)(d.C,{}),(0,t.jsx)(c.xrM,{children:(0,t.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,t.jsx)(c.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),e.length>0&&(0,t.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),e.map((e,l)=>(0,t.jsxs)(a.Fragment,{children:[l>0&&(0,t.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(c.xvT,{onClick:()=>s(e=>e.slice(0,l+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+l)),(0,t.jsx)("div",{ref:l})]})})]})}function h(){let{activeBucketName:e,setActiveDirectory:s}=(0,x.b)();return(0,t.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,t.jsx)(d.C,{}),(0,t.jsx)(c.xrM,{children:(0,t.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,t.jsx)(c.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,t.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(c.xvT,{onClick:()=>null,size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,t.jsx)(c.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,t.jsx)(o.F3j,{})}),(0,t.jsx)(c.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"All files"})]})})]})}var j=l(31392),f=l(74424),m=l(89421),v=l(83894);function g(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:l,sortField:i,setSortField:n,sortDirection:r,setSortDirection:a,visibleColumnIds:d}=(0,x.b)();return(0,t.jsxs)(c.J2e,{trigger:(0,t.jsxs)(c.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(o.hiv,{}),"View",(0,t.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(c.WVB,{children:[(0,t.jsx)(c.__J,{children:"Order by"}),(0,t.jsx)(c.kFS,{children:(0,t.jsx)(c.PhF,{value:i,onChange:e=>{n(e.currentTarget.value)},children:Object.entries((0,v.Z)(m.Fo,"category")).map(e=>{let[s,l]=e;return(0,t.jsx)("optgroup",{label:s,children:l.map(e=>(0,t.jsx)(c.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,t.jsxs)(c.WVB,{children:[(0,t.jsx)(c.__J,{children:"Direction"}),(0,t.jsx)(c.kFS,{children:(0,t.jsxs)(c.PhF,{value:r,onClick:e=>{e.stopPropagation()},onChange:e=>{a(e.currentTarget.value)},children:[(0,t.jsx)(c.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(c.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(c.Clw,{}),(0,t.jsxs)(c.WVB,{children:[(0,t.jsx)(c.__J,{children:"Display properties"}),(0,t.jsx)(c.kFS,{children:(0,t.jsx)(c.zxk,{onClick:e=>{e.stopPropagation(),l()},children:"Reset default"})})]}),(0,t.jsx)(c.WVB,{children:(0,t.jsx)(c.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:d,onChange:e=>s(e)})})]})}var p=l(31925);let{useDropzone:b}=f;function N(){let{openDialog:e}=(0,r.Rh)(),{uploadFiles:s,isViewingBuckets:l}=(0,x.b)(),i=(0,p.u)(),{getRootProps:n,getInputProps:a}=b({noDrag:!0,noClick:!i,onDrop:s});return(0,t.jsxs)("div",{className:"flex gap-2",children:[l?(0,t.jsxs)(c.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,t.jsx)(o.aXP,{}),"Create bucket"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.zxk,{onClick:()=>e("filesSearch"),tip:"Search files","aria-label":"search files",children:(0,t.jsx)(o.UBs,{})}),(0,t.jsxs)(c.zxk,{"aria-label":"Upload files",...n(),tip:"Upload files",disabled:!i,children:[(0,t.jsx)("input",{...a()}),(0,t.jsx)(o.bQp,{})]}),(0,t.jsx)(c.zxk,{"aria-label":"Create directory",disabled:!i,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,t.jsx)(o.L37,{})})]}),(0,t.jsx)(g,{})]})}var k=l(3031),y=l(91426),T=l(60381);function z(){let e=(0,y.Q5)({config:{swr:{refreshInterval:(0,T.sW)(5),revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,t.jsx)(c.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize+e.data.totalUnfinishedObjectsSize,l=s?e.data.totalSectorsSize/s:0;return(0,t.jsx)(c.ua7,{side:"bottom",content:(0,t.jsxs)("div",{className:"flex justify-between gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!l&&(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,t.jsx)(c.Z0O,{className:"w-full my-1"}),(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,t.jsx)(c.xvT,{size:"12",children:(0,T.vW)(e.data.totalObjectsSize)}),(0,t.jsx)(c.xvT,{size:"12",children:(0,T.vW)(e.data.totalSectorsSize)}),!!l&&(0,t.jsxs)(c.xvT,{size:"12",font:"mono",children:[l.toFixed(1),"x"]}),(0,t.jsx)(c.Z0O,{className:"w-full my-1"}),(0,t.jsx)(c.xvT,{size:"12",children:(0,T.vW)(e.data.totalUploadedSize)})]})]}),children:(0,t.jsx)(c.xvT,{size:"12",font:"mono",children:"".concat((0,T.vW)(e.data.totalObjectsSize)).concat(l?" @ ".concat(l.toFixed(1),"x"):"")})})}var w=l(32974);function C(){var e,s;let l=(0,y.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),{displayHealth:i,label:n}=(0,w.D)({health:null===(e=l.data)||void 0===e?void 0:e.minHealth,size:1,isDirectory:!0}),r=(null===(s=l.data)||void 0===s?void 0:s.totalObjectsSize)===0;return!l.data||r?null:(0,t.jsx)(c.ua7,{align:"end",content:(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden mb-1",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,t.jsx)(c.xvT,{size:"12",children:n}),(0,t.jsxs)(c.xvT,{size:"12",children:[(100*i).toFixed(0),"%"]})]}),(0,t.jsx)(c.Z0O,{className:"w-full my-1.5"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"Health is calculated as the minimum health value from across all file slabs. For directories this is across all contained files."}),(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"Slab health is calculated as the number of shards with active contracts in the autopilot contract set above the minimum required shards and expressed as a percentage."})]}),(0,t.jsx)(c.Z0O,{className:"w-full my-1.5"}),(0,t.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"excellent health"}),(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"good health"}),(0,t.jsx)(c.xvT,{size:"12",color:"subtle",children:"poor health"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,t.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*w.V.excellent,"%"]}),(0,t.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*w.V.good,"% -"," ",100*w.V.excellent,"%"]}),(0,t.jsxs)(c.xvT,{size:"12",color:"subtle",children:[100*w.V.poor,"% - ",100*w.V.good,"%"]})]})]})]}),children:(0,t.jsx)(c.xvT,{size:"12",font:"mono",className:"flex",children:n})})}var S=l(16211),F=l(28924),D=l(69367);function P(){let e=(0,S.n)(),s=(0,F.s)(),l=(0,D.F)(),i=(0,a.useMemo)(()=>e.isSynced?null:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until renterd is synced."}),(0,t.jsx)(c.nvN,{size:"12",children:"The blockchain must be fully synced before uploading files. This can take a while depending on your hardware and network connection."})]},"syncStatus"),[e.isSynced]),n=(0,a.useMemo)(()=>s.active?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Autopilot is currently disabled."}),(0,t.jsx)(c.nvN,{size:"12",children:"Files and contracts will not be automatically maintained while autopilot is disabled."})]},"autopilotNotConfigured"):null,[s.active]),r=(0,a.useMemo)(()=>l.active?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(c.xvT,{size:"12",font:"mono",weight:"medium",color:"amber",children:"Uploads are disabled until settings are configured."}),(0,t.jsxs)(c.nvN,{size:"12",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",l.required," shards which means at least that many contracts are required."]})]},"notEnoughContracts"):null,[l]),x=(0,a.useMemo)(()=>[i,n,r].filter(Boolean),[i,n,r]);if(x.length)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.J2e,{trigger:(0,t.jsx)(c.zxk,{variant:"ghost",icon:"contrast",color:"amber",children:(0,t.jsx)(o.qdM,{})}),children:(0,t.jsx)("div",{className:"flex flex-col gap-3 px-1 py-2",children:x})}),(0,t.jsx)(c.Z0O,{variant:"vertical",className:"h-full"})]})}var _=l(40824);function O(){var e;let{isViewingABucket:s,uploadsList:l,activeExplorerMode:i}=(0,x.b)(),{datasetPageTotal:n}=(0,k.J)(),{datasetPageTotal:r}=(0,_.o)(),a=(0,y.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}}),o=((null===(e=a.data)||void 0===e?void 0:e.numObjects)||0)+l.length;return s?(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(c.ua7,{side:"bottom",content:"Number of files in page of current directory",children:(0,t.jsx)(c.xvT,{size:"12",font:"mono",children:("flat"===i?r:n).toLocaleString()})}),(0,t.jsx)(c.ua7,{side:"bottom",content:"Number of files across all buckets",children:(0,t.jsx)(c.xvT,{size:"12",font:"mono",children:a.data?"of ".concat(o.toLocaleString()," files"):" files"})})]}):(0,t.jsx)(c.ua7,{side:"bottom",content:"Number of files across all buckets",children:a.data?(0,t.jsxs)(c.xvT,{size:"12",font:"mono",children:[o.toLocaleString()," files"]}):(0,t.jsx)(c.xgg,{})})}function M(){return(0,t.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,t.jsx)(P,{}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(c.ua7,{side:"bottom",content:"Filtered statistics",children:(0,t.jsx)(c.xvT,{size:"12",color:"verySubtle",children:(0,t.jsx)(o.q0D,{})})}),(0,t.jsx)(O,{})]}),(0,t.jsx)(c.Z0O,{variant:"vertical",className:"h-full"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(c.ua7,{side:"bottom",content:"Global statistics",children:(0,t.jsx)(c.xvT,{size:"12",color:"verySubtle",children:(0,t.jsx)(o.RFr,{})})}),(0,t.jsx)(z,{}),(0,t.jsx)(C,{})]})]})}var V=l(94225);function W(e){let{placeholder:s}=e,{setFilter:l,removeFilter:i,fileNamePrefixFilter:n}=(0,x.b)(),[r,d]=(0,a.useState)(n),[u]=(0,V.Nr)(r,500);return(0,a.useEffect)(()=>{n!==r&&d(n)},[n]),(0,a.useEffect)(()=>{n!==u&&(u.length?l({id:"fileNamePrefix",label:"",value:u}):i("fileNamePrefix"))},[u]),(0,t.jsxs)("div",{className:"flex gap-1 flex-1",children:[(0,t.jsx)(c.nvn,{"aria-label":"filter files in current directory",variant:"ghost",focus:"none",placeholder:s||"Filter files in current directory",value:r,onChange:e=>d(e.currentTarget.value),className:"w-full !pl-0"}),!!r.length&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.zxk,{variant:"ghost",onClick:()=>d(""),children:(0,t.jsx)(o.PcV,{})}),(0,t.jsx)(c.Z0O,{variant:"vertical",className:"h-full"})]})]})}function B(){let{isViewingABucket:e,isViewingBuckets:s}=(0,x.b)(),{limit:l,marker:i,nextMarker:n,isMore:r,datasetPageTotal:a,datasetState:o}=(0,k.J)();return(0,t.jsxs)("div",{className:"flex gap-3 w-full",children:[s?(0,t.jsx)("div",{className:"flex-1"}):(0,t.jsx)(W,{}),(0,t.jsx)(M,{}),e&&(0,t.jsx)(c._5,{isMore:r,marker:i,nextMarker:n,limit:l,pageTotal:a,isLoading:"loading"===o})]})}function E(){let{limit:e,datasetPageTotal:s,datasetState:l,marker:i,nextMarker:n,isMore:r}=(0,_.o)();return(0,t.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,t.jsx)(W,{placeholder:"Filter files in current bucket"}),(0,t.jsx)(M,{}),(0,t.jsx)(c._5,{marker:i,nextMarker:n,isMore:r,limit:e,pageTotal:s,isLoading:"loading"===l})]})}function J(e){let{multiSelect:s}=e,l=(0,a.useMemo)(()=>Object.entries(s.selection).map(e=>{let[s,l]=e;return{bucket:l.bucket.name,prefix:l.key}}),[s.selection]),{openConfirmDialog:i}=(0,r.Rh)(),n=(0,y.Lh)(),x=(0,a.useCallback)(async()=>{await (0,c.eKZ)(l.map(e=>{let{bucket:s,prefix:l}=e;return n.post({payload:{bucket:s,prefix:l}})}),{toastError:e=>{let{totalCount:s,errorCount:l,successCount:t}=e;return{title:"".concat((0,T._6)(t,"file")," deleted"),body:"Error deleting ".concat(l,"/").concat(s," total files.")}},toastSuccess:e=>{let{totalCount:s}=e;return{title:"".concat((0,T._6)(s,"file")," deleted")}},after:()=>{s.deselectAll()}})},[s,l,n]);return(0,t.jsx)(c.zxk,{"aria-label":"delete selected files",tip:"Delete selected files",onClick:()=>{i({title:"Delete files",action:"Delete",variant:"red",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(c.nvN,{size:"14",children:["Are you sure you would like to delete the"," ",(0,T._6)(s.selectionCount,"selected file"),"?"]})}),onConfirm:async()=>{x()}})},children:(0,t.jsx)(o.Jrl,{})})}function L(){let{openConfirmDialog:e}=(0,r.Rh)(),{multiSelect:s,moveSelectedFiles:l,moveSelectedFilesOperationCount:i}=(0,k.J)();return(0,t.jsx)(c.zxk,{disabled:0===i,"aria-label":"move selected files to the current directory",tip:"Move selected files to the current directory",onClick:()=>{e({title:"Move files",action:"Move",variant:"accent",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(c.nvN,{size:"14",children:["Are you sure you would like to move the"," ",s.selectionCount.toLocaleString()," selected files to the current directory?"]})}),onConfirm:async()=>{l()}})},children:(0,t.jsx)(o.jef,{})})}function Q(){let{multiSelect:e}=(0,k.J)();return(0,t.jsxs)(c.hv1,{multiSelect:e,entityWord:"file",children:[(0,t.jsx)(L,{}),(0,t.jsx)(J,{multiSelect:e})]})}function A(){let{multiSelect:e}=(0,_.o)();return(0,t.jsx)(c.hv1,{multiSelect:e,entityWord:"file",children:(0,t.jsx)(J,{multiSelect:e})})}let R=j.J;function Y(){let{openDialog:e}=(0,r.Rh)(),{isViewingBuckets:s,activeExplorerMode:l}=(0,x.b)();return"directory"===l||s?{title:"Files",navTitle:null,routes:n._,sidenav:(0,t.jsx)(i.e,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)(u,{}),stats:(0,t.jsx)(B,{}),actions:(0,t.jsx)(N,{}),dockedControls:(0,t.jsx)(Q,{})}:{title:"Files",navTitle:null,routes:n._,sidenav:(0,t.jsx)(i.e,{}),openSettings:()=>e("settings"),nav:(0,t.jsx)(h,{}),stats:(0,t.jsx)(E,{}),actions:(0,t.jsx)(N,{}),dockedControls:(0,t.jsx)(A,{})}}},28924:function(e,s,l){l.d(s,{s:function(){return i}});var t=l(91426);function i(){var e;return{active:!(null===(e=(0,t.e$)().data)||void 0===e?void 0:e.enabled)}}},70348:function(e,s,l){l.d(s,{h:function(){return S}});var t=l(52322),i=l(70150),n=l(3031),r=l(28420),a=l(4300),c=l(28924),o=l(69367);function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}var d=l(8068);function u(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Hb6,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,t.jsx)(i.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function h(){let{activeBucketName:e,activeDirectory:s,setActiveDirectory:l}=(0,d.b)();return s.length>1?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The current directory does not contain any files yet, drag and drop files or click here to start uploading."}),(0,t.jsx)(i.zxk,{onClick:e=>{e.stopPropagation(),l(e=>e.slice(0,-1))},children:"Back"})]})]}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,t.jsx)(i.EKh,{children:e})," bucket does not contain any files, drag and drop files or click here to start uploading."]}),(0,t.jsx)(i.Qjf,{href:a._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}var j=l(82285);function f(){let{openDialog:e}=(0,j.Rh)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.fi8,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Create a bucket to get started. Buckets are distinct storage areas that you can use to organize your files."}),(0,t.jsxs)(i.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,t.jsx)(r.aXP,{}),"Create bucket"]})]})]})}function m(){let{isViewingRootOfABucket:e,isViewingBuckets:s}=(0,d.b)(),{datasetState:l}=(0,n.J)(),j=(0,c.s)(),m=(0,o.F)();return"noneOnPage"===l?(0,t.jsx)(i.xJ6,{}):"noneMatchingFilters"===l?(0,t.jsx)(u,{}):"error"===l?(0,t.jsx)(x,{}):e&&"noneYet"===l&&j.active?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure and enable your settings. Once enabled, ",(0,t.jsx)(i.EKh,{children:"renterd"})," will find contracts with hosts based on the settings. ",(0,t.jsx)(i.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,t.jsx)(i.Qjf,{variant:"accent",href:a._.config.index,children:"Configure"})]})]}):e&&"noneYet"===l&&m.active?(0,t.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",m.required," shards which means at least that many contracts are required."]}),(0,t.jsxs)(i.xvT,{size:"30",className:"text-center max-w-[500px]",children:[m.count,"/",m.required]})]})]}):"noneYet"===l?s?(0,t.jsx)(f,{}):(0,t.jsx)(h,{}):null}var v=l(31925),g=l(60381);function p(){let{uploadFiles:e,sortField:s,sortDirection:l,sortableColumns:r,toggleSort:a,isViewingBuckets:c,visibleColumns:o}=(0,d.b)(),{datasetPage:x,datasetPageTotal:u,datasetState:h,cellContext:j,onDragEnd:f,onDragOver:p,onDragStart:b,onDragCancel:N,onDragMove:k,draggingObjects:y}=(0,n.J)(),T=(0,v.u)();return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(i.fhJ,{testId:"filesDropzone",onDrop:e,noClick:!T||u>0,noDrag:!T,children:(0,t.jsx)(i.iA_,{testId:c?"bucketsTable":"filesTable",isLoading:"loading"===h,emptyState:(0,t.jsx)(m,{}),pageSize:10,data:x,context:j,columns:o,sortableColumns:r,sortField:s,sortDirection:l,toggleSort:a,rowSize:"dense",onDragStart:b,onDragOver:p,onDragEnd:f,onDragCancel:N,onDragMove:k,draggingDatums:y,draggingMultipleLabel:e=>"move ".concat((0,g._6)(e,"file"))})})})}function b(){return(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(p,{})})}function N(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function k(){let{filters:e,resetFilters:s}=(0,d.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Hb6,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."}),!!e.length&&(0,t.jsx)(i.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}function y(){let{activeBucketName:e}=(0,d.b)();return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(r.Y9T,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,t.jsx)(i.EKh,{children:e})," bucket does not contain any files."]}),(0,t.jsx)(i.Qjf,{href:a._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}var T=l(40824);function z(){let{datasetState:e}=(0,T.o)();return"noneOnPage"===e?(0,t.jsx)(i.xJ6,{}):"noneMatchingFilters"===e?(0,t.jsx)(k,{}):"error"===e?(0,t.jsx)(N,{}):"noneYet"===e?(0,t.jsx)(y,{}):null}function w(){let{sortableColumns:e,visibleColumns:s,toggleSort:l}=(0,d.b)(),{datasetPage:n,datasetState:r,cellContext:a,sortField:c,sortDirection:o}=(0,T.o)();return(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(i.iA_,{testId:"filesTable",isLoading:"loading"===r,emptyState:(0,t.jsx)(z,{}),pageSize:10,data:n,context:a,columns:s,sortableColumns:e,sortField:c,sortDirection:o,toggleSort:l,rowSize:"dense"})})}function C(){return(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(w,{})})}function S(){let{isViewingBuckets:e,activeExplorerMode:s}=(0,d.b)();return"directory"===s||e?(0,t.jsx)(b,{}):(0,t.jsx)(C,{})}},31925:function(e,s,l){l.d(s,{u:function(){return r}});var t=l(16211),i=l(8068),n=l(69367);function r(){let{isViewingABucket:e}=(0,i.b)(),s=(0,t.n)(),l=(0,n.F)();return e&&!l.active&&s.isSynced}}}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/_app-ada9bb6adb847757.js b/renterd/assets/_next/static/chunks/pages/_app-a83fdac8cf167dba.js similarity index 58% rename from renterd/assets/_next/static/chunks/pages/_app-ada9bb6adb847757.js rename to renterd/assets/_next/static/chunks/pages/_app-a83fdac8cf167dba.js index 384eead82..5589f1f4a 100644 --- a/renterd/assets/_next/static/chunks/pages/_app-ada9bb6adb847757.js +++ b/renterd/assets/_next/static/chunks/pages/_app-a83fdac8cf167dba.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{36662: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,{I:function(){return y},_:function(){return m},a:function(){return p}});var o=["width","height","viewBox"],s=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"},u=n(13980),c=n.n(u),d=n(2784);function f(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 h(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 g=["className","children","tabIndex"],v=["tabindex"],y=d.forwardRef(function(e,t){var n=e.className,r=e.children,u=e.tabIndex,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,u=void 0===r?"0 0 ".concat(t," ").concat(n):r,c=a(e,o),d=c.tabindex,f=a(c,s),h=i(i(i({},l),f),{},{width:t,height:n,viewBox:u});return h["aria-label"]||h["aria-labelledby"]||h.title?(h.role="img",null!=d&&(h.focusable="true",h.tabindex=d)):h["aria-hidden"]=!0,h}(h(h({},m(e,g)),{},{tabindex:u})),f=c.tabindex,p=m(c,v);return n&&(p.className=n),null!=f&&(p.tabIndex=f),t&&(p.ref=t),d.createElement("svg",p,r)});y.displayName="Icon",y.propTypes={"aria-hidden":c().string,"aria-label":c().string,"aria-labelledby":c().string,children:c().node,className:c().string,height:c().oneOfType([c().number,c().string]),preserveAspectRatio:c().string,tabIndex:c().string,viewBox:c().string,width:c().oneOfType([c().number,c().string]),xmlns:c().string},y.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},63131:function(e,t,n){"use strict";n.d(t,{Gu6:function(){return D},I$H:function(){return A},JCW:function(){return O},KTM:function(){return N},gFQ:function(){return T},pHg:function(){return P},qdM:function(){return R},xVB:function(){return M}});var r,i,a,o,s,l,u,c,d,f,h,p,m,g,v,y=n(36662),b=n(2784),x=["children"],w=["children"],j=["children"],k=["children"],E=["children"],_=["children"],C=["children"],S=["children"],O=b.forwardRef(function(e,t){var n=e.children,i=(0,y._)(e,x);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=b.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)}),M=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,w);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=b.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"})),a||(a=b.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)}),P=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,j);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=b.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"})),s||(s=b.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)}),A=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,k);return b.createElement(y.I,(0,y.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=b.createElement("path",{d:"M22 17H24V19H22z"})),u||(u=b.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)}),T=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,E);return b.createElement(y.I,(0,y.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=b.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"})),d||(d=b.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),N=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,_);return b.createElement(y.I,(0,y.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=b.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"})),h||(h=b.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),R=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,C);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=b.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"})),m||(m=b.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)}),D=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,S);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),g||(g=b.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"})),v||(v=b.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)})},44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return $},ResizeObserverEntry:function(){return C},ResizeObserverSize:function(){return c}});var r,i,a,o=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,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/,b=/^tb|vertical/,x=/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=!x&&"border-box"===n.boxSizing,a=b.test(n.writingMode||""),o=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),g=r?0:w(n.borderTopWidth),E=r?0:w(n.borderRightWidth),_=r?0:w(n.borderBottomWidth),C=r?0:w(n.borderLeftWidth),S=m+c,O=l+p,M=C+E,P=g+_,A=s?e.offsetHeight-P-e.clientHeight:0,T=o?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?S+M:0)-T,R=r?r.height:w(n.height)-(i?O+P:0)-A,D=N+S+T+M,L=R+O+A+P,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,l,N,R)});return v.set(e,z),z},_=function(e,t,n){var r=E(e,n),a=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;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])},S=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new C(t.target),i=S(t.target);r.push(n),t.lastReportedSize=_(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},P=function(){var e=0;for(M(0);o.some(function(e){return e.activeTargets.length>0});)M(e=O());return o.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],T=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),a=function(){n.textContent=""+(t?t--:t++)}}A.push(e),a()},N=function(e){T(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=P()}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}()),I=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=_(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}(),V=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},U=new WeakMap,H=function(e,t){for(var n=0;nH(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new B(t,n&&n.box)),I(1),Z.schedule())},e.unobserve=function(e,t){var n=U.get(e),r=H(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),I(-1))},e.disconnect=function(e){var t=this,n=U.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),$=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 s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][o])||a,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][o])||a,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),a=n(28316),o=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:a,...s}=e,l=a?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,a.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},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),l=o.find(u);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),n)});o.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],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});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return 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),s=(0,i.W)(t);return(0,r.useEffect)(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:a,u=(0,i.W)(n);return[l,(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[s,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?s.default:t,p=e.axisClassName,g=e.hideAxisLine,v=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,j=void 0===w?10:w,k=e.orientation,E=void 0===k?d.default.bottom:k,_=e.rangePadding,C=void 0===_?0:_,S=e.scale,O=e.tickFormat,M=e.tickLength,P=void 0===M?8:M,A=e.tickValues,T=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!=O?O:(0,u.default)(S),D=E===d.default.left,L=E===d.default.top,z=L||E===d.default.bottom,F=(0,l.default)(S),Z=D||L?-1:1,I=S.range(),B=(0,f.default)(C),V=(0,c.default)({x:Number(I[0])+.5-B.start,y:0},z),U=(0,c.default)({x:Number(I[I.length-1])+.5+B.end,y:0},z),H=(null!=A?A:(0,o.getTicks)(S,j)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=H.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:P*Z},z),formattedValue:R(t,n,H)}});return r.default.createElement(a.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===x?0:x},n(m({},N,{axisFromPoint:V,axisToPoint:U,hideAxisLine:void 0!==g&&g,hideTicks:void 0!==v&&v,hideZero:b,horizontal:z,numTicks:j,orientation:E,rangePadding:C,scale:S,tickFormat:R,tickLength:P,tickPosition:F,tickSign:Z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),a=n(71602),o=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:o.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:o.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:o.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:o.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(a=n.xMin)?a:-1/0,null!=(o=n.xMax)?o:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l: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 s}});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),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function a(e){return!!e&&"createSVGPoint"in e}function o(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return o},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return a},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=k?k:(0,u.getTicks)(r,void 0===x?10:x),S=(null!=j?j:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+S;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,strokeDasharray:y,style:w},_))}))}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)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),S=(null!=k?k:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+S;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,strokeDasharray:y,style:j},_))}))}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),s=n.n(o),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return a.createElement("g",u({ref:c,className:s()("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,s=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),l=(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({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(void 0);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=l(n(81401)),a=l(n(65154)),o=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),a=s(n(55727)),o=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,a.useTransition)(n,u({},(0,o.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,o=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(a.animated.line,u({key:h,x1:r,x2:o,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},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:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),a=s(n(55727)),o=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),v=(0,a.useRef)(null),y=(0,a.useRef)(0),b=(0,a.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[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})},l,{leading:m})},[l,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({},x,{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),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,a.Z)(e);case"sqrt":return(0,o.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return _.Z},createScale:function(){return x.Z},getTicks:function(){return C.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.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 b.Z},scaleSymlog:function(){return v.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return S.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),a=n(8597),o=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((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),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},k=n(40668);function E(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var _=n(28142),C=n(71220),S=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return C},Z:function(){return O}});var r=n(88751),i=n(87286),a=n(43780),o=n(77636),s=n(78978),l={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:s.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),b=n(94758),x=n(97631),w=n(2908),j=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},E={day:g.Z,hour:v.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},_=n(74672),C=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],S={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,s),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",l({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}),S=(0,o.ve)({startAngle:m,endAngle:g,padAngle:v,value:w,sort:b,sortValues:x}),O=S(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:C,pie:S})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:a()("visx-pie-arc",t),d:C(e)||"",fill:null==E||"string"==typeof E?E:E(e)},_)),null==l?void 0:l(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:s,curve:l});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 b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),v=(0,o.SO)({x:n,x0:i,x1:s,y:l,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",x({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),_=(0,o.kn)({keys:s,value:v,order:y,offset:b}),C=(0,o.SO)({x:f,x0:h,x1:p,y0:m,y1:g,curve:u,defined:d}),S=_(l);return w?r.createElement(r.Fragment,null,w({stacks:S,path:C,stack:_})):r.createElement(c.Z,{top:n,left:i},S.map(function(e,n){return r.createElement("path",E({className:a()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:C(e)||"",fill:null==x?void 0:x(e.key,n)},j))}))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function S(){return(S=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({className:t,top:n,left:i,keys:o,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:g,offset:v,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",S({className:a()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),P=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var T=["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,T),v=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width: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(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},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=A(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return g?r.createElement(r.Fragment,null,g(b)):r.createElement(c.Z,{className:a()("visx-bar-group-horizontal",n),top:i,left:o},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},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 I(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 V(e){return null==e?void 0:e.target}function U(e){return null==e?void 0:e[0]}function H(e){return null==e?void 0:e[1]}var W=n(26078),$=n(44081),q=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,$.ZP)(y)),b&&j.offset((0,q.ZP)(b));var k=j(t),E=A(h),_=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(s(t.data)):Math.max((h(s(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 x?r.createElement(r.Fragment,null,x(_)):r.createElement(c.Z,{className:a()("visx-bar-stack",n),top:i,left:o},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),j=(0,F.Z)();g&&j.keys(g),v&&(0,W.Z)(j.value,v),y&&j.order((0,$.ZP)(y)),b&&j.offset((0,q.ZP)(b));var k=j(t),E=A(p),_=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(s(t.data)):Math.max((p(s(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 x?r.createElement(r.Fragment,null,x(_)):r.createElement(c.Z,{className:a()("visx-bar-stack-horizontal",n),top:i,left:o},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?B:c,target:void 0===d?V:d,x:void 0===l?I:l,y:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref: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 es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eo),h=s||el({source:void 0===c?B:c,target:void 0===d?V:d,x:void 0===l?Z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref: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=s||ef({source:void 0===c?B:c,target:void 0===d?V:d,angle:void 0===l?Z:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref: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=s||ev({source:void 0===d?B:d,target:void 0===f?V:f,x:void 0===u?I:u,y:void 0===c?Z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eg({ref:o,className:a()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?B:d,target:void 0===f?V:f,x:void 0===u?Z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({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=s||e_({source:void 0===d?B:d,target:void 0===f?V:f,x:void 0===u?Z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:o,className:a()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eS=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eS),h=s||eM({source:void 0===c?B:c,target:void 0===d?V:d,x:void 0===l?I:l,y:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:a()("visx-link visx-link-horizontal-line",t),d:h(o)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=o||eN({source:void 0===u?B:u,target:void 0===c?V:c,x:void 0===s?Z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eT({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?V:c,x:void 0===s?Z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className: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 eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eZ),p=o||eB({source:void 0===c?B:c,target:void 0===d?V:d,x:void 0===l?I:l,y:void 0===u?Z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eI({ref:n,className:a()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eU=["className","innerRef","data","path","percent","x","y","source","target","children"];function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eU),p=o||eW({source:void 0===c?B:c,target:void 0===d?V:d,x:void 0===l?Z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eH({ref:n,className:a()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var eq=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eG(e){var t=e.className,n=e.innerRef,i=e.data,o=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,eq),h=o||eY({source:void 0===u?B:u,target:void 0===c?V:c,x:void 0===s?Z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:a()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===o?0:o}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eJ({ref:u,className:a()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className: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<=l;m+=o){for(var g=s.getPointAtLength(m),v=g[i];p=w[E+1];)E+=1;c[E].push(C)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);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),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),w=(0,s.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),b)?r.createElement(r.Fragment,null,b({path:w})):r.createElement("path",u({ref:y,className:a()("visx-area-closed",g),d:w(void 0===p?[]:p)||""},x))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.createElement("rect",s({ref:n,className:a()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),Z=(n=(t={x:E,y:_,width:C,height:S,radius:O,all:void 0!==M&&M,top:void 0!==P&&P,bottom:void 0!==A&&A,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==z&&z}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,b=t.y,g=n||p||h||g,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(v,c)/2))),("M"+(y+f)+","+b+" h"+(v-x)+"\n "+(g?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-v)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:Z})):r.createElement("path",s({ref:k,className:a()("visx-bar-rounded",j),d:Z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:a()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),a=n.n(i),o=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,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",l({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),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,o=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=a&&(0,u.Z)(d.cornerRadius,a),null!=o&&(0,u.Z)(d.startAngle,o),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,a=t.x1,o=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),a&&(0,u.Z)(f.x1,a),o&&(0,u.Z)(f.y,o),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,s=(0,a.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),o&&s.curve(o),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,s=t.sort,l=t.sortValues,c=(0,o.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),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,s.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,l.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 l}});var r=n(22254),i=n(76751),a=n(90541),o=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:a.Z,silhouette:o.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),a=n(12197),o=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:a.Z,none:o.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=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),b=(0,a.area)({x:n,x0:s,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:b})):r.default.createElement("path",l({ref:v,className:(0,i.default)("visx-area",m),d:b(void 0===h?[]:h)||""},y))};var r=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=o(n(2784)),i=o(n(72779)),a=["from","to","fill","className","innerRef"];function o(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,o),g=(0,a.line)({x:s,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",l({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=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a)),p=h.x,m=void 0===p?0:p,g=h.fontSize,v=(0,i.Z)(e),y=v.wordsByLines,b=v.startDy,x=v.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:g,style:s},y.length>0?r.createElement("text",o({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),a=n.n(i),o=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,g=void 0===m?"0.71em":m,v=e.children,y=e.style,b=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,s),x=b.x,w=void 0===x?0:x,j=b.y,k=void 0===j?0:j,E=!u(w)||!u(k),_=(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=_.wordsWithWidth,S=_.spaceWidth,O=(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+S0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[E,w,k,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:P}}},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 s}});var r=new WeakMap,i=new WeakMap,a={},o=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var l=a[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,o),l.set(e,s),u.push(e),1===o&&a&&i.set(e,!0),1===s&&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=l.get(e)-1;r.set(e,t),l.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),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,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 b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+w)}var j=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),o(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(g,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var _=h(j);if(_&&-1===["http","https","file"].indexOf(_)){n(new d("Unsupported protocol "+_+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),a=n(62215),o=n(92937),s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(10663));s.Axios=a,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};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 s,l=o?o+"."+r:r;if(n&&!o&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,a(e))});return}}e(n,l)}}),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,s){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,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var o=r[a],s=t[o];if(s){var l=e[o],u=void 0===l||s(l,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,s=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),g=l("Blob"),v=l("FileList");function y(e){return"[object Function]"===o.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)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:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList: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,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s: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,s=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,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,a=e[0]+"";ru^n?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;oa[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function 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 tA?h.c=h.e=null:e.e=10;s/=10,a++);a>A?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(".","")),(s=f.search(/e/i))>0?(a<0&&(a=s),a+=+f.slice(s+1),f=f.substring(0,s)):a<0&&(a=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&z)return V(h=new F(e),C+h.e+1,S);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=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>a){a=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-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(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((a=a-s-1)>A)h.c=h.e=null;else if(a=M)?v(l,o):y(l,o,"0");else if(a=(e=V(new F(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=a||a<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new F(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((a=t-i)<0)a+=14,o=t,h=(c=p[f=0])/d[i-o-1]%10|0;else if((f=s((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?l(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>A?e.c=e.e=null:e.e=M?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),S=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),P=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)P=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=n;else throw T=!n,Error(u+"crypto unavailable")}else T=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:S,EXPONENTIAL_AT:[O,M],RANGE:[P,A],CRYPTO:T,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===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return I(arguments,E.lt)},F.minimum=F.min=function(){return I(arguments,E.gt)},F.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,a,o,c=0,f=[],h=new F(_);if(null==e?e=C:m(e,0,1e9),a=s(e/14),T){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 T=!1,Error(u+"crypto unavailable")}if(!T)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 s,l,u,c,d,f,p,m,g=n.indexOf("."),v=C,b=S;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?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=a,p=(f=w(f,m,v,b,i)).c,d=f.r,u=f.e),g=p[l=u+v+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>c||g==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-v,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(g=0,n="";g<=c;n+=s.charAt(p[g++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*o,e[l]=i%n;return s&&(e=[s].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,s){var u,c,d,h,p,m,g,v,y,b,x,w,j,k,E,_,C,S=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new F(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*S:S/0:NaN);for(y=(v=new F(S)).c=[],S=a+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),S=S/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,S<0)y.push(1),h=!0;else{for(k=O.length,_=M.length,d=0,S+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),_=M.length,k=O.length),j=_,x=(b=O.slice(0,_)).length;x<_;b[x++]=0);C=[0].concat(C=M.slice()),E=M[0],M[1]>=s/2&&E++;do{if(p=0,(u=t(M,b,_,x))<0){if(w=b[0],_!=x&&(w=w*s+(b[1]||0)),(p=l(w/E))>1)for(p>=s&&(p=s-1),g=(m=e(M,p,s)).length,x=b.length;1==t(m,b,g,x);)p--,n(m,_t(M,b,_,x);)p++,n(b,_=10;S/=10,d++);V(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=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,o){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=s?e:t}),o&&(s=o,l=l.replace(i,"$1").replace(a,"0.$1")),t!=l))return new F(l,s);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=S:m(t,0,8),V(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,S)},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: "+U(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(+U(p),c?2-g(e):+U(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=s(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=g(e)):f=(i=Math.abs(+U(e)))%2,h=new F(_);;){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=l(i/2)))break;f=i%2}else if(V(e=e.times(n),e.e+1,1),e.e>14)f=g(e);else{if(0==(i=+U(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=_.div(h)),t?h.mod(t):a?V(h,R,S,o):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=S:m(e,0,8),V(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 s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==S?-0:0)}if(s=f(s),l=f(l),u=u.slice(),o=s-l){for((a=o<0)?(o=-o,i=u):(l=s,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=l);a>i;)s=p*(u=g[--o]%1e7)+(c=g[o]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[a]+n)/1e14|0)+(s/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,s=e.c;if(!i||!a){if(!o||!s)return new F(r/0);if(!o[0]||!s[0])return s[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=s):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=s.length)<0&&(n=s,s=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+s[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=S:m(t,0,8),V(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,s=this.e,l=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(+U(this)))||o==1/0?(((t=h(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),n=new F(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new F(o+""),n.c[0]){for((o=(s=n.e)+l)<3&&(o=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,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+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,a,o,s,l,c,f,p,m,g=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(_)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+U(s));if(!g)return new F(this);for(t=new F(_),c=n=new F(_),r=l=new F(_),m=h(g),a=t.e=m.length-this.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||s.comparedTo(t)>0?a>0?t:c:s,o=A,A=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,a*=2,p=1>w(c,r,a,S).minus(this).abs().comparedTo(w(l,n,a,S).minus(this).abs())?[c,r]:[l,n],A=o,p},E.toNumber=function(){return+U(this)},E.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),Z(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?v(h(n.c),i):y(h(n.c),i,"0"):10===e&&z?t=y(h((n=V(new F(n),C+i+1,S)).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 U(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 s(e,t,n,r,o,s){let l=d[o],u=d[o+1],f=d[s],h=d[s+1];i(c,e,t),a(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),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 l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=o(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^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){l[e]=l[e]+l[t]+i,l[r]=a(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],12),l[e]=l[e]+l[t]+o,l[r]=a(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],7)}function a(e,t){return e>>>t^e<<32-t}let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=o[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[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[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(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;a2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=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(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=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 s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),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(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return S(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=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-l),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&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,n,r,i,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=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);ir.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=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,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var 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}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var 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},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||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 S(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=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;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,a,o,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&a.charAt(h-1)===o.charAt(l+1)&&a.charAt(h-1)!==o.charAt(l)&&.1*(c=e(r,i,a,o,h+1,l+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 _},Ym:function(){return A},ZP:function(){return x},xV:function(){return a}});var r=n(40948);function i(){}var a=.7,o=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),g=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),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 b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new _(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 _(t[1],t[2],t[3],1):(t=f.exec(e))?new _(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?w(v[e]):"transparent"===e?new _(NaN,NaN,NaN,0):null}function w(e){return new _(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new _(e,t,n,r)}function k(e){return(e instanceof i||(e=x(e)),e)?new _((e=e.rgb()).r,e.g,e.b,e.opacity):new _}function E(e,t,n,r){return 1==arguments.length?k(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,n,r)}function P(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new T;if(e instanceof T)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),s=NaN,l=o-a,u=(o+a)/2;return l?(s=t===o?(n-r)/l+(n0&&u<1?0:s,new T(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?P(e):new T(e,t,n,null==r?1:r)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return P(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(_,E,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new _(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:S,toString:S})),(0,r.Z)(T,A,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new T(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 _(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,s=6/29,l=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 b(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),s=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?t=n=s:(t=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+o}function p(e){return e>s?e*e*e:l*(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,s=i.length;return o===s?i:o>s?i+Array(o-s+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,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=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 b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,j=e.type;"n"===j?(b=!0,j="g"):d[j]||(void 0===x&&(x=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?o:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===s?u:/[%p]/.test(j)?g:"",_=d[j],C=/[defgprs%]/.test(j);function S(e){var o,s,l,u=k,d=E;if("c"===j)d=_(e)+d,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:_(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),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,s=e.length;++o(l=e.charCodeAt(o))||l>57){d=(46===l?c+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}}b&&!f&&(e=a(e,1/0));var S=u.length+e.length+d.length,O=S>1)+u+e+d+O.slice(S);break;default:e=O+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),S.toString=function(){return e+""},S}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),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,s=!0,l=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(l)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,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?a-=1:a0&&(a-=1)),t[a]=(t[a]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var o=l(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],s=i>0?e[i-1]:2*a-o,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?s: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 s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(o*r+-1.7884503806*t-3.5172982438*n)/(o+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*a.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*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=s(t)).h,(r=s(r)).h),a=(0,u.ZP)(t.s,r.s),o=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return 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),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=s(e),t.opacity=l(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),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(e),t.opacity=l(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 s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return P.Z},interpolateHslLong:function(){return P.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return g.Z},interpolateObject:function(){return v.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return _},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,a,o,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),g=n(43289),v=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=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 s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-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),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=a.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&a){var h=r-o,p=i-s,m=l*l+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),b=y/v,x=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,o,s,l){e=+e,t=+t,a=+a,l=!!l;var u=a*Math.cos(o),c=a*Math.sin(o),d=e+u,f=t+c,h=1^l,p=l?o-s:s-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(s))+","+(this._y1=t+a*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=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 l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[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),s=o.right;o.left,i(a.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var a=n(1169);function o(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*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,s)}let a=t[n],l=r,u=i;for(o(t,r,n),s(t[i],a)>0&&o(t,r,i);ls(t[l],a);)++l;for(;s(t[u],a)>0;)--u}0===s(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=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,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 s},ZP:function(){return o},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var r,i,a,o,l=-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);++lt&&--r,a=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}function l(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=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 _(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 S(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=g.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(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 P(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T(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 I(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 V(e,t,n){var r=g.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function U(e,t){return b(e.getDate(),t,2)}function H(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function $(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function q(e,t){return b(e.getMilliseconds(),t,3)}function K(e,t){return q(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function G(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function ea(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function eo(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function eg(e,t){return b(e.getUTCMinutes(),t,2)}function ev(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(o.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.hB)(e):o.hB.ceil(e)}function ew(e,t){return e=ex(e),b(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 b(o.l6.count((0,d.Z)(e)-1,e),t,2)}function eE(e,t){return b(e.getUTCFullYear()%100,t,2)}function e_(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function eC(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function eS(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,o.hB)(e):o.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eP(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,c=e.shortDays,d=e.months,g=e.shortMonths,v=w(i),y=j(i),b=w(a),x=j(a),ee=w(c),ex=j(c),eT=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:U,e:U,f:K,g:ea,G:es,H:H,I:W,j:$,L:q,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eP,s:eA,S:X,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:eo,Z:el,"%":eM},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:e_,G:eS,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:eP,s:eA,S:ev,u:ey,U:eb,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:eC,Z:eO,"%":eM},eF={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eT.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:M,G:O,H:D,I:D,j:R,L:F,m:T,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:A,Q:B,s:V,S:z,u:E,U:_,V:C,w:k,W:S,x:function(e,t,r){return eB(e,n,t,r)},X:function(e,t,n){return eB(e,r,t,n)},y:M,Y:O,Z:P,"%":I};function eZ(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)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=s.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?l.wA.ceil(r):(0,l.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,s=t.length,l=n.length;o=l)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=eI(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=eI(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,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,s=n.range,l=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,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,g)))(e(v(t)))}return b.invert=function(n){return v(t((h||(h=r(m,p.map(e),a.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=o.Z,y()},b.clamp=function(e){return arguments.length?(v=!!e||u,y()):v!==u},b.interpolate=function(e){return arguments.length?(g=e,y()):g},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,o.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return P},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,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 l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return o.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,o.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,E.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(_.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)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),a=n(5497),o=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),g=n(69777),v=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,a=0,o=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([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?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},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)(x());return e.copy=function(){return w(e,j()).exponent(e.exponent())},b.O.apply(e,arguments)}function k(){return j.apply(null,arguments).exponent(.5)}var E=n(98038),_=n(1169),C=n(33907),S=n(87475);function O(){var e,t,n,r,i,a,o,s=0,l=.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[s]=u,o[l]=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())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),a=n(10070),o=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,o=e(l,u),s=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)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),o}return o.base=function(e){return arguments.length?(p=+e,m()):p},o.domain=function(e){return arguments.length?(s(e),m()):s()},o.ticks=function(e){var i,a=s(),o=a[0],l=a[a.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;g.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;g.push(d)}2*g.length0?l[t-1]:n[0],t=s?[l[s-1],o]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,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)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,o.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,a.Q)(c)}}});var r=n(70552),i=n(22274),a=n(93963),o=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},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 s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(o(1),s(t));return n.constant=function(n){return arguments.length?e(o(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],a=[0,1],o=1;function s(e){return null!=e&&e<=e?a[(0,r.ZP)(n,e,0,o)]:t}return s.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,a.length-1),s):n.slice()},s.range=function(e){return arguments.length?(a=Array.from(e),o=Math.min(n.length,a.length-1),s):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(a).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),a=n(21032),o=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,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,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,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),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function v(e,t,n,r,i,a,o,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),k=u("%b %d"),E=u("%B"),_=u("%Y");function C(e){return(l(e)A*A+T*T&&(_=S,C=O),{cx:_,cy:C,x01:-d,y01:-f,x11:_*(i/j-1),y11:C*(i/j-1)}}function f(){var e=o,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,g=null;function v(){var i,o,s=+e.apply(this,arguments),l=+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)()),la.Ho){if(v>a.BZ-a.Ho)g.moveTo(l*(0,a.mC)(u),l*(0,a.O$)(u)),g.arc(0,0,l,u,c,!y),s>a.Ho&&(g.moveTo(s*(0,a.mC)(c),s*(0,a.O$)(c)),g.arc(0,0,s,c,u,y));else{var b,x,w=u,j=c,k=u,E=c,_=v,C=v,S=m.apply(this,arguments)/2,O=S>a.Ho&&(f?+f.apply(this,arguments):(0,a._b)(s*s+l*l)),M=(0,a.VV)((0,a.Wn)(l-s)/2,+n.apply(this,arguments)),P=M,A=M;if(O>a.Ho){var T=(0,a.ZR)(O/s*(0,a.O$)(S)),N=(0,a.ZR)(O/l*(0,a.O$)(S));(_-=2*T)>a.Ho?(T*=y?1:-1,k+=T,E-=T):(_=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=l*(0,a.mC)(w),D=l*(0,a.O$)(w),L=s*(0,a.mC)(E),z=s*(0,a.O$)(E);if(M>a.Ho){var F,Z=l*(0,a.mC)(j),I=l*(0,a.O$)(j),B=s*(0,a.mC)(k),V=s*(0,a.O$)(k);if(va.Ho?A>a.Ho?(b=d(B,V,R,D,l,A,y),x=d(Z,I,L,z,l,A,y),g.moveTo(b.cx+b.x01,b.cy+b.y01),Aa.Ho&&_>a.Ho?P>a.Ho?(b=d(L,z,Z,I,s,-P,y),x=d(R,D,B,V,s,-P,y),g.lineTo(b.cx+b.x01,b.cy+b.y01),P=o;--s)f.point(v[s],y[s]);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],l?+l(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),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,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,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function o(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new o(e)}function c(e){return new s(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}}},(s.prototype=Object.create(o.prototype)).point=function(e,t){o.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,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 _},curveBasisOpen:function(){return S},curveBundle:function(){return M},curveCardinal:function(){return P.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return I},curveCatmullRomOpen:function(){return V},curveLinear:function(){return W.Z},curveLinearClosed:function(){return H},curveMonotoneX:function(){return $.Z},curveMonotoneY:function(){return $.s},curveNatural:function(){return Y},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return a.Z},lineRadial:function(){return l.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 l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return ea.Z},stackOrderInsideOut:function(){return eo.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return g.Z},symbolStar:function(){return v.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,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,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(a())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),g=n(44523),v=n(86707),y=n(42965),b=n(60598);function x(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function j(e){this._context=e}function k(e){return new j(e)}function E(e){this._context=e}function _(e){return new E(e)}function C(e){this._context=e}function S(e){return new C(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},E.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},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}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),P=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,P.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 T=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,P.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 s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);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 P.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I=function e(t){function n(e){return t?new Z(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function 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 V=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 U(e){this._context=e}function H(e){return new U(e)}U.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),$=n(27266);function q(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((s=e.length)>0)for(var n,r,i,a,o,s,l=0,u=e[t[0]].length;l0?(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,s=e[0].length;o1)for(var n,r,i,a=1,o=e[t[0]],s=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,s=1;sa&&(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 s}});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 s(){var e=a,t=i,n=null,s=(0,r.Z)(0),l=(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=+s.apply(this,arguments),y=Math.min(o.BZ,Math.max(-o.BZ,l.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,g[a]={data:r[a],index:i,value:f,startAngle:v,endAngle:d,padAngle:b};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?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),a=n(90541),o=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=o.Z,n=a.Z,l=s;function u(r){var i,a,o=e.apply(this,arguments),s=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 s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=6e4,a=36e5,o=864e5,s=6048e5,l=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 l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return 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),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),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 s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return 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&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(a(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(o?function(t){return o(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return 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 _},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),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=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/s.qz,n/s.qz,r));if(0===a)return l.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 b},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 l},vm:function(){return h},wA:function(){return s},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),s=a(1),l=a(2),u=a(3),c=a(4),d=a(5),f=a(6),h=o.range,p=s.range,m=l.range,g=u.range,v=c.range,y=d.range,b=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},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(o,a),o=a=null))}null==t&&(t=100);var i,a,o,s,l,u=function(){o=this,a=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(o,a),o=a=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(o,a),o=a=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},46782:function(e,t,n){var r,i,a;i=[],void 0!==(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,n,o){var s=a.URL||a.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e){var o;navigator.msSaveOrOpenBlob((void 0===(o=a)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),n)}else if(r(e))t(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){i(s)})}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});a.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)&&(e.exports=a)},92683: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!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||o;var r,i,a=Array.isArray(t);return a!==Array.isArray(e)?l(t,n):a?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=c(e[n],t[n],r):i[n]=l(t[n],r)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var d=c,f=n(36394),h=n(85420),p=function(e){return(0,h.Z)(e,4)},m=n(25079),g=n(43737),v=n(52059),y=n(81470),b=n(11620),x=n(14551),w=n(16601),j=function(e){return(0,v.Z)(e)?(0,m.Z)(e,x.Z):(0,y.Z)(e)?[e]:(0,g.Z)((0,b.Z)((0,w.Z)(e)))},k=function(e,t){};function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function C(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var S=function(e){return Array.isArray(e)&&0===e.length},O=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},P=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return M(e)&&O(e.then)};function T(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;T(t,o.path)||(t=N(t,o.path,o.message))}}return t}(n)):t(n)})})},[g.validationSchema]),I=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),V=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return O(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return I(t,T(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},{})})},[I]),U=(0,r.useCallback)(function(e){return Promise.all([V(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,V,R,F]),H=B(function(e){return void 0===e&&(e=C.values),S({type:"SET_ISVALIDATING",payload:!0}),U(e).then(function(e){return w.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){l&&!0===w.current&&a()(v.current,g.initialValues)&&H(v.current)},[l,H]);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:b.current?b.current:g.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:g.initialStatus;v.current=t,y.current=n,b.current=r,x.current=i;var a=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(g.onReset){var o=g.onReset(C.values,ec);A(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()),l&&H(v.current))},[h,g.initialValues,W,l,H]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(y.current,g.initialErrors)&&(y.current=g.initialErrors||L,S({type:"SET_ERRORS",payload:g.initialErrors||L}))},[h,g.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(b.current,g.initialTouched)&&(b.current=g.initialTouched||z,S({type:"SET_TOUCHED",payload:g.initialTouched||z}))},[h,g.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(x.current,g.initialStatus)&&(x.current=g.initialStatus,S({type:"SET_STATUS",payload:g.initialStatus}))},[h,g.initialStatus,g.initialTouched]);var $=B(function(e){if(j.current[e]&&O(j.current[e].validate)){var t=T(C.values,e),n=j.current[e].validate(t);return A(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),F(C.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),q=(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 S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?H(C.values):Promise.resolve()}),G=(0,r.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),X=B(function(e,t){var r=O(e)?e(C.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?H(r):Promise.resolve()}),J=(0,r.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=B(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?H(N(C.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!P(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,l=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),f=a.multiple;r=t||s||l,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}(T(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(P(e))return function(t){return ee(t,e)};ee(e)}),en=B(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?H(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(P(e))return function(t){return er(t,e)};er(e)}),ea=(0,r.useCallback)(function(e){O(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),eo=(0,r.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),es=(0,r.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),el=B(function(){return S({type:"SUBMIT_ATTEMPT"}),H().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&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=B(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:H,validateField:$,setErrors:G,setFieldError:J,setFieldTouched:en,setFieldValue:Q,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:X,setFormikState:ea,submitForm:el},ed=B(function(){return p(C.values,ec)}),ef=B(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:T(C.values,e),error:T(C.errors,e),touched:!!T(C.touched,e),initialValue:T(v.current,e),initialTouched:!!T(b.current,e),initialError:T(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=M(e),n=t?e.name:e,r=T(C.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var a=e.type,o=e.value,s=e.as,l=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"===s&&l&&(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&&O(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:b.current,initialStatus:x.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:G,setFormikState:ea,setFieldTouched:en,setFieldValue:Q,setFieldError:J,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:X,submitForm:el,validateForm:H,validateField:$,isValid:ev,dirty:eg,unregisterField:K,registerField:q,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:o,validateOnChange:n,validateOnMount:l})}function Z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var 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 I="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 I(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(T(n.values,a))),o=r?("function"==typeof r?r:e)(T(n.errors,a)):void 0,s=t?("function"==typeof t?t:e)(T(n.touched,a)):void 0;return S(o)&&(o=void 0),S(s)&&(s=void 0),E({},n,{values:i,errors:r?N(n.errors,a,o):n.errors,touched:t?N(n.touched,a,s):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat($(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 U(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 V(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 H(n,e,t)},function(t){return H(t,e,null)},function(t){return H(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()(T(e.formik.values,e.name),T(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?$(n):[];return t||(t=r[e]),O(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,a=t.children,o=t.name,s=_(t.formik,["validate","validationSchema"]),l=E({},e,{form:s,name:o});return n?(0,r.createElement)(n,l):i?i(l):a?"function"==typeof a?a(l):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},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[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 s=l(t),m=l(n),g=0;g>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+=s;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===l)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,s,l,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?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}},1297:function(e,t,n){var r,i=n(48834).lW,a=n(93542);r=function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=void 0,o=0;o>2,s=(3&t)<<4|n>>4,l=1>6:64,u=2>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),f[c++]=t,64!==s&&(f[c++]=n),64!==l&&(f[c++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=0+n;e^=-1;for(var o=0;o>>8^i[255&(e^t[o])];return -1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=0+n;e^=-1;for(var o=0;o>>8^i[255&(e^t.charCodeAt(o))];return -1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n>>=8;return r}function i(e,t,n,i,o,c){var d,f,h,p,m=e.file,g=e.compression,v=c!==s.utf8encode,y=a.transformTo("string",c(m.name)),b=a.transformTo("string",s.utf8encode(m.name)),x=m.comment,w=a.transformTo("string",c(x)),j=a.transformTo("string",s.utf8encode(x)),k=b.length!==m.name.length,E=j.length!==x.length,_="",C="",S="",O=m.dir,M=m.date,P={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(P.crc32=e.crc32,P.compressedSize=e.compressedSize,P.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),!v&&(k||E)&&(A|=2048);var T=0,N=0;O&&(T|=16),"UNIX"===o?(N=798,T|=(f=d=m.unixPermissions,d||(f=O?16893:33204),(65535&f)<<16)):(N=20,T|=63&(m.dosPermissions||0)),h=(M.getUTCHours()<<6|M.getUTCMinutes())<<5|M.getUTCSeconds()/2,p=(M.getUTCFullYear()-1980<<4|M.getUTCMonth()+1)<<5|M.getUTCDate(),k&&(C=r(1,1)+r(l(y),4)+b,_+="up"+r(C.length,2)+C),E&&(S=r(1,1)+r(l(w),4)+j,_+="uc"+r(S.length,2)+S);var R="";return R+="\n\0"+r(A,2)+g.magic+r(h,2)+r(p,2)+r(P.crc32,4)+r(P.compressedSize,4)+r(P.uncompressedSize,4)+r(y.length,2)+r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+y+_,dirRecord:u.CENTRAL_FILE_HEADER+r(N,2)+R+r(w.length,2)+"\0\0\0\0"+r(T,4)+r(i,4)+y+_+w}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e,t,n,i,o=this.bytesWritten,s=0;s=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),u=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t,n){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=t,this._mimeType=n,r.checkSupport(i),this._worker=e.pipe(new a(i)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){var t;return t=this,new u.Promise(function(n,a){var o=[],l=t._internalType,u=t._outputType,c=t._mimeType;t.on("data",function(t,n){o.push(t),e&&e(n)}).on("error",function(e){o=[],a(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(u,function(e,t){var n,r=0,a=null,o=0;for(n=0;n>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,l=Array(2*o);for(t=n=0;t>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,o),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=i+n;e^=-1;for(var o=i;o>>8^r[255&(e^t[o])];return -1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages");function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(4e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function h(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function g(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+258,h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(u[(n=t)+o]===p&&u[n+o-1]===h&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do;while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&al&&0!=--i);return o<=e.lookahead?o:e.lookahead}function v(e){var t,n,r,a,l,u,c,d,f,h,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,h=void 0,(f=a)<(h=u.avail_in)&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=o(u.adler,c,h,d):2===u.state.wrap&&(u.adler=s(u.adler,c,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3){if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,h(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)}),new x(4,4,8,4,y),new x(4,5,16,8,y),new x(4,6,32,32,y),new x(4,4,16,16,b),new x(8,16,32,32,b),new x(8,16,128,128,b),new x(8,32,128,256,b),new x(32,128,258,1024,b),new x(32,258,258,4096,b)],n.deflateInit=function(e,t){return E(e,t,8,15,8,0)},n.deflateInit2=E,n.deflateReset=k,n.deflateResetKeep=j,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,m(i,g),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&f(e),i.pending+2<=i.pending_buf_size&&(p(i,255&e.adler),p(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(n)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var y=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(d(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&e.adler),p(i,e.adler>>8&255),p(i,e.adler>>16&255),p(i,e.adler>>24&255),p(i,255&e.total_in),p(i,e.total_in>>8&255),p(i,e.total_in>>16&255),p(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),f(e),0=n.w_size&&(0===s&&(d(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,v(n);n.lookahead>=3;){for(r=n.strstart,a=n.lookahead-2;n.ins_h=(n.ins_h<>>=x=b>>>24,p-=x,0==(x=b>>>16&255))C[a++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=m[(65535&b)+(h&(1<>>=x,p-=x),p<15&&(h+=_[r++]<>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=g[(65535&b)+(h&(1<>>=x,p-=x,(x=a-o)>3,h&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function f(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=a(n.check,z,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,T=8+(15&(b>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(0===h)break t;h--,b+=u[d++]<>>8&255,z[2]=b>>>16&255,z[3]=b>>>24&255,n.check=a(n.check,z,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(0===h)break t;h--,b+=u[d++]<>8),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===h)break t;h--,b+=u[d++]<>>8&255,n.check=a(n.check,z,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(h<(k=n.length)&&(k=h),k&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,u,d,k,T)),512&n.flags&&(n.check=a(n.check,u,k,d)),h-=k,d+=k,n.length-=k),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===h)break t;for(k=0;T=u[d+k++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T)),T&&k>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===h)break t;h--,b+=u[d++]<>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===h)break t;h--,b+=u[d++]<>>=1)){case 0:n.mode=14;break;case 1:if(function(e){if(g){var t;for(p=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),g=!1}e.lencode=p,e.lenbits=9,e.distcode=m,e.distbits=5}(n),n.mode=20,6!==t)break;b>>>=2,x-=2;break t;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(0===h)break t;h--,b+=u[d++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,6===t)break t;case 15:n.mode=16;case 16:if(k=n.length){if(h>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286>>=3,x-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},N=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,N){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,O=65535&L,!((C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>>=C,x-=C,n.lens[n.have++]=O;else{if(16===O){for(D=C+2;x>>=C,x-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],k=3+(3&b),b>>>=2,x-=2}else if(17===O){for(D=C+3;x>>=C)),b>>>=3,x-=3}else{for(D=C+7;x>>=C)),b>>>=7,x-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},N=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},N=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break t;case 20:n.mode=21;case 21:if(6<=h&&258<=y){e.next_out=f,e.avail_out=y,e.next_in=d,e.avail_in=h,n.hold=b,n.bits=x,o(e,j),f=e.next_out,c=e.output,y=e.avail_out,d=e.next_in,u=e.input,h=e.avail_in,b=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(L=n.lencode[b&(1<>>16&255,O=65535&L,!((C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>M)])>>>16&255,O=65535&L,!(M+(C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>>=M,x-=M,n.back+=M}if(b>>>=C,x-=C,n.back+=C,n.length=O,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(D=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(L=n.distcode[b&(1<>>16&255,O=65535&L,!((C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>M)])>>>16&255,O=65535&L,!(M+(C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>>=M,x-=M,n.back+=M}if(b>>>=C,x-=C,n.back+=C,64&S){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(D=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break t;if(k=j-y,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}E=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),_=n.window}else _=c,E=f-n.offset,k=n.length;for(yy?(x=z[F+d[E]],N[R+d[E]]):(x=96,0),h=1<>M)+(p-=h)]=b<<24|x<<16|w|0,0!==p;);for(h=1<>=1;if(0!==h?(T&=h-1,T+=h):T=0,E++,0==--D[k]){if(k===C)break;k=t[n+d[E]]}if(S>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function _(e,t,n){var r,i,a=Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}}function C(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function S(e){8>1;1<=n;n--)M(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,M(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)p<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=p,m++),l[2*r+1]=a,u>=7;r<30;r++)for(v[r]=i<<7,e=0;e<1<>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),A(e,e.l_desc),A(e,e.d_desc),o=function(e){var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),A(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||a===i?(j(e,2+(r?1:0),3),P(e,u,c)):(j(e,4+(r?1:0),3),function(e,t,n,r){var i;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(f[n]+256+1)]++,e.dyn_dtree[2*x(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){j(e,2,3),k(e,256,u),16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,i,o,s=1,l={},u=!1,c=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,n="[object process]"===({}).toString.call(e.process)?function(e){a.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(h,0,e)}:(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),r=0;ri?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),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,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,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),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,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),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,s=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=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,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]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",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="['’]",s="["+a+"]",l="["+r+"]",u="[^"+t+a+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+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+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(v+g+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),a=n(7642),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,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=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function x(){var e,n,r,a=i();if(b(a))return w(a);f=setTimeout(x,(e=a-h,n=a-p,r=t-e,g?s(r,c-n):r))}function w(e){return(f=void 0,v&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,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,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),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,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),a=n(4146),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},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,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(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=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.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-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return 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,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:v,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[j,k]=(0,r.useState)(()=>p(l)),E=v?Object.values(v):u,_=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let a=v?v[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...E),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),C=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),S=(0,r.useCallback)(t=>{k(g(t)),"system"===x&&n&&!e&&_("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,r.useEffect)(()=>{_(null!=e?e:x)},[e,x]);let O=(0,r.useMemo)(()=>({theme:x,setTheme:C,forcedTheme:e,resolvedTheme:"system"===x?j:x,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[x,C,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:v,children:y,attrs:E,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||a?`c.add(${o})`:"null":a&&(l+=`d[s](n,${o})`),l},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(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html: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(65047)}])},7513:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(18575),a=n(82851),o=n(65304);function s(e){var t;let{currentPage:n,parentPage:s,commandPage:l,className:u,...c}=e,d=(0,o.U8)(e=>e.search);if((null==s?void 0:s.namespace)===(null==n?void 0:n.namespace)&&!d)return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",u),value:"".concat(null==l?void 0:l.label," ").concat((null===(t=c.children)||void 0===t?void 0:t.toString())||""),...c})}function l(e){var t;let{currentPage:n,commandPage:s,className:l,...u}=e,c=(0,o.U8)(e=>e.search),d=s.namespace.startsWith((null==n?void 0:n.namespace)||"");if(c&&d||s.namespace===(null==n?void 0:n.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(s.label," ").concat((null===(t=u.children)||void 0===t?void 0:t.toString())||""),...u})}function u(e){var t;let{currentPage:n,commandPage:s,className:l,...u}=e,c=(0,o.U8)(e=>e.search),d=s.namespace.startsWith((null==n?void 0:n.namespace)||"");if(c&&d||!n||s.namespace===(null==n?void 0:n.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(s.label," ").concat((null===(t=u.children)||void 0===t?void 0:t.toString())||""),...u})}function c(e){let{heading:t,currentPage:n,commandPage:a,...s}=e,l=(0,o.U8)(e=>e.search);return(0,r.jsx)(o.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==a.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:a.label}),...s})}n(2784)},58283:function(e,t,n){"use strict";n.d(t,{F:function(){return v},A:function(){return y}});var r=n(52322),i=n(18575),a=n(28420),o=n(91426),s=n(4300),l=n(5632),u=n(74282),c=n(46741),d=n(12295),f=n(9408),h=n(56440),p=n(20673),m=n(82285),g=n(2784);function v(e){let{id:t,trigger:n,hostAddress:o,hostKey:s,contentProps:l,buttonProps:u}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{"aria-label":"contract context menu",icon:"hover",size:"none",...u,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...l,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{id:t,hostAddress:o,hostKey:s})})}function y(e){var t,n;let{id:v,hostAddress:y,hostKey:b}=e,x=(0,l.useRouter)(),{setFilter:w,resetFilters:j}=(0,c.l)(),{setFilter:k,resetFilters:E}=(0,u.G)(),_=(0,o.uf)(),C=(0,o.s2)(),S=(0,f.l)(),O=(0,d.I)(),M=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)}),x.push(s._.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:()=>{y&&(E(),k((0,h.e)(y)),x.push(s._.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:!b,onSelect:()=>{b&&(E(),k((0,p.V)(b)),x.push(s._.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=_.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{y&&S([],[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:()=>{y&&S([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===b))?(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>{b&&O([],[b])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{disabled:!b,onSelect:()=>{b&&O([b],[])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M(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:!b,onSelect:()=>{b&&(0,i.vQq)(b,"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:()=>{y&&(0,i.vQq)(y,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},94248:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(60381),a=n(7513);let o={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.Nr)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xL)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xL)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.iv)(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.Nr)(1);return e.startTime>=t}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL)(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.BL)(2);return e.startTime>=t}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xL)(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.xL)(2);return e.startTime>=t}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.iv)(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.Nr)(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.BL)(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.BL)(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.xL)(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.xL)(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.iv)(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(82285),g=n(56440);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 b(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterAddress")},children:v.label})}var x=n(20673);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,x.V)(""),{openDialog: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:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function E(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let _={namespace:"contracts",label:"Contracts"};function C(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{currentPage:t,parentPage:n,commandPage:_,select:s}),(0,r.jsx)(k,{currentPage:t,parentPage:n,commandPage:_,select:s}),(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 S=n(74282),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,S.G)(),l=(0,O.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(E,{currentPage:t,select:l})]})}},56440:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(18575),a=n(74282),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},20673:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(18575),a=n(74282),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},61308:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(18575),a=n(28420),o=n(82285);function s(e){let{name:t}=e,{openDialog:n}=(0,o.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{size:"none",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,{onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.Jrl,{})}),"Delete bucket"]})]})}},90563:function(e,t,n){"use strict";n.d(t,{z:function(){return f}});var r=n(52322),i=n(18575),a=n(32974),o=n(91426),s=n(82851),l=n(78790),u=n(25913);function c(e){var t,n,s,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:b,label:x}=(0,a.D)({health:m,size:g,isDirectory:v});if(y.isValidating)return(0,r.jsx)(d,{displayHealth:b,label:x,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!y.data)return(0,r.jsx)(d,{displayHealth:b,label:x,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let w=(0,l.Z)((null===(t=y.data.slabs)||void 0===t?void 0:t.map(e=>{var t;return{...e.slab,id:"".concat(e.offset).concat(e.length).concat(e.slab.encryptionKey),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:b,label:x,minShards:null===(n=w.find(e=>e.minShards))||void 0===n?void 0:n.minShards,totalShards:null===(c=w.find(e=>e.shards))||void 0===c?void 0:null===(s=c.shards)||void 0===s?void 0:s.length,children:w.map(e=>{var t;return(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 ",(0,i.$Gg)(e.encryptionKey,4,!1),":"]}),(0,r.jsx)(i.xvT,{size:"12",className:"flex items-center",children:e.isPartialSlab?"".concat(e.contractSetShards,"/").concat(null===(t=e.shards)||void 0===t?void 0:t.length):"partial slab"})]},e.id)})})}function d(e){let{className:t,displayHealth:n,label:a,children:o,minShards:l,totalShards:u}=e;return(0,r.jsxs)("div",{className:(0,s.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),"%"]})]}),l&&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:[l," 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:s,size:l}=e,u="directory"===o,{displayHealth:d,label:f,color:h,icon:p}=(0,a.D)({health:s,size:l,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})})}},98430:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(52322),i=n(18575),a=n(28420),o=n(82285),s=n(2784),l=n(91426),u=n(60381),c=n(25913);function d(e){let{path:t,size:n}=e,d=function(){let{openConfirmDialog:e}=(0,o.Rh)(),t=(0,l.Lh)();return(0,s.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=(0,c.ru)(n),r=(0,c.kj)(n),a=await t.post({payload:{bucket:e,prefix:r}});a.error?(0,i.OHV)({title:"Error deleting directory",body:a.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",size:"none",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"]})]})}},45027:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(52322),i=n(18575),a=n(28420),o=n(82285),s=n(2784),l=n(91426),u=n(25913);function c(e){let{path:t}=e,n=(0,l.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,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy metadata"]})}var d=n(95810);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,l.Lh)();return(0,s.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=(0,u.ru)(n),r=(0,u.kj)(n),a=await t.post({payload:{bucket:e,prefix:r}});a.error?(0,i.OHV)({title:"Error deleting file",body:a.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,{size:"none","aria-label":"File context menu",variant:"ghost",icon:"hover",children:(0,r.jsx)(a.c_L,{})}),contentProps:{align:"start",...f,onClick:e=>{e.stopPropagation()}},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})]})}},96612:function(e,t,n){"use strict";n.d(t,{G:function(){return v},i:function(){return y}});var r=n(52322),i=n(18575),a=n(28420),o=n(91426),s=n(4300),l=n(5632),u=n(74282),c=n(46741),d=n(12295),f=n(9408),h=n(56440),p=n(20673),m=n(40608),g=n(60381);function v(e){let{address:t,publicKey:n,contentProps:o,buttonProps:s,trigger:l}=e;return(0,r.jsx)(i.h_2,{trigger:l||(0,r.jsx)(i.zxk,{"aria-label":"host context menu",icon:"hover",size:"none",...s,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...o,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{address:t,publicKey:n})})}function y(e){var t,n;let{address:v,publicKey:y}=e,b=(0,l.useRouter)(),{setFilter:x,resetFilters:w}=(0,c.l)(),{setFilter:j,resetFilters:k}=(0,u.G)(),E=(0,o.uf)(),_=(0,o.s2)(),C=(0,f.l)(),S=(0,d.I)(),O=(0,o.ED)(),M=(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 ",y.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{v&&(w(),x({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),b.push(s._.hosts.index))},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{w(),x((0,m.K)(y)),b.push(s._.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:!v,onSelect:()=>{v&&(k(),j((0,h.e)(v)),b.push(s._.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:()=>{k(),j((0,p.V)(y)),b.push(s._.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:!v,onSelect:()=>{v&&O.post({params:{hostkey:y},payload:{timeout:(0,g.XB)(30)}})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a._Eq,{})}),"Rescan host"]}),v&&(null===(t=E.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{v&&C([v],[])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>S([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>S([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({params:{hostkey:y}}),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)(y,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>{v&&(0,i.vQq)(v,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},777:function(e,t,n){"use strict";n.d(t,{T:function(){return b},N:function(){return y}});var r=n(52322),i=n(2784),a=n(18575),o=n(60381),s=n(6391),l=n.n(s);function u(e){var t,n,r,i;let{host:s,exchangeRateUSD:u}=e,c=u?"$".concat(new(l())((null===(t=s.settings)||void 0===t?void 0:t.storageprice)||0).times((0,o.xf)(1)).times((0,o.S5)(1)).div(1e24).times(u).toFixed(2),"/TB"):"".concat((0,o.Vz)(new(l())((null===(n=s.settings)||void 0===n?void 0:n.storageprice)||0).times((0,o.xf)(1)).times((0,o.S5)(1)),{fixed:0}),"/TB"),d="".concat((0,o.vW)(s.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),f="".concat((0,o.vW)((null===(r=s.settings)||void 0===r?void 0:r.remainingstorage)||0)," / ").concat((0,o.vW)((null===(i=s.settings)||void 0===i?void 0:i.totalstorage)||0)," available"),h=s.countryCode?(0,a.HLH)(s.countryCode):"\uD83C\uDF0D";return"".concat(h," \xb7 ").concat(c," \xb7 ").concat(d," \xb7 ").concat(f)}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(83429),p=n(25237);let m=n.n(p)()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(63)]).then(n.bind(n,89063)),{loadableGenerated:{webpack:()=>[89063]},ssr:!1}),g=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(m,{...e,forwardRef:t})});var v=n(54597);let y={moveToLocation:(e,t)=>null};function b(e){let{activeHost:t,hosts:n,onMount:a,onHostClick:o,onHostHover:s}=e,d=(0,h.J)({currency:"usd"}),f=(0,i.useRef)(null),p=(0,i.useRef)(y),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:x,width:w}]=c(),j=(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:w,height:x,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=>u({host:e.dst,exchangeRateUSD:d.rate}),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:j,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>u({host:e,exchangeRateUSD:d.rate}),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=>{var t;return e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(((null===(t=e.settings)||void 0===t?void 0:t.remainingstorage)||0)/1e13/3,.1)},onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==o||o(e.publicKey,e.location))},pointsMerge:!1})})}},50454:function(e,t,n){"use strict";n.d(t,{L:function(){return O}});var r=n(52322),i=n(7513),a=n(82285),o=n(57220);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,a.Rh)(),u=(0,o.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:o,commandPage:l}=e,{openDialog:u}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let 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 b=n(40608);let x={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function w(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,a.Rh)(),s=(0,b.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:x,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:x,onSelect:()=>{t(),o("hostsFilterPublicKey")},children:s.label})})}function j(e){let{select:t,currentPage:n,parentPage:o,commandPage:s}=e,{openDialog:l}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:x.label})}function k(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)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(w,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let E={namespace:"hosts",label:"Hosts"};function _(e){let{currentPage:t,parentPage:n,pushPage:a,select:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:E,onSelect:()=>{a(g)},children:g.label}),(0,r.jsx)(j,{currentPage:t,parentPage:n,commandPage:E,select:o}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:E,select:o}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:E,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:E,onSelect:()=>{a(c)},children:c.label})]})}var C=n(46741),S=n(2784);function O(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,C.l)(),l=(0,S.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,pushPage:i,select:l})]})}},57220:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(18575),a=n(46741),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},40608:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(18575),a=n(46741),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},45382:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(18575),a=n(2784),o=n(71609);function s(e){let{loaded:t,size:n,status:s}=e,l=(0,a.useMemo)(()=>{var e;return void 0!==(e={loaded:t,size:n}).loaded&&e.size?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===l?"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)(s)}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*l).toFixed(0),"%"]})]})]})}},4300:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return a}});var r=n(7699);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},99634:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(60381).XB)(15)},45209:function(e,t,n){"use strict";n.d(t,{b:function(){return D},Z:function(){return R}});var r=n(52322),i=n(18575),a=n(5632),o=n(2784);let s=["actions","overview","data","time"],l=[];var u=n(91426),c=n(96612),d=n(95810),f=n(82285),h=n(25913),p=n(6391),m=n.n(p),g=n(28420),v=n(58283);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)(b,{id:t})})}function b(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 x(e){let{id:t,contentProps:n,buttonProps:a,trigger:o}=e,s=(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:()=>s.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(45027);function j(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)(k,{hostKey:t})})}function k(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 E=n(60381),_=n(22836),C=n(82851);function S(e){let{data:t}=e,n=(0,o.useMemo)(()=>(0,i.qPQ)(t).map(e=>{let[t,n]=e;return{contractId:t,hostKey:n[0].hostKey,events:n.sort((e,t)=>new Date(e.time).getTime()e.events[0].sizen.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[n]),s=(0,o.useMemo)(()=>n.filter(e=>{let{events:t}=e;return"bad"===t[0].to}),[n]),l=(0,o.useMemo)(()=>n.filter(e=>{let{events:t}=e;return"good"===t[0].to}),[n]),u=(0,o.useMemo)(()=>s.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[s]),c=(0,o.useMemo)(()=>a>0?u/a*100:0,[u,a]);return(0,r.jsxs)("div",{"data-testid":"churn",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 changes"}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)(i.ua7,{content:"".concat((0,E.vW)(u)," of ").concat((0,E.vW)(a)," 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: ",c.toFixed(2),"%"]}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:["(",(0,E.vW)(u)," / ",(0,E.vW)(a),")"]})]})}),(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.ua7,{content:"".concat(l.length," contracts marked good"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"green",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(g.aXP,{}),l.length]})}),(0,r.jsx)(i.ua7,{content:"".concat(s.length," contracts marked bad"),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:n.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",{"data-testid":t,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)(j,{hostKey:n,buttonProps:{size:"none"},contentProps:{align:"end"}})})]})]}),a.map((e,t)=>{let{to:n,reason:a,size:o,time:s}=e;return(0,r.jsx)(i.ua7,{content:"good"===n?"good":"bad: ".concat(a),align:"start",side:"bottom",children:(0,r.jsxs)("div",{className:(0,C.cx)("flex gap-2 justify-between mr-2 pr-1",0===t?"good"===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:"good"===n?"green":"red",children:"good"===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,_.Z)(new Date(s),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,E.vW)(o)})]})]})},n+a+s)})]})}var M=n(32974);let P={origin:{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:"origin"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},contractID:{render(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(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(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)(x,{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(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(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between items-center 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})]})}},objects:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,d.b)(),{closeDialog:a}=(0,f.Rh)();return(0,r.jsxs)("div",{"data-testid":"objects",className:"flex flex-col h-[150px] overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"objects"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t.length})]}),(0,r.jsx)("div",{className:"-mx-2 flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2 px-2",children:t.map(e=>{let{bucket:t,key:o,health:s,size:l}=e,u="".concat(t).concat(o),{color:c,icon:d,label:f}=(0,M.D)({health:s,size:l,isDirectory:o.endsWith("/")});return(0,r.jsxs)("div",{className:"flex justify-between items-center w-full gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.ua7,{content:f,children:(0,r.jsx)(i.xvT,{size:"12",color:c,children:d})}),(0,r.jsx)(i.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,ellipsis:!0,onClick:()=>{n(()=>(0,h.gD)(u)),a()},children:u})]}),(0,r.jsx)(w.e,{path:u,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,{})})})]},u)})})})})]})}},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"})]})}},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)(x,{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()})]})}},churn:{render(e){let{value:t}=e;return(0,r.jsx)(S,{data:t})}}},A=[{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}):null,a.error?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.error}):null]})}},{id:"data",label:"data",contentClassName:"w-[500px]",rowCellClassName:"align-top",category:"general",render:function(e){let{data:{data:t}}=e,n=(0,o.useMemo)(()=>(0,i.qPQ)(P).map(e=>{let[n]=e,r=t[n];return null!=r&&("object"!=typeof r||!!Object.keys(r).length)&&{key:n,value:r}}).filter(e=>e),[t]);return(0,r.jsx)("div",{className:"py-4 w-full",children:(0,r.jsx)(i.s_4,{color:"subtle",className:"flex flex-col gap-1 w-full py-1",children:n.map((e,t)=>{var a;let{key:s,value:l}=e,u=null==P?void 0:null===(a=P[s])||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:l},s)}),n.length>1&&t{let{data:{timestamp:t}}=e;return(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:(0,_.Z)(new Date(t),new Date)})}}];var T=n(99634);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:T.h}}}),b=(0,u.Uy)(),x=(0,o.useCallback)(async e=>{let t=await b.post({payload:[e]});t.error?(0,i.OHV)({title:"Error dismissing alert",body:t.error}):(0,i.OPV)({title:"Alert has been dismissed."})},[b]),w=(0,o.useCallback)(async e=>{let t=await b.post({payload:e});t.error?(0,i.OHV)({title:"Error dismissing alerts",body:t.error}):(0,i.OPV)({title:"Selected alerts have been dismissed"})},[b]),j=(0,o.useMemo)(()=>{var e,t;if(y.data)return(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:()=>x(e.id)})))||[]},[y.data,x]),{configurableColumns:k,enabledColumns:E,sortableColumns:_,toggleColumnVisibility:C,setColumnsVisible:S,setColumnsHidden:O,toggleSort:M,setSortDirection:P,setSortField:N,sortField:R,sortDirection:D,resetDefaultColumnVisibility:L}=(0,i.oy6)("renterd/v0/alerts",{columns:A,columnsDefaultVisible:s,sortOptions:l,defaultSortField:""}),z=(0,o.useMemo)(()=>A.filter(e=>e.fixed||E.includes(e.id)),[E]),F=(0,i.c2j)(j,y.isValidating,y.error,c),Z=(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:Z,columns:z,datasetPage:j,configurableColumns:k,enabledColumns:E,sortableColumns:_,toggleColumnVisibility:C,setColumnsVisible:S,setColumnsHidden:O,toggleSort:M,setSortDirection:P,setSortField:N,sortField:R,filters:c,setFilter:d,removeFilter:f,removeLastFilter:h,resetFilters:p,sortDirection:D,resetDefaultColumnVisibility:L,dismissOne:x,dismissMany:w,severityFilter:g,setSeverityFilter:m}}();return(0,r.jsx)(N.Provider,{value:n,children:t})}},28245: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(83429),o=n(7699),s=n(67812),l=n(65740);let u=(0,i.createContext)({}),c=()=>(0,i.useContext)(u);function d(e){let{children:t}=e,n={bus:function(){let[e,t]=(0,i.useState)(null),{settings:{api:n,password:r}}=(0,a.Hv)();return(0,i.useEffect)(()=>{t(function(e){let{api:t,password:n}=e,r=(0,l.YY)(t,n);return{axios:r,busState:(0,l.Li)(r,"get",o.PS),consensusState:(0,l.Li)(r,"get",o.J6),consensusNetwork:(0,l.Li)(r,"get",o.kP),consensusAcceptBlock:(0,l.Li)(r,"post",o.gc),syncerPeers:(0,l.Li)(r,"get",o.gl),syncerConnect:(0,l.Li)(r,"post",o.aU),syncerAddress:(0,l.Li)(r,"get",o.AF),txPoolFee:(0,l.Li)(r,"get",o.Sh),txPoolTransactions:(0,l.Li)(r,"get",o.Oj),txPoolBroadcast:(0,l.Li)(r,"post",o.MR),wallet:(0,l.Li)(r,"get",o.xg),walletEvents:(0,l.Li)(r,"get",o.Wi),walletPending:(0,l.Li)(r,"get",o.zk),walletSend:(0,l.Li)(r,"post",o.zb),walletRedistribute:(0,l.Li)(r,"post",o.f0),walletPrepareForm:(0,l.Li)(r,"post",o.Kr),walletPrepareRenew:(0,l.Li)(r,"post","/bus/wallet/prepare/form"),hosts:(0,l.Li)(r,"post",o.N8),host:(0,l.Li)(r,"get",o.rg),hostsInteractionAdd:(0,l.Li)(r,"post",o.nY),hostsBlocklist:(0,l.Li)(r,"get",o.yu),hostsAllowlist:(0,l.Li)(r,"get",o.MF),hostsAllowlistUpdate:(0,l.Li)(r,"put",o.MF),hostsBlocklistUpdate:(0,l.Li)(r,"put",o.yu),hostResetLostSectorCount:(0,l.Li)(r,"post",o.KP),hostScan:(0,l.Li)(r,"post",o.$G),contracts:(0,l.Li)(r,"get",o.FP),contractsAcquire:(0,l.Li)(r,"post",o.fo),contractsRelease:(0,l.Li)(r,"post",o.sw),contract:(0,l.Li)(r,"get",o.J9),contractAdd:(0,l.Li)(r,"post",o.AD),contractRenew:(0,l.Li)(r,"post",o.Z2),contractDelete:(0,l.Li)(r,"delete",o.J9),contractSize:(0,l.Li)(r,"get",o.cN),contractsPrunable:(0,l.Li)(r,"get",o.z$),buckets:(0,l.Li)(r,"get",o.AJ),bucket:(0,l.Li)(r,"get",o.aq),bucketCreate:(0,l.Li)(r,"post",o.AJ),bucketPolicyUpdate:(0,l.Li)(r,"put",o.mD),bucketDelete:(0,l.Li)(r,"delete",o.aq),objects:(0,l.Li)(r,"get",o.JK),object:(0,l.Li)(r,"get",o.qf),objectAdd:(0,l.Li)(r,"put",o.qf),objectsRename:(0,l.Li)(r,"post",o.oZ),objectsRemove:(0,l.Li)(r,"post",o.c_),objectStats:(0,l.Li)(r,"get",o.VJ),settingsGouging:(0,l.Li)(r,"get",o.IB),settingsPinned:(0,l.Li)(r,"get",o.Ly),settingsS3:(0,l.Li)(r,"get",o.M5),settingsUpload:(0,l.Li)(r,"get",o.cq),settingsGougingUpdate:(0,l.Li)(r,"put",o.IB),settingsPinnedUpdate:(0,l.Li)(r,"put",o.Ly),settingsS3Update:(0,l.Li)(r,"put",o.M5),settingsUploadUpdate:(0,l.Li)(r,"put",o.cq),alerts:(0,l.Li)(r,"get",o.jL),alertsDismiss:(0,l.Li)(r,"post",o.ks),slabObjects:(0,l.Li)(r,"get",o.go),contractMetrics:(0,l.Li)(r,"get",o.hp),walletMetrics:(0,l.Li)(r,"get",o.nI),multipartUploadCreate:(0,l.Li)(r,"post",o.sW),multipartUploadComplete:(0,l.Li)(r,"post",o.Pw),multipartUploadAbort:(0,l.Li)(r,"post",o.w_),multipartUploadListParts:(0,l.Li)(r,"post",o.GV),multipartUploadListUploads:(0,l.Li)(r,"post",o.CM),multipartUploadAddPart:(0,l.Li)(r,"post",o.o5),autopilotConfig:(0,l.Li)(r,"get",s.Kp),autopilotConfigUpdate:(0,l.Li)(r,"put",s.Kp)}}({api:"".concat(n,"/api"),password:r}))},[n,r]),e}()};return(0,r.jsx)(u.Provider,{value:n,children:t})}},90040:function(e,t,n){"use strict";n.d(t,{iV:function(){return X},ZR:function(){return G}});var r=n(52322),i=n(2784),a=n(18575),o=n(60381),s=n(6391),l=n.n(s);let u={amountHosts:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,prune:!1,maxDowntimeHours:void 0,maxConsecutiveScanFailures:void 0,minProtocolVersion:""},c={...u,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,pinnedCurrency:"",pinnedThreshold:void 0,shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonthPinned:void 0,shouldPinMaxDownloadPrice:!1,maxDownloadPriceTBPinned:void 0,shouldPinMaxUploadPrice:!1,maxUploadPriceTBPinned:void 0,uploadPackingEnabled:!0,minShards:void 0,totalShards:void 0};function d(e){return"mainnet"===e?{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(50),maxDowntimeHours:new(l())(336),maxConsecutiveScanFailures:new(l())(10),minProtocolVersion:"1.6.0",prune:!0}:{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(12),maxDowntimeHours:new(l())(336),maxConsecutiveScanFailures:new(l())(10),minProtocolVersion:"1.6.0",prune:!0}}function f(){return{hostBlockHeightLeeway:new(l())(6)}}function h(e){return{uploadPackingEnabled:!0,..."mainnet"===e?{minShards:new(l())(10),totalShards:new(l())(30)}:{minShards:new(l())(2),totalShards:new(l())(6)}}}function p(e){return{...d(e),...f(),...h(e)}}function m(e){let{gouging:t}=e;return{maxStoragePriceTBMonth:(0,o.ll)((0,o.dq)(new(l())(t.maxStoragePrice)),6),maxUploadPriceTB:(0,o.ll)((0,o.LK)(new(l())(t.maxUploadPrice)),6),maxDownloadPriceTB:(0,o.ll)((0,o.LK)(new(l())(t.maxDownloadPrice)),6),maxContractPrice:(0,o.ll)(t.maxContractPrice,6),maxRPCPriceMillion:(0,o.ll)((0,o.x9)(new(l())(t.maxRPCPrice)),6),hostBlockHeightLeeway:new(l())(t.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(l())((0,o.oK)(t.minPriceTableValidity)),minAccountExpiryDays:new(l())((0,o.He)(t.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,o.ll)(t.minMaxEphemeralAccountBalance,6)}}function g(e){var t,n,r;let{autopilot:i,gouging:s,pinned:c,upload:d}=e;return{...function(e){if(!e)return u;let t=new(l())(e.contracts.amount),n=new(l())((0,o.x5)(e.contracts.period)),r=new(l())((0,o.x5)(e.contracts.renewWindow)),i=new(l())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.download),e.contracts.period),2));return{amountHosts:t,periodWeeks:n,renewWindowWeeks:r,downloadTBMonth:i,uploadTBMonth:new(l())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.upload),e.contracts.period),2)),storageTB:(0,o.JW)(new(l())(e.contracts.storage)),prune:e.contracts.prune,maxDowntimeHours:new(l())(e.hosts.maxDowntimeHours),maxConsecutiveScanFailures:new(l())(e.hosts.maxConsecutiveScanFailures),minProtocolVersion:e.hosts.minProtocolVersion||""}}(i),...m({gouging:s}),pinnedCurrency:c.currency,pinnedThreshold:new(l())(c.threshold).times(100),shouldPinMaxStoragePrice:null===(t=c.gougingSettingsPins)||void 0===t?void 0:t.maxStorage.pinned,maxStoragePriceTBMonthPinned:new(l())(c.gougingSettingsPins.maxStorage.value),shouldPinMaxUploadPrice:null===(n=c.gougingSettingsPins)||void 0===n?void 0:n.maxUpload.pinned,maxUploadPriceTBPinned:new(l())(c.gougingSettingsPins.maxUpload.value),shouldPinMaxDownloadPrice:null===(r=c.gougingSettingsPins)||void 0===r?void 0:r.maxDownload.pinned,maxDownloadPriceTBPinned:new(l())(c.gougingSettingsPins.maxDownload.value),uploadPackingEnabled:d.packing.enabled,minShards:new(l())(d.redundancy.minShards),totalShards:new(l())(d.redundancy.totalShards)}}var v=n(83429),y=n(91426),b=n(7699);function x(e){let{autopilotState:t,autopilot:n,gouging:r,pinned:i,upload:a}=e;return!!t.data&&!t.error&&!!n.data&&!n.error&&!!r.data&&!r.error&&!!i.data&&!i.error&&!!a.data&&!a.error&&e}function w(e){let{resources:t,renterdState:n,values:r}=e,i=function(e,t,n){let r=j(t,d(e));return{...n,contracts:{...null==n?void 0:n.contracts,amount:Math.round(r.amountHosts.toNumber()),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(),maxConsecutiveScanFailures:r.maxConsecutiveScanFailures.toNumber(),scoreOverrides:(null==n?void 0:n.hosts.scoreOverrides)||{},minProtocolVersion:r.minProtocolVersion}}}(n.network,r,t.autopilot.data);return{payloads:{autopilot:i,gouging:function(e,t){let n=j(e,f());return{...t,maxRPCPrice:(0,o.qN)((0,o.ZA)(n.maxRPCPriceMillion)).toString(),maxStoragePrice:(0,o.qN)((0,o.iX)(n.maxStoragePriceTBMonth)).toString(),maxUploadPrice:(0,o.qN)((0,o.wf)(n.maxUploadPriceTB)).toString(),maxDownloadPrice:(0,o.qN)((0,o.wf)(n.maxDownloadPriceTB)).toString(),maxContractPrice:(0,o.qN)(n.maxContractPrice).toString(),hostBlockHeightLeeway:Math.round(n.hostBlockHeightLeeway.toNumber()||0),minPriceTableValidity:Math.round((0,o.sW)(n.minPriceTableValidityMinutes.toNumber()||0)),minAccountExpiry:Math.round((0,o.Nr)(n.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,o.qN)(n.minMaxEphemeralAccountBalance).toString()}}(r,t.gouging.data),pinned:function(e,t){let n=j(e,{});return{...t,currency:n.pinnedCurrency,threshold:n.pinnedThreshold.div(100).toNumber(),gougingSettingsPins:{maxStorage:{pinned:n.shouldPinMaxStoragePrice,value:n.maxStoragePriceTBMonthPinned.toNumber()},maxDownload:{pinned:n.shouldPinMaxDownloadPrice,value:n.maxDownloadPriceTBPinned.toNumber()},maxUpload:{pinned:n.shouldPinMaxUploadPrice,value:n.maxUploadPriceTBPinned.toNumber()}}}}(r,t.pinned.data),upload:function(e,t){let n=j(e,h("mainnet"));return{...t,packing:{...t.packing,enabled:n.uploadPackingEnabled},redundancy:{...t.redundancy,minShards:n.minShards.toNumber(),totalShards:n.totalShards.toNumber()}}}(r,t.upload.data)}}}function j(e,t){let n={...e};return(0,a.qPQ)(n).forEach(e=>{let[r,i]=e,a=t[r];a&&(null==i||""===i)&&(n[r]=a)}),n}var k=n(63955),E=n(6459),_=n(5880),C=n(28420);function S(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 O(e){let{form:t,priceInSiacoin:n,units:i}=e,s=t.watch("minShards"),l=t.watch("totalShards"),u=(0,_.i)({minShards:s,totalShards:l});return n&&s&&l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(S,{tip:(0,r.jsxs)(r.Fragment,{children:["Price per ",i," when factoring in the configured"," ",null==s?void 0:s.toString()," of ",null==l?void 0:l.toString()," redundancy."]}),icon:(0,r.jsx)(C.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 M=(0,r.jsx)(r.Fragment,{children:"The system found a recommendation that would increase the number of usable hosts."});var P=n(31405);function A(){let e=(0,P.BF)({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.useMemo)(()=>e.data?new(l())((0,o.dq)((0,o.ll)(e.data.settings.storage_price)).toFixed(0)):void 0,[e.data]),n=(0,i.useMemo)(()=>e.data?new(l())((0,o.LK)((0,o.ll)(e.data.settings.upload_price)).toFixed(0)):void 0,[e.data]),r=(0,i.useMemo)(()=>e.data?new(l())((0,o.LK)((0,o.ll)(e.data.settings.download_price)).toFixed(0)):void 0,[e.data]),a=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.contract_price).toFixed(0)):void 0,[e.data]),s=(0,i.useMemo)(()=>e.data?(0,o.x9)((0,o.ll)(e.data.settings.base_rpc_price)):void 0,[e.data]);return(0,i.useMemo)(()=>t&&n&&r&&a&&s?{storageAverage:t,uploadAverage:n,downloadAverage:r,contractAverage:a,rpcAverage:s}:{},[t,n,r,a,s])}function T(e){var t;let{form:n,fields:i,recommendations:s}=e,{storageAverage:l}=A(),u=n.watch("maxStoragePriceTBMonth"),c=null==s?void 0:null===(t=s.maxStoragePriceTBMonth)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:l,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:c,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:u,units:"TB/month"})]})}function N(e){var t;let{form:n,fields:i,recommendations:s}=e,{storageAverage:l}=A(),{rate:u}=(0,E.x)(n),c=n.watch("maxStoragePriceTBMonthPinned"),d=c&&u?(0,o.gP)(c,u):void 0,f=null==s?void 0:null===(t=s.maxStoragePriceTBMonthPinned)||void 0===t?void 0:t.targetValue,h=f&&u?(0,o.gP)(f,u):void 0;return(0,r.jsxs)(r.Fragment,{children:[l&&u&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:l.times(u),options:!0})}}),h&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(h),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:f,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:d,units:"TB/month"})]})}function R(e){var t;let{form:n,fields:i,recommendations:s}=e,{uploadAverage:l}=A(),u=n.watch("maxUploadPriceTB"),c=null==s?void 0:null===(t=s.maxUploadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:l,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:c,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:u,units:"TB"})]})}function D(e){var t;let{form:n,fields:i,recommendations:s}=e,{rate:l}=(0,E.x)(n),{uploadAverage:u}=A(),c=n.watch("maxUploadPriceTBPinned"),d=c&&l?(0,o.gP)(c,l):void 0,f=null==s?void 0:null===(t=s.maxUploadPriceTBPinned)||void 0===t?void 0:t.targetValue,h=f&&l?(0,o.gP)(f,l):void 0;return(0,r.jsxs)(r.Fragment,{children:[u&&l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:u.times(l),options:!0})}}),h&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(h),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:f,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:d,units:"TB"})]})}function L(e){var t;let{form:n,fields:i,recommendations:s}=e,{downloadAverage:l}=A(),u=null==s?void 0:null===(t=s.maxDownloadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:l,options:!0})}}),u&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:u,options:!0})})]})}function z(e){var t;let{form:n,fields:i,recommendations:s}=e,{rate:l}=(0,E.x)(n),{downloadAverage:u}=A(),c=null==s?void 0:null===(t=s.maxDownloadPriceTBPinned)||void 0===t?void 0:t.targetValue,d=c&&l?(0,o.gP)(c,l):null;return(0,r.jsxs)(r.Fragment,{children:[u&&l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:u.times(l),options:!0})}}),d&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(d),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:c,options:!0})})]})}function F(e){var t;let{form:n,fields:i,recommendations:s}=e,l=null==s?void 0:null===(t=s.maxRPCPriceMillion)||void 0===t?void 0:t.targetValue;return(0,r.jsx)(r.Fragment,{children:l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxRPCPriceMillion",value:l,options:!0})})})}function Z(e){var t;let{form:n,fields:i,recommendations:s}=e,l=null==s?void 0:null===(t=s.maxContractPrice)||void 0===t?void 0:t.targetValue;return(0,r.jsx)(r.Fragment,{children:l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxContractPrice",value:l,options:!0})})})}function I(e){var t,n,i,s;let{advancedDefaults:u,recommendations:c,configViewMode:d,validationContext:f}=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",validation:{required:"required"}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",validation:{required:"required"}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",validation:{required:"required"}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==u?void 0:u.periodWeeks,suggestionTip:"Typically ".concat(null==u?void 0:u.periodWeeks," weeks."),hidden:"basic"===d,validation:{validate:{required:B(f)}}},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==u?void 0:u.renewWindowWeeks,suggestionTip:"Typically ".concat(null==u?void 0:u.renewWindowWeeks," weeks."),hidden:"basic"===d,validation:{validate:{required:B(f)}}},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==u?void 0:u.amountHosts,suggestionTip:"Typically ".concat(null==u?void 0:u.amountHosts," hosts."),hidden:"basic"===d,validation:{validate:{required:B(f)}}},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==u?void 0:u.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(a.EKh,{children:null==u?void 0:u.prune}),"."]}),hidden:"basic"===d,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==u?void 0:u.maxDowntimeHours,suggestionTip:(null==u?void 0:u.maxDowntimeHours)?"Defaults to ".concat(null==u?void 0:u.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,a.$Gr)(new(l())((0,o.XA)(null==u?void 0:u.maxDowntimeHours.toNumber())),1)," days."):void 0,hidden:"basic"===d,validation:{validate:{required:B(f)}}},maxConsecutiveScanFailures:{type:"number",category:"hosts",title:"Max consecutive scan failures",description:(0,r.jsx)(r.Fragment,{children:"The maximum number of consecutive scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:null==u?void 0:u.maxConsecutiveScanFailures,suggestionTip:(null==u?void 0:u.maxConsecutiveScanFailures)?"Defaults to ".concat(null==u?void 0:u.maxConsecutiveScanFailures.toNumber(),"."):void 0,hidden:"basic"===d,validation:{validate:{required:B(f)}}},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==u?void 0:u.minProtocolVersion,suggestionTip:"Defaults to ".concat(null==u?void 0:u.minProtocolVersion,"."),hidden:"basic"===d,validation:{validate:{required:B(f),version:B(f,e=>/^\d+\.\d+\.\d+$/.test(e||"")||"must be a valid version number")}}},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"===d,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",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(T,{form:t,fields:n,recommendations:c})}},maxStoragePriceTBMonthPinned:{title:"",description:"",units:"/TB/month",type:"fiat",category:"gouging",validation:{validate:{required:V("shouldPinMaxStoragePrice",(e,t)=>!t.shouldPinMaxStoragePrice||!!e||"required"),currency:V("shouldPinMaxStoragePrice",(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:V("shouldPinMaxStoragePrice",(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)(N,{form:t,fields:n,recommendations:c})}},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",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(R,{form:t,fields:n,recommendations:c})}},maxUploadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",category:"gouging",validation:{validate:{required:V("shouldPinMaxUploadPrice",(e,t)=>!t.shouldPinMaxUploadPrice||!!e||"required"),currency:V("shouldPinMaxUploadPrice",(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:V("shouldPinMaxUploadPrice",(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)(D,{form:t,fields:n,recommendations:c})}},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",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(L,{form:t,fields:n,recommendations:c})}},maxDownloadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",category:"gouging",validation:{validate:{required:V("shouldPinMaxDownloadPrice",(e,t)=>!t.shouldPinMaxDownloadPrice||!!e||"required"),currency:V("shouldPinMaxDownloadPrice",(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:V("shouldPinMaxDownloadPrice",(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)(z,{form:t,fields:n,recommendations:c})}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),suggestion:new(l())(1),suggestionTip:"The suggested value is 1 SC.",decimalsLimitSc:6,tipsDecimalsLimitSc:0,hidden:"basic"===d,validation:{validate:{required:B(f)}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(Z,{form:t,fields:n,recommendations:c})}},maxRPCPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,suggestion:new(l())(10),suggestionTip:"The suggested value is 10 SC.",tipsDecimalsLimitSc:0,hidden:"basic"===d,validation:{validate:{required:B(f)}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(F,{form:t,fields:n,recommendations:c})}},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,...c.hostBlockHeightLeeway?{suggestionLabel:"Match with more hosts",suggestion:null===(t=c.hostBlockHeightLeeway)||void 0===t?void 0:t.targetValue,suggestionTip:"This value will help you match with more hosts."}:{suggestion:null==u?void 0:u.hostBlockHeightLeeway,suggestionTip:"The recommended value is ".concat(null==u?void 0:u.hostBlockHeightLeeway.toNumber().toLocaleString()," blocks.")},hidden:"basic"===d,validation:{validate:{required:B(f),min:B(f,e=>new(l())(e||0).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"===d,suggestionLabel:"Match with more hosts",suggestion:null===(n=c.minPriceTableValidityMinutes)||void 0===n?void 0:n.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:B(f),min:B(f,e=>new(l())(e||0).gte((0,o.GX)(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"===d,suggestionLabel:"Match with more hosts",suggestion:null===(i=c.minAccountExpiryDays)||void 0===i?void 0:i.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:B(f),min:B(f,e=>new(l())(e||0).gte((0,o.XA)(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"===d,suggestionLabel:"Match with more hosts",suggestion:null===(s=c.minMaxEphemeralAccountBalance)||void 0===s?void 0:s.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:B(f),min:B(f,e=>new(l())(e||0).gte(1)||"must be at least 1 SC")}}},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==u?void 0:u.minShards,suggestionTip:"Typically ".concat(null==u?void 0:u.minShards," shards."),units:"shards",hidden:"basic"===d,validation:{validate:{required:B(f),min:B(f,e=>new(l())(e||0).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==u?void 0:u.totalShards,suggestionTip:"Typically ".concat(null==u?void 0:u.totalShards," shards."),units:"shards",hidden:"basic"===d,validation:{validate:{required:B(f),gteMinShards:B(f,(e,t)=>new(l())(e||0).gte(t.minShards||0)||"must be at least equal to min shards"),max:B(f,e=>new(l())(e||0).lt(256)||"must be less than 256")}}},pinnedCurrency:{category:"pinning",title:"Pinned currency",description:"Currency to use for fields where price pinning is enabled.",type:"select",options:[...v.mV.map(e=>{let{id:t,label:n}=e;return{label:n,value:t}}),{label:"none",value:""}],validation:{required:"required"}},pinnedThreshold:{category:"pinning",title:"Pinned currency change threshold",type:"number",suggestionTip:"A threshold of 2% is recommended.",suggestion:new(l())(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:{required:"required",validate:{max:e=>new(l())(e||0).lte(100)||"must be at most 100%",min:e=>new(l())(e||0).gte(0)||"must be at least 0%"}}}}}function B(e,t){return(n,r)=>"advanced"!==e.configViewMode||(t?t(n,r):!!n||"required")}function V(e,t){return(n,r)=>!r[e]||(t?t(n,r):!!n||"required")}var U=n(92762),H=n(75346);let W=I({validationContext:{configViewMode:"basic"},configViewMode:"basic",recommendations:{}}),$={maxStoragePriceTBMonth:"maxStoragePriceTBMonthGroup",maxDownloadPriceTB:"maxDownloadPriceTBGroup",maxUploadPriceTB:"maxUploadPriceTBGroup",maxRPCPriceMillion:"maxRPCPriceMillionGroup",maxStoragePriceTBMonthPinned:"maxStoragePriceTBMonthGroup",maxUploadPriceTBPinned:"maxUploadPriceTBGroup",maxDownloadPriceTBPinned:"maxDownloadPriceTBGroup",maxContractPrice:"maxContractPrice",hostBlockHeightLeeway:"hostBlockHeightLeeway",minPriceTableValidityMinutes:"minPriceTableValidityMinutes",minAccountExpiryDays:"minAccountExpiryDays",minMaxEphemeralAccountBalance:"minMaxEphemeralAccountBalance"},q={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"},K={amountHosts:new(l())(0),periodWeeks:new(l())(0),renewWindowWeeks:new(l())(0),downloadTBMonth:new(l())(0),uploadTBMonth:new(l())(0),storageTB:new(l())(0),prune:!1,maxDowntimeHours:new(l())(0),maxConsecutiveScanFailures:new(l())(0),minProtocolVersion:"",uploadPackingEnabled:!0,maxRPCPriceMillion:new(l())(0),shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonth:new(l())(0),maxStoragePriceTBMonthPinned:new(l())(0),maxContractPrice:new(l())(0),shouldPinMaxDownloadPrice:!1,maxDownloadPriceTB:new(l())(0),maxDownloadPriceTBPinned:new(l())(0),shouldPinMaxUploadPrice:!1,maxUploadPriceTB:new(l())(0),maxUploadPriceTBPinned:new(l())(0),hostBlockHeightLeeway:new(l())(0),minPriceTableValidityMinutes:new(l())(0),minAccountExpiryDays:new(l())(0),minMaxEphemeralAccountBalance:new(l())(0),minShards:new(l())(0),totalShards:new(l())(0),pinnedCurrency:"usd",pinnedThreshold:new(l())(0)},Y=(0,i.createContext)({}),G=()=>(0,i.useContext)(Y);function X(e){let{children:t}=e,n=function(){let{autopilotState:e,autopilot:t,gouging:n,pinned:r,upload:s,resources:l}=function(){let e=(0,y.YX)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),t=(0,y.e$)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),n=(0,y.en)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),r=(0,y.E5)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),a=(0,y.NF)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),s=(0,v.Hv)();return{resources:(0,i.useMemo)(()=>({autopilotState:{data:e.data,error:e.error},autopilot:{data:t.data,error:t.error},gouging:{data:n.data,error:n.error},pinned:{data:r.data,error:r.error},upload:{data:a.data,error:a.error},appSettings:{settings:{siaCentral:s.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,n.data,n.error,r.data,r.error,a.data,a.error,s.settings.siaCentral]),autopilotState:e,autopilot:t,gouging:n,pinned:r,upload:a,appSettings:s}}(),{form:u,storageTB:d,evaluation:f,redundancyMultiplier:h,fields:j,configViewMode:_,setConfigViewMode:C}=function(e){let{resources:t}=e,n=(0,k.cI)({mode:"all",defaultValues:c}),r=n.watch("maxStoragePriceTBMonth"),s=n.watch("maxDownloadPriceTB"),l=n.watch("maxUploadPriceTB"),u=n.watch("storageTB"),d=n.watch("downloadTBMonth"),f=n.watch("uploadTBMonth"),h=n.watch("minShards"),g=n.watch("totalShards"),b=(0,i.useMemo)(()=>(0,o.aU)(h,g),[h,g]),[j,_]=(0,U.Z)("v0/config/mode",{defaultValue:"basic"});(0,i.useEffect)(()=>{n.trigger()},[n]),(0,i.useEffect)(()=>{n.trigger()},[j]);let C=function(e){var t,n,r,s,l,u,c,d,f,h,g,b;let{form:j,resources:k}=e,_=j.watch(),C=(0,y.d_)(),S=(0,i.useMemo)(()=>!!x(k)&&!!j.formState.isValid&&!!C.data,[j.formState.isValid,k,C.data]),O=(0,H.w)({form:j}),M=(0,i.useMemo)(()=>{var e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",n=p(t),r={...K,...n};return(0,a.qPQ)(e).forEach(e=>{let[t,n]=e;void 0!==n&&(r[t]=n)}),r}({..._,...O},null===(e=C.data)||void 0===e?void 0:e.network)},[_,O,null===(t=C.data)||void 0===t?void 0:t.network]),P=(0,i.useMemo)(()=>{if(!S||!C.data)return;let{payloads:e}=w({resources:k,renterdState:C.data,values:M});return e},[M,k,C,S]),A=(null==P?void 0:null===(n=P.autopilot)||void 0===n?void 0:n.contracts.amount)||0,T=Math.round(1.5*A),N=Math.round(1.1*A),R=!!P,D=(0,y.Mz)({disabled:!R,payload:{gougingSettings:null==P?void 0:P.gouging,redundancySettings:null==P?void 0:P.upload.redundancy,autopilotConfig:null==P?void 0:P.autopilot},config:{swr:{keepPreviousData:R}}}),L=null===(s=D.data)||void 0===s?void 0:null===(r=s.recommendation)||void 0===r?void 0:r.gougingSettings,z=(null===(l=D.data)||void 0===l?void 0:l.usable)||0,F=D.data&&z{let t={maxStoragePriceTBMonth:!X,maxUploadPriceTB:!J,maxDownloadPriceTB:!Q,maxStoragePriceTBMonthPinned:X,maxUploadPriceTBPinned:J,maxDownloadPriceTBPinned:Q};return void 0===t[e]||t[e]},[X,J,Q]),{pinnedCurrency:et,rate:en}=(0,E.x)(j),er=(0,i.useMemo)(()=>{if(!P||!U||G-z<=0)return[];let e=m({gouging:U}),t=function(e){let{exchangeRate:t,maxStoragePriceTBMonth:n,maxDownloadPriceTB:r,maxUploadPriceTB:i}=e;if(t)return{maxStoragePriceTBMonthPinned:(0,o.C4)(n,t),maxDownloadPriceTBPinned:(0,o.C4)(r,t),maxUploadPriceTBPinned:(0,o.C4)(i,t)}}({exchangeRate:en,maxStoragePriceTBMonth:e.maxStoragePriceTBMonth,maxDownloadPriceTB:e.maxDownloadPriceTB,maxUploadPriceTB:e.maxUploadPriceTB}),n={...e,...t},r=[];return Object.entries(n).forEach(e=>{let[t,n]=e;if(!ee(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",s={key:t,hrefId:$[t],title:q[t],currentValue:n,targetValue:r,direction:a,currentLabel:"",targetLabel:""};if("siacoin"===W[t].type){let e=e=>{var n;return"".concat((0,o.Vz)((0,o.qN)(e),{fixed:1})).concat((null===(n=W[t].units)||void 0===n?void 0:n.replace("SC/","/"))||"")};s.currentLabel=e(n),s.targetLabel=e(r)}if("number"===W[t].type){let e=e=>"".concat((0,o.yF)(e)," ").concat(W[t].units);s.currentLabel=e(n),s.targetLabel=e(r)}if("fiat"===W[t].type){let e=v.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(W[t].units);s.currentLabel=a(n),s.targetLabel=a(r)}return s}({key:t,currentValue:i,targetValue:n,currencyId:et});a&&r.push(a)}),r},[U,P,M,ee,et,z,G,en]);return{hostMargin50:.5,hostMargin10:.1,hostTarget50:T,hostTarget10:N,usableHostsCurrent:z,userContractCountTarget:A,usableHostsAfterRecommendation:G,hasDataToEvaluate:S,needsRecommendations:F,foundRecommendation:!!er.length,recommendations:er,recommendationMargin:I?"50%":V?"10%":L?"0%":"N/A"}}({form:n,resources:t}),S=(0,y.d_)(),O=(0,i.useRef)({configViewMode:j});return(0,i.useEffect)(()=>{O.current.configViewMode=j},[j]),{form:n,fields:(0,i.useMemo)(()=>{let e=S.data?p(S.data.network):void 0,t=C.recommendations.reduce((e,t)=>({...e,[t.key]:t}),{});return I({validationContext:O.current,configViewMode:j,advancedDefaults:e,recommendations:t})},[j,S.data,C.recommendations]),evaluation:C,maxStoragePriceTBMonth:r,maxDownloadPriceTB:s,maxUploadPriceTB:l,storageTB:u,downloadTBMonth:d,uploadTBMonth:f,minShards:h,totalShards:g,redundancyMultiplier:b,configViewMode:j,setConfigViewMode:_}}({resources:l}),S=(0,i.useMemo)(()=>{let e=x(l);if(e)return g({autopilot:e.autopilot.data,gouging:e.gouging.data,pinned:e.pinned.data,upload:e.upload.data})},[l]),O=(0,i.useMemo)(()=>(function(e){let{gouging:t,pinned:n,upload:r}=e;return!!(t.error||n.error||r.error)})(l),[l]),M=(0,i.useCallback)(async()=>{let i=await e.mutate(),o=await t.mutate(),l=await n.mutate(),c=await r.mutate(),d=await s.mutate();if(!i||!o||!l||!d||!c){(0,a.OHV)({title:"Error fetching settings"});return}u.reset(g({autopilot:o,gouging:l,pinned:c,upload:d}))},[u,e,t,n,r,s]);(0,a.u$d)({form:u,remoteValues:S}),(0,a.Z4p)({form:u,remoteValues:S});let{changeCount:P}=(0,a.mYE)({form:u}),A=function(e){let{resources:t,revalidateAndResetForm:n}=e,r=(0,y.Bl)(),o=(0,y.oe)(),s=(0,y.oX)(),l=(0,y.Vp)(),u=(0,y.Cl)(),c=(0,y.d_)(),d=(0,v.Tu)();return(0,i.useCallback)(async e=>{let i=x(t);if(!i||!c.data)return;let{payloads:f}=w({resources:i,renterdState:c.data,values:e}),h=[o.put({payload:f.autopilot}),s.put({payload:f.gouging}),l.put({payload:f.pinned}),u.put({payload:f.upload})],p=(await Promise.all(h)).find(e=>e.error);if(p){(0,a.OHV)({title:"Error updating configuration",body:p.error});return}r.post({payload:{forceScan:!0}}),(0,a.OPV)({title:"Configuration has been saved"}),(async()=>{await (0,v.gw)(5e3),d(e=>e.startsWith(b.N8))})(),await n()},[t,c.data,o,s,l,u,n,r,d])}({resources:l,revalidateAndResetForm:M}),T=(0,a.WsO)(j),N=(0,i.useMemo)(()=>u.handleSubmit(A,T),[u,A,T]),R=(0,i.useRef)(null),D=(0,i.useCallback)(async e=>{R.current&&(0,a.S5N)(R.current,e)},[]);return{onSubmit:N,revalidateAndResetForm:M,form:u,fields:j,changeCount:P,redundancyMultiplier:h,storageTB:d,configViewMode:_,setConfigViewMode:C,remoteError:O,configRef:R,takeScreenshot:D,evaluation:f}}();return(0,r.jsx)(Y.Provider,{value:n,children:t})}},75346:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(60381),i=n(2784),a=n(6459);function o(e){let{form:t}=e,n=t.watch("shouldPinMaxStoragePrice"),o=t.watch("shouldPinMaxDownloadPrice"),s=t.watch("shouldPinMaxUploadPrice"),l=t.watch("maxStoragePriceTBMonth"),u=t.watch("maxStoragePriceTBMonthPinned"),c=t.watch("maxDownloadPriceTB"),d=t.watch("maxDownloadPriceTBPinned"),f=t.watch("maxUploadPriceTB"),h=t.watch("maxUploadPriceTBPinned"),{rate:p}=(0,a.x)(t),m=n||o||s;return(0,i.useMemo)(()=>{if((!m||p)&&(!n||u)&&(!o||d)&&(!s||h))return{maxStoragePriceTBMonth:n&&u&&p?(0,r.gP)(u,p):l,maxDownloadPriceTB:o&&d&&p?(0,r.gP)(d,p):c,maxUploadPriceTB:s&&h&&p?(0,r.gP)(h,p):f}},[m,p,n,u,o,d,s,h,l,c,f])}},6459:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(83429);function i(e){let t=e.watch("pinnedCurrency"),{rate:n}=(0,r.J)({currency:t||void 0});return{rate:n,pinnedCurrency:t}}},5880:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(2784),i=n(60381);function a(e){let{minShards:t,totalShards:n}=e;return(0,r.useMemo)(()=>(0,i.aU)(t,n),[t,n])}},74282:function(e,t,n){"use strict";n.d(t,{x:function(){return _},G:function(){return E}});var r=n(52322),i=n(18575),a=n(5632),o=n(91426),s=n(2784),l=n(46850),u=n(28420),c=n(60381),d=n(58283),f=n(6391),h=n.n(f);let p=[{id:"actions",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,r.jsx)(i.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},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,{testId:"renewedFrom",color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:o,label:"contract ID"})]})})]})}},{id:"usability",label:"usability",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{usability:t}}=e,n="",a="",o=null,s="green";if("good"===t)n="good",a="This contract is usable and good for renewal.",o=(0,r.jsx)(u.Y3p,{className:"scale-75"}),s="green";else{if("bad"!==t)return null;n="bad",a="This contract is unusable and will not be renewed.",o=(0,r.jsx)(u.MKy,{className:"scale-75"}),s="red"}return(0,r.jsx)(i.ua7,{content:a,children:(0,r.jsxs)(i.Cts,{variant:s,interactive:!1,size:"small",className:"flex gap-px items-center pl-px",children:[o,n]})})}},{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,{size:"12",className:"flex-1",weight:"medium",children:"pending"}),(0,r.jsx)(i.xvT,{size:"12",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,{size:"12",className:"flex-1",weight:"medium",children:"active"}),(0,r.jsx)(i.xvT,{size:"12",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,{size:"12",className:"flex-1",weight:"medium",children:"complete"}),(0,r.jsx)(i.xvT,{size:"12",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,{size:"12",className:"flex-1",weight:"medium",children:"failed"}),(0,r.jsx)(i.xvT,{size:"12",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:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:a,proofWindowHeightEnd:o,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,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},context:{isFetchingPrunableSizeAll:o}}=e,s=n||o;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",children:[(0,r.jsx)(m,{value:new(h())(a),tip:"The amount of data that can be pruned from this contract"}),(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",children:[t.filteredStats.prunableSizeTotal&&(0,r.jsx)(m,{value:t.filteredStats.prunableSizeTotal,tip:"The amount of data that can be pruned from contracts in the filtered set of active contracts"}),(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:"initialRenterFunds",label:"initial renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{initialRenterFunds:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})},summary:e=>{let{context:{filteredStats:t}}=e;return t.initialRenterFundsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.initialRenterFundsTotal.negated(),tooltip:"Total initial renter funds across the filtered set of active contracts"}):null}},{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 t.spendingUploadsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingUploadsTotal.negated(),tooltip:"Uploads spending across the filtered set of active contracts"}):null}},{id:"spendingDeletions",label:"deletions spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDeletions:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})},summary:e=>{let{context:{filteredStats:t}}=e;return t.spendingDeletionsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingDeletionsTotal.negated(),tooltip:"Deletions spending across the filtered set of active contracts"}):null}},{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 t.spendingFundAccountTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingFundAccountTotal.negated(),tooltip:"Fund account spending across the filtered set of active contracts"}):null}},{id:"spendingSectorRoots",label:"sector roots spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingSectorRoots:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})},summary:e=>{let{context:{filteredStats:t}}=e;return t.spendingSectorRootsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingSectorRootsTotal.negated(),tooltip:"Sector roots spending across the filtered set of active contracts"}):null}}];function m(e){let{value:t,tip:n}=e;return(0,r.jsx)(i.ua7,{content:n,children:(0,r.jsxs)("div",{className:"flex items-center gap-0.5","aria-label":"prunable size",children:[(0,r.jsx)(i.m2c,{size:"12",value:t,format:e=>(0,c.vW)(e),variant:"value"}),(0,r.jsx)(u.jBN,{className:"scale-75"})]})})}var g=n(16211),v=n(55699);function y(e){let t=(0,c.sW)(5);return Math.round(e/t)*t}function b(e){let{start:t,disabled:n,contractId:a}=e,l=y(t),u=(0,c.Nr)(1),d=(0,s.useMemo)(()=>Math.max(Math.round((y(new Date().getTime())-l)/u),1),[l,u]),f=(0,s.useMemo)(()=>{let e={start:new Date(l||0).toISOString(),interval:u,n:d};return a&&(e.contractid=a),e},[l,u,d,a]),p=(0,o.Yy)({disabled:n,params:f});return{contractMetrics:(0,s.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=p.data)||void 0===e?void 0:e.map(e=>({uploadSpending:Number(e.uploadSpending),listSpending:Number(e.listSpending),deleteSpending:Number(e.deleteSpending),fundAccountSpending:Number(e.fundAccountSpending),remainingCollateral:Number(e.remainingCollateral),remainingFunds:Number(e.remainingFunds),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,i.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],enabledTip:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],categories:["funding","spending"],data:{remainingFunds:{label:"remaining funds",category:"funding",color:i.O9T.emerald[600]},remainingCollateral:{label:"remaining collateral",category:"funding",pattern:!0,color:i.O9T.emerald[600]},fundAccountSpending:{label:"fund account",category:"spending",color:i.O9T.red[600]},uploadSpending:{label:"upload",category:"spending",color:i.O9T.red[600]},listSpending:{label:"list",category:"spending",color:i.O9T.red[600]},deleteSpending:{label:"delete",category:"spending",color:i.O9T.red[600]}},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(i.ho9,{variant:"value",value:new(h())(t)})},formatTimestamp:u===(0,c.Nr)(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:p.isValidating&&!p.data}},[p.data,p.isValidating,u])}}var x=n(99634),w=n(31405),j=n(28245);let k=(0,s.createContext)({}),E=()=>(0,s.useContext)(k);function _(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)("list"),[n,r]=(0,s.useState)("spending"),u=(0,a.useRouter)(),d=Number(u.query.limit||50),f=Number(u.query.offset||0),m=(0,o.GP)({config:{swr:{refreshInterval:x.h}}}),y=(0,g.n)(),k=y.isSynced?y.nodeBlockHeight:y.estimatedBlockHeight,{dataset:E,isFetchingPrunableSizeAll:_,isFetchingPrunableSizeById:C,fetchPrunableSize:S,fetchPrunableSizeAll:O,hasFetchedAllPrunableSize:M}=function(){let e=(0,o.GP)({config:{swr:{refreshInterval:x.h}}}),t=(0,w.JL)(),n=(0,s.useMemo)(()=>{var e;return(null===(e=t.data)||void 0===e?void 0:e.hosts)||[]},[t.data]),r=(0,g.n)(),a=r.isSynced?r.nodeBlockHeight:r.estimatedBlockHeight,l=(0,s.useMemo)(()=>{var t;if(e.data)return(null===(t=e.data)||void 0===t?void 0:t.map(e=>{var t;let r="0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,i=(0,c.jr)(a,e.startHeight),o=e.windowStart,s=(0,c.jr)(a,o);return{id:e.id,state:e.state,hostIp:e.hostIP,hostKey:e.hostKey,location:null===(t=n.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:i,usability:e.usability,startTime:i,endTime:s,contractHeightStart:e.startHeight,contractHeightEnd:o,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:r,renewedFrom:e.renewedFrom,initialRenterFunds:new(h())(e.initialRenterFunds),spendingUploads:new(h())(e.spending.uploads),spendingDeletions:new(h())(e.spending.deletions),spendingSectorRoots:new(h())(e.spending.sectorRoots),spendingFundAccount:new(h())(e.spending.fundAccount),size:new(h())(e.size),onClick:()=>null,isSelected:!1}}))||[]},[e.data,n,a]),{prunableSizes:u,isFetchingPrunableSizeAll:d,isFetchingPrunableSizeById:f,fetchPrunableSize:p,fetchPrunableSizeAll:m}=function(){let{bus:e}=(0,j.q)(),[t,n]=(0,s.useState)({}),[r,a]=(0,s.useState)({}),[o,l]=(0,s.useState)(!1),u=(0,s.useCallback)(async()=>{try{l(!0);let t=await (null==e?void 0:e.contractsPrunable());n(e=>{var n;return{...e,...null==t?void 0: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{l(!1)}},[e]);return{prunableSizes:t,isFetchingPrunableSizeAll:o,isFetchingPrunableSizeById:r,fetchPrunableSize:(0,s.useCallback)(async t=>{try{a(e=>({...e,[t]:!0}));let r=await (null==e?void 0:e.contractSize({params:{id:t}}));if(!r)return;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}}(),v=(0,s.useMemo)(()=>(null==l?void 0:l.map(e=>{var t,n;return{...e,hasFetchedPrunableSize:(null===(t=u[e.id])||void 0===t?void 0:t.prunable)!==void 0,prunableSize:(null===(n=u[e.id])||void 0===n?void 0:n.prunable)!==void 0?new(h())(u[e.id].prunable):void 0,isFetchingPrunableSize:f[e.id],fetchPrunableSize:()=>p(e.id)}}))||[],[l,u,p,f]),y=(0,s.useMemo)(()=>!!(null==v?void 0:v.every(e=>e.hasFetchedPrunableSize)),[v]);return{dataset:v,isFetchingPrunableSizeAll:d,isFetchingPrunableSizeById:f,fetchPrunableSize:p,fetchPrunableSizeAll:m,hasFetchedAllPrunableSize:y}}(),{filters:P,setFilter:A,removeFilter:T,removeLastFilter:N,resetFilters:R}=(0,i.Wdu)(),{configurableColumns:D,enabledColumns:L,sortableColumns:z,toggleColumnVisibility:F,setColumnsVisible:Z,setColumnsHidden:I,toggleSort:B,setSortDirection:V,setSortField:U,sortField:H,sortDirection:W,resetDefaultColumnVisibility:$}=(0,i.oy6)("renterd/v0/contracts",{columns:p,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),q=(0,i._4u)({dataset:E,filters:P,sortField:H,sortDirection:W}),K=(0,s.useMemo)(()=>{if(q)return q.slice(f,f+d)},[q,f,d]),{range:Y}=(0,s.useMemo)(()=>(0,i.EJC)(k,K||[]),[k,K]),G=(0,s.useMemo)(()=>p.filter(e=>e.fixed||L.includes(e.id)),[L]),X=(0,i.c2j)(q,m.isValidating,m.error,P),J=(0,v.B)(),Q=function(e){let{datasetFiltered:t}=e,n=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.size),new(h())(0))},[t]),r=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>t.prunableSize?e.plus(t.prunableSize):e,new(h())(0))},[t]),i=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.initialRenterFunds),new(h())(0))},[t]),a=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingUploads),new(h())(0))},[t]),o=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingDeletions),new(h())(0))},[t]),l=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingFundAccount),new(h())(0))},[t]),u=(0,s.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingSectorRoots),new(h())(0))},[t]);return(0,s.useMemo)(()=>({sizeTotal:n,prunableSizeTotal:r,initialRenterFundsTotal:i,spendingUploadsTotal:a,spendingDeletionsTotal:o,spendingFundAccountTotal:l,spendingSectorRootsTotal:u}),[n,r,i,a,o,l,u])}({datasetFiltered:q}),ee=(0,i.A7R)(K),et=(0,s.useMemo)(()=>{if(K)return K.map(e=>({...e,onClick:t=>ee.onSelect(e.id,t),isSelected:!!ee.selection[e.id]}))},[K,ee]),en=(0,s.useMemo)(()=>({currentHeight:y.estimatedBlockHeight,contractsTimeRange:Y,siascanUrl:J,hasFetchedAllPrunableSize:M,isFetchingPrunableSizeAll:_,fetchPrunableSizeAll:O,filteredStats:Q,multiSelect:ee}),[y.estimatedBlockHeight,Y,J,M,_,O,Q,ee]),er=(0,s.useMemo)(()=>{if(1===ee.selectedIds.length){let e=ee.selectedIds[0];return null==E?void 0:E.find(t=>t.id===e)}},[E,ee.selectedIds]),{contractMetrics:ei}=b({start:new Date().getTime()-(0,c.Nr)(30)}),{contractMetrics:ea}=b({contractId:null==er?void 0:er.id,start:(null==er?void 0:er.startTime)||0,disabled:!er});return{dataState:X,limit:d,offset:f,isLoading:m.isLoading,error:m.error,pageCount:(null==et?void 0:et.length)||0,datasetCount:(null==E?void 0:E.length)||0,datasetFilteredCount:(null==q?void 0:q.length)||0,columns:G,dataset:E,cellContext:en,datasetPage:et,configurableColumns:D,enabledColumns:L,sortableColumns:z,toggleColumnVisibility:F,setColumnsVisible:Z,setColumnsHidden:I,toggleSort:B,setSortDirection:V,setSortField:U,sortField:H,filters:P,setFilter:A,removeFilter:T,removeLastFilter:N,resetFilters:R,sortDirection:W,resetDefaultColumnVisibility:$,viewMode:e,setViewMode:t,graphMode:n,setGraphMode:r,selectedContract:er,allContractsSpendingMetrics:ei,selectedContractSpendingMetrics:ea,isFetchingPrunableSizeAll:_,isFetchingPrunableSizeById:C,fetchPrunableSize:S,fetchPrunableSizeAll:O,multiSelect:ee}}();return(0,r.jsx)(k.Provider,{value:n,children:t})}},46850:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["contractId","usability","hostIp","hostKey","state","timeline","size","prunableSize","initialRenterFunds","spendingUploads","spendingDeletions","spendingFundAccount","spendingSectorRoots"],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:"initialRenterFunds",label:"initial renter funds",category:"financial"},{id:"spendingUploads",label:"uploads spending",category:"financial"},{id:"spendingDeletions",label:"deletions spending",category:"financial"},{id:"spendingFundAccount",label:"fund account spending",category:"financial"},{id:"spendingSectorRoots",label:"sector roots spending",category:"financial"}]},82285:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eU},xQ:function(){return eH},Rh:function(){return eV}});var r=n(52322),i=n(2784),a=n(18575),o=n(83429),s=n(4300),l=n(82851),u=n(65304),c=n(5632),d=n(7513),f=n(91426);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:o}=e,{openDialog:l,closeDialog:u}=eV(),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(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,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}=eV(),{setTheme:s}=(0,m.F)(),{settings:l,setExternalDataSettings: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:!l.siaCentral}),a()},children:(l.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:()=>{s("system"),a()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{s("dark"),a()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{s("light"),a()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{i("bugReport")},children:"Generate a bug report"}),(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 b(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:a,closeDialog:o}=eV(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{a("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View transaction pool"})]})}var x=n(90040);let w={namespace:"configuration",label:"Configuration"};function j(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{configViewMode:o}=(0,x.ZR)(),{closeDialog:l}=eV();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:w,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:w,onSelect:()=>{i(w)},children:w.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.index),l()},children:"Open configuration"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.pricing),l()},children:"Configure pricing"}),"advanced"===o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.wallet),l()},children:"Configure wallet"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var k=n(94248);let E={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(E)},children:E.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:E,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:E,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(k.F,{parentPage:E,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}let C={namespace:"alerts",label:"Alerts"};function S(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(C)},children:C.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:C,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:C,onSelect:()=>{a.push(s._.alerts.index),o()},children:"View alerts"})})]})}var O=n(74282),M=n(50454);let P={namespace:"hosts",label:"Hosts"};function A(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eV();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:()=>{l.push(s._.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)(M.L,{parentPage:P,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}var T=n(25913),N=n(28420);function R(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)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.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 D=n(95810);let L={namespace:"files/search/all",label:"Search all files",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function z(e){return{namespace:"files/search/bucket",label:"Search files in current bucket",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",tag:e,empty:R}}function F(e){var t,n;let{debouncedSearch:o,search:s,currentPage:l,beforeSelect:u,afterSelect:c,mode:h}=e,{activeBucketName:p,navigateToModeSpecificFiltering:m}=(0,D.b)(),g="bucket"===h&&p?z(p):L,v=(null==l?void 0:l.namespace)===g.namespace,y="global"===h||"bucket"===h&&p,b=(0,i.useMemo)(()=>{let e={prefix:"",limit:10,delimiter:"",substring:o};return"bucket"===h&&p&&(e.bucket=p),e},[h,p,o]),x=(0,f.F_)({disabled:!v||!y,params:b,config:{swr:{keepPreviousData:!0}}});return v&&(null===(t=x.data)||void 0===t?void 0:t.objects)?(0,r.jsx)(d.fu,{currentPage:l,commandPage:g,children:null===(n=x.data)||void 0===n?void 0:n.objects.map(e=>{let{key:t,bucket:n}=e,i=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()),s=o+a.length-1,l=0,u=0;return i.split("/").map(e=>{if(l>=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,l+=e.length+1,"..."):(u+=e.length,Z(e))}).reverse().join("/")}(t,s,0),{startIndex:o,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}}(i,s);return(0,r.jsx)(d.WD,{commandPage:g,currentPage:l,onSelect:()=>{null==u||u(),m(n+t),null==c||c()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 w-full",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,T.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(a.xvT,{className:"flex items-center flex-1 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:i.slice(0,o)}),(0,r.jsx)(a.xvT,{color:"accent",ellipsis:!0,children:i.slice(o,f)}),(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:i.slice(f)})]}),"global"===h?(0,r.jsx)(a.zxk,{variant:"inactive",state:"waiting",size:"small",tabIndex:-1,children:n}):null]})},t)})}):null}function Z(e){return e.split("").reverse().join("")}let I={namespace:"files",label:"Files"};function B(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:a,pushPage:o,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eV(),{activeBucket:p}=(0,D.b)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:a,commandPage:a,onSelect:()=>{o(I)},children:I.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:I,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:I,onSelect:()=>{f.pathname.startsWith(s._.buckets.index)||f.push(s._.buckets.index),h(),null==u||u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:I,onSelect:()=>{o(L),null==u||u()},children:"Search all files"}),p?(0,r.jsx)(d.WD,{currentPage:i,commandPage:I,onSelect:()=>{o(z(p.name)),null==u||u()},children:"Search files in bucket"}):null]}),(0,r.jsx)(F,{mode:"global",debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u}),(0,r.jsx)(F,{mode:"bucket",debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var V=n(46741),U=n(94225);function H(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)(N.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 $(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o,openDialog:l}=eV();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(s._.keys.index),o()},children:"View keys"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(s._.keys.index),l("keysCreate")},children:"Create new S3 authentication keypair"})]})]})}function q(e){let{panel:t}=e,{resetFilters:n}=(0,O.G)(),{resetFilters:o}=(0,V.l)(),{closeDialog:d}=eV(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[g]=(0,U.Nr)(h,500),[y,x]=(0,i.useState)([]),w=y[y.length-1],k=0===y.length,E=(0,i.useCallback)(e=>{x(t=>[...t,e])},[x]),C=(0,i.useCallback)(()=>{d()},[d]),M=(0,i.useCallback)(()=>{m("")},[m]),P=(null==w?void 0:w.empty)||H;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,a.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),x(e=>e.slice(0,-1)))},children:[!!w&&(0,r.jsxs)(a.__J,{className:"px-2 flex justify-between items-center",children:[w.label,w.tag?(0,r.jsx)(a.zxk,{variant:"inactive",state:"waiting",tabIndex:-1,size:"small",children:w.tag}):null]}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,a.cEb)({variant:"ghost",focus:"none"}),name:"cmdk-input",placeholder:(null==w?void 0:w.prompt)||(k?"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)(P,{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:()=>{C()},afterSelect:()=>{M()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(_,{currentPage:w,pushPage:E,beforeSelect:()=>{C(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),M()}}),(0,r.jsx)(A,{currentPage:w,pushPage:E,beforeSelect:()=>{C(),o()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),M()}}),(0,r.jsx)($,{currentPage:w,pushPage:E,beforeSelect:()=>{C()},afterSelect:()=>{f.pathname.startsWith(s._.keys.index)||f.push(s._.keys.index),M()}}),(0,r.jsx)(S,{currentPage:w,pushPage:E,beforeSelect:()=>{C(),n()},afterSelect:()=>{f.pathname.startsWith(s._.alerts.index)||f.push(s._.alerts.index),M()}}),(0,r.jsx)(j,{currentPage:w,pushPage:E}),(0,r.jsx)(b,{currentPage:w,pushPage:E})]})]})}function K(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlockedAndAuthedRoute:u}=(0,o.Hv)(),{isConnected:c}=(0,a.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.VqE,{open:t,title:"Command palette",titleVisuallyHidden:!0,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(q,{})})})}var Y=n(92683),G=n(24511);let X={name:""},J=G.Ry().shape({name:G.Z_().required("Required")});function Q(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:o}=(0,D.b)(),s=(0,f.ZM)(),l=(0,Y.TA)({initialValues:X,validationSchema:J,onSubmit:async(e,t)=>{let n=await s.put({params:(0,T.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||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(a.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var ee=n(12295);let et={publicKey:""},en=G.Ry().shape({publicKey:G.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 s=o.values.publicKey,l=(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)(N.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:l.length?(0,r.jsx)(a.xrM,{children:(0,r.jsx)("div",{className:"p-2","data-testid":"allowlistPublicKeys",children:(0,r.jsx)(a.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(N.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)(N.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ei=n(9408);let ea={address:""},eo=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],es=G.Ry().shape({address:G.Z_().required("Required")});function el(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ei.l)(),n=(0,Y.TA)({initialValues:ea,validationSchema:es,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,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,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==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(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"})]}),s.length?(0,r.jsx)("div",{"data-testid":"blocklistAddresses",children:(0,r.jsx)(a.hmz,{options:s.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)(N.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)(N.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,{"aria-label":"view blocklist",value:"blocklist",children:"Block"}),(0,r.jsx)(a.SPt,{"aria-label":"view allowlist",value:"allowlist",children:"Allow"})]}),(0,r.jsx)(a.nUL,{value:"blocklist",children:(0,r.jsx)(el,{})}),(0,r.jsx)(a.nUL,{value:"allowlist",children:(0,r.jsx)(er,{})})]})]})})}var ec=n(57220),ed=n(56440),ef=n(20673),eh=n(76221);function ep(e){let{panel:t}=e,{closeDialog:n}=eV(),o=(0,eh.xj)(),c=(0,eh.jD)(),[d,f]=(0,i.useState)(""),[h]=(0,U.Nr)(d,500),{activeBucket:p}=(0,D.b)(),m=(0,i.useCallback)(()=>{n()},[n]),g=z(null==p?void 0:p.name);return(0,r.jsxs)(u.mY,{label:g.label,shouldFilter:!1,className:(0,l.cx)(t&&(0,a.z$)()),children:[(0,r.jsxs)(a.__J,{className:"px-2 flex justify-between items-center",children:["File search in current bucket",!!p&&(0,r.jsx)(a.zxk,{variant:"inactive",state:"waiting",tabIndex:-1,size:"small",children:p.name})]}),(0,r.jsx)(u.mY.Input,{"aria-label":"search files",name:"search files",value:d,onValueChange:f,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:g.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)(R,{search:d,debouncedSearch:h})}),(0,r.jsx)(F,{mode:"bucket",debouncedSearch:h,search:d,currentPage:g,beforeSelect:()=>{m()},afterSelect:()=>{c.startsWith(s._.buckets.index)||o.push(s._.buckets.index)}})]})})]})}function em(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)(ep,{})})}var eg=n(6391),ev=n.n(eg);function ey(){let{dialog:e,onOpenChange:t}=eV(),n=(0,f.X2)(),o=(0,f.Q4)(),s=(0,i.useMemo)(()=>o.data?new(ev())(o.data).times(1200):new(ev())(0),[o.data]),l=(0,f.cj)(),u=(0,i.useCallback)(async e=>{let{address:t,hastings:n,includeFee:r}=e,i=await l.post({payload:{address:t,amount:n.toString(),subtractMinerFee:r}});return i.error?{error:i.error}:{transactionId:i.data}},[l]);return(0,r.jsx)(a.weF,{balance:n.data?new(ev())(n.data.spendable):void 0,send:u,fee:s,open:"sendSiacoin"===e,onOpenChange:t})}var eb=n(88022);function ex(){let{id:e,dialog:t,onOpenChange:n}=eV(),{dataset:o}=(0,eb.n)(),s=(0,i.useMemo)(()=>null==o?void 0:o.find(t=>t.id===e),[o,e]);return(0,r.jsx)(a.mPE,{id:e,transaction:s,open:"transactionDetails"===t,onOpenChange:n})}var ew=n(40608),ej=n(63955);let ek={name:""};function eE(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s}=eV(),l=(0,f.sg)(),u=(0,ej.cI)({mode:"all",defaultValues:ek}),{handleOpenChange:c,closeAndReset:d}=(0,a.t0Y)({form:u,onOpenChange:o,defaultValues:ek}),h=(0,i.useCallback)(async e=>{let t=await l.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())},[l,d]),p=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{equals:e=>e===s||"bucket name does not match"}}}}),[s]),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:s})}),(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 e_={visibility:"public"};function eC(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s,closeDialog:l}=eV(),u=(0,f.D5)({disabled:!n,params:{name:s},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ej.cI)({mode:"all",defaultValues:e_});(0,i.useEffect)(()=>{var e,t;d.reset({visibility:(null===(t=u.data)||void 0===t?void 0:null===(e=t.policy)||void 0===e?void 0:e.publicReadAccess)?"public":"private"})},[d,u.data]);let h=(0,i.useCallback)(async e=>{let t=await c.put({params:{name:s},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,a.OHV)({title:"Error updating bucket policy",body:t.error}):((0,a.OPV)({title:"Bucket policy has been updated"}),d.reset(),l())},[d,s,c,l]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:s,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[s]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(e_),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 eS={name:""};function eO(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eV(),l=(0,f.oV)(),u=(0,ej.cI)({mode:"all",defaultValues:eS}),c=(0,i.useCallback)(async e=>{let t=await l.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(),s())},[u,l,s]),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",description:"A bucket is an isolated collection of files.",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eS),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.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:u,children:"Create bucket"})]})})}var eM=n(85556),eP=n(3031),eA=n(40824);function eT(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s}=eV(),{refresh:l}=(0,eP.J)(),{refresh:u}=(0,eA.o)(),c=(0,i.useMemo)(()=>{let e=(0,T.vt)(s||"");return e.endsWith("/")?e.slice(0,-1):e},[s]),d=(0,i.useMemo)(()=>({name:c}),[c]),h=(0,f.TD)(),p=(0,ej.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=>{if(!s)return;let{bucket:t,to:n,from:r,mode:i}=(0,eM.Ep)(s,e.name),o=await h.post({payload:{bucket:t,to:n,from:r,mode:i,force:!1}});o.error?(0,a.OHV)({title:(0,T.IQ)(s)?"Error renaming directory":"Error renaming file",body:o.error}):(l(),u(),g(),(0,a.OPV)({title:(0,T.IQ)(s)?"Directory renamed":"File renamed"}))},[s,l,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]),b=(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,b),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 eN(){return{name:eD(),secret:eL()}}function eR(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eV(),l=(0,f.AR)(),u=(0,f._M)(),c=(0,ej.cI)({mode:"all",defaultValues:eN()}),d=(0,i.useCallback)(async e=>{var t;if(!l.data){(0,a.OHV)({title:"Error creating key"});return}let n={...null===(t=l.data)||void 0===t?void 0:t.authentication.v4Keypairs,[e.name]:e.secret},r=await u.put({payload:{...l.data,authentication:{...l.data.authentication,v4Keypairs:n}}});r.error?(0,a.OHV)({title:"Error creating key",body:r.error}):((0,a.OPV)({title:"New key created"}),c.reset(eN()),s())},[c,s,u,l.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)(N.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)(N.Wet,{})}),validation:{required:"required",validate:{exactLength:e=>(null==e?void 0:e.length)===40||"must be exactly 40 characters"}}}}}({regenerateAccessKey:()=>{c.setValue("name",eD())},regenerateSecretKey:()=>{c.setValue("secret",eL())},existingKeys:Object.keys((null===(e=l.data)||void 0===e?void 0:e.authentication.v4Keypairs)||{})})},[l.data,c]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Create S3 keypair",description:"Create a new S3 authentication keypair.",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eN()),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.jsx)("div",{className:"flex flex-col gap-4",children:(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 eD(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(let n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function eL(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="";for(let n=0;n<40;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}var ez=n(1297),eF=n.n(ez),eZ=n(46782);function eI(e){let{trigger:t,open:n,onOpenChange:o}=e,s=(0,i.useMemo)(()=>({contracts:!0,alerts:!0,autopilot:!0,gouging:!0,upload:!0,pinned:!0,openGithub:!0}),[]),l=(0,f.GP)(),u=(0,f.Z7)({params:{limit:1e3}}),c=(0,f.e$)(),d=(0,f.en)(),h=(0,f.NF)(),p=(0,f.E5)(),m=(0,ej.cI)({mode:"all",defaultValues:s}),{handleOpenChange:g}=(0,a.t0Y)({form:m,onOpenChange:o,defaultValues:s,initKey:[name]}),v=(0,i.useCallback)(async e=>{let t=new(eF());e.alerts&&t.file("alerts.json",JSON.stringify(u.data,null,2)),e.contracts&&t.file("contracts.json",JSON.stringify(l.data,null,2)),e.autopilot&&t.file("autopilot.json",JSON.stringify(c.data,null,2)),e.gouging&&t.file("gouging.json",JSON.stringify(d.data,null,2)),e.upload&&t.file("upload.json",JSON.stringify(h.data,null,2)),e.pinned&&t.file("pinned.json",JSON.stringify(p.data,null,2));let n=await t.generateAsync({type:"blob"});(0,eZ.saveAs)(n,"renterd-debug-report.zip"),e.openGithub&&window.open("https://github.com/SiaFoundation/renterd/issues/new?template=bug_report.yml","_blank")},[l.data,u.data,c.data,d.data,h.data,p.data]),y=(0,i.useMemo)(()=>({contracts:{type:"boolean",title:"Contracts",validation:{}},alerts:{type:"boolean",title:"Alerts",validation:{}},autopilot:{type:"boolean",title:"Autopilot",validation:{}},gouging:{type:"boolean",title:"Gouging",validation:{}},upload:{type:"boolean",title:"Upload",validation:{}},pinned:{type:"boolean",title:"Pinned",validation:{}},openGithub:{type:"boolean",title:"Open GitHub bug report submission page",validation:{}}}),[]),b=(0,a.WsO)(y),x=m.watch("openGithub");return(0,r.jsx)(a.VqE,{title:"Generate a bug report",descriptionVisuallyHidden:!0,description:"Select which metadata files to include in the generated report.",trigger:t,open:n,onOpenChange:g,contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(v,b),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 pt-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"Select which metadata files to include in the debug report, generate the report file (ZIP), and attach it to a GitHub bug report."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.Z0O,{className:"mb-2"}),(0,r.jsx)(a.__J,{size:"14",color:"subtle",children:"General"}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"contracts"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"alerts"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.__J,{size:"14",color:"subtle",children:"Configuration"}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"autopilot"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"gouging"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"upload"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"pinned"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"openGithub"})]}),(0,r.jsxs)(a.ZqQ,{form:m,children:["Generate ",x?"and open":""]})]})})}let eB=(0,i.createContext)({}),eV=()=>(0,i.useContext)(eB);function eU(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,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:a,confirm:o,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eB.Provider,{value:n,children:t})}function eH(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:o,confirm:s,openConfirmDialog:l}=eV(),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)(ey,{}),(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)(ex,{}),(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)(eE,{open:"filesDeleteBucket"===t,onOpenChange:i}),(0,r.jsx)(eC,{open:"filesBucketPolicy"===t,onOpenChange:i}),(0,r.jsx)(Q,{open:"filesCreateDirectory"===t,onOpenChange:i}),(0,r.jsx)(em,{open:"filesSearch"===t,onOpenChange:i}),(0,r.jsx)(eT,{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)(ew.a,{open:"hostsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(ed.p,{open:"contractsFilterAddress"===t,onOpenChange:i}),(0,r.jsx)(ef.C,{open:"contractsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(eR,{open:"keysCreate"===t,onOpenChange:i}),(0,r.jsx)(eI,{open:"bugReport"===t,onOpenChange:i}),(0,r.jsx)(a.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e&&s?l(s):o()})]})}},83548:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(52322),i=n(18575),a=n(28420),o=n(60381),s=n(45027),l=n(98430),u=n(6391),c=n.n(u),d=n(90563),f=n(61308),h=n(95810);let p=[{id:"type",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{isViewingBuckets:t,multiSelect:n}}=e;return t?null:(0,r.jsx)(i.eQh,{className:"flex h-4",children:(0,r.jsx)(i.XZJ,{"aria-label":"select all files",onClick:n.onSelectPage,checked:n.isPageAllSelected})})},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,{size:"none",variant:"ghost",state:"waiting",children:(0,r.jsx)(a.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{size:"none",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)(l.I,{path:u,size:c}):(0,r.jsx)(s.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",underline:"hover",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",underline:"hover",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",underline:"hover",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 s=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:s?"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:s?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:s?(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:s,loaded:l,size:u}=t;if("bucket"===n)return null;if(s){let e=l?(l/u*100).toFixed(0)+"%":"0%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(l||0),"/").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})}}]},3031:function(e,t,n){"use strict";n.d(t,{V:function(){return g},J:function(){return m}});var r=n(52322),i=n(18575),a=n(2784),o=n(91426),s=n(80227),l=n(25913),u=n(5632),c=n(95810),d=n(99634),f=n(85556),h=n(83548);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function g(e){let{children:t}=e,n=function(){let{activeDirectory:e,activeBucket:t,setActiveDirectory:n,filters:r,enabledColumns:p,isViewingBuckets:m}=(0,c.b)(),{limit:g,marker:v,isMore:y,response:b,refresh:x,dataset:w}=function(){var e,t;let{activeBucketName:n,activeDirectoryPath:r,fileNamePrefixFilter:i,sortDirection:f,sortField:h}=(0,c.b)(),p=(0,u.useRouter)(),m=Number(p.query.limit||50),g=p.query.marker,v=(0,l.W0)(r),y=(0,a.useMemo)(()=>{let e=v.key;i&&(e+=i.startsWith("/")?i.slice(1):i);let t={prefix:e,bucket:v.bucket,sortby:h,sortdir:f,limit:m,delimiter:"/"};return g&&(t.marker=g),t},[i,v,h,f,g,m]),b=(0,o.F_)({disabled:!n,params:y,config:{swr:{refreshInterval:d.h}}}),x=(0,a.useMemo)(()=>{var e;return{isValidating:b.isValidating,data:null===(e=b.data)||void 0===e?void 0:e.objects}},[b.isValidating,null===(e=b.data)||void 0===e?void 0:e.objects]),w=(0,s.p)({id:"filesDirectory",objects:x});return{limit:m,marker:g,isMore:!!(null===(t=b.data)||void 0===t?void 0:t.hasMore),response:b,dataset:w.data,refresh:b.mutate}}(),j=(0,i.A7R)(w);(0,a.useEffect)(()=>{t&&j.deselectAll()},[t]);let k=(0,a.useMemo)(()=>w?e.length>0&&w.length>0?[{bucket:t,id:"..",name:"..",path:"..",key:"..",size:0,type:"directory",onClick:()=>{n(e=>e.slice(0,-1))}},...w]:w:void 0,[w]),{onDragEnd:E,onDragOver:_,onDragCancel:C,onDragMove:S,onDragStart:O,draggingObjects:M,moveSelectedFiles:P,moveSelectedFilesOperationCount:A}=function(e){let{multiSelect:t,dataset:n,activeDirectory:r,setActiveDirectory:s,refresh:u}=e,[c,d]=(0,a.useState)(void 0),[,h]=(0,a.useState)(),p=(0,o.TD)(),m=(0,a.useCallback)(async(e,n)=>{if(e.length){for(let t of(0,f.Fg)(e,n)){let{bucket:e,from:n,to:r,mode:a}=t,o=await p.post({payload:{force:!1,bucket:e,from:n,to:r,mode:a}});o.error&&(0,i.OHV)({title:"Error moving files",body:o.error})}u(),t.deselectAll()}},[u,p,t]),g=(0,a.useMemo)(()=>{let e=(0,f.Di)(r);return(0,f.Fg)(t.selectedIds,e).length},[t.selectedIds,r]),v=(0,a.useCallback)(async()=>{t.selectedIds.length&&m(t.selectedIds,(0,f.Di)(r))},[t.selectedIds,r,m]),y=(0,a.useCallback)(async e=>{c&&m(c.map(e=>e.path),(0,f.Di)(r,e))},[c,r,m]),b=(0,a.useCallback)(e=>{if(!e){h(e=>{e&&clearTimeout(e)});return}let t=setTimeout(()=>{s(()=>e)},500);h(e=>(e&&clearTimeout(e),t))},[h,s]),x=(0,a.useCallback)(e=>{var t,n;if(null===(t=e.collisions)||void 0===t?void 0:t.length){let t=null===(n=e.collisions)||void 0===n?void 0:n[0].id;".."===t?b(r.slice(0,-1)):b((0,l.gD)(t))}else b(void 0)},[b,r]),w=(0,a.useCallback)(e=>{let r=String(e.active.id);if(t.selectedIds.includes(r))d(Object.entries(t.selection).map(e=>{let[,t]=e;return t}));else{let t=null==n?void 0:n.find(t=>t.id===e.active.id);d(t?[t]:void 0)}},[n,d,t]),j=(0,a.useCallback)(e=>{x(e)},[x]),k=(0,a.useCallback)(e=>{x(e)},[x]);return{onDragEnd:(0,a.useCallback)(async e=>{b(void 0),d(void 0),y(e)},[d,b,y]),onDragOver:j,onDragCancel:(0,a.useCallback)(async e=>{b(void 0),d(void 0)},[d,b]),onDragMove:k,onDragStart:w,draggingObjects:c,moveSelectedFiles:v,moveSelectedFilesOperationCount:g}}({dataset:w,activeDirectory:e,setActiveDirectory:n,refresh:x,multiSelect:j}),T=(0,a.useMemo)(()=>{if(k)return k.map(e=>"bucket"===e.type||".."===e.id?e:{...e,isSelected:!!j.selection[e.id],onClick:t=>j.onSelect(e.id,t)})},[k,j]),N=(0,a.useMemo)(()=>{if(T)return T.map(e=>M&&M.find(t=>t.id!==e.id)&&"directory"===e.type?{...e,isDroppable:!0}:{...e,isDraggable:"bucket"!==e.type&&!e.isUploading})},[T,M]),R=(0,i.c2j)(w,b.isValidating,b.error,r),D=(0,a.useMemo)(()=>h.z.filter(e=>e.fixed||p.includes(e.id)),[p]),L=(0,a.useMemo)(()=>({isViewingBuckets:m,multiSelect:j}),[j,m]);return{dataState:R,columns:D,multiSelect:j,cellContext:L,refresh:x,limit:g,marker:v,isMore:y,datasetPage:N,pageCount:(null==w?void 0:w.length)||0,onDragStart:O,onDragEnd:E,onDragMove:S,onDragCancel:C,onDragOver:_,draggingObjects:M,moveSelectedFiles:P,moveSelectedFilesOperationCount:A}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},16830:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(52322),i=n(18575),a=n(28420),o=n(60381),s=n(45027),l=n(98430),u=n(6391),c=n.n(u),d=n(90563),f=n(61308),h=n(95810),p=n(25913);let m=[{id:"type",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{isViewingBuckets:t,multiSelect:n}}=e;return t?null:(0,r.jsx)(i.eQh,{className:"flex h-4",children:(0,r.jsx)(i.XZJ,{onClick:n.onSelectPage,checked:n.isPageAllSelected})})},render:function(e){let{data:{isUploading:t,type:n,name:o,path:u,size:c}}=e;return t?(0,r.jsx)(i.zxk,{size:"none",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)(l.I,{path:u,size:c}):(0,r.jsx)(s.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)(),s=(0,p.kj)(t).slice(1);return"bucket"===a?null:"directory"===a?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",underline:"hover",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(s))},children:s}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",underline:"hover",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o((0,p.rj)(s))},children:s})}},{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 s=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:s?"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:s?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:s?(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:s,loaded:l,size:u}=t;if("bucket"===n)return null;if(s){let e=l?(l/u*100).toFixed(0)+"%":"0%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,o.vW)(l||0),"/").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})}}]},40824:function(e,t,n){"use strict";n.d(t,{p:function(){return p},o:function(){return h}});var r=n(52322),i=n(18575),a=n(2784),o=n(91426),s=n(80227),l=n(5632),u=n(95810),c=n(99634),d=n(16830);let f=(0,a.createContext)({}),h=()=>(0,a.useContext)(f);function p(e){let{children:t}=e,n=function(){var e;let{activeBucket:t,sortDirection:n,sortField:r,filters:f,enabledColumns:h,isViewingBuckets:p}=(0,u.b)(),{limit:m,response:g,isMore:v,refresh:y,dataset:b}=function(e){var t;let{sortDirection:n,sortField:r}=e,{activeBucketName:i,fileNamePrefixFilter:d}=(0,u.b)(),f=(0,l.useRouter)(),h=Number(f.query.limit||50),p=f.query.marker,m=(0,a.useMemo)(()=>{let e="";d&&(e+=d.startsWith("/")?d.slice(1):d);let t={prefix:e,bucket:i,sortby:r,sortdir:n,limit:h,delimiter:""};return p&&(t.marker=p),t},[d,i,r,n,p,h]),g=(0,o.F_)({disabled:!i,params:m,config:{swr:{refreshInterval:c.h}}}),v=(0,a.useMemo)(()=>{var e;return{isValidating:g.isValidating,data:null===(e=g.data)||void 0===e?void 0:e.objects}},[g.isValidating,g.data]),y=(0,s.p)({id:"filesFlat",objects:v});return{limit:h,marker:p,response:g,isMore:!!(null===(t=g.data)||void 0===t?void 0:t.hasMore),dataset:y.data,refresh:g.mutate}}({sortField:r,sortDirection:n}),x=null===(e=g.data)||void 0===e?void 0:e.nextMarker,w=(0,a.useMemo)(()=>b,[b]),j=(0,i.c2j)(b,g.isValidating,g.error,f),k=(0,a.useMemo)(()=>d.z.filter(e=>e.fixed||h.includes(e.id)),[h]),E=(0,i.A7R)(b);(0,a.useEffect)(()=>{t&&E.deselectAll()},[t]);let _=(0,a.useMemo)(()=>{if(w)return w.map(e=>({...e,isSelected:!!E.selection[e.id],onClick:t=>E.onSelect(e.id,t)}))},[w,E]),C=(0,a.useMemo)(()=>({isViewingBuckets:p,multiSelect:E}),[E,p]);return{dataState:j,multiSelect:E,cellContext:C,refresh:y,limit:m,datasetPage:_,columns:k,nextMarker:x,isMore:v,pageCount:(null==b?void 0:b.length)||0,sortField:r,filters:f,sortDirection:n}}();return(0,r.jsx)(f.Provider,{value:n,children:t})}},80227:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(78790),i=n(68650),a=n(79381),o=n(74282),s=n(25913),l=n(95810),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,l.b)(),{dataset:b}=(0,o.G)(),x=(0,a.ZP)(n.isValidating||v.isValidating?void 0:[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{key:t,size:n,health:r}=e,i=(0,s.v_)(c.name,t),o=(0,s.vt)(t);a[i]={id:i,path:i,bucket:c,key:t,size:n,health:r,name:o,type:(0,s.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,s.v_)(g,n)+"/";if(a[r])continue;a[r]={id:r,path:r,bucket:c,key:(0,s.kj)(r),size:0,health:0,name: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,s.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,s.YF)(t,""),r=(0,s.kj)(n);a[t]={id:n,path:n,bucket:e,key:r,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)(()=>{x.mutate()},[n.data,h,b,v.data,f]),x}},95810:function(e,t,n){"use strict";n.d(t,{e:function(){return es},b:function(){return eo}});var r=n(52322),i=n(18575),a=n(76221),o=n(2784),s=n(83548),l=n(89421),u=n(25913),c=n(83429),d=n(91426),f=n(7699),h=n(60381),p=n(35197);function m(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function g(e,t){var n=m(e,t,"get");return n.get?n.get.call(e):n.value}function v(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,n){v(e,t),t.set(e,n)}function b(e,t,n){var r=m(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 x(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}function w(e,t){v(e,t),t.add(e)}var j=new WeakMap,k=new WeakMap,E=new WeakMap,_=new WeakMap,C=new WeakMap,S=new WeakMap,O=new WeakMap,M=new WeakMap,P=new WeakMap,A=new WeakMap,T=new WeakMap,N=new WeakMap,R=new WeakMap,D=new WeakMap,L=new WeakMap,z=new WeakMap,F=new WeakMap,Z=new WeakMap,I=new WeakMap,B=new WeakSet,V=new WeakSet,U=new WeakSet,H=new WeakSet,W=new WeakSet,$=new WeakSet;class q{async create(){var e;let t={bucket:g(this,j),key:g(this,k)},n=await g(this,S).busUploadCreate.post({payload:t});if(null===(e=n.data)||void 0===e?void 0:e.uploadID)return b(this,L,n.data.uploadID),b(this,R,Array.from({length:Math.ceil(g(this,E).size/g(this,_))},(e,t)=>t+1)),g(this,L)}async start(){let e=new Promise(e=>{b(this,A,e)});x(this,B,K).call(this),await e}async abort(){var e;b(this,z,!0),Object.keys(g(this,N)).map(Number).forEach(e=>{g(this,N)[e].abort()});try{await g(this,S).busUploadAbort.post({payload:{bucket:g(this,j),key:g(this,k),uploadID:g(this,L)}})}catch(e){(0,i.OHV)({title:"Error aborting upload",body:e.message})}null===(e=g(this,A))||void 0===e||e.call(this)}setOnProgress(e){b(this,O,e)}setOnError(e){b(this,M,e)}setOnComplete(e){b(this,P,e)}constructor(e){w(this,B),w(this,V),w(this,U),w(this,H),w(this,W),w(this,$),y(this,j,{writable:!0,value:void 0}),y(this,k,{writable:!0,value:void 0}),y(this,E,{writable:!0,value:void 0}),y(this,_,{writable:!0,value:void 0}),y(this,C,{writable:!0,value:void 0}),y(this,S,{writable:!0,value:void 0}),y(this,O,{writable:!0,value:void 0}),y(this,M,{writable:!0,value:void 0}),y(this,P,{writable:!0,value:void 0}),y(this,A,{writable:!0,value:void 0}),y(this,T,{writable:!0,value:void 0}),y(this,N,{writable:!0,value:void 0}),y(this,R,{writable:!0,value:void 0}),y(this,D,{writable:!0,value:void 0}),y(this,L,{writable:!0,value:void 0}),y(this,z,{writable:!0,value:void 0}),y(this,F,{writable:!0,value:void 0}),y(this,Z,{writable:!0,value:void 0}),y(this,I,{writable:!0,value:void 0}),b(this,A,()=>null),b(this,F,500),b(this,Z,6e4),b(this,I,g(this,F)),b(this,j,e.bucket),b(this,k,e.key),b(this,_,e.partSize||5242880),b(this,C,Math.min(e.maxConcurrentParts||5,15)),b(this,E,e.file),b(this,S,e.api),b(this,O,e.onProgress||(()=>null)),b(this,M,e.onError||(()=>null)),b(this,P,e.onComplete||(()=>null)),b(this,T,{}),b(this,N,{}),b(this,R,[]),b(this,D,[]),b(this,L,void 0),b(this,z,!1)}}async function K(){if(g(this,z))return;let e=Object.keys(g(this,N)).length;if(e>=g(this,C))return;if(!g(this,R).length){e||x(this,H,X).call(this);return}let t=g(this,R).pop();if(!t)return;let n=(t-1)*g(this,_),r=g(this,E).slice(n,n+g(this,_));try{await x(this,$,Q).call(this,t,r,n,()=>{x(this,B,K).call(this)}),x(this,V,Y).call(this)}catch(e){if(e instanceof ee)return;if(e instanceof et){await this.abort(),g(this,M).call(this,e);return}g(this,R).push(t),await x(this,U,G).call(this)}x(this,B,K).call(this)}function Y(){b(this,I,g(this,F))}async function G(){let e=(0,c.gw)(g(this,I));b(this,I,Math.min(2*g(this,I),g(this,Z))),await e}async function X(){try{let e={bucket:g(this,j),key:g(this,k),uploadID:g(this,L),parts:g(this,D).sort((e,t)=>e.partNumber-t.partNumber)};await g(this,S).busUploadComplete.post({payload:e}),g(this,P).call(this)}catch(e){g(this,M).call(this,e)}g(this,A).call(this)}function J(e,t){g(this,T)[e]=t.loaded;let n=Math.min(Object.keys(g(this,T)).map(Number).reduce((e,t)=>e+=g(this,T)[t],0),g(this,E).size),r=g(this,E).size;g(this,O).call(this,{sent:n,total:r,percentage:Math.round(n/r*100)})}async function Q(e,t,n,r){let i=new AbortController;g(this,N)[e]=i,r();try{var a;let r=await g(this,S).workerUploadPart.put({params:{key:g(this,k).slice(1),bucket:g(this,j),uploadid:g(this,L),encryptionoffset:n,partnumber:e},payload:t,config:{axios:{onUploadProgress:t=>x(this,W,J).call(this,e,t),signal:i.signal}}});if(r.error){if("canceled"===r.error)throw new ee;throw Error(r.error)}let o=null===(a=r.headers)||void 0===a?void 0:a.etag;if(!o)throw new et;let s={partNumber:e,eTag:o.replace(/"/g,"")};g(this,D).push(s)}finally{delete g(this,N)[e]}}class ee extends Error{constructor(){super("canceled"),this.name="CanceledError"}}class et extends Error{constructor(){super("No ETag in response, add ETag to Access-Control-Expose-Headers list"),this.name="NoETagError"}}let en=e=>(0,h.B$)(4).times(e);var er=n(4300),ei=n(92762);let ea=(0,o.createContext)({}),eo=()=>(0,o.useContext)(ea);function es(e){let{children:t}=e,n=function(){var e;let{configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:m,setColumnsVisible:g,setColumnsHidden:v,toggleSort:y,setSortDirection:b,setSortField:x,sortField:w,sortDirection:j,resetDefaultColumnVisibility:k}=(0,i.oy6)("renterd/v0/objects",{columns:s.z,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),E=(0,a.xj)(),_=(0,a.UO)(),C=null==_?void 0:_.bucket,{filters:S,setFilter:O,removeFilter:M,removeLastFilter:P,resetFilters:A}=(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]),N=(0,o.useMemo)(()=>C?[C,...((null==_?void 0:_.path)||[]).map(decodeURIComponent)]:[],[C,null==_?void 0:_.path]),R=(0,d.B$)(),D=null===(e=R.data)||void 0===e?void 0:e.find(e=>e.name===C),L=(0,o.useMemo)(()=>(0,u.rd)(N)+"/",[N]),[z,F]=(0,ei.Z)("renterd/v0/explorerMode",{defaultValue:"directory"}),Z=(0,o.useCallback)(e=>{let t=e(N);if(0===t.length){E.push(er._.buckets.index);return}let n=er._.buckets.files.replace("[bucket]",t[0]).replace("[path]",t.slice(1).map(encodeURIComponent).join("/"));E.push(n)},[E,N]),{uploadFiles:I,uploadsMap:B,uploadsList:V}=function(e){let{activeDirectoryPath:t}=e,n=(0,d.B$)(),r=(0,c.Tu)(),a=(0,d.Pt)(),s=(0,d._3)(),l=(0,d.eM)(),m=(0,d.LS)(),[g,v]=(0,o.useState)({}),y=(0,d.NF)({config:{swr:{refreshInterval:(0,h.sW)(1)}}}),b=(0,o.useCallback)(e=>{let{id:t}=e;v(e=>({...e,[t]:{...e[t],uploadStatus:"uploading",loaded:0}}))},[v]),x=(0,o.useCallback)(e=>{v(t=>t[e.id]?{...t,[e.id]:{...t[e.id],loaded:e.loaded,uploadStatus:e.loaded===e.size?"processing":"uploading",size:e.size}}:t)},[v]),w=(0,o.useCallback)(e=>{v(t=>(delete t[e],{...t}))},[v]),j=(0,o.useCallback)(async e=>{var t;let{path:n,bucket:r,uploadFile:a}=e,o=new q({file:a,key:(0,u.kj)(n),bucket:r.name,api:S.current,partSize:en((null===(t=y.data)||void 0===t?void 0:t.redundancy.minShards)||1).toNumber(),maxConcurrentParts:5}),s=await o.create();if(!s){(0,i.OHV)({title:"Error creating upload",body:"Failed to create upload"});return}return o.setOnError(e=>{(0,i.OHV)({title:"Error uploading file",body:e.message}),S.current.removeUpload(s)}),o.setOnProgress((0,p.Z)(e=>{S.current.updateUploadProgress({id:s,loaded:e.sent,size:e.total})},1e3)),o.setOnComplete(async()=>{await S.current.mutate(e=>e.startsWith(f.DL)),S.current.removeUpload(s),setTimeout(()=>{S.current.checkAndStartUploads()},100)}),{uploadId:s,multipartUpload:o}},[y.data]),k=(0,o.useCallback)(async e=>{let{path:t,bucket:n,name:r,uploadFile:i}=e,a=await j({path:t,bucket:n,uploadFile:i});if(!a)return;let{uploadId:o,multipartUpload:s}=a;v(e=>{let a=(0,u.kj)(t),l={id:o,path:t,key:a,bucket:n,name:r,size:i.size,loaded:0,isUploading:!0,upload:s,uploadStatus:"queued",uploadFile:i,createdAt:new Date().toISOString(),uploadAbort:async()=>{await s.abort(),S.current.removeUpload(o)},type:"file"};return{...e,[o]:l}})},[v,j]),E=(0,o.useCallback)(async e=>{let{id:t,upload:n}=e;b({id:t}),n.start()},[b]),_=(0,o.useCallback)(()=>{let e=Object.values(g),t=e.filter(e=>"uploading"===e.uploadStatus).length;return e.filter(e=>"queued"===e.uploadStatus).slice(0,5-t).forEach(e=>{e.upload&&E({id:e.id,upload:e.upload})}),g},[g,E]),C=(0,o.useCallback)(e=>{e.forEach(e=>{var r,a,o;let s=e.path||e.name,l=(0,u.v_)(t,s),c=e.name,d=(0,u.ru)(l),f=null===(r=n.data)||void 0===r?void 0:r.find(e=>e.name===d);if(!f){(0,i.OHV)({title:"Bucket not found",body:d});return}g[l]&&((0,i.OHV)({title:"Already uploading file, aborting previous upload.",body:l}),null===(a=(o=g[l]).uploadAbort)||void 0===a||a.call(o)),k({path:l,name:c,bucket:f,uploadFile:e})}),setTimeout(()=>{S.current.checkAndStartUploads()},1e3)},[t,k,n.data,g]),S=(0,o.useRef)({checkAndStartUploads:_,workerUploadPart:a,busUploadComplete:s,busUploadCreate:l,busUploadAbort:m,removeUpload:w,updateUploadProgress:x,updateStatusToUploading:b,mutate:r});(0,o.useEffect)(()=>{S.current={checkAndStartUploads:_,busUploadAbort:m,busUploadComplete:s,busUploadCreate:l,workerUploadPart:a,mutate:r,removeUpload:w,updateUploadProgress:x,updateStatusToUploading:b}},[_,m,s,l,a,r,w,x,b]),(0,o.useEffect)(()=>{let e=setInterval(()=>{S.current.checkAndStartUploads()},3e3);return()=>{clearInterval(e)}},[]);let O=(0,o.useMemo)(()=>Object.entries(g).map(e=>e[1]),[g]);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:g}),{uploadFiles:C,uploadsMap:g,uploadsList:O}}({activeDirectoryPath:L}),{downloadFiles:U,downloadsList:H,getFileUrl:W,downloadCancel:$}=function(){let e=(0,d.B$)(),t=(0,d.p$)(),[n,r]=(0,o.useState)({}),a=(0,o.useCallback)(e=>{r(t=>{let n={id:e.path,path:e.path,key:e.key,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"};return{...t,[e.path]:n}})},[r]),s=(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]),l=(0,o.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),f=(0,o.useCallback)(e=>{e.controller.abort()},[]),h=(0,o.useCallback)(async r=>{r.forEach(async r=>{var o;let c=!1,d=(0,u.ru)(r),f=(0,u.kj)(r),h=null===(o=e.data)||void 0===o?void 0:o.find(e=>e.name===d);if(!h){(0,i.OHV)({title:"Bucket not found",body:d});return}let m=(0,u.vt)(r);if(n[r]){(0,i.OHV)({title:"Already downloading file",body:r});return}let g=new AbortController,v=(0,p.Z)(e=>{c||s({path:r,loaded:e.loaded,size:e.total})},2e3);a({path:r,key:f,name:m,bucket:h,loaded:0,size:1,controller:g});let y=await t.get(m,{params:(0,u.W0)(r),config:{axios:{onDownloadProgress:v,signal:g.signal}}});c=!0,y.error&&("canceled"===y.error?(0,i.RFt)({title:"File download canceled"}):(0,i.OHV)({title:"Error downloading file",body:y.error})),l(r)})},[e.data,t,n,a,l,s]),m=(0,o.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:g}=(0,c.Hv)();return{downloadFiles:h,downloadsList:m,getFileUrl:(0,o.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,u.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),a=g.api||location.origin,o=a.startsWith("https")?"https":"http",s=a.replace("https://","").replace("http://","");return t?"".concat(o,"://:").concat(g.password,"@").concat(s,"/api").concat(i):"".concat(o,"://").concat(s,"/api").concat(i)},[g]),downloadCancel:f}}(),K=0===N.length,Y=1===N.length,G=N.length>0,X=(0,o.useCallback)(e=>{O({id:"fileNamePrefix",label:"",value:e})},[O]),J=(0,o.useCallback)(()=>{M("fileNamePrefix")},[M]),Q=(0,o.useCallback)((e,t)=>{t?X(t):J(),Z(()=>e)},[Z,X,J]),ee=(0,o.useCallback)(e=>{Q((0,u.gD)(e),(0,u.vt)(e))},[Q]),et=(0,o.useCallback)(e=>{"directory"===z?ee(e):X((0,u.kj)(e).slice(1))},[z,ee,X]),ea=er._.buckets.uploads.replace("[bucket]",C||""),eo=(0,o.useCallback)(()=>{D&&E.push(ea)},[D,ea,E]),es=(0,a.jD)(),el=C&&es.startsWith(ea),eu=(0,o.useCallback)(async()=>{(el||"directory"!==z)&&C&&(Q([C],void 0),F("directory"))},[el,z,C,F,Q]),ec=(0,o.useCallback)(async()=>{(el||"flat"!==z)&&C&&(Q([C],(0,u.kj)(L).slice(1)),F("flat"))},[el,z,C,L,F,Q]);return{isViewingBuckets:K,isViewingABucket:G,isViewingRootOfABucket:Y,isViewingUploads:el,buckets:R,activeBucket:D,activeBucketName:C,activeDirectory:N,navigateToUploads:eo,setActiveDirectory:Z,setActiveDirectoryAndFileNamePrefix:Q,activeDirectoryPath:L,navigateToModeSpecificFiltering:et,uploadFiles:I,uploadsMap:B,uploadsList:V,downloadFiles:U,downloadsList:H,downloadCancel:$,configurableColumns:t,enabledColumns:n,sortableColumns:r,toggleColumnVisibility:m,setColumnsVisible:g,setColumnsHidden:v,toggleSort:y,setSortDirection:b,setSortField:x,sortField:w,filters:S,fileNamePrefixFilter:T,setFileNamePrefixFilter:X,setFilter:O,removeFilter:M,removeLastFilter:P,resetFilters:A,sortDirection:j,resetDefaultColumnVisibility:k,getFileUrl:W,activeExplorerMode:z,setExplorerModeDirectory:eu,setExplorerModeFlat:ec}}();return(0,r.jsx)(ea.Provider,{value:n,children:t})}},89421: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"}]},46741:function(e,t,n){"use strict";n.d(t,{x:function(){return T},l:function(){return A}});var r,i=n(52322),a=n(18575),o=n(83429),s=n(91426),l=n(31405),u=n(5632),c=n(2784),d=n(777),f=n(99634),h=n(55699),p=n(74282),m=n(28420),g=n(60381),v=n(96647),y=n(91048),b=n(22836),x=n(96612),w=n(7699),j=n(6391),k=n.n(j);let E=[{id:"actions",label:"",fixed:!0,category:"general",contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,i.jsx)(a.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},render:e=>{let{data:t}=e;return(0,i.jsx)(x.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,s.s2)({config:{swr:{dedupingInterval:5e3}}}).data)||void 0===t?void 0:t.length);return(0,i.jsx)(a.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,i.jsxs)("div",{className:"flex gap-2 items-center","data-testid":n.isBlocked?"blocked":"allowed",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,i.jsx)(m.SmH,{}):(0,i.jsx)(m.DI$,{})})}),(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,i.jsx)(a.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}=e;return(0,i.jsx)(a.ua7,{side:"right",content:t.isUsable?"Host is usable":"Host is not usable",children:(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{"aria-label":t.isUsable?"usable":"not usable",color:t.isUsable?"green":"red",children:t.isUsable?(0,i.jsx)(m.DI$,{}):(0,i.jsx)(m.SmH,{})})}),(0,i.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,i.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t}=e;return(0,i.jsx)(a.ua7,{side:"right",content:t.isGouging?"Host is price gouging":"Host is not price gouging",children:(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:t.isGouging?"red":"subtle",children:t.isGouging?(0,i.jsx)(m.SmH,{}):(0,i.jsx)(m.I98,{})})}),(0,i.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,i.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},t)})})]})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,o.D)();if(n.find(e=>{var n;return null===(n=e.route)||void 0===n?void 0:n.startsWith(w.$G.replace(":hostkey",t.publicKey))}))return(0,i.jsx)(a.xgg,{});let r=(0,v.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),s="",l=null,u="subtle";return t.lastScan||(s="host has not been scanned",l=(0,i.jsx)(m.I98,{}),u="subtle"),t.lastScan&&!t.lastScanSuccess&&(s="host scan failed ".concat(r),l=(0,i.jsx)(m.SmH,{}),u="red"),t.lastScan&&t.lastScanSuccess&&(s="host scan succeeded ".concat(r),l=(0,i.jsx)(m.DI$,{}),u="green"),(0,i.jsx)(a.ua7,{side:"right",content:s,children:(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:u,children:l})}),t.lastScan&&(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(a.xvT,{size:"12",noWrap:!0,children:r}),(0,i.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,y.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,i.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,i.jsx)(m.DI$,{}):(0,i.jsx)(m.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,i.jsx)(a.XxW,{value:t.netAddress,size:"12",type:"hostIp",siascanUrl:n.siascanUrl})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t,context:n}=e;return(0,i.jsx)(a.XxW,{value:t.publicKey,size:"12",type:"hostPublicKey",siascanUrl:n.siascanUrl})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return t.lastAnnouncement?(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,v.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,i.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,b.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,i.jsx)(a.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,g.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,g.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,i.jsx)(a.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,g.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,i.jsx)(a.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,g.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,g.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,g.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,g.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>e.toPrecision(2)})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:S("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",function(e){let{data:t}=e;if(!t[r])return null;let n=t[r].acceptingcontracts;return(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:n?"green":"red",children:n?(0,i.jsx)(m.DI$,{}):(0,i.jsx)(m.SmH,{})})})})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:C("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:O("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:C("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:O("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:O("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:C("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:O("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:C("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:O("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:S("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:C("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,i.jsx)(m.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,i.jsx)(m.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,i.jsx)(m.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 _(e,t){return(0,c.memo)(function(n){let{data:r}=n;return r[e]?(0,i.jsx)(a.ho9,{displayBoth:!0,size:"12",value:new(k())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function C(e,t,n){return function(r){let{data:o}=r;return o[e]?(0,i.jsx)(a.m2c,{size:"12",value:new(k())(o[e][t]||0),variant:"value",format:e=>(0,g.yF)(e,{abbreviated:n})}):null}}function S(e,t){return function(n){let{data:r}=n;return r[e]?(0,i.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function O(e,t){return function(n){let{data:r}=n;if(!r[e])return null;let o=r[e][t];return(0,i.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,g.vW)(o)})}}let M=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"],P=(0,c.createContext)({}),A=()=>(0,c.useContext)(P);function T(e){let{children:t}=e,n=function(){var e;let t=(0,u.useRouter)(),[n,r]=(0,c.useState)("list"),i=Number(t.query.limit||50),m=Number(t.query.offset||0),{filters:g,setFilter:v,removeFilter:y,removeLastFilter:b,resetFilters:x}=(0,a.Uu5)(),{dataset:w}=(0,p.G)(),j=(0,c.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&w&&(e=w.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return(null==t?void 0:t.value)&&e.push(t.value),e.length?e:void 0},[g,w]),_=(0,c.useMemo)(()=>{var e,t,n;return{limit:i,offset:m,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:j}},[g,j,i,m]),C=(0,s.lW)({payload:_,config:{swr:{refreshInterval:f.h}}}),S=(0,s.s2)(),O=(0,s.uf)(),P=!!(null===(e=S.data)||void 0===e?void 0:e.length),{settings:A}=(0,o.Hv)(),T=(0,l.JL)({disabled:!A.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,c.useEffect)(()=>{A.siaCentral||r("list")},[A.siaCentral]);let N=(0,c.useMemo)(()=>{var e;return(null===(e=T.data)||void 0===e?void 0:e.hosts)||[]},[T.data]),R=(0,c.useRef)(d.N),D=(0,c.useCallback)(e=>{R.current=e},[R]),L=(0,c.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),z=function(e){let{response:t,allContracts:n,allowlist:r,blocklist:i,isAllowlistActive:o,geoHosts:s}=e;return(0,c.useMemo)(()=>{let e=r.data,l=i.data;if(t.data&&e&&l)return t.data.map(t=>{var r;let i=s.find(e=>e.public_key===t.publicKey);return{id:t.publicKey,netAddress:t.netAddress,publicKey:t.publicKey,lastScanSuccess:t.interactions.lastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===t.interactions.lastScan?void 0:t.interactions.lastScan,knownSince:"0001-01-01T00:00:00Z"===t.knownSince?void 0:t.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===t.lastAnnouncement?void 0:t.lastAnnouncement,uptime:new(k())(t.interactions.uptime||0),downtime:new(k())(t.interactions.downtime||0),successfulInteractions:new(k())(t.interactions.successfulInteractions||0),totalInteractions:new(k())(t.interactions.successfulInteractions+t.interactions.failedInteractions||0),failedInteractions:new(k())(t.interactions.failedInteractions||0),totalScans:new(k())(t.interactions.totalScans||0),activeContractsCount:new(k())((null==n?void 0:n.filter(e=>e.hostKey===t.publicKey).length)||0),activeContracts:(null==n?void 0:n.filter(e=>e.hostKey===t.publicKey))||[],priceTable:t.priceTable,settings:t.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)}}({host:t,allowlist:e,blocklist:l,isAllowlistActive:o}),...(r=t.checks,{score:new(k())((null==r?void 0:r.score)||0),scoreBreakdown:{age:new(k())((null==r?void 0:r.scoreBreakdown.age)||0),collateral:new(k())((null==r?void 0:r.scoreBreakdown.collateral)||0),interactions:new(k())((null==r?void 0:r.scoreBreakdown.interactions)||0),prices:new(k())((null==r?void 0:r.scoreBreakdown.prices)||0),storageRemaining:new(k())((null==r?void 0:r.scoreBreakdown.storageRemaining)||0),uptime:new(k())((null==r?void 0:r.scoreBreakdown.uptime)||0),version:new(k())((null==r?void 0:r.scoreBreakdown.version)||0)},isGouging:Object.values((null==r?void 0:r.gougingBreakdown)||{}).some(e=>e),isUsable:!!(null==r?void 0:r.usable),gougingBreakdown:(null==r?void 0:r.gougingBreakdown)||{},usabilityBreakdown:(null==r?void 0:r.usabilityBreakdown)||{blocked:!1,gouging:!1,lowScore:!1,notAcceptingContracts:!1,notAnnounced:!1,notCompletingScan:!1,offline:!1,redundantIP:!1},unusableReasons:r?(0,a.qPQ)(r.usabilityBreakdown).reduce((e,t)=>{let[n,r]=t;return r?e.concat(function(e){switch(e){case"blocked":return"Host is blocked";case"gouging":return"Host is gouging";case"lowScore":return"Host has low score";case"notAcceptingContracts":return"Host is not accepting contracts";case"notAnnounced":return"Host is not announced";case"notCompletingScan":return"Host is not completing scan";case"offline":return"Host is offline";case"redundantIP":return"Host has redundant IP";default:return"Unknown"}}(n)):e},[]):[]}),location:null==i?void 0:i.location,countryCode:null==i?void 0:i.country_code,onClick:()=>null,isSelected:!1}})},[t.data,n,r.data,i.data,o,s])}({response:C,allContracts:w,allowlist:S,blocklist:O,isAllowlistActive:P,geoHosts:N}),{configurableColumns:F,enabledColumns:Z,toggleColumnVisibility:I,setColumnsVisible:B,setColumnsHidden:V,toggleSort:U,setSortDirection:H,setSortField:W,sortField:$,sortDirection:q,resetDefaultColumnVisibility:K}=(0,a.oy6)("renterd/v0/hosts",{columns:E,columnsDefaultVisible:M}),Y=(0,c.useMemo)(()=>E.filter(e=>Z.includes(e.id)),[Z]),G=C.isValidating,X=C.error,J=(0,a.c2j)(z,G,X,g),Q=(0,c.useMemo)(()=>null==z?void 0:z.filter(e=>e.location),[z]),ee=(0,a.A7R)(z),et=(0,c.useMemo)(()=>{if(1===ee.selectedIds.length)return null==z?void 0:z.find(e=>e.publicKey===ee.selectedIds[0])},[z,ee.selectedIds]),en=(0,c.useMemo)(()=>{if(z)return z.map(e=>({...e,onClick:t=>ee.onSelect(e.id,t),isSelected:!!ee.selection[e.id]}))},[z,ee]),er=(0,h.B)(),ei=(0,c.useMemo)(()=>({siascanUrl:er,multiSelect:ee}),[er,ee]),ea=(0,c.useCallback)((e,t)=>{(null==et?void 0:et.publicKey)!==e&&(ee.deselectAll(),ee.onSelect(e),t&&R.current.moveToLocation(t),L(e))},[et,ee,R,L]);return(0,c.useEffect)(()=>{if(!et||"map"!==n)return;let{location:e}=et||{};e?R.current.moveToLocation(e):(0,a.RFt)({title:"Location not available for host ".concat((0,a.$Gg)(et.publicKey,20))})},[et]),{setCmd:D,viewMode:n,activeHost:et,onHostMapClick:ea,setViewMode:r,hostsWithLocation:Q,error:X,dataState:J,offset:m,limit:i,pageCount:(null==en?void 0:en.length)||0,columns:Y,datasetPage:en,tableContext:ei,configurableColumns:F,enabledColumns:Z,toggleColumnVisibility:I,setColumnsVisible:B,setColumnsHidden:V,toggleSort:U,setSortDirection:H,setSortField:W,sortField:$,sortDirection:q,resetDefaultColumnVisibility:K,filters:g,setFilter:v,removeFilter:y,removeLastFilter:b,resetFilters:x,multiSelect:ee}}();return(0,i.jsx)(P.Provider,{value:n,children:t})}},54597:function(e,t,n){"use strict";n.d(t,{Kg:function(){return a},jY:function(){return i}});var r=n(18575);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.isUsable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},83239:function(e,t,n){"use strict";n.d(t,{f:function(){return v},E:function(){return g}});var r=n(52322),i=n(18575),a=n(5632),o=n(2784),s=n(14974),l=n(28420),u=n(91426),c=n(6539),d=n(82285);function f(e){let{s3Key:t,contentProps:n,buttonProps:a}=e,{openConfirmDialog:s}=(0,d.Rh)(),f=(0,u.AR)(),h=(0,u._M)(),p=(0,o.useCallback)(async()=>{var e;if(!f.data){(0,i.OHV)({title:"Error deleting key"});return}let n=(0,c.Z)(null===(e=f.data)||void 0===e?void 0:e.authentication.v4Keypairs,t),r=await h.put({payload:{...f.data,authentication:{...f.data.authentication,v4Keypairs:n}}});r.error?(0,i.OHV)({title:"Error deleting key",body:r.error}):(0,i.OPV)({title:"Key ".concat(t," deleted")})},[f.data,t,h]);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{"aria-label":"key context menu",icon:"hover",size:"none",...a,children:(0,r.jsx)(l.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:()=>{s({title:"Delete key ".concat((0,i.$Gg)(t,15)),action:"Delete",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 delete 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)(l.Jrl,{})}),"Delete key"]})]})}let h=[{id:"actions",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,r.jsx)(i.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},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(99634);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.AR)({config:{swr:{refreshInterval:p.h}}}),l=(0,o.useMemo)(()=>{var e;if(r.data)return Object.entries((null===(e=r.data)||void 0===e?void 0:e.authentication.v4Keypairs)||{}).map(e=>{let[t,n]=e;return{id:t,key:t,secret:n}})||[]},[r.data]),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:g}=(0,i.Wdu)(),{configurableColumns:v,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:_,sortField:C,sortDirection:S,resetDefaultColumnVisibility:O}=(0,i.oy6)("renterd/v0/keys",{columns:h,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),M=(0,i._4u)({dataset:l,filters:c,sortField:C,sortDirection:S}),P=(0,o.useMemo)(()=>{if(M)return M.slice(n,n+t)},[M,n,t]),A=(0,i.A7R)(P),T=(0,o.useMemo)(()=>{if(P)return P.map(e=>({...e,onClick:t=>A.onSelect(e.id,t),isSelected:!!A.selection[e.id]}))},[P,A]),N=(0,o.useMemo)(()=>h.filter(e=>e.fixed||y.includes(e.id)),[y]),R=(0,i.c2j)(T,r.isValidating,r.error,c),D=(0,o.useMemo)(()=>({multiSelect:A}),[A]);return{dataState:R,limit:t,offset:n,isLoading:r.isLoading,error:r.error,pageCount:(null==T?void 0:T.length)||0,datasetCount:(null==l?void 0:l.length)||0,datasetFilteredCount:(null==M?void 0:M.length)||0,columns:N,multiSelect:A,cellContext:D,dataset:l,datasetPage:T,configurableColumns:v,enabledColumns:y,sortableColumns:b,toggleColumnVisibility:x,setColumnsVisible:w,setColumnsHidden:j,toggleSort:k,setSortDirection:E,setSortField:_,sortField:C,filters:c,setFilter:d,removeFilter:f,removeLastFilter:m,resetFilters:g,sortDirection:S,resetDefaultColumnVisibility:O}}();return(0,r.jsx)(m.Provider,{value:n,children:t})}},14974: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"}]},88022:function(e,t,n){"use strict";n.d(t,{v:function(){return w},n:function(){return x}});var r=n(52322),i=n(18575),a=n(91426),o=n(2784),s=n(5632),l=n(55699),u=n(99634),c=n(16211),d=n(60381),f=n(28420);let h=[{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{id:t},context:n}=e;return t?(0,r.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID",type:"transaction",siascanUrl:n.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{txType:t}}=e;return(0,r.jsx)(i.Cts,{size:"small",children:(0,d.pX)(t)})}},{id:"height",label:"height",category:"general",contentClassName:"justify-end",render:e=>{let{data:{height:t,pending:n,maturityHeight:a,isMature:o}}=e;return n?(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,r.jsx)(i.xgg,{})}):t?t&&a&&a>t?(0,r.jsx)(i.ua7,{content:o?"The maturity height has been reached.":"The maturity height has not been reached, therefore the output is still locked.",children:(0,r.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(i.xvT,{size:"12",font:"mono",ellipsis:!0,color:o?"green":"red",className:"flex gap-1 items-center",children:[o?(0,r.jsx)(f.VmF,{}):(0,r.jsx)(f.Lur,{}),a.toLocaleString()]})}),(0,r.jsxs)("div",{className:"flex justify-between items-end gap-1",children:[(0,r.jsx)("div",{className:"pl-[8px] pb-[6px]",children:(0,r.jsx)("div",{className:"border-l border-b border-gray-800 dark:border-graydark-800 h-[20px] w-[7px]"})}),(0,r.jsx)(i.xvT,{size:"12",font:"mono",color:"subtle",ellipsis:!0,children:t.toLocaleString()})]})]})}):(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",contentClassName:"justify-end",render:e=>{let{data:{timestamp:t,pending:n}}=e;return n?(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,r.jsx)(i.xgg,{})}):(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,d.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amountSc:t,amountSf:n}}=e;return t?(0,r.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!t.isZero()&&(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}),!!n&&(0,r.jsx)(i.Sby,{size:"12",value:n})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t},context:n}=e;return t?(0,r.jsx)(i.XxW,{size:"12",value:t,label:"contract ID",siascanUrl:n.siascanUrl}):null}}],p=["transactionId","type","height","timestamp","amount","fee"],m=[];var g=n(6391),v=n.n(g);let y=[],b=(0,o.createContext)({}),x=()=>(0,o.useContext)(b);function w(e){let{children:t}=e,n=function(){let e=(0,s.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.sG)({params:{limit:t,offset:n},config:{swr:{refreshInterval:u.h}}}),f=(0,a.a0)({config:{swr:{refreshInterval:u.h}}}),g=(0,c.n)(),b=(0,o.useMemo)(()=>{if(!r.data||!f.data)return;let e=f.data.map(e=>{let t=(0,d.Jz)(e),n=(0,d.hq)(e);return{id:e.id,timestamp:0,pending:!0,type:e.type,txType:(0,d.uC)(e),isMature:!1,amountSc:t,fee:n}}),t=r.data.map(e=>{let t=(0,d.Jz)(e),n=(0,d.hq)(e),r=(0,d.hR)(e),i=e.maturityHeight<=g.nodeBlockHeight;return{id:e.id,type:e.type,txType:(0,d.uC)(e),timestamp:new Date(e.timestamp).getTime(),maturityHeight:e.maturityHeight,isMature:i,height:e.index.height,pending:!1,amountSc:t,fee:n,contractId:r}});return[...e.reverse(),...t]},[r.data,f.data,g.nodeBlockHeight]),{configurableColumns:x,enabledColumns:w,sortableColumns:j,toggleColumnVisibility:k,setColumnsVisible:E,setColumnsHidden:_,toggleSort:C,setSortDirection:S,setSortField:O,sortField:M,sortDirection:P,resetDefaultColumnVisibility:A}=(0,i.oy6)("renterd/v0/events",{columns:h,columnsDefaultVisible:p,sortOptions:m,defaultSortField:"id"}),T=(0,o.useMemo)(()=>h.filter(e=>e.fixed||w.includes(e.id)),[w]),N=r.isValidating||f.isValidating,R=r.error||f.error,D=(0,i.c2j)(b,N,R,y),L=(0,l.B)(),z=(0,o.useMemo)(()=>({siascanUrl:L}),[L]),F=(0,d.Nr)(1),Z=(0,o.useMemo)(()=>new Date(new Date().getTime()-30*F).toISOString(),[30,F]),I=(0,a.X1)({params:{start:Z,interval:F,n:30}});return{balances:(0,o.useMemo)(()=>(I.data||[]).map(e=>({sc:new(v())(e.spendable).plus(e.unconfirmed).toNumber(),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[I.data]),metrics:I,dataset:b,error:R,dataState:D,offset:n,limit:t,pageCount:(null==b?void 0:b.length)||0,defaultPageSize:50,cellContext:z,configurableColumns:x,enabledColumns:w,sortableColumns:j,toggleColumnVisibility:k,setColumnsVisible:E,setColumnsHidden:_,toggleSort:C,setSortDirection:S,setSortField:O,sortField:M,sortDirection:P,resetDefaultColumnVisibility:A,filters:y,filteredTableColumns:T,columns:h}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},34605:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(52322),i=n(18575),a=n(25913),o=n(45382),s=n(60381),l=n(22836),u=n(28420);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:s}}=e;return s?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"Uploading from a different session"}):(0,r.jsx)(o.s,{loaded:t||0,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,s.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,l.Z)(new Date(t).getTime(),new Date)})}}]},26706:function(e,t,n){"use strict";n.d(t,{V:function(){return m},x:function(){return p}});var r=n(52322),i=n(18575),a=n(76221),o=n(91426),s=n(2784);let l=["path","status","size","createdAt"],u=[];var c=n(34605),d=n(25913),f=n(95810);let h=(0,s.createContext)({}),p=()=>(0,s.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:b,resetFilters:x}=(0,i.Uu5)(),w=(0,o.LS)(),j=(0,s.useMemo)(()=>({bucket:null==r?void 0:r.name,uploadIDMarker:m,limit:p}),[r,m,p]),k=(0,o.bg)({disabled:!r,payload:j,config:{swr:{keepPreviousData:!0}}}),E=(0,s.useCallback)(async()=>{var e;if((null===(e=k.data)||void 0===e?void 0:e.uploads)&&(null==r?void 0:r.name))return Promise.all(k.data.uploads.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:r.name,key:e.key,uploadID:e.uploadID}})}))},[k.data,w,r,n]),_=(0,s.useMemo)(()=>{var e;return(null===(e=k.data)||void 0===e?void 0:e.uploads)&&(null==r?void 0:r.name)?k.data.uploads.map(e=>{let t=e.uploadID,i=e.key,a=(0,d.vt)(i),o=(0,d.v_)(r.name,e.key);return n[t]||{id:t,path:o,key:i,bucket:r,name:a,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,key:e.key,uploadID:e.uploadID}})}}}):[]},[n,r,k.data,w]),{configurableColumns:C,enabledColumns:S,sortableColumns:O,toggleColumnVisibility:M,setColumnsVisible:P,setColumnsHidden:A,toggleSort:T,setSortDirection:N,setSortField:R,sortField:D,sortDirection:L,resetDefaultColumnVisibility:z}=(0,i.oy6)("renterd/v0/uploads",{columns:c.z,columnsDefaultVisible:l,sortOptions:u,defaultSortField:"path"}),F=(0,s.useMemo)(()=>c.z.filter(e=>e.fixed||S.includes(e.id)),[S]);return{abortAll:E,dataState:(0,i.c2j)(_,k.isValidating,k.error,g),limit:p,nextMarker:null===(e=k.data)||void 0===e?void 0:e.nextUploadIDMarker,hasMore:!!(null===(t=k.data)||void 0===t?void 0:t.hasMore),isLoading:k.isLoading,error:k.error,pageCount:(null==_?void 0:_.length)||0,columns:F,datasetPage:_,configurableColumns:C,enabledColumns:S,sortableColumns:O,toggleColumnVisibility:M,setColumnsVisible:P,setColumnsHidden:A,toggleSort:T,setSortDirection:N,setSortField:R,sortField:D,filters:g,setFilter:v,removeFilter:y,removeLastFilter:b,resetFilters:x,sortDirection:L,resetDefaultColumnVisibility:z}}();return(0,r.jsx)(h.Provider,{value:n,children:t})}},12295:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(18575),i=n(91426),a=n(60381),o=n(2784);function s(){let e=(0,i.ni)();return(0,o.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:1===t.length?"Host ".concat((0,r.$Gg)(t[0],20)," added to allowlist."):"Added ".concat((0,a._6)(t.length,"host")," to the allowlist.")}),n.length&&(0,r.OPV)({title:"Allowlist updated",body:1===n.length?"Host ".concat((0,r.$Gg)(n[0],20)," removed from allowlist."):"Removed ".concat((0,a._6)(n.length,"host")," from the allowlist.")}),!0)})(),[e])}},9408:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(18575),i=n(91426),a=n(60381),o=n(2784);function s(){let e=(0,i.Os)();return(0,o.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:1===t.length?"Host ".concat((0,r.$Gg)(t[0],20)," added to blocklist."):"Added ".concat((0,a._6)(t.length,"host")," to the blocklist.")}),n.length&&(0,r.RFt)({title:"Blocklist updated",body:1===n.length?"Host ".concat((0,r.$Gg)(n[0],20)," removed from blocklist."):"Removed ".concat((0,a._6)(n.length,"host")," from the blocklist.")}),!0)})(),[e])}},55699:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(18575),i=n(91426);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}},16211:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(60381),i=n(83429),a=n(91426);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:s}=(0,i.Hv)(),l=(0,a.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XB)(60):(0,r.XB)(10)}}}),u=(0,a.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,a.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)&&e.scanHeight>=c?(0,r.XB)(60):(0,r.XB)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:!!(null===(t=l.data)||void 0===t?void 0:t.synced),isWalletSynced:!!((null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(o=d.data)||void 0===o?void 0:o.scanHeight)&&d.data.scanHeight>=c-1),nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},32974:function(e,t,n){"use strict";n.d(t,{D:function(){return o},V:function(){return a}});var r=n(52322),i=n(28420);let a={excellent:1,good:.5,poor:0};function o(e){let{health:t=0,size:n,isDirectory:o}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},25913: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 b},vt:function(){return g},kj:function(){return p},rj:function(){return y},IQ:function(){return v},v_:function(){return d},rd:function(){return x}});var r=n(36556),i=n(90821),a=n(45904),o=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},s=n(51075),l=n(16601),u=/^\s+/,c=function(e,t,n){if((e=(0,l.Z)(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,s.Z)(e),c=o(a,(0,s.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 b(e){return v(e=c(e,"/"))?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function x(e){return e.join("/")}function w(e){return v(e=c(e,"/"))?e:e.concat("/")}},85556:function(e,t,n){"use strict";n.d(t,{Di:function(){return i},Ep:function(){return o},Fg:function(){return a}});var r=n(25913);function i(e,t){var n;let i=(0,r.rd)(e);return(null==t?void 0:null===(n=t.collisions)||void 0===n?void 0:n.length)&&(i=".."===t.collisions[0].id?(0,r.rd)(e.slice(0,-1)):String(t.collisions[0].id)),i}function a(e,t){let n=[];for(let i of e){let e=(0,r.vt)(i),a=(0,r.ru)(i),o=(0,r.kj)(i),s=(0,r.kj)((0,r.v_)(t,e));o!==s&&n.push({bucket:a,from:o,to:s,mode:e.endsWith("/")?"multi":"single"})}return n.sort((e,t)=>e.from===t.from?0:e.from.startsWith(t.from)?-1:1),n}function o(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"}}},65047:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(52322);n(21962);var i=n(18575);n(2784);var a=n(82285),o=n(74282),s=n(46741),l=n(28245),u=n(90040),c=n(88022),d=n(83239),f=n(40824),h=n(95810),p=n(3031),m=n(26706),g=n(45209);function v(e){let{children:t}=e;return(0,r.jsx)(l.w,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(a.Tu,{children:(0,r.jsx)(c.v,{children:(0,r.jsx)(o.x,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(h.e,{children:(0,r.jsx)(m.V,{children:(0,r.jsx)(p.V,{children:(0,r.jsx)(f.p,{children:(0,r.jsx)(d.f,{children:(0,r.jsxs)(g.b,{children:[(0,r.jsx)(a.xQ,{}),t]})})})})})})})})})})})})}var y=n(4300),b=n(29773),x=n.n(b),w=n(17282),j=n.n(w);let k=(0,n(82851).cx)(x().variable,j().variable);var E=n(7699);function _(e){return(0,r.jsx)(i.PD$,{className:k,fallback:e.pageProps.fallback,daemonExplorerInfoRoute:E.PS,passwordProtectRequestHooks:!0,lockRoutes:y._,children:(0,r.jsx)(v,{children:(0,r.jsx)(C,{...e})})})}function C(e){let{Component:t,pageProps:n}=e,i=t.Layout,a=t.useLayoutProps(),{fallback:o,...s}=n;return(0,r.jsx)(i,{...a,children:(0,r.jsx)(t,{...s})})}},18575:function(e,t,n){"use strict";let r,i,a,o,s,l,u,c,d,f,h;n.d(t,{tU3:function(){return NQ},$9_:function(){return Rn},zXq:function(){return Rt},juT:function(){return NE},Cts:function(){return uE},Z58:function(){return RD},WVB:function(){return gl},zxk:function(){return ue},b0u:function(){return MC},XZJ:function(){return uX},EKh:function(){return uS},npL:function(){return Dy},vRO:function(){return Dm},CN9:function(){return Dp},ckm:function(){return Da},QHy:function(){return R6},TaT:function(){return RH},eQh:function(){return uM},HfT:function(){return R9},wEc:function(){return Rz},ncR:function(){return Ab},VqE:function(){return fj},h_2:function(){return gh},Xiv:function(){return gp},Juw:function(){return gm},KpP:function(){return gg},fhJ:function(){return xK},S$c:function(){return AP},WyV:function(){return Dd},QBj:function(){return Rr},yEL:function(){return N7},cB7:function(){return A_},ZqQ:function(){return AE},IKw:function(){return AA},KZS:function(){return AC},zsw:function(){return b0},__J:function(){return gM},rUS:function(){return gT},Qjf:function(){return gN},xgg:function(){return ME},TRl:function(){return gR},kFS:function(){return gu},FzK:function(){return R4},Clw:function(){return gs},hv1:function(){return DW},PD$:function(){return DE},Wxm:function(){return be},uDJ:function(){return Nm},_5:function(){return Nv},wFK:function(){return Ng},s_4:function(){return n6},M9k:function(){return R3},VXA:function(){return R5},nvN:function(){return n3},u5Q:function(){return RL},j4H:function(){return y6},hmz:function(){return y8},J2e:function(){return vi},kod:function(){return vE},xrM:function(){return fb},PhF:function(){return y9},Z0O:function(){return gn},DLL:function(){return RC},ZBx:function(){return y3},KJW:function(){return NS},rsf:function(){return b_},D_D:function(){return Rm},iA_:function(){return Np},mQc:function(){return yj},nUL:function(){return y_},drW:function(){return yk},SPt:function(){return yE},t6k:function(){return De},xvT:function(){return n4},nvn:function(){return yS},ru1:function(){return Dt},ua7:function(){return l7},mPE:function(){return Rg},XxW:function(){return P6},PF9:function(){return P7},m2c:function(){return Ai},YKL:function(){return Ae},ho9:function(){return Ar},Sby:function(){return P9},QUh:function(){return RO},weF:function(){return Rd},YNn:function(){return Rx},DmW:function(){return Rw},O9T:function(){return jK},fVJ:function(){return RT},vQq:function(){return P0},E5z:function(){return P2},HLH:function(){return DK},fsB:function(){return Dr},JMs:function(){return Di},Y_Z:function(){return RM},EJC:function(){return D$},kOJ:function(){return RA},eKZ:function(){return LD},Vkc:function(){return gi},S5N:function(){return LN},qPQ:function(){return LR},z$:function(){return n5},I13:function(){return P3},cEb:function(){return yC},$Gr:function(){return y1},OHV:function(){return PX},OPV:function(){return PG},RFt:function(){return PY},$Gg:function(){return P4},_4u:function(){return Dz},Wdu:function(){return DL},Y97:function(){return NJ},c2j:function(){return N0},t0Y:function(){return Rf},mYE:function(){return Dx},u$d:function(){return Dw},Z4p:function(){return Db},A7R:function(){return DU},WsO:function(){return N6},Uu5:function(){return DF},oy6:function(){return DR},nNd:function(){return Rj}});var p,m,g,v,y,b,x,w,j,k,E,_,C,S,O,M,P,A,T,N,R,D,L,z,F,Z,I,B,V,U,H,W,$,q,K,Y,G,X,J,Q,ee,et,en,er,ei,ea,eo,es=n(52322),el=n(2784),eu=n.t(el,2);function ec(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function ed(...e){return el.useCallback(ec(...e),e)}var ef=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(em);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(eh,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(eh,{...r,ref:t,children:n})});ef.displayName="Slot";var eh=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ec(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});eh.displayName="SlotClone";var ep=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function em(e){return el.isValidElement(e)&&e.type===ep}function eg(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function ev({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=eg(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=eg(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}var ey=n(28316),eb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ef:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ex(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var ew=globalThis?.document?el.useLayoutEffect:()=>{};function ej(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}var ek=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(eC);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(eE,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(eE,{...r,ref:t,children:n})});ek.displayName="Slot";var eE=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ej(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});eE.displayName="SlotClone";var e_=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function eC(e){return el.isValidElement(e)&&e.type===e_}var eS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ek:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eO=globalThis?.document?el.useLayoutEffect:()=>{},eM=e=>{let t,n;let{present:r,children:i}=e,a=function(e){var t,n;let[r,i]=el.useState(),a=el.useRef({}),o=el.useRef(e),s=el.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},el.useReducer((e,t)=>n[e][t]??e,t));return el.useEffect(()=>{let e=eP(a.current);s.current="mounted"===l?e:"none"},[l]),eO(()=>{let t=a.current,n=o.current;if(n!==e){let r=s.current,i=eP(t);e?u("MOUNT"):"none"===i||t?.display==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),eO(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let i=eP(a.current).includes(n.animationName);if(n.target===r&&i&&(u("ANIMATION_END"),!o.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(s.current=eP(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:el.useCallback(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(r),o="function"==typeof i?i({present:a.isPresent}):el.Children.only(i),s=function(...e){return el.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}(a.ref,(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?o.ref:(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?o.props.ref:o.props.ref||o.ref);return"function"==typeof i||a.isPresent?el.cloneElement(o,{ref:s}):null};function eP(e){return e?.animationName||"none"}eM.displayName="Presence";var eA=globalThis?.document?el.useLayoutEffect:()=>{},eT=eu["useId".toString()]||(()=>void 0),eN=0;function eR(e){let[t,n]=el.useState(eT());return eA(()=>{e||n(e=>e??String(eN++))},[e]),e||(t?`radix-${t}`:"")}var eD="Collapsible",[eL,ez]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eD),[eF,eZ]=eL(eD),eI=el.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[l=!1,u]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=ex(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=ex(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:o});return(0,es.jsx)(eF,{scope:n,disabled:a,contentId:eR(),open:l,onOpenToggle:el.useCallback(()=>u(e=>!e),[u]),children:(0,es.jsx)(eS.div,{"data-state":e$(l),"data-disabled":a?"":void 0,...s,ref:t})})});eI.displayName=eD;var eB="CollapsibleTrigger",eV=el.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=eZ(eB,n);return(0,es.jsx)(eS.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":e$(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,i.onOpenToggle)})});eV.displayName=eB;var eU="CollapsibleContent",eH=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=eZ(eU,e.__scopeCollapsible);return(0,es.jsx)(eM,{present:n||i.open,children:({present:e})=>(0,es.jsx)(eW,{...r,ref:t,present:e})})});eH.displayName=eU;var eW=el.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=eZ(eU,n),[s,l]=el.useState(r),u=el.useRef(null),c=function(...e){return el.useCallback(ej(...e),e)}(t,u),d=el.useRef(0),f=d.current,h=el.useRef(0),p=h.current,m=o.open||s,g=el.useRef(m),v=el.useRef();return el.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),ew(()=>{let e=u.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),l(r)}},[o.open,r]),(0,es.jsx)(eS.div,{"data-state":e$(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},children:m&&i})});function e$(e){return e?"open":"closed"}var eq=el.createContext(void 0),eK="Accordion",eY=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[eG,eX,eJ]=function(e){let t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ed(t,a(s,n).collectionRef);return(0,es.jsx)(ef,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=ed(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(ef,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(eK),[eQ,e0]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eK,[eJ,ez]),e1=ez();el.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,es.jsx)(eG.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,es.jsx)(e8,{...r,ref:t}):(0,es.jsx)(e6,{...r,ref:t})})}).displayName=eK;var[e2,e4]=eQ(eK),[e3,e5]=eQ(eK,{collapsible:!1}),e6=el.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,l]=ev({prop:n,defaultProp:r,onChange:i});return(0,es.jsx)(e2,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:el.useCallback(()=>a&&l(""),[a,l]),children:(0,es.jsx)(e3,{scope:e.__scopeAccordion,collapsible:a,children:(0,es.jsx)(te,{...o,ref:t})})})}),e8=el.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],s]=ev({prop:n,defaultProp:r,onChange:i}),l=el.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=el.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,es.jsx)(e2,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:(0,es.jsx)(e3,{scope:e.__scopeAccordion,collapsible:!0,children:(0,es.jsx)(te,{...a,ref:t})})})}),[e7,e9]=eQ(eK),te=el.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...o}=e,s=ed(el.useRef(null),t),l=eX(n),u="ltr"===function(e){let t=el.useContext(eq);return e||t||"ltr"}(i),c=function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onKeyDown,e=>{if(!eY.includes(e.key))return;let t=e.target,n=l().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(-1===r)return;e.preventDefault();let o=r,s=i-1,c=()=>{(o=r+1)>s&&(o=0)},d=()=>{(o=r-1)<0&&(o=s)};switch(e.key){case"Home":o=0;break;case"End":o=s;break;case"ArrowRight":"horizontal"===a&&(u?c():d());break;case"ArrowDown":"vertical"===a&&c();break;case"ArrowLeft":"horizontal"===a&&(u?d():c());break;case"ArrowUp":"vertical"===a&&d()}let f=o%i;n[f].ref.current?.focus()});return(0,es.jsx)(e7,{scope:n,disabled:r,direction:i,orientation:a,children:(0,es.jsx)(eG.Slot,{scope:n,children:(0,es.jsx)(eb.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:c})})})}),tt="AccordionItem",[tn,tr]=eQ(tt);el.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=e9(tt,n),o=e4(tt,n),s=e1(n),l=eR(),u=r&&o.value.includes(r)||!1,c=a.disabled||e.disabled;return(0,es.jsx)(tn,{scope:n,open:u,disabled:c,triggerId:l,children:(0,es.jsx)(eI,{"data-orientation":a.orientation,"data-state":ts(u),...s,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})}).displayName=tt;var ti="AccordionHeader";el.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=e9(eK,n),a=tr(ti,n);return(0,es.jsx)(eb.h3,{"data-orientation":i.orientation,"data-state":ts(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})}).displayName=ti;var ta="AccordionTrigger";el.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=e9(eK,n),a=tr(ta,n),o=e5(ta,n),s=e1(n);return(0,es.jsx)(eG.ItemSlot,{scope:n,children:(0,es.jsx)(eV,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})}).displayName=ta;var to="AccordionContent";function ts(e){return e?"open":"closed"}el.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=e9(eK,n),a=tr(to,n),o=e1(n);return(0,es.jsx)(eH,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}).displayName=to;var tl=n(82851),tu=n(7896),tc=n(41816),td=n(26215),tf=n(34540),th=n(72130),tp=n(86029);let tm="dismissableLayer.update",tg=(0,el.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tv=(0,el.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,el.useContext)(tg),[d,f]=(0,el.useState)(null),[,h]=(0,el.useState)({}),p=(0,td.e)(t,e=>f(e)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,w=function(e){let t=(0,tp.W)(e),n=(0,el.useRef)(!1),r=(0,el.useRef)(()=>{});return(0,el.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){tb("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=[...c.branches].some(e=>e.contains(t));!x||n||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),j=function(e){let t=(0,tp.W)(e),n=(0,el.useRef)(!1);return(0,el.useEffect)(()=>{let e=e=>{e.target&&!n.current&&tb("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;[...c.branches].some(e=>e.contains(t))||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=(0,tp.W)(e);(0,el.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{y!==c.layers.size-1||(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,el.useEffect)(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),ty(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[d,n,c]),(0,el.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),ty())},[d,c]),(0,el.useEffect)(()=>{let e=()=>h({});return document.addEventListener(tm,e),()=>document.removeEventListener(tm,e)},[]),(0,el.createElement)(th.WV.div,(0,tu.Z)({},u,{ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:(0,tc.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,tc.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,tc.M)(e.onPointerDownCapture,w.onPointerDownCapture)}))});function ty(){let e=new CustomEvent(tm);document.dispatchEvent(e)}function tb(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,th.jH)(i,a):i.dispatchEvent(a)}var tx=n(64680);let tw=eu["useId".toString()]||(()=>void 0),tj=0;function tk(e){return e.split("-")[0]}function tE(e){return e.split("-")[1]}function t_(e){return["top","bottom"].includes(tk(e))?"x":"y"}function tC(e){return"y"===e?"height":"width"}function tS(e,t,n){let r,{reference:i,floating:a}=e,o=i.x+i.width/2-a.width/2,s=i.y+i.height/2-a.height/2,l=t_(t),u=tC(l),c=i[u]/2-a[u]/2,d="x"===l;switch(tk(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:s};break;case"left":r={x:i.x-a.width,y:s};break;default:r={x:i.x,y:i.y}}switch(tE(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let tO=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=await (null==o.isRTL?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=tS(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:a,placement:o,rects:s,platform:l}=t;if(null==n)return{};let u=tM(r),c={x:i,y:a},d=t_(o),f=tE(o),h=tC(d),p=await l.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],j=x-p[h]-u[g],k=x/2-p[h]/2+(v/2-y/2),E=tN(w,tT(k,j)),_=("start"===f?u[m]:u[g])>0&&k!==E&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(_?ktD[e])}let tz={start:"end",end:"start"};function tF(e){return e.replace(/start|end/g,e=>tz[e])}let tZ=["top","right","bottom","left"];function tI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tB(e){return tZ.some(t=>e[t]>=0)}tZ.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let tV=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=tI(await tA(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tB(t)}}}case"escaped":{let t=tI(await tA(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tB(t)}}}default:return{}}}}};function tU(e){return"x"===e?"y":"x"}function tH(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tW(e){if(null==e)return window;if(!tH(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function t$(e){return tW(e).getComputedStyle(e)}function tq(e){return tH(e)?"":e?(e.nodeName||"").toLowerCase():""}function tK(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function tY(e){return e instanceof tW(e).HTMLElement}function tG(e){return e instanceof tW(e).Element}function tX(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tW(e).ShadowRoot||e instanceof ShadowRoot)}function tJ(e){let{overflow:t,overflowX:n,overflowY:r}=t$(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tQ(e){let t=/firefox/i.test(tK()),n=t$(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 t0(){return!/^((?!chrome|android).)*safari/i.test(tK())}let t1=Math.min,t2=Math.max,t4=Math.round;function t3(e,t,n){var r,i,a,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&tY(e)&&(l=e.offsetWidth>0&&t4(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&t4(s.height)/e.offsetHeight||1);let c=tG(e)?tW(e):window,d=!t0()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function t5(e){return((e instanceof tW(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function t6(e){return tG(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function t8(e){return t3(t5(e)).left+t6(e).scrollLeft}function t7(e){return"html"===tq(e)?e:e.assignedSlot||e.parentNode||(tX(e)?e.host:null)||t5(e)}function t9(e){return tY(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ne(e){let t=tW(e),n=t9(e);for(;n&&["table","td","th"].includes(tq(n))&&"static"===getComputedStyle(n).position;)n=t9(n);return n&&("html"===tq(n)||"body"===tq(n)&&"static"===getComputedStyle(n).position&&!tQ(n))?t:n||function(e){let t=t7(e);for(tX(t)&&(t=t.host);tY(t)&&!["html","body"].includes(tq(t));){if(tQ(t))return t;t=t.parentNode}return null}(e)||t}function nt(e){if(tY(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=t3(e);return{width:t.width,height:t.height}}function nn(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=t7(t);return["html","body","#document"].includes(tq(n))?t.ownerDocument.body:tY(n)&&tJ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tW(r),o=i?[a].concat(a.visualViewport||[],tJ(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(nn(o))}function nr(e,t,n){return"viewport"===t?tP(function(e,t){let n=tW(e),r=t5(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=t0();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n)):tG(t)?function(e,t){let n=t3(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):tP(function(e){var t;let n=t5(e),r=t6(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=t2(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=t2(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+t8(e),l=-r.scrollTop;return"rtl"===t$(i||n).direction&&(s+=t2(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(t5(e)))}let ni={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e){let t=nn(e),n=["absolute","fixed"].includes(t$(e).position)&&tY(e)?ne(e):e;return tG(n)?t.filter(e=>tG(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tX(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tq(e)):[]}(t):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=nr(t,n,i);return e.top=t2(r.top,e.top),e.right=t1(r.right,e.right),e.bottom=t1(r.bottom,e.bottom),e.left=t2(r.left,e.left),e},nr(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=tY(n),a=t5(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==tq(n)||tJ(a))&&(o=t6(n)),tY(n))){let e=t3(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}},isElement:tG,getDimensions:nt,getOffsetParent:ne,getDocumentElement:t5,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=tY(t),i=t5(t),a=t3(e,r&&function(e){let t=t3(e);return t4(t.width)!==e.offsetWidth||t4(t.height)!==e.offsetHeight}(t),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==tq(t)||tJ(i))&&(o=t6(t)),tY(t)){let e=t3(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=t8(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}(t,ne(n),r),floating:{...nt(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===t$(e).direction};function na(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i&&!s,u=a&&!s,c=l||u?[...tG(e)?nn(e):[],...nn(t)]:[];c.forEach(e=>{l&&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}),tG(e)&&!s&&f.observe(e),f.observe(t)}let h=s?t3(e):null;return s&&function t(){let r=t3(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let no=(e,t,n)=>tO(e,t,{platform:ni,...n});var ns="undefined"!=typeof document?el.useLayoutEffect:el.useEffect;let nl=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 tR({element:t.current,padding:n}).fn(e)}else if(t)return tR({element:t,padding:n}).fn(e);return{}}}},nu=(0,el.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,el.createElement)(th.WV.svg,(0,tu.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,el.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),nc="Popper",[nd,nf]=(0,tf.b)(nc),[nh,np]=nd(nc),nm=(0,el.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=np("PopperAnchor",n),o=(0,el.useRef)(null),s=(0,td.e)(t,o);return(0,el.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,el.createElement)(th.WV.div,(0,tu.Z)({},i,{ref:s}))}),ng="PopperContent",[nv,ny]=nd(ng),[nb,nx]=nd(ng,{hasParent:!1,positionUpdateFns:new Set}),nw=(0,el.forwardRef)((e,t)=>{var n,r,i,a,o,s,l,u,c,d,f,h;let{__scopePopper:p,side:m="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:b=0,collisionBoundary:x=[],collisionPadding:w=0,sticky:j="partial",hideWhenDetached:k=!1,avoidCollisions:E=!0,..._}=e,C=np(ng,p),[S,O]=(0,el.useState)(null),M=(0,td.e)(t,e=>O(e)),[P,A]=(0,el.useState)(null),T=function(e){let[t,n]=(0,el.useState)(void 0);return(0,tx.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}(P),N=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,R=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,D="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},L=Array.isArray(x)?x:[x],z=L.length>0,F={padding:D,boundary:L.filter(nE),altBoundary:z},{reference:Z,floating:I,strategy:B,x:V,y:U,placement:H,middlewareData:W,update:$}=function(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,a=el.useRef(null),o=el.useRef(null),s=function(e){let t=el.useRef(e);return ns(()=>{t.current=e}),t}(i),l=el.useRef(null),[u,c]=el.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=el.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=el.useCallback(()=>{a.current&&o.current&&no(a.current,o.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&ey.flushSync(()=>{c(e)})})},[d,n,r]);ns(()=>{p.current&&h()},[h]);let p=el.useRef(!1);ns(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=el.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),a.current&&o.current){if(s.current){let e=s.current(a.current,o.current,h);l.current=e}else h()}},[h,s]),g=el.useCallback(e=>{a.current=e,m()},[m]),v=el.useCallback(e=>{o.current=e,m()},[m]),y=el.useMemo(()=>({reference:a,floating:o}),[]);return el.useMemo(()=>({...u,update:h,refs:y,reference:g,floating:v}),[u,h,y,g,v])}({strategy:"fixed",placement:m+("center"!==v?"-"+v:""),whileElementsMounted:na,middleware:[{name:"offset",options:c={mainAxis:g+R,alignmentAxis:y},async fn(e){let{x:t,y:n}=e,r=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=tk(n),s=tE(n),l="x"===t_(n),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(e,c);return{x:t+r.x,y:n+r.y,data:r}}},E?{name:"shift",options:f={mainAxis:!0,crossAxis:!1,limiter:"partial"===j?(void 0===d&&(d={}),{options:d,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=d,u={x:t,y:n},c=t_(r),f=tU(c),h=u[c],p=u[f],m="function"==typeof o?o({...i,placement:r}):o,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===c?"height":"width",t=i.reference[c]-i.floating[e]+g.mainAxis,n=i.reference[c]+i.reference[e]-g.mainAxis;hn&&(h=n)}if(l){var v,y,b,x;let e="y"===c?"width":"height",t=["top","left"].includes(tk(r)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(y=a.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),o=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?g.crossAxis:0);po&&(p=o)}return{[c]:h,[f]:p}}}):void 0,...F},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=f,l={x:t,y:n},u=await tA(e,s),c=t_(tk(r)),d=tU(c),h=l[c],p=l[d];if(i){let e="y"===c?"bottom":"right";h=tN(h+u["y"===c?"top":"left"],tT(h,h-u[e]))}if(a){let e="y"===d?"bottom":"right";p=tN(p+u["y"===d?"top":"left"],tT(p,p-u[e]))}let m=o.fn({...e,[c]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-n}}}}:void 0,P?nl({element:P,padding:b}):void 0,E?{name:"flip",options:h={...F},async fn(e){var t,n,r,i;let{placement:a,middlewareData:o,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:g=!0,...v}=h,y=tk(a),b=p||(y!==l&&g?function(e){let t=tL(e);return[tF(e),t,tF(t)]}(l):[tL(l)]),x=[l,...b],w=await tA(e,v),j=[],k=(null==(t=o.flip)?void 0:t.overflows)||[];if(d&&j.push(w[y]),f){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=tE(e),i=t_(e),a=tC(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=tL(o)),{main:o,cross:tL(o)}}(a,s,await (null==u.isRTL?void 0:u.isRTL(c.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(n=null==(r=o.flip)?void 0:r.index)?n:0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let s="bottom";switch(m){case"bestFit":{let e=null==(i=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:i[0].placement;e&&(s=e);break}case"initialPlacement":s=l}if(a!==s)return{reset:{placement:s}}}return{}}}:void 0,n_({arrowWidth:N,arrowHeight:R}),k?tV({strategy:"referenceHidden"}):void 0].filter(nk)});(0,tx.b)(()=>{Z(C.anchor)},[Z,C.anchor]);let q=null!==V&&null!==U,[K,Y]=nC(H),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(a=W.arrow)||void 0===a?void 0:a.y,J=(null===(o=W.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Q,ee]=(0,el.useState)();(0,tx.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=nx(ng,p),er=!et;(0,el.useLayoutEffect)(()=>{if(!er)return en.add($),()=>{en.delete($)}},[er,en,$]),(0,el.useLayoutEffect)(()=>{er&&q&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,q,en]);let ei={"data-side":K,"data-align":Y,..._,ref:M,style:{..._.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,el.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:q?`translate3d(${Math.round(V)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,el.createElement)(nv,{scope:p,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:J},er?(0,el.createElement)(nb,{scope:p,hasParent:!0,positionUpdateFns:en},(0,el.createElement)(th.WV.div,ei)):(0,el.createElement)(th.WV.div,ei)))}),nj={top:"bottom",right:"left",bottom:"top",left:"right"};function nk(e){return void 0!==e}function nE(e){return null!==e}let n_=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=nC(s),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="",b="";return"bottom"===h?(y=c?m:`${g}px`,b=`${-f}px`):"top"===h?(y=c?m:`${g}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${v}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${v}px`),{data:{x:y,y:b}}}});function nC(e){let[t,n="center"]=e.split("-");return[t,n]}let nS=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,el.useState)(null);return(0,el.createElement)(nh,{scope:t,anchor:r,onAnchorChange:i},n)},nO=(0,el.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?ey.createPortal((0,el.createElement)(th.WV.div,(0,tu.Z)({},i,{ref:t})),r):null}),nM=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,el.useState)(),a=(0,el.useRef)({}),o=(0,el.useRef)(e),s=(0,el.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,el.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,el.useEffect)(()=>{let e=nP(a.current);s.current="mounted"===l?e:"none"},[l]),(0,tx.b)(()=>{let t=a.current,n=o.current;if(n!==e){let r=s.current,i=nP(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]),(0,tx.b)(()=>{if(r){let e=e=>{let t=nP(a.current).includes(e.animationName);e.target===r&&t&&(0,ey.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=nP(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(l),ref:(0,el.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):el.Children.only(n),a=(0,td.e)(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,el.cloneElement)(i,{ref:a}):null};function nP(e){return(null==e?void 0:e.animationName)||"none"}nM.displayName="Presence";var nA=n(99575),nT=n(73597);let nN=(0,el.forwardRef)((e,t)=>(0,el.createElement)(th.WV.span,(0,tu.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}}))),[nR,nD]=(0,tf.b)("Tooltip",[nf]),nL=nf(),nz="tooltip.open",[nF,nZ]=nR("TooltipProvider"),nI="Tooltip",[nB,nV]=nR(nI),nU="TooltipTrigger",nH=(0,el.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=nV(nU,n),a=nZ(nU,n),o=nL(n),s=(0,el.useRef)(null),l=(0,td.e)(t,s,i.onTriggerChange),u=(0,el.useRef)(!1),c=(0,el.useRef)(!1),d=(0,el.useCallback)(()=>u.current=!1,[]);return(0,el.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,el.createElement)(nm,(0,tu.Z)({asChild:!0},o),(0,el.createElement)(th.WV.button,(0,tu.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,tc.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,tc.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,tc.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,tc.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,tc.M)(e.onBlur,i.onClose),onClick:(0,tc.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nW="TooltipPortal",[n$,nq]=nR(nW,{forceMount:void 0}),nK="TooltipContent",nY=(0,el.forwardRef)((e,t)=>{let n=nq(nK,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=nV(nK,e.__scopeTooltip);return(0,el.createElement)(nM,{present:r||o.open},o.disableHoverableContent?(0,el.createElement)(nQ,(0,tu.Z)({side:i},a,{ref:t})):(0,el.createElement)(nG,(0,tu.Z)({side:i},a,{ref:t})))}),nG=(0,el.forwardRef)((e,t)=>{let n=nV(nK,e.__scopeTooltip),r=nZ(nK,e.__scopeTooltip),i=(0,el.useRef)(null),a=(0,td.e)(t,i),[o,s]=(0,el.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,el.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,el.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;s(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,el.useEffect)(()=>()=>f(),[f]),(0,el.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,el.useEffect)(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}(n,o);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,o,u,f]),(0,el.createElement)(nQ,(0,tu.Z)({},e,{ref:a}))}),[nX,nJ]=nR(nI,{isInside:!1}),nQ=(0,el.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=nV(nK,n),u=nL(n),{onClose:c}=l;return(0,el.useEffect)(()=>(document.addEventListener(nz,c),()=>document.removeEventListener(nz,c)),[c]),(0,el.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,el.createElement)(tv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,el.createElement)(nw,(0,tu.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,el.createElement)(nA.A4,null,r),(0,el.createElement)(nX,{scope:n,isInside:!0},(0,el.createElement)(nN,{id:l.contentId,role:"tooltip"},i||r))))}),n0=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=nZ(nI,e.__scopeTooltip),u=nL(t),[c,d]=(0,el.useState)(null),f=function(e){let[t,n]=el.useState(tw());return(0,tx.b)(()=>{n(e=>null!=e?e:String(tj++))},[void 0]),t?`radix-${t}`:""}(),h=(0,el.useRef)(0),p=null!=o?o:l.disableHoverableContent,m=null!=s?s:l.delayDuration,g=(0,el.useRef)(!1),[v=!1,y]=(0,nT.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(nz))):l.onClose(),null==a||a(e)}}),b=(0,el.useMemo)(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),x=(0,el.useCallback)(()=>{window.clearTimeout(h.current),g.current=!1,y(!0)},[y]),w=(0,el.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,el.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0)},m)},[m,y]);return(0,el.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,el.createElement)(nS,u,(0,el.createElement)(nB,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,el.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,el.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},n1=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=nV(nW,t);return(0,el.createElement)(n$,{scope:t,forceMount:n},(0,el.createElement)(nM,{present:n||a.open},(0,el.createElement)(nO,{asChild:!0,container:i},r)))},n2=(0,tl.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"}}),n4=el.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:a,weight:o,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,es.jsx)(n,{ref:t,className:(0,tl.cx)(r,n2({font:i,color:a,weight:o,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),n3=el.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,es.jsx)(n4,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,tl.cx)("leading-relaxed md:leading-relaxed",e.className)})}),n5=(0,tl.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"}}),n6=el.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,es.jsx)("div",{ref:t,className:n5({className:n,color:r}),...i})});var n8=n(93542);let n7=(void 0===n8||n8.env,"production"),n9=1/60*1e3,re="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),rt="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(re()),n9),rn=!0,rr=!1,ri=!1,ra={delta:0,timestamp:0},ro=["read","update","preRender","render","postRender"],rs=ro.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let l=s&&i,u=l?t:n;return a&&o.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nrr=!0),e),{}),rl=ro.reduce((e,t)=>{let n=rs[t];return e[t]=(e,t=!1,r=!1)=>(rr||rh(),n.schedule(e,t,r)),e},{}),ru=ro.reduce((e,t)=>(e[t]=rs[t].cancel,e),{}),rc=ro.reduce((e,t)=>(e[t]=()=>rs[t].process(ra),e),{}),rd=e=>rs[e].process(ra),rf=e=>{rr=!1,ra.delta=rn?n9:Math.max(Math.min(e-ra.timestamp,40),1),ra.timestamp=e,ri=!0,ro.forEach(rd),ri=!1,rr&&(rn=!1,rt(rf))},rh=()=>{rr=!0,rn=!0,ri||rt(rf)},rp=()=>ra,rm="undefined"!=typeof document,rg=rm?el.useLayoutEffect:el.useEffect;function rv(){let e=(0,el.useRef)(!1);return rg(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ry=(0,el.createContext)(null);function rb(e){let t=(0,el.useRef)(null);return null===t.current&&(t.current=e()),t.current}class rx extends el.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function rw({children:e,isPresent:t}){let n=(0,el.useId)(),r=(0,el.useRef)(null),i=(0,el.useRef)({width:0,height:0,top:0,left:0});return(0,el.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:s}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{36662: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,{I:function(){return y},_:function(){return m},a:function(){return p}});var o=["width","height","viewBox"],s=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"},u=n(13980),c=n.n(u),d=n(2784);function f(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 h(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 g=["className","children","tabIndex"],v=["tabindex"],y=d.forwardRef(function(e,t){var n=e.className,r=e.children,u=e.tabIndex,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,u=void 0===r?"0 0 ".concat(t," ").concat(n):r,c=a(e,o),d=c.tabindex,f=a(c,s),h=i(i(i({},l),f),{},{width:t,height:n,viewBox:u});return h["aria-label"]||h["aria-labelledby"]||h.title?(h.role="img",null!=d&&(h.focusable="true",h.tabindex=d)):h["aria-hidden"]=!0,h}(h(h({},m(e,g)),{},{tabindex:u})),f=c.tabindex,p=m(c,v);return n&&(p.className=n),null!=f&&(p.tabIndex=f),t&&(p.ref=t),d.createElement("svg",p,r)});y.displayName="Icon",y.propTypes={"aria-hidden":c().string,"aria-label":c().string,"aria-labelledby":c().string,children:c().node,className:c().string,height:c().oneOfType([c().number,c().string]),preserveAspectRatio:c().string,tabIndex:c().string,viewBox:c().string,width:c().oneOfType([c().number,c().string]),xmlns:c().string},y.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},63131:function(e,t,n){"use strict";n.d(t,{Gu6:function(){return D},I$H:function(){return A},JCW:function(){return O},KTM:function(){return N},gFQ:function(){return T},pHg:function(){return P},qdM:function(){return R},xVB:function(){return M}});var r,i,a,o,s,l,u,c,d,f,h,p,m,g,v,y=n(36662),b=n(2784),x=["children"],w=["children"],j=["children"],k=["children"],E=["children"],_=["children"],C=["children"],S=["children"],O=b.forwardRef(function(e,t){var n=e.children,i=(0,y._)(e,x);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=b.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)}),M=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,w);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=b.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"})),a||(a=b.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)}),P=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,j);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=b.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"})),s||(s=b.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)}),A=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,k);return b.createElement(y.I,(0,y.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=b.createElement("path",{d:"M22 17H24V19H22z"})),u||(u=b.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)}),T=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,E);return b.createElement(y.I,(0,y.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=b.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"})),d||(d=b.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),N=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,_);return b.createElement(y.I,(0,y.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=b.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"})),h||(h=b.createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),n)}),R=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,C);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=b.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"})),m||(m=b.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)}),D=b.forwardRef(function(e,t){var n=e.children,r=(0,y._)(e,S);return b.createElement(y.I,(0,y.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),g||(g=b.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"})),v||(v=b.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)})},44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return $},ResizeObserverEntry:function(){return C},ResizeObserverSize:function(){return c}});var r,i,a,o=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,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/,b=/^tb|vertical/,x=/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=!x&&"border-box"===n.boxSizing,a=b.test(n.writingMode||""),o=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),g=r?0:w(n.borderTopWidth),E=r?0:w(n.borderRightWidth),_=r?0:w(n.borderBottomWidth),C=r?0:w(n.borderLeftWidth),S=m+c,O=l+p,M=C+E,P=g+_,A=s?e.offsetHeight-P-e.clientHeight:0,T=o?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?S+M:0)-T,R=r?r.height:w(n.height)-(i?O+P:0)-A,D=N+S+T+M,L=R+O+A+P,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,l,N,R)});return v.set(e,z),z},_=function(e,t,n){var r=E(e,n),a=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;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])},S=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new C(t.target),i=S(t.target);r.push(n),t.lastReportedSize=_(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},P=function(){var e=0;for(M(0);o.some(function(e){return e.activeTargets.length>0});)M(e=O());return o.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],T=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),a=function(){n.textContent=""+(t?t--:t++)}}A.push(e),a()},N=function(e){T(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=P()}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}()),I=function(e){!R&&e>0&&Z.start(),(R+=e)||Z.stop()},V=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=_(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},U=new WeakMap,H=function(e,t){for(var n=0;nH(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new V(t,n&&n.box)),I(1),Z.schedule())},e.unobserve=function(e,t){var n=U.get(e),r=H(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),I(-1))},e.disconnect=function(e){var t=this,n=U.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),$=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 s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][o])||a,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][o])||a,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),a=n(28316),o=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:a,...s}=e,l=a?o.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,a.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},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),l=o.find(u);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},a,{ref:t}),n)});o.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],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});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return 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),s=(0,i.W)(t);return(0,r.useEffect)(()=>{o.current!==a&&(s(a),o.current=a)},[a,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:a,u=(0,i.W)(n);return[l,(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[s,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?s.default:t,p=e.axisClassName,g=e.hideAxisLine,v=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,j=void 0===w?10:w,k=e.orientation,E=void 0===k?d.default.bottom:k,_=e.rangePadding,C=void 0===_?0:_,S=e.scale,O=e.tickFormat,M=e.tickLength,P=void 0===M?8:M,A=e.tickValues,T=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!=O?O:(0,u.default)(S),D=E===d.default.left,L=E===d.default.top,z=L||E===d.default.bottom,F=(0,l.default)(S),Z=D||L?-1:1,I=S.range(),V=(0,f.default)(C),B=(0,c.default)({x:Number(I[0])+.5-V.start,y:0},z),U=(0,c.default)({x:Number(I[I.length-1])+.5+V.end,y:0},z),H=(null!=A?A:(0,o.getTicks)(S,j)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=H.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:P*Z},z),formattedValue:R(t,n,H)}});return r.default.createElement(a.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:U,hideAxisLine:void 0!==g&&g,hideTicks:void 0!==v&&v,hideZero:b,horizontal:z,numTicks:j,orientation:E,rangePadding:C,scale:S,tickFormat:R,tickLength:P,tickPosition:F,tickSign:Z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),a=n(71602),o=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:o.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:o.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:o.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(a.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:o.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),a=l(n(81401)),o=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(a=n.xMin)?a:-1/0,null!=(o=n.xMax)?o:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l: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 s}});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),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function a(e){return!!e&&"createSVGPoint"in e}function o(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return o},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return a},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),a=f(n(72779)),o=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=k?k:(0,u.getTicks)(r,void 0===x?10:x),S=(null!=j?j:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+S;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},E?E({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,strokeDasharray:y,style:w},_))}))}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)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),C=null!=E?E:(0,u.getTicks)(r,void 0===w?10:w),S=(null!=k?k:0)+(0,c.default)(r)/2,O=C.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+S;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,a.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(o.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:v,strokeDasharray:y,style:j},_))}))}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),s=n.n(o),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return a.createElement("g",u({ref:c,className:s()("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,s=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),l=(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({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(void 0);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=l(n(81401)),a=l(n(65154)),o=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),a=s(n(55727)),o=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,a.useTransition)(n,u({},(0,o.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,o=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(a.animated.line,u({key:h,x1:r,x2:o,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},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:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(a.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),a=s(n(55727)),o=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),v=(0,a.useRef)(null),y=(0,a.useRef)(0),b=(0,a.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[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})},l,{leading:m})},[l,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({},x,{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),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,a.Z)(e);case"sqrt":return(0,o.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return _.Z},createScale:function(){return x.Z},getTicks:function(){return C.Z},inferScaleType:function(){return E},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.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 b.Z},scaleSymlog:function(){return v.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return S.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),a=n(8597),o=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((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),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},k=n(40668);function E(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var _=n(28142),C=n(71220),S=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return C},Z:function(){return O}});var r=n(88751),i=n(87286),a=n(43780),o=n(77636),s=n(78978),l={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:s.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),b=n(94758),x=n(97631),w=n(2908),j=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},E={day:g.Z,hour:v.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},_=n(74672),C=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],S={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,s),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",l({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}),S=(0,o.ve)({startAngle:m,endAngle:g,padAngle:v,value:w,sort:b,sortValues:x}),O=S(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:C,pie:S})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:a()("visx-pie-arc",t),d:C(e)||"",fill:null==E||"string"==typeof E?E:E(e)},_)),null==l?void 0:l(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:s,curve:l});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 b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),v=(0,o.SO)({x:n,x0:i,x1:s,y:l,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",x({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),_=(0,o.kn)({keys:s,value:v,order:y,offset:b}),C=(0,o.SO)({x:f,x0:h,x1:p,y0:m,y1:g,curve:u,defined:d}),S=_(l);return w?r.createElement(r.Fragment,null,w({stacks:S,path:C,stack:_})):r.createElement(c.Z,{top:n,left:i},S.map(function(e,n){return r.createElement("path",E({className:a()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:C(e)||"",fill:null==x?void 0:x(e.key,n)},j))}))}var C=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function S(){return(S=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({className:t,top:n,left:i,keys:o,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:g,offset:v,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",S({className:a()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),P=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var T=["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,T),v=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width: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(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},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=A(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return g?r.createElement(r.Fragment,null,g(b)):r.createElement(c.Z,{className:a()("visx-bar-group-horizontal",n),top:i,left:o},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},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 I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function V(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function U(e){return null==e?void 0:e[0]}function H(e){return null==e?void 0:e[1]}var W=n(26078),$=n(44081),q=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,$.ZP)(y)),b&&j.offset((0,q.ZP)(b));var k=j(t),E=A(h),_=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(s(t.data)):Math.max((h(s(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 x?r.createElement(r.Fragment,null,x(_)):r.createElement(c.Z,{className:a()("visx-bar-stack",n),top:i,left:o},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),j=(0,F.Z)();g&&j.keys(g),v&&(0,W.Z)(j.value,v),y&&j.order((0,$.ZP)(y)),b&&j.offset((0,q.ZP)(b));var k=j(t),E=A(p),_=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(s(t.data)):Math.max((p(s(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 x?r.createElement(r.Fragment,null,x(_)):r.createElement(c.Z,{className:a()("visx-bar-stack-horizontal",n),top:i,left:o},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?V:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref: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 es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eo),h=s||el({source:void 0===c?V:c,target:void 0===d?B:d,x:void 0===l?Z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref: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=s||ef({source:void 0===c?V:c,target:void 0===d?B:d,angle:void 0===l?Z:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref: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=s||ev({source:void 0===d?V:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?Z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eg({ref:o,className:a()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?V:d,target:void 0===f?B:f,x:void 0===u?Z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({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=s||e_({source:void 0===d?V:d,target:void 0===f?B:f,x:void 0===u?Z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eE({ref:o,className:a()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eS=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eS),h=s||eM({source:void 0===c?V:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?Z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:a()("visx-link visx-link-horizontal-line",t),d:h(o)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=o||eN({source:void 0===u?V:u,target:void 0===c?B:c,x:void 0===s?Z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eT({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?V:u,target:void 0===c?B:c,x:void 0===s?Z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className: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 eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eZ),p=o||eV({source:void 0===c?V:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?Z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eI({ref:n,className:a()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eU=["className","innerRef","data","path","percent","x","y","source","target","children"];function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eU),p=o||eW({source:void 0===c?V:c,target:void 0===d?B:d,x:void 0===l?Z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eH({ref:n,className:a()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var eq=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eG(e){var t=e.className,n=e.innerRef,i=e.data,o=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,eq),h=o||eY({source:void 0===u?V:u,target:void 0===c?B:c,x:void 0===s?Z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:a()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===o?0:o}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eJ({ref:u,className:a()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className: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<=l;m+=o){for(var g=s.getPointAtLength(m),v=g[i];p=w[E+1];)E+=1;c[E].push(C)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);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),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),w=(0,s.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),b)?r.createElement(r.Fragment,null,b({path:w})):r.createElement("path",u({ref:y,className:a()("visx-area-closed",g),d:w(void 0===p?[]:p)||""},x))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o);return r.createElement("rect",s({ref:n,className:a()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),Z=(n=(t={x:E,y:_,width:C,height:S,radius:O,all:void 0!==M&&M,top:void 0!==P&&P,bottom:void 0!==A&&A,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==z&&z}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,b=t.y,g=n||p||h||g,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(v,c)/2))),("M"+(y+f)+","+b+" h"+(v-x)+"\n "+(g?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-v)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:Z})):r.createElement("path",s({ref:k,className:a()("visx-bar-rounded",j),d:Z},F))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),a=n.n(i),o=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:a()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),a=n.n(i),o=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,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",l({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),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,o=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=a&&(0,u.Z)(d.cornerRadius,a),null!=o&&(0,u.Z)(d.startAngle,o),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,a=t.x1,o=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),a&&(0,u.Z)(f.x1,a),o&&(0,u.Z)(f.y,o),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,s=(0,a.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),o&&s.curve(o),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,s=t.sort,l=t.sortValues,c=(0,o.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),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,s.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,l.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 l}});var r=n(22254),i=n(76751),a=n(90541),o=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:a.Z,silhouette:o.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),a=n(12197),o=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:a.Z,none:o.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=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),b=(0,a.area)({x:n,x0:s,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:b})):r.default.createElement("path",l({ref:v,className:(0,i.default)("visx-area",m),d:b(void 0===h?[]:h)||""},y))};var r=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=o(n(2784)),i=o(n(72779)),a=["from","to","fill","className","innerRef"];function o(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,o),g=(0,a.line)({x:s,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",l({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=s(n(2784)),i=s(n(72779)),a=n(15601),o=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a)),p=h.x,m=void 0===p?0:p,g=h.fontSize,v=(0,i.Z)(e),y=v.wordsByLines,b=v.startDy,x=v.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:g,style:s},y.length>0?r.createElement("text",o({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),a=n.n(i),o=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,g=void 0===m?"0.71em":m,v=e.children,y=e.style,b=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,s),x=b.x,w=void 0===x?0:x,j=b.y,k=void 0===j?0:j,E=!u(w)||!u(k),_=(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=_.wordsWithWidth,S=_.spaceWidth,O=(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+S0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[E,w,k,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:P}}},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 s}});var r=new WeakMap,i=new WeakMap,a={},o=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var l=a[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,o),l.set(e,s),u.push(e),1===o&&a&&i.set(e,!0),1===s&&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=l.get(e)-1;r.set(e,t),l.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),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,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 b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+w)}var j=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),o(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(j))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(g,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var _=h(j);if(_&&-1===["http","https","file"].indexOf(_)){n(new d("Unsupported protocol "+_+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),a=n(62215),o=n(92937),s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(10663));s.Axios=a,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};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 s,l=o?o+"."+r:r;if(n&&!o&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,a(e))});return}}e(n,l)}}),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,s){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,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var o=r[a],s=t[o];if(s){var l=e[o],u=void 0===l||s(l,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,s=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),g=l("Blob"),v=l("FileList");function y(e){return"[object Function]"===o.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)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:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList: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,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s: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,s=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,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,a=e[0]+"";ru^n?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;oa[o]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function 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 tA?h.c=h.e=null:e.e=10;s/=10,a++);a>A?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(".","")),(s=f.search(/e/i))>0?(a<0&&(a=s),a+=+f.slice(s+1),f=f.substring(0,s)):a<0&&(a=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&z)return B(h=new F(e),C+h.e+1,S);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=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>a){a=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-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(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&F.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((a=a-s-1)>A)h.c=h.e=null;else if(a=M)?v(l,o):y(l,o,"0");else if(a=(e=B(new F(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=a||a<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new F(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((a=t-i)<0)a+=14,o=t,h=(c=p[f=0])/d[i-o-1]%10|0;else if((f=s((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?l(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>A?e.c=e.e=null:e.e=M?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),S=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),P=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)P=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=n;else throw T=!n,Error(u+"crypto unavailable")}else T=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:S,EXPONENTIAL_AT:[O,M],RANGE:[P,A],CRYPTO:T,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===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(u+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return I(arguments,E.lt)},F.minimum=F.min=function(){return I(arguments,E.gt)},F.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,a,o,c=0,f=[],h=new F(_);if(null==e?e=C:m(e,0,1e9),a=s(e/14),T){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 T=!1,Error(u+"crypto unavailable")}if(!T)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 s,l,u,c,d,f,p,m,g=n.indexOf("."),v=C,b=S;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?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=a,p=(f=w(f,m,v,b,i)).c,d=f.r,u=f.e),g=p[l=u+v+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>c||g==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-v,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(g=0,n="";g<=c;n+=s.charAt(p[g++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*o,e[l]=i%n;return s&&(e=[s].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,s){var u,c,d,h,p,m,g,v,y,b,x,w,j,k,E,_,C,S=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new F(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*S:S/0:NaN);for(y=(v=new F(S)).c=[],S=a+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),S=S/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,S<0)y.push(1),h=!0;else{for(k=O.length,_=M.length,d=0,S+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),_=M.length,k=O.length),j=_,x=(b=O.slice(0,_)).length;x<_;b[x++]=0);C=[0].concat(C=M.slice()),E=M[0],M[1]>=s/2&&E++;do{if(p=0,(u=t(M,b,_,x))<0){if(w=b[0],_!=x&&(w=w*s+(b[1]||0)),(p=l(w/E))>1)for(p>=s&&(p=s-1),g=(m=e(M,p,s)).length,x=b.length;1==t(m,b,g,x);)p--,n(m,_t(M,b,_,x);)p++,n(b,_=10;S/=10,d++);B(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=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,o){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=s?e:t}),o&&(s=o,l=l.replace(i,"$1").replace(a,"0.$1")),t!=l))return new F(l,s);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=S:m(t,0,8),B(new F(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return w(this,new F(e,t),C,S)},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: "+U(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(+U(p),c?2-g(e):+U(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=s(R/14+2))}for(c?(n=new F(.5),d&&(e.s=1),f=g(e)):f=(i=Math.abs(+U(e)))%2,h=new F(_);;){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=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=g(e);else{if(0==(i=+U(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=_.div(h)),t?h.mod(t):a?B(h,R,S,o):h)},E.integerValue=function(e){var t=new F(this);return null==e?e=S:m(e,0,8),B(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===p(this,new F(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return p(this,new F(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=p(this,new F(e,t)))||0===t},E.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>p(this,new F(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=p(this,new F(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var n,r,i,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 s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new F(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new F(u[0]?this:3==S?-0:0)}if(s=f(s),l=f(l),u=u.slice(),o=s-l){for((a=o<0)?(o=-o,i=u):(l=s,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=l);a>i;)s=p*(u=g[--o]%1e7)+(c=g[o]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[a]+n)/1e14|0)+(s/1e7|0)+p*c,m[a--]=u%1e14;m[a]=n}return n?++r:m.splice(0,1),V(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,s=e.c;if(!i||!a){if(!o||!s)return new F(r/0);if(!o[0]||!s[0])return s[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=s):(r=-r,n=o),n.reverse();r--;n.push(0));n.reverse()}for((r=o.length)-(t=s.length)<0&&(n=s,s=o,o=n,t=r),r=0;t;)r=(o[--t]=o[t]+s[t]+r)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return r&&(o=[r].concat(o),++a),V(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=S:m(t,0,8),B(new F(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,a=this.c,o=this.s,s=this.e,l=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(+U(this)))||o==1/0?(((t=h(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),n=new F(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new F(o+""),n.c[0]){for((o=(s=n.e)+l)<3&&(o=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,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+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,a,o,s,l,c,f,p,m,g=this.c;if(null!=e&&(!(s=new F(e)).isInteger()&&(s.c||1!==s.s)||s.lt(_)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+U(s));if(!g)return new F(this);for(t=new F(_),c=n=new F(_),r=l=new F(_),m=h(g),a=t.e=m.length-this.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||s.comparedTo(t)>0?a>0?t:c:s,o=A,A=1/0,s=new F(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,a*=2,p=1>w(c,r,a,S).minus(this).abs().comparedTo(w(l,n,a,S).minus(this).abs())?[c,r]:[l,n],A=o,p},E.toNumber=function(){return+U(this)},E.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),Z(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?v(h(n.c),i):y(h(n.c),i,"0"):10===e&&z?t=y(h((n=B(new F(n),C+i+1,S)).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 U(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 s(e,t,n,r,o,s){let l=d[o],u=d[o+1],f=d[s],h=d[s+1];i(c,e,t),a(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),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 l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=o(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^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){l[e]=l[e]+l[t]+i,l[r]=a(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],12),l[e]=l[e]+l[t]+o,l[r]=a(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=a(l[t]^l[n],7)}function a(e,t){return e>>>t^e<<32-t}let o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=o[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[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[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(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;a2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=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(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=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 s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),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(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return S(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=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-l),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&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,n,r,i,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=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);ir.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=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,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var 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}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var 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},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||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 S(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=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;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,a,o,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&a.charAt(h-1)===o.charAt(l+1)&&a.charAt(h-1)!==o.charAt(l)&&.1*(c=e(r,i,a,o,h+1,l+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 _},Ym:function(){return A},ZP:function(){return x},xV:function(){return a}});var r=n(40948);function i(){}var a=.7,o=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),g=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),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 b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new _(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 _(t[1],t[2],t[3],1):(t=f.exec(e))?new _(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?w(v[e]):"transparent"===e?new _(NaN,NaN,NaN,0):null}function w(e){return new _(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new _(e,t,n,r)}function k(e){return(e instanceof i||(e=x(e)),e)?new _((e=e.rgb()).r,e.g,e.b,e.opacity):new _}function E(e,t,n,r){return 1==arguments.length?k(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,n,r)}function P(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new T;if(e instanceof T)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),s=NaN,l=o-a,u=(o+a)/2;return l?(s=t===o?(n-r)/l+(n0&&u<1?0:s,new T(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?P(e):new T(e,t,n,null==r?1:r)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return P(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(_,E,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new _(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:S,toString:S})),(0,r.Z)(T,A,(0,r.l)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new T(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 _(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,s=6/29,l=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 b(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),s=h((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?t=n=s:(t=h((.4360747*r+.3850649*a+.1430804*o)/.96422),n=h((.0139322*r+.0971045*a+.7141733*o)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+o}function p(e){return e>s?e*e*e:l*(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,s=i.length;return o===s?i:o>s?i+Array(o-s+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,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=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 b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,j=e.type;"n"===j?(b=!0,j="g"):d[j]||(void 0===x&&(x=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?o:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",E="$"===s?u:/[%p]/.test(j)?g:"",_=d[j],C=/[defgprs%]/.test(j);function S(e){var o,s,l,u=k,d=E;if("c"===j)d=_(e)+d,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:_(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),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,s=e.length;++o(l=e.charCodeAt(o))||l>57){d=(46===l?c+e.slice(o+1):e.slice(o))+d,e=e.slice(0,o);break}}}b&&!f&&(e=a(e,1/0));var S=u.length+e.length+d.length,O=S>1)+u+e+d+O.slice(S);break;default:e=O+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),S.toString=function(){return e+""},S}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),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,s=!0,l=!1;return{s:function(){a=e[Symbol.iterator]()},n:function(){var e=a.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(l)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,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?a-=1:a0&&(a-=1)),t[a]=(t[a]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var o=l(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],s=i>0?e[i-1]:2*a-o,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function o(e){return 1==(e=+e)?s: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 s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),a=n(10810),o=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(o*r+-1.7884503806*t-3.5172982438*n)/(o+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*a.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*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=s(t)).h,(r=s(r)).h),a=(0,u.ZP)(t.s,r.s),o=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return 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),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.c=o(e),t.l=s(e),t.opacity=l(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),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=a(e),t.s=o(e),t.l=s(e),t.opacity=l(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 s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return P.Z},interpolateHslLong:function(){return P.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return g.Z},interpolateObject:function(){return v.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return E},interpolateTransformSvg:function(){return _},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,a,o,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),g=n(43289),v=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=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 s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-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),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=a.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&a){var h=r-o,p=i-s,m=l*l+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),b=y/v,x=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+a+","+a+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,o,s,l){e=+e,t=+t,a=+a,l=!!l;var u=a*Math.cos(o),c=a*Math.sin(o),d=e+u,f=t+c,h=1^l,p=l?o-s:s-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(s))+","+(this._y1=t+a*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=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 l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[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),s=o.right;o.left,i(a.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var a=n(1169);function o(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=a.Z){for(;i>r;){if(i-r>600){let a=i-r+1,o=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*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,s)}let a=t[n],l=r,u=i;for(o(t,r,n),s(t[i],a)>0&&o(t,r,i);ls(t[l],a);)++l;for(;s(t[u],a)>0;)--u}0===s(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=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,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 s},ZP:function(){return o},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2);function o(e,t,n){var r,i,a,o,l=-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);++lt&&--r,a=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}function l(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=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 _(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 S(e,t,n){var r=g.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=g.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(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 P(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T(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 I(e,t,n){var r=v.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function V(e,t,n){var r=g.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=g.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function U(e,t){return b(e.getDate(),t,2)}function H(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function $(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function q(e,t){return b(e.getMilliseconds(),t,3)}function K(e,t){return q(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function G(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function ea(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function eo(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function eg(e,t){return b(e.getUTCMinutes(),t,2)}function ev(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(o.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.hB)(e):o.hB.ceil(e)}function ew(e,t){return e=ex(e),b(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 b(o.l6.count((0,d.Z)(e)-1,e),t,2)}function eE(e,t){return b(e.getUTCFullYear()%100,t,2)}function e_(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function eC(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function eS(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,o.hB)(e):o.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eP(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,c=e.shortDays,d=e.months,g=e.shortMonths,v=w(i),y=j(i),b=w(a),x=j(a),ee=w(c),ex=j(c),eT=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:U,e:U,f:K,g:ea,G:es,H:H,I:W,j:$,L:q,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eP,s:eA,S:X,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:eo,Z:el,"%":eM},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:e_,G:eS,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:eP,s:eA,S:ev,u:ey,U:eb,V:ew,w:ej,W:ek,x:null,X:null,y:eE,Y:eC,Z:eO,"%":eM},eF={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eT.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eV(e,t,n,r)},d:N,e:N,f:Z,g:M,G:O,H:D,I:D,j:R,L:F,m:T,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:A,Q:V,s:B,S:z,u:E,U:_,V:C,w:k,W:S,x:function(e,t,r){return eV(e,n,t,r)},X:function(e,t,n){return eV(e,r,t,n)},y:M,Y:O,Z:P,"%":I};function eZ(e,t){return function(n){var r,i,a,o=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)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=s.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?l.wA.ceil(r):(0,l.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 eV(e,t,n,r){for(var i,a,o=0,s=t.length,l=n.length;o=l)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=eI(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=eI(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,r.parse,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,s=n.range,l=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,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,g)))(e(v(t)))}return b.invert=function(n){return v(t((h||(h=r(m,p.map(e),a.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=o.Z,y()},b.clamp=function(e){return arguments.length?(v=!!e||u,y()):v!==u},b.interpolate=function(e){return arguments.length?(g=e,y()):g},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,o.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return P},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,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 l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return o.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,o.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,E.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(_.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)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),a=n(5497),o=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),g=n(69777),v=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,a=0,o=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([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?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},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)(x());return e.copy=function(){return w(e,j()).exponent(e.exponent())},b.O.apply(e,arguments)}function k(){return j.apply(null,arguments).exponent(.5)}var E=n(98038),_=n(1169),C=n(33907),S=n(87475);function O(){var e,t,n,r,i,a,o,s=0,l=.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[s]=u,o[l]=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())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),a=n(10070),o=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,o=e(l,u),s=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)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),o}return o.base=function(e){return arguments.length?(p=+e,m()):p},o.domain=function(e){return arguments.length?(s(e),m()):s()},o.ticks=function(e){var i,a=s(),o=a[0],l=a[a.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;g.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;g.push(d)}2*g.length0?l[t-1]:n[0],t=s?[l[s-1],o]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,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)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,o.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,a.Q)(c)}}});var r=n(70552),i=n(22274),a=n(93963),o=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},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 s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(o(1),s(t));return n.constant=function(n){return arguments.length?e(o(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],a=[0,1],o=1;function s(e){return null!=e&&e<=e?a[(0,r.ZP)(n,e,0,o)]:t}return s.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,a.length-1),s):n.slice()},s.range=function(e){return arguments.length?(a=Array.from(e),o=Math.min(n.length,a.length-1),s):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(a).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),a=n(21032),o=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,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,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,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),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function v(e,t,n,r,i,a,o,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),k=u("%b %d"),E=u("%B"),_=u("%Y");function C(e){return(l(e)A*A+T*T&&(_=S,C=O),{cx:_,cy:C,x01:-d,y01:-f,x11:_*(i/j-1),y11:C*(i/j-1)}}function f(){var e=o,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,g=null;function v(){var i,o,s=+e.apply(this,arguments),l=+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)()),la.Ho){if(v>a.BZ-a.Ho)g.moveTo(l*(0,a.mC)(u),l*(0,a.O$)(u)),g.arc(0,0,l,u,c,!y),s>a.Ho&&(g.moveTo(s*(0,a.mC)(c),s*(0,a.O$)(c)),g.arc(0,0,s,c,u,y));else{var b,x,w=u,j=c,k=u,E=c,_=v,C=v,S=m.apply(this,arguments)/2,O=S>a.Ho&&(f?+f.apply(this,arguments):(0,a._b)(s*s+l*l)),M=(0,a.VV)((0,a.Wn)(l-s)/2,+n.apply(this,arguments)),P=M,A=M;if(O>a.Ho){var T=(0,a.ZR)(O/s*(0,a.O$)(S)),N=(0,a.ZR)(O/l*(0,a.O$)(S));(_-=2*T)>a.Ho?(T*=y?1:-1,k+=T,E-=T):(_=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=l*(0,a.mC)(w),D=l*(0,a.O$)(w),L=s*(0,a.mC)(E),z=s*(0,a.O$)(E);if(M>a.Ho){var F,Z=l*(0,a.mC)(j),I=l*(0,a.O$)(j),V=s*(0,a.mC)(k),B=s*(0,a.O$)(k);if(va.Ho?A>a.Ho?(b=d(V,B,R,D,l,A,y),x=d(Z,I,L,z,l,A,y),g.moveTo(b.cx+b.x01,b.cy+b.y01),Aa.Ho&&_>a.Ho?P>a.Ho?(b=d(L,z,Z,I,s,-P,y),x=d(R,D,V,B,s,-P,y),g.lineTo(b.cx+b.x01,b.cy+b.y01),P=o;--s)f.point(v[s],y[s]);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],l?+l(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),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,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,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function o(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new o(e)}function c(e){return new s(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}}},(s.prototype=Object.create(o.prototype)).point=function(e,t){o.prototype.point.call(this,t,e)},l.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,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 _},curveBasisOpen:function(){return S},curveBundle:function(){return M},curveCardinal:function(){return P.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return F},curveCatmullRomClosed:function(){return I},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return H},curveMonotoneX:function(){return $.Z},curveMonotoneY:function(){return $.s},curveNatural:function(){return Y},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return a.Z},lineRadial:function(){return l.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 l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return ea.Z},stackOrderInsideOut:function(){return eo.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return g.Z},symbolStar:function(){return v.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(79493),a=n(79767),o=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,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,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(a())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),g=n(44523),v=n(86707),y=n(42965),b=n(60598);function x(){}function w(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function j(e){this._context=e}function k(e){return new j(e)}function E(e){this._context=e}function _(e){return new E(e)}function C(e){this._context=e}function S(e){return new C(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},E.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},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}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*o),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),P=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,P.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 T=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,P.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 s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);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 P.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I=function e(t){function n(e){return t?new Z(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new V(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function U(e){this._context=e}function H(e){return new U(e)}U.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var W=n(20651),$=n(27266);function q(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((s=e.length)>0)for(var n,r,i,a,o,s,l=0,u=e[t[0]].length;l0?(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,s=e[0].length;o1)for(var n,r,i,a=1,o=e[t[0]],s=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,s=1;sa&&(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 s}});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 s(){var e=a,t=i,n=null,s=(0,r.Z)(0),l=(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=+s.apply(this,arguments),y=Math.min(o.BZ,Math.max(-o.BZ,l.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,g[a]={data:r[a],index:i,value:f,startAngle:v,endAngle:d,padAngle:b};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?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),a=n(90541),o=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=o.Z,n=a.Z,l=s;function u(r){var i,a,o=e.apply(this,arguments),s=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 s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=6e4,a=36e5,o=864e5,s=6048e5,l=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 l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return 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),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),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 s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return 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&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(a(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(o?function(t){return o(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return 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 _},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),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),l=o/s;return l>=r?s*=10:l>=i?s*=5:l>=a&&(s*=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/s.qz,n/s.qz,r));if(0===a)return l.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 b},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 l},vm:function(){return h},wA:function(){return s},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),s=a(1),l=a(2),u=a(3),c=a(4),d=a(5),f=a(6),h=o.range,p=s.range,m=l.range,g=u.range,v=c.range,y=d.range,b=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},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(o,a),o=a=null))}null==t&&(t=100);var i,a,o,s,l,u=function(){o=this,a=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(o,a),o=a=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(o,a),o=a=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},46782:function(e,t,n){var r,i,a;i=[],void 0!==(a="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,n,o){var s=a.URL||a.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e){var o;navigator.msSaveOrOpenBlob((void 0===(o=a)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),n)}else if(r(e))t(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){i(s)})}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});a.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)&&(e.exports=a)},92683: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!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function u(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||u,n.isMergeableObject=n.isMergeableObject||o;var r,i,a=Array.isArray(t);return a!==Array.isArray(e)?l(t,n):a?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=l(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=c(e[n],t[n],r):i[n]=l(t[n],r)}),i)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var d=c,f=n(36394),h=n(85420),p=function(e){return(0,h.Z)(e,4)},m=n(25079),g=n(43737),v=n(52059),y=n(81470),b=n(11620),x=n(14551),w=n(16601),j=function(e){return(0,v.Z)(e)?(0,m.Z)(e,x.Z):(0,y.Z)(e)?[e]:(0,g.Z)((0,b.Z)((0,w.Z)(e)))},k=function(e,t){};function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function C(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var S=function(e){return Array.isArray(e)&&0===e.length},O=function(e){return"function"==typeof e},M=function(e){return null!==e&&"object"==typeof e},P=function(e){return"[object String]"===Object.prototype.toString.call(e)},A=function(e){return M(e)&&O(e.then)};function T(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;T(t,o.path)||(t=N(t,o.path,o.message))}}return t}(n)):t(n)})})},[g.validationSchema]),I=(0,r.useCallback)(function(e,t){return new Promise(function(n){return n(j.current[e].validate(t))})},[]),B=(0,r.useCallback)(function(e){var t=Object.keys(j.current).filter(function(e){return O(j.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return I(t,T(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},{})})},[I]),U=(0,r.useCallback)(function(e){return Promise.all([B(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,B,R,F]),H=V(function(e){return void 0===e&&(e=C.values),S({type:"SET_ISVALIDATING",payload:!0}),U(e).then(function(e){return w.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,r.useEffect)(function(){l&&!0===w.current&&a()(v.current,g.initialValues)&&H(v.current)},[l,H]);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:b.current?b.current:g.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:g.initialStatus;v.current=t,y.current=n,b.current=r,x.current=i;var a=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(g.onReset){var o=g.onReset(C.values,ec);A(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()),l&&H(v.current))},[h,g.initialValues,W,l,H]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(y.current,g.initialErrors)&&(y.current=g.initialErrors||L,S({type:"SET_ERRORS",payload:g.initialErrors||L}))},[h,g.initialErrors]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(b.current,g.initialTouched)&&(b.current=g.initialTouched||z,S({type:"SET_TOUCHED",payload:g.initialTouched||z}))},[h,g.initialTouched]),(0,r.useEffect)(function(){h&&!0===w.current&&!a()(x.current,g.initialStatus)&&(x.current=g.initialStatus,S({type:"SET_STATUS",payload:g.initialStatus}))},[h,g.initialStatus,g.initialTouched]);var $=V(function(e){if(j.current[e]&&O(j.current[e].validate)){var t=T(C.values,e),n=j.current[e].validate(t);return A(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return g.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),F(C.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),q=(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=V(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?H(C.values):Promise.resolve()}),G=(0,r.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),X=V(function(e,t){var r=O(e)?e(C.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?H(r):Promise.resolve()}),J=(0,r.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=V(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?H(N(C.values,e,t)):Promise.resolve()}),ee=(0,r.useCallback)(function(e,t){var n,r=t,i=e;if(!P(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,l=a.id,u=a.value,c=a.checked,d=(a.outerHTML,a.options),f=a.multiple;r=t||s||l,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}(T(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=V(function(e){if(P(e))return function(t){return ee(t,e)};ee(e)}),en=V(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?H(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=V(function(e){if(P(e))return function(t){return er(t,e)};er(e)}),ea=(0,r.useCallback)(function(e){O(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),eo=(0,r.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),es=(0,r.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),el=V(function(){return S({type:"SUBMIT_ATTEMPT"}),H().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&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(w.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),eu=V(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),el().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:W,validateForm:H,validateField:$,setErrors:G,setFieldError:J,setFieldTouched:en,setFieldValue:Q,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:X,setFormikState:ea,submitForm:el},ed=V(function(){return p(C.values,ec)}),ef=V(function(e){e&&e.preventDefault&&O(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&O(e.stopPropagation)&&e.stopPropagation(),W()}),eh=(0,r.useCallback)(function(e){return{value:T(C.values,e),error:T(C.errors,e),touched:!!T(C.touched,e),initialValue:T(v.current,e),initialTouched:!!T(b.current,e),initialError:T(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=M(e),n=t?e.name:e,r=T(C.values,n),i={name:n,value:r,onChange:et,onBlur:ei};if(t){var a=e.type,o=e.value,s=e.as,l=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"===s&&l&&(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&&O(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:b.current,initialStatus:x.current,handleBlur:ei,handleChange:et,handleReset:ef,handleSubmit:eu,resetForm:W,setErrors:G,setFormikState:ea,setFieldTouched:en,setFieldValue:Q,setFieldError:J,setStatus:eo,setSubmitting:es,setTouched:Y,setValues:X,submitForm:el,validateForm:H,validateField:$,isValid:ev,dirty:eg,unregisterField:K,registerField:q,getFieldProps:em,getFieldMeta:eh,getFieldHelpers:ep,validateOnBlur:o,validateOnChange:n,validateOnMount:l})}function Z(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var 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 I="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function V(e){var t=(0,r.useRef)(e);return I(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(T(n.values,a))),o=r?("function"==typeof r?r:e)(T(n.errors,a)):void 0,s=t?("function"==typeof t?t:e)(T(n.touched,a)):void 0;return S(o)&&(o=void 0),S(s)&&(s=void 0),E({},n,{values:i,errors:r?N(n.errors,a,o):n.errors,touched:t?N(n.touched,a,s):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat($(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 U(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return B(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return H(n,e,t)},function(t){return H(t,e,null)},function(t){return H(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()(T(e.formik.values,e.name),T(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?$(n):[];return t||(t=r[e]),O(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,a=t.children,o=t.name,s=_(t.formik,["validate","validationSchema"]),l=E({},e,{form:s,name:o});return n?(0,r.createElement)(n,l):i?i(l):a?"function"==typeof a?a(l):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},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[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 s=l(t),m=l(n),g=0;g>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+=s;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===l)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,s,l,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?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}},1297:function(e,t,n){var r,i=n(48834).lW,a=n(93542);r=function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=void 0,o=0;o>2,s=(3&t)<<4|n>>4,l=1>6:64,u=2>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),f[c++]=t,64!==s&&(f[c++]=n),64!==l&&(f[c++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=0+n;e^=-1;for(var o=0;o>>8^i[255&(e^t[o])];return -1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=0+n;e^=-1;for(var o=0;o>>8^i[255&(e^t.charCodeAt(o))];return -1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n>>=8;return r}function i(e,t,n,i,o,c){var d,f,h,p,m=e.file,g=e.compression,v=c!==s.utf8encode,y=a.transformTo("string",c(m.name)),b=a.transformTo("string",s.utf8encode(m.name)),x=m.comment,w=a.transformTo("string",c(x)),j=a.transformTo("string",s.utf8encode(x)),k=b.length!==m.name.length,E=j.length!==x.length,_="",C="",S="",O=m.dir,M=m.date,P={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(P.crc32=e.crc32,P.compressedSize=e.compressedSize,P.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),!v&&(k||E)&&(A|=2048);var T=0,N=0;O&&(T|=16),"UNIX"===o?(N=798,T|=(f=d=m.unixPermissions,d||(f=O?16893:33204),(65535&f)<<16)):(N=20,T|=63&(m.dosPermissions||0)),h=(M.getUTCHours()<<6|M.getUTCMinutes())<<5|M.getUTCSeconds()/2,p=(M.getUTCFullYear()-1980<<4|M.getUTCMonth()+1)<<5|M.getUTCDate(),k&&(C=r(1,1)+r(l(y),4)+b,_+="up"+r(C.length,2)+C),E&&(S=r(1,1)+r(l(w),4)+j,_+="uc"+r(S.length,2)+S);var R="";return R+="\n\0"+r(A,2)+g.magic+r(h,2)+r(p,2)+r(P.crc32,4)+r(P.compressedSize,4)+r(P.uncompressedSize,4)+r(y.length,2)+r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+y+_,dirRecord:u.CENTRAL_FILE_HEADER+r(N,2)+R+r(w.length,2)+"\0\0\0\0"+r(T,4)+r(i,4)+y+_+w}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e,t,n,i,o=this.bytesWritten,s=0;s=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),u=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t,n){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=t,this._mimeType=n,r.checkSupport(i),this._worker=e.pipe(new a(i)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){var t;return t=this,new u.Promise(function(n,a){var o=[],l=t._internalType,u=t._outputType,c=t._mimeType;t.on("data",function(t,n){o.push(t),e&&e(n)}).on("error",function(e){o=[],a(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return r.transformTo(e,t)}}(u,function(e,t){var n,r=0,a=null,o=0;for(n=0;n>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,l=Array(2*o);for(t=n=0;t>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,o),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=i+n;e^=-1;for(var o=i;o>>8^r[255&(e^t[o])];return -1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages");function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(4e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function h(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function g(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+258,h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(u[(n=t)+o]===p&&u[n+o-1]===h&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do;while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&al&&0!=--i);return o<=e.lookahead?o:e.lookahead}function v(e){var t,n,r,a,l,u,c,d,f,h,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,h=void 0,(f=a)<(h=u.avail_in)&&(h=f),n=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=o(u.adler,c,h,d):2===u.state.wrap&&(u.adler=s(u.adler,c,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3){if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,h(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)}),new x(4,4,8,4,y),new x(4,5,16,8,y),new x(4,6,32,32,y),new x(4,4,16,16,b),new x(8,16,32,32,b),new x(8,16,128,128,b),new x(8,32,128,256,b),new x(32,128,258,1024,b),new x(32,258,258,4096,b)],n.deflateInit=function(e,t){return E(e,t,8,15,8,0)},n.deflateInit2=E,n.deflateReset=k,n.deflateResetKeep=j,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,m(i,g),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),f(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&f(e),i.pending+2<=i.pending_buf_size&&(p(i,255&e.adler),p(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(n)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var y=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(d(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&e.adler),p(i,e.adler>>8&255),p(i,e.adler>>16&255),p(i,e.adler>>24&255),p(i,255&e.total_in),p(i,e.total_in>>8&255),p(i,e.total_in>>16&255),p(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),f(e),0=n.w_size&&(0===s&&(d(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,v(n);n.lookahead>=3;){for(r=n.strstart,a=n.lookahead-2;n.ins_h=(n.ins_h<>>=x=b>>>24,p-=x,0==(x=b>>>16&255))C[a++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=m[(65535&b)+(h&(1<>>=x,p-=x),p<15&&(h+=_[r++]<>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=g[(65535&b)+(h&(1<>>=x,p-=x,(x=a-o)>3,h&=(1<<(p-=w<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function f(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=a(n.check,z,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,T=8+(15&(b>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(0===h)break t;h--,b+=u[d++]<>>8&255,z[2]=b>>>16&255,z[3]=b>>>24&255,n.check=a(n.check,z,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(0===h)break t;h--,b+=u[d++]<>8),512&n.flags&&(z[0]=255&b,z[1]=b>>>8&255,n.check=a(n.check,z,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===h)break t;h--,b+=u[d++]<>>8&255,n.check=a(n.check,z,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(h<(k=n.length)&&(k=h),k&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,u,d,k,T)),512&n.flags&&(n.check=a(n.check,u,k,d)),h-=k,d+=k,n.length-=k),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===h)break t;for(k=0;T=u[d+k++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T)),T&&k>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===h)break t;h--,b+=u[d++]<>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===h)break t;h--,b+=u[d++]<>>=1)){case 0:n.mode=14;break;case 1:if(function(e){if(g){var t;for(p=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),g=!1}e.lencode=p,e.lenbits=9,e.distcode=m,e.distbits=5}(n),n.mode=20,6!==t)break;b>>>=2,x-=2;break t;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(0===h)break t;h--,b+=u[d++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,6===t)break t;case 15:n.mode=16;case 16:if(k=n.length){if(h>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286>>=3,x-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},N=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,N){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,O=65535&L,!((C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>>=C,x-=C,n.lens[n.have++]=O;else{if(16===O){for(D=C+2;x>>=C,x-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],k=3+(3&b),b>>>=2,x-=2}else if(17===O){for(D=C+3;x>>=C)),b>>>=3,x-=3}else{for(D=C+7;x>>=C)),b>>>=7,x-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,R={bits:n.lenbits},N=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,N){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},N=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,N){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break t;case 20:n.mode=21;case 21:if(6<=h&&258<=y){e.next_out=f,e.avail_out=y,e.next_in=d,e.avail_in=h,n.hold=b,n.bits=x,o(e,j),f=e.next_out,c=e.output,y=e.avail_out,d=e.next_in,u=e.input,h=e.avail_in,b=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(L=n.lencode[b&(1<>>16&255,O=65535&L,!((C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>M)])>>>16&255,O=65535&L,!(M+(C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>>=M,x-=M,n.back+=M}if(b>>>=C,x-=C,n.back+=C,n.length=O,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(D=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(L=n.distcode[b&(1<>>16&255,O=65535&L,!((C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>M)])>>>16&255,O=65535&L,!(M+(C=L>>>24)<=x);){if(0===h)break t;h--,b+=u[d++]<>>=M,x-=M,n.back+=M}if(b>>>=C,x-=C,n.back+=C,64&S){e.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(D=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break t;if(k=j-y,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}E=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),_=n.window}else _=c,E=f-n.offset,k=n.length;for(yy?(x=z[F+d[E]],N[R+d[E]]):(x=96,0),h=1<>M)+(p-=h)]=b<<24|x<<16|w|0,0!==p;);for(h=1<>=1;if(0!==h?(T&=h-1,T+=h):T=0,E++,0==--D[k]){if(k===C)break;k=t[n+d[E]]}if(S>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function _(e,t,n){var r,i,a=Array(16),o=0;for(r=1;r<=15;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}}function C(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function S(e){8>1;1<=n;n--)M(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,M(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)p<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=p,m++),l[2*r+1]=a,u>=7;r<30;r++)for(v[r]=i<<7,e=0;e<1<>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),A(e,e.l_desc),A(e,e.d_desc),o=function(e){var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),A(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||a===i?(j(e,2+(r?1:0),3),P(e,u,c)):(j(e,4+(r?1:0),3),function(e,t,n,r){var i;for(j(e,t-257,5),j(e,n-1,5),j(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(f[n]+256+1)]++,e.dyn_dtree[2*x(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){j(e,2,3),k(e,256,u),16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,i,o,s=1,l={},u=!1,c=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,n="[object process]"===({}).toString.call(e.process)?function(e){a.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(h,0,e)}:(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(o+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),r=0;ri?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),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,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,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},34311:function(e,t,n){var r=n(81207),i=n(97329),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,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),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,s=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=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},37772:function(e,t,n){var r=n(51242),i="object"==typeof self&&self&&self.Object===Object&&self,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]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,a,o].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|(?:"+[i+n+"?",n,a,o,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",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="['’]",s="["+a+"]",l="["+r+"]",u="[^"+t+a+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+l+"|"+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+")*",b="(?:"+["["+n+"]",c,d].join("|")+")"+(v+g+y),x=RegExp([f+"?"+l+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},96009:function(e,t,n){var r=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=i},82108:function(e,t,n){var r=n(66188),i=n(23779);e.exports=function(e){return i(r(e).toLowerCase())}},54073:function(e,t,n){var r=n(29259),i=n(61100),a=n(7642),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,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=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function x(){var e,n,r,a=i();if(b(a))return w(a);f=setTimeout(x,(e=a-h,n=a-p,r=t-e,g?s(r,c-n):r))}function w(e){return(f=void 0,v&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,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,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),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,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),a=n(4146),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},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,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(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=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.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-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&En)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return 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,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:v,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[j,k]=(0,r.useState)(()=>p(l)),E=v?Object.values(v):u,_=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let a=v?v[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...E),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),o){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),C=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),S=(0,r.useCallback)(t=>{k(g(t)),"system"===x&&n&&!e&&_("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,r.useEffect)(()=>{_(null!=e?e:x)},[e,x]);let O=(0,r.useMemo)(()=>({theme:x,setTheme:C,forcedTheme:e,resolvedTheme:"system"===x?j:x,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[x,C,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:o,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:v,children:y,attrs:E,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let a=u?u[e]:e,o=t?e+"|| ''":`'${a}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||a?`c.add(${o})`:"null":a&&(l+=`d[s](n,${o})`),l},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(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html: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(65047)}])},7513:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(70150),a=n(82851),o=n(65304);function s(e){var t;let{currentPage:n,parentPage:s,commandPage:l,className:u,...c}=e,d=(0,o.U8)(e=>e.search);if((null==s?void 0:s.namespace)===(null==n?void 0:n.namespace)&&!d)return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",u),value:"".concat(null==l?void 0:l.label," ").concat((null===(t=c.children)||void 0===t?void 0:t.toString())||""),...c})}function l(e){var t;let{currentPage:n,commandPage:s,className:l,...u}=e,c=(0,o.U8)(e=>e.search),d=s.namespace.startsWith((null==n?void 0:n.namespace)||"");if(c&&d||s.namespace===(null==n?void 0:n.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(s.label," ").concat((null===(t=u.children)||void 0===t?void 0:t.toString())||""),...u})}function u(e){var t;let{currentPage:n,commandPage:s,className:l,...u}=e,c=(0,o.U8)(e=>e.search),d=s.namespace.startsWith((null==n?void 0:n.namespace)||"");if(c&&d||!n||s.namespace===(null==n?void 0:n.namespace))return(0,r.jsx)(o.mY.Item,{className:(0,a.cx)((0,i.Vkc)(),"group",l),value:"".concat(s.label," ").concat((null===(t=u.children)||void 0===t?void 0:t.toString())||""),...u})}function c(e){let{heading:t,currentPage:n,commandPage:a,...s}=e,l=(0,o.U8)(e=>e.search);return(0,r.jsx)(o.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==a.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:a.label}),...s})}n(2784)},58283:function(e,t,n){"use strict";n.d(t,{F:function(){return g},A:function(){return v}});var r=n(52322),i=n(70150),a=n(28420),o=n(91426),s=n(4300),l=n(5632),u=n(74282),c=n(46741),d=n(12295),f=n(9408),h=n(20673),p=n(82285),m=n(2784);function g(e){let{id:t,trigger:n,hostKey:o,contentProps:s,buttonProps:l}=e;return(0,r.jsx)(i.h_2,{trigger:n||(0,r.jsx)(i.zxk,{"aria-label":"contract context menu",icon:"hover",size:"none",...l,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...s,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(v,{id:t,hostKey:o})})}function v(e){var t,n,g;let{id:v,hostKey:y}=e,b=(0,l.useRouter)(),{setFilter:x,resetFilters:w}=(0,c.l)(),{setFilter:j,resetFilters:k}=(0,u.G)(),E=(0,o.uf)(),_=(0,o.s2)(),C=(0,f.l)(),S=(0,d.I)(),O=function(){let{openConfirmDialog:e}=(0,p.Rh)(),t=(0,o.IK)();return(0,m.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])}(),M=null===(t=(0,o.$)({disabled:!y,params:{hostkey:y||""}}).data)||void 0===t?void 0:t.netAddress;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:!M,onSelect:()=>{w(),x({id:"addressContains",value:M,label:"Address contains ".concat(M)}),b.push(s._.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:()=>{y&&(k(),j((0,h.V)(y)),b.push(s._.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===(n=E.data)||void 0===n?void 0:n.find(e=>e===M))?(0,r.jsxs)(i.Xiv,{disabled:!M,onSelect:()=>{M&&C([],[M])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{disabled:!M,onSelect:()=>{M&&C([M],[])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Add host address to blocklist"]}),(null===(g=_.data)||void 0===g?void 0:g.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{y&&S([],[y])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{disabled:!y,onSelect:()=>{y&&S([y],[])},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:!y,onSelect:()=>{y&&(0,i.vQq)(y,"host public key")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{disabled:!M,onSelect:()=>{M&&(0,i.vQq)(M,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},33889:function(e,t,n){"use strict";n.d(t,{F:function(){return _}});var r=n(52322),i=n(60381),a=n(7513);let o={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.Nr)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xL)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xL)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.iv)(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.Nr)(1);return e.startTime>=t}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime()-(0,i.BL)(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.BL)(2);return e.startTime>=t}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime()-(0,i.xL)(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.xL)(2);return e.startTime>=t}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime()-(0,i.iv)(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.Nr)(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.BL)(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.BL)(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.xL)(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.xL)(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.iv)(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(82285),g=n(20673);let v={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function y(e){let{select:t,currentPage:n}=e,i=(0,g.V)(""),{openDialog:o}=(0,m.Rh)();return(0,r.jsx)(a.fu,{currentPage:n,commandPage:v,children:(0,r.jsx)(a.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(),o("contractsFilterPublicKey")},children:i.label})})}function b(e){let{select:t,currentPage:n,parentPage:i,commandPage:o}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(a.Ul,{currentPage:n,parentPage:i,commandPage:o,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:v.label})}function x(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)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let w={namespace:"contracts",label:"Contracts"};function j(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{currentPage:t,parentPage:n,commandPage:w,select:s}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:w,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:w,onSelect:()=>{i(o)},children:o.label}),(0,r.jsx)(a.Ul,{currentPage:t,parentPage:n,commandPage:w,onSelect:()=>{i(f)},children:f.label})]})}var k=n(74282),E=n(2784);function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,k.G)(),l=(0,E.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(x,{currentPage:t,select:l})]})}},20673:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(70150),a=n(74282),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},45027:function(e,t,n){"use strict";n.d(t,{e:function(){return f}});var r=n(52322),i=n(70150),a=n(28420),o=n(82285),s=n(2784),l=n(91426),u=n(25913);function c(e){let{path:t}=e,n=(0,l.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,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Copy metadata"]})}var d=n(8068);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,l.Lh)();return(0,s.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=(0,u.ru)(n),r=(0,u.kj)(n),a=await t.post({payload:{bucket:e,prefix:r}});a.error?(0,i.OHV)({title:"Error deleting file",body:a.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,{size:"none","aria-label":"File context menu",variant:"ghost",icon:"hover",children:(0,r.jsx)(a.c_L,{})}),contentProps:{align:"start",...f,onClick:e=>{e.stopPropagation()}},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})]})}},96612:function(e,t,n){"use strict";n.d(t,{G:function(){return g},i:function(){return v}});var r=n(52322),i=n(70150),a=n(28420),o=n(91426),s=n(4300),l=n(5632),u=n(74282),c=n(46741),d=n(12295),f=n(9408),h=n(20673),p=n(40608),m=n(60381);function g(e){let{address:t,publicKey:n,contentProps:o,buttonProps:s,trigger:l}=e;return(0,r.jsx)(i.h_2,{trigger:l||(0,r.jsx)(i.zxk,{"aria-label":"host context menu",icon:"hover",size:"none",...s,children:(0,r.jsx)(a.EMN,{})}),contentProps:{align:"start",...o,onClick:e=>{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,l.useRouter)(),{setFilter:b,resetFilters:x}=(0,c.l)(),{setFilter:w,resetFilters:j}=(0,u.G)(),k=(0,o.uf)(),E=(0,o.s2)(),_=(0,f.l)(),C=(0,d.I)(),S=(0,o.ED)(),O=(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:()=>{g&&(x(),b({id:"addressContains",value:g,label:"Address contains ".concat((0,i.$Gg)(g,20))}),y.push(s._.hosts.index))},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{x(),b((0,p.K)(v)),y.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,h.V)(v)),y.push(s._.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:()=>{g&&S.post({params:{hostkey:v},payload:{timeout:(0,m.XB)(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:()=>_([],[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:()=>{g&&_([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:()=>O.post({params:{hostkey: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:()=>{g&&(0,i.vQq)(g,"host address")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(a.olJ,{})}),"Host address"]})]})}},777:function(e,t,n){"use strict";n.d(t,{T:function(){return b},N:function(){return y}});var r=n(52322),i=n(2784),a=n(70150),o=n(60381),s=n(6391),l=n.n(s);function u(e){var t,n,r,i;let{host:s,exchangeRateUSD:u}=e,c=u?"$".concat(new(l())((null===(t=s.settings)||void 0===t?void 0:t.storageprice)||0).times((0,o.xf)(1)).times((0,o.S5)(1)).div(1e24).times(u).toFixed(2),"/TB"):"".concat((0,o.Vz)(new(l())((null===(n=s.settings)||void 0===n?void 0:n.storageprice)||0).times((0,o.xf)(1)).times((0,o.S5)(1)),{fixed:0}),"/TB"),d="".concat((0,o.vW)(s.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),f="".concat((0,o.vW)((null===(r=s.settings)||void 0===r?void 0:r.remainingstorage)||0)," / ").concat((0,o.vW)((null===(i=s.settings)||void 0===i?void 0:i.totalstorage)||0)," available"),h=s.countryCode?(0,a.HLH)(s.countryCode):"\uD83C\uDF0D";return"".concat(h," \xb7 ").concat(c," \xb7 ").concat(d," \xb7 ").concat(f)}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(463),p=n(25237);let m=n.n(p)()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(63)]).then(n.bind(n,89063)),{loadableGenerated:{webpack:()=>[89063]},ssr:!1}),g=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(m,{...e,forwardRef:t})});var v=n(54597);let y={moveToLocation:(e,t)=>null};function b(e){let{activeHost:t,hosts:n,onMount:a,onHostClick:o,onHostHover:s}=e,d=(0,h.J)({currency:"usd"}),f=(0,i.useRef)(null),p=(0,i.useRef)(y),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:x,width:w}]=c(),j=(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:w,height:x,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=>u({host:e.dst,exchangeRateUSD:d.rate}),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:j,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>u({host:e,exchangeRateUSD:d.rate}),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=>{var t;return e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(((null===(t=e.settings)||void 0===t?void 0:t.remainingstorage)||0)/1e13/3,.1)},onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==o||o(e.publicKey,e.location))},pointsMerge:!1})})}},50454:function(e,t,n){"use strict";n.d(t,{L:function(){return O}});var r=n(52322),i=n(7513),a=n(82285),o=n(57220);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,a.Rh)(),u=(0,o.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:o,commandPage:l}=e,{openDialog:u}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let 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 b=n(40608);let x={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function w(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,a.Rh)(),s=(0,b.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:x,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:x,onSelect:()=>{t(),o("hostsFilterPublicKey")},children:s.label})})}function j(e){let{select:t,currentPage:n,parentPage:o,commandPage:s}=e,{openDialog:l}=(0,a.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:x.label})}function k(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)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(w,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let E={namespace:"hosts",label:"Hosts"};function _(e){let{currentPage:t,parentPage:n,pushPage:a,select:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:E,onSelect:()=>{a(g)},children:g.label}),(0,r.jsx)(j,{currentPage:t,parentPage:n,commandPage:E,select:o}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:E,select:o}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:E,onSelect:()=>{a(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:E,onSelect:()=>{a(c)},children:c.label})]})}var C=n(46741),S=n(2784);function O(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,{setFilter:s}=(0,C.l)(),l=(0,S.useCallback)(e=>{a&&a(),e&&s(e),o&&o()},[s,a,o]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,pushPage:i,select:l})]})}},57220:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(70150),a=n(46741),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},40608:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(70150),a=n(46741),o=n(92683),s=n(24511),l=n(82285);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,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(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},45382:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(52322),i=n(70150),a=n(2784),o=n(71609);function s(e){let{loaded:t,size:n,status:s}=e,l=(0,a.useMemo)(()=>{var e;return void 0!==(e={loaded:t,size:n}).loaded&&e.size?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===l?"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)(s)}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*l).toFixed(0),"%"]})]})]})}},4300:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return a}});var r=n(7699);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},99634:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let r=(0,n(60381).XB)(15)},45209:function(e,t,n){"use strict";n.d(t,{b:function(){return R},Z:function(){return N}});var r=n(52322),i=n(70150),a=n(2784);let o=["actions","overview","data","time"],s=[];var l=n(91426),u=n(96612),c=n(8068),d=n(82285),f=n(25913),h=n(6391),p=n.n(h),m=n(28420),g=n(58283);function v(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)(m.EMN,{})}),contentProps:{align:"start",...a,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(y,{id:t})})}function y(e){var t;let{id:n}=e,i=(0,l.cq)({params:{id:n}});return(0,r.jsx)(g.A,{id:n,hostKey:null===(t=i.data)||void 0===t?void 0:t.hostKey})}function b(e){let{id:t,contentProps:n,buttonProps:a,trigger:o}=e,s=(0,l.cJ)();return(0,r.jsxs)(i.h_2,{trigger:o||(0,r.jsx)(i.zxk,{icon:"hover",variant:"ghost",...a,children:(0,r.jsx)(m.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:()=>s.post({params:{id:t}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(m.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)(m.olJ,{})}),"Account ID"]})]})}var x=n(45027);function w(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)(m.EMN,{})}),contentProps:{align:"start",...n,onClick:e=>{e.stopPropagation()}},children:(0,r.jsx)(j,{hostKey:t})})}function j(e){var t;let{hostKey:n}=e,i=(0,l.$)({params:{hostkey:n}});return(0,r.jsx)(u.i,{address:null===(t=i.data)||void 0===t?void 0:t.netAddress,publicKey:n})}var k=n(60381),E=n(22836),_=n(82851);function C(e){let{data:t}=e,n=(0,a.useMemo)(()=>(0,i.qPQ)(t).map(e=>{let[t,n]=e;return{contractId:t,hostKey:n[0].hostKey,events:n.sort((e,t)=>new Date(e.time).getTime()e.events[0].sizen.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[n]),s=(0,a.useMemo)(()=>n.filter(e=>{let{events:t}=e;return"bad"===t[0].to}),[n]),l=(0,a.useMemo)(()=>n.filter(e=>{let{events:t}=e;return"good"===t[0].to}),[n]),u=(0,a.useMemo)(()=>s.reduce((e,t)=>{let{events:n}=t;return e+n[0].size},0),[s]),c=(0,a.useMemo)(()=>o>0?u/o*100:0,[u,o]);return(0,r.jsxs)("div",{"data-testid":"churn",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 changes"}),(0,r.jsx)("div",{className:"flex-1"}),(0,r.jsx)(i.ua7,{content:"".concat((0,k.vW)(u)," of ").concat((0,k.vW)(o)," 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: ",c.toFixed(2),"%"]}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:["(",(0,k.vW)(u)," / ",(0,k.vW)(o),")"]})]})}),(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,r.jsx)(i.ua7,{content:"".concat(l.length," contracts marked good"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"green",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(m.aXP,{}),l.length]})}),(0,r.jsx)(i.ua7,{content:"".concat(s.length," contracts marked bad"),children:(0,r.jsxs)(i.xvT,{size:"12",color:"red",ellipsis:!0,className:"flex items-center",children:[(0,r.jsx)(m.eOF,{}),s.length]})})]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-3 mb-2",children:n.map((e,t)=>{let{contractId:n,hostKey:i,events:a}=e;return(0,r.jsx)(S,{contractId:n,hostKey:i,events:a,i:t},n+i)})})]})}function S(e){let{contractId:t,hostKey:n,events:a,i:o}=e;return(0,r.jsxs)("div",{"data-testid":t,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)(v,{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)(w,{hostKey:n,buttonProps:{size:"none"},contentProps:{align:"end"}})})]})]}),a.map((e,t)=>{let{to:n,reason:a,size:o,time:s}=e;return(0,r.jsx)(i.ua7,{content:"good"===n?"good":"bad: ".concat(a),align:"start",side:"bottom",children:(0,r.jsxs)("div",{className:(0,_.cx)("flex gap-2 justify-between mr-2 pr-1",0===t?"good"===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:"good"===n?"green":"red",children:"good"===n?(0,r.jsx)(m.aXP,{}):(0,r.jsx)(m.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,E.Z)(new Date(s),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,k.vW)(o)})]})]})},n+a+s)})]})}var O=n(32974);let M={origin:{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:"origin"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t})]})}},contractID:{render(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(i.PF9,{size:"12",value:t,menu:(0,r.jsx)(v,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{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 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,l.$)({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)(u.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{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:"slab key"}),(0,r.jsx)(i.XxW,{size:"12",value:t,label:"slab key"})]})}},health:{render(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between items-center 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})]})}},objects:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,c.b)(),{closeDialog:a}=(0,d.Rh)();return(0,r.jsxs)("div",{"data-testid":"objects",className:"flex flex-col h-[150px] overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center w-full gap-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",ellipsis:!0,children:"objects"}),(0,r.jsx)(i.xvT,{size:"12",color:"contrast",ellipsis:!0,children:t.length})]}),(0,r.jsx)("div",{className:"-mx-2 flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2 px-2",children:t.map(e=>{let{bucket:t,key:o,health:s,size:l}=e,u="".concat(t).concat(o),{color:c,icon:d,label:h}=(0,O.D)({health:s,size:l,isDirectory:o.endsWith("/")});return(0,r.jsxs)("div",{className:"flex justify-between items-center w-full gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.ua7,{content:h,children:(0,r.jsx)(i.xvT,{size:"12",color:c,children:d})}),(0,r.jsx)(i.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,ellipsis:!0,onClick:()=>{n(()=>(0,f.gD)(u)),a()},children:u})]}),(0,r.jsx)(x.e,{path:u,contentProps:{align:"end"},trigger:(0,r.jsx)(i.zxk,{"aria-label":"File context menu",variant:"ghost",icon:"hover",size:"none",children:(0,r.jsx)(m.EMN,{})})})]},u)})})})})]})}},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"})]})}},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(p())(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(p())(t),format:e=>e.toString()})]})}},churn:{render(e){let{value:t}=e;return(0,r.jsx)(C,{data:t})}}},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)(m.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}):null,a.error?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:a.error}):null]})}},{id:"data",label:"data",contentClassName:"w-[500px]",rowCellClassName:"align-top",category:"general",render:function(e){let{data:{data:t}}=e,n=(0,a.useMemo)(()=>(0,i.qPQ)(M).map(e=>{let[n]=e,r=t[n];return null!=r&&("object"!=typeof r||!!Object.keys(r).length)&&{key:n,value:r}}).filter(e=>e),[t]);return(0,r.jsx)("div",{className:"py-4 w-full",children:(0,r.jsx)(i.s_4,{color:"subtle",className:"flex flex-col gap-1 w-full py-1",children:n.map((e,t)=>{var o;let{key:s,value:l}=e,u=null==M?void 0:null===(o=M[s])||void 0===o?void 0:o.render;return u?(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("div",{className:"py-1 px-2",children:(0,r.jsx)(u,{value:l},s)}),n.length>1&&t{let{data:{timestamp:t}}=e;return(0,r.jsx)(i.xvT,{color:"subtle",size:"12",ellipsis:!0,children:(0,E.Z)(new Date(t),new Date)})}}];var A=n(99634);let T=(0,a.createContext)({}),N=()=>(0,a.useContext)(T);function R(e){let{children:t}=e,n=function(){var e;let{limit:t,offset:n}=(0,i.It_)(50),{filters:r,setFilter:u,removeFilter:c,removeLastFilter:d,resetFilters:f}=(0,i.Uu5)(),h=(0,a.useCallback)(e=>{e?u({id:"severity",value:e,label:e}):c("severity")},[u,c]),p=null===(e=r.find(e=>"severity"===e.id))||void 0===e?void 0:e.value,m=(0,a.useMemo)(()=>{let e={limit:t,offset:n};return p&&(e.severity=p),e},[t,n,p]),g=(0,l.Z7)({params:m,config:{swr:{refreshInterval:A.h}}}),v=(0,l.Uy)(),y=(0,a.useCallback)(async e=>{let t=await v.post({payload:[e]});t.error?(0,i.OHV)({title:"Error dismissing alert",body:t.error}):(0,i.OPV)({title:"Alert has been dismissed."})},[v]),b=(0,a.useCallback)(async e=>{let t=await v.post({payload:e});t.error?(0,i.OHV)({title:"Error dismissing alerts",body:t.error}):(0,i.OPV)({title:"Selected alerts have been dismissed"})},[v]),x=(0,a.useMemo)(()=>{var e,t;if(g.data)return(null===(t=g.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:()=>y(e.id)})))||[]},[g.data,y]),{configurableColumns:w,visibleColumns:j,visibleColumnIds:k,sortableColumns:E,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:S,toggleSort:O,setSortDirection:M,setSortField:T,sortField:N,sortDirection:R,resetDefaultColumnVisibility:D}=(0,i.oy6)("renterd/v0/alerts",{columns:P,columnsDefaultVisible:o,sortOptions:s,defaultSortField:""}),L=(0,i.LNN)({datasetPage:x,isValidating:g.isValidating,error:g.error,filters:r,offset:n}),z=(0,a.useMemo)(()=>{var e,t;return{...null===(e=g.data)||void 0===e?void 0:e.totals,all:Object.entries((null===(t=g.data)||void 0===t?void 0:t.totals)||{}).reduce((e,t)=>{let[n,r]=t;return e+r},0)}},[g.data]);return{datasetState:L,limit:t,offset:n,isLoading:g.isLoading,error:g.error,datasetPageTotal:(null==x?void 0:x.length)||0,totals:z,datasetPage:x,configurableColumns:w,visibleColumns:j,visibleColumnIds:k,sortableColumns:E,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:S,toggleSort:O,setSortDirection:M,setSortField:T,sortField:N,filters:r,setFilter:u,removeFilter:c,removeLastFilter:d,resetFilters:f,sortDirection:R,resetDefaultColumnVisibility:D,dismissOne:y,dismissMany:b,severityFilter:p,setSeverityFilter:h}}();return(0,r.jsx)(T.Provider,{value:n,children:t})}},28245: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(463),o=n(7699),s=n(67812),l=n(65740);let u=(0,i.createContext)({}),c=()=>(0,i.useContext)(u);function d(e){let{children:t}=e,n={bus:function(){let[e,t]=(0,i.useState)(null),{settings:{api:n,password:r}}=(0,a.Hv)();return(0,i.useEffect)(()=>{t(function(e){let{api:t,password:n}=e,r=(0,l.YY)(t,n);return{axios:r,busState:(0,l.Li)(r,"get",o.PS),consensusState:(0,l.Li)(r,"get",o.J6),consensusNetwork:(0,l.Li)(r,"get",o.kP),consensusAcceptBlock:(0,l.Li)(r,"post",o.gc),syncerPeers:(0,l.Li)(r,"get",o.gl),syncerConnect:(0,l.Li)(r,"post",o.aU),syncerAddress:(0,l.Li)(r,"get",o.AF),txPoolFee:(0,l.Li)(r,"get",o.Sh),txPoolTransactions:(0,l.Li)(r,"get",o.Oj),txPoolBroadcast:(0,l.Li)(r,"post",o.MR),wallet:(0,l.Li)(r,"get",o.xg),walletEvents:(0,l.Li)(r,"get",o.Wi),walletPending:(0,l.Li)(r,"get",o.zk),walletSend:(0,l.Li)(r,"post",o.zb),walletRedistribute:(0,l.Li)(r,"post",o.f0),walletPrepareForm:(0,l.Li)(r,"post",o.Kr),walletPrepareRenew:(0,l.Li)(r,"post","/bus/wallet/prepare/form"),hosts:(0,l.Li)(r,"post",o.N8),host:(0,l.Li)(r,"get",o.rg),hostsInteractionAdd:(0,l.Li)(r,"post",o.nY),hostsBlocklist:(0,l.Li)(r,"get",o.yu),hostsAllowlist:(0,l.Li)(r,"get",o.MF),hostsAllowlistUpdate:(0,l.Li)(r,"put",o.MF),hostsBlocklistUpdate:(0,l.Li)(r,"put",o.yu),hostResetLostSectorCount:(0,l.Li)(r,"post",o.KP),hostScan:(0,l.Li)(r,"post",o.$G),contracts:(0,l.Li)(r,"get",o.FP),contractsAcquire:(0,l.Li)(r,"post",o.fo),contractsRelease:(0,l.Li)(r,"post",o.sw),contract:(0,l.Li)(r,"get",o.J9),contractAdd:(0,l.Li)(r,"post",o.AD),contractRenew:(0,l.Li)(r,"post",o.Z2),contractDelete:(0,l.Li)(r,"delete",o.J9),contractSize:(0,l.Li)(r,"get",o.cN),contractsPrunable:(0,l.Li)(r,"get",o.z$),buckets:(0,l.Li)(r,"get",o.AJ),bucket:(0,l.Li)(r,"get",o.aq),bucketCreate:(0,l.Li)(r,"post",o.AJ),bucketPolicyUpdate:(0,l.Li)(r,"put",o.mD),bucketDelete:(0,l.Li)(r,"delete",o.aq),objects:(0,l.Li)(r,"get",o.JK),object:(0,l.Li)(r,"get",o.qf),objectAdd:(0,l.Li)(r,"put",o.qf),objectsRename:(0,l.Li)(r,"post",o.oZ),objectsRemove:(0,l.Li)(r,"post",o.c_),objectStats:(0,l.Li)(r,"get",o.VJ),settingsGouging:(0,l.Li)(r,"get",o.IB),settingsPinned:(0,l.Li)(r,"get",o.Ly),settingsS3:(0,l.Li)(r,"get",o.M5),settingsUpload:(0,l.Li)(r,"get",o.cq),settingsGougingUpdate:(0,l.Li)(r,"put",o.IB),settingsPinnedUpdate:(0,l.Li)(r,"put",o.Ly),settingsS3Update:(0,l.Li)(r,"put",o.M5),settingsUploadUpdate:(0,l.Li)(r,"put",o.cq),alerts:(0,l.Li)(r,"get",o.jL),alertsDismiss:(0,l.Li)(r,"post",o.ks),slabObjects:(0,l.Li)(r,"get",o.go),contractMetrics:(0,l.Li)(r,"get",o.hp),walletMetrics:(0,l.Li)(r,"get",o.nI),multipartUploadCreate:(0,l.Li)(r,"post",o.sW),multipartUploadComplete:(0,l.Li)(r,"post",o.Pw),multipartUploadAbort:(0,l.Li)(r,"post",o.w_),multipartUploadListParts:(0,l.Li)(r,"post",o.GV),multipartUploadListUploads:(0,l.Li)(r,"post",o.CM),multipartUploadAddPart:(0,l.Li)(r,"post",o.o5),autopilotConfig:(0,l.Li)(r,"get",s.Kp),autopilotConfigUpdate:(0,l.Li)(r,"put",s.Kp)}}({api:"".concat(n,"/api"),password:r}))},[n,r]),e}()};return(0,r.jsx)(u.Provider,{value:n,children:t})}},90040:function(e,t,n){"use strict";n.d(t,{iV:function(){return X},ZR:function(){return G}});var r=n(52322),i=n(2784),a=n(70150),o=n(60381),s=n(6391),l=n.n(s);let u={amountHosts:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,prune:!1,maxDowntimeHours:void 0,maxConsecutiveScanFailures:void 0,minProtocolVersion:""},c={...u,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,pinnedCurrency:"",pinnedThreshold:void 0,shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonthPinned:void 0,shouldPinMaxDownloadPrice:!1,maxDownloadPriceTBPinned:void 0,shouldPinMaxUploadPrice:!1,maxUploadPriceTBPinned:void 0,uploadPackingEnabled:!0,minShards:void 0,totalShards:void 0};function d(e){return"mainnet"===e?{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(50),maxDowntimeHours:new(l())(336),maxConsecutiveScanFailures:new(l())(10),minProtocolVersion:"1.6.0",prune:!0}:{periodWeeks:new(l())(6),renewWindowWeeks:new(l())(2),amountHosts:new(l())(12),maxDowntimeHours:new(l())(336),maxConsecutiveScanFailures:new(l())(10),minProtocolVersion:"1.6.0",prune:!0}}function f(){return{hostBlockHeightLeeway:new(l())(6)}}function h(e){return{uploadPackingEnabled:!0,..."mainnet"===e?{minShards:new(l())(10),totalShards:new(l())(30)}:{minShards:new(l())(2),totalShards:new(l())(6)}}}function p(e){return{...d(e),...f(),...h(e)}}function m(e){let{gouging:t}=e;return{maxStoragePriceTBMonth:(0,o.ll)((0,o.dq)(new(l())(t.maxStoragePrice)),6),maxUploadPriceTB:(0,o.ll)((0,o.LK)(new(l())(t.maxUploadPrice)),6),maxDownloadPriceTB:(0,o.ll)((0,o.LK)(new(l())(t.maxDownloadPrice)),6),maxContractPrice:(0,o.ll)(t.maxContractPrice,6),maxRPCPriceMillion:(0,o.ll)((0,o.x9)(new(l())(t.maxRPCPrice)),6),hostBlockHeightLeeway:new(l())(t.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(l())((0,o.oK)(t.minPriceTableValidity)),minAccountExpiryDays:new(l())((0,o.He)(t.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,o.ll)(t.minMaxEphemeralAccountBalance,6)}}function g(e){var t,n,r;let{autopilot:i,gouging:s,pinned:c,upload:d}=e;return{...function(e){if(!e)return u;let t=new(l())(e.contracts.amount),n=new(l())((0,o.x5)(e.contracts.period)),r=new(l())((0,o.x5)(e.contracts.renewWindow)),i=new(l())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.download),e.contracts.period),2));return{amountHosts:t,periodWeeks:n,renewWindowWeeks:r,downloadTBMonth:i,uploadTBMonth:new(l())((0,a.$Gr)((0,o.qX)((0,o.JW)(e.contracts.upload),e.contracts.period),2)),storageTB:(0,o.JW)(new(l())(e.contracts.storage)),prune:e.contracts.prune,maxDowntimeHours:new(l())(e.hosts.maxDowntimeHours),maxConsecutiveScanFailures:new(l())(e.hosts.maxConsecutiveScanFailures),minProtocolVersion:e.hosts.minProtocolVersion||""}}(i),...m({gouging:s}),pinnedCurrency:c.currency,pinnedThreshold:new(l())(c.threshold).times(100),shouldPinMaxStoragePrice:null===(t=c.gougingSettingsPins)||void 0===t?void 0:t.maxStorage.pinned,maxStoragePriceTBMonthPinned:new(l())(c.gougingSettingsPins.maxStorage.value),shouldPinMaxUploadPrice:null===(n=c.gougingSettingsPins)||void 0===n?void 0:n.maxUpload.pinned,maxUploadPriceTBPinned:new(l())(c.gougingSettingsPins.maxUpload.value),shouldPinMaxDownloadPrice:null===(r=c.gougingSettingsPins)||void 0===r?void 0:r.maxDownload.pinned,maxDownloadPriceTBPinned:new(l())(c.gougingSettingsPins.maxDownload.value),uploadPackingEnabled:d.packing.enabled,minShards:new(l())(d.redundancy.minShards),totalShards:new(l())(d.redundancy.totalShards)}}var v=n(463),y=n(91426),b=n(7699);function x(e){let{autopilotState:t,autopilot:n,gouging:r,pinned:i,upload:a}=e;return!!t.data&&!t.error&&!!n.data&&!n.error&&!!r.data&&!r.error&&!!i.data&&!i.error&&!!a.data&&!a.error&&e}function w(e){let{resources:t,renterdState:n,values:r}=e,i=function(e,t,n){let r=j(t,d(e));return{...n,contracts:{...null==n?void 0:n.contracts,amount:Math.round(r.amountHosts.toNumber()),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(),maxConsecutiveScanFailures:r.maxConsecutiveScanFailures.toNumber(),scoreOverrides:(null==n?void 0:n.hosts.scoreOverrides)||{},minProtocolVersion:r.minProtocolVersion}}}(n.network,r,t.autopilot.data);return{payloads:{autopilot:i,gouging:function(e,t){let n=j(e,f());return{...t,maxRPCPrice:(0,o.qN)((0,o.ZA)(n.maxRPCPriceMillion)).toString(),maxStoragePrice:(0,o.qN)((0,o.iX)(n.maxStoragePriceTBMonth)).toString(),maxUploadPrice:(0,o.qN)((0,o.wf)(n.maxUploadPriceTB)).toString(),maxDownloadPrice:(0,o.qN)((0,o.wf)(n.maxDownloadPriceTB)).toString(),maxContractPrice:(0,o.qN)(n.maxContractPrice).toString(),hostBlockHeightLeeway:Math.round(n.hostBlockHeightLeeway.toNumber()||0),minPriceTableValidity:Math.round((0,o.sW)(n.minPriceTableValidityMinutes.toNumber()||0)),minAccountExpiry:Math.round((0,o.Nr)(n.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,o.qN)(n.minMaxEphemeralAccountBalance).toString()}}(r,t.gouging.data),pinned:function(e,t){let n=j(e,{});return{...t,currency:n.pinnedCurrency,threshold:n.pinnedThreshold.div(100).toNumber(),gougingSettingsPins:{maxStorage:{pinned:n.shouldPinMaxStoragePrice,value:n.maxStoragePriceTBMonthPinned.toNumber()},maxDownload:{pinned:n.shouldPinMaxDownloadPrice,value:n.maxDownloadPriceTBPinned.toNumber()},maxUpload:{pinned:n.shouldPinMaxUploadPrice,value:n.maxUploadPriceTBPinned.toNumber()}}}}(r,t.pinned.data),upload:function(e,t){let n=j(e,h("mainnet"));return{...t,packing:{...t.packing,enabled:n.uploadPackingEnabled},redundancy:{...t.redundancy,minShards:n.minShards.toNumber(),totalShards:n.totalShards.toNumber()}}}(r,t.upload.data)}}}function j(e,t){let n={...e};return(0,a.qPQ)(n).forEach(e=>{let[r,i]=e,a=t[r];a&&(null==i||""===i)&&(n[r]=a)}),n}var k=n(63955),E=n(6459),_=n(5880),C=n(28420);function S(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 O(e){let{form:t,priceInSiacoin:n,units:i}=e,s=t.watch("minShards"),l=t.watch("totalShards"),u=(0,_.i)({minShards:s,totalShards:l});return n&&s&&l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(S,{tip:(0,r.jsxs)(r.Fragment,{children:["Price per ",i," when factoring in the configured"," ",null==s?void 0:s.toString()," of ",null==l?void 0:l.toString()," redundancy."]}),icon:(0,r.jsx)(C.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 M=(0,r.jsx)(r.Fragment,{children:"The system found a recommendation that would increase the number of usable hosts."});var P=n(31405);function A(){let e=(0,P.BF)({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.useMemo)(()=>e.data?new(l())((0,o.dq)((0,o.ll)(e.data.settings.storage_price)).toFixed(0)):void 0,[e.data]),n=(0,i.useMemo)(()=>e.data?new(l())((0,o.LK)((0,o.ll)(e.data.settings.upload_price)).toFixed(0)):void 0,[e.data]),r=(0,i.useMemo)(()=>e.data?new(l())((0,o.LK)((0,o.ll)(e.data.settings.download_price)).toFixed(0)):void 0,[e.data]),a=(0,i.useMemo)(()=>e.data?new(l())((0,o.ll)(e.data.settings.contract_price).toFixed(0)):void 0,[e.data]),s=(0,i.useMemo)(()=>e.data?(0,o.x9)((0,o.ll)(e.data.settings.base_rpc_price)):void 0,[e.data]);return(0,i.useMemo)(()=>t&&n&&r&&a&&s?{storageAverage:t,uploadAverage:n,downloadAverage:r,contractAverage:a,rpcAverage:s}:{},[t,n,r,a,s])}function T(e){var t;let{form:n,fields:i,recommendations:s}=e,{storageAverage:l}=A(),u=n.watch("maxStoragePriceTBMonth"),c=null==s?void 0:null===(t=s.maxStoragePriceTBMonth)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:l,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonth",value:c,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:u,units:"TB/month"})]})}function N(e){var t;let{form:n,fields:i,recommendations:s}=e,{storageAverage:l}=A(),{rate:u}=(0,E.x)(n),c=n.watch("maxStoragePriceTBMonthPinned"),d=c&&u?(0,o.gP)(c,u):void 0,f=null==s?void 0:null===(t=s.maxStoragePriceTBMonthPinned)||void 0===t?void 0:t.targetValue,h=f&&u?(0,o.gP)(f,u):void 0;return(0,r.jsxs)(r.Fragment,{children:[l&&u&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:l.times(u),options:!0})}}),h&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(h),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxStoragePriceTBMonthPinned",value:f,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:d,units:"TB/month"})]})}function R(e){var t;let{form:n,fields:i,recommendations:s}=e,{uploadAverage:l}=A(),u=n.watch("maxUploadPriceTB"),c=null==s?void 0:null===(t=s.maxUploadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:l,options:!0})}}),c&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(c),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTB",value:c,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:u,units:"TB"})]})}function D(e){var t;let{form:n,fields:i,recommendations:s}=e,{rate:l}=(0,E.x)(n),{uploadAverage:u}=A(),c=n.watch("maxUploadPriceTBPinned"),d=c&&l?(0,o.gP)(c,l):void 0,f=null==s?void 0:null===(t=s.maxUploadPriceTBPinned)||void 0===t?void 0:t.targetValue,h=f&&l?(0,o.gP)(f,l):void 0;return(0,r.jsxs)(r.Fragment,{children:[u&&l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:u.times(l),options:!0})}}),h&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(h),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxUploadPriceTBPinned",value:f,options:!0})}),(0,r.jsx)(O,{form:n,priceInSiacoin:d,units:"TB"})]})}function L(e){var t;let{form:n,fields:i,recommendations:s}=e,{downloadAverage:l}=A(),u=null==s?void 0:null===(t=s.maxDownloadPriceTB)||void 0===t?void 0:t.targetValue;return(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:l,options:!0})}}),u&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTB",value:u,options:!0})})]})}function z(e){var t;let{form:n,fields:i,recommendations:s}=e,{rate:l}=(0,E.x)(n),{downloadAverage:u}=A(),c=null==s?void 0:null===(t=s.maxDownloadPriceTBPinned)||void 0===t?void 0:t.targetValue,d=c&&l?(0,o.gP)(c,l):null;return(0,r.jsxs)(r.Fragment,{children:[u&&l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Network average",tip:"Averages provided by Sia Central.",decimalsLimit:0,value:(0,o.qN)(u),onClick:()=>{(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:u.times(l),options:!0})}}),d&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(d),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxDownloadPriceTBPinned",value:c,options:!0})})]})}function F(e){var t;let{form:n,fields:i,recommendations:s}=e,l=null==s?void 0:null===(t=s.maxRPCPriceMillion)||void 0===t?void 0:t.targetValue;return(0,r.jsx)(r.Fragment,{children:l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxRPCPriceMillion",value:l,options:!0})})})}function Z(e){var t;let{form:n,fields:i,recommendations:s}=e,l=null==s?void 0:null===(t=s.maxContractPrice)||void 0===t?void 0:t.targetValue;return(0,r.jsx)(r.Fragment,{children:l&&(0,r.jsx)(a.ru1,{type:"siacoin",label:"Match with more hosts",tip:M,decimalsLimit:0,value:(0,o.qN)(l),onClick:()=>(0,a.fsB)({form:n,fields:i,name:"maxContractPrice",value:l,options:!0})})})}function I(e){var t,n,i,s;let{advancedDefaults:u,recommendations:c,configViewMode:d,validationContext:f}=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",validation:{required:"required"}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",validation:{required:"required"}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",validation:{required:"required"}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:null==u?void 0:u.periodWeeks,suggestionTip:"Typically ".concat(null==u?void 0:u.periodWeeks," weeks."),hidden:"basic"===d,validation:{validate:{required:V(f)}}},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==u?void 0:u.renewWindowWeeks,suggestionTip:"Typically ".concat(null==u?void 0:u.renewWindowWeeks," weeks."),hidden:"basic"===d,validation:{validate:{required:V(f)}}},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==u?void 0:u.amountHosts,suggestionTip:"Typically ".concat(null==u?void 0:u.amountHosts," hosts."),hidden:"basic"===d,validation:{validate:{required:V(f)}}},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==u?void 0:u.prune,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default value is ",(0,r.jsx)(a.EKh,{children:null==u?void 0:u.prune}),"."]}),hidden:"basic"===d,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==u?void 0:u.maxDowntimeHours,suggestionTip:(null==u?void 0:u.maxDowntimeHours)?"Defaults to ".concat(null==u?void 0:u.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,a.$Gr)(new(l())((0,o.XA)(null==u?void 0:u.maxDowntimeHours.toNumber())),1)," days."):void 0,hidden:"basic"===d,validation:{validate:{required:V(f)}}},maxConsecutiveScanFailures:{type:"number",category:"hosts",title:"Max consecutive scan failures",description:(0,r.jsx)(r.Fragment,{children:"The maximum number of consecutive scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:null==u?void 0:u.maxConsecutiveScanFailures,suggestionTip:(null==u?void 0:u.maxConsecutiveScanFailures)?"Defaults to ".concat(null==u?void 0:u.maxConsecutiveScanFailures.toNumber(),"."):void 0,hidden:"basic"===d,validation:{validate:{required:V(f)}}},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==u?void 0:u.minProtocolVersion,suggestionTip:"Defaults to ".concat(null==u?void 0:u.minProtocolVersion,"."),hidden:"basic"===d,validation:{validate:{required:V(f),version:V(f,e=>/^\d+\.\d+\.\d+$/.test(e||"")||"must be a valid version number")}}},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"===d,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",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(T,{form:t,fields:n,recommendations:c})}},maxStoragePriceTBMonthPinned:{title:"",description:"",units:"/TB/month",type:"fiat",category:"gouging",validation:{validate:{required:B("shouldPinMaxStoragePrice",(e,t)=>!t.shouldPinMaxStoragePrice||!!e||"required"),currency:B("shouldPinMaxStoragePrice",(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:B("shouldPinMaxStoragePrice",(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)(N,{form:t,fields:n,recommendations:c})}},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",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(R,{form:t,fields:n,recommendations:c})}},maxUploadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",category:"gouging",validation:{validate:{required:B("shouldPinMaxUploadPrice",(e,t)=>!t.shouldPinMaxUploadPrice||!!e||"required"),currency:B("shouldPinMaxUploadPrice",(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:B("shouldPinMaxUploadPrice",(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)(D,{form:t,fields:n,recommendations:c})}},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",decimalsLimitSc:6,validation:{required:"required"},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(L,{form:t,fields:n,recommendations:c})}},maxDownloadPriceTBPinned:{title:"",description:"",units:"/TB",type:"fiat",category:"gouging",validation:{validate:{required:B("shouldPinMaxDownloadPrice",(e,t)=>!t.shouldPinMaxDownloadPrice||!!e||"required"),currency:B("shouldPinMaxDownloadPrice",(e,t)=>!!t.pinnedCurrency||"must select a pinned currency"),range:B("shouldPinMaxDownloadPrice",(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)(z,{form:t,fields:n,recommendations:c})}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),suggestion:new(l())(1),suggestionTip:"The suggested value is 1 SC.",decimalsLimitSc:6,tipsDecimalsLimitSc:0,hidden:"basic"===d,validation:{validate:{required:V(f)}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(Z,{form:t,fields:n,recommendations:c})}},maxRPCPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,suggestion:new(l())(10),suggestionTip:"The suggested value is 10 SC.",tipsDecimalsLimitSc:0,hidden:"basic"===d,validation:{validate:{required:V(f)}},after:e=>{let{form:t,fields:n}=e;return(0,r.jsx)(F,{form:t,fields:n,recommendations:c})}},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,...c.hostBlockHeightLeeway?{suggestionLabel:"Match with more hosts",suggestion:null===(t=c.hostBlockHeightLeeway)||void 0===t?void 0:t.targetValue,suggestionTip:"This value will help you match with more hosts."}:{suggestion:null==u?void 0:u.hostBlockHeightLeeway,suggestionTip:"The recommended value is ".concat(null==u?void 0:u.hostBlockHeightLeeway.toNumber().toLocaleString()," blocks.")},hidden:"basic"===d,validation:{validate:{required:V(f),min:V(f,e=>new(l())(e||0).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"===d,suggestionLabel:"Match with more hosts",suggestion:null===(n=c.minPriceTableValidityMinutes)||void 0===n?void 0:n.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:V(f),min:V(f,e=>new(l())(e||0).gte((0,o.GX)(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"===d,suggestionLabel:"Match with more hosts",suggestion:null===(i=c.minAccountExpiryDays)||void 0===i?void 0:i.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:V(f),min:V(f,e=>new(l())(e||0).gte((0,o.XA)(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"===d,suggestionLabel:"Match with more hosts",suggestion:null===(s=c.minMaxEphemeralAccountBalance)||void 0===s?void 0:s.targetValue,suggestionTip:"This value will help you match with more hosts.",validation:{validate:{required:V(f),min:V(f,e=>new(l())(e||0).gte(1)||"must be at least 1 SC")}}},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==u?void 0:u.minShards,suggestionTip:"Typically ".concat(null==u?void 0:u.minShards," shards."),units:"shards",hidden:"basic"===d,validation:{validate:{required:V(f),min:V(f,e=>new(l())(e||0).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==u?void 0:u.totalShards,suggestionTip:"Typically ".concat(null==u?void 0:u.totalShards," shards."),units:"shards",hidden:"basic"===d,validation:{validate:{required:V(f),gteMinShards:V(f,(e,t)=>new(l())(e||0).gte(t.minShards||0)||"must be at least equal to min shards"),max:V(f,e=>new(l())(e||0).lt(256)||"must be less than 256")}}},pinnedCurrency:{category:"pinning",title:"Pinned currency",description:"Currency to use for fields where price pinning is enabled.",type:"select",options:[...v.mV.map(e=>{let{id:t,label:n}=e;return{label:n,value:t}}),{label:"none",value:""}],validation:{required:"required"}},pinnedThreshold:{category:"pinning",title:"Pinned currency change threshold",type:"number",suggestionTip:"A threshold of 2% is recommended.",suggestion:new(l())(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:{required:"required",validate:{max:e=>new(l())(e||0).lte(100)||"must be at most 100%",min:e=>new(l())(e||0).gte(0)||"must be at least 0%"}}}}}function V(e,t){return(n,r)=>"advanced"!==e.configViewMode||(t?t(n,r):!!n||"required")}function B(e,t){return(n,r)=>!r[e]||(t?t(n,r):!!n||"required")}var U=n(92762),H=n(75346);let W=I({validationContext:{configViewMode:"basic"},configViewMode:"basic",recommendations:{}}),$={maxStoragePriceTBMonth:"maxStoragePriceTBMonthGroup",maxDownloadPriceTB:"maxDownloadPriceTBGroup",maxUploadPriceTB:"maxUploadPriceTBGroup",maxRPCPriceMillion:"maxRPCPriceMillionGroup",maxStoragePriceTBMonthPinned:"maxStoragePriceTBMonthGroup",maxUploadPriceTBPinned:"maxUploadPriceTBGroup",maxDownloadPriceTBPinned:"maxDownloadPriceTBGroup",maxContractPrice:"maxContractPrice",hostBlockHeightLeeway:"hostBlockHeightLeeway",minPriceTableValidityMinutes:"minPriceTableValidityMinutes",minAccountExpiryDays:"minAccountExpiryDays",minMaxEphemeralAccountBalance:"minMaxEphemeralAccountBalance"},q={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"},K={amountHosts:new(l())(0),periodWeeks:new(l())(0),renewWindowWeeks:new(l())(0),downloadTBMonth:new(l())(0),uploadTBMonth:new(l())(0),storageTB:new(l())(0),prune:!1,maxDowntimeHours:new(l())(0),maxConsecutiveScanFailures:new(l())(0),minProtocolVersion:"",uploadPackingEnabled:!0,maxRPCPriceMillion:new(l())(0),shouldPinMaxStoragePrice:!1,maxStoragePriceTBMonth:new(l())(0),maxStoragePriceTBMonthPinned:new(l())(0),maxContractPrice:new(l())(0),shouldPinMaxDownloadPrice:!1,maxDownloadPriceTB:new(l())(0),maxDownloadPriceTBPinned:new(l())(0),shouldPinMaxUploadPrice:!1,maxUploadPriceTB:new(l())(0),maxUploadPriceTBPinned:new(l())(0),hostBlockHeightLeeway:new(l())(0),minPriceTableValidityMinutes:new(l())(0),minAccountExpiryDays:new(l())(0),minMaxEphemeralAccountBalance:new(l())(0),minShards:new(l())(0),totalShards:new(l())(0),pinnedCurrency:"usd",pinnedThreshold:new(l())(0)},Y=(0,i.createContext)({}),G=()=>(0,i.useContext)(Y);function X(e){let{children:t}=e,n=function(){let{autopilotState:e,autopilot:t,gouging:n,pinned:r,upload:s,resources:l}=function(){let e=(0,y.YX)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),t=(0,y.e$)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),n=(0,y.en)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),r=(0,y.E5)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),a=(0,y.NF)({config:{swr:{refreshInterval:(0,o.sW)(1)}}}),s=(0,v.Hv)();return{resources:(0,i.useMemo)(()=>({autopilotState:{data:e.data,error:e.error},autopilot:{data:t.data,error:t.error},gouging:{data:n.data,error:n.error},pinned:{data:r.data,error:r.error},upload:{data:a.data,error:a.error},appSettings:{settings:{siaCentral:s.settings.siaCentral}}}),[e.data,e.error,t.data,t.error,n.data,n.error,r.data,r.error,a.data,a.error,s.settings.siaCentral]),autopilotState:e,autopilot:t,gouging:n,pinned:r,upload:a,appSettings:s}}(),{form:u,storageTB:d,evaluation:f,redundancyMultiplier:h,fields:j,configViewMode:_,setConfigViewMode:C}=function(e){let{resources:t}=e,n=(0,k.cI)({mode:"all",defaultValues:c}),r=n.watch("maxStoragePriceTBMonth"),s=n.watch("maxDownloadPriceTB"),l=n.watch("maxUploadPriceTB"),u=n.watch("storageTB"),d=n.watch("downloadTBMonth"),f=n.watch("uploadTBMonth"),h=n.watch("minShards"),g=n.watch("totalShards"),b=(0,i.useMemo)(()=>(0,o.aU)(h,g),[h,g]),[j,_]=(0,U.Z)("v0/config/mode",{defaultValue:"basic"});(0,i.useEffect)(()=>{n.trigger()},[n]),(0,i.useEffect)(()=>{n.trigger()},[j]);let C=function(e){var t,n,r,s,l,u,c,d,f,h,g,b;let{form:j,resources:k}=e,_=j.watch(),C=(0,y.d_)(),S=(0,i.useMemo)(()=>!!x(k)&&!!j.formState.isValid&&!!C.data,[j.formState.isValid,k,C.data]),O=(0,H.w)({form:j}),M=(0,i.useMemo)(()=>{var e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",n=p(t),r={...K,...n};return(0,a.qPQ)(e).forEach(e=>{let[t,n]=e;void 0!==n&&(r[t]=n)}),r}({..._,...O},null===(e=C.data)||void 0===e?void 0:e.network)},[_,O,null===(t=C.data)||void 0===t?void 0:t.network]),P=(0,i.useMemo)(()=>{if(!S||!C.data)return;let{payloads:e}=w({resources:k,renterdState:C.data,values:M});return e},[M,k,C,S]),A=(null==P?void 0:null===(n=P.autopilot)||void 0===n?void 0:n.contracts.amount)||0,T=Math.round(1.5*A),N=Math.round(1.1*A),R=!!P,D=(0,y.Mz)({disabled:!R,payload:{gougingSettings:null==P?void 0:P.gouging,redundancySettings:null==P?void 0:P.upload.redundancy,autopilotConfig:null==P?void 0:P.autopilot},config:{swr:{keepPreviousData:R}}}),L=null===(s=D.data)||void 0===s?void 0:null===(r=s.recommendation)||void 0===r?void 0:r.gougingSettings,z=(null===(l=D.data)||void 0===l?void 0:l.usable)||0,F=D.data&&z{let t={maxStoragePriceTBMonth:!X,maxUploadPriceTB:!J,maxDownloadPriceTB:!Q,maxStoragePriceTBMonthPinned:X,maxUploadPriceTBPinned:J,maxDownloadPriceTBPinned:Q};return void 0===t[e]||t[e]},[X,J,Q]),{pinnedCurrency:et,rate:en}=(0,E.x)(j),er=(0,i.useMemo)(()=>{if(!P||!U||G-z<=0)return[];let e=m({gouging:U}),t=function(e){let{exchangeRate:t,maxStoragePriceTBMonth:n,maxDownloadPriceTB:r,maxUploadPriceTB:i}=e;if(t)return{maxStoragePriceTBMonthPinned:(0,o.C4)(n,t),maxDownloadPriceTBPinned:(0,o.C4)(r,t),maxUploadPriceTBPinned:(0,o.C4)(i,t)}}({exchangeRate:en,maxStoragePriceTBMonth:e.maxStoragePriceTBMonth,maxDownloadPriceTB:e.maxDownloadPriceTB,maxUploadPriceTB:e.maxUploadPriceTB}),n={...e,...t},r=[];return Object.entries(n).forEach(e=>{let[t,n]=e;if(!ee(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",s={key:t,hrefId:$[t],title:q[t],currentValue:n,targetValue:r,direction:a,currentLabel:"",targetLabel:""};if("siacoin"===W[t].type){let e=e=>{var n;return"".concat((0,o.Vz)((0,o.qN)(e),{fixed:1})).concat((null===(n=W[t].units)||void 0===n?void 0:n.replace("SC/","/"))||"")};s.currentLabel=e(n),s.targetLabel=e(r)}if("number"===W[t].type){let e=e=>"".concat((0,o.yF)(e)," ").concat(W[t].units);s.currentLabel=e(n),s.targetLabel=e(r)}if("fiat"===W[t].type){let e=v.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(W[t].units);s.currentLabel=a(n),s.targetLabel=a(r)}return s}({key:t,currentValue:i,targetValue:n,currencyId:et});a&&r.push(a)}),r},[U,P,M,ee,et,z,G,en]);return{hostMargin50:.5,hostMargin10:.1,hostTarget50:T,hostTarget10:N,usableHostsCurrent:z,userContractCountTarget:A,usableHostsAfterRecommendation:G,hasDataToEvaluate:S,needsRecommendations:F,foundRecommendation:!!er.length,recommendations:er,recommendationMargin:I?"50%":B?"10%":L?"0%":"N/A"}}({form:n,resources:t}),S=(0,y.d_)(),O=(0,i.useRef)({configViewMode:j});return(0,i.useEffect)(()=>{O.current.configViewMode=j},[j]),{form:n,fields:(0,i.useMemo)(()=>{let e=S.data?p(S.data.network):void 0,t=C.recommendations.reduce((e,t)=>({...e,[t.key]:t}),{});return I({validationContext:O.current,configViewMode:j,advancedDefaults:e,recommendations:t})},[j,S.data,C.recommendations]),evaluation:C,maxStoragePriceTBMonth:r,maxDownloadPriceTB:s,maxUploadPriceTB:l,storageTB:u,downloadTBMonth:d,uploadTBMonth:f,minShards:h,totalShards:g,redundancyMultiplier:b,configViewMode:j,setConfigViewMode:_}}({resources:l}),S=(0,i.useMemo)(()=>{let e=x(l);if(e)return g({autopilot:e.autopilot.data,gouging:e.gouging.data,pinned:e.pinned.data,upload:e.upload.data})},[l]),O=(0,i.useMemo)(()=>(function(e){let{gouging:t,pinned:n,upload:r}=e;return!!(t.error||n.error||r.error)})(l),[l]),M=(0,i.useCallback)(async()=>{let i=await e.mutate(),o=await t.mutate(),l=await n.mutate(),c=await r.mutate(),d=await s.mutate();if(!i||!o||!l||!d||!c){(0,a.OHV)({title:"Error fetching settings"});return}u.reset(g({autopilot:o,gouging:l,pinned:c,upload:d}))},[u,e,t,n,r,s]);(0,a.u$d)({form:u,remoteValues:S}),(0,a.Z4p)({form:u,remoteValues:S});let{changeCount:P}=(0,a.mYE)({form:u}),A=function(e){let{resources:t,revalidateAndResetForm:n}=e,r=(0,y.Bl)(),o=(0,y.oe)(),s=(0,y.oX)(),l=(0,y.Vp)(),u=(0,y.Cl)(),c=(0,y.d_)(),d=(0,v.Tu)();return(0,i.useCallback)(async e=>{let i=x(t);if(!i||!c.data)return;let{payloads:f}=w({resources:i,renterdState:c.data,values:e}),h=[o.put({payload:f.autopilot}),s.put({payload:f.gouging}),l.put({payload:f.pinned}),u.put({payload:f.upload})],p=(await Promise.all(h)).find(e=>e.error);if(p){(0,a.OHV)({title:"Error updating configuration",body:p.error});return}r.post({payload:{forceScan:!0}}),(0,a.OPV)({title:"Configuration has been saved"}),(async()=>{await (0,v.gw)(5e3),d(e=>e.startsWith(b.N8))})(),await n()},[t,c.data,o,s,l,u,n,r,d])}({resources:l,revalidateAndResetForm:M}),T=(0,a.WsO)(j),N=(0,i.useMemo)(()=>u.handleSubmit(A,T),[u,A,T]),R=(0,i.useRef)(null),D=(0,i.useCallback)(async e=>{R.current&&(0,a.S5N)(R.current,e)},[]);return{onSubmit:N,revalidateAndResetForm:M,form:u,fields:j,changeCount:P,redundancyMultiplier:h,storageTB:d,configViewMode:_,setConfigViewMode:C,remoteError:O,configRef:R,takeScreenshot:D,evaluation:f}}();return(0,r.jsx)(Y.Provider,{value:n,children:t})}},75346:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(60381),i=n(2784),a=n(6459);function o(e){let{form:t}=e,n=t.watch("shouldPinMaxStoragePrice"),o=t.watch("shouldPinMaxDownloadPrice"),s=t.watch("shouldPinMaxUploadPrice"),l=t.watch("maxStoragePriceTBMonth"),u=t.watch("maxStoragePriceTBMonthPinned"),c=t.watch("maxDownloadPriceTB"),d=t.watch("maxDownloadPriceTBPinned"),f=t.watch("maxUploadPriceTB"),h=t.watch("maxUploadPriceTBPinned"),{rate:p}=(0,a.x)(t),m=n||o||s;return(0,i.useMemo)(()=>{if((!m||p)&&(!n||u)&&(!o||d)&&(!s||h))return{maxStoragePriceTBMonth:n&&u&&p?(0,r.gP)(u,p):l,maxDownloadPriceTB:o&&d&&p?(0,r.gP)(d,p):c,maxUploadPriceTB:s&&h&&p?(0,r.gP)(h,p):f}},[m,p,n,u,o,d,s,h,l,c,f])}},6459:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(463);function i(e){let t=e.watch("pinnedCurrency"),{rate:n}=(0,r.J)({currency:t||void 0});return{rate:n,pinnedCurrency:t}}},5880:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(2784),i=n(60381);function a(e){let{minShards:t,totalShards:n}=e;return(0,r.useMemo)(()=>(0,i.aU)(t,n),[t,n])}},74282:function(e,t,n){"use strict";n.d(t,{x:function(){return _},G:function(){return E}});var r=n(52322),i=n(70150),a=n(91426),o=n(2784),s=n(46850),l=n(28420),u=n(60381),c=n(58283),d=n(6391),f=n.n(d);let h=[{id:"actions",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,r.jsx)(i.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},render:e=>{let{data:{id:t,hostKey:n}}=e;return(0,r.jsx)(c.F,{id:t,hostKey:n})}},{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)(l.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{testId:"renewedFrom",color:"subtle",size:"10",type:"contract",value:(0,i.I13)(a),siascanUrl:o,label:"contract ID"})]})})]})}},{id:"usability",label:"usability",contentClassName:"w-[120px]",category:"general",render:e=>{let{data:{usability:t}}=e,n="",a="",o=null,s="green";if("good"===t)n="good",a="This contract is usable and good for renewal.",o=(0,r.jsx)(l.Y3p,{className:"scale-75"}),s="green";else{if("bad"!==t)return null;n="bad",a="This contract is unusable and will not be renewed.",o=(0,r.jsx)(l.MKy,{className:"scale-75"}),s="red"}return(0,r.jsx)(i.ua7,{content:a,children:(0,r.jsxs)(i.Cts,{variant:s,interactive:!1,size:"small",className:"flex gap-px items-center pl-px",children:[o,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,{size:"12",className:"flex-1",weight:"medium",children:"pending"}),(0,r.jsx)(i.xvT,{size:"12",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,{size:"12",className:"flex-1",weight:"medium",children:"active"}),(0,r.jsx)(i.xvT,{size:"12",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,{size:"12",className:"flex-1",weight:"medium",children:"complete"}),(0,r.jsx)(i.xvT,{size:"12",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,{size:"12",className:"flex-1",weight:"medium",children:"failed"}),(0,r.jsx)(i.xvT,{size:"12",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:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:a,proofWindowHeightEnd:o,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,u.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,u.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,u.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,u.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},context:{isFetchingPrunableSizeAll:o}}=e,s=n||o;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)(l.ljb,{})}):(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(p,{value:new(f())(a),tip:"The amount of data that can be pruned from this contract"}),(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)(l.Wet,{})})]})},summary:e=>{let{context:t}=e;return t.hasFetchedAllPrunableSize?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[t.filteredStats.prunableSizeTotal&&(0,r.jsx)(p,{value:t.filteredStats.prunableSizeTotal,tip:"The amount of data that can be pruned from contracts in the filtered set of active contracts"}),(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)(l.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)(l.ljb,{})})}},{id:"initialRenterFunds",label:"initial renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{initialRenterFunds:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})},summary:e=>{let{context:{filteredStats:t}}=e;return t.initialRenterFundsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.initialRenterFundsTotal.negated(),tooltip:"Total initial renter funds across the filtered set of active contracts"}):null}},{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 t.spendingUploadsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingUploadsTotal.negated(),tooltip:"Uploads spending across the filtered set of active contracts"}):null}},{id:"spendingDeletions",label:"deletions spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDeletions:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})},summary:e=>{let{context:{filteredStats:t}}=e;return t.spendingDeletionsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingDeletionsTotal.negated(),tooltip:"Deletions spending across the filtered set of active contracts"}):null}},{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 t.spendingFundAccountTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingFundAccountTotal.negated(),tooltip:"Fund account spending across the filtered set of active contracts"}):null}},{id:"spendingSectorRoots",label:"sector roots spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingSectorRoots:t}}=e;return(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.negated()})},summary:e=>{let{context:{filteredStats:t}}=e;return t.spendingSectorRootsTotal?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t.spendingSectorRootsTotal.negated(),tooltip:"Sector roots spending across the filtered set of active contracts"}):null}}];function p(e){let{value:t,tip:n}=e;return(0,r.jsx)(i.ua7,{content:n,children:(0,r.jsxs)("div",{className:"flex items-center gap-0.5","aria-label":"prunable size",children:[(0,r.jsx)(i.m2c,{size:"12",value:t,format:e=>(0,u.vW)(e),variant:"value"}),(0,r.jsx)(l.jBN,{className:"scale-75"})]})})}var m=n(16211),g=n(55699);function v(e){let t=(0,u.sW)(5);return Math.round(e/t)*t}function y(e){let{start:t,disabled:n,contractId:s}=e,l=v(t),c=(0,u.Nr)(1),d=(0,o.useMemo)(()=>Math.max(Math.round((v(new Date().getTime())-l)/c),1),[l,c]),h=(0,o.useMemo)(()=>{let e={start:new Date(l||0).toISOString(),interval:c,n:d};return s&&(e.contractid=s),e},[l,c,d,s]),p=(0,a.Yy)({disabled:n,params:h});return{contractMetrics:(0,o.useMemo)(()=>{var e;let t=(0,i.Y_Z)(null===(e=p.data)||void 0===e?void 0:e.map(e=>({uploadSpending:Number(e.uploadSpending),listSpending:Number(e.listSpending),deleteSpending:Number(e.deleteSpending),fundAccountSpending:Number(e.fundAccountSpending),remainingCollateral:Number(e.remainingCollateral),remainingFunds:Number(e.remainingFunds),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,i.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],enabledTip:["remainingFunds","remainingCollateral","fundAccountSpending","uploadSpending","listSpending","deleteSpending"],categories:["funding","spending"],data:{remainingFunds:{label:"remaining funds",category:"funding",color:i.O9T.emerald[600]},remainingCollateral:{label:"remaining collateral",category:"funding",pattern:!0,color:i.O9T.emerald[600]},fundAccountSpending:{label:"fund account",category:"spending",color:i.O9T.red[600]},uploadSpending:{label:"upload",category:"spending",color:i.O9T.red[600]},listSpending:{label:"list",category:"spending",color:i.O9T.red[600]},deleteSpending:{label:"delete",category:"spending",color:i.O9T.red[600]}},formatComponent:function(e){let{value:t}=e;return(0,r.jsx)(i.ho9,{variant:"value",value:new(f())(t)})},formatTimestamp:c===(0,u.Nr)(1)?(0,i.kOJ)("daily"):void 0,formatTickY:e=>(0,u.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:"barstack",curveType:"linear",stackOffset:"none"},isLoading:p.isValidating&&!p.data}},[p.data,p.isValidating,c])}}var b=n(99634),x=n(31405),w=n(28245),j=n(463);let k=(0,o.createContext)({}),E=()=>(0,o.useContext)(k);function _(e){let{children:t}=e,n=function(){let[e,t]=(0,o.useState)("list"),[n,r]=(0,o.useState)("spending"),{limit:l,offset:c}=(0,i.It_)(50),d=(0,a.GP)({config:{swr:{refreshInterval:b.h}}}),p=(0,m.n)(),v=p.isSynced?p.nodeBlockHeight:p.estimatedBlockHeight,{dataset:k,isFetchingPrunableSizeAll:E,isFetchingPrunableSizeById:_,fetchPrunableSize:C,fetchPrunableSizeAll:S,hasFetchedAllPrunableSize:O}=function(){let e=(0,a.GP)({config:{swr:{refreshInterval:b.h}}}),t=(0,x.JL)(),n=(0,o.useMemo)(()=>{var e;return(null===(e=t.data)||void 0===e?void 0:e.hosts)||[]},[t.data]),r=(0,m.n)(),s=r.isSynced?r.nodeBlockHeight:r.estimatedBlockHeight,l=(0,o.useMemo)(()=>{let t=(0,j.$S)(e.data);if(t)return t.map(e=>{var t;let r="0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,i=(0,u.jr)(s,e.startHeight),a=e.windowStart,o=(0,u.jr)(s,a);return{id:e.id,state:e.state,hostKey:e.hostKey,location:null===(t=n.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:i,usability:e.usability,startTime:i,endTime:o,contractHeightStart:e.startHeight,contractHeightEnd:a,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:r,renewedFrom:e.renewedFrom,initialRenterFunds:new(f())(e.initialRenterFunds),spendingUploads:new(f())(e.spending.uploads),spendingDeletions:new(f())(e.spending.deletions),spendingSectorRoots:new(f())(e.spending.sectorRoots),spendingFundAccount:new(f())(e.spending.fundAccount),size:new(f())(e.size),onClick:()=>null,isSelected:!1}})||[]},[e,n,s]),{prunableSizes:c,isFetchingPrunableSizeAll:d,isFetchingPrunableSizeById:h,fetchPrunableSize:p,fetchPrunableSizeAll:g}=function(){let{bus:e}=(0,w.q)(),[t,n]=(0,o.useState)({}),[r,a]=(0,o.useState)({}),[s,l]=(0,o.useState)(!1),u=(0,o.useCallback)(async()=>{try{l(!0);let t=await (null==e?void 0:e.contractsPrunable());n(e=>{var n;return{...e,...null==t?void 0: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{l(!1)}},[e]);return{prunableSizes:t,isFetchingPrunableSizeAll:s,isFetchingPrunableSizeById:r,fetchPrunableSize:(0,o.useCallback)(async t=>{try{a(e=>({...e,[t]:!0}));let r=await (null==e?void 0:e.contractSize({params:{id:t}}));if(!r)return;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}}(),v=(0,o.useMemo)(()=>(null==l?void 0:l.map(e=>{var t,n;return{...e,hasFetchedPrunableSize:(null===(t=c[e.id])||void 0===t?void 0:t.prunable)!==void 0,prunableSize:(null===(n=c[e.id])||void 0===n?void 0:n.prunable)!==void 0?new(f())(c[e.id].prunable):void 0,isFetchingPrunableSize:h[e.id],fetchPrunableSize:()=>p(e.id)}}))||[],[l,c,p,h]),y=(0,o.useMemo)(()=>!!(null==v?void 0:v.every(e=>e.hasFetchedPrunableSize)),[v]);return{dataset:v,isFetchingPrunableSizeAll:d,isFetchingPrunableSizeById:h,fetchPrunableSize:p,fetchPrunableSizeAll:g,hasFetchedAllPrunableSize:y}}(),{filters:M,setFilter:P,removeFilter:A,removeLastFilter:T,resetFilters:N}=(0,i.Wdu)(),{configurableColumns:R,visibleColumnIds:D,visibleColumns:L,sortableColumns:z,toggleColumnVisibility:F,setColumnsVisible:Z,setColumnsHidden:I,toggleSort:V,setSortDirection:B,setSortField:U,sortField:H,sortDirection:W,resetDefaultColumnVisibility:$}=(0,i.oy6)("renterd/v0/contracts",{columns:h,columnsDefaultVisible:s.gd,sortOptions:s.Fo,defaultSortField:s.nw}),{datasetFiltered:q,datasetPage:K}=(0,i._4u)({dataset:k,filters:M,sortField:H,sortDirection:W,offset:c,limit:l}),{range:Y}=(0,o.useMemo)(()=>(0,i.EJC)(v,K||[]),[v,K]),G=(0,g.B)(),X=function(e){let{datasetFiltered:t}=e,n=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.size),new(f())(0))},[t]),r=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>t.prunableSize?e.plus(t.prunableSize):e,new(f())(0))},[t]),i=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.initialRenterFunds),new(f())(0))},[t]),a=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingUploads),new(f())(0))},[t]),s=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingDeletions),new(f())(0))},[t]),l=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingFundAccount),new(f())(0))},[t]),u=(0,o.useMemo)(()=>{if(t)return t.reduce((e,t)=>e.plus(t.spendingSectorRoots),new(f())(0))},[t]);return(0,o.useMemo)(()=>({sizeTotal:n,prunableSizeTotal:r,initialRenterFundsTotal:i,spendingUploadsTotal:a,spendingDeletionsTotal:s,spendingFundAccountTotal:l,spendingSectorRootsTotal:u}),[n,r,i,a,s,l,u])}({datasetFiltered:q}),J=(0,i.A7R)(K),Q=(0,o.useMemo)(()=>{if(K)return K.map(e=>({...e,onClick:t=>J.onSelect(e.id,t),isSelected:!!J.selection[e.id]}))},[K,J]),ee=(0,i.LNN)({datasetPage:Q,isValidating:d.isValidating,error:d.error,offset:c,filters:M}),et=(0,o.useMemo)(()=>({currentHeight:p.estimatedBlockHeight,contractsTimeRange:Y,siascanUrl:G,hasFetchedAllPrunableSize:O,isFetchingPrunableSizeAll:E,fetchPrunableSizeAll:S,filteredStats:X,multiSelect:J}),[p.estimatedBlockHeight,Y,G,O,E,S,X,J]),en=(0,o.useMemo)(()=>{if(1===J.selectedIds.length){let e=J.selectedIds[0];return null==k?void 0:k.find(t=>t.id===e)}},[k,J.selectedIds]),{contractMetrics:er}=y({start:new Date().getTime()-(0,u.Nr)(30)}),{contractMetrics:ei}=y({contractId:null==en?void 0:en.id,start:(null==en?void 0:en.startTime)||0,disabled:!en});return{datasetState:ee,limit:l,offset:c,isLoading:d.isLoading,error:d.error,datasetTotal:(null==k?void 0:k.length)||0,datasetFilteredTotal:(null==q?void 0:q.length)||0,datasetPageTotal:(null==Q?void 0:Q.length)||0,visibleColumns:L,dataset:k,cellContext:et,datasetPage:Q,configurableColumns:R,visibleColumnIds:D,sortableColumns:z,toggleColumnVisibility:F,setColumnsVisible:Z,setColumnsHidden:I,toggleSort:V,setSortDirection:B,setSortField:U,sortField:H,filters:M,setFilter:P,removeFilter:A,removeLastFilter:T,resetFilters:N,sortDirection:W,resetDefaultColumnVisibility:$,viewMode:e,setViewMode:t,graphMode:n,setGraphMode:r,selectedContract:en,allContractsSpendingMetrics:er,selectedContractSpendingMetrics:ei,isFetchingPrunableSizeAll:E,isFetchingPrunableSizeById:_,fetchPrunableSize:C,fetchPrunableSizeAll:S,multiSelect:J}}();return(0,r.jsx)(k.Provider,{value:n,children:t})}},46850:function(e,t,n){"use strict";n.d(t,{Fo:function(){return a},gd:function(){return r},nw:function(){return i}});let r=["contractId","usability","hostKey","state","timeline","size","prunableSize","initialRenterFunds","spendingUploads","spendingDeletions","spendingFundAccount","spendingSectorRoots"],i="startTime",a=[{id:"contractId",label:"contract ID",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:"initialRenterFunds",label:"initial renter funds",category:"financial"},{id:"spendingUploads",label:"uploads spending",category:"financial"},{id:"spendingDeletions",label:"deletions spending",category:"financial"},{id:"spendingFundAccount",label:"fund account spending",category:"financial"},{id:"spendingSectorRoots",label:"sector roots spending",category:"financial"}]},82285:function(e,t,n){"use strict";n.d(t,{Tu:function(){return eB},xQ:function(){return eU},Rh:function(){return eV}});var r=n(52322),i=n(2784),a=n(70150),o=n(463),s=n(4300),l=n(82851),u=n(65304),c=n(5632),d=n(7513),f=n(91426);let h={namespace:"wallet",label:"Wallet"};function p(e){var t;let{currentPage:n,parentPage:i,pushPage:o}=e,{openDialog:l,closeDialog:u}=eV(),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(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,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}=eV(),{setTheme:s}=(0,m.F)(),{settings:l,setExternalDataSettings: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:!l.siaCentral}),a()},children:(l.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:()=>{s("system"),a()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{s("dark"),a()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{s("light"),a()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:g,onSelect:()=>{i("bugReport")},children:"Generate a bug report"}),(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 b(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:a,closeDialog:o}=eV(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{a("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),o()},children:"View transaction pool"})]})}var x=n(90040);let w={namespace:"configuration",label:"Configuration"};function j(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{configViewMode:o}=(0,x.ZR)(),{closeDialog:l}=eV();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:w,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:w,onSelect:()=>{i(w)},children:w.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.index),l()},children:"Open configuration"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.pricing),l()},children:"Configure pricing"}),"advanced"===o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.wallet),l()},children:"Configure wallet"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:w,onSelect:()=>{a.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var k=n(33889);let E={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(E)},children:E.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:E,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:E,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(k.F,{parentPage:E,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}let C={namespace:"alerts",label:"Alerts"};function S(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o}=eV();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(C)},children:C.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:C,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:C,onSelect:()=>{a.push(s._.alerts.index),o()},children:"View alerts"})})]})}var O=n(74282),M=n(50454);let P={namespace:"hosts",label:"Hosts"};function A(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:a,afterSelect:o}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eV();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:()=>{l.push(s._.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)(M.L,{parentPage:P,currentPage:t,beforeSelect:a,afterSelect:o,pushPage:i})]})}var T=n(25913),N=n(28420);function R(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)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.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 D=n(8068);let L={namespace:"files/search/all",label:"Search all files",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function z(e){return{namespace:"files/search/bucket",label:"Search files in current bucket",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",tag:e,empty:R}}function F(e){var t,n;let{debouncedSearch:o,search:s,currentPage:l,beforeSelect:u,afterSelect:c,mode:h}=e,{activeBucketName:p,navigateToModeSpecificFiltering:m}=(0,D.b)(),g="bucket"===h&&p?z(p):L,v=(null==l?void 0:l.namespace)===g.namespace,y="global"===h||"bucket"===h&&p,b=(0,i.useMemo)(()=>{let e={prefix:"",limit:10,delimiter:"",substring:o};return"bucket"===h&&p&&(e.bucket=p),e},[h,p,o]),x=(0,f.F_)({disabled:!v||!y,params:b,config:{swr:{keepPreviousData:!0}}});return v&&(null===(t=x.data)||void 0===t?void 0:t.objects)?(0,r.jsx)(d.fu,{currentPage:l,commandPage:g,children:null===(n=x.data)||void 0===n?void 0:n.objects.map(e=>{let{key:t,bucket:n}=e,i=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()),s=o+a.length-1,l=0,u=0;return i.split("/").map(e=>{if(l>=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,l+=e.length+1,"..."):(u+=e.length,Z(e))}).reverse().join("/")}(t,s,0),{startIndex:o,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}}(i,s);return(0,r.jsx)(d.WD,{commandPage:g,currentPage:l,onSelect:()=>{null==u||u(),m(n+t),null==c||c()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 w-full",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,T.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(a.xvT,{className:"flex items-center flex-1 overflow-hidden",children:[(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:i.slice(0,o)}),(0,r.jsx)(a.xvT,{color:"accent",ellipsis:!0,children:i.slice(o,f)}),(0,r.jsx)(a.xvT,{color:"verySubtle",ellipsis:!0,children:i.slice(f)})]}),"global"===h?(0,r.jsx)(a.zxk,{variant:"inactive",state:"waiting",size:"small",tabIndex:-1,children:n}):null]})},t)})}):null}function Z(e){return e.split("").reverse().join("")}let I={namespace:"files",label:"Files"};function V(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:a,pushPage:o,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eV(),{activeBucket:p}=(0,D.b)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:a,commandPage:a,onSelect:()=>{o(I)},children:I.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:I,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:I,onSelect:()=>{f.pathname.startsWith(s._.buckets.index)||f.push(s._.buckets.index),h(),null==u||u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:I,onSelect:()=>{o(L),null==u||u()},children:"Search all files"}),p?(0,r.jsx)(d.WD,{currentPage:i,commandPage:I,onSelect:()=>{o(z(p.name)),null==u||u()},children:"Search files in bucket"}):null]}),(0,r.jsx)(F,{mode:"global",debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u}),(0,r.jsx)(F,{mode:"bucket",debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var B=n(46741),U=n(94225);function H(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)(N.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 $(e){let{currentPage:t,parentPage:n,pushPage:i}=e,a=(0,c.useRouter)(),{closeDialog:o,openDialog:l}=eV();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(s._.keys.index),o()},children:"View keys"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:W,onSelect:()=>{a.push(s._.keys.index),l("keysCreate")},children:"Create new S3 authentication keypair"})]})]})}function q(e){let{panel:t}=e,{resetFilters:n}=(0,O.G)(),{resetFilters:o}=(0,B.l)(),{closeDialog:d}=eV(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[g]=(0,U.Nr)(h,500),[y,x]=(0,i.useState)([]),w=y[y.length-1],k=0===y.length,E=(0,i.useCallback)(e=>{x(t=>[...t,e])},[x]),C=(0,i.useCallback)(()=>{d()},[d]),M=(0,i.useCallback)(()=>{m("")},[m]),P=(null==w?void 0:w.empty)||H;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,a.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),x(e=>e.slice(0,-1)))},children:[!!w&&(0,r.jsxs)(a.__J,{className:"px-2 flex justify-between items-center",children:[w.label,w.tag?(0,r.jsx)(a.zxk,{variant:"inactive",state:"waiting",tabIndex:-1,size:"small",children:w.tag}):null]}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,a.cEb)({variant:"ghost",focus:"none"}),name:"cmdk-input",placeholder:(null==w?void 0:w.prompt)||(k?"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)(P,{search:h,debouncedSearch:g})}),(0,r.jsx)(v,{currentPage:w,pushPage:E}),(0,r.jsx)(V,{debouncedSearch:g,search:h,currentPage:w,pushPage:E,beforeSelect:()=>{C()},afterSelect:()=>{M()}}),(0,r.jsx)(p,{currentPage:w,pushPage:E}),(0,r.jsx)(_,{currentPage:w,pushPage:E,beforeSelect:()=>{C(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),M()}}),(0,r.jsx)(A,{currentPage:w,pushPage:E,beforeSelect:()=>{C(),o()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),M()}}),(0,r.jsx)($,{currentPage:w,pushPage:E,beforeSelect:()=>{C()},afterSelect:()=>{f.pathname.startsWith(s._.keys.index)||f.push(s._.keys.index),M()}}),(0,r.jsx)(S,{currentPage:w,pushPage:E,beforeSelect:()=>{C(),n()},afterSelect:()=>{f.pathname.startsWith(s._.alerts.index)||f.push(s._.alerts.index),M()}}),(0,r.jsx)(j,{currentPage:w,pushPage:E}),(0,r.jsx)(b,{currentPage:w,pushPage:E})]})]})}function K(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlockedAndAuthedRoute:u}=(0,o.Hv)(),{isConnected:c}=(0,a.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.VqE,{open:t,title:"Command palette",titleVisuallyHidden:!0,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(q,{})})})}var Y=n(92683),G=n(24511);let X={name:""},J=G.Ry().shape({name:G.Z_().required("Required")});function Q(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:o}=(0,D.b)(),s=(0,f.ZM)(),l=(0,Y.TA)({initialValues:X,validationSchema:J,onSubmit:async(e,t)=>{let n=await s.put({params:(0,T.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||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(a.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(a.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var ee=n(12295);let et={publicKey:""},en=G.Ry().shape({publicKey:G.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 s=o.values.publicKey,l=(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)(N.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:l.length?(0,r.jsx)(a.xrM,{children:(0,r.jsx)("div",{className:"p-2","data-testid":"allowlistPublicKeys",children:(0,r.jsx)(a.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,a.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(a.xvT,{color:"subtle",children:(0,r.jsx)(N.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)(N.TtX,{})}),(0,r.jsx)(a.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var ei=n(9408);let ea={address:""},eo=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],es=G.Ry().shape({address:G.Z_().required("Required")});function el(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,ei.l)(),n=(0,Y.TA)({initialValues:ea,validationSchema:es,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,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),l=(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})),[e.data]);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:[!!l.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:"}),l.map((e,t)=>{let{address:i}=e;return(0,r.jsxs)(a.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,t!==l.length-1&&(0,r.jsx)(a.xvT,{children:","})]},i)})]}),(0,r.jsx)(a.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)("div",{"data-testid":"blocklistAddresses",children:(0,r.jsx)(a.hmz,{options:s.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)(N.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)(N.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,{"aria-label":"view blocklist",value:"blocklist",children:"Block"}),(0,r.jsx)(a.SPt,{"aria-label":"view allowlist",value:"allowlist",children:"Allow"})]}),(0,r.jsx)(a.nUL,{value:"blocklist",children:(0,r.jsx)(el,{})}),(0,r.jsx)(a.nUL,{value:"allowlist",children:(0,r.jsx)(er,{})})]})]})})}var ec=n(57220),ed=n(20673),ef=n(76221);function eh(e){let{panel:t}=e,{closeDialog:n}=eV(),o=(0,ef.xj)(),c=(0,ef.jD)(),[d,f]=(0,i.useState)(""),[h]=(0,U.Nr)(d,500),{activeBucket:p}=(0,D.b)(),m=(0,i.useCallback)(()=>{n()},[n]),g=z(null==p?void 0:p.name);return(0,r.jsxs)(u.mY,{label:g.label,shouldFilter:!1,className:(0,l.cx)(t&&(0,a.z$)()),children:[(0,r.jsxs)(a.__J,{className:"px-2 flex justify-between items-center",children:["File search in current bucket",!!p&&(0,r.jsx)(a.zxk,{variant:"inactive",state:"waiting",tabIndex:-1,size:"small",children:p.name})]}),(0,r.jsx)(u.mY.Input,{"aria-label":"search files",name:"search files",value:d,onValueChange:f,className:(0,a.cEb)({variant:"ghost",focus:"none"}),placeholder:g.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)(R,{search:d,debouncedSearch:h})}),(0,r.jsx)(F,{mode:"bucket",debouncedSearch:h,search:d,currentPage:g,beforeSelect:()=>{m()},afterSelect:()=>{c.startsWith(s._.buckets.index)||o.push(s._.buckets.index)}})]})})]})}function ep(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)(eh,{})})}var em=n(6391),eg=n.n(em);function ev(){let{dialog:e,onOpenChange:t}=eV(),n=(0,f.X2)(),o=(0,f.Q4)(),s=(0,i.useMemo)(()=>o.data?new(eg())(o.data).times(1200):new(eg())(0),[o.data]),l=(0,f.cj)(),u=(0,i.useCallback)(async e=>{let{address:t,hastings:n,includeFee:r}=e,i=await l.post({payload:{address:t,amount:n.toString(),subtractMinerFee:r}});return i.error?{error:i.error}:{transactionId:i.data}},[l]);return(0,r.jsx)(a.weF,{balance:n.data?new(eg())(n.data.spendable):void 0,send:u,fee:s,open:"sendSiacoin"===e,onOpenChange:t})}var ey=n(88022);function eb(){let{id:e,dialog:t,onOpenChange:n}=eV(),{datasetPage:o}=(0,ey.n)(),s=(0,i.useMemo)(()=>null==o?void 0:o.find(t=>t.id===e),[o,e]);return(0,r.jsx)(a.mPE,{id:e,transaction:s,open:"transactionDetails"===t,onOpenChange:n})}var ex=n(40608),ew=n(63955);let ej={name:""};function ek(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s}=eV(),l=(0,f.sg)(),u=(0,ew.cI)({mode:"all",defaultValues:ej}),{handleOpenChange:c,closeAndReset:d}=(0,a.t0Y)({form:u,onOpenChange:o,defaultValues:ej}),h=(0,i.useCallback)(async e=>{let t=await l.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())},[l,d]),p=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{equals:e=>e===s||"bucket name does not match"}}}}),[s]),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:s})}),(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 eE={visibility:"public"};function e_(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s,closeDialog:l}=eV(),u=(0,f.D5)({disabled:!n,params:{name:s},config:{swr:{revalidateOnFocus:!1}}}),c=(0,f.ol)(),d=(0,ew.cI)({mode:"all",defaultValues:eE});(0,i.useEffect)(()=>{var e,t;d.reset({visibility:(null===(t=u.data)||void 0===t?void 0:null===(e=t.policy)||void 0===e?void 0:e.publicReadAccess)?"public":"private"})},[d,u.data]);let h=(0,i.useCallback)(async e=>{let t=await c.put({params:{name:s},payload:{policy:{publicReadAccess:"public"===e.visibility}}});t.error?(0,a.OHV)({title:"Error updating bucket policy",body:t.error}):((0,a.OPV)({title:"Bucket policy has been updated"}),d.reset(),l())},[d,s,c,l]),p=(0,i.useMemo)(()=>({visibility:{type:"text",title:"Read Access",placeholder:s,validation:{required:"required"},options:[{label:"Public",value:"public"},{label:"Private",value:"private"}]}}),[s]),m=(0,a.WsO)(p);return(0,r.jsx)(a.VqE,{title:"Change Policy: ".concat(s),trigger:t,open:n,onOpenChange:e=>{e||d.reset(eE),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 eC={name:""};function eS(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eV(),l=(0,f.oV)(),u=(0,ew.cI)({mode:"all",defaultValues:eC}),c=(0,i.useCallback)(async e=>{let t=await l.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(),s())},[u,l,s]),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",description:"A bucket is an isolated collection of files.",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eC),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.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(a.ZqQ,{form:u,children:"Create bucket"})]})})}var eO=n(85556),eM=n(3031),eP=n(40824);function eA(e){let{trigger:t,open:n,onOpenChange:o}=e,{id:s}=eV(),{refresh:l}=(0,eM.J)(),{refresh:u}=(0,eP.o)(),c=(0,i.useMemo)(()=>{let e=(0,T.vt)(s||"");return e.endsWith("/")?e.slice(0,-1):e},[s]),d=(0,i.useMemo)(()=>({name:c}),[c]),h=(0,f.TD)(),p=(0,ew.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=>{if(!s)return;let{bucket:t,to:n,from:r,mode:i}=(0,eO.Ep)(s,e.name),o=await h.post({payload:{bucket:t,to:n,from:r,mode:i,force:!1}});o.error?(0,a.OHV)({title:(0,T.IQ)(s)?"Error renaming directory":"Error renaming file",body:o.error}):(l(),u(),g(),(0,a.OPV)({title:(0,T.IQ)(s)?"Directory renamed":"File renamed"}))},[s,l,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]),b=(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,b),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 eT(){return{name:eR(),secret:eD()}}function eN(e){let{trigger:t,open:n,onOpenChange:o}=e,{closeDialog:s}=eV(),l=(0,f.AR)(),u=(0,f._M)(),c=(0,ew.cI)({mode:"all",defaultValues:eT()}),d=(0,i.useCallback)(async e=>{var t;if(!l.data){(0,a.OHV)({title:"Error creating key"});return}let n={...null===(t=l.data)||void 0===t?void 0:t.authentication.v4Keypairs,[e.name]:e.secret},r=await u.put({payload:{...l.data,authentication:{...l.data.authentication,v4Keypairs:n}}});r.error?(0,a.OHV)({title:"Error creating key",body:r.error}):((0,a.OPV)({title:"New key created"}),c.reset(eT()),s())},[c,s,u,l.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)(N.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)(N.Wet,{})}),validation:{required:"required",validate:{exactLength:e=>(null==e?void 0:e.length)===40||"must be exactly 40 characters"}}}}}({regenerateAccessKey:()=>{c.setValue("name",eR())},regenerateSecretKey:()=>{c.setValue("secret",eD())},existingKeys:Object.keys((null===(e=l.data)||void 0===e?void 0:e.authentication.v4Keypairs)||{})})},[l.data,c]),p=(0,a.WsO)(h);return(0,r.jsx)(a.VqE,{title:"Create S3 keypair",description:"Create a new S3 authentication keypair.",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eT()),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.jsx)("div",{className:"flex flex-col gap-4",children:(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 eR(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t="";for(let n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function eD(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="";for(let n=0;n<40;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}var eL=n(1297),ez=n.n(eL),eF=n(46782);function eZ(e){let{trigger:t,open:n,onOpenChange:o}=e,s=(0,i.useMemo)(()=>({contracts:!0,alerts:!0,autopilot:!0,gouging:!0,upload:!0,pinned:!0,openGithub:!0}),[]),l=(0,f.GP)(),u=(0,f.Z7)({params:{limit:1e3}}),c=(0,f.e$)(),d=(0,f.en)(),h=(0,f.NF)(),p=(0,f.E5)(),m=(0,ew.cI)({mode:"all",defaultValues:s}),{handleOpenChange:g}=(0,a.t0Y)({form:m,onOpenChange:o,defaultValues:s,initKey:[name]}),v=(0,i.useCallback)(async e=>{let t=new(ez());e.alerts&&t.file("alerts.json",JSON.stringify(u.data,null,2)),e.contracts&&t.file("contracts.json",JSON.stringify(l.data,null,2)),e.autopilot&&t.file("autopilot.json",JSON.stringify(c.data,null,2)),e.gouging&&t.file("gouging.json",JSON.stringify(d.data,null,2)),e.upload&&t.file("upload.json",JSON.stringify(h.data,null,2)),e.pinned&&t.file("pinned.json",JSON.stringify(p.data,null,2));let n=await t.generateAsync({type:"blob"});(0,eF.saveAs)(n,"renterd-debug-report.zip"),e.openGithub&&window.open("https://github.com/SiaFoundation/renterd/issues/new?template=bug_report.yml","_blank")},[l.data,u.data,c.data,d.data,h.data,p.data]),y=(0,i.useMemo)(()=>({contracts:{type:"boolean",title:"Contracts",validation:{}},alerts:{type:"boolean",title:"Alerts",validation:{}},autopilot:{type:"boolean",title:"Autopilot",validation:{}},gouging:{type:"boolean",title:"Gouging",validation:{}},upload:{type:"boolean",title:"Upload",validation:{}},pinned:{type:"boolean",title:"Pinned",validation:{}},openGithub:{type:"boolean",title:"Open GitHub bug report submission page",validation:{}}}),[]),b=(0,a.WsO)(y),x=m.watch("openGithub");return(0,r.jsx)(a.VqE,{title:"Generate a bug report",descriptionVisuallyHidden:!0,description:"Select which metadata files to include in the generated report.",trigger:t,open:n,onOpenChange:g,contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(v,b),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 pt-4",children:[(0,r.jsx)(a.nvN,{size:"14",children:"Select which metadata files to include in the debug report, generate the report file (ZIP), and attach it to a GitHub bug report."}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.Z0O,{className:"mb-2"}),(0,r.jsx)(a.__J,{size:"14",color:"subtle",children:"General"}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"contracts"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"alerts"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(a.__J,{size:"14",color:"subtle",children:"Configuration"}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"autopilot"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"gouging"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"upload"}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"pinned"})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(a.Z0O,{}),(0,r.jsx)(a.QBj,{size:"small",form:m,fields:y,name:"openGithub"})]}),(0,r.jsxs)(a.ZqQ,{form:m,children:["Generate ",x?"and open":""]})]})})}let eI=(0,i.createContext)({}),eV=()=>(0,i.useContext)(eI);function eB(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,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:a,confirm:o,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eI.Provider,{value:n,children:t})}function eU(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:o,confirm:s,openConfirmDialog:l}=eV(),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)(ev,{}),(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)(eb,{}),(0,r.jsx)(a.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:i}),(0,r.jsx)(eS,{open:"filesCreateBucket"===t,onOpenChange:i}),(0,r.jsx)(ek,{open:"filesDeleteBucket"===t,onOpenChange:i}),(0,r.jsx)(e_,{open:"filesBucketPolicy"===t,onOpenChange:i}),(0,r.jsx)(Q,{open:"filesCreateDirectory"===t,onOpenChange:i}),(0,r.jsx)(ep,{open:"filesSearch"===t,onOpenChange:i}),(0,r.jsx)(eA,{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)(ex.a,{open:"hostsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(ed.C,{open:"contractsFilterPublicKey"===t,onOpenChange:i}),(0,r.jsx)(eN,{open:"keysCreate"===t,onOpenChange:i}),(0,r.jsx)(eZ,{open:"bugReport"===t,onOpenChange:i}),(0,r.jsx)(a.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e&&s?l(s):o()})]})}},3031:function(e,t,n){"use strict";n.d(t,{V:function(){return p},J:function(){return h}});var r=n(52322),i=n(70150),a=n(2784),o=n(91426),s=n(80227),l=n(25913),u=n(8068),c=n(99634),d=n(85556);let f=(0,a.createContext)({}),h=()=>(0,a.useContext)(f);function p(e){let{children:t}=e,n=function(){let{activeDirectory:e,activeBucket:t,setActiveDirectory:n,filters:r,visibleColumns:f,isViewingBuckets:h}=(0,u.b)(),{limit:p,marker:m,nextMarker:g,isMore:v,response:y,refresh:b,dataset:x}=function(){var e,t,n;let{activeBucketName:r,activeDirectoryPath:d,fileNamePrefixFilter:f,sortDirection:h,sortField:p}=(0,u.b)(),{limit:m,marker:g}=(0,i.fGX)(50),v=(0,l.W0)(d),y=(0,a.useMemo)(()=>{let e=v.key;f&&(e+=f.startsWith("/")?f.slice(1):f);let t={prefix:e,bucket:v.bucket,sortby:p,sortdir:h,limit:m,delimiter:"/"};return g&&(t.marker=g),t},[f,v,p,h,g,m]),b=(0,o.F_)({disabled:!r,params:y,config:{swr:{refreshInterval:c.h}}}),x=(0,a.useMemo)(()=>{var e;return{isValidating:b.isValidating,data:null===(e=b.data)||void 0===e?void 0:e.objects}},[b.isValidating,null===(e=b.data)||void 0===e?void 0:e.objects]),w=(0,s.p)({id:"filesDirectory",objects:x});return{limit:m,marker:g,nextMarker:(null===(t=b.data)||void 0===t?void 0:t.nextMarker)||null,isMore:!!(null===(n=b.data)||void 0===n?void 0:n.hasMore),response:b,dataset:w.data,refresh:b.mutate}}(),w=(0,i.A7R)(x);(0,a.useEffect)(()=>{t&&w.deselectAll()},[t]);let j=(0,a.useMemo)(()=>x?e.length>0&&x.length>0?[{bucket:t,id:"..",name:"..",path:"..",key:"..",size:0,type:"directory",onClick:()=>{n(e=>e.slice(0,-1))}},...x]:x:void 0,[x]),{onDragEnd:k,onDragOver:E,onDragCancel:_,onDragMove:C,onDragStart:S,draggingObjects:O,moveSelectedFiles:M,moveSelectedFilesOperationCount:P}=function(e){let{multiSelect:t,dataset:n,activeDirectory:r,setActiveDirectory:s,refresh:u}=e,[c,f]=(0,a.useState)(void 0),[,h]=(0,a.useState)(),p=(0,o.TD)(),m=(0,a.useCallback)(async(e,n)=>{if(e.length){for(let t of(0,d.Fg)(e,n)){let{bucket:e,from:n,to:r,mode:a}=t,o=await p.post({payload:{force:!1,bucket:e,from:n,to:r,mode:a}});o.error&&(0,i.OHV)({title:"Error moving files",body:o.error})}u(),t.deselectAll()}},[u,p,t]),g=(0,a.useMemo)(()=>{let e=(0,d.Di)(r);return(0,d.Fg)(t.selectedIds,e).length},[t.selectedIds,r]),v=(0,a.useCallback)(async()=>{t.selectedIds.length&&m(t.selectedIds,(0,d.Di)(r))},[t.selectedIds,r,m]),y=(0,a.useCallback)(async e=>{c&&m(c.map(e=>e.path),(0,d.Di)(r,e))},[c,r,m]),b=(0,a.useCallback)(e=>{if(!e){h(e=>{e&&clearTimeout(e)});return}let t=setTimeout(()=>{s(()=>e)},500);h(e=>(e&&clearTimeout(e),t))},[h,s]),x=(0,a.useCallback)(e=>{var t,n;if(null===(t=e.collisions)||void 0===t?void 0:t.length){let t=null===(n=e.collisions)||void 0===n?void 0:n[0].id;".."===t?b(r.slice(0,-1)):b((0,l.gD)(t))}else b(void 0)},[b,r]),w=(0,a.useCallback)(e=>{let r=String(e.active.id);if(t.selectedIds.includes(r))f(Object.entries(t.selection).map(e=>{let[,t]=e;return t}));else{let t=null==n?void 0:n.find(t=>t.id===e.active.id);f(t?[t]:void 0)}},[n,f,t]),j=(0,a.useCallback)(e=>{x(e)},[x]),k=(0,a.useCallback)(e=>{x(e)},[x]);return{onDragEnd:(0,a.useCallback)(async e=>{b(void 0),f(void 0),y(e)},[f,b,y]),onDragOver:j,onDragCancel:(0,a.useCallback)(async e=>{b(void 0),f(void 0)},[f,b]),onDragMove:k,onDragStart:w,draggingObjects:c,moveSelectedFiles:v,moveSelectedFilesOperationCount:g}}({dataset:x,activeDirectory:e,setActiveDirectory:n,refresh:b,multiSelect:w}),A=(0,a.useMemo)(()=>{if(j)return j.map(e=>"bucket"===e.type||".."===e.id?e:{...e,isSelected:!!w.selection[e.id],onClick:t=>w.onSelect(e.id,t)})},[j,w]),T=(0,a.useMemo)(()=>{if(A)return A.map(e=>O&&O.find(t=>t.id!==e.id)&&"directory"===e.type?{...e,isDroppable:!0}:{...e,isDraggable:"bucket"!==e.type&&!e.isUploading})},[A,O]),N=(0,i.LNN)({datasetPage:T,isValidating:y.isValidating,error:y.error,marker:m,filters:r}),R=(0,a.useMemo)(()=>({isViewingBuckets:h,multiSelect:w}),[w,h]);return{datasetState:N,visibleColumns:f,multiSelect:w,cellContext:R,refresh:b,limit:p,marker:m,nextMarker:g,isMore:v,datasetPage:T,datasetPageTotal:(null==x?void 0:x.length)||0,onDragStart:S,onDragEnd:k,onDragMove:C,onDragCancel:_,onDragOver:E,draggingObjects:O,moveSelectedFiles:M,moveSelectedFilesOperationCount:P}}();return(0,r.jsx)(f.Provider,{value:n,children:t})}},40824:function(e,t,n){"use strict";n.d(t,{p:function(){return f},o:function(){return d}});var r=n(52322),i=n(70150),a=n(2784),o=n(91426),s=n(80227),l=n(8068),u=n(99634);let c=(0,a.createContext)({}),d=()=>(0,a.useContext)(c);function f(e){let{children:t}=e,n=function(){let{activeBucket:e,sortDirection:t,sortField:n,filters:r,visibleColumns:c,isViewingBuckets:d}=(0,l.b)(),{limit:f,marker:h,nextMarker:p,response:m,isMore:g,refresh:v,dataset:y}=function(e){var t,n;let{sortDirection:r,sortField:c}=e,{activeBucketName:d,fileNamePrefixFilter:f}=(0,l.b)(),{limit:h,marker:p}=(0,i.fGX)(50),m=(0,a.useMemo)(()=>{let e="";f&&(e+=f.startsWith("/")?f.slice(1):f);let t={prefix:e,bucket:d,sortby:c,sortdir:r,limit:h,delimiter:""};return p&&(t.marker=p),t},[f,d,c,r,p,h]),g=(0,o.F_)({disabled:!d,params:m,config:{swr:{refreshInterval:u.h}}}),v=(0,a.useMemo)(()=>{var e;return{isValidating:g.isValidating,data:null===(e=g.data)||void 0===e?void 0:e.objects}},[g.isValidating,g.data]),y=(0,s.p)({id:"filesFlat",objects:v});return{limit:h,marker:p,nextMarker:(null===(t=g.data)||void 0===t?void 0:t.nextMarker)||null,response:g,isMore:!!(null===(n=g.data)||void 0===n?void 0:n.hasMore),dataset:y.data,refresh:g.mutate}}({sortField:n,sortDirection:t}),b=(0,a.useMemo)(()=>y,[y]),x=(0,i.A7R)(y);(0,a.useEffect)(()=>{e&&x.deselectAll()},[e]);let w=(0,a.useMemo)(()=>{if(b)return b.map(e=>({...e,isSelected:!!x.selection[e.id],onClick:t=>x.onSelect(e.id,t)}))},[b,x]),j=(0,i.LNN)({datasetPage:w,isValidating:m.isValidating,error:m.error,marker:h,filters:r}),k=(0,a.useMemo)(()=>({isViewingBuckets:d,multiSelect:x}),[x,d]);return{datasetState:j,multiSelect:x,cellContext:k,refresh:v,limit:f,datasetPage:w,visibleColumns:c,marker:h,nextMarker:p,isMore:g,datasetPageTotal:(null==y?void 0:y.length)||0,sortField:n,filters:r,sortDirection:t}}();return(0,r.jsx)(c.Provider,{value:n,children:t})}},80227:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(78790),i=n(68650),a=n(79381),o=n(74282),s=n(25913),l=n(8068),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,l.b)(),{dataset:b}=(0,o.G)(),x=(0,a.ZP)(n.isValidating||v.isValidating?void 0:[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{key:t,size:n,health:r}=e,i=(0,s.v_)(c.name,t),o=(0,s.vt)(t);a[i]={id:i,path:i,bucket:c,key:t,size:n,health:r,name:o,type:(0,s.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,s.v_)(g,n)+"/";if(a[r])continue;a[r]={id:r,path:r,bucket:c,key:(0,s.kj)(r),size:0,health:0,name: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,s.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,s.YF)(t,""),r=(0,s.kj)(n);a[t]={id:n,path:n,bucket:e,key:r,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)(()=>{x.mutate()},[n.data,h,b,v.data,f]),x}},8068:function(e,t,n){"use strict";n.d(t,{e:function(){return ex},b:function(){return eb}});var r=n(52322),i=n(70150),a=n(76221),o=n(2784),s=n(28420),l=n(60381),u=n(45027),c=n(82285),d=n(91426),f=n(25913);function h(e){let{path:t,size:n}=e,a=function(){let{openConfirmDialog:e}=(0,c.Rh)(),t=(0,d.Lh)();return(0,o.useCallback)((n,a)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,l.vW)(a)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=(0,f.ru)(n),r=(0,f.kj)(n),a=await t.post({payload:{bucket:e,prefix:r}});a.error?(0,i.OHV)({title:"Error deleting directory",body:a.error}):(0,i.OPV)({title:"Deleted directory"})}}),[e,t])}(),{openDialog:u}=(0,c.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{"aria-label":"Directory context menu",size:"none",variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start",onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{u("fileRename",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.dr6,{})}),"Rename directory"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{a(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var p=n(6391),m=n.n(p),g=n(32974),v=n(82851),y=n(78790);function b(e){var t,n,a,o;let{path:s,isUploading:l,type:u,health:c,size:h}=e,p="directory"===u,m=(0,d.wy)({disabled:l||p,params:(0,f.W0)(s),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:v,label:b}=(0,g.D)({health:c,size:h,isDirectory:p});if(m.isValidating)return(0,r.jsx)(x,{displayHealth:v,label:b,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!m.data)return(0,r.jsx)(x,{displayHealth:v,label:b,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let w=(0,y.Z)((null===(t=m.data.slabs)||void 0===t?void 0:t.map(e=>{var t;return{...e.slab,id:"".concat(e.offset).concat(e.length).concat(e.slab.encryptionKey),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)(x,{className:w.length>15?"h-[300px]":"",displayHealth:v,label:b,minShards:null===(n=w.find(e=>e.minShards))||void 0===n?void 0:n.minShards,totalShards:null===(o=w.find(e=>e.shards))||void 0===o?void 0:null===(a=o.shards)||void 0===a?void 0:a.length,children:w.map(e=>{var t;return(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 ",(0,i.$Gg)(e.encryptionKey,4,!1),":"]}),(0,r.jsx)(i.xvT,{size:"12",className:"flex items-center",children:e.isPartialSlab?"".concat(e.contractSetShards,"/").concat(null===(t=e.shards)||void 0===t?void 0:t.length):"partial slab"})]},e.id)})})}function x(e){let{className:t,displayHealth:n,label:a,children:o,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,v.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&&l?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[s," of ",l]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:o})})})]})}function w(e){let{name:t,isUploading:n,type:a,health:o,size:s}=e,l="directory"===a,{displayHealth:u,label:c,color:d,icon:f}=(0,g.D)({health:o,size:s,isDirectory:l}),h="".concat((100*u).toFixed(0),"%");return l?".."===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:d,children:f}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:h})]}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:c}),(0,r.jsx)(i.xvT,{size:"12",children:h})]})})}):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:d,children:f}),(0,r.jsx)(i.xvT,{color:"verySubtle",size:"12",children:h})]}),children:(0,r.jsx)(b,{...e})})}function j(e){let{name:t}=e,{openDialog:n}=(0,c.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{size:"none",variant:"ghost",icon:"hover",children:(0,r.jsx)(s.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)(s.Zbu,{})}),"Change policy"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete bucket"]})]})}let k=[{id:"type",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{isViewingBuckets:t,multiSelect:n}}=e;return t?null:(0,r.jsx)(i.eQh,{className:"flex h-4",children:(0,r.jsx)(i.XZJ,{"aria-label":"select all files",onClick:n.onSelectPage,checked:n.isPageAllSelected})})},render:function(e){let{data:{isUploading:t,type:n,name:a,path:o,size:l}}=e,{setActiveDirectory:c}=eb();return t?(0,r.jsx)(i.zxk,{size:"none",variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===a?(0,r.jsx)(i.zxk,{size:"none",variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),c(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(j,{name:a}):"directory"===n?(0,r.jsx)(h,{path:o,size:l}):(0,r.jsx)(u.e,{path:o})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectoryAndFileNamePrefix:a,setActiveDirectory:o}=eb();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",underline:"hover",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",underline:"hover",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",underline:"hover",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:a}=e;if(".."===a.name)return null;let o=null===(n=a.bucket)||void 0===n?void 0:null===(t=n.policy)||void 0===t?void 0:t.publicReadAccess;return(0,r.jsx)(i.ua7,{content:o?"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:o?"contrast":"verySubtle",className:"flex gap-0.5 items-center",children:o?(0,r.jsx)(s.nDH,{}):(0,r.jsx)(s.Lur,{})})})})})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:a}}=e;return"bucket"===t||".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(m())(a),variant:"value",color:"subtle",weight:"regular",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e,{type:n,isUploading:a,loaded:o,size:u}=t;if("bucket"===n)return null;if(a){let e=o?(o/u*100).toFixed(0)+"%":"0%";return(0,r.jsx)(i.ua7,{content:"Uploaded ".concat((0,l.vW)(o||0),"/").concat((0,l.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)(s.R$6,{className:"scale-75"})}),(0,r.jsx)(i.xvT,{color:"subtle",size:"12",children:e})]})})}return(0,r.jsx)(w,{...t})}}];var E=n(89421),_=n(463),C=n(7699),S=n(35197);function O(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function M(e,t){var n=O(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 A(e,t,n){P(e,t),t.set(e,n)}function T(e,t,n){var r=O(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 N(e,t,n){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return n}function R(e,t){P(e,t),t.add(e)}var D=new WeakMap,L=new WeakMap,z=new WeakMap,F=new WeakMap,Z=new WeakMap,I=new WeakMap,V=new WeakMap,B=new WeakMap,U=new WeakMap,H=new WeakMap,W=new WeakMap,$=new WeakMap,q=new WeakMap,K=new WeakMap,Y=new WeakMap,G=new WeakMap,X=new WeakMap,J=new WeakMap,Q=new WeakMap,ee=new WeakSet,et=new WeakSet,en=new WeakSet,er=new WeakSet,ei=new WeakSet,ea=new WeakSet;class eo{async create(){var e;let t={bucket:M(this,D),key:M(this,L)},n=await M(this,I).busUploadCreate.post({payload:t});if(null===(e=n.data)||void 0===e?void 0:e.uploadID)return T(this,Y,n.data.uploadID),T(this,q,Array.from({length:Math.ceil(M(this,z).size/M(this,F))},(e,t)=>t+1)),M(this,Y)}async start(){let e=new Promise(e=>{T(this,H,e)});N(this,ee,es).call(this),await e}async abort(){var e;T(this,G,!0),Object.keys(M(this,$)).map(Number).forEach(e=>{M(this,$)[e].abort()});try{await M(this,I).busUploadAbort.post({payload:{bucket:M(this,D),key:M(this,L),uploadID:M(this,Y)}})}catch(e){(0,i.OHV)({title:"Error aborting upload",body:e.message})}null===(e=M(this,H))||void 0===e||e.call(this)}setOnProgress(e){T(this,V,e)}setOnError(e){T(this,B,e)}setOnComplete(e){T(this,U,e)}constructor(e){R(this,ee),R(this,et),R(this,en),R(this,er),R(this,ei),R(this,ea),A(this,D,{writable:!0,value:void 0}),A(this,L,{writable:!0,value:void 0}),A(this,z,{writable:!0,value:void 0}),A(this,F,{writable:!0,value:void 0}),A(this,Z,{writable:!0,value:void 0}),A(this,I,{writable:!0,value:void 0}),A(this,V,{writable:!0,value:void 0}),A(this,B,{writable:!0,value:void 0}),A(this,U,{writable:!0,value:void 0}),A(this,H,{writable:!0,value:void 0}),A(this,W,{writable:!0,value:void 0}),A(this,$,{writable:!0,value:void 0}),A(this,q,{writable:!0,value:void 0}),A(this,K,{writable:!0,value:void 0}),A(this,Y,{writable:!0,value:void 0}),A(this,G,{writable:!0,value:void 0}),A(this,X,{writable:!0,value:void 0}),A(this,J,{writable:!0,value:void 0}),A(this,Q,{writable:!0,value:void 0}),T(this,H,()=>null),T(this,X,500),T(this,J,6e4),T(this,Q,M(this,X)),T(this,D,e.bucket),T(this,L,e.key),T(this,F,e.partSize||5242880),T(this,Z,Math.min(e.maxConcurrentParts||5,15)),T(this,z,e.file),T(this,I,e.api),T(this,V,e.onProgress||(()=>null)),T(this,B,e.onError||(()=>null)),T(this,U,e.onComplete||(()=>null)),T(this,W,{}),T(this,$,{}),T(this,q,[]),T(this,K,[]),T(this,Y,void 0),T(this,G,!1)}}async function es(){if(M(this,G))return;let e=Object.keys(M(this,$)).length;if(e>=M(this,Z))return;if(!M(this,q).length){e||N(this,er,ec).call(this);return}let t=M(this,q).pop();if(!t)return;let n=(t-1)*M(this,F),r=M(this,z).slice(n,n+M(this,F));try{await N(this,ea,ef).call(this,t,r,n,()=>{N(this,ee,es).call(this)}),N(this,et,el).call(this)}catch(e){if(e instanceof eh)return;if(e instanceof ep){await this.abort(),M(this,B).call(this,e);return}M(this,q).push(t),await N(this,en,eu).call(this)}N(this,ee,es).call(this)}function el(){T(this,Q,M(this,X))}async function eu(){let e=(0,_.gw)(M(this,Q));T(this,Q,Math.min(2*M(this,Q),M(this,J))),await e}async function ec(){try{let e={bucket:M(this,D),key:M(this,L),uploadID:M(this,Y),parts:M(this,K).sort((e,t)=>e.partNumber-t.partNumber)};await M(this,I).busUploadComplete.post({payload:e}),M(this,U).call(this)}catch(e){M(this,B).call(this,e)}M(this,H).call(this)}function ed(e,t){M(this,W)[e]=t.loaded;let n=Math.min(Object.keys(M(this,W)).map(Number).reduce((e,t)=>e+=M(this,W)[t],0),M(this,z).size),r=M(this,z).size;M(this,V).call(this,{sent:n,total:r,percentage:Math.round(n/r*100)})}async function ef(e,t,n,r){let i=new AbortController;M(this,$)[e]=i,r();try{var a;let r=await M(this,I).workerUploadPart.put({params:{key:M(this,L).slice(1),bucket:M(this,D),uploadid:M(this,Y),encryptionoffset:n,partnumber:e},payload:t,config:{axios:{onUploadProgress:t=>N(this,ei,ed).call(this,e,t),signal:i.signal}}});if(r.error){if("canceled"===r.error)throw new eh;throw Error(r.error)}let o=null===(a=r.headers)||void 0===a?void 0:a.etag;if(!o)throw new ep;let s={partNumber:e,eTag:o.replace(/"/g,"")};M(this,K).push(s)}finally{delete M(this,$)[e]}}class eh extends Error{constructor(){super("canceled"),this.name="CanceledError"}}class ep extends Error{constructor(){super("No ETag in response, add ETag to Access-Control-Expose-Headers list"),this.name="NoETagError"}}let em=e=>(0,l.B$)(4).times(e);var eg=n(4300),ev=n(92762);let ey=(0,o.createContext)({}),eb=()=>(0,o.useContext)(ey);function ex(e){let{children:t}=e,n=function(){var e;let{configurableColumns:t,visibleColumnIds:n,visibleColumns:r,sortableColumns:s,toggleColumnVisibility:u,setColumnsVisible:c,setColumnsHidden:h,toggleSort:p,setSortDirection:m,setSortField:g,sortField:v,sortDirection:y,resetDefaultColumnVisibility:b}=(0,i.oy6)("renterd/v0/objects",{columns:k,columnsDefaultVisible:E.gd,sortOptions:E.Fo,defaultSortField:E.nw}),x=(0,a.xj)(),w=(0,a.UO)(),j=null==w?void 0:w.bucket,{filters:O,setFilter:M,removeFilter:P,removeLastFilter:A,resetFilters:T}=(0,i.Uu5)(),N=(0,o.useMemo)(()=>{var e;return(null===(e=O.find(e=>"fileNamePrefix"===e.id))||void 0===e?void 0:e.value)||""},[O]),R=(0,o.useMemo)(()=>j?[j,...((null==w?void 0:w.path)||[]).map(decodeURIComponent)]:[],[j,null==w?void 0:w.path]),D=(0,d.B$)(),L=null===(e=D.data)||void 0===e?void 0:e.find(e=>e.name===j),z=(0,o.useMemo)(()=>(0,f.rd)(R)+"/",[R]),[F,Z]=(0,ev.Z)("renterd/v0/explorerMode",{defaultValue:"directory"}),I=(0,o.useCallback)(e=>{let t=e(R);if(0===t.length){x.push(eg._.buckets.index);return}let n=eg._.buckets.files.replace("[bucket]",t[0]).replace("[path]",t.slice(1).map(encodeURIComponent).join("/"));x.push(n)},[x,R]),{uploadFiles:V,uploadsMap:B,uploadsList:U}=function(e){let{activeDirectoryPath:t}=e,n=(0,d.B$)(),r=(0,_.Tu)(),a=(0,d.Pt)(),s=(0,d._3)(),u=(0,d.eM)(),c=(0,d.LS)(),[h,p]=(0,o.useState)({}),m=(0,d.NF)({config:{swr:{refreshInterval:(0,l.sW)(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 eo({file:a,key:(0,f.kj)(n),bucket:r.name,api:E.current,partSize:em((null===(t=m.data)||void 0===t?void 0:t.redundancy.minShards)||1).toNumber(),maxConcurrentParts:5}),s=await o.create();if(!s){(0,i.OHV)({title:"Error creating upload",body:"Failed to create upload"});return}return o.setOnError(e=>{(0,i.OHV)({title:"Error uploading file",body:e.message}),E.current.removeUpload(s)}),o.setOnProgress((0,S.Z)(e=>{E.current.updateUploadProgress({id:s,loaded:e.sent,size:e.total})},1e3)),o.setOnComplete(async()=>{await E.current.mutate(e=>e.startsWith(C.DL)),E.current.removeUpload(s),setTimeout(()=>{E.current.checkAndStartUploads()},100)}),{uploadId:s,multipartUpload:o}},[m.data]),x=(0,o.useCallback)(async e=>{let{path:t,bucket:n,name:r,uploadFile:i}=e,a=await b({path:t,bucket:n,uploadFile:i});if(!a)return;let{uploadId:o,multipartUpload:s}=a;p(e=>{let a=(0,f.kj)(t),l={id:o,path:t,key:a,bucket:n,name:r,size:i.size,loaded:0,isUploading:!0,upload:s,uploadStatus:"queued",uploadFile:i,createdAt:new Date().toISOString(),uploadAbort:async()=>{await s.abort(),E.current.removeUpload(o)},type:"file"};return{...e,[o]:l}})},[p,b]),w=(0,o.useCallback)(async e=>{let{id:t,upload:n}=e;g({id:t}),n.start()},[g]),j=(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=>{e.upload&&w({id:e.id,upload:e.upload})}),h},[h,w]),k=(0,o.useCallback)(e=>{e.forEach(e=>{var r,a,o;let s=e.path||e.name,l=(0,f.v_)(t,s),u=e.name,c=(0,f.ru)(l),d=null===(r=n.data)||void 0===r?void 0:r.find(e=>e.name===c);if(!d){(0,i.OHV)({title:"Bucket not found",body:c});return}h[l]&&((0,i.OHV)({title:"Already uploading file, aborting previous upload.",body:l}),null===(a=(o=h[l]).uploadAbort)||void 0===a||a.call(o)),x({path:l,name:u,bucket:d,uploadFile:e})}),setTimeout(()=>{E.current.checkAndStartUploads()},1e3)},[t,x,n.data,h]),E=(0,o.useRef)({checkAndStartUploads:j,workerUploadPart:a,busUploadComplete:s,busUploadCreate:u,busUploadAbort:c,removeUpload:y,updateUploadProgress:v,updateStatusToUploading:g,mutate:r});(0,o.useEffect)(()=>{E.current={checkAndStartUploads:j,busUploadAbort:c,busUploadComplete:s,busUploadCreate:u,workerUploadPart:a,mutate:r,removeUpload:y,updateUploadProgress:v,updateStatusToUploading:g}},[j,c,s,u,a,r,y,v,g]),(0,o.useEffect)(()=>{let e=setInterval(()=>{E.current.checkAndStartUploads()},3e3);return()=>{clearInterval(e)}},[]);let O=(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:k,uploadsMap:h,uploadsList:O}}({activeDirectoryPath:z}),{downloadFiles:H,downloadsList:W,getFileUrl:$,downloadCancel:q}=function(){let e=(0,d.B$)(),t=(0,d.p$)(),[n,r]=(0,o.useState)({}),a=(0,o.useCallback)(e=>{r(t=>{let n={id:e.path,path:e.path,key:e.key,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"};return{...t,[e.path]:n}})},[r]),s=(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]),l=(0,o.useCallback)(e=>{r(t=>(delete t[e],{...t}))},[r]),u=(0,o.useCallback)(e=>{e.controller.abort()},[]),c=(0,o.useCallback)(async r=>{r.forEach(async r=>{var o;let u=!1,c=(0,f.ru)(r),d=(0,f.kj)(r),h=null===(o=e.data)||void 0===o?void 0:o.find(e=>e.name===c);if(!h){(0,i.OHV)({title:"Bucket not found",body:c});return}let p=(0,f.vt)(r);if(n[r]){(0,i.OHV)({title:"Already downloading file",body:r});return}let m=new AbortController,g=(0,S.Z)(e=>{u||s({path:r,loaded:e.loaded,size:e.total})},2e3);a({path:r,key:d,name:p,bucket:h,loaded:0,size:1,controller:m});let v=await t.get(p,{params:(0,f.W0)(r),config:{axios:{onDownloadProgress:g,signal:m.signal}}});u=!0,v.error&&("canceled"===v.error?(0,i.RFt)({title:"File download canceled"}):(0,i.OHV)({title:"Error downloading file",body:v.error})),l(r)})},[e.data,t,n,a,l,s]),h=(0,o.useMemo)(()=>Object.entries(n).map(e=>e[1]),[n]),{settings:p}=(0,_.Hv)();return{downloadFiles:c,downloadsList:h,getFileUrl:(0,o.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,f.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),a=p.api||location.origin,o=a.startsWith("https")?"https":"http",s=a.replace("https://","").replace("http://","");return t?"".concat(o,"://:").concat(p.password,"@").concat(s,"/api").concat(i):"".concat(o,"://").concat(s,"/api").concat(i)},[p]),downloadCancel:u}}(),K=0===R.length,Y=1===R.length,G=R.length>0,X=(0,o.useCallback)(e=>{M({id:"fileNamePrefix",label:"",value:e})},[M]),J=(0,o.useCallback)(()=>{P("fileNamePrefix")},[P]),Q=(0,o.useCallback)((e,t)=>{t?X(t):J(),I(()=>e)},[I,X,J]),ee=(0,o.useCallback)(e=>{Q((0,f.gD)(e),(0,f.vt)(e))},[Q]),et=(0,o.useCallback)(e=>{"directory"===F?ee(e):X((0,f.kj)(e).slice(1))},[F,ee,X]),en=eg._.buckets.uploads.replace("[bucket]",j||""),er=(0,o.useCallback)(()=>{L&&x.push(en)},[L,en,x]),ei=(0,a.jD)(),ea=j&&ei.startsWith(en),es=(0,o.useCallback)(async()=>{(ea||"directory"!==F)&&j&&(Q([j],void 0),Z("directory"))},[ea,F,j,Z,Q]),el=(0,o.useCallback)(async()=>{(ea||"flat"!==F)&&j&&(Q([j],(0,f.kj)(z).slice(1)),Z("flat"))},[ea,F,j,z,Z,Q]);return{isViewingBuckets:K,isViewingABucket:G,isViewingRootOfABucket:Y,isViewingUploads:ea,buckets:D,activeBucket:L,activeBucketName:j,activeDirectory:R,navigateToUploads:er,setActiveDirectory:I,setActiveDirectoryAndFileNamePrefix:Q,activeDirectoryPath:z,navigateToModeSpecificFiltering:et,uploadFiles:V,uploadsMap:B,uploadsList:U,downloadFiles:H,downloadsList:W,downloadCancel:q,configurableColumns:t,visibleColumnIds:n,visibleColumns:r,sortableColumns:s,toggleColumnVisibility:u,setColumnsVisible:c,setColumnsHidden:h,toggleSort:p,setSortDirection:m,setSortField:g,sortField:v,filters:O,fileNamePrefixFilter:N,setFileNamePrefixFilter:X,setFilter:M,removeFilter:P,removeLastFilter:A,resetFilters:T,sortDirection:y,resetDefaultColumnVisibility:b,getFileUrl:$,activeExplorerMode:F,setExplorerModeDirectory:es,setExplorerModeFlat:el}}();return(0,r.jsx)(ey.Provider,{value:n,children:t})}},89421: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"}]},46741:function(e,t,n){"use strict";n.d(t,{x:function(){return A},l:function(){return P}});var r,i=n(52322),a=n(70150),o=n(463),s=n(91426),l=n(31405),u=n(2784),c=n(777),d=n(99634),f=n(55699),h=n(74282),p=n(28420),m=n(60381),g=n(96647),v=n(91048),y=n(22836),b=n(96612),x=n(7699),w=n(6391),j=n.n(w);let k=[{id:"actions",label:"",fixed:!0,category:"general",contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,i.jsx)(a.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},render:e=>{let{data:t}=e;return(0,i.jsx)(b.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,s.s2)({config:{swr:{dedupingInterval:5e3}}}).data)||void 0===t?void 0:t.length);return(0,i.jsx)(a.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,i.jsxs)("div",{className:"flex gap-2 items-center","data-testid":n.isBlocked?"blocked":"allowed",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,i.jsx)(p.SmH,{}):(0,i.jsx)(p.DI$,{})})}),(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,i.jsx)(a.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}=e;return(0,i.jsx)(a.ua7,{side:"right",content:t.isUsable?"Host is usable":"Host is not usable",children:(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{"aria-label":t.isUsable?"usable":"not usable",color:t.isUsable?"green":"red",children:t.isUsable?(0,i.jsx)(p.DI$,{}):(0,i.jsx)(p.SmH,{})})}),(0,i.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,i.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t}=e;return(0,i.jsx)(a.ua7,{side:"right",content:t.isGouging?"Host is price gouging":"Host is not price gouging",children:(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:t.isGouging?"red":"subtle",children:t.isGouging?(0,i.jsx)(p.SmH,{}):(0,i.jsx)(p.I98,{})})}),(0,i.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,i.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},t)})})]})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,o.D)();if(n.find(e=>{var n;return null===(n=e.route)||void 0===n?void 0:n.startsWith(x.$G.replace(":hostkey",t.publicKey))}))return(0,i.jsx)(a.xgg,{});let r=(0,g.Z)(new Date(t.lastScan||0),new Date,{addSuffix:!0}),s="",l=null,u="subtle";return t.lastScan||(s="host has not been scanned",l=(0,i.jsx)(p.I98,{}),u="subtle"),t.lastScan&&!t.lastScanSuccess&&(s="host scan failed ".concat(r),l=(0,i.jsx)(p.SmH,{}),u="red"),t.lastScan&&t.lastScanSuccess&&(s="host scan succeeded ".concat(r),l=(0,i.jsx)(p.DI$,{}),u="green"),(0,i.jsx)(a.ua7,{side:"right",content:s,children:(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:u,children:l})}),t.lastScan&&(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(a.xvT,{size:"12",noWrap:!0,children:r}),(0,i.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,v.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,i.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,i.jsx)(p.DI$,{}):(0,i.jsx)(p.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t,context:n}=e;return(0,i.jsx)(a.XxW,{value:t.netAddress,size:"12",type:"hostIp",siascanUrl:n.siascanUrl})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t,context:n}=e;return(0,i.jsx)(a.XxW,{value:t.publicKey,size:"12",type:"hostPublicKey",siascanUrl:n.siascanUrl})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return t.lastAnnouncement?(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,g.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,i.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:(0,y.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,i.jsx)(a.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,m.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,m.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,i.jsx)(a.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,m.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,i.jsx)(a.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,m.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,m.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,m.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,m.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,i.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>e.toPrecision(2)})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:C("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:_("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:E("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",function(e){let{data:t}=e;if(!t[r])return null;let n=t[r].acceptingcontracts;return(0,i.jsx)("div",{className:"mt-[5px]",children:(0,i.jsx)(a.xvT,{color:n?"green":"red",children:n?(0,i.jsx)(p.DI$,{}):(0,i.jsx)(p.SmH,{})})})})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("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:_("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("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:C("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:_("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("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:_("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("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:C("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:E("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:C("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:_("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,i.jsx)(p.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,i.jsx)(p.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,i.jsx)(p.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 E(e,t){return(0,u.memo)(function(n){let{data:r}=n;return r[e]?(0,i.jsx)(a.ho9,{displayBoth:!0,size:"12",value:new(j())(r[e][t]||0),fixedFiat:4,variant:"value"}):null})}function _(e,t,n){return function(r){let{data:o}=r;return o[e]?(0,i.jsx)(a.m2c,{size:"12",value:new(j())(o[e][t]||0),variant:"value",format:e=>(0,m.yF)(e,{abbreviated:n})}):null}}function C(e,t){return function(n){let{data:r}=n;return r[e]?(0,i.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function S(e,t){return function(n){let{data:r}=n;if(!r[e])return null;let o=r[e][t];return(0,i.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,m.vW)(o)})}}let O=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"],M=(0,u.createContext)({}),P=()=>(0,u.useContext)(M);function A(e){let{children:t}=e,n=function(){var e;let[t,n]=(0,u.useState)("list"),{limit:r,offset:i}=(0,a.It_)(50),{filters:p,setFilter:m,removeFilter:g,removeLastFilter:v,resetFilters:y}=(0,a.Uu5)(),{dataset:b}=(0,h.G)(),x=(0,u.useMemo)(()=>{let e=[];p.find(e=>"hasActiveContracts"===e.id)&&b&&(e=b.map(e=>e.hostKey));let t=p.find(e=>"publicKeyEquals"===e.id);return(null==t?void 0:t.value)&&e.push(t.value),e.length?e:void 0},[p,b]),w=(0,u.useMemo)(()=>{var e,t,n;return{limit:r,offset:i,usabilityMode:(null===(e=p.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=p.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=p.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:x}},[p,x,r,i]),E=(0,s.lW)({payload:w,config:{swr:{refreshInterval:d.h}}}),_=(0,s.s2)(),C=(0,s.uf)(),S=!!(null===(e=_.data)||void 0===e?void 0:e.length),{settings:M}=(0,o.Hv)(),P=(0,l.JL)({disabled:!M.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,u.useEffect)(()=>{M.siaCentral||n("list")},[M.siaCentral]);let A=(0,u.useMemo)(()=>{var e;return(null===(e=P.data)||void 0===e?void 0:e.hosts)||[]},[P.data]),T=(0,u.useRef)(c.N),N=(0,u.useCallback)(e=>{T.current=e},[T]),R=(0,u.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),D=function(e){let{response:t,allContracts:n,allowlist:r,blocklist:i,isAllowlistActive:s,geoHosts:l}=e;return(0,u.useMemo)(()=>{let e=(0,o.$S)(t.data),u=(0,o.$S)(r.data),c=(0,o.$S)(i.data);if(e&&u&&c)return e.map(e=>{var t;let r=l.find(t=>t.public_key===e.publicKey);return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.lastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===e.interactions.lastScan?void 0:e.interactions.lastScan,knownSince:"0001-01-01T00:00:00Z"===e.knownSince?void 0:e.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===e.lastAnnouncement?void 0:e.lastAnnouncement,uptime:new(j())(e.interactions.uptime||0),downtime:new(j())(e.interactions.downtime||0),successfulInteractions:new(j())(e.interactions.successfulInteractions||0),totalInteractions:new(j())(e.interactions.successfulInteractions+e.interactions.failedInteractions||0),failedInteractions:new(j())(e.interactions.failedInteractions||0),totalScans:new(j())(e.interactions.totalScans||0),activeContractsCount:new(j())((null==n?void 0:n.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==n?void 0:n.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)}}({host:e,allowlist:u,blocklist:c,isAllowlistActive:s}),...(t=e.checks,{score:new(j())((null==t?void 0:t.score)||0),scoreBreakdown:{age:new(j())((null==t?void 0:t.scoreBreakdown.age)||0),collateral:new(j())((null==t?void 0:t.scoreBreakdown.collateral)||0),interactions:new(j())((null==t?void 0:t.scoreBreakdown.interactions)||0),prices:new(j())((null==t?void 0:t.scoreBreakdown.prices)||0),storageRemaining:new(j())((null==t?void 0:t.scoreBreakdown.storageRemaining)||0),uptime:new(j())((null==t?void 0:t.scoreBreakdown.uptime)||0),version:new(j())((null==t?void 0:t.scoreBreakdown.version)||0)},isGouging:Object.values((null==t?void 0:t.gougingBreakdown)||{}).some(e=>e),isUsable:!!(null==t?void 0:t.usable),gougingBreakdown:(null==t?void 0:t.gougingBreakdown)||{},usabilityBreakdown:(null==t?void 0:t.usabilityBreakdown)||{blocked:!1,gouging:!1,lowScore:!1,notAcceptingContracts:!1,notAnnounced:!1,notCompletingScan:!1,offline:!1,redundantIP:!1},unusableReasons:t?(0,a.qPQ)(t.usabilityBreakdown).reduce((e,t)=>{let[n,r]=t;return r?e.concat(function(e){switch(e){case"blocked":return"Host is blocked";case"gouging":return"Host is gouging";case"lowScore":return"Host has low score";case"notAcceptingContracts":return"Host is not accepting contracts";case"notAnnounced":return"Host is not announced";case"notCompletingScan":return"Host is not completing scan";case"offline":return"Host is offline";case"redundantIP":return"Host has redundant IP";default:return"Unknown"}}(n)):e},[]):[]}),location:null==r?void 0:r.location,countryCode:null==r?void 0:r.country_code,onClick:()=>null,isSelected:!1}})},[t,n,r,i,s,l])}({response:E,allContracts:b,allowlist:_,blocklist:C,isAllowlistActive:S,geoHosts:A}),{configurableColumns:L,visibleColumnIds:z,visibleColumns:F,toggleColumnVisibility:Z,setColumnsVisible:I,setColumnsHidden:V,toggleSort:B,setSortDirection:U,setSortField:H,sortField:W,sortDirection:$,resetDefaultColumnVisibility:q}=(0,a.oy6)("renterd/v0/hosts",{columns:k,columnsDefaultVisible:O}),K=(0,u.useMemo)(()=>null==D?void 0:D.filter(e=>e.location),[D]),Y=(0,a.A7R)(D),G=(0,u.useMemo)(()=>{if(1===Y.selectedIds.length)return null==D?void 0:D.find(e=>e.publicKey===Y.selectedIds[0])},[D,Y.selectedIds]),X=(0,u.useMemo)(()=>{if(D)return D.map(e=>({...e,onClick:t=>Y.onSelect(e.id,t),isSelected:!!Y.selection[e.id]}))},[D,Y]),J=(0,f.B)(),Q=(0,u.useMemo)(()=>({siascanUrl:J,multiSelect:Y}),[J,Y]),ee=(0,u.useCallback)((e,t)=>{(null==G?void 0:G.publicKey)!==e&&(Y.deselectAll(),Y.onSelect(e),t&&T.current.moveToLocation(t),R(e))},[G,Y,T,R]);(0,u.useEffect)(()=>{if(!G||"map"!==t)return;let{location:e}=G||{};e?T.current.moveToLocation(e):(0,a.RFt)({title:"Location not available for host ".concat((0,a.$Gg)(G.publicKey,20))})},[G]);let et=E.isValidating,en=E.error,er=(0,a.LNN)({datasetPage:X,isValidating:et,error:en,offset:i,filters:p});return{setCmd:N,viewMode:t,activeHost:G,onHostMapClick:ee,setViewMode:n,hostsWithLocation:K,error:en,datasetState:er,offset:i,limit:r,datasetPageTotal:(null==X?void 0:X.length)||0,visibleColumns:F,datasetPage:X,tableContext:Q,configurableColumns:L,visibleColumnIds:z,toggleColumnVisibility:Z,setColumnsVisible:I,setColumnsHidden:V,toggleSort:B,setSortDirection:U,setSortField:H,sortField:W,sortDirection:$,resetDefaultColumnVisibility:q,filters:p,setFilter:m,removeFilter:g,removeLastFilter:v,resetFilters:y,multiSelect:Y}}();return(0,i.jsx)(M.Provider,{value:n,children:t})}},54597:function(e,t,n){"use strict";n.d(t,{Kg:function(){return a},jY:function(){return i}});var r=n(70150);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.isUsable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},83239:function(e,t,n){"use strict";n.d(t,{f:function(){return g},E:function(){return m}});var r=n(52322),i=n(70150),a=n(2784),o=n(14974),s=n(28420),l=n(91426),u=n(6539),c=n(82285);function d(e){let{s3Key:t,contentProps:n,buttonProps:o}=e,{openConfirmDialog:d}=(0,c.Rh)(),f=(0,l.AR)(),h=(0,l._M)(),p=(0,a.useCallback)(async()=>{var e;if(!f.data){(0,i.OHV)({title:"Error deleting key"});return}let n=(0,u.Z)(null===(e=f.data)||void 0===e?void 0:e.authentication.v4Keypairs,t),r=await h.put({payload:{...f.data,authentication:{...f.data.authentication,v4Keypairs:n}}});r.error?(0,i.OHV)({title:"Error deleting key",body:r.error}):(0,i.OPV)({title:"Key ".concat(t," deleted")})},[f.data,t,h]);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{"aria-label":"key context menu",icon:"hover",size:"none",...o,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:()=>{d({title:"Delete key ".concat((0,i.$Gg)(t,15)),action:"Delete",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 delete 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 f=[{id:"actions",label:"",fixed:!0,contentClassName:"!pl-3 !pr-4",cellClassName:"w-[20px] !pl-0 !pr-0",heading:e=>{let{context:{multiSelect:t}}=e;return(0,r.jsx)(i.XZJ,{onClick:t.onSelectPage,checked:t.isPageAllSelected})},render:e=>{let{data:{key:t}}=e;return(0,r.jsx)(d,{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 h=n(99634);let p=(0,a.createContext)({}),m=()=>(0,a.useContext)(p);function g(e){let{children:t}=e,n=function(){let{limit:e,offset:t}=(0,i.It_)(50),n=(0,l.AR)({config:{swr:{refreshInterval:h.h}}}),r=(0,a.useMemo)(()=>{var e;if(n.data)return Object.entries((null===(e=n.data)||void 0===e?void 0:e.authentication.v4Keypairs)||{}).map(e=>{let[t,n]=e;return{id:t,key:t,secret:n}})},[n.data]),{filters:s,setFilter:u,removeFilter:c,removeLastFilter:d,resetFilters:p}=(0,i.Wdu)(),{configurableColumns:m,visibleColumnIds:g,visibleColumns:v,sortableColumns:y,toggleColumnVisibility:b,setColumnsVisible:x,setColumnsHidden:w,toggleSort:j,setSortDirection:k,setSortField:E,sortField:_,sortDirection:C,resetDefaultColumnVisibility:S}=(0,i.oy6)("renterd/v0/keys",{columns:f,columnsDefaultVisible:o.gd,sortOptions:o.Fo,defaultSortField:o.nw}),{datasetFiltered:O,datasetPage:M}=(0,i._4u)({dataset:r,filters:s,sortField:_,sortDirection:C,offset:t,limit:e}),P=(0,i.A7R)(M),A=(0,a.useMemo)(()=>{if(M)return M.map(e=>({...e,onClick:t=>P.onSelect(e.id,t),isSelected:!!P.selection[e.id]}))},[M,P]),T=(0,i.LNN)({datasetPage:A,isValidating:n.isValidating,error:n.error,offset:t,filters:s}),N=(0,a.useMemo)(()=>({multiSelect:P}),[P]);return{datasetState:T,limit:e,offset:t,isLoading:n.isLoading,error:n.error,datasetTotal:(null==r?void 0:r.length)||0,datasetFilteredTotal:(null==O?void 0:O.length)||0,datasetPageTotal:(null==A?void 0:A.length)||0,visibleColumns:v,multiSelect:P,cellContext:N,dataset:r,datasetPage:A,configurableColumns:m,visibleColumnIds:g,sortableColumns:y,toggleColumnVisibility:b,setColumnsVisible:x,setColumnsHidden:w,toggleSort:j,setSortDirection:k,setSortField:E,sortField:_,filters:s,setFilter:u,removeFilter:c,removeLastFilter:d,resetFilters:p,sortDirection:C,resetDefaultColumnVisibility:S}}();return(0,r.jsx)(p.Provider,{value:n,children:t})}},14974: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"}]},88022:function(e,t,n){"use strict";n.d(t,{v:function(){return w},n:function(){return x}});var r=n(52322),i=n(70150),a=n(91426),o=n(2784),s=n(5632),l=n(55699),u=n(99634),c=n(16211),d=n(60381),f=n(28420);let h=[{id:"transactionId",label:"transaction ID",category:"general",render:e=>{let{data:{id:t},context:n}=e;return t?(0,r.jsx)(i.XxW,{size:"12",value:t,label:"transaction ID",type:"transaction",siascanUrl:n.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:e=>{let{data:{txType:t}}=e;return(0,r.jsx)(i.Cts,{size:"small",children:(0,d.pX)(t)})}},{id:"height",label:"height",category:"general",contentClassName:"justify-end",render:e=>{let{data:{height:t,pending:n,maturityHeight:a,isMature:o}}=e;return n?(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,r.jsx)(i.xgg,{})}):t?t&&a&&a>t?(0,r.jsx)(i.ua7,{content:o?"The maturity height has been reached.":"The maturity height has not been reached, therefore the output is still locked.",children:(0,r.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsxs)(i.xvT,{size:"12",font:"mono",ellipsis:!0,color:o?"green":"red",className:"flex gap-1 items-center",children:[o?(0,r.jsx)(f.VmF,{}):(0,r.jsx)(f.Lur,{}),a.toLocaleString()]})}),(0,r.jsxs)("div",{className:"flex justify-between items-end gap-1",children:[(0,r.jsx)("div",{className:"pl-[8px] pb-[6px]",children:(0,r.jsx)("div",{className:"border-l border-b border-gray-800 dark:border-graydark-800 h-[20px] w-[7px]"})}),(0,r.jsx)(i.xvT,{size:"12",font:"mono",color:"subtle",ellipsis:!0,children:t.toLocaleString()})]})]})}):(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:t.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",contentClassName:"justify-end",render:e=>{let{data:{timestamp:t,pending:n}}=e;return n?(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,r.jsx)(i.xgg,{})}):(0,r.jsx)(i.xvT,{size:"12",ellipsis:!0,children:(0,d.rN)(t,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{amountSc:t,amountSf:n}}=e;return t?(0,r.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!t.isZero()&&(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",value:t}),!!n&&(0,r.jsx)(i.Sby,{size:"12",value:n})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{fee:t}}=e;return t?(0,r.jsx)(i.ho9,{displayBoth:!0,size:"12",variant:"value",value:t}):null}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{contractId:t},context:n}=e;return t?(0,r.jsx)(i.XxW,{size:"12",value:t,label:"contract ID",siascanUrl:n.siascanUrl}):null}}],p=["transactionId","type","height","timestamp","amount","fee"],m=[];var g=n(6391),v=n.n(g);let y=[],b=(0,o.createContext)({}),x=()=>(0,o.useContext)(b);function w(e){let{children:t}=e,n=function(){let e=(0,s.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.sG)({params:{limit:t,offset:n},config:{swr:{refreshInterval:u.h}}}),f=(0,a.a0)({config:{swr:{refreshInterval:u.h}}}),g=(0,c.n)(),b=(0,o.useMemo)(()=>{if(!r.data||!f.data)return;let e=f.data.map(e=>{let t=(0,d.Jz)(e),n=(0,d.hq)(e);return{id:e.id,timestamp:0,pending:!0,type:e.type,txType:(0,d.uC)(e),isMature:!1,amountSc:t,fee:n}}),t=r.data.map(e=>{let t=(0,d.Jz)(e),n=(0,d.hq)(e),r=(0,d.hR)(e),i=e.maturityHeight<=g.nodeBlockHeight;return{id:e.id,type:e.type,txType:(0,d.uC)(e),timestamp:new Date(e.timestamp).getTime(),maturityHeight:e.maturityHeight,isMature:i,height:e.index.height,pending:!1,amountSc:t,fee:n,contractId:r}});return 0===n?[...e.reverse(),...t]:[...t]},[r.data,f.data,g.nodeBlockHeight,n]),{configurableColumns:x,visibleColumnIds:w,visibleColumns:j,sortableColumns:k,toggleColumnVisibility:E,setColumnsVisible:_,setColumnsHidden:C,toggleSort:S,setSortDirection:O,setSortField:M,sortField:P,sortDirection:A,resetDefaultColumnVisibility:T}=(0,i.oy6)("renterd/v0/events",{columns:h,columnsDefaultVisible:p,sortOptions:m,defaultSortField:"id"}),N=r.isValidating||f.isValidating,R=r.error||f.error,D=(0,i.LNN)({datasetPage:b,isValidating:N,error:R,offset:n,filters:y}),L=(0,l.B)(),z=(0,o.useMemo)(()=>({siascanUrl:L}),[L]),F=(0,d.Nr)(1),Z=(0,o.useMemo)(()=>new Date(new Date().getTime()-30*F).toISOString(),[30,F]),I=(0,a.X1)({params:{start:Z,interval:F,n:30}});return{balances:(0,o.useMemo)(()=>(I.data||[]).map(e=>({sc:new(v())(e.spendable).plus(e.unconfirmed).toNumber(),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[I.data]),metrics:I,datasetPage:b,error:R,datasetState:D,offset:n,limit:t,datasetPageTotal:(null==b?void 0:b.length)||0,defaultPageSize:50,cellContext:z,configurableColumns:x,visibleColumnIds:w,sortableColumns:k,toggleColumnVisibility:E,setColumnsVisible:_,setColumnsHidden:C,toggleSort:S,setSortDirection:O,setSortField:M,sortField:P,sortDirection:A,resetDefaultColumnVisibility:T,filters:y,visibleColumns:j}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},67899:function(e,t,n){"use strict";n.d(t,{V:function(){return x},x:function(){return b}});var r=n(52322),i=n(70150),a=n(91426),o=n(2784);let s=["path","status","size","createdAt"],l=[];var u=n(25913),c=n(45382),d=n(60381),f=n(22836),h=n(28420);function p(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)(h.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)(h._fo,{})}),"Cancel upload"]})]})}let m=[{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)(p,{abort:t})}},{id:"path",label:"path",contentClassName:"max-w-[600px]",category:"general",render:function(e){let{data:{path:t,id:n}}=e,a=(0,u.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:a}),(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:o}}=e;return o?(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"Uploading from a different session"}):(0,r.jsx)(c.s,{loaded:t||0,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,d.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,f.Z)(new Date(t).getTime(),new Date)})}}];var g=n(8068),v=n(463);let y=(0,o.createContext)({}),b=()=>(0,o.useContext)(y);function x(e){let{children:t}=e,n=function(){var e,t,n;let{uploadsMap:r,activeBucket:c}=(0,g.b)(),{limit:d,marker:f}=(0,i.fGX)(50),h=(0,o.useMemo)(()=>{if(f){let[e,t]=f.split("");if(e&&t)return{keyMarker:t,uploadIDMarker:e}}},[f]),{filters:p,setFilter:y,removeFilter:b,removeLastFilter:x,resetFilters:w}=(0,i.Uu5)(),j=(0,a.LS)(),k=(0,o.useMemo)(()=>{if(null==c?void 0:c.name)return{bucket:null==c?void 0:c.name,uploadIDMarker:(null==h?void 0:h.uploadIDMarker)||void 0,keyMarker:(null==h?void 0:h.keyMarker)||void 0,limit:d}},[c,d,h]),E=(0,a.bg)({disabled:!k,payload:k,config:{swr:{keepPreviousData:!0}}}),_=(0,o.useCallback)(async()=>{var e;if((null===(e=E.data)||void 0===e?void 0:e.uploads)&&(null==c?void 0:c.name))return Promise.all(E.data.uploads.map(async e=>{let t=r[e.uploadID];if(t){var n;null===(n=t.uploadAbort)||void 0===n||n.call(t)}else await j.post({payload:{bucket:c.name,key:e.key,uploadID:e.uploadID}})}))},[E.data,j,c,r]),C=(0,o.useMemo)(()=>{var e;let t=(0,v.$S)(null===(e=E.data)||void 0===e?void 0:e.uploads);if(t&&(null==c?void 0:c.name))return t.map(e=>{let t=e.uploadID,n=e.key,i=(0,u.vt)(n),a=(0,u.v_)(c.name,e.key);return r[t]||{id:t,path:a,key:n,bucket:c,name:i,size:1,loaded:1,isUploading:!0,uploadStatus:"uploading",createdAt:e.createdAt,remote:!0,type:"file",uploadAbort:async()=>{await j.post({payload:{bucket:null==c?void 0:c.name,key:e.key,uploadID:e.uploadID}})}}})},[r,c,E,j]),{configurableColumns:S,visibleColumnIds:O,visibleColumns:M,sortableColumns:P,toggleColumnVisibility:A,setColumnsVisible:T,setColumnsHidden:N,toggleSort:R,setSortDirection:D,setSortField:L,sortField:z,sortDirection:F,resetDefaultColumnVisibility:Z}=(0,i.oy6)("renterd/v0/uploads",{columns:m,columnsDefaultVisible:s,sortOptions:l,defaultSortField:"path"});return{abortAll:_,datasetState:(0,i.LNN)({datasetPage:C,isValidating:E.isValidating,error:E.error,marker:f,filters:p}),limit:d,marker:f,nextMarker:function(e){let{uploadIDMarker:t,keyMarker:n}=e;return(0,o.useMemo)(()=>t&&n?"".concat(t,"").concat(n):null,[t,n])}({uploadIDMarker:(null===(e=E.data)||void 0===e?void 0:e.nextUploadIDMarker)||"",keyMarker:(null===(t=E.data)||void 0===t?void 0:t.nextMarker)||""}),hasMore:!!(null===(n=E.data)||void 0===n?void 0:n.hasMore),isLoading:E.isLoading,error:E.error,datasetPageTotal:(null==C?void 0:C.length)||0,visibleColumns:M,datasetPage:C,configurableColumns:S,visibleColumnIds:O,sortableColumns:P,toggleColumnVisibility:A,setColumnsVisible:T,setColumnsHidden:N,toggleSort:R,setSortDirection:D,setSortField:L,sortField:z,filters:p,setFilter:y,removeFilter:b,removeLastFilter:x,resetFilters:w,sortDirection:F,resetDefaultColumnVisibility:Z}}();return(0,r.jsx)(y.Provider,{value:n,children:t})}},12295:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(70150),i=n(91426),a=n(60381),o=n(2784);function s(){let e=(0,i.ni)();return(0,o.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:1===t.length?"Host ".concat((0,r.$Gg)(t[0],20)," added to allowlist."):"Added ".concat((0,a._6)(t.length,"host")," to the allowlist.")}),n.length&&(0,r.OPV)({title:"Allowlist updated",body:1===n.length?"Host ".concat((0,r.$Gg)(n[0],20)," removed from allowlist."):"Removed ".concat((0,a._6)(n.length,"host")," from the allowlist.")}),!0)})(),[e])}},9408:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(70150),i=n(91426),a=n(60381),o=n(2784);function s(){let e=(0,i.Os)();return(0,o.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:1===t.length?"Host ".concat((0,r.$Gg)(t[0],20)," added to blocklist."):"Added ".concat((0,a._6)(t.length,"host")," to the blocklist.")}),n.length&&(0,r.RFt)({title:"Blocklist updated",body:1===n.length?"Host ".concat((0,r.$Gg)(n[0],20)," removed from blocklist."):"Removed ".concat((0,a._6)(n.length,"host")," from the blocklist.")}),!0)})(),[e])}},55699:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(70150),i=n(91426);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}},16211:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(60381),i=n(463),a=n(91426);function o(){var e,t,n,o;let{isUnlockedAndAuthedRoute:s}=(0,i.Hv)(),l=(0,a.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XB)(60):(0,r.XB)(10)}}}),u=(0,a.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,a.X2)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)&&e.scanHeight>=c?(0,r.XB)(60):(0,r.XB)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:!!(null===(t=l.data)||void 0===t?void 0:t.synced),isWalletSynced:!!((null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(o=d.data)||void 0===o?void 0:o.scanHeight)&&d.data.scanHeight>=c-1),nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},32974:function(e,t,n){"use strict";n.d(t,{D:function(){return o},V:function(){return a}});var r=n(52322),i=n(28420);let a={excellent:1,good:.5,poor:0};function o(e){let{health:t=0,size:n,isDirectory:o}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},25913: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 b},vt:function(){return g},kj:function(){return p},rj:function(){return y},IQ:function(){return v},v_:function(){return d},rd:function(){return x}});var r=n(36556),i=n(90821),a=n(45904),o=function(e,t){for(var n=-1,r=e.length;++n-1;);return n},s=n(51075),l=n(16601),u=/^\s+/,c=function(e,t,n){if((e=(0,l.Z)(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=(0,r.Z)(t)))return e;var a=(0,s.Z)(e),c=o(a,(0,s.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 b(e){return v(e=c(e,"/"))?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function x(e){return e.join("/")}function w(e){return v(e=c(e,"/"))?e:e.concat("/")}},85556:function(e,t,n){"use strict";n.d(t,{Di:function(){return i},Ep:function(){return o},Fg:function(){return a}});var r=n(25913);function i(e,t){var n;let i=(0,r.rd)(e);return(null==t?void 0:null===(n=t.collisions)||void 0===n?void 0:n.length)&&(i=".."===t.collisions[0].id?(0,r.rd)(e.slice(0,-1)):String(t.collisions[0].id)),i}function a(e,t){let n=[];for(let i of e){let e=(0,r.vt)(i),a=(0,r.ru)(i),o=(0,r.kj)(i),s=(0,r.kj)((0,r.v_)(t,e));o!==s&&n.push({bucket:a,from:o,to:s,mode:e.endsWith("/")?"multi":"single"})}return n.sort((e,t)=>e.from===t.from?0:e.from.startsWith(t.from)?-1:1),n}function o(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"}}},65047:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(52322);n(21962);var i=n(70150);n(2784);var a=n(82285),o=n(74282),s=n(46741),l=n(28245),u=n(90040),c=n(88022),d=n(83239),f=n(40824),h=n(8068),p=n(3031),m=n(67899),g=n(45209);function v(e){let{children:t}=e;return(0,r.jsx)(l.w,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(a.Tu,{children:(0,r.jsx)(c.v,{children:(0,r.jsx)(o.x,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(h.e,{children:(0,r.jsx)(m.V,{children:(0,r.jsx)(p.V,{children:(0,r.jsx)(f.p,{children:(0,r.jsx)(d.f,{children:(0,r.jsxs)(g.b,{children:[(0,r.jsx)(a.xQ,{}),t]})})})})})})})})})})})})}var y=n(4300),b=n(29773),x=n.n(b),w=n(17282),j=n.n(w);let k=(0,n(82851).cx)(x().variable,j().variable);var E=n(7699);function _(e){return(0,r.jsx)(i.PD$,{className:k,fallback:e.pageProps.fallback,daemonExplorerInfoRoute:E.PS,passwordProtectRequestHooks:!0,lockRoutes:y._,children:(0,r.jsx)(v,{children:(0,r.jsx)(C,{...e})})})}function C(e){let{Component:t,pageProps:n}=e,i=t.Layout,a=t.useLayoutProps(),{fallback:o,...s}=n;return(0,r.jsx)(i,{...a,children:(0,r.jsx)(t,{...s})})}},70150:function(e,t,n){"use strict";let r,i,a,o,s,l,u,c,d,f,h;n.d(t,{tU3:function(){return N3},$9_:function(){return Rs},zXq:function(){return Ro},juT:function(){return NM},Cts:function(){return uE},Z58:function(){return RI},WVB:function(){return gl},zxk:function(){return ue},b0u:function(){return MC},XZJ:function(){return uX},EKh:function(){return uS},npL:function(){return Dk},vRO:function(){return Dx},CN9:function(){return Db},ckm:function(){return Dc},QHy:function(){return Dt},TaT:function(){return RY},eQh:function(){return uM},HfT:function(){return Di},wEc:function(){return RB},ncR:function(){return Ab},VqE:function(){return fj},h_2:function(){return gh},Xiv:function(){return gp},Juw:function(){return gm},KpP:function(){return gg},fhJ:function(){return xK},ubH:function(){return Nk},S$c:function(){return AP},WyV:function(){return Dg},QBj:function(){return Rl},yEL:function(){return Rr},cB7:function(){return A_},ZqQ:function(){return AE},IKw:function(){return AA},KZS:function(){return AC},zsw:function(){return b0},__J:function(){return gM},rUS:function(){return gT},Qjf:function(){return gN},xgg:function(){return ME},TRl:function(){return gR},kFS:function(){return gu},FzK:function(){return R7},Clw:function(){return gs},hv1:function(){return DX},PD$:function(){return DM},Wxm:function(){return be},uDJ:function(){return Nm},_5:function(){return Nv},wFK:function(){return Ng},s_4:function(){return n6},M9k:function(){return R9},VXA:function(){return De},nvN:function(){return n3},u5Q:function(){return RV},j4H:function(){return y6},hmz:function(){return y8},J2e:function(){return vi},kod:function(){return vE},xrM:function(){return fb},PhF:function(){return y9},Z0O:function(){return gn},DLL:function(){return RA},ZBx:function(){return y3},KJW:function(){return NT},xJ6:function(){return Nj},rsf:function(){return b_},D_D:function(){return Rx},iA_:function(){return Np},mQc:function(){return yj},nUL:function(){return y_},drW:function(){return yk},SPt:function(){return yE},t6k:function(){return Da},xvT:function(){return n4},nvn:function(){return yS},ru1:function(){return Do},ua7:function(){return l7},mPE:function(){return Rw},XxW:function(){return P6},PF9:function(){return P7},m2c:function(){return Ai},YKL:function(){return Ae},ho9:function(){return Ar},Sby:function(){return P9},QUh:function(){return RN},weF:function(){return Rg},YNn:function(){return R_},DmW:function(){return RC},O9T:function(){return jK},fVJ:function(){return Rz},vQq:function(){return P0},E5z:function(){return P2},HLH:function(){return D0},fsB:function(){return Dl},JMs:function(){return Du},Y_Z:function(){return RR},EJC:function(){return DJ},kOJ:function(){return RL},eKZ:function(){return LV},Vkc:function(){return gi},S5N:function(){return LZ},qPQ:function(){return LI},z$:function(){return n5},I13:function(){return P3},cEb:function(){return yC},$Gr:function(){return y1},OHV:function(){return PX},OPV:function(){return PG},RFt:function(){return PY},$Gg:function(){return P4},_4u:function(){return DV},Wdu:function(){return DI},Y97:function(){return N4},LNN:function(){return N5},t0Y:function(){return Rv},mYE:function(){return D_},u$d:function(){return DC},Z4p:function(){return DE},A7R:function(){return DY},WsO:function(){return Rt},fGX:function(){return DH},It_:function(){return DU},Uu5:function(){return DB},oy6:function(){return DF},nNd:function(){return RS}});var p,m,g,v,y,b,x,w,j,k,E,_,C,S,O,M,P,A,T,N,R,D,L,z,F,Z,I,V,B,U,H,W,$,q,K,Y,G,X,J,Q,ee,et,en,er,ei,ea,eo,es=n(52322),el=n(2784),eu=n.t(el,2);function ec(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function ed(...e){return el.useCallback(ec(...e),e)}var ef=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(em);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(eh,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(eh,{...r,ref:t,children:n})});ef.displayName="Slot";var eh=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ec(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});eh.displayName="SlotClone";var ep=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function em(e){return el.isValidElement(e)&&e.type===ep}function eg(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function ev({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=eg(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=eg(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}var ey=n(28316),eb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ef:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ex(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var ew=globalThis?.document?el.useLayoutEffect:()=>{};function ej(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}var ek=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(eC);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(eE,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(eE,{...r,ref:t,children:n})});ek.displayName="Slot";var eE=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ej(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});eE.displayName="SlotClone";var e_=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function eC(e){return el.isValidElement(e)&&e.type===e_}var eS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ek:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),eO=globalThis?.document?el.useLayoutEffect:()=>{},eM=e=>{let t,n;let{present:r,children:i}=e,a=function(e){var t,n;let[r,i]=el.useState(),a=el.useRef({}),o=el.useRef(e),s=el.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},el.useReducer((e,t)=>n[e][t]??e,t));return el.useEffect(()=>{let e=eP(a.current);s.current="mounted"===l?e:"none"},[l]),eO(()=>{let t=a.current,n=o.current;if(n!==e){let r=s.current,i=eP(t);e?u("MOUNT"):"none"===i||t?.display==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),eO(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let i=eP(a.current).includes(n.animationName);if(n.target===r&&i&&(u("ANIMATION_END"),!o.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(s.current=eP(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:el.useCallback(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(r),o="function"==typeof i?i({present:a.isPresent}):el.Children.only(i),s=function(...e){return el.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}(a.ref,(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?o.ref:(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?o.props.ref:o.props.ref||o.ref);return"function"==typeof i||a.isPresent?el.cloneElement(o,{ref:s}):null};function eP(e){return e?.animationName||"none"}eM.displayName="Presence";var eA=globalThis?.document?el.useLayoutEffect:()=>{},eT=eu["useId".toString()]||(()=>void 0),eN=0;function eR(e){let[t,n]=el.useState(eT());return eA(()=>{e||n(e=>e??String(eN++))},[e]),e||(t?`radix-${t}`:"")}var eD="Collapsible",[eL,ez]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eD),[eF,eZ]=eL(eD),eI=el.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[l=!1,u]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=ex(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=ex(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:o});return(0,es.jsx)(eF,{scope:n,disabled:a,contentId:eR(),open:l,onOpenToggle:el.useCallback(()=>u(e=>!e),[u]),children:(0,es.jsx)(eS.div,{"data-state":e$(l),"data-disabled":a?"":void 0,...s,ref:t})})});eI.displayName=eD;var eV="CollapsibleTrigger",eB=el.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=eZ(eV,n);return(0,es.jsx)(eS.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":e$(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,i.onOpenToggle)})});eB.displayName=eV;var eU="CollapsibleContent",eH=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=eZ(eU,e.__scopeCollapsible);return(0,es.jsx)(eM,{present:n||i.open,children:({present:e})=>(0,es.jsx)(eW,{...r,ref:t,present:e})})});eH.displayName=eU;var eW=el.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=eZ(eU,n),[s,l]=el.useState(r),u=el.useRef(null),c=function(...e){return el.useCallback(ej(...e),e)}(t,u),d=el.useRef(0),f=d.current,h=el.useRef(0),p=h.current,m=o.open||s,g=el.useRef(m),v=el.useRef();return el.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),ew(()=>{let e=u.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),l(r)}},[o.open,r]),(0,es.jsx)(eS.div,{"data-state":e$(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},children:m&&i})});function e$(e){return e?"open":"closed"}var eq=el.createContext(void 0),eK="Accordion",eY=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[eG,eX,eJ]=function(e){let t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ed(t,a(s,n).collectionRef);return(0,es.jsx)(ef,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=ed(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(ef,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(eK),[eQ,e0]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eK,[eJ,ez]),e1=ez();el.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,es.jsx)(eG.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,es.jsx)(e8,{...r,ref:t}):(0,es.jsx)(e6,{...r,ref:t})})}).displayName=eK;var[e2,e4]=eQ(eK),[e3,e5]=eQ(eK,{collapsible:!1}),e6=el.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...o}=e,[s,l]=ev({prop:n,defaultProp:r,onChange:i});return(0,es.jsx)(e2,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:el.useCallback(()=>a&&l(""),[a,l]),children:(0,es.jsx)(e3,{scope:e.__scopeAccordion,collapsible:a,children:(0,es.jsx)(te,{...o,ref:t})})})}),e8=el.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o=[],s]=ev({prop:n,defaultProp:r,onChange:i}),l=el.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=el.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,es.jsx)(e2,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:(0,es.jsx)(e3,{scope:e.__scopeAccordion,collapsible:!0,children:(0,es.jsx)(te,{...a,ref:t})})})}),[e7,e9]=eQ(eK),te=el.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...o}=e,s=ed(el.useRef(null),t),l=eX(n),u="ltr"===function(e){let t=el.useContext(eq);return e||t||"ltr"}(i),c=function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onKeyDown,e=>{if(!eY.includes(e.key))return;let t=e.target,n=l().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(-1===r)return;e.preventDefault();let o=r,s=i-1,c=()=>{(o=r+1)>s&&(o=0)},d=()=>{(o=r-1)<0&&(o=s)};switch(e.key){case"Home":o=0;break;case"End":o=s;break;case"ArrowRight":"horizontal"===a&&(u?c():d());break;case"ArrowDown":"vertical"===a&&c();break;case"ArrowLeft":"horizontal"===a&&(u?d():c());break;case"ArrowUp":"vertical"===a&&d()}let f=o%i;n[f].ref.current?.focus()});return(0,es.jsx)(e7,{scope:n,disabled:r,direction:i,orientation:a,children:(0,es.jsx)(eG.Slot,{scope:n,children:(0,es.jsx)(eb.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:c})})})}),tt="AccordionItem",[tn,tr]=eQ(tt);el.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=e9(tt,n),o=e4(tt,n),s=e1(n),l=eR(),u=r&&o.value.includes(r)||!1,c=a.disabled||e.disabled;return(0,es.jsx)(tn,{scope:n,open:u,disabled:c,triggerId:l,children:(0,es.jsx)(eI,{"data-orientation":a.orientation,"data-state":ts(u),...s,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})}).displayName=tt;var ti="AccordionHeader";el.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=e9(eK,n),a=tr(ti,n);return(0,es.jsx)(eb.h3,{"data-orientation":i.orientation,"data-state":ts(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})}).displayName=ti;var ta="AccordionTrigger";el.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=e9(eK,n),a=tr(ta,n),o=e5(ta,n),s=e1(n);return(0,es.jsx)(eG.ItemSlot,{scope:n,children:(0,es.jsx)(eB,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})}).displayName=ta;var to="AccordionContent";function ts(e){return e?"open":"closed"}el.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=e9(eK,n),a=tr(to,n),o=e1(n);return(0,es.jsx)(eH,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}).displayName=to;var tl=n(82851),tu=n(7896),tc=n(41816),td=n(26215),tf=n(34540),th=n(72130),tp=n(86029);let tm="dismissableLayer.update",tg=(0,el.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tv=(0,el.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,c=(0,el.useContext)(tg),[d,f]=(0,el.useState)(null),[,h]=(0,el.useState)({}),p=(0,td.e)(t,e=>f(e)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),y=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,w=function(e){let t=(0,tp.W)(e),n=(0,el.useRef)(!1),r=(0,el.useRef)(()=>{});return(0,el.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){tb("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=[...c.branches].some(e=>e.contains(t));!x||n||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),j=function(e){let t=(0,tp.W)(e),n=(0,el.useRef)(!1);return(0,el.useEffect)(()=>{let e=e=>{e.target&&!n.current&&tb("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;[...c.branches].some(e=>e.contains(t))||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())});return!function(e){let t=(0,tp.W)(e);(0,el.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{y!==c.layers.size-1||(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),(0,el.useEffect)(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),ty(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[d,n,c]),(0,el.useEffect)(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),ty())},[d,c]),(0,el.useEffect)(()=>{let e=()=>h({});return document.addEventListener(tm,e),()=>document.removeEventListener(tm,e)},[]),(0,el.createElement)(th.WV.div,(0,tu.Z)({},u,{ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:(0,tc.M)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,tc.M)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,tc.M)(e.onPointerDownCapture,w.onPointerDownCapture)}))});function ty(){let e=new CustomEvent(tm);document.dispatchEvent(e)}function tb(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,th.jH)(i,a):i.dispatchEvent(a)}var tx=n(64680);let tw=eu["useId".toString()]||(()=>void 0),tj=0;function tk(e){return e.split("-")[0]}function tE(e){return e.split("-")[1]}function t_(e){return["top","bottom"].includes(tk(e))?"x":"y"}function tC(e){return"y"===e?"height":"width"}function tS(e,t,n){let r,{reference:i,floating:a}=e,o=i.x+i.width/2-a.width/2,s=i.y+i.height/2-a.height/2,l=t_(t),u=tC(l),c=i[u]/2-a[u]/2,d="x"===l;switch(tk(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:s};break;case"left":r={x:i.x-a.width,y:s};break;default:r={x:i.x,y:i.y}}switch(tE(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let tO=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=await (null==o.isRTL?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=tS(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:a,placement:o,rects:s,platform:l}=t;if(null==n)return{};let u=tM(r),c={x:i,y:a},d=t_(o),f=tE(o),h=tC(d),p=await l.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],j=x-p[h]-u[g],k=x/2-p[h]/2+(v/2-y/2),E=tN(w,tT(k,j)),_=("start"===f?u[m]:u[g])>0&&k!==E&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(_?ktD[e])}let tz={start:"end",end:"start"};function tF(e){return e.replace(/start|end/g,e=>tz[e])}let tZ=["top","right","bottom","left"];function tI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tV(e){return tZ.some(t=>e[t]>=0)}tZ.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let tB=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=tI(await tA(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:tV(t)}}}case"escaped":{let t=tI(await tA(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:tV(t)}}}default:return{}}}}};function tU(e){return"x"===e?"y":"x"}function tH(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function tW(e){if(null==e)return window;if(!tH(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function t$(e){return tW(e).getComputedStyle(e)}function tq(e){return tH(e)?"":e?(e.nodeName||"").toLowerCase():""}function tK(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function tY(e){return e instanceof tW(e).HTMLElement}function tG(e){return e instanceof tW(e).Element}function tX(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tW(e).ShadowRoot||e instanceof ShadowRoot)}function tJ(e){let{overflow:t,overflowX:n,overflowY:r}=t$(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function tQ(e){let t=/firefox/i.test(tK()),n=t$(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 t0(){return!/^((?!chrome|android).)*safari/i.test(tK())}let t1=Math.min,t2=Math.max,t4=Math.round;function t3(e,t,n){var r,i,a,o;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&tY(e)&&(l=e.offsetWidth>0&&t4(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&t4(s.height)/e.offsetHeight||1);let c=tG(e)?tW(e):window,d=!t0()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function t5(e){return((e instanceof tW(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function t6(e){return tG(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function t8(e){return t3(t5(e)).left+t6(e).scrollLeft}function t7(e){return"html"===tq(e)?e:e.assignedSlot||e.parentNode||(tX(e)?e.host:null)||t5(e)}function t9(e){return tY(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ne(e){let t=tW(e),n=t9(e);for(;n&&["table","td","th"].includes(tq(n))&&"static"===getComputedStyle(n).position;)n=t9(n);return n&&("html"===tq(n)||"body"===tq(n)&&"static"===getComputedStyle(n).position&&!tQ(n))?t:n||function(e){let t=t7(e);for(tX(t)&&(t=t.host);tY(t)&&!["html","body"].includes(tq(t));){if(tQ(t))return t;t=t.parentNode}return null}(e)||t}function nt(e){if(tY(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=t3(e);return{width:t.width,height:t.height}}function nn(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=t7(t);return["html","body","#document"].includes(tq(n))?t.ownerDocument.body:tY(n)&&tJ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=tW(r),o=i?[a].concat(a.visualViewport||[],tJ(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(nn(o))}function nr(e,t,n){return"viewport"===t?tP(function(e,t){let n=tW(e),r=t5(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=t0();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n)):tG(t)?function(e,t){let n=t3(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):tP(function(e){var t;let n=t5(e),r=t6(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=t2(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=t2(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+t8(e),l=-r.scrollTop;return"rtl"===t$(i||n).direction&&(s+=t2(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(t5(e)))}let ni={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?function(e){let t=nn(e),n=["absolute","fixed"].includes(t$(e).position)&&tY(e)?ne(e):e;return tG(n)?t.filter(e=>tG(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tX(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==tq(e)):[]}(t):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=nr(t,n,i);return e.top=t2(r.top,e.top),e.right=t1(r.right,e.right),e.bottom=t1(r.bottom,e.bottom),e.left=t2(r.left,e.left),e},nr(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=tY(n),a=t5(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==tq(n)||tJ(a))&&(o=t6(n)),tY(n))){let e=t3(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}},isElement:tG,getDimensions:nt,getOffsetParent:ne,getDocumentElement:t5,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=tY(t),i=t5(t),a=t3(e,r&&function(e){let t=t3(e);return t4(t.width)!==e.offsetWidth||t4(t.height)!==e.offsetHeight}(t),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==tq(t)||tJ(i))&&(o=t6(t)),tY(t)){let e=t3(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=t8(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}(t,ne(n),r),floating:{...nt(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===t$(e).direction};function na(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=!0,animationFrame:s=!1}=r,l=i&&!s,u=a&&!s,c=l||u?[...tG(e)?nn(e):[],...nn(t)]:[];c.forEach(e=>{l&&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}),tG(e)&&!s&&f.observe(e),f.observe(t)}let h=s?t3(e):null;return s&&function t(){let r=t3(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let no=(e,t,n)=>tO(e,t,{platform:ni,...n});var ns="undefined"!=typeof document?el.useLayoutEffect:el.useEffect;let nl=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 tR({element:t.current,padding:n}).fn(e)}else if(t)return tR({element:t,padding:n}).fn(e);return{}}}},nu=(0,el.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,el.createElement)(th.WV.svg,(0,tu.Z)({},a,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,el.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),nc="Popper",[nd,nf]=(0,tf.b)(nc),[nh,np]=nd(nc),nm=(0,el.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=np("PopperAnchor",n),o=(0,el.useRef)(null),s=(0,td.e)(t,o);return(0,el.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||o.current)}),r?null:(0,el.createElement)(th.WV.div,(0,tu.Z)({},i,{ref:s}))}),ng="PopperContent",[nv,ny]=nd(ng),[nb,nx]=nd(ng,{hasParent:!1,positionUpdateFns:new Set}),nw=(0,el.forwardRef)((e,t)=>{var n,r,i,a,o,s,l,u,c,d,f,h;let{__scopePopper:p,side:m="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:b=0,collisionBoundary:x=[],collisionPadding:w=0,sticky:j="partial",hideWhenDetached:k=!1,avoidCollisions:E=!0,..._}=e,C=np(ng,p),[S,O]=(0,el.useState)(null),M=(0,td.e)(t,e=>O(e)),[P,A]=(0,el.useState)(null),T=function(e){let[t,n]=(0,el.useState)(void 0);return(0,tx.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}(P),N=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,R=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,D="number"==typeof w?w:{top:0,right:0,bottom:0,left:0,...w},L=Array.isArray(x)?x:[x],z=L.length>0,F={padding:D,boundary:L.filter(nE),altBoundary:z},{reference:Z,floating:I,strategy:V,x:B,y:U,placement:H,middlewareData:W,update:$}=function(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,a=el.useRef(null),o=el.useRef(null),s=function(e){let t=el.useRef(e);return ns(()=>{t.current=e}),t}(i),l=el.useRef(null),[u,c]=el.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=el.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=el.useCallback(()=>{a.current&&o.current&&no(a.current,o.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&ey.flushSync(()=>{c(e)})})},[d,n,r]);ns(()=>{p.current&&h()},[h]);let p=el.useRef(!1);ns(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=el.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),a.current&&o.current){if(s.current){let e=s.current(a.current,o.current,h);l.current=e}else h()}},[h,s]),g=el.useCallback(e=>{a.current=e,m()},[m]),v=el.useCallback(e=>{o.current=e,m()},[m]),y=el.useMemo(()=>({reference:a,floating:o}),[]);return el.useMemo(()=>({...u,update:h,refs:y,reference:g,floating:v}),[u,h,y,g,v])}({strategy:"fixed",placement:m+("center"!==v?"-"+v:""),whileElementsMounted:na,middleware:[{name:"offset",options:c={mainAxis:g+R,alignmentAxis:y},async fn(e){let{x:t,y:n}=e,r=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=tk(n),s=tE(n),l="x"===t_(n),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(e,c);return{x:t+r.x,y:n+r.y,data:r}}},E?{name:"shift",options:f={mainAxis:!0,crossAxis:!1,limiter:"partial"===j?(void 0===d&&(d={}),{options:d,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=d,u={x:t,y:n},c=t_(r),f=tU(c),h=u[c],p=u[f],m="function"==typeof o?o({...i,placement:r}):o,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===c?"height":"width",t=i.reference[c]-i.floating[e]+g.mainAxis,n=i.reference[c]+i.reference[e]-g.mainAxis;hn&&(h=n)}if(l){var v,y,b,x;let e="y"===c?"width":"height",t=["top","left"].includes(tk(r)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(y=a.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),o=i.reference[f]+i.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?g.crossAxis:0);po&&(p=o)}return{[c]:h,[f]:p}}}):void 0,...F},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=f,l={x:t,y:n},u=await tA(e,s),c=t_(tk(r)),d=tU(c),h=l[c],p=l[d];if(i){let e="y"===c?"bottom":"right";h=tN(h+u["y"===c?"top":"left"],tT(h,h-u[e]))}if(a){let e="y"===d?"bottom":"right";p=tN(p+u["y"===d?"top":"left"],tT(p,p-u[e]))}let m=o.fn({...e,[c]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-n}}}}:void 0,P?nl({element:P,padding:b}):void 0,E?{name:"flip",options:h={...F},async fn(e){var t,n,r,i;let{placement:a,middlewareData:o,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:g=!0,...v}=h,y=tk(a),b=p||(y!==l&&g?function(e){let t=tL(e);return[tF(e),t,tF(t)]}(l):[tL(l)]),x=[l,...b],w=await tA(e,v),j=[],k=(null==(t=o.flip)?void 0:t.overflows)||[];if(d&&j.push(w[y]),f){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=tE(e),i=t_(e),a=tC(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=tL(o)),{main:o,cross:tL(o)}}(a,s,await (null==u.isRTL?void 0:u.isRTL(c.floating)));j.push(w[e],w[t])}if(k=[...k,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(n=null==(r=o.flip)?void 0:r.index)?n:0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let s="bottom";switch(m){case"bestFit":{let e=null==(i=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:i[0].placement;e&&(s=e);break}case"initialPlacement":s=l}if(a!==s)return{reset:{placement:s}}}return{}}}:void 0,n_({arrowWidth:N,arrowHeight:R}),k?tB({strategy:"referenceHidden"}):void 0].filter(nk)});(0,tx.b)(()=>{Z(C.anchor)},[Z,C.anchor]);let q=null!==B&&null!==U,[K,Y]=nC(H),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(a=W.arrow)||void 0===a?void 0:a.y,J=(null===(o=W.arrow)||void 0===o?void 0:o.centerOffset)!==0,[Q,ee]=(0,el.useState)();(0,tx.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=nx(ng,p),er=!et;(0,el.useLayoutEffect)(()=>{if(!er)return en.add($),()=>{en.delete($)}},[er,en,$]),(0,el.useLayoutEffect)(()=>{er&&q&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,q,en]);let ei={"data-side":K,"data-align":Y,..._,ref:M,style:{..._.style,animation:q?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,el.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:V,left:0,top:0,transform:q?`translate3d(${Math.round(B)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,el.createElement)(nv,{scope:p,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:J},er?(0,el.createElement)(nb,{scope:p,hasParent:!0,positionUpdateFns:en},(0,el.createElement)(th.WV.div,ei)):(0,el.createElement)(th.WV.div,ei)))}),nj={top:"bottom",right:"left",bottom:"top",left:"right"};function nk(e){return void 0!==e}function nE(e){return null!==e}let n_=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=nC(s),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="",b="";return"bottom"===h?(y=c?m:`${g}px`,b=`${-f}px`):"top"===h?(y=c?m:`${g}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${v}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${v}px`),{data:{x:y,y:b}}}});function nC(e){let[t,n="center"]=e.split("-");return[t,n]}let nS=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,el.useState)(null);return(0,el.createElement)(nh,{scope:t,anchor:r,onAnchorChange:i},n)},nO=(0,el.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?ey.createPortal((0,el.createElement)(th.WV.div,(0,tu.Z)({},i,{ref:t})),r):null}),nM=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,el.useState)(),a=(0,el.useRef)({}),o=(0,el.useRef)(e),s=(0,el.useRef)("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,el.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,el.useEffect)(()=>{let e=nP(a.current);s.current="mounted"===l?e:"none"},[l]),(0,tx.b)(()=>{let t=a.current,n=o.current;if(n!==e){let r=s.current,i=nP(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]),(0,tx.b)(()=>{if(r){let e=e=>{let t=nP(a.current).includes(e.animationName);e.target===r&&t&&(0,ey.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===r&&(s.current=nP(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(l),ref:(0,el.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):el.Children.only(n),a=(0,td.e)(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,el.cloneElement)(i,{ref:a}):null};function nP(e){return(null==e?void 0:e.animationName)||"none"}nM.displayName="Presence";var nA=n(99575),nT=n(73597);let nN=(0,el.forwardRef)((e,t)=>(0,el.createElement)(th.WV.span,(0,tu.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}}))),[nR,nD]=(0,tf.b)("Tooltip",[nf]),nL=nf(),nz="tooltip.open",[nF,nZ]=nR("TooltipProvider"),nI="Tooltip",[nV,nB]=nR(nI),nU="TooltipTrigger",nH=(0,el.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=nB(nU,n),a=nZ(nU,n),o=nL(n),s=(0,el.useRef)(null),l=(0,td.e)(t,s,i.onTriggerChange),u=(0,el.useRef)(!1),c=(0,el.useRef)(!1),d=(0,el.useCallback)(()=>u.current=!1,[]);return(0,el.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,el.createElement)(nm,(0,tu.Z)({asChild:!0},o),(0,el.createElement)(th.WV.button,(0,tu.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,tc.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,tc.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,tc.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,tc.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,tc.M)(e.onBlur,i.onClose),onClick:(0,tc.M)(e.onClick,e=>{0===e.detail&&i.onClose()})})))}),nW="TooltipPortal",[n$,nq]=nR(nW,{forceMount:void 0}),nK="TooltipContent",nY=(0,el.forwardRef)((e,t)=>{let n=nq(nK,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=nB(nK,e.__scopeTooltip);return(0,el.createElement)(nM,{present:r||o.open},o.disableHoverableContent?(0,el.createElement)(nQ,(0,tu.Z)({side:i},a,{ref:t})):(0,el.createElement)(nG,(0,tu.Z)({side:i},a,{ref:t})))}),nG=(0,el.forwardRef)((e,t)=>{let n=nB(nK,e.__scopeTooltip),r=nZ(nK,e.__scopeTooltip),i=(0,el.useRef)(null),a=(0,td.e)(t,i),[o,s]=(0,el.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,el.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,el.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;s(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,el.useEffect)(()=>()=>f(),[f]),(0,el.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,el.useEffect)(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}(n,o);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,o,u,f]),(0,el.createElement)(nQ,(0,tu.Z)({},e,{ref:a}))}),[nX,nJ]=nR(nI,{isInside:!1}),nQ=(0,el.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=nB(nK,n),u=nL(n),{onClose:c}=l;return(0,el.useEffect)(()=>(document.addEventListener(nz,c),()=>document.removeEventListener(nz,c)),[c]),(0,el.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,el.createElement)(tv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,el.createElement)(nw,(0,tu.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,el.createElement)(nA.A4,null,r),(0,el.createElement)(nX,{scope:n,isInside:!0},(0,el.createElement)(nN,{id:l.contentId,role:"tooltip"},i||r))))}),n0=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=nZ(nI,e.__scopeTooltip),u=nL(t),[c,d]=(0,el.useState)(null),f=function(e){let[t,n]=el.useState(tw());return(0,tx.b)(()=>{n(e=>null!=e?e:String(tj++))},[void 0]),t?`radix-${t}`:""}(),h=(0,el.useRef)(0),p=null!=o?o:l.disableHoverableContent,m=null!=s?s:l.delayDuration,g=(0,el.useRef)(!1),[v=!1,y]=(0,nT.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(nz))):l.onClose(),null==a||a(e)}}),b=(0,el.useMemo)(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),x=(0,el.useCallback)(()=>{window.clearTimeout(h.current),g.current=!1,y(!0)},[y]),w=(0,el.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,el.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0)},m)},[m,y]);return(0,el.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,el.createElement)(nS,u,(0,el.createElement)(nV,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,el.useCallback)(()=>{l.isOpenDelayed?j():x()},[l.isOpenDelayed,j,x]),onTriggerLeave:(0,el.useCallback)(()=>{p?w():window.clearTimeout(h.current)},[w,p]),onOpen:x,onClose:w,disableHoverableContent:p},n))},n1=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=nB(nW,t);return(0,el.createElement)(n$,{scope:t,forceMount:n},(0,el.createElement)(nM,{present:n||a.open},(0,el.createElement)(nO,{asChild:!0,container:i},r)))},n2=(0,tl.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"}}),n4=el.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:a,weight:o,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,es.jsx)(n,{ref:t,className:(0,tl.cx)(r,n2({font:i,color:a,weight:o,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),n3=el.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,es.jsx)(n4,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,tl.cx)("leading-relaxed md:leading-relaxed",e.className)})}),n5=(0,tl.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"}}),n6=el.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,es.jsx)("div",{ref:t,className:n5({className:n,color:r}),...i})});var n8=n(93542);let n7=(void 0===n8||n8.env,"production"),n9=1/60*1e3,re="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),rt="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(re()),n9),rn=!0,rr=!1,ri=!1,ra={delta:0,timestamp:0},ro=["read","update","preRender","render","postRender"],rs=ro.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let l=s&&i,u=l?t:n;return a&&o.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),o.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nrr=!0),e),{}),rl=ro.reduce((e,t)=>{let n=rs[t];return e[t]=(e,t=!1,r=!1)=>(rr||rh(),n.schedule(e,t,r)),e},{}),ru=ro.reduce((e,t)=>(e[t]=rs[t].cancel,e),{}),rc=ro.reduce((e,t)=>(e[t]=()=>rs[t].process(ra),e),{}),rd=e=>rs[e].process(ra),rf=e=>{rr=!1,ra.delta=rn?n9:Math.max(Math.min(e-ra.timestamp,40),1),ra.timestamp=e,ri=!0,ro.forEach(rd),ri=!1,rr&&(rn=!1,rt(rf))},rh=()=>{rr=!0,rn=!0,ri||rt(rf)},rp=()=>ra,rm="undefined"!=typeof document,rg=rm?el.useLayoutEffect:el.useEffect;function rv(){let e=(0,el.useRef)(!1);return rg(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ry=(0,el.createContext)(null);function rb(e){let t=(0,el.useRef)(null);return null===t.current&&(t.current=e()),t.current}class rx extends el.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function rw({children:e,isPresent:t}){let n=(0,el.useId)(),r=(0,el.useRef)(null),i=(0,el.useRef)({width:0,height:0,top:0,left:0});return(0,el.useInsertionEffect)(()=>{let{width:e,height:a,top:o,left:s}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -6,11 +6,11 @@ top: ${o}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),el.createElement(rx,{isPresent:t,childRef:r,sizeRef:i},el.cloneElement(e,{ref:r}))}let rj=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let s=rb(rk),l=(0,el.useId)(),u=(0,el.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),a?void 0:[n]);return(0,el.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),el.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===o&&(e=el.createElement(rw,{isPresent:n},e)),el.createElement(ry.Provider,{value:u},e)};function rk(){return new Map}let rE=(0,el.createContext)({});function r_(e){return(0,el.useEffect)(()=>()=>e(),[])}let rC=new Set;function rS(e,t,n){e||rC.has(t)||(console.warn(t),n&&console.warn(n),rC.add(t))}let rO=e=>e.key||"",rM=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",rS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=rv(),[t,n]=(0,el.useState)(0),r=(0,el.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,el.useCallback)(()=>rl.postRender(r),[r]),t]}(),l=(0,el.useContext)(rE).forceRender;l&&(s=l);let u=rv(),c=function(e){let t=[];return el.Children.forEach(e,e=>{(0,el.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,el.useRef)(d),p=(0,el.useRef)(new Map).current,m=(0,el.useRef)(!0);if(rg(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=rO(e);t.set(n,e)})}(c,p),h.current=d}),r_(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return el.createElement(el.Fragment,null,d.map(e=>el.createElement(rj,{key:rO(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:o},e)));d=[...d];let g=h.current.map(rO),v=c.map(rO),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,el.createElement(rj,{key:rO(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:el.createElement(rj,{key:rO(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),"production"!==n7&&"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.'),el.createElement(el.Fragment,null,f.size?d:d.map(e=>(0,el.cloneElement)(e)))},rP=(0,el.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rA=(0,el.createContext)({}),rT=(0,el.createContext)({strict:!1});function rN(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rR(e){return"string"==typeof e||Array.isArray(e)}function rD(e){return"object"==typeof e&&"function"==typeof e.start}let rL=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rz(e){return rD(e.animate)||rL.some(t=>rR(e[t]))}function rF(e){return!!(rz(e)||e.variants)}function rZ(e){return Array.isArray(e)?e.join(" "):e}let rI=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rB={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"])},rV={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rU=1;class rH extends el.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rW=(0,el.createContext)({}),r$=Symbol.for("motionComponentSymbol"),rq=["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 rK(e){if("string"!=typeof e||e.includes("-"));else if(rq.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rY={},rG=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rX=new Set(rG);function rJ(e,{layout:t,layoutId:n}){return rX.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rY[e]||"opacity"===e)}let rQ=e=>!!(null==e?void 0:e.getVelocity),r0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r1=(e,t)=>rG.indexOf(e)-rG.indexOf(t);function r2(e){return e.startsWith("--")}let r4=(e,t)=>t&&"number"==typeof e?t.transform(e):e,r3=(e,t)=>n=>Math.max(Math.min(n,t),e),r5=e=>e%1?Number(e.toFixed(5)):e,r6=/(-)?([\d]*\.?[\d])+/g,r8=/(#[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,r7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function r9(e){return"string"==typeof e}let ie=e=>({test:t=>r9(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),it=ie("deg"),ir=ie("%"),ii=ie("px"),ia=ie("vh"),io=ie("vw"),is=Object.assign(Object.assign({},ir),{parse:e=>ir.parse(e)/100,transform:e=>ir.transform(100*e)}),il={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},iu=Object.assign(Object.assign({},il),{transform:r3(0,1)}),ic=Object.assign(Object.assign({},il),{default:1}),id={...il,transform:Math.round},ih={borderWidth:ii,borderTopWidth:ii,borderRightWidth:ii,borderBottomWidth:ii,borderLeftWidth:ii,borderRadius:ii,radius:ii,borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomRightRadius:ii,borderBottomLeftRadius:ii,width:ii,maxWidth:ii,height:ii,maxHeight:ii,size:ii,top:ii,right:ii,bottom:ii,left:ii,padding:ii,paddingTop:ii,paddingRight:ii,paddingBottom:ii,paddingLeft:ii,margin:ii,marginTop:ii,marginRight:ii,marginBottom:ii,marginLeft:ii,rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:ic,scaleX:ic,scaleY:ic,scaleZ:ic,skew:it,skewX:it,skewY:it,distance:ii,translateX:ii,translateY:ii,translateZ:ii,x:ii,y:ii,z:ii,perspective:ii,transformPerspective:ii,opacity:iu,originX:is,originY:is,originZ:ii,zIndex:id,fillOpacity:iu,strokeOpacity:iu,numOctaves:id};function ip(e,t,n,r){let{style:i,vars:a,transform:o,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(r2(e)){a[e]=n;continue}let r=ih[e],f=r4(n,r);if(rX.has(e)){if(u=!0,o[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,a){let o="";for(let n of(t.sort(r1),t))o+=`${r0[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}=l;i.transformOrigin=`${e} ${t} ${n}`}}let im=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ig(e,t,n){for(let r in t)rQ(t[r])||rJ(r,n)||(e[r]=t[r])}let iv=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 iy(e){return iv.has(e)}let ib=e=>!iy(e);try{(m=require("@emotion/is-prop-valid").default)&&(ib=e=>e.startsWith("on")?!iy(e):m(e))}catch(e){}function ix(e,t,n){return"string"==typeof e?e:ii.transform(t+n*e)}let iw={offset:"stroke-dashoffset",array:"stroke-dasharray"},ij={offset:"strokeDashoffset",array:"strokeDasharray"};function ik(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:s=0,...l},u,c){ip(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=ix(t,e.x,e.width),i=ix(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?iw:ij;e[a.offset]=ii.transform(-r);let o=ii.transform(t),s=ii.transform(n);e[a.array]=`${o} ${s}`}(d,a,o,s,!1)}let iE=()=>({...im(),attrs:{}}),i_=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function iC(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 iS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function iO(e,t,n,r){for(let n in iC(e,t,void 0,r),t.attrs)e.setAttribute(iS.has(n)?n:i_(n),t.attrs[n])}function iM(e){let{style:t}=e,n={};for(let r in t)(rQ(t[r])||rJ(r,e))&&(n[r]=t[r]);return n}function iP(e){let t=iM(e);for(let n in e)rQ(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function iA(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 iT=e=>Array.isArray(e),iN=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),iR=e=>iT(e)?e[e.length-1]||0:e;function iD(e){let t=rQ(e)?e.get():e;return iN(t)?t.toValue():t}let iL=e=>(t,n)=>{let r=(0,el.useContext)(rA),i=(0,el.useContext)(ry),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]=iD(a[e]);let{initial:o,animate:s}=e,l=rz(e),u=rF(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;return d&&"boolean"!=typeof d&&!rD(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=iA(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():rb(a)},iz={useVisualState:iL({scrapeMotionValuesFromProps:iP,createRenderState:iE,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}}ik(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),iO(t,n)}})},iF={useVisualState:iL({scrapeMotionValuesFromProps:iM,createRenderState:im})};function iZ(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function iI(e,t,n,r){(0,el.useEffect)(()=>{let i=e.current;if(n&&i)return iZ(i,t,n,r)},[e,t,n,r])}function iB(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(g=F||(F={})).Animate="animate",g.Hover="whileHover",g.Tap="whileTap",g.Drag="whileDrag",g.Focus="whileFocus",g.InView="whileInView",g.Exit="exit";let iV={pageX:0,pageY:0};function iU(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||iV;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 iH=(e,t=!1)=>{let n=t=>e(t,iU(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},iW=()=>rm&&null===window.onpointerdown,i$=()=>rm&&null===window.ontouchstart,iq=()=>rm&&null===window.onmousedown,iK={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},iY={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function iG(e){if(iW());else if(i$())return iY[e];else if(iq())return iK[e];return e}function iX(e,t,n,r){return iZ(e,iG(t),iH(n,"pointerdown"===t),r)}function iJ(e,t,n,r){return iI(e,iG(t),n&&iH(n,"pointerdown"===t),r)}function iQ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let i0=iQ("dragHorizontal"),i1=iQ("dragVertical");function i2(e){let t=!1;if("y"===e)t=i1();else if("x"===e)t=i0();else{let e=i0(),n=i1();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function i4(){let e=i2(!0);return!e||(e(),!1)}function i3(e,t,n){return(r,i)=>{!(!iB(r)||i4())&&(e.animationState&&e.animationState.setActive(F.Hover,t),n&&n(r,i))}}let i5=(e,t)=>!!t&&(e===t||i5(e,t.parentElement)),i6=(e,t)=>n=>t(e(n)),i8=(...e)=>e.reduce(i6),i7=new WeakMap,i9=new WeakMap,ae=e=>{let t=i7.get(e.target);t&&t(e)},at=e=>{e.forEach(ae)},an={some:0,all:1},ar=e=>t=>(e(t),null),ai={inView:ar(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,el.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,el.useEffect)(()=>{e&&r&&("production"!==n7&&rS(!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(F.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:o}){(0,el.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:an[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;i9.has(n)||i9.set(n,{});let r=i9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(at,{root:e,...t})),r[i]}(t);return i7.set(e,n),r.observe(e),()=>{i7.delete(e),r.unobserve(e)}}(n.current,s,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(F.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:ar(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,o=(0,el.useRef)(!1),s=(0,el.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),o.current=!1,i.animationState&&i.animationState.setActive(F.Tap,!1),!i4()}function d(t,r){c()&&(i5(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,s.current=i8(iX(window,"pointerup",d,l),iX(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(F.Tap,!0),t&&t(e,n))}iJ(i,"pointerdown",a?h:void 0,l),r_(u)}),focus:ar(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;iI(t,"focus",e?()=>{n&&n.setActive(F.Focus,!0)}:void 0),iI(t,"blur",e?()=>{n&&n.setActive(F.Focus,!1)}:void 0)}),hover:ar(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){iJ(r,"pointerenter",e||n?i3(r,!0,e):void 0,{passive:!e}),iJ(r,"pointerleave",t||n?i3(r,!1,t):void 0,{passive:!t})})};function aa(){let e=(0,el.useContext)(ry);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,el.useId)();return(0,el.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function ao(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 al=function(){},au=function(){};let ac=(e,t,n)=>Math.min(Math.max(n,e),t);function ad(e,t){return e*Math.sqrt(1-t*t)}let af=["duration","bounce"],ah=["stiffness","damping","mass"];function ap(e,t){return t.some(t=>void 0!==e[t])}function am(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=as(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ap(e,ah)&&ap(e,af)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;al(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=ac(.05,1,o),e=ac(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/ad(t,o)*Math.exp(-i)},a=t=>{let r=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=ad(Math.pow(t,2),o);return(r*n+n-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let s=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(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,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=ag,p=ag;function m(){let e=c?-(c/1e3):0,r=n-t,a=l/(2*Math.sqrt(s*u)),o=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=ad(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 s=Math.exp(-a*o*i),l=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)o.done=e>=d;else{let a=1e3*p(e),s=Math.abs(n-t)<=i;o.done=Math.abs(a)<=r&&s}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}am.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ag=e=>0,av=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},ay=(e,t,n)=>-n*e+n*t+e,ab=(e,t)=>n=>!!(r9(n)&&r7.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ax=(e,t,n)=>r=>{if(!r9(r))return r;let[i,a,o,s]=r.match(r6);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},aw=r3(0,255),aj=Object.assign(Object.assign({},il),{transform:e=>Math.round(aw(e))}),ak={test:ab("rgb","red"),parse:ax("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aj.transform(e)+", "+aj.transform(t)+", "+aj.transform(n)+", "+r5(iu.transform(r))+")"},aE={test:ab("#"),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:ak.transform},a_={test:ab("hsl","hue"),parse:ax("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ir.transform(r5(t))+", "+ir.transform(r5(n))+", "+r5(iu.transform(r))+")"};function aC(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 aS({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,s=2*n-r;i=aC(s,r,e+1/3),a=aC(s,r,e),o=aC(s,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 aO=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},aM=[aE,ak,a_],aP=e=>aM.find(t=>t.test(e)),aA=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,aT=(e,t)=>{let n=aP(e),r=aP(t);au(!!n,aA(e)),au(!!r,aA(t));let i=n.parse(e),a=r.parse(t);n===a_&&(i=aS(i),n=ak),r===a_&&(a=aS(a),r=ak);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=aO(i[t],a[t],e));return o.alpha=ay(i.alpha,a.alpha,e),n.transform(o)}},aN={test:e=>ak.test(e)||aE.test(e)||a_.test(e),parse:e=>ak.test(e)?ak.parse(e):a_.test(e)?a_.parse(e):aE.parse(e),transform:e=>r9(e)?e:e.hasOwnProperty("red")?ak.transform(e):a_.transform(e)},aR="${c}",aD="${n}";function aL(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(r8);r&&(n=r.length,e=e.replace(r8,aR),t.push(...r.map(aN.parse)));let i=e.match(r6);return i&&(e=e.replace(r6,aD),t.push(...i.map(il.parse))),{values:t,numColors:n,tokenised:e}}function az(e){return aL(e).values}function aF(e){let{values:t,numColors:n,tokenised:r}=aL(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)&&r9(e)&&(null!==(n=null===(t=e.match(r6))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(r8))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:az,createTransformer:aF,getAnimatableNone:function(e){let t=az(e);return aF(e)(t.map(aZ))}},aB=e=>"number"==typeof e;function aV(e,t){return aB(e)?n=>ay(e,t,n):aN.test(e)?aT(e,t):a$(e,t)}let aU=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>aV(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]=aV(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function aW(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=aW(e),i=aW(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?i8(aU(r.parsed,i.parsed),n):(al(!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}`)},aq=(e,t)=>n=>ay(e,t,n);function aK(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;au(a===t.length,"Both input and output ranges must be the same length"),au(!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])?aq:"string"==typeof r?aN.test(r)?aT:a$:Array.isArray(r)?aU:"object"==typeof r?aH:void 0),o=e.length-1;for(let n=0;nn(av(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 s=av(e[a],e[a+1],i);return t[a](s)}}(e,o);return n?t=>s(ac(e[0],e[a-1],t)):s}let aY=e=>t=>1-e(1-t),aG=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aX=e=>t=>t*t*((e+1)*t-e),aJ=4/11,aQ=8/11,a0=e=>e,a1=e=>Math.pow(e,2),a2=aY(a1),a4=aG(a1),a3=e=>1-Math.sin(Math.acos(e)),a5=aY(a3),a6=aG(a5),a8=aX(1.525),a7=aY(a8),a9=aG(a8),oe=(e=>{let t=aX(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),ot=4356/361,on=35442/1805,or=16061/1805,oi=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 l(){return aK(s,o,{ease:Array.isArray(n)?n:o.map(()=>n||a4).splice(0,o.length-1)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=l()}}}let os={keyframes:oo,spring:am,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},s=n*e,l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};function ol(e,t,n=0){return e-t-n}let ou=e=>{let t=({delta:t})=>e(t);return{start:()=>rl.update(t,!0),stop:()=>ru.update(t)}};function oc(e){let t,n,r;var i,{from:a,autoplay:o=!0,driver:s=ou,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:g}=e,v=as(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=v,b=0,x=v.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return oo;if(os[e.type])return os[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 am;return oo}(v);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,a,y))&&(r=aK([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=s(function(e){if(j||(e=-e),l+=e,!w){let e=E.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==g||g(n),w){if(0===b&&(null!=x||(x=l)),b=a+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?ol(t+-e,t,n):t-(e-t)+n}(l,x,d,j=b%2==0):(l=ol(l,x,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let od=e=>1e3*e,of=(e,t)=>1-3*t+3*e,oh=(e,t)=>3*t-6*e,op=e=>3*e,om=(e,t,n)=>((of(t,n)*e+oh(t,n))*e+op(t))*e,og=(e,t,n)=>3*of(t,n)*e*e+2*oh(t,n)*e+op(t),ov={linear:a0,easeIn:a1,easeInOut:a4,easeOut:a2,circIn:a3,circInOut:a6,circOut:a5,backIn:a8,backInOut:a9,backOut:a7,anticipate:oe,bounceIn:oa,bounceInOut:e=>e<.5?.5*(1-oi(1-2*e)):.5*oi(2*e-1)+.5,bounceOut:oi},oy=e=>{if(Array.isArray(e)){au(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 a0;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=om(.1*t,e,n);return a=>0===a||1===a?a:om(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,s=og(o,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=og(t,n,r);if(0===i)break;let a=om(t,n,r)-e;t-=a/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){let a,o;let s=0;do(a=om(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+.1,e,n)}(a),t,r)}(t,n,r,i)}return"string"==typeof e?(au(void 0!==ov[e],`Invalid easing type '${e}'`),ov[e]):e},ob=e=>Array.isArray(e)&&"number"!=typeof e[0],ox=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&aI.test(t)&&!t.startsWith("url(")),ow=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oj=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ok=()=>({type:"keyframes",ease:"linear",duration:.3}),oE=e=>({type:"keyframes",duration:.8,values:e}),o_={x:ow,y:ow,z:ow,rotate:ow,rotateX:ow,rotateY:ow,rotateZ:ow,scaleX:oj,scaleY:oj,scale:oj,opacity:ok,backgroundColor:ok,color:ok,default:oj},oC=(e,t)=>{let n;return n=iT(t)?oE:o_[e]||o_.default,{to:t,...n(t)}},oS=new Set(["brightness","contrast","saturate","opacity"]);function oO(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(r6)||[];if(!r)return e;let i=n.replace(r,""),a=oS.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}let oM=/([a-z-]*)\(.*?\)/g,oP=Object.assign(Object.assign({},aI),{getAnimatableNone:e=>{let t=e.match(oM);return t?t.map(oO).join(" "):e}}),oA={...ih,color:aN,backgroundColor:aN,outlineColor:aN,fill:aN,stroke:aN,borderColor:aN,borderTopColor:aN,borderRightColor:aN,borderBottomColor:aN,borderLeftColor:aN,filter:oP,WebkitFilter:oP},oT=e=>oA[e];function oN(e,t){var n;let r=oT(e);return r!==oP&&(r=aI),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function oR(e,t){let n=performance.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(ru.read(r),e(a-t))};return rl.read(r,!0),()=>ru.read(r)}let oD=!1;function oL(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oz(e){return"number"==typeof e?0:oN("",e)}function oF(e,t){return e[t]||e.default||e}function oZ(e,t,n,r={}){return t.start(i=>{var a,o;let s,l;let u=function(e,t,n,r,i){let a=oF(r,e)||{},o=void 0!==a.from?a.from:t.get(),s=ox(e,n);"none"===o&&s&&"string"==typeof n?o=oN(e,n):oL(o)&&"string"==typeof n?o=oz(n):!Array.isArray(n)&&oL(n)&&"string"==typeof o&&(n=oz(o));let l=ox(e,o);return al(l===s,`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.`),l&&s&&!1!==a.type?function(){var r;let s={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:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function 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:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:g(e)});else{let r,o,s=i*t+e;void 0!==u&&(s=u(s));let c=g(s),d=c===n?-1:1;v({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n,i;r=o,o=e,n=e-r,t=(i=rp().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...a}):oc({...(r=a,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oC(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...a}){let o={...a};return t&&(o.offset=t),a.duration&&(o.duration=od(a.duration)),a.repeatDelay&&(o.repeatDelay=od(a.repeatDelay)),e&&(o.ease=ob(e)?e.map(oy):oy(e)),"tween"===a.type&&(o.type="keyframes"),(n||i||r)&&(al(!oD,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oD=!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=>{s.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=iR(n);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),c=null!==(o=null!==(a=(oF(r,e)||{}).delay)&&void 0!==a?a:r.delay)&&void 0!==o?o:0,d=()=>s=u();return c?l=oR(d,od(c)):d(),()=>{l&&l(),s&&s.stop()}})}let oI=e=>/^\-?\d*\.?\d+$/.test(e),oB=e=>/^0[^.\s]+$/.test(e);function oV(e,t){-1===e.indexOf(t)&&e.push(t)}function oU(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oH{constructor(){this.subscriptions=[]}add(e){return oV(this.subscriptions,e),()=>oU(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 o${constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oH,this.velocityUpdateSubscribers=new oH,this.renderSubscribers=new oH,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=rp();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,rl.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=()=>rl.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=oW(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 oq(e){return new o$(e)}let oK=e=>t=>t.test(e),oY=[il,ii,ir,it,io,ia,{test:e=>"auto"===e,parse:e=>e}],oG=e=>oY.find(oK(e)),oX=[...oY,aN,aI],oJ=e=>oX.find(oK(e));function oQ(e,t,n){let r=e.getProps();return iA(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 o0(e){return!!(rQ(e)&&e.add)}function o1(e,t,n={}){var r;let i=oQ(e,t,n.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>o2(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(o4).forEach((e,r)=>{o.push(o1(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(t)}}function o2(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=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 l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...o};e.shouldReduceMotion&&rX.has(t)&&(a={...a,type:!1,delay:0});let s=oZ(t,r,i,a);o0(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oQ(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=iR(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oq(n))}}(e,s)})}function o4(e,t){return e.sortNodePosition(t)}let o3=[F.Animate,F.InView,F.Focus,F.Hover,F.Tap,F.Drag,F.Exit],o5=[...o3].reverse(),o6=o3.length;function o8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o7={animation:ar(({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=>o1(e,t,n)));else if("string"==typeof t)r=o1(e,t,n);else{let i="function"==typeof t?oQ(e,t,n.custom):t;r=o2(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[F.Animate]:o8(!0),[F.InView]:o8(),[F.Hover]:o8(),[F.Tap]:o8(),[F.Drag]:o8(),[F.Focus]:o8(),[F.Exit]:o8()},r=!0,i=(t,n)=>{let r=oQ(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(a,o){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(v)?v:[v],E=k.reduce(i,{});!1===b&&(E={});let{prevResolvedValues:_={}}=g,C={..._,...E},S=e=>{j=!0,f.delete(e),g.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=_[e];h.hasOwnProperty(e)||(t!==n?iT(t)&&iT(n)?!ao(t,n)||w?S(e):g.protectedKeys[e]=!0:void 0!==t?S(e):f.add(e):void 0!==t&&f.has(e)?S(e):g.protectedKeys[e]=!0)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!x&&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 s=a(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),rD(t)&&(0,el.useEffect)(()=>t.subscribe(e),[t])}),exit:ar(e=>{let{custom:t,visualElement:n}=e,[r,i]=aa(),a=(0,el.useContext)(ry);(0,el.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(F.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},o9=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),se=e=>o9(e)&&e.hasOwnProperty("z"),st=(e,t)=>Math.abs(e-t);function sn(e,t){return aB(e)&&aB(t)?st(e,t):o9(e)&&o9(t)?Math.sqrt(Math.pow(st(e.x,t.x),2)+Math.pow(st(e.y,t.y),2)+Math.pow(se(e)&&se(t)?st(e.z,t.z):0,2)):void 0}class sr{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=so(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=sn(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=rp();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=si(t,this.transformPagePoint),iB(e)&&0===e.buttons){this.handlePointerUp(e,t);return}rl.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=so(si(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=si(iU(e),this.transformPagePoint),{point:i}=r,{timestamp:a}=rp();this.history=[{...i,timestamp:a}];let{onSessionStart:o}=t;o&&o(e,so(r,this.history)),this.removeListeners=i8(iX(window,"pointermove",this.handlePointerMove),iX(window,"pointerup",this.handlePointerUp),iX(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ru.update(this.updatePoint)}}function si(e,t){return t?{point:t(e.point)}:e}function sa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function so({point:e},t){return{point:e,delta:sa(e,ss(t)),offset:sa(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ss(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>od(.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 ss(e){return e[e.length-1]}function sl(e){return e.max-e.min}function su(e,t=0,n=.01){return sn(e,t)({translate:0,scale:1,origin:0,originPoint:0}),sx=()=>({x:sb(),y:sb()}),sw=()=>({min:0,max:0}),sj=()=>({x:sw(),y:sw()});function sk(e){return[e("x"),e("y")]}function sE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function s_(e){return void 0===e||1===e}function sC({scale:e,scaleX:t,scaleY:n}){return!s_(e)||!s_(t)||!s_(n)}function sS(e){return sC(e)||sO(e)||e.z||e.rotate||e.rotateX||e.rotateY}function sO(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function sM(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function sP(e,t=0,n=1,r,i){e.min=sM(e.min,t,n,r,i),e.max=sM(e.max,t,n,r,i)}function sA(e,{x:t,y:n}){sP(e.x,t.translate,t.scale,t.originPoint),sP(e.y,n.translate,n.scale,n.originPoint)}function sT(e,t){e.min=e.min+t,e.max=e.max+t}function sN(e,t,[n,r,i]){let a=void 0!==t[i]?t[i]:.5,o=ay(e.min,e.max,a);sP(e,t[n],t[r],o,t.scale)}let sR=["x","scaleX","originX"],sD=["y","scaleY","originY"];function sL(e,t){sN(e.x,t,sR),sN(e.y,t,sD)}function sz(e,t){return sE(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 sF=new WeakMap;class sZ{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=sj(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new sr(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(iU(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=i2(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),sk(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(ir.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=sl(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(F.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(F.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sI(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?ay(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&&rN(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:sm(e.x,n,i),y:sm(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:sv(e,"left","right"),y:sv(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&sk(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||!rN(t))return!1;let r=t.current;au(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=sz(e,n),{scroll:i}=t;return i&&(sT(r.x,i.x),sT(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:sg((e=i.layout.actual).x,a.x),y:sg(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=sE(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(sk(o=>{var l;if(!sI(o,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[o])&&void 0!==l?l:{};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 oZ(e,n,0,t)}stopAnimation(){sk(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){sk(t=>{let{drag:n}=this.getProps();if(!sI(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]-ay(n,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rN(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};sk(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=sl(e),i=sl(t);return i>r?n=av(t.min,t.max-r,e.min):r>i&&(n=av(e.min,e.max-i,t.min)),ac(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(),sk(e=>{if(!sI(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];n.set(ay(r,a,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;sF.set(this.visualElement,this);let t=iX(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rN(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=iZ(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sk(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 sI(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let sB={pan:ar(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let a=(0,el.useRef)(null),{transformPagePoint:o}=(0,el.useContext)(rP),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,el.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(s)}),iJ(i,"pointerdown",(e||t||n||r)&&function(e){a.current=new sr(e,s,{transformPagePoint:o})}),r_(()=>a.current&&a.current.end())}),drag:ar(function(e){let{dragControls:t,visualElement:n}=e,r=rb(()=>new sZ(n));(0,el.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,el.useEffect)(()=>r.addListeners(),[r])})};function sV(e){return"string"==typeof e&&e.startsWith("var(--")}let sU=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sH(e,t,n=1){au(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=sU.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():sV(i)?sH(i,t,n+1):i}let sW=new Set(["width","height","top","left","right","bottom","x","y"]),s$=e=>sW.has(e),sq=e=>Object.keys(e).some(s$),sK=(e,t)=>{e.set(t,!1),e.set(t)},sY=e=>e===il||e===ii;(v=Z||(Z={})).width="width",v.height="height",v.left="left",v.right="right",v.top="top",v.bottom="bottom";let sG=(e,t)=>parseFloat(e.split(", ")[t]),sX=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sG(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sG(t[1],e):0}},sJ=new Set(["x","y","z"]),sQ=rG.filter(e=>!sJ.has(e)),s0={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:sX(4,13),y:sX(5,14)},s1=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:a}=i,o={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{o[e]=s0[e](r,i)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{sK(t.getValue(n),o[n]),e[n]=s0[n](s,i)}),e},s2=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(s$),a=[],o=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=oG(c),f=t[i];if(iT(f)){let e=f.length,t=null===f[0]?1:0;d=oG(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),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],sK(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=s1(t,e,s);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),rm&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},s4=(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(!sV(t))return;let n=sH(t,r);n&&e.set(n)}),t){let e=t[i];if(!sV(e))continue;let a=sH(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,sq(i)?s2(e,i,n,a):{target:i,transitionEnd:a}},s3={current:null},s5={current:!1},s6=Object.keys(rB),s8=s6.length,s7=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s9{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=()=>rl.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=rz(t),this.isVariantNode=rF(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==a[e]&&rQ(t)&&(t.set(a[e],!1),o0(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==a[e]&&rQ(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)),s5.current||function(){if(s5.current=!0,rm){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>s3.current=e.matches;e.addListener(t),t()}else s3.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s3.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(),ru.update(this.notifyUpdate),ru.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&&rl.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"!==n7&&n&&t&&au(!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:l})}return o}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):sj()}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=oq(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=iA(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||rQ(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 oH),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let le=["initial",...o3],lt=le.length;class ln extends s9{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 s=0;srK(e)?new li(t,{enableHardwareAcceleration:!1}):new lr(t,{enableHardwareAcceleration:!0});function lo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ls={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ii.test(e))return e;e=parseFloat(e)}let n=lo(e,t.target.x),r=lo(e,t.target.y);return`${n}% ${r}%`}},ll="_$css",lu={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),a=[];i&&(e=e.replace(sU,e=>(a.push(e),ll)));let o=aI.parse(e);if(o.length>5)return r;let s=aI.createTransformer(e),l="number"!=typeof o[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=c;let d=ay(u,c,.5);"number"==typeof o[2+l]&&(o[2+l]/=d),"number"==typeof o[3+l]&&(o[3+l]/=d);let f=s(o);if(i){let e=0;f=f.replace(ll,()=>{let t=a[e];return e++,t})}return f}};class lc extends el.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rY,ld),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()})),rV.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()||rl.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 ld={borderRadius:{...ls,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomLeftRadius:ls,borderBottomRightRadius:ls,boxShadow:lu},lf=["TopLeft","TopRight","BottomLeft","BottomRight"],lh=lf.length,lp=e=>"string"==typeof e?parseFloat(e):e,lm=e=>"number"==typeof e||ii.test(e);function lg(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let lv=lb(0,.5,a5),ly=lb(.5,.95,a0);function lb(e,t,n){return r=>rt?1:n(av(e,t,r))}function lx(e,t){e.min=t.min,e.max=t.max}function lw(e,t){lx(e.x,t.x),lx(e.y,t.y)}function lj(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 lk(e,t,[n,r,i],a,o){!function(e,t=0,n=1,r=.5,i,a=e,o=e){if(ir.test(t)&&(t=parseFloat(t),t=ay(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=ay(a.min,a.max,r);e===a&&(s-=t),e.min=lj(e.min,t,n,s,i),e.max=lj(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,a,o)}let lE=["x","scaleX","originX"],l_=["y","scaleY","originY"];function lC(e,t,n,r){lk(e.x,t,lE,null==n?void 0:n.x,null==r?void 0:r.x),lk(e.y,t,l_,null==n?void 0:n.y,null==r?void 0:r.y)}function lS(e){return 0===e.translate&&1===e.scale}function lO(e){return lS(e.x)&&lS(e.y)}function lM(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 lP(e){return sl(e.x)/sl(e.y)}class lA{constructor(){this.members=[]}add(e){oV(this.members,e),e.scheduleRender()}remove(e){if(oU(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 lT(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,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(a+=`scale(${o}, ${s})`)?"none":a}let lN=(e,t)=>e.depth-t.depth;class lR{constructor(){this.children=[],this.isDirty=!1}add(e){oV(this.children,e),this.isDirty=!0}remove(e){oU(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lN),this.isDirty=!1,this.children.forEach(e)}}let lD=["","X","Y","Z"];function lL({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(lU),this.nodes.forEach(lH)},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=oR(r,250),rV.hasAnimatedSinceResize&&(rV.hasAnimatedSinceResize=!1,this.nodes.forEach(lV))})}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,s,l,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:lG,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=o.getProps(),h=!this.targetLayout||!lM(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oF(c,"layout"),onPlay:d,onComplete:f};o.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||lV(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,ru.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(lW))}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));lQ(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lY));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;lq(o.x,e.x,f),lq(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)&&(sp(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,lK(r.x,d.x,s.x,f),lK(r.y,d.y,s.y,f)),l&&(this.animationValues=a,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=ay(0,null!==(o=n.opacity)&&void 0!==o?o:1,lv(r)),e.opacityExit=ay(null!==(s=t.opacity)&&void 0!==s?s:1,0,ly(r))):a&&(e.opacity=ay(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{rV.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rQ(0)?0:oq(0);return oZ("",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&&l0(this.options.animationType,this.layout.actual,r.actual)){n=this.target||sj();let t=sl(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=sl(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}lw(t,n),sL(t,i),sd(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new lA),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(lI),this.root.sharedNodes.clear()}}}function lz(e){e.updateLayout()}function lF(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?sk(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=sl(n);n.min=t[e].min,n.max=n.min+r}):l0(r,i.layout,t)&&sk(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=sl(t[e]);n.max=n.min+r});let a=sx();sd(a,t,i.layout);let o=sx();i.isShared?sd(o,e.applyTransform(n,!0),i.measured):sd(o,t,i.layout);let s=!lO(a),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=sj();sp(n,i.layout,e.layout);let a=sj();sp(a,t,r.actual),lM(n,a)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function lZ(e){e.clearSnapshot()}function lI(e){e.clearMeasurements()}function lB(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lV(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function lU(e){e.resolveTargetDelta()}function lH(e){e.calcProjection()}function lW(e){e.resetRotation()}function l$(e){e.removeLeadSnapshot()}function lq(e,t,n){e.translate=ay(t.translate,0,n),e.scale=ay(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lK(e,t,n,r){e.min=ay(t.min,n.min,r),e.max=ay(t.max,n.max,r)}function lY(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lG={duration:.45,ease:[.4,0,.1,1]};function lX(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 lJ(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lQ(e){lJ(e.x),lJ(e.y)}function l0(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return sn(e,t)<=n}(lP(t),lP(n),.2)}let l1=lL({attachResizeListener:(e,t)=>iZ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),l2={current:void 0},l4=lL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!l2.current){let e=new l1(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),l2.current=e}return l2.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),l3={...o7,...ai,...sB,measureLayout:function(e){let[t,n]=aa(),r=(0,el.useContext)(rE);return el.createElement(lc,{...e,layoutGroup:r,switchLayoutGroup:(0,el.useContext)(rW),isPresent:t,safeToRemove:n})}},l5=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?rB.projectionNodeConstructor=e[t]:rB[t].Component=e[t]}(e);let o=(0,el.forwardRef)(function(o,s){var l;let u={...(0,el.useContext)(rP),...o,layoutId:function({layoutId:e}){let t=(0,el.useContext)(rE).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(rz(e)){let{initial:t,animate:n}=e;return{initial:!1===t||rR(t)?t:void 0,animate:rR(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,el.useContext)(rA));return(0,el.useMemo)(()=>({initial:t,animate:n}),[rZ(t),rZ(n)])}(o),h=c?void 0:rb(()=>{if(rV.hasEverUpdated)return rU++}),p=i(o,c);if(!c&&rm){f.visualElement=function(e,t,n,r){let i=(0,el.useContext)(rA).visualElement,a=(0,el.useContext)(rT),o=(0,el.useContext)(ry),s=(0,el.useContext)(rP).reducedMotion,l=(0,el.useRef)();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:o?o.id:void 0,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:s}));let u=l.current;return rg(()=>{u&&u.render()}),(0,el.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),rg(()=>()=>u&&u.notify("Unmount"),[]),u}(a,p,u,t);let r=(0,el.useContext)(rT).strict,i=(0,el.useContext)(rW);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||rB.projectionNodeConstructor,i))}return el.createElement(rH,{visualElement:f.visualElement,props:u},d,el.createElement(rA.Provider,{value:f},r(a,o,h,(l=f.visualElement,(0,el.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rN(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return o[r$]=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{...rK(e)?iz:iF,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:a},o)=>{let s=(rK(t)?function(e,t){let n=(0,el.useMemo)(()=>{let n=iE();return ik(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ig(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 ig(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,el.useMemo)(()=>{let r=im();return ip(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),l={...function(e,t,n){let r={};for(let i in e)(ib(i)||!0===n&&iy(i)||!t&&!iy(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,el.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,l3,la,l4));function l6(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,el.useState)(!1);return{open:(0,el.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,el.useCallback)(e=>{n?n(e):i(e)},[n])}}let l8={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 l7(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:a,delayDuration:o=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=l6({open:i,onOpenChange:a});return(0,es.jsxs)(n0,{open:u,delayDuration:o,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,es.jsx)(nH,{asChild:!0,children:t}),(0,es.jsx)(rM,{children:n&&u?(0,es.jsx)(n1,{forceMount:!0,children:(0,es.jsx)(nY,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,es.jsx)(l5.div,{variants:l8,initial:"init",animate:"show",exit:"exit",className:(0,tl.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,es.jsx)("div",{className:(0,tl.cx)("py-1 px-2","max-w-xs","overflow-hidden",n5()),children:"string"==typeof n||el.isValidElement(n)&&(null==n?void 0:n.type)===el.Fragment?(0,es.jsx)(n3,{size:"12",children:n}):n})})})}):null})]})}let l9=(0,tl.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"}}),ue=el.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,es.jsx)(l7,{content:u,align:c,side:d,children:(0,es.jsx)("button",{ref:t,type:h,disabled:o,className:l9({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})}):(0,es.jsx)("button",{ref:t,disabled:o,type:h,className:l9({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})});var ut=n(28420);(0,tl.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let un=(0,tl.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),ur=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{...r,className:un({className:n}),ref:t})});var ui=globalThis?.document?el.useLayoutEffect:()=>{},ua=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(ul);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(uo,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(uo,{...r,ref:t,children:n})});ua.displayName="Slot";var uo=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});uo.displayName="SlotClone";var us=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function ul(e){return el.isValidElement(e)&&e.type===us}var uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ua:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),uc="Avatar",[ud,uf]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(uc),[uh,up]=ud(uc),um=el.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=el.useState("idle");return(0,es.jsx)(uh,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,es.jsx)(uu.span,{...r,ref:t})})});um.displayName=uc;var ug="AvatarImage",uv=el.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=up(ug,n),s=function(e,t){let[n,r]=el.useState("idle");return ui(()=>{if(!e){r("error");return}let n=!0,i=new window.Image,a=e=>()=>{n&&r(e)};return r("loading"),i.onload=a("loaded"),i.onerror=a("error"),i.src=e,t&&(i.referrerPolicy=t),()=>{n=!1}},[e,t]),n}(r,a.referrerPolicy),l=function(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}(e=>{i(e),o.onImageLoadingStatusChange(e)});return ui(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,es.jsx)(uu.img,{...a,ref:t,src:r}):null});uv.displayName=ug;var uy="AvatarFallback",ub=el.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=up(uy,n),[o,s]=el.useState(void 0===r);return el.useEffect(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&"loaded"!==a.imageLoadingStatus?(0,es.jsx)(uu.span,{...i,ref:t}):null});ub.displayName=uy;let ux=(0,tl.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"}}),uw=(0,tl.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),uj=el.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:a,variant:o,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,es.jsx)("div",{className:(0,tl.cx)("relative h-fit w-fit",c),children:(0,es.jsxs)(um,{...d,ref:t,className:ux({className:c,size:a,variant:o,interactive:l,inactive:u,shape:s}),children:["filter"===o&&(0,es.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,es.jsx)(uv,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,es.jsx)(ub,{className:uw({size:a}),children:i})]})})}),uk=(0,tl.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}}),uE=el.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:a,className:o,...s}=e;return(0,es.jsx)("div",{...s,className:uk({variant:n,size:r,interactive:i,rounded:a,className:o}),ref:t})}),u_=el.forwardRef((e,t)=>{let{className:n,size:r,color:i,...a}=e;return(0,es.jsx)("pre",{children:(0,es.jsx)("code",{className:(0,tl.cx)(n2({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})})}),uC=(0,tl.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}}),uS=el.forwardRef((e,t)=>{let{color:n,className:r,ellipsis:i,...a}=e;return(0,es.jsx)("code",{...a,className:uC({color:n,ellipsis:i,className:r}),ref:t})}),uO=(0,tl.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"]),uM=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{ref:t,className:uO({className:n}),...r})});function uP(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function uA(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function uT(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var uN=globalThis?.document?el.useLayoutEffect:()=>{},uR=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(uz);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(uD,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(uD,{...r,ref:t,children:n})});uR.displayName="Slot";var uD=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?uP(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});uD.displayName="SlotClone";var uL=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function uz(e){return el.isValidElement(e)&&e.type===uL}var uF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?uR:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),uZ="Checkbox",[uI,uB]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(uZ),[uV,uU]=uI(uZ),uH=el.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:u,form:c,...d}=e,[f,h]=el.useState(null),p=function(...e){return el.useCallback(uP(...e),e)}(t,e=>h(e)),m=el.useRef(!1),g=!f||c||!!f.closest("form"),[v=!1,y]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=uT(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=uT(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:i,defaultProp:a,onChange:u}),b=el.useRef(v);return el.useEffect(()=>{let e=f?.form;if(e){let t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[f,y]),(0,es.jsxs)(uV,{scope:n,state:v,disabled:s,children:[(0,es.jsx)(uF.button,{type:"button",role:"checkbox","aria-checked":uK(v)?"mixed":v,"aria-required":o,"data-state":uY(v),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onKeyDown:uA(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:uA(e.onClick,e=>{y(e=>!!uK(e)||!e),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),g&&(0,es.jsx)(uq,{control:f,bubbles:!m.current,name:r,value:l,checked:v,required:o,disabled:s,form:c,style:{transform:"translateX(-100%)"},defaultChecked:!uK(a)&&a})]})});uH.displayName=uZ;var uW="CheckboxIndicator",u$=el.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=uU(uW,n);return(0,es.jsx)(eM,{present:r||uK(a.state)||!0===a.state,children:(0,es.jsx)(uF.span,{"data-state":uY(a.state),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});u$.displayName=uW;var uq=e=>{let{control:t,checked:n,bubbles:r=!0,defaultChecked:i,...a}=e,o=el.useRef(null),s=function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),l=function(e){let[t,n]=el.useState(void 0);return uN(()=>{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}(t);el.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==n&&t){let i=new Event("click",{bubbles:r});e.indeterminate=uK(n),t.call(e,!uK(n)&&n),e.dispatchEvent(i)}},[s,n,r]);let u=el.useRef(!uK(n)&&n);return(0,es.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??u.current,...a,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function uK(e){return"indeterminate"===e}function uY(e){return uK(e)?"indeterminate":e?"checked":"unchecked"}let uG=(0,tl.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-white 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"}}),uX=el.forwardRef((e,t)=>{let{size:n,children:r,...i}=e,a=(0,es.jsx)(uH,{className:uG({size:n}),...i,ref:t,children:(0,es.jsx)(u$,{className:"flex items-center justify-center h-full w-full text-white",children:"indeterminate"===i.checked?(0,es.jsx)(ut.eOF,{}):(0,es.jsx)(ut.NlZ,{})})});return r?(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[a,(0,es.jsx)(n4,{color:i.disabled?"subtle":"contrast",children:r})]}):a}),uJ=(0,tl.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"}}),uQ=el.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...a}=e;return(0,es.jsx)("div",{ref:t,...a,className:uJ({size:i,pad:r,className:n})})});var u0=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(u4);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(u1,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(u1,{...r,ref:t,children:n})});u0.displayName="Slot";var u1=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});u1.displayName="SlotClone";var u2=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function u4(e){return el.isValidElement(e)&&e.type===u2}var u3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?u0:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),u5=el.forwardRef((e,t)=>(0,es.jsx)(u3.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));function u6(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u8(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function u7(...e){return el.useCallback(u8(...e),e)}function u9(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function ct(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function cn(...e){return el.useCallback(ct(...e),e)}u5.displayName="VisuallyHidden";var cr=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(co);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(ci,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(ci,{...r,ref:t,children:n})});cr.displayName="Slot";var ci=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ct(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});ci.displayName="SlotClone";var ca=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function co(e){return el.isValidElement(e)&&e.type===ca}var cs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cr:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cl(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var cu="dismissableLayer.update",cc=el.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cd=el.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,u=el.useContext(cc),[c,d]=el.useState(null),f=c?.ownerDocument??globalThis?.document,[,h]=el.useState({}),p=cn(t,e=>d(e)),m=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),y=c?m.indexOf(c):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,w=function(e,t=globalThis?.document){let n=cl(e),r=el.useRef(!1),i=el.useRef(()=>{});return el.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ch("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);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=[...u.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),j=function(e,t=globalThis?.document){let n=cl(e),r=el.useRef(!1);return el.useEffect(()=>{let e=e=>{e.target&&!r.current&&ch("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;[...u.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return!function(e,t=globalThis?.document){let n=function(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}(e);el.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y!==u.layers.size-1||(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),el.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(I=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),cf(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=I)}},[c,f,n,u]),el.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),cf())},[c,u]),el.useEffect(()=>{let e=()=>h({});return document.addEventListener(cu,e),()=>document.removeEventListener(cu,e)},[]),(0,es.jsx)(cs.div,{...l,ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,j.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,w.onPointerDownCapture)})});function cf(){let e=new CustomEvent(cu);document.dispatchEvent(e)}function ch(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&&ey.flushSync(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}function cp(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}cd.displayName="DismissableLayer",el.forwardRef((e,t)=>{let n=el.useContext(cc),r=el.useRef(null),i=cn(t,r);return el.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,es.jsx)(cs.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var cm=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(cy);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(cg,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(cg,{...r,ref:t,children:n})});cm.displayName="Slot";var cg=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?cp(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});cg.displayName="SlotClone";var cv=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function cy(e){return el.isValidElement(e)&&e.type===cv}var cb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cm:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cx(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var cw="focusScope.autoFocusOnMount",cj="focusScope.autoFocusOnUnmount",ck={bubbles:!1,cancelable:!0},cE=el.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=el.useState(null),u=cx(i),c=cx(a),d=el.useRef(null),f=function(...e){return el.useCallback(cp(...e),e)}(t,e=>l(e)),h=el.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;el.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:cS(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||cS(d.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&cS(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,h.paused]),el.useEffect(()=>{if(s){cO.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(cw,ck);s.addEventListener(cw,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(cS(r,{select:t}),document.activeElement!==n)return}(c_(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&cS(s))}return()=>{s.removeEventListener(cw,u),setTimeout(()=>{let t=new CustomEvent(cj,ck);s.addEventListener(cj,c),s.dispatchEvent(t),t.defaultPrevented||cS(e??document.body,{select:!0}),s.removeEventListener(cj,c),cO.remove(h)},0)}}},[s,u,c,h]);let p=el.useCallback(e=>{if(!n&&!r||h.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=c_(e);return[cC(t,e),cC(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&cS(a,{select:!0})):(e.preventDefault(),n&&cS(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,es.jsx)(cb.div,{tabIndex:-1,...o,ref:f,onKeyDown:p})});function c_(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 cC(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 cS(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()}}cE.displayName="FocusScope";var cO=(h=[],{add(e){let t=h[0];e!==t&&t?.pause(),(h=cM(h,e)).unshift(e)},remove(e){h=cM(h,e),h[0]?.resume()}});function cM(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var cP=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(cN);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(cA,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(cA,{...r,ref:t,children:n})});cP.displayName="Slot";var cA=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});cA.displayName="SlotClone";var cT=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function cN(e){return el.isValidElement(e)&&e.type===cT}var cR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cP:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cD=globalThis?.document?el.useLayoutEffect:()=>{},cL=el.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=el.useState(!1);cD(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ey.createPortal((0,es.jsx)(cR.div,{...r,ref:t}),o):null});cL.displayName="Portal";var cz=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(cI);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(cF,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(cF,{...r,ref:t,children:n})});cz.displayName="Slot";var cF=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?u8(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});cF.displayName="SlotClone";var cZ=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function cI(e){return el.isValidElement(e)&&e.type===cZ}var cB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cz:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cV=0;function cU(){el.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cH()),document.body.insertAdjacentElement("beforeend",e[1]??cH()),cV++,()=>{1===cV&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),cV--}},[])}function cH(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var cW=n(22970),c$=n(95346),cq=n(22442),cK=(0,n(64597)._)(),cY=function(){},cG=el.forwardRef(function(e,t){var n=el.useRef(null),r=el.useState({onScrollCapture:cY,onWheelCapture:cY,onTouchMoveCapture:cY}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,g=e.as,v=e.gapMode,y=(0,cW._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,cq.q)([n,t]),x=(0,cW.pi)((0,cW.pi)({},y),i);return el.createElement(el.Fragment,null,c&&el.createElement(f,{sideCar:cK,removeScrollBar:u,shards:d,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:v}),o?el.cloneElement(el.Children.only(s),(0,cW.pi)((0,cW.pi)({},x),{ref:b})):el.createElement(void 0===g?"div":g,(0,cW.pi)({},x,{className:l,ref:b}),s))});cG.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cG.classNames={fullWidth:c$.zi,zeroRight:c$.pF};var cX=n(57758),cJ=n(181),cQ=n(33225),c0=!1;if("undefined"!=typeof window)try{var c1=Object.defineProperty({},"passive",{get:function(){return c0=!0,!0}});window.addEventListener("test",c1,c1),window.removeEventListener("test",c1,c1)}catch(e){c0=!1}var c2=!!c0&&{passive:!1},c4=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},c3=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),c5(e,r)){var i=c6(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},c5=function(e,t){return"v"===e?c4(t,"overflowY"):c4(t,"overflowX")},c6=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},c8=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=c6(e,l),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&c5(e,l)&&(f+=g,h+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},c7=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},c9=function(e){return[e.deltaX,e.deltaY]},de=function(e){return e&&"current"in e?e.current:e},dt=0,dn=[],dr=(0,cX.L)(cK,function(e){var t=el.useRef([]),n=el.useRef([0,0]),r=el.useRef(),i=el.useState(dt++)[0],a=el.useState(cQ.Ws)[0],o=el.useRef(e);el.useEffect(function(){o.current=e},[e]),el.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,cW.ev)([e.lockRef.current],(e.shards||[]).map(de),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=el.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=c7(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=c3(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=c3(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return c8(h,t,e,"h"===h?l:u,!0)},[]),l=el.useCallback(function(e){if(dn.length&&dn[dn.length-1]===a){var n="deltaY"in e?c9(e):c7(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(de).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=el.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=el.useCallback(function(e){n.current=c7(e),r.current=void 0},[]),d=el.useCallback(function(t){u(t.type,c9(t),t.target,s(t,e.lockRef.current))},[]),f=el.useCallback(function(t){u(t.type,c7(t),t.target,s(t,e.lockRef.current))},[]);el.useEffect(function(){return dn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,c2),document.addEventListener("touchmove",l,c2),document.addEventListener("touchstart",c,c2),function(){dn=dn.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,c2),document.removeEventListener("touchmove",l,c2),document.removeEventListener("touchstart",c,c2)}},[]);var h=e.removeScrollBar,p=e.inert;return el.createElement(el.Fragment,null,p?el.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?el.createElement(cJ.jp,{gapMode:e.gapMode}):null)}),di=el.forwardRef(function(e,t){return el.createElement(cG,(0,cW.pi)({},e,{ref:t,sideCar:dr}))});di.classNames=cG.classNames;var da=n(49732),ds="Dialog",[dl,du]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ds),[dc,dd]=dl(ds),df=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=el.useRef(null),l=el.useRef(null),[u=!1,c]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=u9(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=u9(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:a});return(0,es.jsx)(dc,{scope:t,triggerRef:s,contentRef:l,contentId:eR(),titleId:eR(),descriptionId:eR(),open:u,onOpenChange:c,onOpenToggle:el.useCallback(()=>c(e=>!e),[c]),modal:o,children:n})};df.displayName=ds;var dh="DialogTrigger",dp=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dh,n),a=u7(t,i.triggerRef);return(0,es.jsx)(cB.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dN(i.open),...r,ref:a,onClick:u6(e.onClick,i.onOpenToggle)})});dp.displayName=dh;var dm="DialogPortal",[dg,dv]=dl(dm,{forceMount:void 0}),dy=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=dd(dm,t);return(0,es.jsx)(dg,{scope:t,forceMount:n,children:el.Children.map(r,e=>(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:e})}))})};dy.displayName=dm;var db="DialogOverlay",dx=el.forwardRef((e,t)=>{let n=dv(db,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=dd(db,e.__scopeDialog);return a.modal?(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(dw,{...i,ref:t})}):null});dx.displayName=db;var dw=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(db,n);return(0,es.jsx)(di,{as:cz,allowPinchZoom:!0,shards:[i.contentRef],children:(0,es.jsx)(cB.div,{"data-state":dN(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),dj="DialogContent",dk=el.forwardRef((e,t)=>{let n=dv(dj,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=dd(dj,e.__scopeDialog);return(0,es.jsx)(eM,{present:r||a.open,children:a.modal?(0,es.jsx)(dE,{...i,ref:t}):(0,es.jsx)(d_,{...i,ref:t})})});dk.displayName=dj;var dE=el.forwardRef((e,t)=>{let n=dd(dj,e.__scopeDialog),r=el.useRef(null),i=u7(t,n.contentRef,r);return el.useEffect(()=>{let e=r.current;if(e)return(0,da.R)(e)},[]),(0,es.jsx)(dC,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u6(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:u6(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:u6(e.onFocusOutside,e=>e.preventDefault())})}),d_=el.forwardRef((e,t)=>{let n=dd(dj,e.__scopeDialog),r=el.useRef(!1),i=el.useRef(!1);return(0,es.jsx)(dC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),dC=el.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=dd(dj,n),l=el.useRef(null),u=u7(t,l);return cU(),(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(cE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,es.jsx)(cd,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":dN(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(dz,{titleId:s.titleId}),(0,es.jsx)(dF,{contentRef:l,descriptionId:s.descriptionId})]})]})}),dS="DialogTitle",dO=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dS,n);return(0,es.jsx)(cB.h2,{id:i.titleId,...r,ref:t})});dO.displayName=dS;var dM="DialogDescription",dP=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dM,n);return(0,es.jsx)(cB.p,{id:i.descriptionId,...r,ref:t})});dP.displayName=dM;var dA="DialogClose",dT=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dA,n);return(0,es.jsx)(cB.button,{type:"button",...r,ref:t,onClick:u6(e.onClick,()=>i.onOpenChange(!1))})});function dN(e){return e?"open":"closed"}dT.displayName=dA;var dR="DialogTitleWarning",[dD,dL]=function(e,t){let n=el.createContext(t),r=e=>{let{children:t,...r}=e,i=el.useMemo(()=>r,Object.values(r));return(0,es.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){let i=el.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(dR,{contentName:dj,titleName:dS,docsSlug:"dialog"}),dz=({titleId:e})=>{let t=dL(dR),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + `),()=>{document.head.removeChild(l)}},[t]),el.createElement(rx,{isPresent:t,childRef:r,sizeRef:i},el.cloneElement(e,{ref:r}))}let rj=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{let s=rb(rk),l=(0,el.useId)(),u=(0,el.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),a?void 0:[n]);return(0,el.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),el.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===o&&(e=el.createElement(rw,{isPresent:n},e)),el.createElement(ry.Provider,{value:u},e)};function rk(){return new Map}let rE=(0,el.createContext)({});function r_(e){return(0,el.useEffect)(()=>()=>e(),[])}let rC=new Set;function rS(e,t,n){e||rC.has(t)||(console.warn(t),n&&console.warn(n),rC.add(t))}let rO=e=>e.key||"",rM=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",rS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=rv(),[t,n]=(0,el.useState)(0),r=(0,el.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,el.useCallback)(()=>rl.postRender(r),[r]),t]}(),l=(0,el.useContext)(rE).forceRender;l&&(s=l);let u=rv(),c=function(e){let t=[];return el.Children.forEach(e,e=>{(0,el.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,el.useRef)(d),p=(0,el.useRef)(new Map).current,m=(0,el.useRef)(!0);if(rg(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=rO(e);t.set(n,e)})}(c,p),h.current=d}),r_(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return el.createElement(el.Fragment,null,d.map(e=>el.createElement(rj,{key:rO(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:o},e)));d=[...d];let g=h.current.map(rO),v=c.map(rO),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,el.createElement(rj,{key:rO(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:a,mode:o},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:el.createElement(rj,{key:rO(e),isPresent:!0,presenceAffectsLayout:a,mode:o},e)}),"production"!==n7&&"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.'),el.createElement(el.Fragment,null,f.size?d:d.map(e=>(0,el.cloneElement)(e)))},rP=(0,el.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),rA=(0,el.createContext)({}),rT=(0,el.createContext)({strict:!1});function rN(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rR(e){return"string"==typeof e||Array.isArray(e)}function rD(e){return"object"==typeof e&&"function"==typeof e.start}let rL=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function rz(e){return rD(e.animate)||rL.some(t=>rR(e[t]))}function rF(e){return!!(rz(e)||e.variants)}function rZ(e){return Array.isArray(e)?e.join(" "):e}let rI=e=>({isEnabled:t=>e.some(e=>!!t[e])}),rV={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"])},rB={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rU=1;class rH extends el.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let rW=(0,el.createContext)({}),r$=Symbol.for("motionComponentSymbol"),rq=["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 rK(e){if("string"!=typeof e||e.includes("-"));else if(rq.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let rY={},rG=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rX=new Set(rG);function rJ(e,{layout:t,layoutId:n}){return rX.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!rY[e]||"opacity"===e)}let rQ=e=>!!(null==e?void 0:e.getVelocity),r0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},r1=(e,t)=>rG.indexOf(e)-rG.indexOf(t);function r2(e){return e.startsWith("--")}let r4=(e,t)=>t&&"number"==typeof e?t.transform(e):e,r3=(e,t)=>n=>Math.max(Math.min(n,t),e),r5=e=>e%1?Number(e.toFixed(5)):e,r6=/(-)?([\d]*\.?[\d])+/g,r8=/(#[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,r7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function r9(e){return"string"==typeof e}let ie=e=>({test:t=>r9(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),it=ie("deg"),ir=ie("%"),ii=ie("px"),ia=ie("vh"),io=ie("vw"),is=Object.assign(Object.assign({},ir),{parse:e=>ir.parse(e)/100,transform:e=>ir.transform(100*e)}),il={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},iu=Object.assign(Object.assign({},il),{transform:r3(0,1)}),ic=Object.assign(Object.assign({},il),{default:1}),id={...il,transform:Math.round},ih={borderWidth:ii,borderTopWidth:ii,borderRightWidth:ii,borderBottomWidth:ii,borderLeftWidth:ii,borderRadius:ii,radius:ii,borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomRightRadius:ii,borderBottomLeftRadius:ii,width:ii,maxWidth:ii,height:ii,maxHeight:ii,size:ii,top:ii,right:ii,bottom:ii,left:ii,padding:ii,paddingTop:ii,paddingRight:ii,paddingBottom:ii,paddingLeft:ii,margin:ii,marginTop:ii,marginRight:ii,marginBottom:ii,marginLeft:ii,rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:ic,scaleX:ic,scaleY:ic,scaleZ:ic,skew:it,skewX:it,skewY:it,distance:ii,translateX:ii,translateY:ii,translateZ:ii,x:ii,y:ii,z:ii,perspective:ii,transformPerspective:ii,opacity:iu,originX:is,originY:is,originZ:ii,zIndex:id,fillOpacity:iu,strokeOpacity:iu,numOctaves:id};function ip(e,t,n,r){let{style:i,vars:a,transform:o,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(r2(e)){a[e]=n;continue}let r=ih[e],f=r4(n,r);if(rX.has(e)){if(u=!0,o[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,a){let o="";for(let n of(t.sort(r1),t))o+=`${r0[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}=l;i.transformOrigin=`${e} ${t} ${n}`}}let im=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ig(e,t,n){for(let r in t)rQ(t[r])||rJ(r,n)||(e[r]=t[r])}let iv=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 iy(e){return iv.has(e)}let ib=e=>!iy(e);try{(m=require("@emotion/is-prop-valid").default)&&(ib=e=>e.startsWith("on")?!iy(e):m(e))}catch(e){}function ix(e,t,n){return"string"==typeof e?e:ii.transform(t+n*e)}let iw={offset:"stroke-dashoffset",array:"stroke-dasharray"},ij={offset:"strokeDashoffset",array:"strokeDasharray"};function ik(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:s=0,...l},u,c){ip(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=ix(t,e.x,e.width),i=ix(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?iw:ij;e[a.offset]=ii.transform(-r);let o=ii.transform(t),s=ii.transform(n);e[a.array]=`${o} ${s}`}(d,a,o,s,!1)}let iE=()=>({...im(),attrs:{}}),i_=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function iC(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 iS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function iO(e,t,n,r){for(let n in iC(e,t,void 0,r),t.attrs)e.setAttribute(iS.has(n)?n:i_(n),t.attrs[n])}function iM(e){let{style:t}=e,n={};for(let r in t)(rQ(t[r])||rJ(r,e))&&(n[r]=t[r]);return n}function iP(e){let t=iM(e);for(let n in e)rQ(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function iA(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 iT=e=>Array.isArray(e),iN=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),iR=e=>iT(e)?e[e.length-1]||0:e;function iD(e){let t=rQ(e)?e.get():e;return iN(t)?t.toValue():t}let iL=e=>(t,n)=>{let r=(0,el.useContext)(rA),i=(0,el.useContext)(ry),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]=iD(a[e]);let{initial:o,animate:s}=e,l=rz(e),u=rF(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===o)?s:o;return d&&"boolean"!=typeof d&&!rD(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=iA(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():rb(a)},iz={useVisualState:iL({scrapeMotionValuesFromProps:iP,createRenderState:iE,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}}ik(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),iO(t,n)}})},iF={useVisualState:iL({scrapeMotionValuesFromProps:iM,createRenderState:im})};function iZ(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function iI(e,t,n,r){(0,el.useEffect)(()=>{let i=e.current;if(n&&i)return iZ(i,t,n,r)},[e,t,n,r])}function iV(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(g=F||(F={})).Animate="animate",g.Hover="whileHover",g.Tap="whileTap",g.Drag="whileDrag",g.Focus="whileFocus",g.InView="whileInView",g.Exit="exit";let iB={pageX:0,pageY:0};function iU(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||iB;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 iH=(e,t=!1)=>{let n=t=>e(t,iU(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},iW=()=>rm&&null===window.onpointerdown,i$=()=>rm&&null===window.ontouchstart,iq=()=>rm&&null===window.onmousedown,iK={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},iY={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function iG(e){if(iW());else if(i$())return iY[e];else if(iq())return iK[e];return e}function iX(e,t,n,r){return iZ(e,iG(t),iH(n,"pointerdown"===t),r)}function iJ(e,t,n,r){return iI(e,iG(t),n&&iH(n,"pointerdown"===t),r)}function iQ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let i0=iQ("dragHorizontal"),i1=iQ("dragVertical");function i2(e){let t=!1;if("y"===e)t=i1();else if("x"===e)t=i0();else{let e=i0(),n=i1();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function i4(){let e=i2(!0);return!e||(e(),!1)}function i3(e,t,n){return(r,i)=>{!(!iV(r)||i4())&&(e.animationState&&e.animationState.setActive(F.Hover,t),n&&n(r,i))}}let i5=(e,t)=>!!t&&(e===t||i5(e,t.parentElement)),i6=(e,t)=>n=>t(e(n)),i8=(...e)=>e.reduce(i6),i7=new WeakMap,i9=new WeakMap,ae=e=>{let t=i7.get(e.target);t&&t(e)},at=e=>{e.forEach(ae)},an={some:0,all:1},ar=e=>t=>(e(t),null),ai={inView:ar(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,el.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,el.useEffect)(()=>{e&&r&&("production"!==n7&&rS(!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(F.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:o}){(0,el.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:an[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;i9.has(n)||i9.set(n,{});let r=i9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(at,{root:e,...t})),r[i]}(t);return i7.set(e,n),r.observe(e),()=>{i7.delete(e),r.unobserve(e)}}(n.current,s,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(F.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:ar(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,o=(0,el.useRef)(!1),s=(0,el.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),o.current=!1,i.animationState&&i.animationState.setActive(F.Tap,!1),!i4()}function d(t,r){c()&&(i5(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,s.current=i8(iX(window,"pointerup",d,l),iX(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(F.Tap,!0),t&&t(e,n))}iJ(i,"pointerdown",a?h:void 0,l),r_(u)}),focus:ar(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;iI(t,"focus",e?()=>{n&&n.setActive(F.Focus,!0)}:void 0),iI(t,"blur",e?()=>{n&&n.setActive(F.Focus,!1)}:void 0)}),hover:ar(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){iJ(r,"pointerenter",e||n?i3(r,!0,e):void 0,{passive:!e}),iJ(r,"pointerleave",t||n?i3(r,!1,t):void 0,{passive:!t})})};function aa(){let e=(0,el.useContext)(ry);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,el.useId)();return(0,el.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function ao(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 al=function(){},au=function(){};let ac=(e,t,n)=>Math.min(Math.max(n,e),t);function ad(e,t){return e*Math.sqrt(1-t*t)}let af=["duration","bounce"],ah=["stiffness","damping","mass"];function ap(e,t){return t.some(t=>void 0!==e[t])}function am(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=as(e,["from","to","restSpeed","restDelta"]);let o={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ap(e,ah)&&ap(e,af)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;al(e<=1e4,"Spring duration must be 10 seconds or less");let o=1-t;o=ac(.05,1,o),e=ac(.01,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e;return .001-(r-n)/ad(t,o)*Math.exp(-i)},a=t=>{let r=t*o*e,a=Math.pow(o,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=ad(Math.pow(t,2),o);return(r*n+n-a)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let s=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(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,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=ag,p=ag;function m(){let e=c?-(c/1e3):0,r=n-t,a=l/(2*Math.sqrt(s*u)),o=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=ad(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 s=Math.exp(-a*o*i),l=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)o.done=e>=d;else{let a=1e3*p(e),s=Math.abs(n-t)<=i;o.done=Math.abs(a)<=r&&s}return o.value=o.done?n:t,o},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}am.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ag=e=>0,av=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},ay=(e,t,n)=>-n*e+n*t+e,ab=(e,t)=>n=>!!(r9(n)&&r7.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ax=(e,t,n)=>r=>{if(!r9(r))return r;let[i,a,o,s]=r.match(r6);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==s?parseFloat(s):1}},aw=r3(0,255),aj=Object.assign(Object.assign({},il),{transform:e=>Math.round(aw(e))}),ak={test:ab("rgb","red"),parse:ax("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aj.transform(e)+", "+aj.transform(t)+", "+aj.transform(n)+", "+r5(iu.transform(r))+")"},aE={test:ab("#"),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:ak.transform},a_={test:ab("hsl","hue"),parse:ax("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ir.transform(r5(t))+", "+ir.transform(r5(n))+", "+r5(iu.transform(r))+")"};function aC(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 aS({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,s=2*n-r;i=aC(s,r,e+1/3),a=aC(s,r,e),o=aC(s,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 aO=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},aM=[aE,ak,a_],aP=e=>aM.find(t=>t.test(e)),aA=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,aT=(e,t)=>{let n=aP(e),r=aP(t);au(!!n,aA(e)),au(!!r,aA(t));let i=n.parse(e),a=r.parse(t);n===a_&&(i=aS(i),n=ak),r===a_&&(a=aS(a),r=ak);let o=Object.assign({},i);return e=>{for(let t in o)"alpha"!==t&&(o[t]=aO(i[t],a[t],e));return o.alpha=ay(i.alpha,a.alpha,e),n.transform(o)}},aN={test:e=>ak.test(e)||aE.test(e)||a_.test(e),parse:e=>ak.test(e)?ak.parse(e):a_.test(e)?a_.parse(e):aE.parse(e),transform:e=>r9(e)?e:e.hasOwnProperty("red")?ak.transform(e):a_.transform(e)},aR="${c}",aD="${n}";function aL(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(r8);r&&(n=r.length,e=e.replace(r8,aR),t.push(...r.map(aN.parse)));let i=e.match(r6);return i&&(e=e.replace(r6,aD),t.push(...i.map(il.parse))),{values:t,numColors:n,tokenised:e}}function az(e){return aL(e).values}function aF(e){let{values:t,numColors:n,tokenised:r}=aL(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)&&r9(e)&&(null!==(n=null===(t=e.match(r6))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(r8))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:az,createTransformer:aF,getAnimatableNone:function(e){let t=az(e);return aF(e)(t.map(aZ))}},aV=e=>"number"==typeof e;function aB(e,t){return aV(e)?n=>ay(e,t,n):aN.test(e)?aT(e,t):a$(e,t)}let aU=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>aB(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]=aB(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function aW(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=aW(e),i=aW(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?i8(aU(r.parsed,i.parsed),n):(al(!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}`)},aq=(e,t)=>n=>ay(e,t,n);function aK(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;au(a===t.length,"Both input and output ranges must be the same length"),au(!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])?aq:"string"==typeof r?aN.test(r)?aT:a$:Array.isArray(r)?aU:"object"==typeof r?aH:void 0),o=e.length-1;for(let n=0;nn(av(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 s=av(e[a],e[a+1],i);return t[a](s)}}(e,o);return n?t=>s(ac(e[0],e[a-1],t)):s}let aY=e=>t=>1-e(1-t),aG=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aX=e=>t=>t*t*((e+1)*t-e),aJ=4/11,aQ=8/11,a0=e=>e,a1=e=>Math.pow(e,2),a2=aY(a1),a4=aG(a1),a3=e=>1-Math.sin(Math.acos(e)),a5=aY(a3),a6=aG(a5),a8=aX(1.525),a7=aY(a8),a9=aG(a8),oe=(e=>{let t=aX(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),ot=4356/361,on=35442/1805,or=16061/1805,oi=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 l(){return aK(s,o,{ease:Array.isArray(n)?n:o.map(()=>n||a4).splice(0,o.length-1)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),u=l()}}}let os={keyframes:oo,spring:am,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},s=n*e,l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?u:u+t,o},flipTarget:()=>{}}}};function ol(e,t,n=0){return e-t-n}let ou=e=>{let t=({delta:t})=>e(t);return{start:()=>rl.update(t,!0),stop:()=>ru.update(t)}};function oc(e){let t,n,r;var i,{from:a,autoplay:o=!0,driver:s=ou,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:g}=e,v=as(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=v,b=0,x=v.duration,w=!1,j=!0,k=function(e){if(Array.isArray(e.to))return oo;if(os[e.type])return os[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 am;return oo}(v);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,a,y))&&(r=aK([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=s(function(e){if(j||(e=-e),l+=e,!w){let e=E.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==g||g(n),w){if(0===b&&(null!=x||(x=l)),b=a+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?ol(t+-e,t,n):t-(e-t)+n}(l,x,d,j=b%2==0):(l=ol(l,x,d),"mirror"===c&&E.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let od=e=>1e3*e,of=(e,t)=>1-3*t+3*e,oh=(e,t)=>3*t-6*e,op=e=>3*e,om=(e,t,n)=>((of(t,n)*e+oh(t,n))*e+op(t))*e,og=(e,t,n)=>3*of(t,n)*e*e+2*oh(t,n)*e+op(t),ov={linear:a0,easeIn:a1,easeInOut:a4,easeOut:a2,circIn:a3,circInOut:a6,circOut:a5,backIn:a8,backInOut:a9,backOut:a7,anticipate:oe,bounceIn:oa,bounceInOut:e=>e<.5?.5*(1-oi(1-2*e)):.5*oi(2*e-1)+.5,bounceOut:oi},oy=e=>{if(Array.isArray(e)){au(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 a0;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=om(.1*t,e,n);return a=>0===a||1===a?a:om(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,s=og(o,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=og(t,n,r);if(0===i)break;let a=om(t,n,r)-e;t-=a/i}return t}(t,o,e,n):0===s?o:function(e,t,n,r,i){let a,o;let s=0;do(a=om(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<10);return o}(t,r,r+.1,e,n)}(a),t,r)}(t,n,r,i)}return"string"==typeof e?(au(void 0!==ov[e],`Invalid easing type '${e}'`),ov[e]):e},ob=e=>Array.isArray(e)&&"number"!=typeof e[0],ox=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&aI.test(t)&&!t.startsWith("url(")),ow=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oj=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ok=()=>({type:"keyframes",ease:"linear",duration:.3}),oE=e=>({type:"keyframes",duration:.8,values:e}),o_={x:ow,y:ow,z:ow,rotate:ow,rotateX:ow,rotateY:ow,rotateZ:ow,scaleX:oj,scaleY:oj,scale:oj,opacity:ok,backgroundColor:ok,color:ok,default:oj},oC=(e,t)=>{let n;return n=iT(t)?oE:o_[e]||o_.default,{to:t,...n(t)}},oS=new Set(["brightness","contrast","saturate","opacity"]);function oO(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(r6)||[];if(!r)return e;let i=n.replace(r,""),a=oS.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}let oM=/([a-z-]*)\(.*?\)/g,oP=Object.assign(Object.assign({},aI),{getAnimatableNone:e=>{let t=e.match(oM);return t?t.map(oO).join(" "):e}}),oA={...ih,color:aN,backgroundColor:aN,outlineColor:aN,fill:aN,stroke:aN,borderColor:aN,borderTopColor:aN,borderRightColor:aN,borderBottomColor:aN,borderLeftColor:aN,filter:oP,WebkitFilter:oP},oT=e=>oA[e];function oN(e,t){var n;let r=oT(e);return r!==oP&&(r=aI),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function oR(e,t){let n=performance.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(ru.read(r),e(a-t))};return rl.read(r,!0),()=>ru.read(r)}let oD=!1;function oL(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oz(e){return"number"==typeof e?0:oN("",e)}function oF(e,t){return e[t]||e.default||e}function oZ(e,t,n,r={}){return t.start(i=>{var a,o;let s,l;let u=function(e,t,n,r,i){let a=oF(r,e)||{},o=void 0!==a.from?a.from:t.get(),s=ox(e,n);"none"===o&&s&&"string"==typeof n?o=oN(e,n):oL(o)&&"string"==typeof n?o=oz(n):!Array.isArray(n)&&oL(n)&&"string"==typeof o&&(n=oz(o));let l=ox(e,o);return al(l===s,`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.`),l&&s&&!1!==a.type?function(){var r;let s={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:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function 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:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:g(e)});else{let r,o,s=i*t+e;void 0!==u&&(s=u(s));let c=g(s),d=c===n?-1:1;v({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n,i;r=o,o=e,n=e-r,t=(i=rp().delta)?1e3/i*n:0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...a}):oc({...(r=a,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oC(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...a}){let o={...a};return t&&(o.offset=t),a.duration&&(o.duration=od(a.duration)),a.repeatDelay&&(o.repeatDelay=od(a.repeatDelay)),e&&(o.ease=ob(e)?e.map(oy):oy(e)),"tween"===a.type&&(o.type="keyframes"),(n||i||r)&&(al(!oD,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oD=!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=>{s.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=iR(n);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),c=null!==(o=null!==(a=(oF(r,e)||{}).delay)&&void 0!==a?a:r.delay)&&void 0!==o?o:0,d=()=>s=u();return c?l=oR(d,od(c)):d(),()=>{l&&l(),s&&s.stop()}})}let oI=e=>/^\-?\d*\.?\d+$/.test(e),oV=e=>/^0[^.\s]+$/.test(e);function oB(e,t){-1===e.indexOf(t)&&e.push(t)}function oU(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oH{constructor(){this.subscriptions=[]}add(e){return oB(this.subscriptions,e),()=>oU(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 o${constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oH,this.velocityUpdateSubscribers=new oH,this.renderSubscribers=new oH,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=rp();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,rl.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=()=>rl.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=oW(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 oq(e){return new o$(e)}let oK=e=>t=>t.test(e),oY=[il,ii,ir,it,io,ia,{test:e=>"auto"===e,parse:e=>e}],oG=e=>oY.find(oK(e)),oX=[...oY,aN,aI],oJ=e=>oX.find(oK(e));function oQ(e,t,n){let r=e.getProps();return iA(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 o0(e){return!!(rQ(e)&&e.add)}function o1(e,t,n={}){var r;let i=oQ(e,t,n.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);let o=i?()=>o2(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:s}=a;return function(e,t,n=0,r=0,i=1,a){let o=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(o4).forEach((e,r)=>{o.push(o1(e,t,{...a,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,i+r,o,s,n)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(t)}}function o2(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=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 l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let a={delay:n,...o};e.shouldReduceMotion&&rX.has(t)&&(a={...a,type:!1,delay:0});let s=oZ(t,r,i,a);o0(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oQ(e,t),{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};for(let t in a={...a,...r}){let n=iR(a[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oq(n))}}(e,s)})}function o4(e,t){return e.sortNodePosition(t)}let o3=[F.Animate,F.InView,F.Focus,F.Hover,F.Tap,F.Drag,F.Exit],o5=[...o3].reverse(),o6=o3.length;function o8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o7={animation:ar(({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=>o1(e,t,n)));else if("string"==typeof t)r=o1(e,t,n);else{let i="function"==typeof t?oQ(e,t,n.custom):t;r=o2(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[F.Animate]:o8(!0),[F.InView]:o8(),[F.Hover]:o8(),[F.Tap]:o8(),[F.Drag]:o8(),[F.Focus]:o8(),[F.Exit]:o8()},r=!0,i=(t,n)=>{let r=oQ(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(a,o){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(v)?v:[v],E=k.reduce(i,{});!1===b&&(E={});let{prevResolvedValues:_={}}=g,C={..._,...E},S=e=>{j=!0,f.delete(e),g.needsAnimating[e]=!0};for(let e in C){let t=E[e],n=_[e];h.hasOwnProperty(e)||(t!==n?iT(t)&&iT(n)?!ao(t,n)||w?S(e):g.protectedKeys[e]=!0:void 0!==t?S(e):f.add(e):void 0!==t&&f.has(e)?S(e):g.protectedKeys[e]=!0)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),r&&e.blockInitialAnimation&&(j=!1),j&&!x&&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 s=a(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),rD(t)&&(0,el.useEffect)(()=>t.subscribe(e),[t])}),exit:ar(e=>{let{custom:t,visualElement:n}=e,[r,i]=aa(),a=(0,el.useContext)(ry);(0,el.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(F.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},o9=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),se=e=>o9(e)&&e.hasOwnProperty("z"),st=(e,t)=>Math.abs(e-t);function sn(e,t){return aV(e)&&aV(t)?st(e,t):o9(e)&&o9(t)?Math.sqrt(Math.pow(st(e.x,t.x),2)+Math.pow(st(e.y,t.y),2)+Math.pow(se(e)&&se(t)?st(e.z,t.z):0,2)):void 0}class sr{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=so(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=sn(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=rp();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=si(t,this.transformPagePoint),iV(e)&&0===e.buttons){this.handlePointerUp(e,t);return}rl.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=so(si(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=si(iU(e),this.transformPagePoint),{point:i}=r,{timestamp:a}=rp();this.history=[{...i,timestamp:a}];let{onSessionStart:o}=t;o&&o(e,so(r,this.history)),this.removeListeners=i8(iX(window,"pointermove",this.handlePointerMove),iX(window,"pointerup",this.handlePointerUp),iX(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ru.update(this.updatePoint)}}function si(e,t){return t?{point:t(e.point)}:e}function sa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function so({point:e},t){return{point:e,delta:sa(e,ss(t)),offset:sa(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ss(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>od(.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 ss(e){return e[e.length-1]}function sl(e){return e.max-e.min}function su(e,t=0,n=.01){return sn(e,t)({translate:0,scale:1,origin:0,originPoint:0}),sx=()=>({x:sb(),y:sb()}),sw=()=>({min:0,max:0}),sj=()=>({x:sw(),y:sw()});function sk(e){return[e("x"),e("y")]}function sE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function s_(e){return void 0===e||1===e}function sC({scale:e,scaleX:t,scaleY:n}){return!s_(e)||!s_(t)||!s_(n)}function sS(e){return sC(e)||sO(e)||e.z||e.rotate||e.rotateX||e.rotateY}function sO(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function sM(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function sP(e,t=0,n=1,r,i){e.min=sM(e.min,t,n,r,i),e.max=sM(e.max,t,n,r,i)}function sA(e,{x:t,y:n}){sP(e.x,t.translate,t.scale,t.originPoint),sP(e.y,n.translate,n.scale,n.originPoint)}function sT(e,t){e.min=e.min+t,e.max=e.max+t}function sN(e,t,[n,r,i]){let a=void 0!==t[i]?t[i]:.5,o=ay(e.min,e.max,a);sP(e,t[n],t[r],o,t.scale)}let sR=["x","scaleX","originX"],sD=["y","scaleY","originY"];function sL(e,t){sN(e.x,t,sR),sN(e.y,t,sD)}function sz(e,t){return sE(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 sF=new WeakMap;class sZ{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=sj(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new sr(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(iU(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=i2(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),sk(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(ir.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=sl(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(F.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(F.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!sI(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?ay(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&&rN(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:sm(e.x,n,i),y:sm(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:sv(e,"left","right"),y:sv(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&sk(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||!rN(t))return!1;let r=t.current;au(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=sz(e,n),{scroll:i}=t;return i&&(sT(r.x,i.x),sT(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o={x:sg((e=i.layout.actual).x,a.x),y:sg(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=sE(e))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{};return Promise.all(sk(o=>{var l;if(!sI(o,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[o])&&void 0!==l?l:{};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 oZ(e,n,0,t)}stopAnimation(){sk(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){sk(t=>{let{drag:n}=this.getProps();if(!sI(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]-ay(n,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rN(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};sk(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=sl(e),i=sl(t);return i>r?n=av(t.min,t.max-r,e.min):r>i&&(n=av(e.min,e.max-i,t.min)),ac(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(),sk(e=>{if(!sI(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];n.set(ay(r,a,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;sF.set(this.visualElement,this);let t=iX(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();rN(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=iZ(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sk(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 sI(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let sV={pan:ar(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let a=(0,el.useRef)(null),{transformPagePoint:o}=(0,el.useContext)(rP),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,el.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(s)}),iJ(i,"pointerdown",(e||t||n||r)&&function(e){a.current=new sr(e,s,{transformPagePoint:o})}),r_(()=>a.current&&a.current.end())}),drag:ar(function(e){let{dragControls:t,visualElement:n}=e,r=rb(()=>new sZ(n));(0,el.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,el.useEffect)(()=>r.addListeners(),[r])})};function sB(e){return"string"==typeof e&&e.startsWith("var(--")}let sU=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sH(e,t,n=1){au(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=sU.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():sB(i)?sH(i,t,n+1):i}let sW=new Set(["width","height","top","left","right","bottom","x","y"]),s$=e=>sW.has(e),sq=e=>Object.keys(e).some(s$),sK=(e,t)=>{e.set(t,!1),e.set(t)},sY=e=>e===il||e===ii;(v=Z||(Z={})).width="width",v.height="height",v.left="left",v.right="right",v.top="top",v.bottom="bottom";let sG=(e,t)=>parseFloat(e.split(", ")[t]),sX=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return sG(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?sG(t[1],e):0}},sJ=new Set(["x","y","z"]),sQ=rG.filter(e=>!sJ.has(e)),s0={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:sX(4,13),y:sX(5,14)},s1=(e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:a}=i,o={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{o[e]=s0[e](r,i)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{sK(t.getValue(n),o[n]),e[n]=s0[n](s,i)}),e},s2=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(s$),a=[],o=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=oG(c),f=t[i];if(iT(f)){let e=f.length,t=null===f[0]?1:0;d=oG(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),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],sK(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=s1(t,e,s);return a.length&&a.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),rm&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},s4=(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(!sB(t))return;let n=sH(t,r);n&&e.set(n)}),t){let e=t[i];if(!sB(e))continue;let a=sH(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,sq(i)?s2(e,i,n,a):{target:i,transitionEnd:a}},s3={current:null},s5={current:!1},s6=Object.keys(rV),s8=s6.length,s7=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s9{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=()=>rl.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=rz(t),this.isVariantNode=rF(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==a[e]&&rQ(t)&&(t.set(a[e],!1),o0(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==a[e]&&rQ(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)),s5.current||function(){if(s5.current=!0,rm){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>s3.current=e.matches;e.addListener(t),t()}else s3.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s3.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(),ru.update(this.notifyUpdate),ru.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&&rl.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"!==n7&&n&&t&&au(!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:l})}return o}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):sj()}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=oq(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=iA(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||rQ(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 oH),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let le=["initial",...o3],lt=le.length;class ln extends s9{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 s=0;srK(e)?new li(t,{enableHardwareAcceleration:!1}):new lr(t,{enableHardwareAcceleration:!0});function lo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ls={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ii.test(e))return e;e=parseFloat(e)}let n=lo(e,t.target.x),r=lo(e,t.target.y);return`${n}% ${r}%`}},ll="_$css",lu={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),a=[];i&&(e=e.replace(sU,e=>(a.push(e),ll)));let o=aI.parse(e);if(o.length>5)return r;let s=aI.createTransformer(e),l="number"!=typeof o[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=c;let d=ay(u,c,.5);"number"==typeof o[2+l]&&(o[2+l]/=d),"number"==typeof o[3+l]&&(o[3+l]/=d);let f=s(o);if(i){let e=0;f=f.replace(ll,()=>{let t=a[e];return e++,t})}return f}};class lc extends el.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(rY,ld),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()})),rB.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()||rl.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 ld={borderRadius:{...ls,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomLeftRadius:ls,borderBottomRightRadius:ls,boxShadow:lu},lf=["TopLeft","TopRight","BottomLeft","BottomRight"],lh=lf.length,lp=e=>"string"==typeof e?parseFloat(e):e,lm=e=>"number"==typeof e||ii.test(e);function lg(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let lv=lb(0,.5,a5),ly=lb(.5,.95,a0);function lb(e,t,n){return r=>rt?1:n(av(e,t,r))}function lx(e,t){e.min=t.min,e.max=t.max}function lw(e,t){lx(e.x,t.x),lx(e.y,t.y)}function lj(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 lk(e,t,[n,r,i],a,o){!function(e,t=0,n=1,r=.5,i,a=e,o=e){if(ir.test(t)&&(t=parseFloat(t),t=ay(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let s=ay(a.min,a.max,r);e===a&&(s-=t),e.min=lj(e.min,t,n,s,i),e.max=lj(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,a,o)}let lE=["x","scaleX","originX"],l_=["y","scaleY","originY"];function lC(e,t,n,r){lk(e.x,t,lE,null==n?void 0:n.x,null==r?void 0:r.x),lk(e.y,t,l_,null==n?void 0:n.y,null==r?void 0:r.y)}function lS(e){return 0===e.translate&&1===e.scale}function lO(e){return lS(e.x)&&lS(e.y)}function lM(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 lP(e){return sl(e.x)/sl(e.y)}class lA{constructor(){this.members=[]}add(e){oB(this.members,e),e.scheduleRender()}remove(e){if(oU(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 lT(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,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(a+=`scale(${o}, ${s})`)?"none":a}let lN=(e,t)=>e.depth-t.depth;class lR{constructor(){this.children=[],this.isDirty=!1}add(e){oB(this.children,e),this.isDirty=!0}remove(e){oU(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lN),this.isDirty=!1,this.children.forEach(e)}}let lD=["","X","Y","Z"];function lL({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(lU),this.nodes.forEach(lH)},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=oR(r,250),rB.hasAnimatedSinceResize&&(rB.hasAnimatedSinceResize=!1,this.nodes.forEach(lB))})}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,s,l,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:lG,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=o.getProps(),h=!this.targetLayout||!lM(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oF(c,"layout"),onPlay:d,onComplete:f};o.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||lB(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,ru.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(lW))}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));lQ(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(lY));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;lq(o.x,e.x,f),lq(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)&&(sp(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,lK(r.x,d.x,s.x,f),lK(r.y,d.y,s.y,f)),l&&(this.animationValues=a,function(e,t,n,r,i,a){var o,s,l,u;i?(e.opacity=ay(0,null!==(o=n.opacity)&&void 0!==o?o:1,lv(r)),e.opacityExit=ay(null!==(s=t.opacity)&&void 0!==s?s:1,0,ly(r))):a&&(e.opacity=ay(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{rB.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=rQ(0)?0:oq(0);return oZ("",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&&l0(this.options.animationType,this.layout.actual,r.actual)){n=this.target||sj();let t=sl(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=sl(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}lw(t,n),sL(t,i),sd(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new lA),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(lI),this.root.sharedNodes.clear()}}}function lz(e){e.updateLayout()}function lF(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?sk(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=sl(n);n.min=t[e].min,n.max=n.min+r}):l0(r,i.layout,t)&&sk(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=sl(t[e]);n.max=n.min+r});let a=sx();sd(a,t,i.layout);let o=sx();i.isShared?sd(o,e.applyTransform(n,!0),i.measured):sd(o,t,i.layout);let s=!lO(a),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=sj();sp(n,i.layout,e.layout);let a=sj();sp(a,t,r.actual),lM(n,a)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function lZ(e){e.clearSnapshot()}function lI(e){e.clearMeasurements()}function lV(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function lU(e){e.resolveTargetDelta()}function lH(e){e.calcProjection()}function lW(e){e.resetRotation()}function l$(e){e.removeLeadSnapshot()}function lq(e,t,n){e.translate=ay(t.translate,0,n),e.scale=ay(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lK(e,t,n,r){e.min=ay(t.min,n.min,r),e.max=ay(t.max,n.max,r)}function lY(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let lG={duration:.45,ease:[.4,0,.1,1]};function lX(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 lJ(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lQ(e){lJ(e.x),lJ(e.y)}function l0(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return sn(e,t)<=n}(lP(t),lP(n),.2)}let l1=lL({attachResizeListener:(e,t)=>iZ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),l2={current:void 0},l4=lL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!l2.current){let e=new l1(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),l2.current=e}return l2.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),l3={...o7,...ai,...sV,measureLayout:function(e){let[t,n]=aa(),r=(0,el.useContext)(rE);return el.createElement(lc,{...e,layoutGroup:r,switchLayoutGroup:(0,el.useContext)(rW),isPresent:t,safeToRemove:n})}},l5=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?rV.projectionNodeConstructor=e[t]:rV[t].Component=e[t]}(e);let o=(0,el.forwardRef)(function(o,s){var l;let u={...(0,el.useContext)(rP),...o,layoutId:function({layoutId:e}){let t=(0,el.useContext)(rE).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(rz(e)){let{initial:t,animate:n}=e;return{initial:!1===t||rR(t)?t:void 0,animate:rR(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,el.useContext)(rA));return(0,el.useMemo)(()=>({initial:t,animate:n}),[rZ(t),rZ(n)])}(o),h=c?void 0:rb(()=>{if(rB.hasEverUpdated)return rU++}),p=i(o,c);if(!c&&rm){f.visualElement=function(e,t,n,r){let i=(0,el.useContext)(rA).visualElement,a=(0,el.useContext)(rT),o=(0,el.useContext)(ry),s=(0,el.useContext)(rP).reducedMotion,l=(0,el.useRef)();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:o?o.id:void 0,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:s}));let u=l.current;return rg(()=>{u&&u.render()}),(0,el.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),rg(()=>()=>u&&u.notify("Unmount"),[]),u}(a,p,u,t);let r=(0,el.useContext)(rT).strict,i=(0,el.useContext)(rW);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||rV.projectionNodeConstructor,i))}return el.createElement(rH,{visualElement:f.visualElement,props:u},d,el.createElement(rA.Provider,{value:f},r(a,o,h,(l=f.visualElement,(0,el.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):rN(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return o[r$]=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{...rK(e)?iz:iF,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:a},o)=>{let s=(rK(t)?function(e,t){let n=(0,el.useMemo)(()=>{let n=iE();return ik(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ig(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 ig(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,el.useMemo)(()=>{let r=im();return ip(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),l={...function(e,t,n){let r={};for(let i in e)(ib(i)||!0===n&&iy(i)||!t&&!iy(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,el.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,l3,la,l4));function l6(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,el.useState)(!1);return{open:(0,el.useMemo)(()=>n?t:r,[n,r,t]),onOpenChange:(0,el.useCallback)(e=>{n?n(e):i(e)},[n])}}let l8={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 l7(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:a,delayDuration:o=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=l6({open:i,onOpenChange:a});return(0,es.jsxs)(n0,{open:u,delayDuration:o,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,es.jsx)(nH,{asChild:!0,children:t}),(0,es.jsx)(rM,{children:n&&u?(0,es.jsx)(n1,{forceMount:!0,children:(0,es.jsx)(nY,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,es.jsx)(l5.div,{variants:l8,initial:"init",animate:"show",exit:"exit",className:(0,tl.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,es.jsx)("div",{className:(0,tl.cx)("py-1 px-2","max-w-xs","overflow-hidden",n5()),children:"string"==typeof n||el.isValidElement(n)&&(null==n?void 0:n.type)===el.Fragment?(0,es.jsx)(n3,{size:"12",children:n}):n})})})}):null})]})}let l9=(0,tl.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"}}),ue=el.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,es.jsx)(l7,{content:u,align:c,side:d,children:(0,es.jsx)("button",{ref:t,type:h,disabled:o,className:l9({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})}):(0,es.jsx)("button",{ref:t,disabled:o,type:h,className:l9({variant:n,size:r,state:i,rounded:a,disabled:o,icon:s,color:l,className:f}),...p})});var ut=n(28420);(0,tl.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let un=(0,tl.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),ur=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{...r,className:un({className:n}),ref:t})});var ui=globalThis?.document?el.useLayoutEffect:()=>{},ua=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(ul);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(uo,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(uo,{...r,ref:t,children:n})});ua.displayName="Slot";var uo=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});uo.displayName="SlotClone";var us=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function ul(e){return el.isValidElement(e)&&e.type===us}var uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ua:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),uc="Avatar",[ud,uf]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(uc),[uh,up]=ud(uc),um=el.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=el.useState("idle");return(0,es.jsx)(uh,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,es.jsx)(uu.span,{...r,ref:t})})});um.displayName=uc;var ug="AvatarImage",uv=el.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=up(ug,n),s=function(e,t){let[n,r]=el.useState("idle");return ui(()=>{if(!e){r("error");return}let n=!0,i=new window.Image,a=e=>()=>{n&&r(e)};return r("loading"),i.onload=a("loaded"),i.onerror=a("error"),i.src=e,t&&(i.referrerPolicy=t),()=>{n=!1}},[e,t]),n}(r,a.referrerPolicy),l=function(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}(e=>{i(e),o.onImageLoadingStatusChange(e)});return ui(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,es.jsx)(uu.img,{...a,ref:t,src:r}):null});uv.displayName=ug;var uy="AvatarFallback",ub=el.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=up(uy,n),[o,s]=el.useState(void 0===r);return el.useEffect(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&"loaded"!==a.imageLoadingStatus?(0,es.jsx)(uu.span,{...i,ref:t}):null});ub.displayName=uy;let ux=(0,tl.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"}}),uw=(0,tl.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),uj=el.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:a,variant:o,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,es.jsx)("div",{className:(0,tl.cx)("relative h-fit w-fit",c),children:(0,es.jsxs)(um,{...d,ref:t,className:ux({className:c,size:a,variant:o,interactive:l,inactive:u,shape:s}),children:["filter"===o&&(0,es.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,es.jsx)(uv,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,es.jsx)(ub,{className:uw({size:a}),children:i})]})})}),uk=(0,tl.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}}),uE=el.forwardRef((e,t)=>{let{variant:n,size:r,interactive:i,rounded:a,className:o,...s}=e;return(0,es.jsx)("div",{...s,className:uk({variant:n,size:r,interactive:i,rounded:a,className:o}),ref:t})}),u_=el.forwardRef((e,t)=>{let{className:n,size:r,color:i,...a}=e;return(0,es.jsx)("pre",{children:(0,es.jsx)("code",{className:(0,tl.cx)(n2({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})})}),uC=(0,tl.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}}),uS=el.forwardRef((e,t)=>{let{color:n,className:r,ellipsis:i,...a}=e;return(0,es.jsx)("code",{...a,className:uC({color:n,ellipsis:i,className:r}),ref:t})}),uO=(0,tl.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"]),uM=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{ref:t,className:uO({className:n}),...r})});function uP(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function uA(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function uT(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var uN=globalThis?.document?el.useLayoutEffect:()=>{},uR=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(uz);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(uD,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(uD,{...r,ref:t,children:n})});uR.displayName="Slot";var uD=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?uP(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});uD.displayName="SlotClone";var uL=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function uz(e){return el.isValidElement(e)&&e.type===uL}var uF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?uR:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),uZ="Checkbox",[uI,uV]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(uZ),[uB,uU]=uI(uZ),uH=el.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:u,form:c,...d}=e,[f,h]=el.useState(null),p=function(...e){return el.useCallback(uP(...e),e)}(t,e=>h(e)),m=el.useRef(!1),g=!f||c||!!f.closest("form"),[v=!1,y]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=uT(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=uT(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:i,defaultProp:a,onChange:u}),b=el.useRef(v);return el.useEffect(()=>{let e=f?.form;if(e){let t=()=>y(b.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[f,y]),(0,es.jsxs)(uB,{scope:n,state:v,disabled:s,children:[(0,es.jsx)(uF.button,{type:"button",role:"checkbox","aria-checked":uK(v)?"mixed":v,"aria-required":o,"data-state":uY(v),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onKeyDown:uA(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:uA(e.onClick,e=>{y(e=>!!uK(e)||!e),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),g&&(0,es.jsx)(uq,{control:f,bubbles:!m.current,name:r,value:l,checked:v,required:o,disabled:s,form:c,style:{transform:"translateX(-100%)"},defaultChecked:!uK(a)&&a})]})});uH.displayName=uZ;var uW="CheckboxIndicator",u$=el.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=uU(uW,n);return(0,es.jsx)(eM,{present:r||uK(a.state)||!0===a.state,children:(0,es.jsx)(uF.span,{"data-state":uY(a.state),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});u$.displayName=uW;var uq=e=>{let{control:t,checked:n,bubbles:r=!0,defaultChecked:i,...a}=e,o=el.useRef(null),s=function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),l=function(e){let[t,n]=el.useState(void 0);return uN(()=>{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}(t);el.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==n&&t){let i=new Event("click",{bubbles:r});e.indeterminate=uK(n),t.call(e,!uK(n)&&n),e.dispatchEvent(i)}},[s,n,r]);let u=el.useRef(!uK(n)&&n);return(0,es.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??u.current,...a,tabIndex:-1,ref:o,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function uK(e){return"indeterminate"===e}function uY(e){return uK(e)?"indeterminate":e?"checked":"unchecked"}let uG=(0,tl.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-white 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"}}),uX=el.forwardRef((e,t)=>{let{size:n,children:r,...i}=e,a=(0,es.jsx)(uH,{className:uG({size:n}),...i,ref:t,children:(0,es.jsx)(u$,{className:"flex items-center justify-center h-full w-full text-white",children:"indeterminate"===i.checked?(0,es.jsx)(ut.eOF,{}):(0,es.jsx)(ut.NlZ,{})})});return r?(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[a,(0,es.jsx)(n4,{color:i.disabled?"subtle":"contrast",children:r})]}):a}),uJ=(0,tl.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"}}),uQ=el.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...a}=e;return(0,es.jsx)("div",{ref:t,...a,className:uJ({size:i,pad:r,className:n})})});var u0=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(u4);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(u1,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(u1,{...r,ref:t,children:n})});u0.displayName="Slot";var u1=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});u1.displayName="SlotClone";var u2=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function u4(e){return el.isValidElement(e)&&e.type===u2}var u3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?u0:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),u5=el.forwardRef((e,t)=>(0,es.jsx)(u3.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));function u6(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u8(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function u7(...e){return el.useCallback(u8(...e),e)}function u9(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function ct(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function cn(...e){return el.useCallback(ct(...e),e)}u5.displayName="VisuallyHidden";var cr=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(co);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(ci,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(ci,{...r,ref:t,children:n})});cr.displayName="Slot";var ci=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ct(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});ci.displayName="SlotClone";var ca=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function co(e){return el.isValidElement(e)&&e.type===ca}var cs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cr:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cl(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var cu="dismissableLayer.update",cc=el.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cd=el.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,u=el.useContext(cc),[c,d]=el.useState(null),f=c?.ownerDocument??globalThis?.document,[,h]=el.useState({}),p=cn(t,e=>d(e)),m=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),y=c?m.indexOf(c):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,w=function(e,t=globalThis?.document){let n=cl(e),r=el.useRef(!1),i=el.useRef(()=>{});return el.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ch("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);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=[...u.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),j=function(e,t=globalThis?.document){let n=cl(e),r=el.useRef(!1);return el.useEffect(()=>{let e=e=>{e.target&&!r.current&&ch("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;[...u.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return!function(e,t=globalThis?.document){let n=function(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}(e);el.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y!==u.layers.size-1||(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),el.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(I=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),cf(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=I)}},[c,f,n,u]),el.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),cf())},[c,u]),el.useEffect(()=>{let e=()=>h({});return document.addEventListener(cu,e),()=>document.removeEventListener(cu,e)},[]),(0,es.jsx)(cs.div,{...l,ref:p,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,j.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,w.onPointerDownCapture)})});function cf(){let e=new CustomEvent(cu);document.dispatchEvent(e)}function ch(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&&ey.flushSync(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}function cp(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}cd.displayName="DismissableLayer",el.forwardRef((e,t)=>{let n=el.useContext(cc),r=el.useRef(null),i=cn(t,r);return el.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,es.jsx)(cs.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var cm=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(cy);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(cg,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(cg,{...r,ref:t,children:n})});cm.displayName="Slot";var cg=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?cp(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});cg.displayName="SlotClone";var cv=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function cy(e){return el.isValidElement(e)&&e.type===cv}var cb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cm:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function cx(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var cw="focusScope.autoFocusOnMount",cj="focusScope.autoFocusOnUnmount",ck={bubbles:!1,cancelable:!0},cE=el.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=el.useState(null),u=cx(i),c=cx(a),d=el.useRef(null),f=function(...e){return el.useCallback(cp(...e),e)}(t,e=>l(e)),h=el.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;el.useEffect(()=>{if(r){let e=function(e){if(h.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:cS(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||cS(d.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&cS(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,h.paused]),el.useEffect(()=>{if(s){cO.add(h);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(cw,ck);s.addEventListener(cw,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(cS(r,{select:t}),document.activeElement!==n)return}(c_(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&cS(s))}return()=>{s.removeEventListener(cw,u),setTimeout(()=>{let t=new CustomEvent(cj,ck);s.addEventListener(cj,c),s.dispatchEvent(t),t.defaultPrevented||cS(e??document.body,{select:!0}),s.removeEventListener(cj,c),cO.remove(h)},0)}}},[s,u,c,h]);let p=el.useCallback(e=>{if(!n&&!r||h.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=c_(e);return[cC(t,e),cC(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&cS(a,{select:!0})):(e.preventDefault(),n&&cS(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,h.paused]);return(0,es.jsx)(cb.div,{tabIndex:-1,...o,ref:f,onKeyDown:p})});function c_(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 cC(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 cS(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()}}cE.displayName="FocusScope";var cO=(h=[],{add(e){let t=h[0];e!==t&&t?.pause(),(h=cM(h,e)).unshift(e)},remove(e){h=cM(h,e),h[0]?.resume()}});function cM(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var cP=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(cN);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(cA,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(cA,{...r,ref:t,children:n})});cP.displayName="Slot";var cA=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});cA.displayName="SlotClone";var cT=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function cN(e){return el.isValidElement(e)&&e.type===cT}var cR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cP:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cD=globalThis?.document?el.useLayoutEffect:()=>{},cL=el.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=el.useState(!1);cD(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ey.createPortal((0,es.jsx)(cR.div,{...r,ref:t}),o):null});cL.displayName="Portal";var cz=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(cI);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(cF,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(cF,{...r,ref:t,children:n})});cz.displayName="Slot";var cF=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?u8(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});cF.displayName="SlotClone";var cZ=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function cI(e){return el.isValidElement(e)&&e.type===cZ}var cV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?cz:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cB=0;function cU(){el.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??cH()),document.body.insertAdjacentElement("beforeend",e[1]??cH()),cB++,()=>{1===cB&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),cB--}},[])}function cH(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var cW=n(22970),c$=n(95346),cq=n(22442),cK=(0,n(64597)._)(),cY=function(){},cG=el.forwardRef(function(e,t){var n=el.useRef(null),r=el.useState({onScrollCapture:cY,onWheelCapture:cY,onTouchMoveCapture:cY}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,p=e.inert,m=e.allowPinchZoom,g=e.as,v=e.gapMode,y=(0,cW._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,cq.q)([n,t]),x=(0,cW.pi)((0,cW.pi)({},y),i);return el.createElement(el.Fragment,null,c&&el.createElement(f,{sideCar:cK,removeScrollBar:u,shards:d,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:v}),o?el.cloneElement(el.Children.only(s),(0,cW.pi)((0,cW.pi)({},x),{ref:b})):el.createElement(void 0===g?"div":g,(0,cW.pi)({},x,{className:l,ref:b}),s))});cG.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cG.classNames={fullWidth:c$.zi,zeroRight:c$.pF};var cX=n(57758),cJ=n(181),cQ=n(33225),c0=!1;if("undefined"!=typeof window)try{var c1=Object.defineProperty({},"passive",{get:function(){return c0=!0,!0}});window.addEventListener("test",c1,c1),window.removeEventListener("test",c1,c1)}catch(e){c0=!1}var c2=!!c0&&{passive:!1},c4=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},c3=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),c5(e,r)){var i=c6(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},c5=function(e,t){return"v"===e?c4(t,"overflowY"):c4(t,"overflowX")},c6=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},c8=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=c6(e,l),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&c5(e,l)&&(f+=g,h+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},c7=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},c9=function(e){return[e.deltaX,e.deltaY]},de=function(e){return e&&"current"in e?e.current:e},dt=0,dn=[],dr=(0,cX.L)(cK,function(e){var t=el.useRef([]),n=el.useRef([0,0]),r=el.useRef(),i=el.useState(dt++)[0],a=el.useState(cQ.Ws)[0],o=el.useRef(e);el.useEffect(function(){o.current=e},[e]),el.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,cW.ev)([e.lockRef.current],(e.shards||[]).map(de),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=el.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var i,a=c7(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=c3(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=c3(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return c8(h,t,e,"h"===h?l:u,!0)},[]),l=el.useCallback(function(e){if(dn.length&&dn[dn.length-1]===a){var n="deltaY"in e?c9(e):c7(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(o.current.shards||[]).map(de).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=el.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=el.useCallback(function(e){n.current=c7(e),r.current=void 0},[]),d=el.useCallback(function(t){u(t.type,c9(t),t.target,s(t,e.lockRef.current))},[]),f=el.useCallback(function(t){u(t.type,c7(t),t.target,s(t,e.lockRef.current))},[]);el.useEffect(function(){return dn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,c2),document.addEventListener("touchmove",l,c2),document.addEventListener("touchstart",c,c2),function(){dn=dn.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,c2),document.removeEventListener("touchmove",l,c2),document.removeEventListener("touchstart",c,c2)}},[]);var h=e.removeScrollBar,p=e.inert;return el.createElement(el.Fragment,null,p?el.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?el.createElement(cJ.jp,{gapMode:e.gapMode}):null)}),di=el.forwardRef(function(e,t){return el.createElement(cG,(0,cW.pi)({},e,{ref:t,sideCar:dr}))});di.classNames=cG.classNames;var da=n(49732),ds="Dialog",[dl,du]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ds),[dc,dd]=dl(ds),df=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=el.useRef(null),l=el.useRef(null),[u=!1,c]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=u9(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=u9(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:a});return(0,es.jsx)(dc,{scope:t,triggerRef:s,contentRef:l,contentId:eR(),titleId:eR(),descriptionId:eR(),open:u,onOpenChange:c,onOpenToggle:el.useCallback(()=>c(e=>!e),[c]),modal:o,children:n})};df.displayName=ds;var dh="DialogTrigger",dp=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dh,n),a=u7(t,i.triggerRef);return(0,es.jsx)(cV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dN(i.open),...r,ref:a,onClick:u6(e.onClick,i.onOpenToggle)})});dp.displayName=dh;var dm="DialogPortal",[dg,dv]=dl(dm,{forceMount:void 0}),dy=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=dd(dm,t);return(0,es.jsx)(dg,{scope:t,forceMount:n,children:el.Children.map(r,e=>(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:e})}))})};dy.displayName=dm;var db="DialogOverlay",dx=el.forwardRef((e,t)=>{let n=dv(db,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=dd(db,e.__scopeDialog);return a.modal?(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(dw,{...i,ref:t})}):null});dx.displayName=db;var dw=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(db,n);return(0,es.jsx)(di,{as:cz,allowPinchZoom:!0,shards:[i.contentRef],children:(0,es.jsx)(cV.div,{"data-state":dN(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),dj="DialogContent",dk=el.forwardRef((e,t)=>{let n=dv(dj,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=dd(dj,e.__scopeDialog);return(0,es.jsx)(eM,{present:r||a.open,children:a.modal?(0,es.jsx)(dE,{...i,ref:t}):(0,es.jsx)(d_,{...i,ref:t})})});dk.displayName=dj;var dE=el.forwardRef((e,t)=>{let n=dd(dj,e.__scopeDialog),r=el.useRef(null),i=u7(t,n.contentRef,r);return el.useEffect(()=>{let e=r.current;if(e)return(0,da.R)(e)},[]),(0,es.jsx)(dC,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:u6(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:u6(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:u6(e.onFocusOutside,e=>e.preventDefault())})}),d_=el.forwardRef((e,t)=>{let n=dd(dj,e.__scopeDialog),r=el.useRef(!1),i=el.useRef(!1);return(0,es.jsx)(dC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),dC=el.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=dd(dj,n),l=el.useRef(null),u=u7(t,l);return cU(),(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(cE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,es.jsx)(cd,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":dN(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(dz,{titleId:s.titleId}),(0,es.jsx)(dF,{contentRef:l,descriptionId:s.descriptionId})]})]})}),dS="DialogTitle",dO=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dS,n);return(0,es.jsx)(cV.h2,{id:i.titleId,...r,ref:t})});dO.displayName=dS;var dM="DialogDescription",dP=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dM,n);return(0,es.jsx)(cV.p,{id:i.descriptionId,...r,ref:t})});dP.displayName=dM;var dA="DialogClose",dT=el.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=dd(dA,n);return(0,es.jsx)(cV.button,{type:"button",...r,ref:t,onClick:u6(e.onClick,()=>i.onOpenChange(!1))})});function dN(e){return e?"open":"closed"}dT.displayName=dA;var dR="DialogTitleWarning",[dD,dL]=function(e,t){let n=el.createContext(t),r=e=>{let{children:t,...r}=e,i=el.useMemo(()=>r,Object.values(r));return(0,es.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){let i=el.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(dR,{contentName:dj,titleName:dS,docsSlug:"dialog"}),dz=({titleId:e})=>{let t=dL(dR),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return el.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},dF=({contentRef:e,descriptionId:t})=>{let n=dL("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return el.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(r)},[r,e,t]),null};function dZ(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function dI(...e){return el.useCallback(dZ(...e),e)}var dB=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(dH);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(dV,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(dV,{...r,ref:t,children:n})});dB.displayName="Slot";var dV=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?dZ(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});dV.displayName="SlotClone";var dU=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function dH(e){return el.isValidElement(e)&&e.type===dU}var dW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?dB:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function d$(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var dq=el.createContext(void 0),dK=globalThis?.document?el.useLayoutEffect:()=>{};function dY(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var dG="ScrollArea",[dX,dJ]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(dG),[dQ,d0]=dX(dG),d1=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=el.useState(null),[u,c]=el.useState(null),[d,f]=el.useState(null),[h,p]=el.useState(null),[m,g]=el.useState(null),[v,y]=el.useState(0),[b,x]=el.useState(0),[w,j]=el.useState(!1),[k,E]=el.useState(!1),_=dI(t,e=>l(e)),C=function(e){let t=el.useContext(dq);return e||t||"ltr"}(i);return(0,es.jsx)(dQ,{scope:n,type:r,dir:C,scrollHideDelay:a,scrollArea:s,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:x,children:(0,es.jsx)(dW.div,{dir:C,...o,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});d1.displayName=dG;var d2="ScrollAreaViewport",d4=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,asChild:i,nonce:a,...o}=e,s=d0(d2,n),l=dI(t,el.useRef(null),s.onViewportChange);return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)("style",{dangerouslySetInnerHTML:{__html:` +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return el.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},dF=({contentRef:e,descriptionId:t})=>{let n=dL("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return el.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(r)},[r,e,t]),null};function dZ(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function dI(...e){return el.useCallback(dZ(...e),e)}var dV=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(dH);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(dB,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(dB,{...r,ref:t,children:n})});dV.displayName="Slot";var dB=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?dZ(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});dB.displayName="SlotClone";var dU=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function dH(e){return el.isValidElement(e)&&e.type===dU}var dW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?dV:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function d$(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var dq=el.createContext(void 0),dK=globalThis?.document?el.useLayoutEffect:()=>{};function dY(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var dG="ScrollArea",[dX,dJ]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(dG),[dQ,d0]=dX(dG),d1=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:a=600,...o}=e,[s,l]=el.useState(null),[u,c]=el.useState(null),[d,f]=el.useState(null),[h,p]=el.useState(null),[m,g]=el.useState(null),[v,y]=el.useState(0),[b,x]=el.useState(0),[w,j]=el.useState(!1),[k,E]=el.useState(!1),_=dI(t,e=>l(e)),C=function(e){let t=el.useContext(dq);return e||t||"ltr"}(i);return(0,es.jsx)(dQ,{scope:n,type:r,dir:C,scrollHideDelay:a,scrollArea:s,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:x,children:(0,es.jsx)(dW.div,{dir:C,...o,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});d1.displayName=dG;var d2="ScrollAreaViewport",d4=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,asChild:i,nonce:a,...o}=e,s=d0(d2,n),l=dI(t,el.useRef(null),s.onViewportChange);return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)("style",{dangerouslySetInnerHTML:{__html:` [data-radix-scroll-area-viewport] { scrollbar-width: none; -ms-overflow-style: none; @@ -27,12 +27,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do :where([data-radix-scroll-area-content]) { flex-grow: 1; } -`},nonce:a}),(0,es.jsx)(dW.div,{"data-radix-scroll-area-viewport":"",...o,asChild:i,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,t){let{asChild:n,children:r}=e;if(!n)return"function"==typeof t?t(r):t;let i=el.Children.only(r);return el.cloneElement(i,{children:"function"==typeof t?t(i.props.children):t})}({asChild:i,children:r},e=>(0,es.jsx)("div",{"data-radix-scroll-area-content":"",ref:s.onContentChange,style:{minWidth:s.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});d4.displayName=d2;var d3="ScrollAreaScrollbar",d5=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=d0(d3,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s="horizontal"===e.orientation;return el.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),"hover"===i.type?(0,es.jsx)(d6,{...r,ref:t,forceMount:n}):"scroll"===i.type?(0,es.jsx)(d8,{...r,ref:t,forceMount:n}):"auto"===i.type?(0,es.jsx)(d7,{...r,ref:t,forceMount:n}):"always"===i.type?(0,es.jsx)(d9,{...r,ref:t}):null});d5.displayName=d3;var d6=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=d0(d3,e.__scopeScrollArea),[a,o]=el.useState(!1);return el.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,es.jsx)(eM,{present:n||a,children:(0,es.jsx)(d7,{"data-state":a?"visible":"hidden",...r,ref:t})})}),d8=el.forwardRef((e,t)=>{var n,r;let{forceMount:i,...a}=e,o=d0(d3,e.__scopeScrollArea),s="horizontal"===e.orientation,l=fv(()=>c("SCROLL_END"),100),[u,c]=(n="hidden",r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},el.useReducer((e,t)=>r[e][t]??e,n));return el.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,o.scrollHideDelay,c]),el.useEffect(()=>{let e=o.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,s,c,l]),(0,es.jsx)(eM,{present:i||"hidden"!==u,children:(0,es.jsx)(d9,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:t,onPointerEnter:dY(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:dY(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),d7=el.forwardRef((e,t)=>{let n=d0(d3,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=el.useState(!1),s="horizontal"===e.orientation,l=fv(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=d0(d3,e.__scopeScrollArea),a=el.useRef(null),o=el.useRef(0),[s,l]=el.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ff(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,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=fh(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return fm([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,o.current,s,t)}return"horizontal"===n?(0,es.jsx)(fe,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=fp(i.viewport.scrollLeft,s,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,es.jsx)(ft,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=fp(i.viewport.scrollTop,s);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}),fe=el.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=d0(d3,e.__scopeScrollArea),[o,s]=el.useState(),l=el.useRef(null),u=dI(t,l,a.onScrollbarXChange);return el.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,es.jsx)(fi,{"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":fh(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{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:fd(o.paddingLeft),paddingEnd:fd(o.paddingRight)}})}})}),ft=el.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=d0(d3,e.__scopeScrollArea),[o,s]=el.useState(),l=el.useRef(null),u=dI(t,l,a.onScrollbarYChange);return el.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,es.jsx)(fi,{"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":fh(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{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:fd(o.paddingTop),paddingEnd:fd(o.paddingBottom)}})}})}),[fn,fr]=dX(d3),fi=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=d0(d3,n),[p,m]=el.useState(null),g=dI(t,e=>m(e)),v=el.useRef(null),y=el.useRef(""),b=h.viewport,x=r.content-r.viewport,w=d$(c),j=d$(l),k=fv(d,10);function E(e){v.current&&u({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return el.useEffect(()=>{let e=e=>{let t=e.target;p?.contains(t)&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),el.useEffect(j,[r,j]),fy(p,k),fy(h.content,k),(0,es.jsx)(fn,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:d$(a),onThumbPointerUp:d$(o),onThumbPositionChange:j,onThumbPointerDown:d$(s),children:(0,es.jsx)(dW.div,{...f,ref:g,style:{position:"absolute",...f.style},onPointerDown:dY(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",h.viewport&&(h.viewport.style.scrollBehavior="auto"),E(e))}),onPointerMove:dY(e.onPointerMove,E),onPointerUp:dY(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,h.viewport&&(h.viewport.style.scrollBehavior=""),v.current=null})})})}),fa="ScrollAreaThumb",fo=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=fr(fa,e.__scopeScrollArea);return(0,es.jsx)(eM,{present:n||i.hasThumb,children:(0,es.jsx)(fs,{ref:t,...r})})}),fs=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=d0(fa,n),o=fr(fa,n),{onThumbPositionChange:s}=o,l=dI(t,e=>o.onThumbChange(e)),u=el.useRef(),c=fv(()=>{u.current&&(u.current(),u.current=void 0)},100);return el.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=fg(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),(0,es.jsx)(dW.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:dY(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:dY(e.onPointerUp,o.onThumbPointerUp)})});fo.displayName=fa;var fl="ScrollAreaCorner",fu=el.forwardRef((e,t)=>{let n=d0(fl,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,es.jsx)(fc,{...e,ref:t}):null});fu.displayName=fl;var fc=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=d0(fl,n),[a,o]=el.useState(0),[s,l]=el.useState(0),u=!!(a&&s);return fy(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),l(e)}),fy(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),u?(0,es.jsx)(dW.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function fd(e){return e?parseInt(e,10):0}function ff(e,t){let n=e/t;return isNaN(n)?0:n}function fh(e){let t=ff(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function fp(e,t,n="ltr"){let r=fh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return fm([0,o],[0,a-r])(s)}function fm(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])}}var fg=(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,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function fv(e,t){let n=d$(e),r=el.useRef(0);return el.useEffect(()=>()=>window.clearTimeout(r.current),[]),el.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function fy(e,t){let n=d$(t);dK(()=>{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 fb=el.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:a,keyToResetScrollbars:o}=e;return(0,es.jsxs)(d1,{className:(0,tl.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,es.jsx)(d4,{id:n,ref:t,className:"w-full h-full [&>div]:!min-w-0 [&>div]:!h-full",children:a}),(0,es.jsx)(d5,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5",children:(0,es.jsx)(fo,{className:(0,tl.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,es.jsx)(d5,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1",children:(0,es.jsx)(fo,{className:(0,tl.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,es.jsx)(fu,{className:"bg-black/70"})]})}),fx=(0,tl.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),fw={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},fj=el.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:a,onSubmit:o,title:s,titleVisuallyHidden:l,description:u,descriptionVisuallyHidden:c,containerVariants:d,contentVariants:f,controls:h,children:p,bodyClassName:m,closeClassName:g,dynamicHeight:v=!0}=e,{open:y,onOpenChange:b}=l6({open:i,onOpenChange:a});return(0,el.useEffect)(()=>{y&&b(y)},[y]),(0,es.jsxs)(df,{open:y,onOpenChange:b,...r,children:[n&&(0,es.jsx)(dp,{asChild:!0,children:n}),(0,es.jsx)(rM,{children:y?(0,es.jsx)(dy,{forceMount:!0,children:(0,es.jsx)(dk,{asChild:!0,forceMount:!0,ref:t,...void 0===u?{"aria-describedby":void 0}:{},children:(0,es.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,es.jsx)(dx,{onClick:()=>b(!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,es.jsx)(l5.div,{variants:fw,initial:"init",animate:"show",exit:"exit",className:fx(d),children:(0,es.jsx)(f_,{title:s,description:u,titleVisuallyHidden:l,descriptionVisuallyHidden:c,contentVariants:f,onSubmit:o,controls:h,bodyClassName:m,closeClassName:g,dynamicHeight:v,children:p})})]})})}):null})]})});function fk(e){let{className:t}=e;return(0,es.jsx)(dT,{asChild:!0,type:"button",children:(0,es.jsx)("div",{className:(0,tl.cx)("appearance-none",t),children:(0,es.jsx)(ue,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,es.jsx)(ut.QN4,{})})})})}let fE=(0,tl.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[n5()],none:""}},defaultVariants:{variant:"default"}}),f_=el.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:a,titleVisuallyHidden:o,descriptionVisuallyHidden:s,controls:l,contentVariants:u,closeClassName:c,bodyClassName:d,dynamicHeight:f=!0}=e,{ref:h,height:p}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,el.useState)(0),r=(0,el.useRef)(null);return(0,el.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]),[m,g]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{g(p>.7*window.innerHeight)},[p]),(0,es.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:fE(u),children:[i?o?(0,es.jsx)(u5,{children:(0,es.jsx)(dO,{children:i})}):(0,es.jsx)(dO,{className:fC({showSeparator:m}),children:i}):null,(0,es.jsx)(fb,{style:{height:f?"".concat(p,"px"):void 0,maxHeight:f?"70vh":void 0},children:(0,es.jsxs)("div",{ref:h,className:(0,tl.cx)("p-4",d),children:[a?s?(0,es.jsx)(u5,{children:(0,es.jsx)(dP,{children:a})}):(0,es.jsx)(dP,{className:fS(),children:a}):null,n]})}),l&&(0,es.jsx)(fO,{separator:m,children:l}),(0,es.jsx)(fk,{className:c||"absolute top-3.5 right-2"})]})}),fC=(0,tl.j)(["pt-4 pb-2 px-4 w-full",n2({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),fS=(0,tl.j)([n2({color:"subtle",size:"14"}),"py-2"]);function fO(e){let{children:t,separator:n=!0}=e;return(0,es.jsx)("div",{className:(0,tl.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}function fM(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function fP(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function fA(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var fT=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(fD);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(fN,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(fN,{...r,ref:t,children:n})});fT.displayName="Slot";var fN=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?fP(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});fN.displayName="SlotClone";var fR=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function fD(e){return el.isValidElement(e)&&e.type===fR}var fL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?fT:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fz(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function fF(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function fZ(...e){return el.useCallback(fF(...e),e)}var fI=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(fU);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(fB,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(fB,{...r,ref:t,children:n})});fI.displayName="Slot";var fB=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?fF(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});fB.displayName="SlotClone";var fV=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function fU(e){return el.isValidElement(e)&&e.type===fV}var fH=el.createContext(void 0);let fW=["top","right","bottom","left"],f$=Math.min,fq=Math.max,fK=Math.round,fY=Math.floor,fG=e=>({x:e,y:e}),fX={left:"right",right:"left",bottom:"top",top:"bottom"},fJ={start:"end",end:"start"};function fQ(e,t){return"function"==typeof e?e(t):e}function f0(e){return e.split("-")[0]}function f1(e){return e.split("-")[1]}function f2(e){return"x"===e?"y":"x"}function f4(e){return"y"===e?"height":"width"}function f3(e){return["top","bottom"].includes(f0(e))?"y":"x"}function f5(e){return e.replace(/start|end/g,e=>fJ[e])}function f6(e){return e.replace(/left|right|bottom|top/g,e=>fX[e])}function f8(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function f7(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function f9(e,t,n){let r,{reference:i,floating:a}=e,o=f3(t),s=f2(f3(t)),l=f4(s),u=f0(t),c="y"===o,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,h=i[l]/2-a[l]/2;switch(u){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-a.width,y:f};break;default:r={x:i.x,y:i.y}}switch(f1(t)){case"start":r[s]-=h*(n&&c?-1:1);break;case"end":r[s]+=h*(n&&c?-1:1)}return r}let he=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=f9(u,r,l),f=r,h={},p=0;for(let n=0;ne[t]>=0)}async function hi(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=f0(n),s=f1(n),l="y"===f3(n),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=fQ(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function ha(){return"undefined"!=typeof window}function ho(e){return hu(e)?(e.nodeName||"").toLowerCase():"#document"}function hs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hl(e){var t;return null==(t=(hu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function hu(e){return!!ha()&&(e instanceof Node||e instanceof hs(e).Node)}function hc(e){return!!ha()&&(e instanceof Element||e instanceof hs(e).Element)}function hd(e){return!!ha()&&(e instanceof HTMLElement||e instanceof hs(e).HTMLElement)}function hf(e){return!!ha()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof hs(e).ShadowRoot)}function hh(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=hy(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function hm(e){let t=hg(),n=hc(e)?hy(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function hg(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function hv(e){return["html","body","#document"].includes(ho(e))}function hy(e){return hs(e).getComputedStyle(e)}function hb(e){return hc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hx(e){if("html"===ho(e))return e;let t=e.assignedSlot||e.parentNode||hf(e)&&e.host||hl(e);return hf(t)?t.host:t}function hw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=hx(t);return hv(n)?t.ownerDocument?t.ownerDocument.body:t.body:hd(n)&&hh(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=hs(i);if(a){let e=hj(o);return t.concat(o,o.visualViewport||[],hh(i)?i:[],e&&n?hw(e):[])}return t.concat(i,hw(i,[],n))}function hj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hk(e){let t=hy(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=hd(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=fK(n)!==a||fK(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function hE(e){return hc(e)?e:e.contextElement}function h_(e){let t=hE(e);if(!hd(t))return fG(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=hk(t),o=(a?fK(n.width):n.width)/r,s=(a?fK(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let hC=fG(0);function hS(e){let t=hs(e);return hg()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:hC}function hO(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=hE(e),s=fG(1);t&&(r?hc(r)&&(s=h_(r)):s=h_(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===hs(o))&&i)?hS(o):fG(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(o){let e=hs(o),t=r&&hc(r)?hs(r):r,n=e,i=hj(n);for(;i&&r&&t!==n;){let e=h_(i),t=i.getBoundingClientRect(),r=hy(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=o,i=hj(n=hs(i))}}return f7({width:d,height:f,x:u,y:c})}function hM(e,t){let n=hb(e).scrollLeft;return t?t.left+n:hO(hl(e)).left+n}function hP(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=hs(e),r=hl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=hg();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=hl(e),n=hb(e),r=e.ownerDocument.body,i=fq(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fq(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+hM(e),s=-n.scrollTop;return"rtl"===hy(r).direction&&(o+=fq(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(hl(e));else if(hc(t))r=function(e,t){let n=hO(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=hd(e)?h_(e):fG(1),o=e.clientWidth*a.x;return{width:o,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n);else{let n=hS(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return f7(r)}function hA(e){return"static"===hy(e).position}function hT(e,t){if(!hd(e)||"fixed"===hy(e).position)return null;if(t)return t(e);let n=e.offsetParent;return hl(e)===n&&(n=n.ownerDocument.body),n}function hN(e,t){let n=hs(e);if(hp(e))return n;if(!hd(e)){let t=hx(e);for(;t&&!hv(t);){if(hc(t)&&!hA(t))return t;t=hx(t)}return n}let r=hT(e,t);for(;r&&["table","td","th"].includes(ho(r))&&hA(r);)r=hT(r,t);return r&&hv(r)&&hA(r)&&!hm(r)?n:r||function(e){let t=hx(e);for(;hd(t)&&!hv(t);){if(hm(t))return t;if(hp(t))break;t=hx(t)}return null}(e)||n}let hR=async function(e){let t=this.getOffsetParent||hN,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=hd(t),i=hl(t),a="fixed"===n,o=hO(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=fG(0);if(r||!r&&!a){if(("body"!==ho(t)||hh(i))&&(s=hb(t)),r){let e=hO(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=hM(i))}let u=0,c=0;if(i&&!r&&!a){let e=i.getBoundingClientRect();c=e.top+s.scrollTop,u=e.left+s.scrollLeft-hM(i,e)}return{x:o.left+s.scrollLeft-l.x-u,y:o.top+s.scrollTop-l.y-c,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},hD={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,o=hl(r),s=!!t&&hp(t.floating);if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=fG(1),c=fG(0),d=hd(r);if((d||!d&&!a)&&(("body"!==ho(r)||hh(o))&&(l=hb(r)),hd(r))){let e=hO(r);u=h_(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:hl,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?hp(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=hw(e,[],!1).filter(e=>hc(e)&&"body"!==ho(e)),i=null,a="fixed"===hy(e).position,o=a?hx(e):e;for(;hc(o)&&!hv(o);){let t=hy(o),n=hm(o);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||hh(o)&&!n&&function e(t,n){let r=hx(t);return!(r===n||!hc(r)||hv(r))&&("fixed"===hy(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):i=t,o=hx(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=hP(t,n,i);return e.top=fq(r.top,e.top),e.right=f$(r.right,e.right),e.bottom=f$(r.bottom,e.bottom),e.left=fq(r.left,e.left),e},hP(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hN,getElementRects:hR,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=hk(e);return{width:t,height:n}},getScale:h_,isElement:hc,isRTL:function(e){return"rtl"===hy(e).direction}},hL=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=fQ(e,t)||{};if(null==u)return{};let d=f8(c),f={x:n,y:r},h=f2(f3(i)),p=f4(h),m=await o.getDimensions(u),g="y"===h,v=g?"clientHeight":"clientWidth",y=a.reference[p]+a.reference[h]-f[h]-a.floating[p],b=f[h]-a.reference[h],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),w=x?x[v]:0;w&&await (null==o.isElement?void 0:o.isElement(x))||(w=s.floating[v]||a.floating[p]);let j=w/2-m[p]/2-1,k=f$(d[g?"top":"left"],j),E=f$(d[g?"bottom":"right"],j),_=w-m[p]-E,C=w/2-m[p]/2+(y/2-b/2),S=fq(k,f$(C,_)),O=!l.arrow&&null!=f1(i)&&C!==S&&a.reference[p]/2-(C{let r=new Map,i={platform:hD,...n},a={...i.platform,_c:r};return he(e,t,{...i,platform:a})};var hF="undefined"!=typeof document?el.useLayoutEffect:el.useEffect;function hZ(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!hZ(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!hZ(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function hI(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hB(e,t){let n=hI(e);return Math.round(t*n)/n}function hV(e){let t=el.useRef(e);return hF(()=>{t.current=e}),t}let hU=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?hL({element:n.current,padding:r}).fn(t):{}:n?hL({element:n,padding:r}).fn(t):{}}}),hH=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:a,placement:o,middlewareData:s}=e,l=await hi(e,n);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}),options:[e,t]}},hW=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fQ(n,e),u={x:t,y:r},c=await ht(e,l),d=f3(f0(i)),f=f2(d),h=u[f],p=u[d];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+c[e],r=h-c[t];h=fq(n,f$(h,r))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=fq(n,f$(p,r))}let m=s.fn({...e,[f]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:a,[d]:o}}}}}),options:[e,t]}},h$=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:a,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fQ(n,e),c={x:t,y:r},d=f3(i),f=f2(d),h=c[f],p=c[d],m=fQ(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;hn&&(h=n)}if(u){var v,y;let e="y"===f?"width":"height",t=["top","left"].includes(f0(i)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=o.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);pr&&(p=r)}return{[f]:h,[d]:p}}}),options:[e,t]}},hq=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=fQ(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let x=f0(s),w=f3(c),j=f0(c)===c,k=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=m||(j||!y?[f6(c)]:function(e){let t=f6(e);return[f5(e),t,f5(t)]}(c)),_="none"!==v;!m&&_&&E.push(...function(e,t,n,r){let i=f1(e),a=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f0(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(f5)))),a}(c,y,v,k));let C=[c,...E],S=await ht(e,b),O=[],M=(null==(r=l.flip)?void 0:r.overflows)||[];if(h&&O.push(S[x]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=f1(e),i=f2(f3(e)),a=f4(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=f6(o)),[o,f6(o)]}(s,u,k);O.push(S[e[0]],S[e[1]])}if(M=[...M,{placement:s,overflows:O}],!O.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(g){case"bestFit":{let e=null==(o=M.filter(e=>{if(_){let t=f3(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},hK=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let i,a;let{placement:o,rects:s,platform:l,elements:u}=e,{apply:c=()=>{},...d}=fQ(n,e),f=await ht(e,d),h=f0(o),p=f1(o),m="y"===f3(o),{width:g,height:v}=s.floating;"top"===h||"bottom"===h?(i=h,a=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(a=h,i="end"===p?"top":"bottom");let y=v-f.top-f.bottom,b=g-f.left-f.right,x=f$(v-f[i],y),w=f$(g-f[a],b),j=!e.middlewareData.shift,k=x,E=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(E=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(k=y),j&&!p){let e=fq(f.left,0),t=fq(f.right,0),n=fq(f.top,0),r=fq(f.bottom,0);m?E=g-2*(0!==e||0!==t?e+t:fq(f.left,f.right)):k=v-2*(0!==n||0!==r?n+r:fq(f.top,f.bottom))}await c({...e,availableWidth:E,availableHeight:k});let _=await l.getDimensions(u.floating);return g!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},hY=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=fQ(n,e);switch(r){case"referenceHidden":{let n=hn(await ht(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:hr(n)}}}case"escaped":{let n=hn(await ht(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:hr(n)}}}default:return{}}}}),options:[e,t]}},hG=(e,t)=>({...hU(e),options:[e,t]});var hX=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(h0);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(hJ,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(hJ,{...r,ref:t,children:n})});hX.displayName="Slot";var hJ=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});hJ.displayName="SlotClone";var hQ=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function h0(e){return el.isValidElement(e)&&e.type===hQ}var h1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?hX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),h2=el.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,es.jsx)(h1.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,es.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function h4(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function h3(...e){return el.useCallback(h4(...e),e)}h2.displayName="Arrow";var h5=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(h7);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(h6,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(h6,{...r,ref:t,children:n})});h5.displayName="Slot";var h6=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?h4(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});h6.displayName="SlotClone";var h8=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function h7(e){return el.isValidElement(e)&&e.type===h8}var h9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?h5:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),pe=globalThis?.document?el.useLayoutEffect:()=>{},pt="Popper",[pn,pr]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(pt),[pi,pa]=pn(pt),po=e=>{let{__scopePopper:t,children:n}=e,[r,i]=el.useState(null);return(0,es.jsx)(pi,{scope:t,anchor:r,onAnchorChange:i,children:n})};po.displayName=pt;var ps="PopperAnchor",pl=el.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=pa(ps,n),o=el.useRef(null),s=h3(t,o);return el.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,es.jsx)(h9.div,{...i,ref:s})});pl.displayName=ps;var pu="PopperContent",[pc,pd]=pn(pu),pf=el.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:p,...m}=e,g=pa(pu,n),[v,y]=el.useState(null),b=h3(t,e=>y(e)),[x,w]=el.useState(null),j=function(e){let[t,n]=el.useState(void 0);return pe(()=>{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}(x),k=j?.width??0,E=j?.height??0,_="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},C=Array.isArray(u)?u:[u],S=C.length>0,O={padding:_,boundary:C.filter(pg),altBoundary:S},{refs:M,floatingStyles:P,placement:A,isPositioned:T,middlewareData:N}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=el.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=el.useState(r);hZ(f,r)||h(r);let[p,m]=el.useState(null),[g,v]=el.useState(null),y=el.useCallback(e=>{e!==j.current&&(j.current=e,m(e))},[]),b=el.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),x=a||p,w=o||g,j=el.useRef(null),k=el.useRef(null),E=el.useRef(c),_=null!=l,C=hV(l),S=hV(i),O=hV(u),M=el.useCallback(()=>{if(!j.current||!k.current)return;let e={placement:t,strategy:n,middleware:f};S.current&&(e.platform=S.current),hz(j.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};P.current&&!hZ(E.current,t)&&(E.current=t,ey.flushSync(()=>{d(t)}))})},[f,t,n,S,O]);hF(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let P=el.useRef(!1);hF(()=>(P.current=!0,()=>{P.current=!1}),[]),hF(()=>{if(x&&(j.current=x),w&&(k.current=w),x&&w){if(C.current)return C.current(x,w,M);M()}},[x,w,M,C,_]);let A=el.useMemo(()=>({reference:j,floating:k,setReference:y,setFloating:b}),[y,b]),T=el.useMemo(()=>({reference:x,floating:w}),[x,w]),N=el.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=hB(T.floating,c.x),r=hB(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...hI(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,T.floating,c.x,c.y]);return el.useMemo(()=>({...c,update:M,refs:A,elements:T,floatingStyles:N}),[c,M,A,T,N])}({strategy:"fixed",placement:r+("center"!==a?"-"+a:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=hE(e),d=a||o?[...c?hw(c):[],...hw(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=hl(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let h=fY(c),p=fY(i.clientWidth-(u+d)),m={rootMargin:-h+"px "+-p+"px "+-fY(i.clientHeight-(c+f))+"px "+-fY(u)+"px",threshold:fq(0,f$(1,l))||1},g=!0;function v(e){let t=e[0].intersectionRatio;if(t!==l){if(!g)return o();t?o(!1,t):n=setTimeout(()=>{o(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),a}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?hO(e):null;return u&&function t(){let r=hO(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===h}),elements:{reference:g.anchor},middleware:[hH({mainAxis:i+E,alignmentAxis:o}),l&&hW({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?h$():void 0,...O}),l&&hq({...O}),hK({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${n}px`),o.setProperty("--radix-popper-available-height",`${r}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}}),x&&hG({element:x,padding:s}),pv({arrowWidth:k,arrowHeight:E}),f&&hY({strategy:"referenceHidden",...O})]}),[R,D]=py(A),L=function(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}(p);pe(()=>{T&&L?.()},[T,L]);let z=N.arrow?.x,F=N.arrow?.y,Z=N.arrow?.centerOffset!==0,[I,B]=el.useState();return pe(()=>{v&&B(window.getComputedStyle(v).zIndex)},[v]),(0,es.jsx)("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:T?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,es.jsx)(pc,{scope:n,placedSide:R,onArrowChange:w,arrowX:z,arrowY:F,shouldHideArrow:Z,children:(0,es.jsx)(h9.div,{"data-side":R,"data-align":D,...m,ref:b,style:{...m.style,animation:T?void 0:"none"}})})})});pf.displayName=pu;var ph="PopperArrow",pp={top:"bottom",right:"left",bottom:"top",left:"right"},pm=el.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=pd(ph,n),a=pp[i.placedSide];return(0,es.jsx)("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},children:(0,es.jsx)(h2,{...r,ref:t,style:{...r.style,display:"block"}})})});function pg(e){return null!==e}pm.displayName=ph;var pv=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=py(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,h="",p="";return"bottom"===l?(h=a?c:`${d}px`,p=`${-s}px`):"top"===l?(h=a?c:`${d}px`,p=`${r.floating.height+s}px`):"right"===l?(h=`${-s}px`,p=a?c:`${f}px`):"left"===l&&(h=`${r.floating.width+s}px`,p=a?c:`${f}px`),{data:{x:h,y:p}}}});function py(e){let[t,n="center"]=e.split("-");return[t,n]}var pb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?fI:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function px(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function pw(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pj(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pk(...e){return el.useCallback(pj(...e),e)}var pE=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(pS);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(p_,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(p_,{...r,ref:t,children:n})});pE.displayName="Slot";var p_=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?pj(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});p_.displayName="SlotClone";var pC=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function pS(e){return el.isValidElement(e)&&e.type===pC}var pO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?pE:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pM(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var pP=el.createContext(void 0),pA="rovingFocusGroup.onEntryFocus",pT={bubbles:!1,cancelable:!0},pN="RovingFocusGroup",[pR,pD,pL]=function(e){let t=e+"CollectionProvider",[n,r]=pw(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=pk(t,a(s,n).collectionRef);return(0,es.jsx)(pE,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=pk(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(pE,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(pN),[pz,pF]=pw(pN,[pL]),[pZ,pI]=pz(pN),pB=el.forwardRef((e,t)=>(0,es.jsx)(pR.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,es.jsx)(pR.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,es.jsx)(pV,{...e,ref:t})})}));pB.displayName=pN;var pV=el.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=el.useRef(null),h=pk(t,f),p=function(e){let t=el.useContext(pP);return e||t||"ltr"}(a),[m=null,g]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=pM(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=pM(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:o,defaultProp:s,onChange:l}),[v,y]=el.useState(!1),b=pM(u),x=pD(n),w=el.useRef(!1),[j,k]=el.useState(0);return el.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(pA,b),()=>e.removeEventListener(pA,b)},[b]),(0,es.jsx)(pZ,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:m,onItemFocus:el.useCallback(e=>g(e),[g]),onItemShiftTab:el.useCallback(()=>y(!0),[]),onFocusableItemAdd:el.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:el.useCallback(()=>k(e=>e-1),[]),children:(0,es.jsx)(pO.div,{tabIndex:v||0===j?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:px(e.onMouseDown,()=>{w.current=!0}),onFocus:px(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(pA,pT);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);p$([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}w.current=!1}),onBlur:px(e.onBlur,()=>y(!1))})})}),pU="RovingFocusGroupItem",pH=el.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=eR(),l=a||s,u=pI(pU,n),c=u.currentTabStopId===l,d=pD(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=u;return el.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),(0,es.jsx)(pR.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,es.jsx)(pO.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:px(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:px(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:px(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){u.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 pW[i]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=d().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=u.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>p$(i))}})})})});pH.displayName=pU;var pW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function p$(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pq(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var pK=["Enter"," "],pY=["ArrowUp","PageDown","End"],pG=["ArrowDown","PageUp","Home",...pY],pX={ltr:[...pK,"ArrowRight"],rtl:[...pK,"ArrowLeft"]},pJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pQ="Menu",[p0,p1,p2]=function(e){let t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=fZ(t,a(s,n).collectionRef);return(0,es.jsx)(fI,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=fZ(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(fI,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(pQ),[p4,p3]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(pQ,[p2,pr,pF]),p5=pr(),p6=pF(),[p8,p7]=p4(pQ),[p9,me]=p4(pQ),mt=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=p5(t),[l,u]=el.useState(null),c=el.useRef(!1),d=pq(a),f=function(e){let t=el.useContext(fH);return e||t||"ltr"}(i);return el.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,es.jsx)(po,{...s,children:(0,es.jsx)(p8,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:(0,es.jsx)(p9,{scope:t,onClose:el.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:o,children:r})})})};mt.displayName=pQ;var mn=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=p5(n);return(0,es.jsx)(pl,{...i,...r,ref:t})});mn.displayName="MenuAnchor";var mr="MenuPortal",[mi,ma]=p4(mr,{forceMount:void 0}),mo=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=p7(mr,t);return(0,es.jsx)(mi,{scope:t,forceMount:n,children:(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:r})})})};mo.displayName=mr;var ms="MenuContent",[ml,mu]=p4(ms),mc=el.forwardRef((e,t)=>{let n=ma(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=p7(ms,e.__scopeMenu),o=me(ms,e.__scopeMenu);return(0,es.jsx)(p0.Provider,{scope:e.__scopeMenu,children:(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(p0.Slot,{scope:e.__scopeMenu,children:o.modal?(0,es.jsx)(md,{...i,ref:t}):(0,es.jsx)(mf,{...i,ref:t})})})})}),md=el.forwardRef((e,t)=>{let n=p7(ms,e.__scopeMenu),r=el.useRef(null),i=fZ(t,r);return el.useEffect(()=>{let e=r.current;if(e)return(0,da.R)(e)},[]),(0,es.jsx)(mh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:fz(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),mf=el.forwardRef((e,t)=>{let n=p7(ms,e.__scopeMenu);return(0,es.jsx)(mh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),mh=el.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:p,...m}=e,g=p7(ms,n),v=me(ms,n),y=p5(n),b=p6(n),x=p1(n),[w,j]=el.useState(null),k=el.useRef(null),E=fZ(t,k,g.onContentChange),_=el.useRef(0),C=el.useRef(""),S=el.useRef(0),O=el.useRef(null),M=el.useRef("right"),P=el.useRef(0),A=p?di:el.Fragment,T=p?{as:fI,allowPinchZoom:!0}:void 0,N=e=>{let t=C.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=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}(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;!function e(t){C.current=t,window.clearTimeout(_.current),""!==t&&(_.current=window.setTimeout(()=>e(""),1e3))}(t),o&&setTimeout(()=>o.focus())};el.useEffect(()=>()=>window.clearTimeout(_.current),[]),cU();let R=el.useCallback(e=>{var t;return M.current===O.current?.side&&!!(t=O.current?.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)},[]);return(0,es.jsx)(ml,{scope:n,searchRef:C,onItemEnter:el.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:el.useCallback(e=>{R(e)||(k.current?.focus(),j(null))},[R]),onTriggerLeave:el.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:S,onPointerGraceIntentChange:el.useCallback(e=>{O.current=e},[]),children:(0,es.jsx)(A,{...T,children:(0,es.jsx)(cE,{asChild:!0,trapped:i,onMountAutoFocus:fz(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,es.jsx)(cd,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:(0,es.jsx)(pB,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:fz(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,es.jsx)(pf,{role:"menu","aria-orientation":"vertical","data-state":mZ(g.open),"data-radix-menu-content":"",dir:v.dir,...y,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:fz(m.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&N(e.key));let i=k.current;if(e.target!==i||!pG.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);pY.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:fz(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(_.current),C.current="")}),onPointerMove:fz(e.onPointerMove,mV(e=>{let t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>P.current?"right":"left";M.current=t,P.current=e.clientX}}))})})})})})})});mc.displayName=ms;var mp=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,es.jsx)(pb.div,{role:"group",...r,ref:t})});mp.displayName="MenuGroup";var mm=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,es.jsx)(pb.div,{...r,ref:t})});mm.displayName="MenuLabel";var mg="MenuItem",mv="menu.itemSelect",my=el.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=el.useRef(null),o=me(mg,e.__scopeMenu),s=mu(mg,e.__scopeMenu),l=fZ(t,a),u=el.useRef(!1);return(0,es.jsx)(mb,{...i,ref:l,disabled:n,onClick:fz(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(mv,{bubbles:!0,cancelable:!0});e.addEventListener(mv,e=>r?.(e),{once:!0}),e&&ey.flushSync(()=>e.dispatchEvent(t)),t.defaultPrevented?u.current=!1:o.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:fz(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:fz(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&pK.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});my.displayName=mg;var mb=el.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=mu(mg,n),s=p6(n),l=el.useRef(null),u=fZ(t,l),[c,d]=el.useState(!1),[f,h]=el.useState("");return el.useEffect(()=>{let e=l.current;e&&h((e.textContent??"").trim())},[a.children]),(0,es.jsx)(p0.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,es.jsx)(pH,{asChild:!0,...s,focusable:!r,children:(0,es.jsx)(pb.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:fz(e.onPointerMove,mV(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:fz(e.onPointerLeave,mV(e=>o.onItemLeave(e))),onFocus:fz(e.onFocus,()=>d(!0)),onBlur:fz(e.onBlur,()=>d(!1))})})})}),mx=el.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,es.jsx)(mO,{scope:e.__scopeMenu,checked:n,children:(0,es.jsx)(my,{role:"menuitemcheckbox","aria-checked":mI(n)?"mixed":n,...i,ref:t,"data-state":mB(n),onSelect:fz(i.onSelect,()=>r?.(!!mI(n)||!n),{checkForDefaultPrevented:!1})})})});mx.displayName="MenuCheckboxItem";var mw="MenuRadioGroup",[mj,mk]=p4(mw,{value:void 0,onValueChange:()=>{}}),mE=el.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=pq(r);return(0,es.jsx)(mj,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,es.jsx)(mp,{...i,ref:t})})});mE.displayName=mw;var m_="MenuRadioItem",mC=el.forwardRef((e,t)=>{let{value:n,...r}=e,i=mk(m_,e.__scopeMenu),a=n===i.value;return(0,es.jsx)(mO,{scope:e.__scopeMenu,checked:a,children:(0,es.jsx)(my,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":mB(a),onSelect:fz(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});mC.displayName=m_;var mS="MenuItemIndicator",[mO,mM]=p4(mS,{checked:!1}),mP=el.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=mM(mS,n);return(0,es.jsx)(eM,{present:r||mI(a.checked)||!0===a.checked,children:(0,es.jsx)(pb.span,{...i,ref:t,"data-state":mB(a.checked)})})});mP.displayName=mS;var mA=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,es.jsx)(pb.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});mA.displayName="MenuSeparator";var mT=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=p5(n);return(0,es.jsx)(pm,{...i,...r,ref:t})});mT.displayName="MenuArrow";var[mN,mR]=p4("MenuSub"),mD="MenuSubTrigger",mL=el.forwardRef((e,t)=>{let n=p7(mD,e.__scopeMenu),r=me(mD,e.__scopeMenu),i=mR(mD,e.__scopeMenu),a=mu(mD,e.__scopeMenu),o=el.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=el.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return el.useEffect(()=>c,[c]),el.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,es.jsx)(mn,{asChild:!0,...u,children:(0,es.jsx)(mb,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":mZ(n.open),...e,ref:fF(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:fz(e.onPointerMove,mV(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:fz(e.onPointerLeave,mV(e=>{c();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,o=t[i?"left":"right"],l=t[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:fz(e.onKeyDown,t=>{let i=""!==a.searchRef.current;!e.disabled&&(!i||" "!==t.key)&&pX[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});mL.displayName=mD;var mz="MenuSubContent",mF=el.forwardRef((e,t)=>{let n=ma(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=p7(ms,e.__scopeMenu),o=me(ms,e.__scopeMenu),s=mR(mz,e.__scopeMenu),l=el.useRef(null),u=fZ(t,l);return(0,es.jsx)(p0.Provider,{scope:e.__scopeMenu,children:(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(p0.Slot,{scope:e.__scopeMenu,children:(0,es.jsx)(mh,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:u,align:"start",side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:fz(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:fz(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:fz(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=pJ[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function mZ(e){return e?"open":"closed"}function mI(e){return"indeterminate"===e}function mB(e){return mI(e)?"indeterminate":e?"checked":"unchecked"}function mV(e){return t=>"mouse"===t.pointerType?e(t):void 0}mF.displayName=mz;var mU="DropdownMenu",[mH,mW]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(mU,[p3]),m$=p3(),[mq,mK]=mH(mU),mY=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=m$(t),u=el.useRef(null),[c=!1,d]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=fA(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=fA(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:i,defaultProp:a,onChange:o});return(0,es.jsx)(mq,{scope:t,triggerId:eR(),triggerRef:u,contentId:eR(),open:c,onOpenChange:d,onOpenToggle:el.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,es.jsx)(mt,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};mY.displayName=mU;var mG="DropdownMenuTrigger",mX=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=mK(mG,n),o=m$(n);return(0,es.jsx)(mn,{asChild:!0,...o,children:(0,es.jsx)(fL.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:fP(t,a.triggerRef),onPointerDown:fM(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:fM(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});mX.displayName=mG;var mJ=e=>{let{__scopeDropdownMenu:t,...n}=e,r=m$(t);return(0,es.jsx)(mo,{...r,...n})};mJ.displayName="DropdownMenuPortal";var mQ="DropdownMenuContent",m0=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=mK(mQ,n),a=m$(n),o=el.useRef(!1);return(0,es.jsx)(mc,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:fM(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:fM(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)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});m0.displayName=mQ,el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mp,{...i,...r,ref:t})}).displayName="DropdownMenuGroup";var m1=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mm,{...i,...r,ref:t})});m1.displayName="DropdownMenuLabel";var m2=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(my,{...i,...r,ref:t})});m2.displayName="DropdownMenuItem",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mx,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mE,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mC,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mP,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mA,{...i,...r,ref:t})}).displayName="DropdownMenuSeparator",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mT,{...i,...r,ref:t})}).displayName="DropdownMenuArrow",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mL,{...i,...r,ref:t})}).displayName="DropdownMenuSubTrigger",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mF,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var m4=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(m6);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(m3,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(m3,{...r,ref:t,children:n})});m4.displayName="Slot";var m3=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});m3.displayName="SlotClone";var m5=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function m6(e){return el.isValidElement(e)&&e.type===m5}var m8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?m4:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),m7="horizontal",m9=["horizontal","vertical"],ge=el.forwardRef((e,t)=>{let{decorative:n,orientation:r=m7,...i}=e,a=m9.includes(r)?r:m7;return(0,es.jsx)(m8.div,{"data-orientation":a,...n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},...i,ref:t})});ge.displayName="Separator";let gt=(0,tl.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"}}),gn=el.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...a}=e;return(0,es.jsx)(ge,{ref:t,className:gt({variant:n,color:r,className:i}),...a})}),gr=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tl.cx)(n2({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},gi=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tl.cx)(gr({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},ga=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:a="14",scaleSize:o,noWrap:s,ellipsis:l}=e;return n2({font:n,color:r,weight:i,size:a,scaleSize:o,noWrap:s,ellipsis:l,className:t})},go=e=>(0,tl.cx)(["h-px","my-2","mx-1.5",e]),gs=el.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,es.jsx)(gn,{ref:t,className:go(n),...i})}),gl=el.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:a,size:o="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,es.jsx)("div",{ref:t,className:(0,tl.cx)(gr({className:n,font:r,color:i,weight:a,size:o,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),gu=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{ref:t,className:(0,tl.cx)(["ml-auto","pl-5",n]),...r})}),gc=(0,tl.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"]),gd=e=>(0,tl.cx)(n5(),(0,tl.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),gf={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},gh=el.forwardRef((e,t)=>{let{trigger:n,label:r,children:i,rootProps:a,contentProps:o,className:s,open:l,onOpenChange:u}=e,{open:c,onOpenChange:d}=l6({open:l,onOpenChange:u});return(0,es.jsxs)(mY,{open:c,onOpenChange:d,...a,children:[(0,es.jsx)(mX,{asChild:!0,"aria-label":r,children:n}),(0,es.jsx)(rM,{children:c?(0,es.jsx)(mJ,{forceMount:!0,children:(0,es.jsx)(m0,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,es.jsx)(l5.div,{variants:gf,initial:"init",animate:"show",exit:"exit",className:gc(),children:(0,es.jsx)("div",{className:gd(s),children:i})})})}):null})]})}),gp=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(m2,{ref:t,className:gi({className:n}),...r})}),gm=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(m1,{ref:t,className:(0,tl.cx)("px-1.5",ga({className:n})),...r})}),gg=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{ref:t,className:(0,tl.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var gv=n(76221);let gy={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},gb={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"},gx=el.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:a,anchorLink:o,showAnchor:s,...l}=e,u=gy[n];if(o){let e=i||("string"==typeof a?encodeURI(a.toLowerCase().replace(/ /g,"-")):"");return(0,es.jsxs)("div",{className:(0,tl.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,es.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,es.jsxs)(gv.rU,{href:"#".concat(e),className:"relative group",children:[(0,es.jsx)(n4,{className:"hidden group-hover:block",children:(0,es.jsx)(ut.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,es.jsx)(n4,{as:u,...l,ref:t,weight:"none",className:(0,tl.cx)("proportional-nums inline-block",gb[n]),children:a})]})]})}return(0,es.jsx)("div",{className:(0,tl.cx)("flex flex-col gap-6 items-start",r),children:(0,es.jsx)(n4,{as:u,...l,ref:t,weight:"none",className:(0,tl.cx)("proportional-nums inline-block",gb[n],r),children:a})})}),gw=(0,tl.j)(["rounded"]);function gj(e){let{className:t,...n}=e;return(0,es.jsx)(gv.Ee,{className:gw({className:t}),...n})}var gk=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(gC);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(gE,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(gE,{...r,ref:t,children:n})});gk.displayName="Slot";var gE=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});gE.displayName="SlotClone";var g_=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function gC(e){return el.isValidElement(e)&&e.type===g_}var gS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?gk:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),gO=el.forwardRef((e,t)=>(0,es.jsx)(gS.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));gO.displayName="Label";let gM=el.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:a,color:o="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,es.jsx)(gO,{ref:t,...c,className:ga({font:n,size:r,scaleSize:i,color:o,weight:a,noWrap:s,ellipsis:l,className:u})})}),gP=(0,tl.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"}}),gA=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:a,noWrap:o,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,tl.cx)(n2({scaleSize:r,size:n,font:t,color:i,weight:a,noWrap:o,ellipsis:s,underline:l}),gP({disabled:u,underline:l}),c)},gT=el.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:a,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...g}=e,v=(0,el.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,es.jsx)(gv.rU,{href:n||"#",ref:t,className:gA({font:r,scaleSize:a,size:i,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...g,onClick:v,rel:h||("_blank"===p?"noopener":void 0),target:p})}),gN=el.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:a,state:o,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),g=(0,el.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,es.jsx)(l7,{content:c,children:(0,es.jsx)(gv.rU,{href:n||"#",ref:t,className:l9({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:g,...p,rel:m,target:f})}):(0,es.jsx)(gv.rU,{href:n||"#",ref:t,className:l9({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:g,...p,rel:m,target:f})});function gR(e){let{size:t=30,className:n}=e;return(0,es.jsx)(gj,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}function gD(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function gL(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function gz(...e){return el.useCallback(gL(...e),e)}var gF=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(gB);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(gZ,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(gZ,{...r,ref:t,children:n})});gF.displayName="Slot";var gZ=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?gL(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});gZ.displayName="SlotClone";var gI=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function gB(e){return el.isValidElement(e)&&e.type===gI}var gV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?gF:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gU(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var gH="Popover",[gW,g$]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(gH,[pr]),gq=pr(),[gK,gY]=gW(gH),gG=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=gq(t),l=el.useRef(null),[u,c]=el.useState(!1),[d=!1,f]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=gU(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=gU(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:a});return(0,es.jsx)(po,{...s,children:(0,es.jsx)(gK,{scope:t,contentId:eR(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:el.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:el.useCallback(()=>c(!0),[]),onCustomAnchorRemove:el.useCallback(()=>c(!1),[]),modal:o,children:n})})};gG.displayName=gH;var gX="PopoverAnchor";el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gY(gX,n),a=gq(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return el.useEffect(()=>(o(),()=>s()),[o,s]),(0,es.jsx)(pl,{...a,...r,ref:t})}).displayName=gX;var gJ="PopoverTrigger",gQ=el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gY(gJ,n),a=gq(n),o=gz(t,i.triggerRef),s=(0,es.jsx)(gV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ve(i.open),...r,ref:o,onClick:gD(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,es.jsx)(pl,{asChild:!0,...a,children:s})});gQ.displayName=gJ;var g0="PopoverPortal",[g1,g2]=gW(g0,{forceMount:void 0}),g4=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=gY(g0,t);return(0,es.jsx)(g1,{scope:t,forceMount:n,children:(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:r})})})};g4.displayName=g0;var g3="PopoverContent",g5=el.forwardRef((e,t)=>{let n=g2(g3,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=gY(g3,e.__scopePopover);return(0,es.jsx)(eM,{present:r||a.open,children:a.modal?(0,es.jsx)(g6,{...i,ref:t}):(0,es.jsx)(g8,{...i,ref:t})})});g5.displayName=g3;var g6=el.forwardRef((e,t)=>{let n=gY(g3,e.__scopePopover),r=el.useRef(null),i=gz(t,r),a=el.useRef(!1);return el.useEffect(()=>{let e=r.current;if(e)return(0,da.R)(e)},[]),(0,es.jsx)(di,{as:gF,allowPinchZoom:!0,children:(0,es.jsx)(g7,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gD(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:gD(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:gD(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),g8=el.forwardRef((e,t)=>{let n=gY(g3,e.__scopePopover),r=el.useRef(!1),i=el.useRef(!1);return(0,es.jsx)(g7,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),g7=el.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=gY(g3,n),h=gq(n);return cU(),(0,es.jsx)(cE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,es.jsx)(cd,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,es.jsx)(pf,{"data-state":ve(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),g9="PopoverClose";function ve(e){return e?"open":"closed"}el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gY(g9,n);return(0,es.jsx)(gV.button,{type:"button",...r,ref:t,onClick:gD(e.onClick,()=>i.onOpenChange(!1))})}).displayName=g9,el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gq(n);return(0,es.jsx)(pm,{...i,...r,ref:t})}).displayName="PopoverArrow";let vt=(0,tl.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"]),vn=(0,tl.cx)(n5(),(0,tl.j)(["py-1","px-1"])()),vr={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},vi=el.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{open:o,onOpenChange:s}=l6({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,es.jsxs)(gG,{open:o,onOpenChange:s,...i,children:[(0,es.jsx)(gQ,{asChild:!0,children:n}),(0,es.jsx)(rM,{children:o?(0,es.jsx)(g4,{forceMount:!0,children:(0,es.jsx)(g5,{asChild:!0,forceMount:!0,ref:t,...a,children:(0,es.jsx)(l5.div,{variants:vr,initial:"init",animate:"show",exit:"exit",className:vt(),children:(0,es.jsx)(fb,{className:vn,children:r})})})}):null})]})});var va=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(vl);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(vo,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(vo,{...r,ref:t,children:n})});va.displayName="Slot";var vo=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});vo.displayName="SlotClone";var vs=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function vl(e){return el.isValidElement(e)&&e.type===vs}var vu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?va:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vc="Progress",[vd,vf]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(vc),[vh,vp]=vd(vc),vm=el.forwardRef((e,t)=>{var n,r;let{__scopeProgress:i,value:a=null,max:o,getValueLabel:s=vy,...l}=e;(o||0===o)&&!vw(o)&&console.error((n=`${o}`,`Invalid prop \`max\` of value \`${n}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`));let u=vw(o)?o:100;null===a||vj(a,u)||console.error((r=`${a}`,`Invalid prop \`value\` of value \`${r}\` supplied to \`Progress\`. The \`value\` prop must be: +`},nonce:a}),(0,es.jsx)(dW.div,{"data-radix-scroll-area-viewport":"",...o,asChild:i,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,t){let{asChild:n,children:r}=e;if(!n)return"function"==typeof t?t(r):t;let i=el.Children.only(r);return el.cloneElement(i,{children:"function"==typeof t?t(i.props.children):t})}({asChild:i,children:r},e=>(0,es.jsx)("div",{"data-radix-scroll-area-content":"",ref:s.onContentChange,style:{minWidth:s.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});d4.displayName=d2;var d3="ScrollAreaScrollbar",d5=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=d0(d3,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s="horizontal"===e.orientation;return el.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),"hover"===i.type?(0,es.jsx)(d6,{...r,ref:t,forceMount:n}):"scroll"===i.type?(0,es.jsx)(d8,{...r,ref:t,forceMount:n}):"auto"===i.type?(0,es.jsx)(d7,{...r,ref:t,forceMount:n}):"always"===i.type?(0,es.jsx)(d9,{...r,ref:t}):null});d5.displayName=d3;var d6=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=d0(d3,e.__scopeScrollArea),[a,o]=el.useState(!1);return el.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,es.jsx)(eM,{present:n||a,children:(0,es.jsx)(d7,{"data-state":a?"visible":"hidden",...r,ref:t})})}),d8=el.forwardRef((e,t)=>{var n,r;let{forceMount:i,...a}=e,o=d0(d3,e.__scopeScrollArea),s="horizontal"===e.orientation,l=fv(()=>c("SCROLL_END"),100),[u,c]=(n="hidden",r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},el.useReducer((e,t)=>r[e][t]??e,n));return el.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,o.scrollHideDelay,c]),el.useEffect(()=>{let e=o.viewport,t=s?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c("SCROLL"),l()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,s,c,l]),(0,es.jsx)(eM,{present:i||"hidden"!==u,children:(0,es.jsx)(d9,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:t,onPointerEnter:dY(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:dY(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),d7=el.forwardRef((e,t)=>{let n=d0(d3,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=el.useState(!1),s="horizontal"===e.orientation,l=fv(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=d0(d3,e.__scopeScrollArea),a=el.useRef(null),o=el.useRef(0),[s,l]=el.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ff(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,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=fh(n),a=t||i/2,o=n.scrollbar.paddingStart+a,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-a),l=n.content-n.viewport;return fm([o,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,o.current,s,t)}return"horizontal"===n?(0,es.jsx)(fe,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=fp(i.viewport.scrollLeft,s,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,es.jsx)(ft,{...c,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=fp(i.viewport.scrollTop,s);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}),fe=el.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=d0(d3,e.__scopeScrollArea),[o,s]=el.useState(),l=el.useRef(null),u=dI(t,l,a.onScrollbarXChange);return el.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,es.jsx)(fi,{"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":fh(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{l.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:fd(o.paddingLeft),paddingEnd:fd(o.paddingRight)}})}})}),ft=el.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=d0(d3,e.__scopeScrollArea),[o,s]=el.useState(),l=el.useRef(null),u=dI(t,l,a.onScrollbarYChange);return el.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,es.jsx)(fi,{"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":fh(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{l.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:fd(o.paddingTop),paddingEnd:fd(o.paddingBottom)}})}})}),[fn,fr]=dX(d3),fi=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=d0(d3,n),[p,m]=el.useState(null),g=dI(t,e=>m(e)),v=el.useRef(null),y=el.useRef(""),b=h.viewport,x=r.content-r.viewport,w=d$(c),j=d$(l),k=fv(d,10);function E(e){v.current&&u({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return el.useEffect(()=>{let e=e=>{let t=e.target;p?.contains(t)&&w(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,x,w]),el.useEffect(j,[r,j]),fy(p,k),fy(h.content,k),(0,es.jsx)(fn,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:d$(a),onThumbPointerUp:d$(o),onThumbPositionChange:j,onThumbPointerDown:d$(s),children:(0,es.jsx)(dW.div,{...f,ref:g,style:{position:"absolute",...f.style},onPointerDown:dY(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",h.viewport&&(h.viewport.style.scrollBehavior="auto"),E(e))}),onPointerMove:dY(e.onPointerMove,E),onPointerUp:dY(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,h.viewport&&(h.viewport.style.scrollBehavior=""),v.current=null})})})}),fa="ScrollAreaThumb",fo=el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=fr(fa,e.__scopeScrollArea);return(0,es.jsx)(eM,{present:n||i.hasThumb,children:(0,es.jsx)(fs,{ref:t,...r})})}),fs=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=d0(fa,n),o=fr(fa,n),{onThumbPositionChange:s}=o,l=dI(t,e=>o.onThumbChange(e)),u=el.useRef(),c=fv(()=>{u.current&&(u.current(),u.current=void 0)},100);return el.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{if(c(),!u.current){let t=fg(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[a.viewport,c,s]),(0,es.jsx)(dW.div,{"data-state":o.hasThumb?"visible":"hidden",...i,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:dY(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:dY(e.onPointerUp,o.onThumbPointerUp)})});fo.displayName=fa;var fl="ScrollAreaCorner",fu=el.forwardRef((e,t)=>{let n=d0(fl,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,es.jsx)(fc,{...e,ref:t}):null});fu.displayName=fl;var fc=el.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=d0(fl,n),[a,o]=el.useState(0),[s,l]=el.useState(0),u=!!(a&&s);return fy(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),l(e)}),fy(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),u?(0,es.jsx)(dW.div,{...r,ref:t,style:{width:a,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function fd(e){return e?parseInt(e,10):0}function ff(e,t){let n=e/t;return isNaN(n)?0:n}function fh(e){let t=ff(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function fp(e,t,n="ltr"){let r=fh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,"ltr"===n?[0,o]:[-1*o,0]);return fm([0,o],[0,a-r])(s)}function fm(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])}}var fg=(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,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function fv(e,t){let n=d$(e),r=el.useRef(0);return el.useEffect(()=>()=>window.clearTimeout(r.current),[]),el.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function fy(e,t){let n=d$(t);dK(()=>{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 fb=el.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:a,keyToResetScrollbars:o}=e;return(0,es.jsxs)(d1,{className:(0,tl.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,es.jsx)(d4,{id:n,ref:t,className:"w-full h-full [&>div]:!min-w-0 [&>div]:!h-full",children:a}),(0,es.jsx)(d5,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5",children:(0,es.jsx)(fo,{className:(0,tl.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,es.jsx)(d5,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1",children:(0,es.jsx)(fo,{className:(0,tl.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,es.jsx)(fu,{className:"bg-black/70"})]})}),fx=(0,tl.j)(["z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),fw={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},fj=el.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:a,onSubmit:o,title:s,titleVisuallyHidden:l,description:u,descriptionVisuallyHidden:c,containerVariants:d,contentVariants:f,controls:h,children:p,bodyClassName:m,closeClassName:g,dynamicHeight:v=!0}=e,{open:y,onOpenChange:b}=l6({open:i,onOpenChange:a});return(0,el.useEffect)(()=>{y&&b(y)},[y]),(0,es.jsxs)(df,{open:y,onOpenChange:b,...r,children:[n&&(0,es.jsx)(dp,{asChild:!0,children:n}),(0,es.jsx)(rM,{children:y?(0,es.jsx)(dy,{forceMount:!0,children:(0,es.jsx)(dk,{asChild:!0,forceMount:!0,ref:t,...void 0===u?{"aria-describedby":void 0}:{},children:(0,es.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,es.jsx)(dx,{onClick:()=>b(!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,es.jsx)(l5.div,{variants:fw,initial:"init",animate:"show",exit:"exit",className:fx(d),children:(0,es.jsx)(f_,{title:s,description:u,titleVisuallyHidden:l,descriptionVisuallyHidden:c,contentVariants:f,onSubmit:o,controls:h,bodyClassName:m,closeClassName:g,dynamicHeight:v,children:p})})]})})}):null})]})});function fk(e){let{className:t}=e;return(0,es.jsx)(dT,{asChild:!0,type:"button",children:(0,es.jsx)("div",{className:(0,tl.cx)("appearance-none",t),children:(0,es.jsx)(ue,{size:"small",variant:"ghost",type:"button","aria-label":"close",children:(0,es.jsx)(ut.QN4,{})})})})}let fE=(0,tl.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[n5()],none:""}},defaultVariants:{variant:"default"}}),f_=el.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:a,titleVisuallyHidden:o,descriptionVisuallyHidden:s,controls:l,contentVariants:u,closeClassName:c,bodyClassName:d,dynamicHeight:f=!0}=e,{ref:h,height:p}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,el.useState)(0),r=(0,el.useRef)(null);return(0,el.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]),[m,g]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{g(p>.7*window.innerHeight)},[p]),(0,es.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:fE(u),children:[i?o?(0,es.jsx)(u5,{children:(0,es.jsx)(dO,{children:i})}):(0,es.jsx)(dO,{className:fC({showSeparator:m}),children:i}):null,(0,es.jsx)(fb,{style:{height:f?"".concat(p,"px"):void 0,maxHeight:f?"70vh":void 0},children:(0,es.jsxs)("div",{ref:h,className:(0,tl.cx)("p-4",d),children:[a?s?(0,es.jsx)(u5,{children:(0,es.jsx)(dP,{children:a})}):(0,es.jsx)(dP,{className:fS(),children:a}):null,n]})}),l&&(0,es.jsx)(fO,{separator:m,children:l}),(0,es.jsx)(fk,{className:c||"absolute top-3.5 right-2"})]})}),fC=(0,tl.j)(["pt-4 pb-2 px-4 w-full",n2({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),fS=(0,tl.j)([n2({color:"subtle",size:"14"}),"py-2"]);function fO(e){let{children:t,separator:n=!0}=e;return(0,es.jsx)("div",{className:(0,tl.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}function fM(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function fP(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function fA(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var fT=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(fD);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(fN,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(fN,{...r,ref:t,children:n})});fT.displayName="Slot";var fN=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?fP(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});fN.displayName="SlotClone";var fR=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function fD(e){return el.isValidElement(e)&&e.type===fR}var fL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?fT:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fz(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function fF(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function fZ(...e){return el.useCallback(fF(...e),e)}var fI=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(fU);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(fV,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(fV,{...r,ref:t,children:n})});fI.displayName="Slot";var fV=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?fF(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});fV.displayName="SlotClone";var fB=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function fU(e){return el.isValidElement(e)&&e.type===fB}var fH=el.createContext(void 0);let fW=["top","right","bottom","left"],f$=Math.min,fq=Math.max,fK=Math.round,fY=Math.floor,fG=e=>({x:e,y:e}),fX={left:"right",right:"left",bottom:"top",top:"bottom"},fJ={start:"end",end:"start"};function fQ(e,t){return"function"==typeof e?e(t):e}function f0(e){return e.split("-")[0]}function f1(e){return e.split("-")[1]}function f2(e){return"x"===e?"y":"x"}function f4(e){return"y"===e?"height":"width"}function f3(e){return["top","bottom"].includes(f0(e))?"y":"x"}function f5(e){return e.replace(/start|end/g,e=>fJ[e])}function f6(e){return e.replace(/left|right|bottom|top/g,e=>fX[e])}function f8(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function f7(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function f9(e,t,n){let r,{reference:i,floating:a}=e,o=f3(t),s=f2(f3(t)),l=f4(s),u=f0(t),c="y"===o,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,h=i[l]/2-a[l]/2;switch(u){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-a.width,y:f};break;default:r={x:i.x,y:i.y}}switch(f1(t)){case"start":r[s]-=h*(n&&c?-1:1);break;case"end":r[s]+=h*(n&&c?-1:1)}return r}let he=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=f9(u,r,l),f=r,h={},p=0;for(let n=0;ne[t]>=0)}async function hi(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=f0(n),s=f1(n),l="y"===f3(n),u=["left","top"].includes(o)?-1:1,c=a&&l?-1:1,d=fQ(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function ha(){return"undefined"!=typeof window}function ho(e){return hu(e)?(e.nodeName||"").toLowerCase():"#document"}function hs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hl(e){var t;return null==(t=(hu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function hu(e){return!!ha()&&(e instanceof Node||e instanceof hs(e).Node)}function hc(e){return!!ha()&&(e instanceof Element||e instanceof hs(e).Element)}function hd(e){return!!ha()&&(e instanceof HTMLElement||e instanceof hs(e).HTMLElement)}function hf(e){return!!ha()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof hs(e).ShadowRoot)}function hh(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=hy(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function hm(e){let t=hg(),n=hc(e)?hy(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function hg(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function hv(e){return["html","body","#document"].includes(ho(e))}function hy(e){return hs(e).getComputedStyle(e)}function hb(e){return hc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hx(e){if("html"===ho(e))return e;let t=e.assignedSlot||e.parentNode||hf(e)&&e.host||hl(e);return hf(t)?t.host:t}function hw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=hx(t);return hv(n)?t.ownerDocument?t.ownerDocument.body:t.body:hd(n)&&hh(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),o=hs(i);if(a){let e=hj(o);return t.concat(o,o.visualViewport||[],hh(i)?i:[],e&&n?hw(e):[])}return t.concat(i,hw(i,[],n))}function hj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hk(e){let t=hy(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=hd(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=fK(n)!==a||fK(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function hE(e){return hc(e)?e:e.contextElement}function h_(e){let t=hE(e);if(!hd(t))return fG(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=hk(t),o=(a?fK(n.width):n.width)/r,s=(a?fK(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let hC=fG(0);function hS(e){let t=hs(e);return hg()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:hC}function hO(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),o=hE(e),s=fG(1);t&&(r?hc(r)&&(s=h_(r)):s=h_(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===hs(o))&&i)?hS(o):fG(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(o){let e=hs(o),t=r&&hc(r)?hs(r):r,n=e,i=hj(n);for(;i&&r&&t!==n;){let e=h_(i),t=i.getBoundingClientRect(),r=hy(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=o,i=hj(n=hs(i))}}return f7({width:d,height:f,x:u,y:c})}function hM(e,t){let n=hb(e).scrollLeft;return t?t.left+n:hO(hl(e)).left+n}function hP(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=hs(e),r=hl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=hg();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=hl(e),n=hb(e),r=e.ownerDocument.body,i=fq(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fq(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+hM(e),s=-n.scrollTop;return"rtl"===hy(r).direction&&(o+=fq(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(hl(e));else if(hc(t))r=function(e,t){let n=hO(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=hd(e)?h_(e):fG(1),o=e.clientWidth*a.x;return{width:o,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n);else{let n=hS(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return f7(r)}function hA(e){return"static"===hy(e).position}function hT(e,t){if(!hd(e)||"fixed"===hy(e).position)return null;if(t)return t(e);let n=e.offsetParent;return hl(e)===n&&(n=n.ownerDocument.body),n}function hN(e,t){let n=hs(e);if(hp(e))return n;if(!hd(e)){let t=hx(e);for(;t&&!hv(t);){if(hc(t)&&!hA(t))return t;t=hx(t)}return n}let r=hT(e,t);for(;r&&["table","td","th"].includes(ho(r))&&hA(r);)r=hT(r,t);return r&&hv(r)&&hA(r)&&!hm(r)?n:r||function(e){let t=hx(e);for(;hd(t)&&!hv(t);){if(hm(t))return t;if(hp(t))break;t=hx(t)}return null}(e)||n}let hR=async function(e){let t=this.getOffsetParent||hN,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=hd(t),i=hl(t),a="fixed"===n,o=hO(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=fG(0);if(r||!r&&!a){if(("body"!==ho(t)||hh(i))&&(s=hb(t)),r){let e=hO(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=hM(i))}let u=0,c=0;if(i&&!r&&!a){let e=i.getBoundingClientRect();c=e.top+s.scrollTop,u=e.left+s.scrollLeft-hM(i,e)}return{x:o.left+s.scrollLeft-l.x-u,y:o.top+s.scrollTop-l.y-c,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},hD={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,o=hl(r),s=!!t&&hp(t.floating);if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},u=fG(1),c=fG(0),d=hd(r);if((d||!d&&!a)&&(("body"!==ho(r)||hh(o))&&(l=hb(r)),hd(r))){let e=hO(r);u=h_(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:hl,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?hp(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=hw(e,[],!1).filter(e=>hc(e)&&"body"!==ho(e)),i=null,a="fixed"===hy(e).position,o=a?hx(e):e;for(;hc(o)&&!hv(o);){let t=hy(o),n=hm(o);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||hh(o)&&!n&&function e(t,n){let r=hx(t);return!(r===n||!hc(r)||hv(r))&&("fixed"===hy(r).position||e(r,n))}(e,o))?r=r.filter(e=>e!==o):i=t,o=hx(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=hP(t,n,i);return e.top=fq(r.top,e.top),e.right=f$(r.right,e.right),e.bottom=f$(r.bottom,e.bottom),e.left=fq(r.left,e.left),e},hP(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hN,getElementRects:hR,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=hk(e);return{width:t,height:n}},getScale:h_,isElement:hc,isRTL:function(e){return"rtl"===hy(e).direction}},hL=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=fQ(e,t)||{};if(null==u)return{};let d=f8(c),f={x:n,y:r},h=f2(f3(i)),p=f4(h),m=await o.getDimensions(u),g="y"===h,v=g?"clientHeight":"clientWidth",y=a.reference[p]+a.reference[h]-f[h]-a.floating[p],b=f[h]-a.reference[h],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),w=x?x[v]:0;w&&await (null==o.isElement?void 0:o.isElement(x))||(w=s.floating[v]||a.floating[p]);let j=w/2-m[p]/2-1,k=f$(d[g?"top":"left"],j),E=f$(d[g?"bottom":"right"],j),_=w-m[p]-E,C=w/2-m[p]/2+(y/2-b/2),S=fq(k,f$(C,_)),O=!l.arrow&&null!=f1(i)&&C!==S&&a.reference[p]/2-(C{let r=new Map,i={platform:hD,...n},a={...i.platform,_c:r};return he(e,t,{...i,platform:a})};var hF="undefined"!=typeof document?el.useLayoutEffect:el.useEffect;function hZ(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!hZ(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!hZ(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function hI(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hV(e,t){let n=hI(e);return Math.round(t*n)/n}function hB(e){let t=el.useRef(e);return hF(()=>{t.current=e}),t}let hU=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?hL({element:n.current,padding:r}).fn(t):{}:n?hL({element:n,padding:r}).fn(t):{}}}),hH=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:a,placement:o,middlewareData:s}=e,l=await hi(e,n);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}),options:[e,t]}},hW=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=fQ(n,e),u={x:t,y:r},c=await ht(e,l),d=f3(f0(i)),f=f2(d),h=u[f],p=u[d];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+c[e],r=h-c[t];h=fq(n,f$(h,r))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=fq(n,f$(p,r))}let m=s.fn({...e,[f]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:a,[d]:o}}}}}),options:[e,t]}},h$=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:a,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fQ(n,e),c={x:t,y:r},d=f3(i),f=f2(d),h=c[f],p=c[d],m=fQ(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;hn&&(h=n)}if(u){var v,y;let e="y"===f?"width":"height",t=["top","left"].includes(f0(i)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=o.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);pr&&(p=r)}return{[f]:h,[d]:p}}}),options:[e,t]}},hq=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=fQ(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let x=f0(s),w=f3(c),j=f0(c)===c,k=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=m||(j||!y?[f6(c)]:function(e){let t=f6(e);return[f5(e),t,f5(t)]}(c)),_="none"!==v;!m&&_&&E.push(...function(e,t,n,r){let i=f1(e),a=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f0(e),"start"===n,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(f5)))),a}(c,y,v,k));let C=[c,...E],S=await ht(e,b),O=[],M=(null==(r=l.flip)?void 0:r.overflows)||[];if(h&&O.push(S[x]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=f1(e),i=f2(f3(e)),a=f4(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=f6(o)),[o,f6(o)]}(s,u,k);O.push(S[e[0]],S[e[1]])}if(M=[...M,{placement:s,overflows:O}],!O.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(a=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(g){case"bestFit":{let e=null==(o=M.filter(e=>{if(_){let t=f3(e.placement);return t===w||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},hK=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let i,a;let{placement:o,rects:s,platform:l,elements:u}=e,{apply:c=()=>{},...d}=fQ(n,e),f=await ht(e,d),h=f0(o),p=f1(o),m="y"===f3(o),{width:g,height:v}=s.floating;"top"===h||"bottom"===h?(i=h,a=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(a=h,i="end"===p?"top":"bottom");let y=v-f.top-f.bottom,b=g-f.left-f.right,x=f$(v-f[i],y),w=f$(g-f[a],b),j=!e.middlewareData.shift,k=x,E=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(E=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(k=y),j&&!p){let e=fq(f.left,0),t=fq(f.right,0),n=fq(f.top,0),r=fq(f.bottom,0);m?E=g-2*(0!==e||0!==t?e+t:fq(f.left,f.right)):k=v-2*(0!==n||0!==r?n+r:fq(f.top,f.bottom))}await c({...e,availableWidth:E,availableHeight:k});let _=await l.getDimensions(u.floating);return g!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},hY=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=fQ(n,e);switch(r){case"referenceHidden":{let n=hn(await ht(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:hr(n)}}}case"escaped":{let n=hn(await ht(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:hr(n)}}}default:return{}}}}),options:[e,t]}},hG=(e,t)=>({...hU(e),options:[e,t]});var hX=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(h0);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(hJ,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(hJ,{...r,ref:t,children:n})});hX.displayName="Slot";var hJ=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});hJ.displayName="SlotClone";var hQ=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function h0(e){return el.isValidElement(e)&&e.type===hQ}var h1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?hX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),h2=el.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,es.jsx)(h1.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,es.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function h4(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function h3(...e){return el.useCallback(h4(...e),e)}h2.displayName="Arrow";var h5=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(h7);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(h6,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(h6,{...r,ref:t,children:n})});h5.displayName="Slot";var h6=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?h4(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});h6.displayName="SlotClone";var h8=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function h7(e){return el.isValidElement(e)&&e.type===h8}var h9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?h5:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),pe=globalThis?.document?el.useLayoutEffect:()=>{},pt="Popper",[pn,pr]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(pt),[pi,pa]=pn(pt),po=e=>{let{__scopePopper:t,children:n}=e,[r,i]=el.useState(null);return(0,es.jsx)(pi,{scope:t,anchor:r,onAnchorChange:i,children:n})};po.displayName=pt;var ps="PopperAnchor",pl=el.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=pa(ps,n),o=el.useRef(null),s=h3(t,o);return el.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,es.jsx)(h9.div,{...i,ref:s})});pl.displayName=ps;var pu="PopperContent",[pc,pd]=pn(pu),pf=el.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:p,...m}=e,g=pa(pu,n),[v,y]=el.useState(null),b=h3(t,e=>y(e)),[x,w]=el.useState(null),j=function(e){let[t,n]=el.useState(void 0);return pe(()=>{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}(x),k=j?.width??0,E=j?.height??0,_="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},C=Array.isArray(u)?u:[u],S=C.length>0,O={padding:_,boundary:C.filter(pg),altBoundary:S},{refs:M,floatingStyles:P,placement:A,isPositioned:T,middlewareData:N}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=el.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=el.useState(r);hZ(f,r)||h(r);let[p,m]=el.useState(null),[g,v]=el.useState(null),y=el.useCallback(e=>{e!==j.current&&(j.current=e,m(e))},[]),b=el.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),x=a||p,w=o||g,j=el.useRef(null),k=el.useRef(null),E=el.useRef(c),_=null!=l,C=hB(l),S=hB(i),O=hB(u),M=el.useCallback(()=>{if(!j.current||!k.current)return;let e={placement:t,strategy:n,middleware:f};S.current&&(e.platform=S.current),hz(j.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};P.current&&!hZ(E.current,t)&&(E.current=t,ey.flushSync(()=>{d(t)}))})},[f,t,n,S,O]);hF(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let P=el.useRef(!1);hF(()=>(P.current=!0,()=>{P.current=!1}),[]),hF(()=>{if(x&&(j.current=x),w&&(k.current=w),x&&w){if(C.current)return C.current(x,w,M);M()}},[x,w,M,C,_]);let A=el.useMemo(()=>({reference:j,floating:k,setReference:y,setFloating:b}),[y,b]),T=el.useMemo(()=>({reference:x,floating:w}),[x,w]),N=el.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=hV(T.floating,c.x),r=hV(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...hI(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,T.floating,c.x,c.y]);return el.useMemo(()=>({...c,update:M,refs:A,elements:T,floatingStyles:N}),[c,M,A,T,N])}({strategy:"fixed",placement:r+("center"!==a?"-"+a:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=hE(e),d=a||o?[...c?hw(c):[],...hw(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=hl(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let h=fY(c),p=fY(i.clientWidth-(u+d)),m={rootMargin:-h+"px "+-p+"px "+-fY(i.clientHeight-(c+f))+"px "+-fY(u)+"px",threshold:fq(0,f$(1,l))||1},g=!0;function v(e){let t=e[0].intersectionRatio;if(t!==l){if(!g)return o();t?o(!1,t):n=setTimeout(()=>{o(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),a}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?hO(e):null;return u&&function t(){let r=hO(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===h}),elements:{reference:g.anchor},middleware:[hH({mainAxis:i+E,alignmentAxis:o}),l&&hW({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?h$():void 0,...O}),l&&hq({...O}),hK({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty("--radix-popper-available-width",`${n}px`),o.setProperty("--radix-popper-available-height",`${r}px`),o.setProperty("--radix-popper-anchor-width",`${i}px`),o.setProperty("--radix-popper-anchor-height",`${a}px`)}}),x&&hG({element:x,padding:s}),pv({arrowWidth:k,arrowHeight:E}),f&&hY({strategy:"referenceHidden",...O})]}),[R,D]=py(A),L=function(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}(p);pe(()=>{T&&L?.()},[T,L]);let z=N.arrow?.x,F=N.arrow?.y,Z=N.arrow?.centerOffset!==0,[I,V]=el.useState();return pe(()=>{v&&V(window.getComputedStyle(v).zIndex)},[v]),(0,es.jsx)("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:T?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,es.jsx)(pc,{scope:n,placedSide:R,onArrowChange:w,arrowX:z,arrowY:F,shouldHideArrow:Z,children:(0,es.jsx)(h9.div,{"data-side":R,"data-align":D,...m,ref:b,style:{...m.style,animation:T?void 0:"none"}})})})});pf.displayName=pu;var ph="PopperArrow",pp={top:"bottom",right:"left",bottom:"top",left:"right"},pm=el.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=pd(ph,n),a=pp[i.placedSide];return(0,es.jsx)("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},children:(0,es.jsx)(h2,{...r,ref:t,style:{...r.style,display:"block"}})})});function pg(e){return null!==e}pm.displayName=ph;var pv=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,u]=py(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,h="",p="";return"bottom"===l?(h=a?c:`${d}px`,p=`${-s}px`):"top"===l?(h=a?c:`${d}px`,p=`${r.floating.height+s}px`):"right"===l?(h=`${-s}px`,p=a?c:`${f}px`):"left"===l&&(h=`${r.floating.width+s}px`,p=a?c:`${f}px`),{data:{x:h,y:p}}}});function py(e){let[t,n="center"]=e.split("-");return[t,n]}var pb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?fI:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function px(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function pw(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pj(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pk(...e){return el.useCallback(pj(...e),e)}var pE=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(pS);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(p_,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(p_,{...r,ref:t,children:n})});pE.displayName="Slot";var p_=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?pj(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});p_.displayName="SlotClone";var pC=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function pS(e){return el.isValidElement(e)&&e.type===pC}var pO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?pE:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pM(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var pP=el.createContext(void 0),pA="rovingFocusGroup.onEntryFocus",pT={bubbles:!1,cancelable:!0},pN="RovingFocusGroup",[pR,pD,pL]=function(e){let t=e+"CollectionProvider",[n,r]=pw(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=pk(t,a(s,n).collectionRef);return(0,es.jsx)(pE,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=pk(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(pE,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(pN),[pz,pF]=pw(pN,[pL]),[pZ,pI]=pz(pN),pV=el.forwardRef((e,t)=>(0,es.jsx)(pR.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,es.jsx)(pR.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,es.jsx)(pB,{...e,ref:t})})}));pV.displayName=pN;var pB=el.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=el.useRef(null),h=pk(t,f),p=function(e){let t=el.useContext(pP);return e||t||"ltr"}(a),[m=null,g]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=pM(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=pM(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:o,defaultProp:s,onChange:l}),[v,y]=el.useState(!1),b=pM(u),x=pD(n),w=el.useRef(!1),[j,k]=el.useState(0);return el.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(pA,b),()=>e.removeEventListener(pA,b)},[b]),(0,es.jsx)(pZ,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:m,onItemFocus:el.useCallback(e=>g(e),[g]),onItemShiftTab:el.useCallback(()=>y(!0),[]),onFocusableItemAdd:el.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:el.useCallback(()=>k(e=>e-1),[]),children:(0,es.jsx)(pO.div,{tabIndex:v||0===j?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:px(e.onMouseDown,()=>{w.current=!0}),onFocus:px(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(pA,pT);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);p$([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}w.current=!1}),onBlur:px(e.onBlur,()=>y(!1))})})}),pU="RovingFocusGroupItem",pH=el.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=eR(),l=a||s,u=pI(pU,n),c=u.currentTabStopId===l,d=pD(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=u;return el.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),(0,es.jsx)(pR.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,es.jsx)(pO.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:px(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:px(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:px(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){u.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 pW[i]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=d().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=u.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>p$(i))}})})})});pH.displayName=pU;var pW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function p$(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pq(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var pK=["Enter"," "],pY=["ArrowUp","PageDown","End"],pG=["ArrowDown","PageUp","Home",...pY],pX={ltr:[...pK,"ArrowRight"],rtl:[...pK,"ArrowLeft"]},pJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pQ="Menu",[p0,p1,p2]=function(e){let t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=fZ(t,a(s,n).collectionRef);return(0,es.jsx)(fI,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=fZ(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(fI,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(pQ),[p4,p3]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(pQ,[p2,pr,pF]),p5=pr(),p6=pF(),[p8,p7]=p4(pQ),[p9,me]=p4(pQ),mt=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=p5(t),[l,u]=el.useState(null),c=el.useRef(!1),d=pq(a),f=function(e){let t=el.useContext(fH);return e||t||"ltr"}(i);return el.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,es.jsx)(po,{...s,children:(0,es.jsx)(p8,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:(0,es.jsx)(p9,{scope:t,onClose:el.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:o,children:r})})})};mt.displayName=pQ;var mn=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=p5(n);return(0,es.jsx)(pl,{...i,...r,ref:t})});mn.displayName="MenuAnchor";var mr="MenuPortal",[mi,ma]=p4(mr,{forceMount:void 0}),mo=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=p7(mr,t);return(0,es.jsx)(mi,{scope:t,forceMount:n,children:(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:r})})})};mo.displayName=mr;var ms="MenuContent",[ml,mu]=p4(ms),mc=el.forwardRef((e,t)=>{let n=ma(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=p7(ms,e.__scopeMenu),o=me(ms,e.__scopeMenu);return(0,es.jsx)(p0.Provider,{scope:e.__scopeMenu,children:(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(p0.Slot,{scope:e.__scopeMenu,children:o.modal?(0,es.jsx)(md,{...i,ref:t}):(0,es.jsx)(mf,{...i,ref:t})})})})}),md=el.forwardRef((e,t)=>{let n=p7(ms,e.__scopeMenu),r=el.useRef(null),i=fZ(t,r);return el.useEffect(()=>{let e=r.current;if(e)return(0,da.R)(e)},[]),(0,es.jsx)(mh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:fz(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),mf=el.forwardRef((e,t)=>{let n=p7(ms,e.__scopeMenu);return(0,es.jsx)(mh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),mh=el.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:p,...m}=e,g=p7(ms,n),v=me(ms,n),y=p5(n),b=p6(n),x=p1(n),[w,j]=el.useState(null),k=el.useRef(null),E=fZ(t,k,g.onContentChange),_=el.useRef(0),C=el.useRef(""),S=el.useRef(0),O=el.useRef(null),M=el.useRef("right"),P=el.useRef(0),A=p?di:el.Fragment,T=p?{as:fI,allowPinchZoom:!0}:void 0,N=e=>{let t=C.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=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}(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;!function e(t){C.current=t,window.clearTimeout(_.current),""!==t&&(_.current=window.setTimeout(()=>e(""),1e3))}(t),o&&setTimeout(()=>o.focus())};el.useEffect(()=>()=>window.clearTimeout(_.current),[]),cU();let R=el.useCallback(e=>{var t;return M.current===O.current?.side&&!!(t=O.current?.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=u>r&&n<(l-o)*(r-s)/(u-s)+o&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)},[]);return(0,es.jsx)(ml,{scope:n,searchRef:C,onItemEnter:el.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:el.useCallback(e=>{R(e)||(k.current?.focus(),j(null))},[R]),onTriggerLeave:el.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:S,onPointerGraceIntentChange:el.useCallback(e=>{O.current=e},[]),children:(0,es.jsx)(A,{...T,children:(0,es.jsx)(cE,{asChild:!0,trapped:i,onMountAutoFocus:fz(a,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,es.jsx)(cd,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:(0,es.jsx)(pV,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:fz(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,es.jsx)(pf,{role:"menu","aria-orientation":"vertical","data-state":mZ(g.open),"data-radix-menu-content":"",dir:v.dir,...y,...m,ref:E,style:{outline:"none",...m.style},onKeyDown:fz(m.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&N(e.key));let i=k.current;if(e.target!==i||!pG.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);pY.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:fz(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(_.current),C.current="")}),onPointerMove:fz(e.onPointerMove,mB(e=>{let t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>P.current?"right":"left";M.current=t,P.current=e.clientX}}))})})})})})})});mc.displayName=ms;var mp=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,es.jsx)(pb.div,{role:"group",...r,ref:t})});mp.displayName="MenuGroup";var mm=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,es.jsx)(pb.div,{...r,ref:t})});mm.displayName="MenuLabel";var mg="MenuItem",mv="menu.itemSelect",my=el.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=el.useRef(null),o=me(mg,e.__scopeMenu),s=mu(mg,e.__scopeMenu),l=fZ(t,a),u=el.useRef(!1);return(0,es.jsx)(mb,{...i,ref:l,disabled:n,onClick:fz(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(mv,{bubbles:!0,cancelable:!0});e.addEventListener(mv,e=>r?.(e),{once:!0}),e&&ey.flushSync(()=>e.dispatchEvent(t)),t.defaultPrevented?u.current=!1:o.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:fz(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:fz(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&pK.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});my.displayName=mg;var mb=el.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=mu(mg,n),s=p6(n),l=el.useRef(null),u=fZ(t,l),[c,d]=el.useState(!1),[f,h]=el.useState("");return el.useEffect(()=>{let e=l.current;e&&h((e.textContent??"").trim())},[a.children]),(0,es.jsx)(p0.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,es.jsx)(pH,{asChild:!0,...s,focusable:!r,children:(0,es.jsx)(pb.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:fz(e.onPointerMove,mB(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:fz(e.onPointerLeave,mB(e=>o.onItemLeave(e))),onFocus:fz(e.onFocus,()=>d(!0)),onBlur:fz(e.onBlur,()=>d(!1))})})})}),mx=el.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,es.jsx)(mO,{scope:e.__scopeMenu,checked:n,children:(0,es.jsx)(my,{role:"menuitemcheckbox","aria-checked":mI(n)?"mixed":n,...i,ref:t,"data-state":mV(n),onSelect:fz(i.onSelect,()=>r?.(!!mI(n)||!n),{checkForDefaultPrevented:!1})})})});mx.displayName="MenuCheckboxItem";var mw="MenuRadioGroup",[mj,mk]=p4(mw,{value:void 0,onValueChange:()=>{}}),mE=el.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=pq(r);return(0,es.jsx)(mj,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,es.jsx)(mp,{...i,ref:t})})});mE.displayName=mw;var m_="MenuRadioItem",mC=el.forwardRef((e,t)=>{let{value:n,...r}=e,i=mk(m_,e.__scopeMenu),a=n===i.value;return(0,es.jsx)(mO,{scope:e.__scopeMenu,checked:a,children:(0,es.jsx)(my,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":mV(a),onSelect:fz(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});mC.displayName=m_;var mS="MenuItemIndicator",[mO,mM]=p4(mS,{checked:!1}),mP=el.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=mM(mS,n);return(0,es.jsx)(eM,{present:r||mI(a.checked)||!0===a.checked,children:(0,es.jsx)(pb.span,{...i,ref:t,"data-state":mV(a.checked)})})});mP.displayName=mS;var mA=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,es.jsx)(pb.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});mA.displayName="MenuSeparator";var mT=el.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=p5(n);return(0,es.jsx)(pm,{...i,...r,ref:t})});mT.displayName="MenuArrow";var[mN,mR]=p4("MenuSub"),mD="MenuSubTrigger",mL=el.forwardRef((e,t)=>{let n=p7(mD,e.__scopeMenu),r=me(mD,e.__scopeMenu),i=mR(mD,e.__scopeMenu),a=mu(mD,e.__scopeMenu),o=el.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=el.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return el.useEffect(()=>c,[c]),el.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,es.jsx)(mn,{asChild:!0,...u,children:(0,es.jsx)(mb,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":mZ(n.open),...e,ref:fF(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:fz(e.onPointerMove,mB(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:fz(e.onPointerLeave,mB(e=>{c();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,o=t[i?"left":"right"],l=t[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:fz(e.onKeyDown,t=>{let i=""!==a.searchRef.current;!e.disabled&&(!i||" "!==t.key)&&pX[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});mL.displayName=mD;var mz="MenuSubContent",mF=el.forwardRef((e,t)=>{let n=ma(ms,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=p7(ms,e.__scopeMenu),o=me(ms,e.__scopeMenu),s=mR(mz,e.__scopeMenu),l=el.useRef(null),u=fZ(t,l);return(0,es.jsx)(p0.Provider,{scope:e.__scopeMenu,children:(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(p0.Slot,{scope:e.__scopeMenu,children:(0,es.jsx)(mh,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:u,align:"start",side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:fz(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:fz(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:fz(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=pJ[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function mZ(e){return e?"open":"closed"}function mI(e){return"indeterminate"===e}function mV(e){return mI(e)?"indeterminate":e?"checked":"unchecked"}function mB(e){return t=>"mouse"===t.pointerType?e(t):void 0}mF.displayName=mz;var mU="DropdownMenu",[mH,mW]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(mU,[p3]),m$=p3(),[mq,mK]=mH(mU),mY=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=m$(t),u=el.useRef(null),[c=!1,d]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=fA(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=fA(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:i,defaultProp:a,onChange:o});return(0,es.jsx)(mq,{scope:t,triggerId:eR(),triggerRef:u,contentId:eR(),open:c,onOpenChange:d,onOpenToggle:el.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,es.jsx)(mt,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};mY.displayName=mU;var mG="DropdownMenuTrigger",mX=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=mK(mG,n),o=m$(n);return(0,es.jsx)(mn,{asChild:!0,...o,children:(0,es.jsx)(fL.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:fP(t,a.triggerRef),onPointerDown:fM(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:fM(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});mX.displayName=mG;var mJ=e=>{let{__scopeDropdownMenu:t,...n}=e,r=m$(t);return(0,es.jsx)(mo,{...r,...n})};mJ.displayName="DropdownMenuPortal";var mQ="DropdownMenuContent",m0=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=mK(mQ,n),a=m$(n),o=el.useRef(!1);return(0,es.jsx)(mc,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:fM(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:fM(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)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});m0.displayName=mQ,el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mp,{...i,...r,ref:t})}).displayName="DropdownMenuGroup";var m1=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mm,{...i,...r,ref:t})});m1.displayName="DropdownMenuLabel";var m2=el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(my,{...i,...r,ref:t})});m2.displayName="DropdownMenuItem",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mx,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mE,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mC,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mP,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mA,{...i,...r,ref:t})}).displayName="DropdownMenuSeparator",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mT,{...i,...r,ref:t})}).displayName="DropdownMenuArrow",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mL,{...i,...r,ref:t})}).displayName="DropdownMenuSubTrigger",el.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m$(n);return(0,es.jsx)(mF,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var m4=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(m6);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(m3,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(m3,{...r,ref:t,children:n})});m4.displayName="Slot";var m3=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});m3.displayName="SlotClone";var m5=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function m6(e){return el.isValidElement(e)&&e.type===m5}var m8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?m4:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),m7="horizontal",m9=["horizontal","vertical"],ge=el.forwardRef((e,t)=>{let{decorative:n,orientation:r=m7,...i}=e,a=m9.includes(r)?r:m7;return(0,es.jsx)(m8.div,{"data-orientation":a,...n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},...i,ref:t})});ge.displayName="Separator";let gt=(0,tl.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"}}),gn=el.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...a}=e;return(0,es.jsx)(ge,{ref:t,className:gt({variant:n,color:r,className:i}),...a})}),gr=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tl.cx)(n2({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},gi=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:a,noWrap:o,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tl.cx)(gr({font:t,color:n,weight:r,size:i,scaleSize:a,noWrap:o,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},ga=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:a="14",scaleSize:o,noWrap:s,ellipsis:l}=e;return n2({font:n,color:r,weight:i,size:a,scaleSize:o,noWrap:s,ellipsis:l,className:t})},go=e=>(0,tl.cx)(["h-px","my-2","mx-1.5",e]),gs=el.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,es.jsx)(gn,{ref:t,className:go(n),...i})}),gl=el.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:a,size:o="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,es.jsx)("div",{ref:t,className:(0,tl.cx)(gr({className:n,font:r,color:i,weight:a,size:o,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),gu=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{ref:t,className:(0,tl.cx)(["ml-auto","pl-5",n]),...r})}),gc=(0,tl.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"]),gd=e=>(0,tl.cx)(n5(),(0,tl.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),gf={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},gh=el.forwardRef((e,t)=>{let{trigger:n,label:r,children:i,rootProps:a,contentProps:o,className:s,open:l,onOpenChange:u}=e,{open:c,onOpenChange:d}=l6({open:l,onOpenChange:u});return(0,es.jsxs)(mY,{open:c,onOpenChange:d,...a,children:[(0,es.jsx)(mX,{asChild:!0,"aria-label":r,children:n}),(0,es.jsx)(rM,{children:c?(0,es.jsx)(mJ,{forceMount:!0,children:(0,es.jsx)(m0,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,es.jsx)(l5.div,{variants:gf,initial:"init",animate:"show",exit:"exit",className:gc(),children:(0,es.jsx)("div",{className:gd(s),children:i})})})}):null})]})}),gp=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(m2,{ref:t,className:gi({className:n}),...r})}),gm=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(m1,{ref:t,className:(0,tl.cx)("px-1.5",ga({className:n})),...r})}),gg=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("div",{ref:t,className:(0,tl.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var gv=n(76221);let gy={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},gb={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"},gx=el.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:a,anchorLink:o,showAnchor:s,...l}=e,u=gy[n];if(o){let e=i||("string"==typeof a?encodeURI(a.toLowerCase().replace(/ /g,"-")):"");return(0,es.jsxs)("div",{className:(0,tl.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,es.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,es.jsxs)(gv.rU,{href:"#".concat(e),className:"relative group",children:[(0,es.jsx)(n4,{className:"hidden group-hover:block",children:(0,es.jsx)(ut.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,es.jsx)(n4,{as:u,...l,ref:t,weight:"none",className:(0,tl.cx)("proportional-nums inline-block",gb[n]),children:a})]})]})}return(0,es.jsx)("div",{className:(0,tl.cx)("flex flex-col gap-6 items-start",r),children:(0,es.jsx)(n4,{as:u,...l,ref:t,weight:"none",className:(0,tl.cx)("proportional-nums inline-block",gb[n],r),children:a})})}),gw=(0,tl.j)(["rounded"]);function gj(e){let{className:t,...n}=e;return(0,es.jsx)(gv.Ee,{className:gw({className:t}),...n})}var gk=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(gC);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(gE,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(gE,{...r,ref:t,children:n})});gk.displayName="Slot";var gE=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});gE.displayName="SlotClone";var g_=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function gC(e){return el.isValidElement(e)&&e.type===g_}var gS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?gk:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),gO=el.forwardRef((e,t)=>(0,es.jsx)(gS.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));gO.displayName="Label";let gM=el.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:a,color:o="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,es.jsx)(gO,{ref:t,...c,className:ga({font:n,size:r,scaleSize:i,color:o,weight:a,noWrap:s,ellipsis:l,className:u})})}),gP=(0,tl.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"}}),gA=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:a,noWrap:o,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,tl.cx)(n2({scaleSize:r,size:n,font:t,color:i,weight:a,noWrap:o,ellipsis:s,underline:l}),gP({disabled:u,underline:l}),c)},gT=el.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:a,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...g}=e,v=(0,el.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,es.jsx)(gv.rU,{href:n||"#",ref:t,className:gA({font:r,scaleSize:a,size:i,color:o,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...g,onClick:v,rel:h||("_blank"===p?"noopener":void 0),target:p})}),gN=el.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:a,state:o,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),g=(0,el.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,es.jsx)(l7,{content:c,children:(0,es.jsx)(gv.rU,{href:n||"#",ref:t,className:l9({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:g,...p,rel:m,target:f})}):(0,es.jsx)(gv.rU,{href:n||"#",ref:t,className:l9({variant:i,size:a,state:o,rounded:s,disabled:r,icon:l,className:u}),onClick:g,...p,rel:m,target:f})});function gR(e){let{size:t=30,className:n}=e;return(0,es.jsx)(gj,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}function gD(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function gL(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function gz(...e){return el.useCallback(gL(...e),e)}var gF=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(gV);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(gZ,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(gZ,{...r,ref:t,children:n})});gF.displayName="Slot";var gZ=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?gL(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});gZ.displayName="SlotClone";var gI=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function gV(e){return el.isValidElement(e)&&e.type===gI}var gB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?gF:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gU(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var gH="Popover",[gW,g$]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(gH,[pr]),gq=pr(),[gK,gY]=gW(gH),gG=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=gq(t),l=el.useRef(null),[u,c]=el.useState(!1),[d=!1,f]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=gU(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=gU(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:a});return(0,es.jsx)(po,{...s,children:(0,es.jsx)(gK,{scope:t,contentId:eR(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:el.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:el.useCallback(()=>c(!0),[]),onCustomAnchorRemove:el.useCallback(()=>c(!1),[]),modal:o,children:n})})};gG.displayName=gH;var gX="PopoverAnchor";el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gY(gX,n),a=gq(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return el.useEffect(()=>(o(),()=>s()),[o,s]),(0,es.jsx)(pl,{...a,...r,ref:t})}).displayName=gX;var gJ="PopoverTrigger",gQ=el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gY(gJ,n),a=gq(n),o=gz(t,i.triggerRef),s=(0,es.jsx)(gB.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ve(i.open),...r,ref:o,onClick:gD(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,es.jsx)(pl,{asChild:!0,...a,children:s})});gQ.displayName=gJ;var g0="PopoverPortal",[g1,g2]=gW(g0,{forceMount:void 0}),g4=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=gY(g0,t);return(0,es.jsx)(g1,{scope:t,forceMount:n,children:(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:r})})})};g4.displayName=g0;var g3="PopoverContent",g5=el.forwardRef((e,t)=>{let n=g2(g3,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=gY(g3,e.__scopePopover);return(0,es.jsx)(eM,{present:r||a.open,children:a.modal?(0,es.jsx)(g6,{...i,ref:t}):(0,es.jsx)(g8,{...i,ref:t})})});g5.displayName=g3;var g6=el.forwardRef((e,t)=>{let n=gY(g3,e.__scopePopover),r=el.useRef(null),i=gz(t,r),a=el.useRef(!1);return el.useEffect(()=>{let e=r.current;if(e)return(0,da.R)(e)},[]),(0,es.jsx)(di,{as:gF,allowPinchZoom:!0,children:(0,es.jsx)(g7,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gD(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:gD(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:gD(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),g8=el.forwardRef((e,t)=>{let n=gY(g3,e.__scopePopover),r=el.useRef(!1),i=el.useRef(!1);return(0,es.jsx)(g7,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),g7=el.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=gY(g3,n),h=gq(n);return cU(),(0,es.jsx)(cE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,es.jsx)(cd,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,es.jsx)(pf,{"data-state":ve(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),g9="PopoverClose";function ve(e){return e?"open":"closed"}el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gY(g9,n);return(0,es.jsx)(gB.button,{type:"button",...r,ref:t,onClick:gD(e.onClick,()=>i.onOpenChange(!1))})}).displayName=g9,el.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=gq(n);return(0,es.jsx)(pm,{...i,...r,ref:t})}).displayName="PopoverArrow";let vt=(0,tl.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"]),vn=(0,tl.cx)(n5(),(0,tl.j)(["py-1","px-1"])()),vr={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},vi=el.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{open:o,onOpenChange:s}=l6({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,es.jsxs)(gG,{open:o,onOpenChange:s,...i,children:[(0,es.jsx)(gQ,{asChild:!0,children:n}),(0,es.jsx)(rM,{children:o?(0,es.jsx)(g4,{forceMount:!0,children:(0,es.jsx)(g5,{asChild:!0,forceMount:!0,ref:t,...a,children:(0,es.jsx)(l5.div,{variants:vr,initial:"init",animate:"show",exit:"exit",className:vt(),children:(0,es.jsx)(fb,{className:vn,children:r})})})}):null})]})});var va=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(vl);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(vo,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(vo,{...r,ref:t,children:n})});va.displayName="Slot";var vo=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});vo.displayName="SlotClone";var vs=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function vl(e){return el.isValidElement(e)&&e.type===vs}var vu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?va:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vc="Progress",[vd,vf]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(vc),[vh,vp]=vd(vc),vm=el.forwardRef((e,t)=>{var n,r;let{__scopeProgress:i,value:a=null,max:o,getValueLabel:s=vy,...l}=e;(o||0===o)&&!vw(o)&&console.error((n=`${o}`,`Invalid prop \`max\` of value \`${n}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`));let u=vw(o)?o:100;null===a||vj(a,u)||console.error((r=`${a}`,`Invalid prop \`value\` of value \`${r}\` supplied to \`Progress\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. -Defaulting to \`null\`.`));let c=vj(a,u)?a:null,d=vx(c)?s(c,u):void 0;return(0,es.jsx)(vh,{scope:i,value:c,max:u,children:(0,es.jsx)(vu.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":vx(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":vb(c,u),"data-value":c??void 0,"data-max":u,...l,ref:t})})});vm.displayName=vc;var vg="ProgressIndicator",vv=el.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=vp(vg,n);return(0,es.jsx)(vu.div,{"data-state":vb(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});function vy(e,t){return`${Math.round(e/t*100)}%`}function vb(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function vx(e){return"number"==typeof e}function vw(e){return vx(e)&&!isNaN(e)&&e>0}function vj(e,t){return vx(e)&&!isNaN(e)&&e<=t&&e>=0}vv.displayName=vg;let vk=(0,tl.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"}}),vE=el.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:a,max:o=100,...s}=e,l=null!=a?Math.round(a/o*100):null;return(0,es.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,es.jsx)(vm,{...s,ref:t,value:a,max:o,className:vk({variant:r,className:i}),children:(0,es.jsx)(vv,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,es.jsx)(n4,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function v_(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function vC(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function vS(...e){return el.useCallback(vC(...e),e)}function vO(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var vM=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(vT);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(vP,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(vP,{...r,ref:t,children:n})});vM.displayName="Slot";var vP=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?vC(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});vP.displayName="SlotClone";var vA=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function vT(e){return el.isValidElement(e)&&e.type===vA}var vN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?vM:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vR(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var vD=el.createContext(void 0),vL=globalThis?.document?el.useLayoutEffect:()=>{},vz="Radio",[vF,vZ]=vO(vz),[vI,vB]=vF(vz),vV=el.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s="on",onCheck:l,form:u,...c}=e,[d,f]=el.useState(null),h=vS(t,e=>f(e)),p=el.useRef(!1),m=!d||u||!!d.closest("form");return(0,es.jsxs)(vI,{scope:n,checked:i,disabled:o,children:[(0,es.jsx)(vN.button,{type:"button",role:"radio","aria-checked":i,"data-state":v$(i),"data-disabled":o?"":void 0,disabled:o,value:s,...c,ref:h,onClick:v_(e.onClick,e=>{i||l?.(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})}),m&&(0,es.jsx)(vW,{control:d,bubbles:!p.current,name:r,value:s,checked:i,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});vV.displayName=vz;var vU="RadioIndicator",vH=el.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=vB(vU,n);return(0,es.jsx)(eM,{present:r||a.checked,children:(0,es.jsx)(vN.span,{"data-state":v$(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t})})});vH.displayName=vU;var vW=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=el.useRef(null),o=function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),s=function(e){let[t,n]=el.useState(void 0);return vL(()=>{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}(t);return el.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,es.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function v$(e){return e?"checked":"unchecked"}var vq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],vK="RadioGroup",[vY,vG]=vO(vK,[pF,vZ]),vX=pF(),vJ=vZ(),[vQ,v0]=vY(vK),v1=el.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=vX(n),p=function(e){let t=el.useContext(vD);return e||t||"ltr"}(u),[m,g]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=vR(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=vR(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:a,defaultProp:i,onChange:d});return(0,es.jsx)(vQ,{scope:n,name:r,required:o,disabled:s,value:m,onValueChange:g,children:(0,es.jsx)(pB,{asChild:!0,...h,orientation:l,dir:p,loop:c,children:(0,es.jsx)(vN.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":s?"":void 0,dir:p,...f,ref:t})})})});v1.displayName=vK;var v2="RadioGroupItem",v4=el.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=v0(v2,n),o=a.disabled||r,s=vX(n),l=vJ(n),u=el.useRef(null),c=vS(t,u),d=a.value===i.value,f=el.useRef(!1);return el.useEffect(()=>{let e=e=>{vq.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,es.jsx)(pH,{asChild:!0,...s,focusable:!o,active:d,children:(0,es.jsx)(vV,{disabled:o,required:a.required,checked:d,...l,...i,name:a.name,ref:c,onCheck:()=>a.onValueChange(i.value),onKeyDown:v_(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:v_(i.onFocus,()=>{f.current&&u.current?.click()})})})});v4.displayName=v2;var v3=el.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=vJ(n);return(0,es.jsx)(vH,{...i,...r,ref:t})});v3.displayName="RadioGroupIndicator";let v5=(0,tl.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"}}),v6=(0,tl.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"}}),v8=el.forwardRef((e,t)=>{let{size:n,className:r,children:i,...a}=e;return(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(v4,{...a,className:v6({size:n,className:r}),ref:t,children:(0,es.jsx)(v3,{className:v5({size:n})})}),(0,es.jsx)(n4,{size:"14",className:"relative top-px flex items-center",color:a.disabled?"verySubtle":"subtle",children:i})]})}),v7=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(v1,{...r,className:(0,tl.cx)("flex gap-2",n),ref:t})});function v9(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var ye=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(yr);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(yt,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(yt,{...r,ref:t,children:n})});ye.displayName="Slot";var yt=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});yt.displayName="SlotClone";var yn=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function yr(e){return el.isValidElement(e)&&e.type===yn}var yi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ye:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ya=el.createContext(void 0);function yo(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var ys="Tabs",[yl,yu]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ys,[pF]),yc=pF(),[yd,yf]=yl(ys),yh=el.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=function(e){let t=el.useContext(ya);return e||t||"ltr"}(s),[d,f]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=yo(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=yo(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,onChange:i,defaultProp:a});return(0,es.jsx)(yd,{scope:n,baseId:eR(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:l,children:(0,es.jsx)(yi.div,{dir:c,"data-orientation":o,...u,ref:t})})});yh.displayName=ys;var yp="TabsList",ym=el.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=yf(yp,n),o=yc(n);return(0,es.jsx)(pB,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,es.jsx)(yi.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});ym.displayName=yp;var yg="TabsTrigger",yv=el.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=yf(yg,n),s=yc(n),l=yx(o.baseId,r),u=yw(o.baseId,r),c=r===o.value;return(0,es.jsx)(pH,{asChild:!0,...s,focusable:!i,active:c,children:(0,es.jsx)(yi.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...a,ref:t,onMouseDown:v9(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:v9(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:v9(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(r)})})})});yv.displayName=yg;var yy="TabsContent",yb=el.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=yf(yy,n),l=yx(s.baseId,r),u=yw(s.baseId,r),c=r===s.value,d=el.useRef(c);return el.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,es.jsx)(eM,{present:i||c,children:({present:n})=>(0,es.jsx)(yi.div,{"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:n&&a})})});function yx(e,t){return`${e}-trigger-${t}`}function yw(e,t){return`${e}-content-${t}`}yb.displayName=yy;let yj=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(yh,{ref:t,className:(0,tl.cx)("flex flex-col",n),...r})}),yk=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(ym,{ref:t,className:(0,tl.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),yE=el.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:a,...o}=e;return(0,es.jsx)(yv,{ref:t,type:"button",className:(0,tl.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",n2({font:n,size:r,weight:i,ellipsis:!0}),a),...o})}),y_=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(yb,{ref:t,className:(0,tl.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,tl.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",n2(),"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 yC=(0,tl.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"}}),yS=el.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l,...u}=e;return(0,es.jsx)("input",{ref:t,className:yC({variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l}),...u})});function yO(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 yM(){}function yP(e){return!!(e||"").match(/\d/)}function yA(e){return null==e}function yT(e){return yA(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function yN(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function yR(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 yD(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function yL(e,t){return Array(t+1).join(e)}function yz(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,s=i.length;return o<0?i="0."+yL("0",Math.abs(o))+i:o>=s?i+=yL("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function yF(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=yR(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=(o.length<=t?"0."+o:l.toFixed(t)).split(".");return(s?"-":"")+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?".":"")+yD(u[1]||"",t,n)}function yZ(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)}}(y=B||(B={})).event="event",y.props="prop";var yI=(b=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}}},w=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return x&&e.length===x.length&&e.every(function(e,t){return e===x[t]})?w:(x=e,w=b.apply(void 0,e))});function yB(e){return Math.max(e.selectionStart,e.selectionEnd)}function yV(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function yU(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 yH(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||_P?M=p:p>e.length-u.length&&(M=p),e=e.substring(0,M),void 0===(r=j?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),a=/(-)/.test(r),o=i.test(r),r=r.replace(/-/g,""),a&&!o&&s&&(r="-"+r);var A=(e=((e=r).match(RegExp("(^-)|[0-9]|"+yN(v),"g"))||[]).join("")).indexOf(v),T=yR(e=e.replace(RegExp(yN(v),"g"),function(e,t){return t===A?".":""}),s),N=T.beforeDecimal,R=T.afterDecimal,D=T.addNegation;return f.end-f.start=l.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,el.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:g}=(0,el.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,es.jsxs)("div",{className:"relative",children:[(0,es.jsx)(yX,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:g,thousandSeparator:m,className:(0,tl.cx)(yC({variant:n,size:r,state:i,focus:s,noSpin:a,cursor:l,className:u}),t?"pr-9":"")}),t&&(0,es.jsx)("div",{className:(0,tl.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,es.jsx)(n4,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var yQ=n(6391),y0=n.n(yQ);function y1(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function y2(e){let{value:t,placeholder:n=new(y0())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:a,onChange:o,size:s="small",units:l,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,el.useMemo)(()=>new(y0())(t),[t]),[m,g]=(0,el.useState)(""),v=(0,el.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(y0())(e):void 0)},[o]),y=(0,el.useCallback)(e=>{g(e),v(e)},[g,v]);return(0,el.useEffect)(()=>{p.isEqualTo(m)||g(y1(p,r))},[p]),(0,es.jsx)(yJ,{...h,thousandsGroupStyle:a?"none":void 0,"data-testid":"numberfield",size:s,placeholder:n.isNaN()?"":y1(n,r),units:l,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var y4=n(83429);function y3(e){let{sc:t,placeholder:n=new(y0())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:a,size:o="medium",units:s="SC",unitsFiatPostfix:l,showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,name:m,...g}=e,v=(0,el.useMemo)(()=>new(y0())(void 0===t?NaN:t),[t]),{settings:y}=(0,y4.Hv)(),b=(0,y4.Nz)(),x=b?b.rate:void 0,[w,j]=(0,el.useState)(),[k,E]=(0,el.useState)(""),[_,C]=(0,el.useState)(""),S=(0,el.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(y0())(e):void 0)},[a]),O=(0,el.useCallback)(e=>{C(y1(e,r))},[C,r]),M=(0,el.useCallback)(e=>{let t=y1(e,i);return E(t),S(t),t},[E,i,S]),P=(0,el.useCallback)(e=>{E(e),w&&S(e)},[w,E,S]),A=(0,el.useCallback)(e=>{O(new(y0())(e).times(x||0))},[O,x]),T=(0,el.useCallback)(e=>{M(new(y0())(e).dividedBy(x||0))},[M,x]),[N,R]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{if(!v.isEqualTo(k)){let e=y1(v,i);E(e),"fiat"!==w&&A(e)}N||R(!0)},[v]),(0,el.useEffect)(()=>{N&&A(k)},[x]),(0,el.useEffect)(()=>{"sc"===w&&A(k)},[k]),(0,el.useEffect)(()=>{"fiat"===w&&T(_)},[_]),(0,es.jsxs)("div",{className:(0,tl.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",g.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",g.readOnly?"pointer-events-none":"",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,es.jsx)(yJ,{...g,name:m,"data-testid":"scInput",size:o,variant:"ghost",focus:"none",placeholder:y1(n,i),units:s,value:"NaN"!==k?k:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{P(e.value||"")},onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)}}),u&&x&&(0,es.jsx)(yJ,{...g,"data-testid":"fiatInput",name:"".concat(m,"-fiat"),size:o,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:y.currency.label+(l||""),decimalScale:i,allowNegative:!1,onValueChange:e=>{C(e.value||"")},placeholder:"".concat(y.currency.prefix).concat(x.times(n).toFixed(r)),prefix:f||y.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)}})]})}function y5(e){let{children:t}=e;return(0,es.jsx)(l7,{content:t,children:(0,es.jsx)("div",{className:"relative items-center inline mx-1",children:(0,es.jsx)(n4,{color:"subtle",children:(0,es.jsx)(ut.RdX,{className:"scale-75"})})})})}function y6(e){let{values:t,options:n,onChange:r}=e;return(0,es.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,es.jsx)(ue,{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 y8(e){let{options:t,onClick:n,onRemove:r}=e;return(0,es.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,es.jsxs)(uM,{"data-testid":"item",children:[(0,es.jsx)(ue,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,es.jsx)(ue,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,es.jsx)(ut.PcV,{})})]},e.value))})}let y7=(0,tl.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"}}),y9=el.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:a,...o}=e;return(0,es.jsxs)("div",{className:y7({size:n,state:r,className:a}),children:[i,(0,es.jsx)("select",{ref:t,...o,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,es.jsx)(ut.Cp0,{className:"pointer-events-none scale-75"})]})}),be=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("option",{ref:t,...r,className:(0,tl.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),bt=(0,tl.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function bn(e){let{className:t}=e;return(0,es.jsx)("div",{className:bt({className:t})})}let br=(0,tl.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),bi=el.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,es.jsx)("div",{ref:t,className:br({size:n,className:r}),...i})});function ba(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function bo(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var bs=globalThis?.document?el.useLayoutEffect:()=>{},bl=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(bd);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(bu,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(bu,{...r,ref:t,children:n})});bl.displayName="Slot";var bu=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ba(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});bu.displayName="SlotClone";var bc=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function bd(e){return el.isValidElement(e)&&e.type===bc}var bf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?bl:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),bh="Switch",[bp,bm]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(bh),[bg,bv]=bp(bh),by=el.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:u,form:c,...d}=e,[f,h]=el.useState(null),p=function(...e){return el.useCallback(ba(...e),e)}(t,e=>h(e)),m=el.useRef(!1),g=!f||c||!!f.closest("form"),[v=!1,y]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=bo(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=bo(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:i,defaultProp:a,onChange:u});return(0,es.jsxs)(bg,{scope:n,checked:v,disabled:s,children:[(0,es.jsx)(bf.button,{type:"button",role:"switch","aria-checked":v,"aria-required":o,"data-state":bj(v),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,e=>{y(e=>!e),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),g&&(0,es.jsx)(bw,{control:f,bubbles:!m.current,name:r,value:l,checked:v,required:o,disabled:s,form:c,style:{transform:"translateX(-100%)"}})]})});by.displayName=bh;var bb="SwitchThumb",bx=el.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=bv(bb,n);return(0,es.jsx)(bf.span,{"data-state":bj(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});bx.displayName=bb;var bw=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=el.useRef(null),o=function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),s=function(e){let[t,n]=el.useState(void 0);return bs(()=>{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}(t);return el.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,es.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function bj(e){return e?"checked":"unchecked"}let bk=(0,tl.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"}}),bE=(0,tl.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"}}),b_=(0,el.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:a,...o}=e;return(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(by,{className:bE({size:n,state:r,className:i}),...o,ref:t,children:(0,es.jsx)(bx,{className:bk({size:n})})}),a&&(0,es.jsx)(n4,{color:o.disabled?"subtle":"contrast",children:a})]})});function bC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function bS(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function bO(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}var bM=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(bT);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(bP,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(bP,{...r,ref:t,children:n})});bM.displayName="Slot";var bP=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?bO(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});bP.displayName="SlotClone";var bA=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function bT(e){return el.isValidElement(e)&&e.type===bA}var bN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?bM:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),bR="HoverCard",[bD,bL]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(bR,[pr]),bz=pr(),[bF,bZ]=bD(bR),bI=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:s=300}=e,l=bz(t),u=el.useRef(0),c=el.useRef(0),d=el.useRef(!1),f=el.useRef(!1),[h=!1,p]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=bS(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=bS(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:a}),m=el.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),o)},[o,p]),g=el.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),v=el.useCallback(()=>p(!1),[p]);return el.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,es.jsx)(bF,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:g,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:(0,es.jsx)(po,{...l,children:n})})};bI.displayName=bR;var bB="HoverCardTrigger",bV=el.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=bZ(bB,n),a=bz(n);return(0,es.jsx)(pl,{asChild:!0,...a,children:(0,es.jsx)(bN.a,{"data-state":i.open?"open":"closed",...r,ref:t,onPointerEnter:bC(e.onPointerEnter,bG(i.onOpen)),onPointerLeave:bC(e.onPointerLeave,bG(i.onClose)),onFocus:bC(e.onFocus,i.onOpen),onBlur:bC(e.onBlur,i.onClose),onTouchStart:bC(e.onTouchStart,e=>e.preventDefault())})})});bV.displayName=bB;var bU="HoverCardPortal",[bH,bW]=bD(bU,{forceMount:void 0}),b$=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=bZ(bU,t);return(0,es.jsx)(bH,{scope:t,forceMount:n,children:(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:r})})})};b$.displayName=bU;var bq="HoverCardContent",bK=el.forwardRef((e,t)=>{let n=bW(bq,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=bZ(bq,e.__scopeHoverCard);return(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(bY,{"data-state":a.open?"open":"closed",...i,onPointerEnter:bC(e.onPointerEnter,bG(a.onOpen)),onPointerLeave:bC(e.onPointerLeave,bG(a.onClose)),ref:t})})});bK.displayName=bq;var bY=el.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,...s}=e,l=bZ(bq,n),u=bz(n),c=el.useRef(null),d=function(...e){return el.useCallback(bO(...e),e)}(t,c),[f,h]=el.useState(!1);return el.useEffect(()=>{if(f){let e=document.body;return V=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=V,e.style.webkitUserSelect=V}}},[f]),el.useEffect(()=>{if(c.current){let e=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),el.useEffect(()=>{c.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})(c.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,es.jsx)(cd,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:o,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:bC(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:(0,es.jsx)(pf,{...u,...s,onPointerDown:bC(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function bG(e){return t=>"touch"===t.pointerType?void 0:e()}el.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=bz(n);return(0,es.jsx)(pm,{...i,...r,ref:t})}).displayName="HoverCardArrow";let bX=(0,tl.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"]),bJ=(0,tl.cx)(n5(),"max-w-sm","py-0.5","px-1"),bQ={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},b0=el.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{className:o,...s}=a||{},{open:l,onOpenChange:u}=l6({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,es.jsxs)(bI,{open:l,onOpenChange:u,...i,children:[n&&(0,es.jsx)(bV,{asChild:!0,children:n}),(0,es.jsx)(rM,{children:l?(0,es.jsx)(b$,{forceMount:!0,children:(0,es.jsx)(bK,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,es.jsx)(l5.div,{variants:bQ,initial:"init",animate:"show",exit:"exit",className:bX(),children:(0,es.jsx)("div",{className:(0,tl.cx)(bJ,o),children:r})})})}):null})]})});function b1(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function b2(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function b4(...e){return el.useCallback(b2(...e),e)}var b3=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(b8);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(b5,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(b5,{...r,ref:t,children:n})});b3.displayName="Slot";var b5=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?b2(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});b5.displayName="SlotClone";var b6=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function b8(e){return el.isValidElement(e)&&e.type===b6}var b7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?b3:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function b9(e,t){e&&ey.flushSync(()=>e.dispatchEvent(t))}function xe(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function xt({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=xe(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=xe(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}var xn=el.createContext(void 0);function xr(e){let t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=b4(t,a(s,n).collectionRef);return(0,es.jsx)(b3,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=b4(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(b3,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));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 xi=globalThis?.document?el.useLayoutEffect:()=>{},xa="NavigationMenu",[xo,xs,xl]=xr(xa),[xu,xc,xd]=xr(xa),[xf,xh]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(xa,[xl,xd]),[xp,xm]=xf(xa),[xg,xv]=xf(xa);el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,delayDuration:o=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...c}=e,[d,f]=el.useState(null),h=b4(t,e=>f(e)),p=function(e){let t=el.useContext(xn);return e||t||"ltr"}(u),m=el.useRef(0),g=el.useRef(0),v=el.useRef(0),[y,b]=el.useState(!0),[x="",w]=xt({prop:r,onChange:e=>{let t=s>0;""!==e?(window.clearTimeout(v.current),t&&b(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>b(!0),s)),i?.(e)},defaultProp:a}),j=el.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(""),150)},[w]),k=el.useCallback(e=>{window.clearTimeout(g.current),w(e)},[w]),E=el.useCallback(e=>{x===e?window.clearTimeout(g.current):m.current=window.setTimeout(()=>{window.clearTimeout(g.current),w(e)},o)},[x,w,o]);return el.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(g.current),window.clearTimeout(v.current)},[]),(0,es.jsx)(xb,{scope:n,isRootMenu:!0,value:x,dir:p,orientation:l,rootNavigationMenu:d,onTriggerEnter:e=>{window.clearTimeout(m.current),y?E(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(m.current),j()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:j,onItemSelect:e=>{w(t=>t===e?"":e)},onItemDismiss:()=>w(""),children:(0,es.jsx)(b7.nav,{"aria-label":"Main","data-orientation":l,dir:p,...c,ref:h})})}).displayName=xa;var xy="NavigationMenuSub";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",...s}=e,l=xm(xy,n),[u="",c]=xt({prop:r,onChange:i,defaultProp:a});return(0,es.jsx)(xb,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>c(e),onItemSelect:e=>c(e),onItemDismiss:()=>c(""),children:(0,es.jsx)(b7.div,{"data-orientation":o,...s,ref:t})})}).displayName=xy;var xb=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,children:o,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:d,onContentEnter:f,onContentLeave:h}=e,[p,m]=el.useState(null),[g,v]=el.useState(new Map),[y,b]=el.useState(null);return(0,es.jsx)(xp,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(s),baseId:eR(),dir:i,orientation:a,viewport:p,onViewportChange:m,indicatorTrack:y,onIndicatorTrackChange:b,onTriggerEnter:xe(c),onTriggerLeave:xe(d),onContentEnter:xe(f),onContentLeave:xe(h),onItemSelect:xe(l),onItemDismiss:xe(u),onViewportContentChange:el.useCallback((e,t)=>{v(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:el.useCallback(e=>{v(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,es.jsx)(xo.Provider,{scope:t,children:(0,es.jsx)(xg,{scope:t,items:g,children:o})})})},xx="NavigationMenuList";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xm(xx,n),a=(0,es.jsx)(b7.ul,{"data-orientation":i.orientation,...r,ref:t});return(0,es.jsx)(b7.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,es.jsx)(xo.Slot,{scope:n,children:i.isRootMenu?(0,es.jsx)(xR,{asChild:!0,children:a}):a})})}).displayName=xx;var xw="NavigationMenuItem",[xj,xk]=xf(xw);el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...i}=e,a=eR(),o=el.useRef(null),s=el.useRef(null),l=el.useRef(null),u=el.useRef(()=>{}),c=el.useRef(!1),d=el.useCallback((e="start")=>{if(o.current){u.current();let t=xz(o.current);t.length&&xF("start"===e?t:t.reverse())}},[]),f=el.useCallback(()=>{if(o.current){let e=xz(o.current);e.length&&(u.current=(e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}))}},[]);return(0,es.jsx)(xj,{scope:n,value:r||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:o,focusProxyRef:l,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:f,onContentFocusOutside:f,children:(0,es.jsx)(b7.li,{...i,ref:t})})}).displayName=xw;var xE="NavigationMenuTrigger";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...i}=e,a=xm(xE,e.__scopeNavigationMenu),o=xk(xE,e.__scopeNavigationMenu),s=el.useRef(null),l=b4(s,o.triggerRef,t),u=xB(a.baseId,o.value),c=xV(a.baseId,o.value),d=el.useRef(!1),f=el.useRef(!1),h=o.value===a.value;return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(xo.ItemSlot,{scope:n,value:o.value,children:(0,es.jsx)(xL,{asChild:!0,children:(0,es.jsx)(b7.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":xI(h),"aria-expanded":h,"aria-controls":c,...i,ref:l,onPointerEnter:b1(e.onPointerEnter,()=>{f.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:b1(e.onPointerMove,xU(()=>{r||f.current||o.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:b1(e.onPointerLeave,xU(()=>{r||(a.onTriggerLeave(),d.current=!1)})),onClick:b1(e.onClick,()=>{a.onItemSelect(o.value),f.current=h}),onKeyDown:b1(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];h&&e.key===t&&(o.onEntryKeyDown(),e.preventDefault())})})})}),h&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(u5,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:e=>{let t=o.contentRef.current,n=e.relatedTarget,r=n===s.current,i=t?.contains(n);(r||!i)&&o.onFocusProxyEnter(r?"start":"end")}}),a.viewport&&(0,es.jsx)("span",{"aria-owns":c})]})]})}).displayName=xE;var x_="navigationMenu.linkSelect";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:i,...a}=e;return(0,es.jsx)(xL,{asChild:!0,children:(0,es.jsx)(b7.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:b1(e.onClick,e=>{let t=e.target,n=new CustomEvent(x_,{bubbles:!0,cancelable:!0});t.addEventListener(x_,e=>i?.(e),{once:!0}),b9(t,n),n.defaultPrevented||e.metaKey||b9(t,new CustomEvent(xP,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var xC="NavigationMenuIndicator";el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=xm(xC,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?ey.createPortal((0,es.jsx)(eM,{present:n||a,children:(0,es.jsx)(xS,{...r,ref:t})}),i.indicatorTrack):null}).displayName=xC;var xS=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xm(xC,n),a=xs(n),[o,s]=el.useState(null),[l,u]=el.useState(null),c="horizontal"===i.orientation,d=!!i.value;el.useEffect(()=>{let e=a(),t=e.find(e=>e.value===i.value)?.ref.current;t&&s(t)},[a,i.value]);let f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return xZ(o,f),xZ(i.indicatorTrack,f),l?(0,es.jsx)(b7.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation,...r,ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),xO="NavigationMenuContent";el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=xm(xO,e.__scopeNavigationMenu),a=xk(xO,e.__scopeNavigationMenu),o=b4(a.contentRef,t),s=a.value===i.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return i.viewport?(0,es.jsx)(xM,{forceMount:n,...l,ref:o}):(0,es.jsx)(eM,{present:n||s,children:(0,es.jsx)(xA,{"data-state":xI(s),...l,ref:o,onPointerEnter:b1(e.onPointerEnter,i.onContentEnter),onPointerLeave:b1(e.onPointerLeave,xU(i.onContentLeave)),style:{pointerEvents:!s&&i.isRootMenu?"none":void 0,...l.style}})})}).displayName=xO;var xM=el.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=xm(xO,e.__scopeNavigationMenu);return xi(()=>{n(e.value,{ref:t,...e})},[e,t,n]),xi(()=>()=>r(e.value),[e.value,r]),null}),xP="navigationMenu.rootContentDismiss",xA=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=xm(xO,n),d=el.useRef(null),f=b4(d,t),h=xB(c.baseId,r),p=xV(c.baseId,r),m=xs(n),g=el.useRef(null),{onItemDismiss:v}=c;el.useEffect(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{v(),s(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(xP,t),()=>e.removeEventListener(xP,t)}},[c.isRootMenu,e.value,i,v,s]);let y=el.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,es.jsx)(xR,{asChild:!0,children:(0,es.jsx)(cd,{id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation,...u,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(xP,{bubbles:!0,cancelable:!0});d.current?.dispatchEvent(e)},onFocusOutside:b1(e.onFocusOutside,e=>{l();let t=e.target;c.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:b1(e.onPointerDownOutside,e=>{let t=e.target,n=m().some(e=>e.ref.current?.contains(t)),r=c.isRootMenu&&c.viewport?.contains(t);(n||r||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:b1(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=xz(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);xF(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():a.current?.focus()}}),onEscapeKeyDown:b1(e.onEscapeKeyDown,e=>{o.current=!0})})})}),xT="NavigationMenuViewport";el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=!!xm(xT,e.__scopeNavigationMenu).value;return(0,es.jsx)(eM,{present:n||i,children:(0,es.jsx)(xN,{...r,ref:t})})}).displayName=xT;var xN=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=xm(xT,n),o=b4(t,a.onViewportChange),s=xv(xO,e.__scopeNavigationMenu),[l,u]=el.useState(null),[c,d]=el.useState(null),f=l?l?.width+"px":void 0,h=l?l?.height+"px":void 0,p=!!a.value,m=p?a.value:a.previousValue;return xZ(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,es.jsx)(b7.div,{"data-state":xI(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:b1(e.onPointerEnter,a.onContentEnter),onPointerLeave:b1(e.onPointerLeave,xU(a.onContentLeave)),children:Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,es.jsx)(eM,{present:n||i,children:(0,es.jsx)(xA,{...r,ref:b2(t,e=>{i&&e&&d(e)})})},e)})})}),xR=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xm("FocusGroup",n);return(0,es.jsx)(xu.Provider,{scope:n,children:(0,es.jsx)(xu.Slot,{scope:n,children:(0,es.jsx)(b7.div,{dir:i.dir,...r,ref:t})})})}),xD=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],xL=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xc(n),a=xm("FocusGroupItem",n);return(0,es.jsx)(xu.ItemSlot,{scope:n,children:(0,es.jsx)(b7.button,{...r,ref:t,onKeyDown:b1(e.onKeyDown,e=>{if(["Home","End",...xD].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),xD.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>xF(t)),e.preventDefault()}})})})});function xz(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 xF(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function xZ(e,t){let n=xe(t);xi(()=>{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])}function xI(e){return e?"open":"closed"}function xB(e,t){return`${e}-trigger-${t}`}function xV(e,t){return`${e}-content-${t}`}function xU(e){return t=>"mouse"===t.pointerType?e(t):void 0}var xH=n(38617);let xW=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(v4,{...r,ref:t,className:(0,tl.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 x$(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:a}=(0,xH.F)();return(0,es.jsxs)(v1,{value:i,tabIndex:r,className:(0,tl.cx)("flex gap-4",t),onValueChange:e=>a(e),children:[(0,es.jsx)(xW,{value:"system",children:(0,es.jsx)(l7,{className:n,sideOffset:16,content:"System",children:(0,es.jsx)(ut.$Iz,{})})}),(0,es.jsx)(xW,{value:"light",children:(0,es.jsx)(l7,{className:n,sideOffset:16,content:"Light",children:(0,es.jsx)(ut.JaG,{})})}),(0,es.jsx)(xW,{value:"dark",children:(0,es.jsx)(l7,{className:n,sideOffset:16,content:"Dark",children:(0,es.jsx)(ut.osk,{})})})]})}let{useDropzone:xq}=n(74424);function xK(e){let{title:t,children:n,rootClassName:r,className:i,message:a,showBorderInactive:o,testId:s,...l}=e,{getRootProps:u,getInputProps:c,isDragActive:d}=xq(l);return(0,es.jsxs)("div",{"data-testid":s,...u(),className:(0,tl.cx)("outline-none",r),children:[(0,es.jsxs)("div",{className:(0,tl.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,es.jsx)("input",{...c()}),a&&(0,es.jsx)(n3,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var xY=n(14582),xG=n(63739),xX=n(13980),xJ=n.n(xX),xQ=n(72779),x0=n.n(xQ),x1=n(47440),x2=n(59309),x4=n(19067),x3=n(71220),x5=n(28142);function x6(e){return"bandwidth"in e?e.bandwidth():0}var x8=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function x7(){return(x7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x8),v=null!=m?m:(0,x3.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+x6(r)/2,b=v.map(function(e,t){var n,a=(null!=(n=(0,x5.Z)(r(e)))?n:0)+y;return{index:t,from:new x4.Z({x:0,y:a}),to:new x4.Z({x:i,y:a})}});return el.createElement(x2.Z,{className:x0()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return el.createElement(x1.default,x7({key:"row-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:h},g))}))}x9.propTypes={tickValues:xJ().array,width:xJ().number.isRequired};var we=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function wt(){return(wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,we),v=null!=p?p:(0,x3.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+x6(r)/2,b=v.map(function(e,t){var n,a=(null!=(n=(0,x5.Z)(r(e)))?n:0)+y;return{index:t,from:new x4.Z({x:a,y:0}),to:new x4.Z({x:a,y:i})}});return el.createElement(x2.Z,{className:x0()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return el.createElement(x1.default,wt({key:"column-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:f},g))}))}wn.propTypes={tickValues:xJ().array,height:xJ().number.isRequired};var wr=n(64183),wi=n(8597);function wa(e){var t=e.id,n=e.width,r=e.height,i=e.children;return el.createElement("defs",null,el.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}wa.propTypes={id:xJ().string.isRequired,width:xJ().number.isRequired,height:xJ().number.isRequired,children:xJ().node.isRequired};var wo={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function ws(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,a=e.strokeWidth,o=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return el.createElement(wa,{id:t,width:n,height:r},!!h&&el.createElement("rect",{className:x0()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return el.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:x0()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case wo.horizontal:return"M 0,"+t/2+" l "+t+",0";case wo.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 wo.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 wo.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:a,strokeDasharray:o,strokeLinecap:l,shapeRendering:c})}))}ws.propTypes={id:xJ().string.isRequired,width:xJ().number.isRequired,height:xJ().number.isRequired,className:xJ().string,background:xJ().string,stroke:xJ().string,strokeWidth:xJ().oneOfType([xJ().number,xJ().string]),strokeDasharray:xJ().oneOfType([xJ().string,xJ().number]),strokeLinecap:xJ().oneOf(["square","butt","round","inherit"]),shapeRendering:xJ().oneOfType([xJ().string,xJ().number]),orientation:xJ().array};var wl=["tooltipOpen"];function wu(){return(wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wc);return el.createElement("div",wd({ref:t,className:x0()("visx-tooltip",n),style:wd({top:null==r||null==l?r:r+l,left:null==i||null==o?i:i+o},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function wp(){return(wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wb),g=!1,v=!1;if(u&&l){var y=void 0===r?0:r,b=void 0===f?0:f;if(l.width){var x=y+a+u.width-l.width,w=u.width-y-a;g=x>0&&x>w}else{var j=y+a+u.width-window.innerWidth,k=u.width-y-a;g=j>0&&j>k}if(l.height){var E=b+s+u.height-l.height,_=u.height-b-s;v=E>0&&E>_}else v=b+s+u.height>window.innerHeight;y=g?y-u.width-a:y+a,b=v?b-u.height-s:b+s,t="translate("+(y=Math.round(y))+"px, "+(b=Math.round(b))+"px)"}return el.createElement(wh,wx({ref:p,style:wx({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),el.createElement(wy,{value:{isFlippedVertically:!v,isFlippedHorizontally:!g}},n))}ww.propTypes={nodeRef:xJ().oneOfType([xJ().string,xJ().func,xJ().object])};var wj=((j=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=el.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,wm(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:ey.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():wg,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():wg}},n.render=function(){return el.createElement(ww,wp({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(el.PureComponent)).displayName="withBoundingRects("+(ww.displayName||"")+")",j),wk=n(99985);function wE(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-s):Math.max(e.dy,t.bounds.y0-i);return wN({},t,{isBrushing:!0,extent:wN({},t.extent,{x0:r+l,x1:o+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=wN({},e,{isBrushing:!1,start:wN({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:wN({},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,wR(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,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return el.createElement(wk.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 el.createElement("g",null,h&&el.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:g,onPointerLeave:f?void 0:m,style:wD}),el.createElement("rect",wN({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){s&&s(e)},onPointerMove:function(e){g(e),l&&l(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}(el.Component);function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-a):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-o):Math.max(u,e.bounds.y0-r);return wz({},e,{isBrushing:!0,extent:wz({},e.extent,{x0:n+s,y0:r+c,x1:a+s,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+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},o=n.getExtent(s,a);return wz({},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,s=t.useWindowMoveEvents,l=null!=o&&o.left?o.left:0,u=null!=o&&o.top?o.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-a-u},d=wz({},c);r&&r(c),n.updateBrush(function(t){return wz({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?wC(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 s=null!=o&&o.left?o.left:0,l=null!=o&&o.top?o.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-a-l})}},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 s=(null==a?void 0:a.left)||0,l=(null==a?void 0:a.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return wz({},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=wz({},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,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:a-s,height:e,width:l+e},bottom:{x:r-s,y:o-s,height:e,width:l+e},right:{x:i-s,y:a-s,height:u+e,width:e},left:{x:r-s,y:a-s,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,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(a,o)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(a,o)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=wz({},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,wF(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,s=t.props.height/e.height;r={x:o*a.x0,y:s*a.y0},i={x:o*a.x1,y:s*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,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,g=i.disableDraggingSelection,v=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),_=new Set(p);return el.createElement(x2.Z,{className:"visx-brush",top:a,left:o},el.createElement(wk.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,a=t.dragEnd;return el.createElement(xY.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,wW),v=a,y=s,b=o,x=l;return void 0!==m&&!m||v||y||b||x||(v="0",y="0",b="0",x="1"),el.createElement("defs",null,el.createElement("linearGradient",w$({id:n,x1:v,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},g),!!t&&t,!t&&el.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&el.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}wq.propTypes={id:xJ().string.isRequired,from:xJ().string,to:xJ().string,x1:xJ().oneOfType([xJ().string,xJ().number]),x2:xJ().oneOfType([xJ().string,xJ().number]),y1:xJ().oneOfType([xJ().string,xJ().number]),y2:xJ().oneOfType([xJ().string,xJ().number]),fromOffset:xJ().oneOfType([xJ().string,xJ().number]),fromOpacity:xJ().oneOfType([xJ().string,xJ().number]),toOffset:xJ().oneOfType([xJ().string,xJ().number]),toOpacity:xJ().oneOfType([xJ().string,xJ().number]),rotate:xJ().oneOfType([xJ().string,xJ().number]),transform:xJ().string,children:xJ().node,vertical:xJ().bool};var wK=n(78307),wY=n(74747);function wG(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 wX=n(35197),wJ=n(55746),wQ=n(45742),w0=n(27266),w1=["id","markerWidth","markerHeight","markerUnits","children"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1);return el.createElement("defs",null,el.createElement("marker",w2({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},o),a))}w4.propTypes={id:xJ().string.isRequired,size:xJ().number,markerWidth:xJ().oneOfType([xJ().string,xJ().number]),markerHeight:xJ().oneOfType([xJ().string,xJ().number]),markerUnits:xJ().string,refX:xJ().oneOfType([xJ().string,xJ().number]),refY:xJ().oneOfType([xJ().string,xJ().number]),strokeWidth:xJ().number,children:xJ().node.isRequired};var w3=["id","size","strokeWidth"];function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w3),s=2*r+a,l=s/2;return el.createElement(w4,w5({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},o),el.createElement("circle",{r:r,cx:l,cy:l}))}var w8=n(64170),w7={top:"top",left:"left",bottom:"bottom"};function w9(){return(w9=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ja),j=null!=g?g:"tickFormat"in m?m.tickFormat():jn.Z,k=f===w7.left,E=f===w7.top,_=E||f===w7.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),S=k||E?-1:1,O=m.range(),M=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:ji({start:0,end:0},t)),P=jr({x:Number(O[0])+.5-M.start,y:0},_),A=jr({x:Number(O[O.length-1])+.5+M.end,y:0},_),T=(null!=b?b:(0,x3.Z)(m,c)).filter(function(e){return!s||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=T.map(function(e){var t=e.value,n=e.index,r=(0,x5.Z)(C(t));return{value:t,index:n,from:jr({x:r,y:0},_),to:jr({x:r,y:y*S},_),formattedValue:j(t,n,T)}});return el.createElement(x2.Z,{className:x0()("visx-axis",r),top:void 0===x?0:x,left:void 0===l?0:l},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,a=e.hideTicks,o=e.horizontal,s=e.label,l=void 0===s?"":s,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?jt:d,h=e.orientation,p=void 0===h?w7.bottom:h,m=e.scale,g=e.stroke,v=e.strokeDasharray,y=e.strokeWidth,b=void 0===y?1:y,x=e.tickClassName,w=e.tickComponent,j=e.tickLineProps,k=e.tickLabelProps,E=void 0===k?function(){return jt}:k,_=e.tickLength,C=e.tickStroke,S=e.tickTransform,O=e.ticks,M=e.ticksComponent,P=O.map(function(e){return E(e.value,e.index,O)}),A=Math.max.apply(Math,[10].concat(P.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return el.createElement(el.Fragment,null,(void 0===M?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,a=e.tickComponent,o=e.tickLabelProps,s=e.tickStroke,l=void 0===s?"#222":s,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var s,c=e.value,h=e.index,p=e.from,m=e.to,g=e.formattedValue,v=null!=(s=o[h])?s:{},y=Math.max(10,"number"==typeof v.fontSize&&v.fontSize||0),b=m.y+(n&&r!==w7.top?y:0);return el.createElement(x2.Z,{key:"visx-tick-"+c+"-"+h,className:x0()("visx-axis-tick",i),transform:u},!t&&el.createElement(xG.Z,w9({from:p,to:m,stroke:l,strokeWidth:d,strokeLinecap:"square"},f)),a?a(w9({},v,{x:m.x,y:b,formattedValue:g})):el.createElement(w8.Z,w9({x:m.x,y:b},v),g))})}:M)({hideTicks:a,horizontal:o,orientation:p,scale:m,tickClassName:x,tickComponent:w,tickLabelProps:P,tickStroke:void 0===C?"#222":C,tickTransform:S,ticks:O,strokeWidth:b,tickLineProps:j}),!i&&el.createElement(xG.Z,{className:x0()("visx-axis-line",n),from:t,to:r,stroke:void 0===g?"#222":g,strokeWidth:b,strokeDasharray:v}),l&&el.createElement(w8.Z,je({className:x0()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,o=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=o===w7.left||o===w7.top?-1:1;if(o===w7.top||o===w7.bottom){var d=o===w7.bottom&&"number"==typeof a.fontSize?a.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(u+i+l+d)}else t=(Number(s[0])+Number(s[s.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:A,tickLength:void 0===_?8:_}),f),l))}:n)(jo({},w,{axisFromPoint:P,axisToPoint:A,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==a&&a,hideZero:s,horizontal:_,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:j,tickLength:y,tickPosition:C,tickSign:S,ticks:N})))}var jl=["axisClassName","labelOffset","tickLabelProps","tickLength"];function ju(){return(ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jl);return el.createElement(js,ju({axisClassName:x0()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:w7.bottom,tickLabelProps:void 0===r?jc:r,tickLength:void 0===i?8:i},a))}var jf=["axisClassName","labelOffset","tickLabelProps","tickLength"];function jh(){return(jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jf);return el.createElement(js,jh({axisClassName:x0()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:w7.left,tickLabelProps:void 0===r?jp:r,tickLength:void 0===i?8:i},a))}let jg=e=>new Date((null==e?void 0:e.timestamp)||0),jv=e=>(null==e?void 0:e.value)||0,jy="var(--colors-hiContrast)",jb={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:jy},jx={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:jy};function jw(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:a,xScale:o,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,es.jsxs)(x2.Z,{left:d||a.left,top:c||a.top,children:[(0,es.jsx)(w6,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,es.jsx)(wq,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,es.jsx)(wJ.Z,{data:t,x:e=>o(jg(e))||0,y:e=>s(jv(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?wQ.ZP:w0.Z}),!l&&(0,es.jsx)(jd,{top:i,scale:o,numTicks:r>520?10:5,stroke:jy,tickStroke:jy,tickLabelProps:()=>jb}),!u&&(0,es.jsx)(jm,{scale:s,numTicks:5,stroke:jy,tickStroke:jy,tickLabelProps:()=>jx}),h]})}let{inherit:jj,current:jk,transparent:jE,black:j_,white:jC,slate:jS,zinc:jO,neutral:jM,stone:jP,red:jA,orange:jT,amber:jN,yellow:jR,lime:jD,green:jL,emerald:jz,teal:jF,cyan:jZ,sky:jI,blue:jB,indigo:jV,violet:jU,purple:jH,fuchsia:jW,pink:j$,rose:jq}=n(6692),jK={inherit:jj,current:jk,transparent:jE,black:j_,white:jC,slate:jS,zinc:jO,neutral:jM,stone:jP,red:jA,orange:jT,amber:jN,yellow:jR,lime:jD,green:jL,emerald:jz,teal:jF,cyan:jZ,sky:jI,blue:jB,indigo:jV,violet:jU,purple:jH,fuchsia:jW,pink:j$,rose:jq,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 jY=n(60381);let jG={top:10,bottom:15,left:10,right:10},jX="brush_pattern",jJ="brush_gradient",jQ=(0,wX.Z)(e=>e(),15),j0=(0,wK.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===k&&(k={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===E&&(E=function(e,t){return el.createElement("div",t,e)});var j1=n(54073),j2=n.n(j1),j4=n(44711),j3=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function j5(){return(j5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j3),d=(0,el.useRef)(null),f=(0,el.useRef)(0),h=(0,el.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],g=(0,el.useMemo)(function(){var e=Array.isArray(o)?o:[o];return j2()(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,el.useEffect)(function(){var e=new j4.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]),el.createElement("div",j5({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(j5({},p,{ref:d.current,resize:g})))}j8.propTypes={className:xJ().string,debounceTime:xJ().number,enableDebounceLeadingCall:xJ().bool,ignoreDimensions:xJ().oneOfType([xJ().any,xJ().arrayOf(xJ().any)]),children:xJ().func.isRequired};var j7=n(83894);function j9(e){let{id:t,width:n,height:r,accessors:i,useAnimatedComponents:a,animationTrajectory:o,curve:s,data:l,config:u,scales:c,enabledGraph:d,enabledTip:f,isStack:h,todayOffset:p,numTicks:m,renderAreaSeries:g,renderAreaStack:v,renderBarGroup:y,renderBarStack:b,enableTooltipGlyph:x,renderTooltipGlyph:w,renderLineSeries:j,sharedTooltip:k,showHorizontalCrosshair:E,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:S,stackOffset:O,margin:M,theme:P,xAxisOrientation:A,yAxisOrientation:T,AreaSeries:N,AreaStack:R,Axis:D,BarGroup:L,BarSeries:z,BarStack:F,Grid:Z,LineSeries:I,Tooltip:B,XYChart:V}=e;return(0,es.jsxs)(V,{theme:P.xyChartTheme,xScale:c.x,yScale:c.y,height:Math.min(400,r),margin:M,captureEvents:!0,children:[(0,es.jsx)("g",{children:(0,es.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*p,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,es.jsx)(wq,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(u.data).map(e=>{let[n,r]=e,i=r.color;return(0,es.jsxs)(el.Fragment,{children:[(0,es.jsx)(ws,{id:"pattern-".concat(ke(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,es.jsx)(wq,{id:"gradient-".concat(ke(t,n)),from:i,fromOpacity:1,to:i,toOpacity:h?.4:1})]},n)}),(0,es.jsx)(Z,{...kn({key:"grid",useAnimatedComponents:a,animationTrajectory:o}),rows:!1,columns:!0,strokeDasharray:"1,3",numTicks:m}),b&&(0,es.jsx)(F,{offset:u.stackOffset,children:d.map(e=>(0,es.jsx)(z,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>kt(t,e,u)},e))}),y&&(0,es.jsx)(L,{children:d.map(e=>(0,es.jsx)(z,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>kt(t,e,u)},e))}),g&&(0,es.jsx)(es.Fragment,{children:d.map(e=>(0,es.jsx)(N,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:kt(t,e,u),fill:kt(t,e,u),curve:s},e))}),v&&(0,es.jsx)(R,{curve:s,offset:u.stackOffset,renderLine:"wiggle"!==O,children:d.map(e=>(0,es.jsx)(N,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:kt(t,e,u),fill:kt(t,e,u)},e))}),j&&(0,es.jsx)(es.Fragment,{children:d.map(e=>{var t,n;return(0,es.jsx)(I,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=u.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:s},e)})}),(0,es.jsx)(D,{...kn({key:"time-axis",useAnimatedComponents:a,animationTrajectory:o}),orientation:A,numTicks:m,tickFormat:e=>(0,jY.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})}),(0,es.jsx)(D,{...kn({key:"temp-axis",useAnimatedComponents:a,animationTrajectory:o}),label:null==O?"SC":"expand"===O?"Fraction of total":"",orientation:T,numTicks:m,tickLength:12,tickFormat:u.formatTickY,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,fontWeight:"500",fontSize:"8"})}),_&&(0,es.jsx)(B,{showHorizontalCrosshair:E,showVerticalCrosshair:C,snapTooltipToDatumX:S,snapTooltipToDatumY:S,showDatumGlyph:S&&!y,showSeriesGlyphs:k&&!y,renderGlyph:x?w: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,s=k?f:o?[o]:[],l=u.formatTimestamp||(e=>(0,jY.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=u.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),d=(0,j7.Z)(c,"category"),p=u.categories?u.categories.map(e=>[e,d[e]]):Object.entries(d);return(0,es.jsxs)("div",{className:(0,tl.cx)("flex flex-col gap-2 py-1"),children:[(0,es.jsx)(n4,{font:"mono",size:"12",color:"contrast",className:"text-end",children:a?l(i.date(a)):"No date"}),(0,es.jsx)(gn,{color:"panel",className:"w-full"}),(0,es.jsx)("div",{className:(0,tl.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,s=null==u?void 0:u.formatComponent;return(0,es.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,es.jsx)(n4,{weight:"semibold",children:t}),(0,es.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,l;let{key:c}=e,d=a&&i.y[c](a);return(0,es.jsxs)(el.Fragment,{children:[(0,es.jsx)(n4,{color:"accent",style:{color:null===(n=u.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,tl.cx)(o===c?"underline":""),children:(null===(l=u.data)||void 0===l?void 0:null===(r=l[c])||void 0===r?void 0:r.label)||c}),(0,es.jsx)(n4,{size:"12",style:{textAlign:"end"},className:(0,tl.cx)(o===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,es.jsx)(s,{value:d}):u.format?u.format(d):d})]},c)}),n.length>1&&h&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(n4,{className:"pt-2",children:"total"}),(0,es.jsx)(n4,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,es.jsx)(s,{value:r}):u.format?u.format(r):r})]})]})]},t)})})]})}})]})}function ke(e,t){return"".concat(e,"-").concat(t)}function kt(e,t,n){var r;let i=ke(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)"}function kn(e){let{key:t,useAnimatedComponents:n,animationTrajectory:r}=e;return n&&r?{key:"".concat(t,"-").concat(r),animationTrajectory:r}:{key:t}}var kr=n(24037),ki=n(86707);function ka(e){var t=e.top,n=e.left,r=e.className,i=e.children;return el.createElement(x2.Z,{className:x0()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}ka.propTypes={top:xJ().number,left:xJ().number,className:xJ().string,children:xJ().node};var ko=["children","className","top","left","size"];function ks(){return(ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ko),s=(0,kr.Z)();return(s.type(ki.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?el.createElement(el.Fragment,null,t({path:s})):el.createElement(ka,{top:r,left:i},el.createElement("path",ks({className:x0()("visx-glyph-star",n),d:s()||""},o)))}kl.propTypes={children:xJ().func,className:xJ().string,top:xJ().number,left:xJ().number,size:xJ().oneOfType([xJ().number,xJ().func])};var ku=["top","left","className"];function kc(){return(kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ku);return el.createElement(ka,{top:void 0===t?0:t,left:void 0===n?0:n},el.createElement("circle",kc({className:x0()("visx-glyph-dot",r)},i)))}kd.propTypes={className:xJ().string,top:xJ().number,left:xJ().number,r:xJ().number,cx:xJ().number,cy:xJ().number};var kf=n(9135),kh=["children","className","top","left","size"];function kp(){return(kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kh),s=(0,kr.Z)();return(s.type(kf.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?el.createElement(el.Fragment,null,t({path:s})):el.createElement(ka,{top:r,left:i},el.createElement("path",kp({className:x0()("visx-glyph-cross",n),d:s()||""},o)))}km.propTypes={children:xJ().func,className:xJ().string,top:xJ().number,left:xJ().number,size:xJ().oneOfType([xJ().number,xJ().func])};var kg=n(46385),kv=n(20651),ky=["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],kb="#495057";function kx(){return(kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)k_(e,n,{get:t[n],enumerable:!0})})(kC,{assign:()=>k3,colors:()=>k1,createStringInterpolator:()=>U,skipAnimation:()=>k2,to:()=>H,willAdvance:()=>k4});var kS=kU(),kO=e=>kZ(e,kS),kM=kU();kO.write=e=>kZ(e,kM);var kP=kU();kO.onStart=e=>kZ(e,kP);var kA=kU();kO.onFrame=e=>kZ(e,kA);var kT=kU();kO.onFinish=e=>kZ(e,kT);var kN=[];kO.setTimeout=(e,t)=>{let n=kO.now()+t,r=()=>{let e=kN.findIndex(e=>e.cancel==r);~e&&kN.splice(e,1),kz-=~e?1:0},i={time:n,handler:e,cancel:r};return kN.splice(kR(n),0,i),kz+=1,kI(),i};var kR=e=>~(~kN.findIndex(t=>t.time>e)||~kN.length);kO.cancel=e=>{kP.delete(e),kA.delete(e),kT.delete(e),kS.delete(e),kM.delete(e)},kO.sync=e=>{kF=!0,kO.batchedUpdates(e),kF=!1},kO.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,kO.onStart(n)}return r.handler=e,r.cancel=()=>{kP.delete(n),t=null},r};var kD="undefined"!=typeof window?window.requestAnimationFrame:()=>{};kO.use=e=>kD=e,kO.now="undefined"!=typeof performance?()=>performance.now():Date.now,kO.batchedUpdates=e=>e(),kO.catch=console.error,kO.frameLoop="always",kO.advance=()=>{"demand"!==kO.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):kV()};var kL=-1,kz=0,kF=!1;function kZ(e,t){kF?(t.delete(e),e(0)):(t.add(e),kI())}function kI(){kL<0&&(kL=0,"demand"!==kO.frameLoop&&kD(kB))}function kB(){~kL&&(kD(kB),kO.batchedUpdates(kV))}function kV(){let e=kL,t=kR(kL=kO.now());if(t&&(kH(kN.splice(0,t),e=>e.handler()),kz-=t),!kz){kL=-1;return}kP.flush(),kS.flush(e?Math.min(64,kL-e):16.667),kA.flush(),kM.flush(),kT.flush()}function kU(){let e=new Set,t=e;return{add(n){kz+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(kz-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,kz-=t.size,kH(t,t=>t(n)&&e.add(t)),kz+=e.size,t=e)}}}function kH(e,t){e.forEach(e=>{try{t(e)}catch(e){kO.catch(e)}})}function kW(){}var k$=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),kq={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 kK(e,t){if(kq.arr(e)){if(!kq.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function kG(e,t,n){if(kq.arr(e)){for(let r=0;rkq.und(e)?[]:kq.arr(e)?e:[e];function kJ(e,t){if(e.size){let n=Array.from(e);e.clear(),kY(n,t)}}var kQ=(e,...t)=>kJ(e,e=>e(...t)),k0=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),k1=null,k2=!1,k4=kW,k3=e=>{e.to&&(H=e.to),e.now&&(kO.now=e.now),void 0!==e.colors&&(k1=e.colors),null!=e.skipAnimation&&(k2=e.skipAnimation),e.createStringInterpolator&&(U=e.createStringInterpolator),e.requestAnimationFrame&&kO.use(e.requestAnimationFrame),e.batchedUpdates&&(kO.batchedUpdates=e.batchedUpdates),e.willAdvance&&(k4=e.willAdvance),e.frameLoop&&(kO.frameLoop=e.frameLoop)},k5=new Set,k6=[],k8=[],k7=0,k9={get idle(){return!k5.size&&!k6.length},start(e){k7>e.priority?(k5.add(e),kO.onStart(Ee)):(Et(e),kO(Er))},advance:Er,sort(e){if(k7)kO.onFrame(()=>k9.sort(e));else{let t=k6.indexOf(e);~t&&(k6.splice(t,1),En(e))}},clear(){k6=[],k5.clear()}};function Ee(){k5.forEach(Et),k5.clear(),kO(Er)}function Et(e){k6.includes(e)||En(e)}function En(e){k6.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(k6,t=>t.priority>e.priority),0,e)}function Er(e){let t=k8;for(let n=0;n0}var Ei="[-+]?\\d*\\.?\\d+",Ea=Ei+"%";function Eo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Es=RegExp("rgb"+Eo(Ei,Ei,Ei)),El=RegExp("rgba"+Eo(Ei,Ei,Ei,Ei)),Eu=RegExp("hsl"+Eo(Ei,Ea,Ea)),Ec=RegExp("hsla"+Eo(Ei,Ea,Ea,Ei)),Ed=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ef=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eh=/^#([0-9a-fA-F]{6})$/,Ep=/^#([0-9a-fA-F]{8})$/;function Em(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 Eg(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*Em(i,r,e+1/3))<<24|Math.round(255*Em(i,r,e))<<16|Math.round(255*Em(i,r,e-1/3))<<8}function Ev(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Ey(e){return(parseFloat(e)%360+360)%360/360}function Eb(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ex(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ew(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Eh.exec(e))?parseInt(t[1]+"ff",16)>>>0:k1&&void 0!==k1[e]?k1[e]:(t=Es.exec(e))?(Ev(t[1])<<24|Ev(t[2])<<16|Ev(t[3])<<8|255)>>>0:(t=El.exec(e))?(Ev(t[1])<<24|Ev(t[2])<<16|Ev(t[3])<<8|Eb(t[4]))>>>0:(t=Ed.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ep.exec(e))?parseInt(t[1],16)>>>0:(t=Ef.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Eu.exec(e))?(255|Eg(Ey(t[1]),Ex(t[2]),Ex(t[3])))>>>0:(t=Ec.exec(e))?(Eg(Ey(t[1]),Ex(t[2]),Ex(t[3]))|Eb(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 Ej=(e,t,n)=>{if(kq.fun(e))return e;if(kq.arr(e))return Ej({range:e,output:t,extrapolate:n});if(kq.str(e.output[0]))return U(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=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],s,a,o,e.map)}},Ek=Symbol.for("FluidValue.get"),EE=Symbol.for("FluidValue.observers"),E_=e=>!!(e&&e[Ek]),EC=e=>e&&e[Ek]?e[Ek]():e,ES=e=>e[EE]||null;function EO(e,t){let n=e[EE];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var EM=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");EP(this,e)}},EP=(e,t)=>EN(e,Ek,t);function EA(e,t){if(e[Ek]){let n=e[EE];n||EN(e,EE,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ET(e,t){let n=e[EE];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[EE]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var EN=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ER=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ED=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,EL=RegExp(`(${ER.source})(%|[a-z]+)`,"i"),Ez=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,EF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,EZ=e=>{let[t,n]=EI(e);if(!t||k0())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&&EF.test(n))return EZ(n);else if(n)return n;return e},EI=e=>{let t=EF.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},EB=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,EV=e=>{W||(W=k1?RegExp(`(${Object.keys(k1).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>EC(e).replace(EF,EZ).replace(ED,Ew).replace(W,Ew)),n=t.map(e=>e.match(ER).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=>Ej({...e,output:t}));return e=>{let n=!EL.test(t[0])&&t.find(e=>EL.test(e))?.replace(ER,""),i=0;return t[0].replace(ER,()=>`${r[i++](e)}${n||""}`).replace(Ez,EB)}},EU="react-spring: ",EH=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${EU}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},EW=EH(console.warn),E$=EH(console.warn);function Eq(e){return kq.str(e)&&("#"==e[0]||/\d/.test(e)||!k0()&&EF.test(e)||e in(k1||{}))}var EK=k0()?el.useEffect:el.useLayoutEffect,EY=()=>{let e=(0,el.useRef)(!1);return EK(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function EG(){let e=(0,el.useState)()[1],t=EY();return()=>{t.current&&e(Math.random())}}var EX=e=>(0,el.useEffect)(e,EJ),EJ=[];function EQ(e){let t=(0,el.useRef)();return(0,el.useEffect)(()=>{t.current=e}),t.current}var E0=Symbol.for("Animated:node"),E1=e=>!!e&&e[E0]===e,E2=e=>e&&e[E0],E4=(e,t)=>k$(e,E0,t),E3=e=>e&&e[E0]&&e[E0].getPayload(),E5=class{constructor(){E4(this,this)}getPayload(){return this.payload||[]}},E6=class extends E5{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,kq.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new E6(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return kq.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,kq.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E8=class extends E6{constructor(e){super(0),this._string=null,this._toString=Ej({output:[e,e]})}static create(e){return new E8(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(kq.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=Ej({output:[this.getValue(),e]})),this._value=0,super.reset()}},E7={dependencies:null},E9=class extends E5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return kG(this.source,(n,r)=>{E1(n)?t[r]=n.getValue(e):E_(n)?t[r]=EC(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&kY(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return kG(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){E7.dependencies&&E_(e)&&E7.dependencies.add(e);let t=E3(e);t&&kY(t,e=>this.add(e))}},_e=class extends E9{constructor(e){super(e)}static create(e){return new _e(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(_t)),!0)}};function _t(e){return(Eq(e)?E8:E6).create(e)}function _n(e){let t=E2(e);return t?t.constructor:kq.arr(e)?_e:Eq(e)?E8:E6}var _r=(e,t)=>{let n=!kq.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,el.forwardRef)((r,i)=>{let a=(0,el.useRef)(null),o=n&&(0,el.useCallback)(e=>{a.current=(i&&(kq.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return E7.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new E9(e),E7.dependencies=null,[e,n]}(r,t),u=EG(),c=()=>{let e=a.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new _i(c,l),f=(0,el.useRef)();EK(()=>(f.current=d,kY(l,e=>EA(e,d)),()=>{f.current&&(kY(f.current.deps,e=>ET(e,f.current)),kO.cancel(f.current.update))})),(0,el.useEffect)(c,[]),EX(()=>()=>{let e=f.current;kY(e.deps,t=>ET(t,e))});let h=t.getComponentProps(s.getValue());return el.createElement(e,{...h,ref:o})})},_i=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&kO.write(this.update)}},_a=Symbol.for("AnimatedComponent"),_o=e=>kq.str(e)?e:e&&kq.str(e.displayName)?e.displayName:kq.fun(e)&&e.name||null;function _s(e,...t){return kq.fun(e)?e(...t):e}var _l=(e,t)=>!0===e||!!(t&&e&&(kq.fun(e)?e(t):kX(e).includes(t))),_u=(e,t)=>kq.obj(e)?t&&e[t]:e,_c=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,_d=e=>e,_f=(e,t=_d)=>{let n=_h;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);kq.und(n)||(r[i]=n)}return r},_h=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_p={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 _m(e){let t=function(e){let t={},n=0;if(kG(e,(e,r)=>{!_p[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return kG(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function _g(e){return e=EC(e),kq.arr(e)?e.map(_g):Eq(e)?kC.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _v(e){for(let t in e)return!0;return!1}function _y(e){return kq.fun(e)||kq.arr(e)&&kq.obj(e[0])}function _b(e,t){e.ref?.delete(e),t?.delete(e)}function _x(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var _w={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},_j=class{constructor(){this.velocity=0,Object.assign(this,_w)}};function _k(e,t){if(kq.und(t.decay)){let n=!kq.und(t.tension)||!kq.und(t.friction);!n&&kq.und(t.frequency)&&kq.und(t.damping)&&kq.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var _E=[],__=class{constructor(){this.changed=!1,this.values=_E,this.toValues=null,this.fromValues=_E,this.config=new _j,this.immediate=!1}};function _C(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u;let c=_l(n.cancel??r?.cancel,t);if(c)h();else{kq.und(n.pause)||(i.paused=_l(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||_l(e,t)),l=_s(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(),l=u.time-kO.now()}function f(){l>0&&!kC.skipAnimation?(i.delayed=!0,u=kO.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var _S=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?_P(e.get()):t.every(e=>e.noop)?_O(e.get()):_M(e.get(),t.every(e=>e.finished)),_O=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),_M=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),_P=e=>({value:e,cancelled:!0,finished:!1});function _A(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=_f(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)&&_P(r)||i!==n.asyncId&&_M(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let a=new _N,o=new _R;return(async()=>{if(kC.skipAnimation)throw _T(n),o.result=_M(r,!1),c(o),o;p(a);let s=kq.obj(e)?{...e}:{...t,to:e};s.parentId=i,kG(f,(e,t)=>{kq.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(kC.skipAnimation)return _T(n),_M(r,!1);try{let t;t=kq.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=_M(r.get(),!0,!1)}catch(e){if(e instanceof _N)d=e.result;else if(e instanceof _R)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return kq.fun(o)&&kO.batchedUpdates(()=>{o(d,r,r.item)}),d})():l}function _T(e,t){kJ(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var _N=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.")}},_R=class extends Error{constructor(){super("SkipAnimationSignal")}},_D=e=>e instanceof _z,_L=1,_z=class extends EM{constructor(){super(...arguments),this.id=_L++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=E2(this);return e&&e.getValue()}to(...e){return kC.to(this,e)}interpolate(...e){return EW(`${EU}The "interpolate" function is deprecated in v9 (use "to" instead)`),kC.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){EO(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||k9.sort(this),EO(this,{type:"priority",parent:this,priority:e})}},_F=Symbol.for("SpringPhase"),_Z=e=>(1&e[_F])>0,_I=e=>(2&e[_F])>0,_B=e=>(4&e[_F])>0,_V=(e,t)=>t?e[_F]|=3:e[_F]&=-3,_U=(e,t)=>t?e[_F]|=4:e[_F]&=-5,_H=class extends _z{constructor(e,t){if(super(),this.animation=new __,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,!kq.und(e)||!kq.und(t)){let n=kq.obj(e)?{...e}:{...t,from:e};kq.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(_I(this)||this._state.asyncTo)||_B(this)}get goal(){return EC(this.animation.to)}get velocity(){let e=E2(this);return e instanceof E6?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return _Z(this)}get isAnimating(){return _I(this)}get isPaused(){return _B(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=E3(r.to);!o&&E_(r.to)&&(i=kX(EC(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==E8?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=kq.arr(a.velocity)?a.velocity[l]:a.velocity,f=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(kq.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(s.lastPosition-d)<=f,t=o*r}else{t=null==s.lastVelocity?o:s.lastVelocity;let n=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!kq.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*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,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(a.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+a.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=E2(this),l=s.getValue();if(t){let e=EC(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return kO.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(_I(this)){let{to:e,config:t}=this.animation;kO.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 kq.und(e)?(n=this.queue||[],this.queue=[]):n=[kq.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>_S(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),_T(this._state,e&&this._lastCallId),kO.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=kq.obj(n)?n[t]:n)||_y(n))&&(n=void 0),null==(r=kq.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return _Z(this)||(e.reverse&&([n,r]=[r,n]),r=EC(r),kq.und(r)?E2(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_f(e,(e,t)=>/^on/.test(t)?_u(e,n):e)),_G(this,e,"onProps"),_X(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 _C(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{_B(this)||(_U(this,!0),kQ(a.pauseQueue),_X(this,"onPause",_M(this,_W(this,this.animation.to)),this))},resume:()=>{_B(this)&&(_U(this,!1),_I(this)&&this._resume(),kQ(a.resumeQueue),_X(this,"onResume",_M(this,_W(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=_$(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(_P(this));let r=!kq.und(e.to),i=!kq.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(_P(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||kq.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!kK(d,u);f&&(s.from=d),d=EC(d);let h=!kK(c,l);h&&this._focus(c);let p=_y(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(_k(n={...n},t),t={...n,...t}),_k(e,t),Object.assign(e,t),_w)null==e[r]&&(e[r]=_w[r]);let{frequency:r,damping:i}=e,{mass:a}=e;kq.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,_s(t.config,a),t.config!==o.config?_s(o.config,a):void 0);let y=E2(this);if(!y||kq.und(c))return n(_M(this,!0));let b=kq.und(t.reset)?i&&!t.default:!kq.und(d)&&_l(t.reset,a),x=b?d:this.get(),w=_g(c),j=kq.num(w)||kq.arr(w)||Eq(w),k=!p&&(!j||_l(o.immediate||t.immediate,a));if(h){let e=_n(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,_=E_(c),C=!1;if(!_){let e=b||!_Z(this)&&f;(h||e)&&(_=!(C=kK(_g(x),w))),(kK(s.immediate,k)||k)&&kK(m.decay,g)&&kK(m.velocity,v)||(_=!0)}if(C&&_I(this)&&(s.changed&&!b?_=!0:_||this._stop(l)),!p&&((_||E_(l))&&(s.values=y.getPayload(),s.toValues=E_(c)?null:E==E8?[1]:kX(w)),s.immediate==k||(s.immediate=k,k||b||this._set(l)),_)){let{onRest:e}=s;kY(_Y,e=>_G(this,t,e));let r=_M(this,_W(this,l));kQ(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&kO.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?_s(o.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(_A(t.to,t,this._state,this)):_?this._start():_I(this)&&!h?this._pendingCalls.add(n):n(_O(x))}_focus(e){let t=this.animation;e!==t.to&&(ES(this)&&this._detach(),t.to=e,ES(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;E_(t)&&(EA(t,this),_D(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;E_(e)&&ET(e,this)}_set(e,t=!0){let n=EC(e);if(!kq.und(n)){let e=E2(this);if(!e||!kK(n,e.getValue())){let r=_n(n);e&&e.constructor==r?e.setValue(n):E4(this,r.create(n)),e&&kO.batchedUpdates(()=>{this._onChange(n,t)})}}return E2(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,_X(this,"onStart",_M(this,_W(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),_s(this.animation.onChange,e,this)),_s(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;E2(this).reset(EC(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),_I(this)||(_V(this,!0),_B(this)||this._resume())}_resume(){kC.skipAnimation?this.finish():k9.start(this)}_stop(e,t){if(_I(this)){_V(this,!1);let n=this.animation;kY(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),EO(this,{type:"idle",parent:this});let r=t?_P(this.get()):_M(this.get(),_W(this,e??n.to));kQ(this._pendingCalls,r),n.changed&&(n.changed=!1,_X(this,"onRest",r,this))}}};function _W(e,t){let n=_g(t);return kK(_g(e.get()),n)}function _$(e,t=e.loop,n=e.to){let r=_s(t);if(r){let i=!0!==r&&_m(r),a=(i||e).reverse,o=!i||i.reset;return _q({...e,loop:t,default:!1,pause:void 0,to:!a||_y(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function _q(e){let{to:t,from:n}=e=_m(e),r=new Set;return kq.obj(t)&&_K(t,r),kq.obj(n)&&_K(n,r),e.keys=r.size?Array.from(r):null,e}function _K(e,t){kG(e,(e,n)=>null!=e&&t.add(n))}var _Y=["onStart","onRest","onChange","onPause","onResume"];function _G(e,t,n){e.animation[n]=t[n]!==_c(t,n)?_u(t[n],e.key):void 0}function _X(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var _J=["onStart","onChange","onRest"],_Q=1,_0=class{constructor(e,t){this.id=_Q++,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];kq.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_q(e)),this}start(e){let{queue:t}=this;return(e?t=kX(e).map(_q):this.queue=[],this._flush)?this._flush(this,t):(_8(this,t),_1(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;kY(kX(t),t=>n[t].stop(!!e))}else _T(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(kq.und(e))this.start({pause:!0});else{let t=this.springs;kY(kX(e),e=>t[e].pause())}return this}resume(e){if(kq.und(e))this.start({pause:!1});else{let t=this.springs;kY(kX(e),e=>t[e].resume())}return this}each(e){kG(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,kJ(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&&kJ(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,kJ(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)}kO.onFrame(this._onFrame)}};function _1(e,t){return Promise.all(t.map(t=>_2(e,t))).then(t=>_S(e,t))}async function _2(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=kq.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=kq.arr(i)||kq.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):kY(_J,n=>{let r=t[n];if(kq.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,kQ(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===_c(t,"cancel");(c||h&&d.asyncId)&&f.push(_C(++e._lastAsyncId,{props:t,state:d,actions:{pause:kW,resume:kW,start(t,n){h?(_T(d,e._lastAsyncId),n(_P(e))):(t.onRest=s,n(_A(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=_S(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=_$(t,o,i);if(n)return _8(e,[n]),_2(e,n,!0)}return l&&kO.batchedUpdates(()=>l(p,e,e.item)),p}function _4(e,t){let n={...e.springs};return t&&kY(kX(t),e=>{kq.und(e.keys)&&(e=_q(e)),kq.obj(e.to)||(e={...e,to:void 0}),_6(n,e,e=>_5(e))}),_3(e,n),n}function _3(e,t){kG(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,EA(t,e))})}function _5(e,t){let n=new _H;return n.key=e,t&&EA(n,t),n}function _6(e,t,n){t.keys&&kY(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function _8(e,t){kY(t,t=>{_6(e.springs,t,t=>_5(t,e))})}var _7=({children:e,...t})=>{let n=(0,el.useContext)(_9),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,el.useState)(()=>({inputs:t,result:e()})),r=(0,el.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}=_9;return el.createElement(a,{value:t},e)},_9=(p={},Object.assign(_7,el.createContext(p)),_7.Provider._context=_7,_7.Consumer._context=_7,_7);_7.Provider=_9.Provider,_7.Consumer=_9.Consumer;var Ce=()=>{let e=[],t=function(t){E$(`${EU}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 kY(e,(e,i)=>{if(kq.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 kY(e,e=>e.pause(...arguments)),this},t.resume=function(){return kY(e,e=>e.resume(...arguments)),this},t.set=function(t){kY(e,(e,n)=>{let r=kq.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return kY(e,(e,r)=>{if(kq.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 kY(e,e=>e.stop(...arguments)),this},t.update=function(t){return kY(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return kq.fun(e)?e(n,t):e};return t._getProps=n,t};function Ct(e,t){let n=kq.fun(e),[[r],i]=function(e,t,n){let r=kq.fun(t)&&t;r&&!n&&(n=[]);let i=(0,el.useMemo)(()=>r||3==arguments.length?Ce():void 0,[]),a=(0,el.useRef)(0),o=EG(),s=(0,el.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=_4(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{_3(e,n),s.queue.push(()=>{r(_1(e,t))}),o()}):_1(e,t)}}),[]),l=(0,el.useRef)([...s.ctrls]),u=[],c=EQ(e)||0;function d(e,n){for(let i=e;i{kY(l.current.slice(e,c),e=>{_b(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,el.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>_4(e,u[t])),h=(0,el.useContext)(_7),p=EQ(h),m=h!==p&&_v(h);EK(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],kY(e,e=>e())),kY(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(_x(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),EX(()=>()=>{kY(s.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 Cn(e,t,n){let r=kq.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,el.useMemo)(()=>r||3==arguments.length?Ce():void 0,[]),h=kX(e),p=[],m=(0,el.useRef)(null),g=i?null:m.current;EK(()=>{m.current=p}),EX(()=>(kY(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{kY(m.current,e=>{e.expired&&clearTimeout(e.expirationId),_b(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):Cr++})}return kq.und(n)?e:kq.fun(n)?e.map(n):kX(n)}(h,r?r():t,g),y=i&&m.current||[];EK(()=>kY(y,({ctrl:e,item:t,key:n})=>{_b(e,f),_s(u,t,n)}));let b=[];if(g&&kY(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=v.indexOf(e.key))&&(p[t]=e)}),kY(h,(e,t)=>{p[t]||(p[t]={key:v[t],item:e,phase:"mount",ctrl:new _0},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;kY(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}kq.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let x=-o,w=EG(),j=_f(t),k=new Map,E=(0,el.useRef)(new Map),_=(0,el.useRef)(!1);kY(p,(e,n)=>{let i,a;let u=e.key,f=e.phase,h=r?r():t,p=_s(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=_s(i,e.item,n),!(i=kq.obj(i)?_m(i):{to:i}).config){let t=d||j.config;i.config=_s(t,e.item,n,a)}x+=o;let y={...j,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==a&&kq.und(y.from)){let i=r?r():t,a=kq.und(i.initial)||g?i.from:i.initial;y.from=_s(a,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{_s(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=_s(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(E.current.delete(n),l&&(_.current=!0),w())}}};let C=_4(e.ctrl,y);"leave"===a&&l?E.current.set(e,{phase:a,springs:C,payload:y}):k.set(e,{phase:a,springs:C,payload:y})});let C=(0,el.useContext)(_7),S=EQ(C),O=C!==S&&_v(C);EK(()=>{O&&kY(p,e=>{e.ctrl.start({default:C})})},[C]),kY(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),EK(()=>{kY(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&"enter"==e&&r.start({default:C}),t&&(_x(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let M=e=>el.createElement(el.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?el.createElement(i.type,{...i.props,key:kq.str(t.key)||kq.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var Cr=1,Ci=class extends _z{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ej(...t);let n=this._get();E4(this,_n(n).create(n))}advance(e){let t=this._get();kK(t,this.get())||(E2(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Co(this._active)&&Cs(this)}_get(){let e=kq.arr(this.source)?this.source.map(EC):kX(EC(this.source));return this.calc(...e)}_start(){this.idle&&!Co(this._active)&&(this.idle=!1,kY(E3(this),e=>{e.done=!1}),kC.skipAnimation?(kO.batchedUpdates(()=>this.advance()),Cs(this)):k9.start(this))}_attach(){let e=1;kY(kX(this.source),t=>{E_(t)&&EA(t,this),_D(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){kY(kX(this.source),e=>{E_(e)&&ET(e,this)}),this._active.clear(),Cs(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=kX(this.source).reduce((e,t)=>Math.max(e,(_D(t)?t.priority:0)+1),0))}};function Ca(e){return!1!==e.idle}function Co(e){return!e.size||Array.from(e).every(Ca)}function Cs(e){e.idle||(e.idle=!0,kY(E3(e),e=>{e.done=!0}),EO(e,{type:"idle",parent:e}))}var Cl=(e,...t)=>new Ci(e,t);kC.assign({createStringInterpolator:EV,to:(e,t)=>new Ci(e,t)}),k9.advance;var Cu=/^--/,Cc={},Cd={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},Cf=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Ch=["Webkit","Ms","Moz","O"];Cd=Object.keys(Cd).reduce((e,t)=>(Ch.forEach(n=>e[Cf(n,t)]=e[t]),e),Cd);var Cp=/^(matrix|translate|scale|rotate|skew)/,Cm=/^(translate)/,Cg=/^(rotate|skew)/,Cv=(e,t)=>kq.num(e)&&0!==e?e+t:e,Cy=(e,t)=>kq.arr(e)?e.every(e=>Cy(e,t)):kq.num(e)?e===t:parseFloat(e)===t,Cb=class extends E9{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=>Cv(e,"px")).join(",")})`,Cy(e,0)])),kG(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(Cp.test(t)){if(delete r[t],kq.und(e))return;let n=Cm.test(t)?"px":Cg.test(t)?"deg":"";i.push(kX(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Cv(i,n)})`,Cy(i,0)]:e=>[`${t}(${e.map(e=>Cv(e,n)).join(",")})`,Cy(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new Cx(i,a)),super(r)}},Cx=class extends EM{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 kY(this.inputs,(n,r)=>{let i=EC(n[0]),[a,o]=this.transforms[r](kq.arr(i)?i:n.map(EC));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&kY(this.inputs,e=>kY(e,e=>E_(e)&&EA(e,this)))}observerRemoved(e){0==e&&kY(this.inputs,e=>kY(e,e=>E_(e)&&ET(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),EO(this,e)}};kC.assign({batchedUpdates:ey.unstable_batchedUpdates,createStringInterpolator:EV,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 Cw=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new E9(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=_o(e)||"Anonymous";return(e=kq.str(e)?a[e]||(a[e]=_r(e,i)):e[_a]||(e[_a]=_r(e,i))).displayName=`Animated(${t})`,e};return kG(e,(t,n)=>{kq.arr(e)&&(n=_o(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:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:Cc[t]||(Cc[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||Cu.test(t)||Cd.hasOwnProperty(t)&&Cd[t]?(""+d).trim():d+"px";Cu.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!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new Cb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,Cj=n(23442),Ck=(0,el.createContext)({});function CE(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,a=e.children,o=(0,el.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return el.createElement(Ck.Provider,{value:o},a)}function C_(){return(C_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,CA),p=(0,el.useContext)(CO)||{},m=p.innerHeight,g=p.innerWidth,v=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,el.useMemo)(function(){return y?CM(y):0},[y]),j=(0,el.useMemo)(function(){return b?CM(b):0},[b]);if((!s||!l)&&!o)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==o?null:null==x?void 0:x.get(o),E=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!b||!g||!m||!E||!_||!v)return null;var C=(null!=(t=(0,x5.Z)(y(E(a))))?t:NaN)+w/2,S=(null!=(n=(0,x5.Z)(b(_(a))))?n:NaN)+j/2,O=C+c+16>v.left+g?-c:c,M=S+f+16>v.top+m?-f:f;return CP(C)&&CP(S)?el.createElement(r,CT({width:g,height:m},h,{x:C,y:S,dx:O,dy:M}),i):null}CN.propTypes={dataKey:xJ().string,xAccessor:xJ().func,yAccessor:xJ().func};var CR=["x","y","AnnotationComponent"],CD=["editable"];function CL(){return(CL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function CF(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.AnnotationComponent,o=Cz(e,CR),s=(0,el.useRef)({x:n,y:i}),l=Ct({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,el.useEffect)(function(){s.current={x:n,y:i}},[n,i]),el.createElement(Cw.g,{transform:Cl([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},el.createElement(a,CL({x:n,y:i},o)))}function CZ(e){var t=e.editable,n=Cz(e,CD),r=(0,el.useCallback)(function(e){return el.createElement(CF,CL({AnnotationComponent:t?CS:CE},e))},[t]);return el.createElement(CN,CL({AnnotationComponent:r},n))}CZ.propTypes={editable:xJ().bool};var CI=n(12766),CB=["d","stroke","fill"];function CV(){return(CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,CB),a=(0,el.useRef)(t),o=(0,el.useCallback)(j2()(function(e){a.current=e},50),[]),s=(0,CI.interpolatePath)(a.current,t);o(t);var l=Ct({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=Ct({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return el.createElement(Cw.path,CV({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var CH=n(12935),CW=n(12151);function C$(){return(C$=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function C4(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)=>C2(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 C3=C4(C2);C3.right;let C5=C3.left;function C6(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 s=C4(i).left,l=Number(r.invert(a)),u=s(o,l),c=o[u-1],d=o[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=C5(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,Sl),_=(0,el.useContext)(CO),C=_.colorScale,S=_.theme,O=_.horizontal,M=(0,el.useMemo)(function(){return b?CK(x,b):void 0},[x,b]),P=(0,el.useMemo)(function(){return CK(x,y)},[x,y]),A=(0,el.useMemo)(function(){return j?CK(k,j):void 0},[k,j]),T=(0,el.useMemo)(function(){return CK(k,w)},[k,w]),N=(0,el.useCallback)(function(e){return CP(x(y(e)))&&CP(k(w(e)))},[x,y,k,w]),R=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+l,L=Sr({dataKey:l,enableEvents:void 0===g||g,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[CG,D]}),z=(0,el.useMemo)(function(){var e=CY(O?x:k);return O?{x0:null!=M?M:e,x1:P,y:T}:{x:P,y0:null!=A?A:e,y1:T}},[x,k,O,P,T,M,A]),F=!!(d||c),Z=(0,el.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return el.createElement(el.Fragment,{key:e.key},Ss(Su({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return el.createElement(el.Fragment,null,el.createElement(CH.Z,Su({},z,E,{curve:o,defined:N}),function(e){var t=e.path;return el.createElement(a,Su({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},E,{d:t(s)||""},L))}),(void 0===v||v)&&el.createElement(CW.Z,Su({x:P,y:T,defined:N,curve:o},u),function(e){var t=e.path;return el.createElement(a,Su({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),F&&el.createElement(Sa,{dataKey:l,data:s,xAccessor:y,yAccessor:w,xScale:x,yScale:k,renderGlyphs:Z}))}Sc.propTypes={renderLine:xJ().bool};var Sd=Cq(Sc);function Sf(){return(Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n}function Sb(e,t){return e[t]}function Sx(e){let t=[];return t.key=e,t}Array.prototype.slice;var Sw=n(74322),Sj=n(58543);function Sk(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,l]),d=(0,el.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=Sg([]),t=Sy,n=Sv,r=Sb;function i(i){var a,o,s,l=Array.from(e.apply(this,arguments),Sx),u=l.length,c=-1;for(let e of i)for(o=0,++c;o0&&0===r&&(a?i.xScale=function(e){return e.domain(Sk(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(Sk(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,a,d,o,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function SM(e,t,n){var r,i,a,o,s=e.xScale,l=e.yScale,u=e.point,c=(n?C7:C8)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,Sm.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,Sm.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(a=l((0,Sm.l8)(c.datum)))?a:-1/0)&&u.y>=(null!=(o=l((0,Sm.xf)(c.datum)))?o:1/0)?0:c.distanceY}:null}var SP=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function SA(){return(SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(o,SP)),u=SA({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"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[_,C,g,E,w]),O=(0,el.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?SM(e,r,y):null},[E,y]),M="AREASTACK_EVENT_SOURCE-"+k.join("-"),P=Sr({dataKey:k,enableEvents:void 0===a||a,findNearestDatum:O,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:M,allowedSources:[CG,M]}),A=!!(l||s),T=(0,el.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return el.createElement(el.Fragment,{key:e.key},Ss(SA({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[A,P.onFocus,P.onBlur]);return!k.some(function(e){return null==v.get(e)})&&b&&x&&g?el.createElement("g",{className:"visx-area-stack"},S.map(function(e){return el.createElement(CH.Z,SA({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return el.createElement(n,SA({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),(void 0===p||p)&&S.map(function(e){return el.createElement(Sp.Z,SA({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 el.createElement(n,SA({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),A&&S.map(function(e,t){var n=S[S.length-t-1];return el.createElement(Sa,{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:ST,yScale:ST,renderGlyphs:T})})):null}function SR(){return(SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Sz),c=(0,el.useContext)(CO),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,g=c.height,v=u.orientation,y=(0,el.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]),b=u.tickLabelProps,x=(0,el.useMemo)(function(){return b||y?function(e,t,n){return SF({},null==y?void 0:y.tickLabel,{width:"left"===v||"right"===v?null==p?void 0:p[v]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,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?el.createElement(l,SF({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==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:k})):null}function SI(){return(SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return SU({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var g=o(i(u.datum)),v=(null!=g?g:1/0)+(null!=c?c:1/0),y=v+d,b=l.x>=v&&l.x<=y;return SU({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(v+y)/2)})}(e,k,g)},[k,g]),_="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",C=Sr({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:o,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[CG,_]}),S=(0,el.useMemo)(function(){return b?CY(b):0},[b]),O=(0,el.useMemo)(function(){return x?CY(x):0},[x]),M=j.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var P=CM(k),A=M.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=b(n(e)))?t:NaN)-S:(null!=(i=x(r(e)))?i:NaN)-O},s=g?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(a))?t:0,u=g?function(e){return S+Math.min(0,o(e))}:function(e){return s(e)+l},c=g?function(e){return s(e)+l}:function(e){return O+Math.min(0,o(e))},d=g?function(e){return Math.abs(o(e))}:function(){return P},f=g?function(){return P}: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(!CP(r))return null;var i=c(e);if(!CP(i))return null;var o=d(e);if(!CP(o))return null;var s=f(e);return CP(s)?{key:a+"-"+t,x:r,y:i,width:o,height:s,fill:null!=(n=null==v?void 0:v(e,t))?n:p(a)}:null}).filter(function(e){return e})}});return el.createElement("g",{className:"visx-bar-group"},A.map(function(e){return e&&el.createElement(a,SH({horizontal:g,xScale:b,yScale:x},e,C,{key:e.key}))}))}SW.propTypes={children:xJ().node.isRequired,padding:xJ().number,sortBars:xJ().func};var S$=n(10897),Sq=function(e){return!!(null==e?void 0:e.includes("url("))},SK=function(e){return Sq(e)?"rgba(0,0,0,0.1)":e},SY=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],SG=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function SX(){return(SX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function SQ(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:SK(e.fill),opacity:1}}function S0(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,s=e.radiusLeft,l=SJ(e,SY);return el.createElement(el.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 el.createElement(S$.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:a,bottom:o,left:s},function(e){var t=e.path;return el.createElement(CU,SX({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function S1(e){var t,n,r,i=e.bars,a=e.xScale,o=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,SJ(e,SG)),u=Cn(i,SX({},(n=(t={horizontal:s,scale:s?a:o}).scale,r=!!t.horizontal,(0,el.useMemo)(function(){var e=CY(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:SK(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:SQ,update:SQ,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return el.createElement(el.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,a=e.width,o=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:el.createElement(Cw.rect,SX({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:a,height:o,fill:Sq(t.fill)?t.fill:s,opacity:u},l))}))}function S2(e){return null==e.radius?el.createElement(S1,e):el.createElement(S0,SX({},e,{radius:e.radius}))}function S4(){return(S4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S5),w=(0,el.useContext)(CO),j=w.colorScale,k=w.horizontal,E=w.theme,_=w.innerWidth,C=w.innerHeight,S=(0,el.useMemo)(function(){return CK(v,g)},[v,g]),O=(0,el.useMemo)(function(){return CK(b,y)},[b,y]),M=CM(k?b:v)||(k?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===a?.1:a))),P=(0,el.useMemo)(function(){return v?CY(v):0},[v]),A=(0,el.useMemo)(function(){return b?CY(b):0},[b]),T=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",N=(0,el.useMemo)(function(){var e=k?0:-M/2,t=k?-M/2:0;return s.map(function(n,r){var i,a=S(n)+e;if(!CP(a))return null;var s=O(n)+t;if(!CP(s))return null;var l=k?a-P:s-A;return CP(l)?{key:""+r,x:k?P+Math.min(0,l):a,y:k?s:A+Math.min(0,l),width:k?Math.abs(l):M,height:k?M:Math.abs(l),fill:null!=(i=null==o?void 0:o(n,r))?i:T}:null}).filter(function(e){return e})},[M,T,o,s,S,O,k,P,A]),R="BARSERIES_EVENT_SOURCE-"+l,D=Sr({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[CG,R]});return el.createElement("g",{className:"vx-bar-series"},el.createElement(i,S6({bars:N,horizontal:k,xScale:v,yScale:b},D,x)))}S8.propTypes={barPadding:xJ().number,colorAccessor:xJ().func};var S7=Cq(S8),S9=["colorAccessor"];function Oe(){return(Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S9);return el.createElement(S7,Oe({},n,{colorAccessor:t,BarsComponent:S2}))}var On=n(15590);function Or(){return(Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ou),i=(0,el.useCallback)(function(e){return el.createElement(Ol,Oc({},e,{renderGlyph:n}))},[n]);return el.createElement(So,Oc({},r,{renderGlyphs:i}))}var Of=n(93353),Oh=n(63962),Op=["rows","columns","GridRowsComponent","GridColumnsComponent"];function Om(){return(Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Op),o=(0,el.useContext)(CO),s=o.theme,l=o.xScale,u=o.yScale,c=o.margin,d=o.innerWidth,f=o.innerHeight,h=null==s?void 0:s.gridStyles;return el.createElement(el.Fragment,null,(void 0===t||t)&&u&&null!=d&&el.createElement(r,Om({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},a)),(void 0===n||n)&&l&&null!=f&&el.createElement(i,Om({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:l},a)))}Og.propTypes={rows:xJ().bool,columns:xJ().bool};var Ov=["animationTrajectory"];function Oy(){return(Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ov),r=(0,el.useMemo)(function(){return function(e){return el.createElement(Of.Z,Oy({},e,{animationTrajectory:t}))}},[t]),i=(0,el.useMemo)(function(){return function(e){return el.createElement(Oh.Z,Oy({},e,{animationTrajectory:t}))}},[t]);return el.createElement(Og,Oy({GridRowsComponent:r,GridColumnsComponent:i},n))}var Ox=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function Ow(){return(Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ox),j=(0,el.useContext)(CO),k=j.colorScale,E=j.theme,_=(0,el.useMemo)(function(){return CK(g,m)},[g,m]),C=(0,el.useMemo)(function(){return CK(y,v)},[y,v]),S=(0,el.useCallback)(function(e){return CP(g(m(e)))&&CP(y(v(e)))},[g,m,y,v]),O=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,P=Sr({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[CG,M]}),A=!!(u||l),T=(0,el.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return el.createElement(el.Fragment,{key:e.key},Ss(Ow({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[A,P.onFocus,P.onBlur]);return el.createElement(el.Fragment,null,el.createElement(CW.Z,Ow({x:_,y:C,defined:S,curve:a},w),function(e){var t,n=e.path;return el.createElement(x,Ow({stroke:null!=(t=null==i?void 0:i(s))?t:O,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(o)||""},P))}),A&&el.createElement(Sa,{dataKey:s,data:o,xAccessor:m,yAccessor:v,xScale:g,yScale:y,renderGlyphs:T}))}Oj.propTypes={colorAccessor:xJ().func};var Ok=Cq(Oj);function OE(){return(OE=Object.assign?Object.assign.bind():function(e){for(var t=1;tOO.every(n=>e[n]===t[n]);function OP(e,t){return(OP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var OA=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,OP(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)?ey.createPortal(this.props.children,this.node):null},t}(el.PureComponent);OA.propTypes={zIndex:xJ().oneOfType([xJ().number,xJ().string])};var OT=["detectBounds","zIndex"],ON=["left","top","detectBounds","zIndex"];function OR(){return(OR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var OL=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],Oz=["x","y"];function OF(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 OZ(){return(OZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,el.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,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&&!OM(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?OS()(e,d):e,c?OS()(e,c):e]},[l,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,el.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,el.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,el.useEffect)(()=>{g(),v()},[r,m,p]),(0,el.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())},s,h]}(OD(et,OT)))[0],es=ea[1],eu=ea[2],ec=(0,el.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,a=OD(e,ON),o=null==i?ei:i,s=(null==r?er:r)?wj:wh,l=(void 0===t?0:t)+(es.left||0)+window.scrollX,u=(void 0===n?0:n)+(es.top||0)+window.scrollY;return el.createElement(OA,{zIndex:o},el.createElement(s,OR({left:l,top:u},a)))}},[er,ei,es.left,es.top]),{containerRef:eo,containerBounds:es,forceRefreshBounds:eu,TooltipInPortal:ec}),N=T.containerRef,R=T.TooltipInPortal,D=T.forceRefreshBounds,L=(0,el.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),z=null!=A&&A.tooltipOpen?a(OZ({},A,{colorScale:k})):null,F=(null==A?void 0:A.tooltipOpen)&&null!=z,Z=(0,el.useRef)(!1);(0,el.useEffect)(function(){F&&!Z.current&&D(),Z.current=F},[F,D]);var I=null==A?void 0:A.tooltipLeft,B=null==A?void 0:A.tooltipTop,V=O?CM(O):0,U=M?CM(M):0,H=(0,el.useCallback)(function(e,t){var n,r,i=null==P?void 0:P.get(e),a=null==i?void 0:i.xAccessor,o=null==i?void 0:i.yAccessor;return{left:O&&a?null!=(n=Number(O(a(t)))+V/2)?n:0:void 0,top:M&&o?null!=(r=Number(M(o(t)))+U/2)?r:0:void 0}},[P,V,U,O,M]),W=null==A?void 0:null==(ed=A.tooltipData)?void 0:ed.nearestDatum,$=null!=(ef=null==W?void 0:W.key)?ef:"";if(F&&W&&(g||y)){var q=H($,W.datum),K=q.left,Y=q.top;I=g&&CP(K)?K:I,B=y&&CP(Y)?Y:B}var G=[];if(F&&(void 0!==c&&c||h)){var X=Number(null!=(eE=null==i?void 0:i.radius)?eE:4);if(h)Object.values(null!=(e_=null==A?void 0:null==(eC=A.tooltipData)?void 0:eC.datumByKey)?e_:{}).forEach(function(e){var t,n,r,a=e.key,o=e.datum,s=e.index,l=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=H(a,o),c=u.left,d=u.top;CP(c)&&CP(d)&&G.push({key:a,color:l,datum:o,index:s,size:X,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===a})});else if(W){var J=H($,W.datum),Q=J.left,ee=J.top;if(CP(Q)&&CP(ee)){var et,en,er,ei,ea,eo,es,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,eb,ex,ew,ej,ek,eE,e_,eC,eS,eO,eM,eP,eA,eT,eN=null!=(eS=null!=(eO=null!=(eM=null!=(eP=$&&(null==k?void 0:k($)))?eP:null)?eM:null==E?void 0:null==(eA=E.gridStyles)?void 0:eA.stroke)?eO:null==E?void 0:null==(eT=E.htmlLabel)?void 0:eT.color)?eS:"#222";G.push({key:$,color:eN,datum:W.datum,index:W.index,size:X,x:Q,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return el.createElement(el.Fragment,null,el.createElement("svg",{ref:L,style:OB}),F&&el.createElement(el.Fragment,null,void 0!==p&&p&&el.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:I,top:null==S?void 0:S.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:OI},el.createElement("svg",{width:"1",height:_,overflow:"visible"},el.createElement("line",OZ({x1:0,x2:0,y1:0,y2:_,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"},b)))),void 0!==d&&d&&el.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==S?void 0:S.left,top:B,offsetLeft:0,offsetTop:0,detectBounds:!1,style:OI},el.createElement("svg",{width:C,height:"1",overflow:"visible"},el.createElement("line",OZ({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ev=null!=(ey=null==E?void 0:null==(eb=E.gridStyles)?void 0:eb.stroke)?ey:null==E?void 0:null==(ex=E.htmlLabel)?void 0:ex.color)?ev:"#222"},r)))),G.map(function(e,t){var n=e.x,r=e.y,i=OF(e,Oz);return el.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:OI},el.createElement("svg",{overflow:"visible"},s(OZ({x:0,y:0},i))))}),el.createElement(R,OZ({left:I,top:B,style:OZ({},wf,{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 OW(e){var t=(0,el.useContext)(CX);return null!=t&&t.tooltipOpen?el.createElement(OH,e):null}OV.propTypes={isNearestDatum:xJ().bool.isRequired},OH.propTypes={renderTooltip:xJ().func.isRequired,renderGlyph:xJ().func,snapTooltipToDatumX:xJ().bool,snapTooltipToDatumY:xJ().bool,showVerticalCrosshair:xJ().bool,showHorizontalCrosshair:xJ().bool,showDatumGlyph:xJ().bool,showSeriesGlyphs:xJ().bool},OW.propTypes={renderTooltip:xJ().func.isRequired,renderGlyph:xJ().func,snapTooltipToDatumX:xJ().bool,snapTooltipToDatumY:xJ().bool,showVerticalCrosshair:xJ().bool,showHorizontalCrosshair:xJ().bool,showDatumGlyph:xJ().bool,showSeriesGlyphs:xJ().bool};var O$=n(70390);function Oq(e){var t=e.children,n=(0,el.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 el.createElement(CJ.Provider,{value:n},t)}function OK(){return(OK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,wl);return wu({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[i]),o=(0,el.useCallback)(function(){return i({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[i]),{tooltipOpen:r.tooltipOpen,tooltipLeft:r.tooltipLeft,tooltipTop:r.tooltipTop,tooltipData:r.tooltipData,updateTooltip:i,showTooltip:a,hideTooltip:o}),d=c.tooltipOpen,f=c.tooltipLeft,h=c.tooltipTop,p=c.tooltipData,m=c.updateTooltip,g=c.hideTooltip,v=(0,el.useRef)(null),y=(0,el.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,a=e.distanceX,o=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(CP(a)?a:1/0,2)+Math.pow(CP(o)?o:1/0,2));m(function(e){var a,o,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&CP(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:s})},[v,p,i,s]);var x=C0({source:CG});return(Sn({dataKey:"nearest"===(void 0===f?"nearest":f)?St:Se,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:O7}),v)?null==p||null==i?el.createElement(O$.Z,null,function(t){return el.createElement(O9,O6({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?el.createElement(OY,null,el.createElement(O9,e)):null==b?el.createElement(Oq,null,el.createElement(O9,e)):p>0&&i>0?el.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&el.createElement("rect",O6({x:s.left,y:s.top,width:p-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},x))):null:m&&g?el.createElement(O5,{xScale:m,yScale:g,theme:h,initialDimensions:{width:p,height:i,margin:s},horizontal:a},el.createElement(O9,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function Me(e){return el.createElement(Sd,e)}function Mt(e){return el.createElement(SN,e)}function Mn(){return(Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ml(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,s=e.radiusLeft,l=Ms(e,Mi),u=!!(l.onFocus||l.onBlur);return el.createElement(el.Fragment,null,t.map(function(e){var t=e.key,c=Ms(e,Ma);return null==n?el.createElement("rect",Mo({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):el.createElement(S$.Z,Mo({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:a,bottom:o,left:s},c,l))}))}function Mu(){return(Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Md);return el.createElement(S7,Mf({},n,{colorAccessor:t,BarsComponent:Ml}))};function Mp(){return(Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,es.jsx)(v8,{value:"line",children:"Line"}),(0,es.jsx)(v8,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,es.jsx)(v8,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,es.jsx)(v8,{disabled:p,value:"area",children:"Area"}),(0,es.jsx)(v8,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{weight:"semibold",children:"Stack series offset"}),(0,es.jsxs)(v7,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,es.jsxs)(v8,{disabled:!s,value:"none",children:["None",(0,es.jsx)(y5,{children:"zero-baseline"})]}),(0,es.jsxs)(v8,{disabled:!s,value:"diverging",children:["Diverging",(0,es.jsx)(y5,{children:"non zero-baseline"})]}),(0,es.jsxs)(v8,{disabled:!s,value:"expand",children:["Expand",(0,es.jsx)(y5,{children:"values sum to 1"})]}),(0,es.jsxs)(v8,{disabled:!s,value:"wiggle",children:["Wiggle",(0,es.jsx)(y5,{children:"stream graph"})]})]})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{weight:"semibold",children:"Curve shape"}),(0,es.jsxs)(v7,{value:i,onValueChange:e=>a(e),className:"flex flex-col gap-1",children:[(0,es.jsx)(v8,{disabled:!o,value:"linear",children:"Linear"}),(0,es.jsx)(v8,{disabled:!o,value:"cardinal",children:"Cardinal"}),(0,es.jsx)(v8,{disabled:!o,value:"step",children:"Step"})]})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{weight:"semibold",children:"Axes"}),(0,es.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,es.jsxs)(v7,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,es.jsx)(v8,{value:"bottom",children:"Bottom"}),(0,es.jsx)(v8,{value:"top",children:"Top"})]}),(0,es.jsxs)(v7,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,es.jsx)(v8,{value:"left",children:"Left"}),(0,es.jsx)(v8,{value:"right",children:"Right"})]})]})]})]})})}let ME=(0,el.forwardRef)((e,t)=>{let{className:n}=e;return(0,es.jsxs)("div",{ref:t,className:(0,tl.cx)("flex gap-1 items-center",n),children:[(0,es.jsx)(M_,{}),(0,es.jsx)(M_,{}),(0,es.jsx)(M_,{})]})});function M_(){return(0,es.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 MC(e){let{id:t,height:n,data:r,config:i,actionsLeft:a,isLoading:o,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,el.useState)(!(0,y4.Tb)()&&!n.disableAnimations),{resolvedTheme:a}=(0,xH.F)(),o=(0,el.useMemo)(()=>"dark"===a?kE:kk,[a]),[s,l]=(0,el.useState)("center"),[u,c]=(0,el.useState)([!1,!1]),[d,f]=u,[h,p]=(0,Mj.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,g]=(0,Mj.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[v,y]=(0,el.useState)(!0),[b,x]=(0,el.useState)(!0),[w,j]=(0,el.useState)(!1),[k,E]=(0,el.useState)(!0),[_,C]=(0,el.useState)(!0),[S,O]=(0,Mj.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[M,P]=(0,Mj.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[A,T]=(0,Mj.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,el.useMemo)(()=>n.chartType,[]),R=(0,el.useMemo)(()=>n.curveType,[]),D=(0,el.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(S),z=["barstack","areastack"].includes(S),F=o.xyChartTheme.gridStyles.stroke,[Z,I]=(0,el.useState)(!1),[B,V]=(0,el.useState)("star"),U=(0,el.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:a,onPointerOut:o,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:a,onPointerOut:o,onPointerUp:s};return"star"===B?(0,es.jsx)(kl,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===B?(0,es.jsx)(kd,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===B?(0,es.jsx)(km,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,es.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[B,F]),H=(0,el.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==S&&"bargroup"!==S?[...t,{...e,timestamp:e.timestamp+(0,jY.Nr)(1)}]:t},[S,t]),W=(0,el.useMemo)(()=>{if(H.length<2)return 0;let e=[H[0].timestamp,H[H.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys((0,Mw.Z)(t[0],"timestamp")),[t]),q=(0,el.useMemo)(()=>n.enabledGraph||$,[$,n]),K=(0,el.useMemo)(()=>n.enabledTip||$,[$,n]),Y=(0,el.useMemo)(()=>({x:$.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:$.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[$]);return{id:e,accessors:Y,useAnimatedComponents:r,animationTrajectory:s,config:n,scales:(0,el.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:H,curve:(0,el.useMemo)(()=>"cardinal"===M&&kg.ZP||"step"===M&&wQ.ZP||kv.Z,[M]),chartData:t,numTicks:4,isLine:L,isStack:z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:S,curveType:M,keys:$,enabledGraph:q,enabledTip:K,renderBarGroup:"bargroup"===S,renderBarStack:"barstack"===S,enableTooltipGlyph:Z,renderTooltipGlyph:U,renderAreaSeries:"area"===S,renderAreaStack:"areastack"===S,renderLineSeries:"line"===S,sharedTooltip:_,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:v,showVerticalCrosshair:b,snapTooltipToDatum:!z&&k,stackOffset:A,theme:o,margin:(0,el.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:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:g,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:C,setChartType:O,setCurveType:P,setStackOffset:T,setEnableTooltipGlyph:I,setTooltipGlyphComponent:V,...r?{Annotation:CZ,AreaSeries:Sh,AreaStack:SD,Axis:SB,BarGroup:S3,BarSeries:Ot,BarStack:Oo,GlyphSeries:Od,Grid:Ob,LineSeries:O_,Tooltip:OW,XYChart:O9}:{AreaSeries:Me,AreaStack:Mt,Axis:Mr,BarGroup:Mc,BarSeries:Mh,BarStack:Mm,Grid:Mb,LineSeries:Mx,Tooltip:OW,XYChart:O9}}}(t,r,i),f=(0,es.jsxs)(es.Fragment,{children:[(0,es.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,es.jsx)(Mk,{...d})]}),(0,es.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:a}),(0,es.jsx)(j8,{children:e=>{let{width:t,height:n}=e;return o?(0,es.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,es.jsx)(ME,{className:"scale-150"})}):0===r.length&&l?l:(0,es.jsx)(j9,{...d,width:t,height:n})}})]});return"panel"===u?(0,es.jsx)(n6,{className:"relative p-px",style:{height:n},children:f}):(0,es.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var MS="text/plain",MO=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var MM="undefined"==typeof window?void 0:window,MP="undefined"==typeof globalThis?void 0:globalThis,MA=null!=($=null==MM?void 0:MM.Promise)?$:null==MP?void 0:MP.Promise,MT="undefined"==typeof navigator?void 0:navigator,MN=null==MT?void 0:MT.clipboard;null==(q=null==MN?void 0:MN.read)||q.bind(MN),null==(K=null==MN?void 0:MN.readText)||K.bind(MN);var MR=null==(Y=null==MN?void 0:MN.write)?void 0:Y.bind(MN),MD=null==(G=null==MN?void 0:MN.writeText)?void 0:G.bind(MN),ML=null==MM?void 0:MM.ClipboardItem,Mz=function(){if(!MA)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return MA}();function MF(e,t,n){for(var r in MO("listener called"),e.success=!0,t){var i=t[r],a=n.clipboardData;a.setData(r,i),r===MS&&a.getData(r)!==i&&(MO("setting text/plain failed"),e.success=!1)}n.preventDefault()}function MZ(e){var t={success:!1},n=MF.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function MI(e,t){MB(e);var n=MZ(t);return MV(),n}function MB(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function MV(){var e=document.getSelection();e&&e.removeAllRanges()}function MU(e){var t,n,r,i,a,o,s,l=MS in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==MM?void 0:MM.clipboardData)&&void 0!==(null==MM?void 0:MM.clipboardData.setData)){if(!l)throw Error("No `text/plain` value was specified.");if(function(e){if(!MM.clipboardData)return!1;var t=MM.clipboardData.setData("Text",e);return t&&MO("writeTextIE worked"),t}(e[MS]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return MZ(e)?(MO("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(MO('UA "Edge" => assuming success'),!0):MI(document.body,e)?(MO("copyUsingTempSelection worked"),!0):((o=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),o.textContent="temporary element",document.body.appendChild(o),s=MI(o,e),document.body.removeChild(o),s)?(MO("copyUsingTempElem worked"),!0):(t=e[MS],MO("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(MO("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),MB(i),a=document.execCommand("copy"),MV(),document.body.removeChild(n),!!a&&(MO("copyTextUsingDOM worked"),!0))}function MH(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return Mz.all(n).then(t=>{for(var n={},r=0;rMz.resolve(!0),Mq=Mz.resolve(!1);function MK(e){return new Mz((t,n)=>{try{t(e())}catch(e){n(e)}})}function MY(e){return MK(()=>MD?(MO("Using `navigator.clipboard.writeText()`."),MD(e).catch(MG)):Mz.resolve(MG(e)))}function MG(e){var t;if(!MU(((t={})[MS]=e,t)))throw Error("writeText() failed")}function MX(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function MJ(e){return MH(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),ML?n(new ML(t,i)):r("window.ClipboardItem is not defined")}))}let MQ={data:""},M0=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||MQ,M1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,M2=/\/\*[^]*?\*\/| +/g,M4=/\n+/g,M3=(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]?M3(o,a):a+"{"+M3(o,"k"==a[1]?"":t)+"}":"object"==typeof o?r+=M3(o,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=M3.p?M3.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},M5={},M6=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+M6(e[n]);return t}return e},M8=(e,t,n,r,i)=>{var a;let o=M6(e),s=M5[o]||(M5[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!M5[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=M1.exec(e.replace(M2,""));)t[4]?r.shift():t[3]?(n=t[3].replace(M4," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(M4," ").trim();return r[0]})(e);M5[s]=M3(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let l=n&&M5.g?M5.g:null;return n&&(M5.g=M5[s]),a=M5[s],l?t.data=t.data.replace(l,a):-1===t.data.indexOf(a)&&(t.data=r?a+t.data:t.data+a),s},M7=(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?"":M3(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function M9(e){let t=this||{},n=e.call?e(t.p):e;return M8(n.unshift?n.raw?M7(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,M0(t.target),t.g,t.o,t.k)}M9.bind({g:1});let Pe,Pt,Pn,Pr=M9.bind({k:1});function Pi(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:Pt&&Pt()},s),n.o=/ *go\d+/.test(l),s.className=M9.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let u=e;return e[0]&&(u=s.as||e,delete s.as),Pn&&u[0]&&Pn(s),Pe(u,s)}return t?t(i):i}}var Pa=e=>"function"==typeof e,Po=(e,t)=>Pa(e)?e(t):e,Ps=(i=0,()=>(++i).toString()),Pl=()=>{if(void 0===a&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");a=!e||e.matches}return a},Pu=new Map,Pc=e=>{if(Pu.has(e))return;let t=setTimeout(()=>{Pu.delete(e),Pm({type:4,toastId:e})},1e3);Pu.set(e,t)},Pd=e=>{let t=Pu.get(e);t&&clearTimeout(t)},Pf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&Pd(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return e.toasts.find(e=>e.id===n.id)?Pf(e,{type:1,toast:n}):Pf(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Pc(r):e.toasts.forEach(e=>{Pc(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Ph=[],Pp={toasts:[],pausedAt:void 0},Pm=e=>{Pp=Pf(Pp,e),Ph.forEach(e=>{e(Pp)})},Pg={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Pv=(e={})=>{let[t,n]=(0,el.useState)(Pp);(0,el.useEffect)(()=>(Ph.push(n),()=>{let e=Ph.indexOf(n);e>-1&&Ph.splice(e,1)}),[t]);let r=t.toasts.map(t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Pg[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}});return{...t,toasts:r}},Py=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Ps()}),Pb=e=>(t,n)=>{let r=Py(t,e,n);return Pm({type:2,toast:r}),r.id},Px=(e,t)=>Pb("blank")(e,t);Px.error=Pb("error"),Px.success=Pb("success"),Px.loading=Pb("loading"),Px.custom=Pb("custom"),Px.dismiss=e=>{Pm({type:3,toastId:e})},Px.remove=e=>Pm({type:4,toastId:e}),Px.promise=(e,t,n)=>{let r=Px.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then(e=>(Px.success(Po(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e)).catch(e=>{Px.error(Po(t.error,e),{id:r,...n,...null==n?void 0:n.error})}),e};var Pw=(e,t)=>{Pm({type:1,toast:{id:e,height:t}})},Pj=()=>{Pm({type:5,time:Date.now()})},Pk=e=>{let{toasts:t,pausedAt:n}=Pv(e);(0,el.useEffect)(()=>{if(n)return;let e=Date.now(),r=t.map(t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&Px.dismiss(t.id);return}return setTimeout(()=>Px.dismiss(t.id),n)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[t,n]);let r=(0,el.useCallback)(()=>{n&&Pm({type:6,time:Date.now()})},[n]),i=(0,el.useCallback)((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:a}=n||{},o=t.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=o.findIndex(t=>t.id===e.id),l=o.filter((e,t)=>te.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[t]);return{toasts:t,handlers:{updateHeight:Pw,startPause:Pj,endPause:r,calculateOffset:i}}},PE=Pr` +Defaulting to \`null\`.`));let c=vj(a,u)?a:null,d=vx(c)?s(c,u):void 0;return(0,es.jsx)(vh,{scope:i,value:c,max:u,children:(0,es.jsx)(vu.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":vx(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":vb(c,u),"data-value":c??void 0,"data-max":u,...l,ref:t})})});vm.displayName=vc;var vg="ProgressIndicator",vv=el.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=vp(vg,n);return(0,es.jsx)(vu.div,{"data-state":vb(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});function vy(e,t){return`${Math.round(e/t*100)}%`}function vb(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function vx(e){return"number"==typeof e}function vw(e){return vx(e)&&!isNaN(e)&&e>0}function vj(e,t){return vx(e)&&!isNaN(e)&&e<=t&&e>=0}vv.displayName=vg;let vk=(0,tl.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"}}),vE=el.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:a,max:o=100,...s}=e,l=null!=a?Math.round(a/o*100):null;return(0,es.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,es.jsx)(vm,{...s,ref:t,value:a,max:o,className:vk({variant:r,className:i}),children:(0,es.jsx)(vv,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,es.jsx)(n4,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function v_(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function vC(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function vS(...e){return el.useCallback(vC(...e),e)}function vO(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var vM=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(vT);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(vP,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(vP,{...r,ref:t,children:n})});vM.displayName="Slot";var vP=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?vC(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});vP.displayName="SlotClone";var vA=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function vT(e){return el.isValidElement(e)&&e.type===vA}var vN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?vM:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vR(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var vD=el.createContext(void 0),vL=globalThis?.document?el.useLayoutEffect:()=>{},vz="Radio",[vF,vZ]=vO(vz),[vI,vV]=vF(vz),vB=el.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s="on",onCheck:l,form:u,...c}=e,[d,f]=el.useState(null),h=vS(t,e=>f(e)),p=el.useRef(!1),m=!d||u||!!d.closest("form");return(0,es.jsxs)(vI,{scope:n,checked:i,disabled:o,children:[(0,es.jsx)(vN.button,{type:"button",role:"radio","aria-checked":i,"data-state":v$(i),"data-disabled":o?"":void 0,disabled:o,value:s,...c,ref:h,onClick:v_(e.onClick,e=>{i||l?.(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})}),m&&(0,es.jsx)(vW,{control:d,bubbles:!p.current,name:r,value:s,checked:i,required:a,disabled:o,form:u,style:{transform:"translateX(-100%)"}})]})});vB.displayName=vz;var vU="RadioIndicator",vH=el.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=vV(vU,n);return(0,es.jsx)(eM,{present:r||a.checked,children:(0,es.jsx)(vN.span,{"data-state":v$(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t})})});vH.displayName=vU;var vW=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=el.useRef(null),o=function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),s=function(e){let[t,n]=el.useState(void 0);return vL(()=>{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}(t);return el.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,es.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function v$(e){return e?"checked":"unchecked"}var vq=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],vK="RadioGroup",[vY,vG]=vO(vK,[pF,vZ]),vX=pF(),vJ=vZ(),[vQ,v0]=vY(vK),v1=el.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=vX(n),p=function(e){let t=el.useContext(vD);return e||t||"ltr"}(u),[m,g]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=vR(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=vR(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:a,defaultProp:i,onChange:d});return(0,es.jsx)(vQ,{scope:n,name:r,required:o,disabled:s,value:m,onValueChange:g,children:(0,es.jsx)(pV,{asChild:!0,...h,orientation:l,dir:p,loop:c,children:(0,es.jsx)(vN.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":s?"":void 0,dir:p,...f,ref:t})})})});v1.displayName=vK;var v2="RadioGroupItem",v4=el.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=v0(v2,n),o=a.disabled||r,s=vX(n),l=vJ(n),u=el.useRef(null),c=vS(t,u),d=a.value===i.value,f=el.useRef(!1);return el.useEffect(()=>{let e=e=>{vq.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,es.jsx)(pH,{asChild:!0,...s,focusable:!o,active:d,children:(0,es.jsx)(vB,{disabled:o,required:a.required,checked:d,...l,...i,name:a.name,ref:c,onCheck:()=>a.onValueChange(i.value),onKeyDown:v_(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:v_(i.onFocus,()=>{f.current&&u.current?.click()})})})});v4.displayName=v2;var v3=el.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=vJ(n);return(0,es.jsx)(vH,{...i,...r,ref:t})});v3.displayName="RadioGroupIndicator";let v5=(0,tl.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"}}),v6=(0,tl.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"}}),v8=el.forwardRef((e,t)=>{let{size:n,className:r,children:i,...a}=e;return(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(v4,{...a,className:v6({size:n,className:r}),ref:t,children:(0,es.jsx)(v3,{className:v5({size:n})})}),(0,es.jsx)(n4,{size:"14",className:"relative top-px flex items-center",color:a.disabled?"verySubtle":"subtle",children:i})]})}),v7=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(v1,{...r,className:(0,tl.cx)("flex gap-2",n),ref:t})});function v9(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var ye=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(yr);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(yt,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(yt,{...r,ref:t,children:n})});ye.displayName="Slot";var yt=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});yt.displayName="SlotClone";var yn=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function yr(e){return el.isValidElement(e)&&e.type===yn}var yi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?ye:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),ya=el.createContext(void 0);function yo(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var ys="Tabs",[yl,yu]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ys,[pF]),yc=pF(),[yd,yf]=yl(ys),yh=el.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=function(e){let t=el.useContext(ya);return e||t||"ltr"}(s),[d,f]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=yo(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=yo(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,onChange:i,defaultProp:a});return(0,es.jsx)(yd,{scope:n,baseId:eR(),value:d,onValueChange:f,orientation:o,dir:c,activationMode:l,children:(0,es.jsx)(yi.div,{dir:c,"data-orientation":o,...u,ref:t})})});yh.displayName=ys;var yp="TabsList",ym=el.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=yf(yp,n),o=yc(n);return(0,es.jsx)(pV,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,es.jsx)(yi.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});ym.displayName=yp;var yg="TabsTrigger",yv=el.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=yf(yg,n),s=yc(n),l=yx(o.baseId,r),u=yw(o.baseId,r),c=r===o.value;return(0,es.jsx)(pH,{asChild:!0,...s,focusable:!i,active:c,children:(0,es.jsx)(yi.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...a,ref:t,onMouseDown:v9(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():o.onValueChange(r)}),onKeyDown:v9(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&o.onValueChange(r)}),onFocus:v9(e.onFocus,()=>{let e="manual"!==o.activationMode;c||i||!e||o.onValueChange(r)})})})});yv.displayName=yg;var yy="TabsContent",yb=el.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=yf(yy,n),l=yx(s.baseId,r),u=yw(s.baseId,r),c=r===s.value,d=el.useRef(c);return el.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,es.jsx)(eM,{present:i||c,children:({present:n})=>(0,es.jsx)(yi.div,{"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:n&&a})})});function yx(e,t){return`${e}-trigger-${t}`}function yw(e,t){return`${e}-content-${t}`}yb.displayName=yy;let yj=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(yh,{ref:t,className:(0,tl.cx)("flex flex-col",n),...r})}),yk=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(ym,{ref:t,className:(0,tl.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),yE=el.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:a,...o}=e;return(0,es.jsx)(yv,{ref:t,type:"button",className:(0,tl.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",n2({font:n,size:r,weight:i,ellipsis:!0}),a),...o})}),y_=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(yb,{ref:t,className:(0,tl.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,tl.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",n2(),"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 yC=(0,tl.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"}}),yS=el.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l,...u}=e;return(0,es.jsx)("input",{ref:t,className:yC({variant:n,size:r,state:i,noSpin:a,cursor:o,focus:s,className:l}),...u})});function yO(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 yM(){}function yP(e){return!!(e||"").match(/\d/)}function yA(e){return null==e}function yT(e){return yA(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function yN(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function yR(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 yD(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function yL(e,t){return Array(t+1).join(e)}function yz(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,s=i.length;return o<0?i="0."+yL("0",Math.abs(o))+i:o>=s?i+=yL("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function yF(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,i=yR(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),u=(o.length<=t?"0."+o:l.toFixed(t)).split(".");return(s?"-":"")+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?".":"")+yD(u[1]||"",t,n)}function yZ(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)}}(y=V||(V={})).event="event",y.props="prop";var yI=(b=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}}},w=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return x&&e.length===x.length&&e.every(function(e,t){return e===x[t]})?w:(x=e,w=b.apply(void 0,e))});function yV(e){return Math.max(e.selectionStart,e.selectionEnd)}function yB(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function yU(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 yH(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||_P?M=p:p>e.length-u.length&&(M=p),e=e.substring(0,M),void 0===(r=j?"-"+e:e)&&(r=""),i=RegExp("(-)(.)*(-)"),a=/(-)/.test(r),o=i.test(r),r=r.replace(/-/g,""),a&&!o&&s&&(r="-"+r);var A=(e=((e=r).match(RegExp("(^-)|[0-9]|"+yN(v),"g"))||[]).join("")).indexOf(v),T=yR(e=e.replace(RegExp(yN(v),"g"),function(e,t){return t===A?".":""}),s),N=T.beforeDecimal,R=T.afterDecimal,D=T.addNegation;return f.end-f.start=l.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,el.useMemo)(()=>new Intl.NumberFormat(f).format(1.1)[1],[f]),{groupingSeparator:m,groupingStyle:g}=(0,el.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,es.jsxs)("div",{className:"relative",children:[(0,es.jsx)(yX,{...d,autoComplete:"off",spellCheck:!1,onValueChange:c,lang:f,decimalSeparator:p,thousandsGroupStyle:g,thousandSeparator:m,className:(0,tl.cx)(yC({variant:n,size:r,state:i,focus:s,noSpin:a,cursor:l,className:u}),t?"pr-9":"")}),t&&(0,es.jsx)("div",{className:(0,tl.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,es.jsx)(n4,{size:"12",weight:"medium",color:"subtle",children:t})})]})}var yQ=n(6391),y0=n.n(yQ);function y1(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}function y2(e){let{value:t,placeholder:n=new(y0())(100),decimalsLimit:r=6,allowDecimals:i=!0,disableGroupSeparators:a,onChange:o,size:s="small",units:l,error:u,changed:c,onBlur:d,onFocus:f,...h}=e,p=(0,el.useMemo)(()=>new(y0())(t),[t]),[m,g]=(0,el.useState)(""),v=(0,el.useCallback)(e=>{o&&o(e&&!isNaN(Number(e))?new(y0())(e):void 0)},[o]),y=(0,el.useCallback)(e=>{g(e),v(e)},[g,v]);return(0,el.useEffect)(()=>{p.isEqualTo(m)||g(y1(p,r))},[p]),(0,es.jsx)(yJ,{...h,thousandsGroupStyle:a?"none":void 0,"data-testid":"numberfield",size:s,placeholder:n.isNaN()?"":y1(n,r),units:l,value:"NaN"!==m?m:"",decimalScale:i?r:0,onBlur:e=>{d&&d(e)},onFocus:e=>{f&&f(e)},onValueChange:e=>y(e.value||"")})}var y4=n(463);function y3(e){let{sc:t,placeholder:n=new(y0())(100),decimalsLimitFiat:r=6,decimalsLimitSc:i=6,onChange:a,size:o="medium",units:s="SC",unitsFiatPostfix:l,showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,name:m,...g}=e,v=(0,el.useMemo)(()=>new(y0())(void 0===t?NaN:t),[t]),{settings:y}=(0,y4.Hv)(),b=(0,y4.Nz)(),x=b?b.rate:void 0,[w,j]=(0,el.useState)(),[k,E]=(0,el.useState)(""),[_,C]=(0,el.useState)(""),S=(0,el.useCallback)(e=>{a&&a(e&&!isNaN(Number(e))?new(y0())(e):void 0)},[a]),O=(0,el.useCallback)(e=>{C(y1(e,r))},[C,r]),M=(0,el.useCallback)(e=>{let t=y1(e,i);return E(t),S(t),t},[E,i,S]),P=(0,el.useCallback)(e=>{E(e),w&&S(e)},[w,E,S]),A=(0,el.useCallback)(e=>{O(new(y0())(e).times(x||0))},[O,x]),T=(0,el.useCallback)(e=>{M(new(y0())(e).dividedBy(x||0))},[M,x]),[N,R]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{if(!v.isEqualTo(k)){let e=y1(v,i);E(e),"fiat"!==w&&A(e)}N||R(!0)},[v]),(0,el.useEffect)(()=>{N&&A(k)},[x]),(0,el.useEffect)(()=>{"sc"===w&&A(k)},[k]),(0,el.useEffect)(()=>{"fiat"===w&&T(_)},[_]),(0,es.jsxs)("div",{className:(0,tl.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",g.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",g.readOnly?"pointer-events-none":"",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,es.jsx)(yJ,{...g,name:m,"data-testid":"scInput",size:o,variant:"ghost",focus:"none",placeholder:y1(n,i),units:s,value:"NaN"!==k?k:"",decimalScale:i,allowNegative:!1,onValueChange:e=>{P(e.value||"")},onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)}}),u&&x&&(0,es.jsx)(yJ,{...g,"data-testid":"fiatInput",name:"".concat(m,"-fiat"),size:o,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:y.currency.label+(l||""),decimalScale:i,allowNegative:!1,onValueChange:e=>{C(e.value||"")},placeholder:"".concat(y.currency.prefix).concat(x.times(n).toFixed(r)),prefix:f||y.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)}})]})}function y5(e){let{children:t}=e;return(0,es.jsx)(l7,{content:t,children:(0,es.jsx)("div",{className:"relative items-center inline mx-1",children:(0,es.jsx)(n4,{color:"subtle",children:(0,es.jsx)(ut.RdX,{className:"scale-75"})})})})}function y6(e){let{values:t,options:n,onChange:r}=e;return(0,es.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,es.jsx)(ue,{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 y8(e){let{options:t,onClick:n,onRemove:r}=e;return(0,es.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,es.jsxs)(uM,{"data-testid":"item",children:[(0,es.jsx)(ue,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,es.jsx)(ue,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,es.jsx)(ut.PcV,{})})]},e.value))})}let y7=(0,tl.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"}}),y9=el.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:a,...o}=e;return(0,es.jsxs)("div",{className:y7({size:n,state:r,className:a}),children:[i,(0,es.jsx)("select",{ref:t,...o,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,es.jsx)(ut.Cp0,{className:"pointer-events-none scale-75"})]})}),be=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)("option",{ref:t,...r,className:(0,tl.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),bt=(0,tl.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function bn(e){let{className:t}=e;return(0,es.jsx)("div",{className:bt({className:t})})}let br=(0,tl.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),bi=el.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,es.jsx)("div",{ref:t,className:br({size:n,className:r}),...i})});function ba(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function bo(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}var bs=globalThis?.document?el.useLayoutEffect:()=>{},bl=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(bd);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(bu,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(bu,{...r,ref:t,children:n})});bl.displayName="Slot";var bu=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?ba(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});bu.displayName="SlotClone";var bc=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function bd(e){return el.isValidElement(e)&&e.type===bc}var bf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?bl:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),bh="Switch",[bp,bm]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(bh),[bg,bv]=bp(bh),by=el.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:l="on",onCheckedChange:u,form:c,...d}=e,[f,h]=el.useState(null),p=function(...e){return el.useCallback(ba(...e),e)}(t,e=>h(e)),m=el.useRef(!1),g=!f||c||!!f.closest("form"),[v=!1,y]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=bo(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=bo(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:i,defaultProp:a,onChange:u});return(0,es.jsxs)(bg,{scope:n,checked:v,disabled:s,children:[(0,es.jsx)(bf.button,{type:"button",role:"switch","aria-checked":v,"aria-required":o,"data-state":bj(v),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:p,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,e=>{y(e=>!e),g&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),g&&(0,es.jsx)(bw,{control:f,bubbles:!m.current,name:r,value:l,checked:v,required:o,disabled:s,form:c,style:{transform:"translateX(-100%)"}})]})});by.displayName=bh;var bb="SwitchThumb",bx=el.forwardRef((e,t)=>{let{__scopeSwitch:n,...r}=e,i=bv(bb,n);return(0,es.jsx)(bf.span,{"data-state":bj(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})});bx.displayName=bb;var bw=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=el.useRef(null),o=function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),s=function(e){let[t,n]=el.useState(void 0);return bs(()=>{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}(t);return el.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,es.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function bj(e){return e?"checked":"unchecked"}let bk=(0,tl.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"}}),bE=(0,tl.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"}}),b_=(0,el.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:a,...o}=e;return(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(by,{className:bE({size:n,state:r,className:i}),...o,ref:t,children:(0,es.jsx)(bx,{className:bk({size:n})})}),a&&(0,es.jsx)(n4,{color:o.disabled?"subtle":"contrast",children:a})]})});function bC(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function bS(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function bO(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}var bM=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(bT);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(bP,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(bP,{...r,ref:t,children:n})});bM.displayName="Slot";var bP=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?bO(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});bP.displayName="SlotClone";var bA=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function bT(e){return el.isValidElement(e)&&e.type===bA}var bN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?bM:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),bR="HoverCard",[bD,bL]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(bR,[pr]),bz=pr(),[bF,bZ]=bD(bR),bI=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:a,openDelay:o=700,closeDelay:s=300}=e,l=bz(t),u=el.useRef(0),c=el.useRef(0),d=el.useRef(!1),f=el.useRef(!1),[h=!1,p]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=bS(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=bS(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}({prop:r,defaultProp:i,onChange:a}),m=el.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),o)},[o,p]),g=el.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),v=el.useCallback(()=>p(!1),[p]);return el.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,es.jsx)(bF,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:g,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:f,children:(0,es.jsx)(po,{...l,children:n})})};bI.displayName=bR;var bV="HoverCardTrigger",bB=el.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=bZ(bV,n),a=bz(n);return(0,es.jsx)(pl,{asChild:!0,...a,children:(0,es.jsx)(bN.a,{"data-state":i.open?"open":"closed",...r,ref:t,onPointerEnter:bC(e.onPointerEnter,bG(i.onOpen)),onPointerLeave:bC(e.onPointerLeave,bG(i.onClose)),onFocus:bC(e.onFocus,i.onOpen),onBlur:bC(e.onBlur,i.onClose),onTouchStart:bC(e.onTouchStart,e=>e.preventDefault())})})});bB.displayName=bV;var bU="HoverCardPortal",[bH,bW]=bD(bU,{forceMount:void 0}),b$=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=bZ(bU,t);return(0,es.jsx)(bH,{scope:t,forceMount:n,children:(0,es.jsx)(eM,{present:n||a.open,children:(0,es.jsx)(cL,{asChild:!0,container:i,children:r})})})};b$.displayName=bU;var bq="HoverCardContent",bK=el.forwardRef((e,t)=>{let n=bW(bq,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=bZ(bq,e.__scopeHoverCard);return(0,es.jsx)(eM,{present:r||a.open,children:(0,es.jsx)(bY,{"data-state":a.open?"open":"closed",...i,onPointerEnter:bC(e.onPointerEnter,bG(a.onOpen)),onPointerLeave:bC(e.onPointerLeave,bG(a.onClose)),ref:t})})});bK.displayName=bq;var bY=el.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,...s}=e,l=bZ(bq,n),u=bz(n),c=el.useRef(null),d=function(...e){return el.useCallback(bO(...e),e)}(t,c),[f,h]=el.useState(!1);return el.useEffect(()=>{if(f){let e=document.body;return B=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=B,e.style.webkitUserSelect=B}}},[f]),el.useEffect(()=>{if(c.current){let e=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),el.useEffect(()=>{c.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})(c.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,es.jsx)(cd,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:o,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:bC(a,e=>{e.preventDefault()}),onDismiss:l.onDismiss,children:(0,es.jsx)(pf,{...u,...s,onPointerDown:bC(s.onPointerDown,e=>{e.currentTarget.contains(e.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function bG(e){return t=>"touch"===t.pointerType?void 0:e()}el.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=bz(n);return(0,es.jsx)(pm,{...i,...r,ref:t})}).displayName="HoverCardArrow";let bX=(0,tl.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"]),bJ=(0,tl.cx)(n5(),"max-w-sm","py-0.5","px-1"),bQ={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},b0=el.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:a}=e,{className:o,...s}=a||{},{open:l,onOpenChange:u}=l6({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,es.jsxs)(bI,{open:l,onOpenChange:u,...i,children:[n&&(0,es.jsx)(bB,{asChild:!0,children:n}),(0,es.jsx)(rM,{children:l?(0,es.jsx)(b$,{forceMount:!0,children:(0,es.jsx)(bK,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,es.jsx)(l5.div,{variants:bQ,initial:"init",animate:"show",exit:"exit",className:bX(),children:(0,es.jsx)("div",{className:(0,tl.cx)(bJ,o),children:r})})})}):null})]})});function b1(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function b2(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function b4(...e){return el.useCallback(b2(...e),e)}var b3=el.forwardRef((e,t)=>{let{children:n,...r}=e,i=el.Children.toArray(n),a=i.find(b8);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:el.Children.count(e)>1?el.Children.only(null):el.isValidElement(e)?e.props.children:null);return(0,es.jsx)(b5,{...r,ref:t,children:el.isValidElement(e)?el.cloneElement(e,void 0,n):null})}return(0,es.jsx)(b5,{...r,ref:t,children:n})});b3.displayName="Slot";var b5=el.forwardRef((e,t)=>{let{children:n,...r}=e;if(el.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return el.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?b2(t,a):a})}return el.Children.count(n)>1?el.Children.only(null):null});b5.displayName="SlotClone";var b6=({children:e})=>(0,es.jsx)(es.Fragment,{children:e});function b8(e){return el.isValidElement(e)&&e.type===b6}var b7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=el.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?b3:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,es.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function b9(e,t){e&&ey.flushSync(()=>e.dispatchEvent(t))}function xe(e){let t=el.useRef(e);return el.useEffect(()=>{t.current=e}),el.useMemo(()=>(...e)=>t.current?.(...e),[])}function xt({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=el.useState(e),[r]=n,i=el.useRef(r),a=xe(t);return el.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,o=a?e:r,s=xe(n);return[o,el.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}var xn=el.createContext(void 0);function xr(e){let t=e+"CollectionProvider",[n,r]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})}return n=[...n,r],o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e][a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=el.useRef(null),a=el.useRef(new Map).current;return(0,es.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+"CollectionSlot",l=el.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=b4(t,a(s,n).collectionRef);return(0,es.jsx)(b3,{ref:i,children:r})});l.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",d=el.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=el.useRef(null),s=b4(t,o),l=a(u,n);return el.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,es.jsx)(b3,{[c]:"",ref:s,children:r})});return d.displayName=u,[{Provider:o,Slot:l,ItemSlot:d},function(t){let n=a(e+"CollectionConsumer",t);return el.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));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 xi=globalThis?.document?el.useLayoutEffect:()=>{},xa="NavigationMenu",[xo,xs,xl]=xr(xa),[xu,xc,xd]=xr(xa),[xf,xh]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>el.createContext(e));return function(n){let r=n?.[e]||t;return el.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=el.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=el.useMemo(()=>o,Object.values(o));return(0,es.jsx)(s.Provider,{value:l,children:r})};return o.displayName=t+"Provider",[o,function(n,o){let s=o?.[e]?.[a]||i,l=el.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return el.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(xa,[xl,xd]),[xp,xm]=xf(xa),[xg,xv]=xf(xa);el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,delayDuration:o=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...c}=e,[d,f]=el.useState(null),h=b4(t,e=>f(e)),p=function(e){let t=el.useContext(xn);return e||t||"ltr"}(u),m=el.useRef(0),g=el.useRef(0),v=el.useRef(0),[y,b]=el.useState(!0),[x="",w]=xt({prop:r,onChange:e=>{let t=s>0;""!==e?(window.clearTimeout(v.current),t&&b(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>b(!0),s)),i?.(e)},defaultProp:a}),j=el.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>w(""),150)},[w]),k=el.useCallback(e=>{window.clearTimeout(g.current),w(e)},[w]),E=el.useCallback(e=>{x===e?window.clearTimeout(g.current):m.current=window.setTimeout(()=>{window.clearTimeout(g.current),w(e)},o)},[x,w,o]);return el.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(g.current),window.clearTimeout(v.current)},[]),(0,es.jsx)(xb,{scope:n,isRootMenu:!0,value:x,dir:p,orientation:l,rootNavigationMenu:d,onTriggerEnter:e=>{window.clearTimeout(m.current),y?E(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(m.current),j()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:j,onItemSelect:e=>{w(t=>t===e?"":e)},onItemDismiss:()=>w(""),children:(0,es.jsx)(b7.nav,{"aria-label":"Main","data-orientation":l,dir:p,...c,ref:h})})}).displayName=xa;var xy="NavigationMenuSub";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,orientation:o="horizontal",...s}=e,l=xm(xy,n),[u="",c]=xt({prop:r,onChange:i,defaultProp:a});return(0,es.jsx)(xb,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:o,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>c(e),onItemSelect:e=>c(e),onItemDismiss:()=>c(""),children:(0,es.jsx)(b7.div,{"data-orientation":o,...s,ref:t})})}).displayName=xy;var xb=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,children:o,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:d,onContentEnter:f,onContentLeave:h}=e,[p,m]=el.useState(null),[g,v]=el.useState(new Map),[y,b]=el.useState(null);return(0,es.jsx)(xp,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:function(e){let t=el.useRef({value:e,previous:e});return el.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(s),baseId:eR(),dir:i,orientation:a,viewport:p,onViewportChange:m,indicatorTrack:y,onIndicatorTrackChange:b,onTriggerEnter:xe(c),onTriggerLeave:xe(d),onContentEnter:xe(f),onContentLeave:xe(h),onItemSelect:xe(l),onItemDismiss:xe(u),onViewportContentChange:el.useCallback((e,t)=>{v(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:el.useCallback(e=>{v(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,es.jsx)(xo.Provider,{scope:t,children:(0,es.jsx)(xg,{scope:t,items:g,children:o})})})},xx="NavigationMenuList";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xm(xx,n),a=(0,es.jsx)(b7.ul,{"data-orientation":i.orientation,...r,ref:t});return(0,es.jsx)(b7.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,es.jsx)(xo.Slot,{scope:n,children:i.isRootMenu?(0,es.jsx)(xR,{asChild:!0,children:a}):a})})}).displayName=xx;var xw="NavigationMenuItem",[xj,xk]=xf(xw);el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...i}=e,a=eR(),o=el.useRef(null),s=el.useRef(null),l=el.useRef(null),u=el.useRef(()=>{}),c=el.useRef(!1),d=el.useCallback((e="start")=>{if(o.current){u.current();let t=xz(o.current);t.length&&xF("start"===e?t:t.reverse())}},[]),f=el.useCallback(()=>{if(o.current){let e=xz(o.current);e.length&&(u.current=(e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}))}},[]);return(0,es.jsx)(xj,{scope:n,value:r||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:o,focusProxyRef:l,wasEscapeCloseRef:c,onEntryKeyDown:d,onFocusProxyEnter:d,onRootContentClose:f,onContentFocusOutside:f,children:(0,es.jsx)(b7.li,{...i,ref:t})})}).displayName=xw;var xE="NavigationMenuTrigger";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...i}=e,a=xm(xE,e.__scopeNavigationMenu),o=xk(xE,e.__scopeNavigationMenu),s=el.useRef(null),l=b4(s,o.triggerRef,t),u=xV(a.baseId,o.value),c=xB(a.baseId,o.value),d=el.useRef(!1),f=el.useRef(!1),h=o.value===a.value;return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(xo.ItemSlot,{scope:n,value:o.value,children:(0,es.jsx)(xL,{asChild:!0,children:(0,es.jsx)(b7.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":xI(h),"aria-expanded":h,"aria-controls":c,...i,ref:l,onPointerEnter:b1(e.onPointerEnter,()=>{f.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:b1(e.onPointerMove,xU(()=>{r||f.current||o.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(o.value),d.current=!0)})),onPointerLeave:b1(e.onPointerLeave,xU(()=>{r||(a.onTriggerLeave(),d.current=!1)})),onClick:b1(e.onClick,()=>{a.onItemSelect(o.value),f.current=h}),onKeyDown:b1(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];h&&e.key===t&&(o.onEntryKeyDown(),e.preventDefault())})})})}),h&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(u5,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:e=>{let t=o.contentRef.current,n=e.relatedTarget,r=n===s.current,i=t?.contains(n);(r||!i)&&o.onFocusProxyEnter(r?"start":"end")}}),a.viewport&&(0,es.jsx)("span",{"aria-owns":c})]})]})}).displayName=xE;var x_="navigationMenu.linkSelect";el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:i,...a}=e;return(0,es.jsx)(xL,{asChild:!0,children:(0,es.jsx)(b7.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:b1(e.onClick,e=>{let t=e.target,n=new CustomEvent(x_,{bubbles:!0,cancelable:!0});t.addEventListener(x_,e=>i?.(e),{once:!0}),b9(t,n),n.defaultPrevented||e.metaKey||b9(t,new CustomEvent(xP,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var xC="NavigationMenuIndicator";el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=xm(xC,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?ey.createPortal((0,es.jsx)(eM,{present:n||a,children:(0,es.jsx)(xS,{...r,ref:t})}),i.indicatorTrack):null}).displayName=xC;var xS=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xm(xC,n),a=xs(n),[o,s]=el.useState(null),[l,u]=el.useState(null),c="horizontal"===i.orientation,d=!!i.value;el.useEffect(()=>{let e=a(),t=e.find(e=>e.value===i.value)?.ref.current;t&&s(t)},[a,i.value]);let f=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return xZ(o,f),xZ(i.indicatorTrack,f),l?(0,es.jsx)(b7.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation,...r,ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),xO="NavigationMenuContent";el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=xm(xO,e.__scopeNavigationMenu),a=xk(xO,e.__scopeNavigationMenu),o=b4(a.contentRef,t),s=a.value===i.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return i.viewport?(0,es.jsx)(xM,{forceMount:n,...l,ref:o}):(0,es.jsx)(eM,{present:n||s,children:(0,es.jsx)(xA,{"data-state":xI(s),...l,ref:o,onPointerEnter:b1(e.onPointerEnter,i.onContentEnter),onPointerLeave:b1(e.onPointerLeave,xU(i.onContentLeave)),style:{pointerEvents:!s&&i.isRootMenu?"none":void 0,...l.style}})})}).displayName=xO;var xM=el.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=xm(xO,e.__scopeNavigationMenu);return xi(()=>{n(e.value,{ref:t,...e})},[e,t,n]),xi(()=>()=>r(e.value),[e.value,r]),null}),xP="navigationMenu.rootContentDismiss",xA=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:o,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=xm(xO,n),d=el.useRef(null),f=b4(d,t),h=xV(c.baseId,r),p=xB(c.baseId,r),m=xs(n),g=el.useRef(null),{onItemDismiss:v}=c;el.useEffect(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{v(),s(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(xP,t),()=>e.removeEventListener(xP,t)}},[c.isRootMenu,e.value,i,v,s]);let y=el.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,es.jsx)(xR,{asChild:!0,children:(0,es.jsx)(cd,{id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation,...u,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(xP,{bubbles:!0,cancelable:!0});d.current?.dispatchEvent(e)},onFocusOutside:b1(e.onFocusOutside,e=>{l();let t=e.target;c.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:b1(e.onPointerDownOutside,e=>{let t=e.target,n=m().some(e=>e.ref.current?.contains(t)),r=c.isRootMenu&&c.viewport?.contains(t);(n||r||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:b1(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=xz(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);xF(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():a.current?.focus()}}),onEscapeKeyDown:b1(e.onEscapeKeyDown,e=>{o.current=!0})})})}),xT="NavigationMenuViewport";el.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=!!xm(xT,e.__scopeNavigationMenu).value;return(0,es.jsx)(eM,{present:n||i,children:(0,es.jsx)(xN,{...r,ref:t})})}).displayName=xT;var xN=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=xm(xT,n),o=b4(t,a.onViewportChange),s=xv(xO,e.__scopeNavigationMenu),[l,u]=el.useState(null),[c,d]=el.useState(null),f=l?l?.width+"px":void 0,h=l?l?.height+"px":void 0,p=!!a.value,m=p?a.value:a.previousValue;return xZ(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,es.jsx)(b7.div,{"data-state":xI(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:b1(e.onPointerEnter,a.onContentEnter),onPointerLeave:b1(e.onPointerLeave,xU(a.onContentLeave)),children:Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,es.jsx)(eM,{present:n||i,children:(0,es.jsx)(xA,{...r,ref:b2(t,e=>{i&&e&&d(e)})})},e)})})}),xR=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xm("FocusGroup",n);return(0,es.jsx)(xu.Provider,{scope:n,children:(0,es.jsx)(xu.Slot,{scope:n,children:(0,es.jsx)(b7.div,{dir:i.dir,...r,ref:t})})})}),xD=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],xL=el.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=xc(n),a=xm("FocusGroupItem",n);return(0,es.jsx)(xu.ItemSlot,{scope:n,children:(0,es.jsx)(b7.button,{...r,ref:t,onKeyDown:b1(e.onKeyDown,e=>{if(["Home","End",...xD].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),xD.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>xF(t)),e.preventDefault()}})})})});function xz(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 xF(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function xZ(e,t){let n=xe(t);xi(()=>{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])}function xI(e){return e?"open":"closed"}function xV(e,t){return`${e}-trigger-${t}`}function xB(e,t){return`${e}-content-${t}`}function xU(e){return t=>"mouse"===t.pointerType?e(t):void 0}var xH=n(38617);let xW=el.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,es.jsx)(v4,{...r,ref:t,className:(0,tl.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 x$(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:a}=(0,xH.F)();return(0,es.jsxs)(v1,{value:i,tabIndex:r,className:(0,tl.cx)("flex gap-4",t),onValueChange:e=>a(e),children:[(0,es.jsx)(xW,{value:"system",children:(0,es.jsx)(l7,{className:n,sideOffset:16,content:"System",children:(0,es.jsx)(ut.$Iz,{})})}),(0,es.jsx)(xW,{value:"light",children:(0,es.jsx)(l7,{className:n,sideOffset:16,content:"Light",children:(0,es.jsx)(ut.JaG,{})})}),(0,es.jsx)(xW,{value:"dark",children:(0,es.jsx)(l7,{className:n,sideOffset:16,content:"Dark",children:(0,es.jsx)(ut.osk,{})})})]})}let{useDropzone:xq}=n(74424);function xK(e){let{title:t,children:n,rootClassName:r,className:i,message:a,showBorderInactive:o,testId:s,...l}=e,{getRootProps:u,getInputProps:c,isDragActive:d}=xq(l);return(0,es.jsxs)("div",{"data-testid":s,...u(),className:(0,tl.cx)("outline-none",r),children:[(0,es.jsxs)("div",{className:(0,tl.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,es.jsx)("input",{...c()}),a&&(0,es.jsx)(n3,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var xY=n(14582),xG=n(63739),xX=n(13980),xJ=n.n(xX),xQ=n(72779),x0=n.n(xQ),x1=n(47440),x2=n(59309),x4=n(19067),x3=n(71220),x5=n(28142);function x6(e){return"bandwidth"in e?e.bandwidth():0}var x8=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function x7(){return(x7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x8),v=null!=m?m:(0,x3.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+x6(r)/2,b=v.map(function(e,t){var n,a=(null!=(n=(0,x5.Z)(r(e)))?n:0)+y;return{index:t,from:new x4.Z({x:0,y:a}),to:new x4.Z({x:i,y:a})}});return el.createElement(x2.Z,{className:x0()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return el.createElement(x1.default,x7({key:"row-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:h},g))}))}x9.propTypes={tickValues:xJ().array,width:xJ().number.isRequired};var we=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function wt(){return(wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,we),v=null!=p?p:(0,x3.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+x6(r)/2,b=v.map(function(e,t){var n,a=(null!=(n=(0,x5.Z)(r(e)))?n:0)+y;return{index:t,from:new x4.Z({x:a,y:0}),to:new x4.Z({x:a,y:i})}});return el.createElement(x2.Z,{className:x0()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return el.createElement(x1.default,wt({key:"column-line-"+r,from:t,to:n,stroke:o,strokeWidth:l,strokeDasharray:u,style:f},g))}))}wn.propTypes={tickValues:xJ().array,height:xJ().number.isRequired};var wr=n(64183),wi=n(8597);function wa(e){var t=e.id,n=e.width,r=e.height,i=e.children;return el.createElement("defs",null,el.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}wa.propTypes={id:xJ().string.isRequired,width:xJ().number.isRequired,height:xJ().number.isRequired,children:xJ().node.isRequired};var wo={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function ws(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,a=e.strokeWidth,o=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return el.createElement(wa,{id:t,width:n,height:r},!!h&&el.createElement("rect",{className:x0()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return el.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:x0()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case wo.horizontal:return"M 0,"+t/2+" l "+t+",0";case wo.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 wo.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 wo.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:a,strokeDasharray:o,strokeLinecap:l,shapeRendering:c})}))}ws.propTypes={id:xJ().string.isRequired,width:xJ().number.isRequired,height:xJ().number.isRequired,className:xJ().string,background:xJ().string,stroke:xJ().string,strokeWidth:xJ().oneOfType([xJ().number,xJ().string]),strokeDasharray:xJ().oneOfType([xJ().string,xJ().number]),strokeLinecap:xJ().oneOf(["square","butt","round","inherit"]),shapeRendering:xJ().oneOfType([xJ().string,xJ().number]),orientation:xJ().array};var wl=["tooltipOpen"];function wu(){return(wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wc);return el.createElement("div",wd({ref:t,className:x0()("visx-tooltip",n),style:wd({top:null==r||null==l?r:r+l,left:null==i||null==o?i:i+o},void 0!==h&&h&&{position:"absolute"},!(void 0!==f&&f)&&c)},p),d)});function wp(){return(wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wb),g=!1,v=!1;if(u&&l){var y=void 0===r?0:r,b=void 0===f?0:f;if(l.width){var x=y+a+u.width-l.width,w=u.width-y-a;g=x>0&&x>w}else{var j=y+a+u.width-window.innerWidth,k=u.width-y-a;g=j>0&&j>k}if(l.height){var E=b+s+u.height-l.height,_=u.height-b-s;v=E>0&&E>_}else v=b+s+u.height>window.innerHeight;y=g?y-u.width-a:y+a,b=v?b-u.height-s:b+s,t="translate("+(y=Math.round(y))+"px, "+(b=Math.round(b))+"px)"}return el.createElement(wh,wx({ref:p,style:wx({left:0,top:0,transform:t},!(void 0!==h&&h)&&d)},m),el.createElement(wy,{value:{isFlippedVertically:!v,isFlippedHorizontally:!g}},n))}ww.propTypes={nodeRef:xJ().oneOfType([xJ().string,xJ().func,xJ().object])};var wj=((j=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=el.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,wm(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:ey.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():wg,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():wg}},n.render=function(){return el.createElement(ww,wp({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(el.PureComponent)).displayName="withBoundingRects("+(ww.displayName||"")+")",j),wk=n(99985);function wE(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-s):Math.max(e.dy,t.bounds.y0-i);return wN({},t,{isBrushing:!0,extent:wN({},t.extent,{x0:r+l,x1:o+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=wN({},e,{isBrushing:!1,start:wN({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:wN({},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,wR(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,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return el.createElement(wk.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 el.createElement("g",null,h&&el.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:g,onPointerLeave:f?void 0:m,style:wD}),el.createElement("rect",wN({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){s&&s(e)},onPointerMove:function(e){g(e),l&&l(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}(el.Component);function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-a):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-o):Math.max(u,e.bounds.y0-r);return wz({},e,{isBrushing:!0,extent:wz({},e.extent,{x0:n+s,y0:r+c,x1:a+s,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+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},o=n.getExtent(s,a);return wz({},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,s=t.useWindowMoveEvents,l=null!=o&&o.left?o.left:0,u=null!=o&&o.top?o.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-a-u},d=wz({},c);r&&r(c),n.updateBrush(function(t){return wz({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?wC(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 s=null!=o&&o.left?o.left:0,l=null!=o&&o.top?o.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-a-l})}},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 s=(null==a?void 0:a.left)||0,l=(null==a?void 0:a.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return wz({},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=wz({},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,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:a-s,height:e,width:l+e},bottom:{x:r-s,y:o-s,height:e,width:l+e},right:{x:i-s,y:a-s,height:u+e,width:e},left:{x:r-s,y:a-s,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,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(a,o)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(a,o)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(a,o)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=wz({},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,wF(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,s=t.props.height/e.height;r={x:o*a.x0,y:s*a.y0},i={x:o*a.x1,y:s*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,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,g=i.disableDraggingSelection,v=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,x=this.state.brushingType,w=this.handles(),j=this.corners(),k=this.getBrushWidth(),E=this.getBrushHeight(),_=new Set(p);return el.createElement(x2.Z,{className:"visx-brush",top:a,left:o},el.createElement(wk.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===x:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,a=t.dragEnd;return el.createElement(xY.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,wW),v=a,y=s,b=o,x=l;return void 0!==m&&!m||v||y||b||x||(v="0",y="0",b="0",x="1"),el.createElement("defs",null,el.createElement("linearGradient",w$({id:n,x1:v,y1:b,x2:y,y2:x,gradientTransform:h?"rotate("+h+")":p},g),!!t&&t,!t&&el.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&el.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}wq.propTypes={id:xJ().string.isRequired,from:xJ().string,to:xJ().string,x1:xJ().oneOfType([xJ().string,xJ().number]),x2:xJ().oneOfType([xJ().string,xJ().number]),y1:xJ().oneOfType([xJ().string,xJ().number]),y2:xJ().oneOfType([xJ().string,xJ().number]),fromOffset:xJ().oneOfType([xJ().string,xJ().number]),fromOpacity:xJ().oneOfType([xJ().string,xJ().number]),toOffset:xJ().oneOfType([xJ().string,xJ().number]),toOpacity:xJ().oneOfType([xJ().string,xJ().number]),rotate:xJ().oneOfType([xJ().string,xJ().number]),transform:xJ().string,children:xJ().node,vertical:xJ().bool};var wK=n(78307),wY=n(74747);function wG(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 wX=n(35197),wJ=n(55746),wQ=n(45742),w0=n(27266),w1=["id","markerWidth","markerHeight","markerUnits","children"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1);return el.createElement("defs",null,el.createElement("marker",w2({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},o),a))}w4.propTypes={id:xJ().string.isRequired,size:xJ().number,markerWidth:xJ().oneOfType([xJ().string,xJ().number]),markerHeight:xJ().oneOfType([xJ().string,xJ().number]),markerUnits:xJ().string,refX:xJ().oneOfType([xJ().string,xJ().number]),refY:xJ().oneOfType([xJ().string,xJ().number]),strokeWidth:xJ().number,children:xJ().node.isRequired};var w3=["id","size","strokeWidth"];function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w3),s=2*r+a,l=s/2;return el.createElement(w4,w5({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},o),el.createElement("circle",{r:r,cx:l,cy:l}))}var w8=n(64170),w7={top:"top",left:"left",bottom:"bottom"};function w9(){return(w9=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ja),j=null!=g?g:"tickFormat"in m?m.tickFormat():jn.Z,k=f===w7.left,E=f===w7.top,_=E||f===w7.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),S=k||E?-1:1,O=m.range(),M=(void 0===(t=p)&&(t=0),"number"==typeof t?{start:t,end:t}:ji({start:0,end:0},t)),P=jr({x:Number(O[0])+.5-M.start,y:0},_),A=jr({x:Number(O[O.length-1])+.5+M.end,y:0},_),T=(null!=b?b:(0,x3.Z)(m,c)).filter(function(e){return!s||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),N=T.map(function(e){var t=e.value,n=e.index,r=(0,x5.Z)(C(t));return{value:t,index:n,from:jr({x:r,y:0},_),to:jr({x:r,y:y*S},_),formattedValue:j(t,n,T)}});return el.createElement(x2.Z,{className:x0()("visx-axis",r),top:void 0===x?0:x,left:void 0===l?0:l},(void 0===n?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,a=e.hideTicks,o=e.horizontal,s=e.label,l=void 0===s?"":s,u=e.labelClassName,c=e.labelOffset,d=e.labelProps,f=void 0===d?jt:d,h=e.orientation,p=void 0===h?w7.bottom:h,m=e.scale,g=e.stroke,v=e.strokeDasharray,y=e.strokeWidth,b=void 0===y?1:y,x=e.tickClassName,w=e.tickComponent,j=e.tickLineProps,k=e.tickLabelProps,E=void 0===k?function(){return jt}:k,_=e.tickLength,C=e.tickStroke,S=e.tickTransform,O=e.ticks,M=e.ticksComponent,P=O.map(function(e){return E(e.value,e.index,O)}),A=Math.max.apply(Math,[10].concat(P.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return el.createElement(el.Fragment,null,(void 0===M?function(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,a=e.tickComponent,o=e.tickLabelProps,s=e.tickStroke,l=void 0===s?"#222":s,u=e.tickTransform,c=e.ticks,d=e.strokeWidth,f=e.tickLineProps;return c.map(function(e){var s,c=e.value,h=e.index,p=e.from,m=e.to,g=e.formattedValue,v=null!=(s=o[h])?s:{},y=Math.max(10,"number"==typeof v.fontSize&&v.fontSize||0),b=m.y+(n&&r!==w7.top?y:0);return el.createElement(x2.Z,{key:"visx-tick-"+c+"-"+h,className:x0()("visx-axis-tick",i),transform:u},!t&&el.createElement(xG.Z,w9({from:p,to:m,stroke:l,strokeWidth:d,strokeLinecap:"square"},f)),a?a(w9({},v,{x:m.x,y:b,formattedValue:g})):el.createElement(w8.Z,w9({x:m.x,y:b},v),g))})}:M)({hideTicks:a,horizontal:o,orientation:p,scale:m,tickClassName:x,tickComponent:w,tickLabelProps:P,tickStroke:void 0===C?"#222":C,tickTransform:S,ticks:O,strokeWidth:b,tickLineProps:j}),!i&&el.createElement(xG.Z,{className:x0()("visx-axis-line",n),from:t,to:r,stroke:void 0===g?"#222":g,strokeWidth:b,strokeDasharray:v}),l&&el.createElement(w8.Z,je({className:x0()("visx-axis-label",u)},function(e){var t,n,r,i=e.labelOffset,a=e.labelProps,o=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=o===w7.left||o===w7.top?-1:1;if(o===w7.top||o===w7.bottom){var d=o===w7.bottom&&"number"==typeof a.fontSize?a.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(u+i+l+d)}else t=(Number(s[0])+Number(s[s.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:A,tickLength:void 0===_?8:_}),f),l))}:n)(jo({},w,{axisFromPoint:P,axisToPoint:A,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==a&&a,hideZero:s,horizontal:_,numTicks:c,orientation:f,rangePadding:p,scale:m,tickFormat:j,tickLength:y,tickPosition:C,tickSign:S,ticks:N})))}var jl=["axisClassName","labelOffset","tickLabelProps","tickLength"];function ju(){return(ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jl);return el.createElement(js,ju({axisClassName:x0()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:w7.bottom,tickLabelProps:void 0===r?jc:r,tickLength:void 0===i?8:i},a))}var jf=["axisClassName","labelOffset","tickLabelProps","tickLength"];function jh(){return(jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jf);return el.createElement(js,jh({axisClassName:x0()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:w7.left,tickLabelProps:void 0===r?jp:r,tickLength:void 0===i?8:i},a))}let jg=e=>new Date((null==e?void 0:e.timestamp)||0),jv=e=>(null==e?void 0:e.value)||0,jy="var(--colors-hiContrast)",jb={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:jy},jx={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:jy};function jw(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:a,xScale:o,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,es.jsxs)(x2.Z,{left:d||a.left,top:c||a.top,children:[(0,es.jsx)(w6,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,es.jsx)(wq,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,es.jsx)(wJ.Z,{data:t,x:e=>o(jg(e))||0,y:e=>s(jv(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?wQ.ZP:w0.Z}),!l&&(0,es.jsx)(jd,{top:i,scale:o,numTicks:r>520?10:5,stroke:jy,tickStroke:jy,tickLabelProps:()=>jb}),!u&&(0,es.jsx)(jm,{scale:s,numTicks:5,stroke:jy,tickStroke:jy,tickLabelProps:()=>jx}),h]})}let{inherit:jj,current:jk,transparent:jE,black:j_,white:jC,slate:jS,zinc:jO,neutral:jM,stone:jP,red:jA,orange:jT,amber:jN,yellow:jR,lime:jD,green:jL,emerald:jz,teal:jF,cyan:jZ,sky:jI,blue:jV,indigo:jB,violet:jU,purple:jH,fuchsia:jW,pink:j$,rose:jq}=n(6692),jK={inherit:jj,current:jk,transparent:jE,black:j_,white:jC,slate:jS,zinc:jO,neutral:jM,stone:jP,red:jA,orange:jT,amber:jN,yellow:jR,lime:jD,green:jL,emerald:jz,teal:jF,cyan:jZ,sky:jI,blue:jV,indigo:jB,violet:jU,purple:jH,fuchsia:jW,pink:j$,rose:jq,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 jY=n(60381);let jG={top:10,bottom:15,left:10,right:10},jX="brush_pattern",jJ="brush_gradient",jQ=(0,wX.Z)(e=>e(),15),j0=(0,wK.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===k&&(k={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===E&&(E=function(e,t){return el.createElement("div",t,e)});var j1=n(54073),j2=n.n(j1),j4=n(44711),j3=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function j5(){return(j5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j3),d=(0,el.useRef)(null),f=(0,el.useRef)(0),h=(0,el.useState)({width:0,height:0,top:0,left:0}),p=h[0],m=h[1],g=(0,el.useMemo)(function(){var e=Array.isArray(o)?o:[o];return j2()(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,el.useEffect)(function(){var e=new j4.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]),el.createElement("div",j5({style:void 0===s?{width:"100%",height:"100%"}:s,ref:d,className:t},c),n(j5({},p,{ref:d.current,resize:g})))}j8.propTypes={className:xJ().string,debounceTime:xJ().number,enableDebounceLeadingCall:xJ().bool,ignoreDimensions:xJ().oneOfType([xJ().any,xJ().arrayOf(xJ().any)]),children:xJ().func.isRequired};var j7=n(83894);function j9(e){let{id:t,width:n,height:r,accessors:i,useAnimatedComponents:a,animationTrajectory:o,curve:s,data:l,config:u,scales:c,enabledGraph:d,enabledTip:f,isStack:h,todayOffset:p,numTicks:m,renderAreaSeries:g,renderAreaStack:v,renderBarGroup:y,renderBarStack:b,enableTooltipGlyph:x,renderTooltipGlyph:w,renderLineSeries:j,sharedTooltip:k,showHorizontalCrosshair:E,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:S,stackOffset:O,margin:M,theme:P,xAxisOrientation:A,yAxisOrientation:T,AreaSeries:N,AreaStack:R,Axis:D,BarGroup:L,BarSeries:z,BarStack:F,Grid:Z,LineSeries:I,Tooltip:V,XYChart:B}=e;return(0,es.jsxs)(B,{theme:P.xyChartTheme,xScale:c.x,yScale:c.y,height:Math.min(400,r),margin:M,captureEvents:!0,children:[(0,es.jsx)("g",{children:(0,es.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*p,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,es.jsx)(wq,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(u.data).map(e=>{let[n,r]=e,i=r.color;return(0,es.jsxs)(el.Fragment,{children:[(0,es.jsx)(ws,{id:"pattern-".concat(ke(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,es.jsx)(wq,{id:"gradient-".concat(ke(t,n)),from:i,fromOpacity:1,to:i,toOpacity:h?.4:1})]},n)}),(0,es.jsx)(Z,{...kn({key:"grid",useAnimatedComponents:a,animationTrajectory:o}),rows:!1,columns:!0,strokeDasharray:"1,3",numTicks:m}),b&&(0,es.jsx)(F,{offset:u.stackOffset,children:d.map(e=>(0,es.jsx)(z,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>kt(t,e,u)},e))}),y&&(0,es.jsx)(L,{children:d.map(e=>(0,es.jsx)(z,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>kt(t,e,u)},e))}),g&&(0,es.jsx)(es.Fragment,{children:d.map(e=>(0,es.jsx)(N,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:kt(t,e,u),fill:kt(t,e,u),curve:s},e))}),v&&(0,es.jsx)(R,{curve:s,offset:u.stackOffset,renderLine:"wiggle"!==O,children:d.map(e=>(0,es.jsx)(N,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:kt(t,e,u),fill:kt(t,e,u)},e))}),j&&(0,es.jsx)(es.Fragment,{children:d.map(e=>{var t,n;return(0,es.jsx)(I,{dataKey:e,data:l,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=u.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:s},e)})}),(0,es.jsx)(D,{...kn({key:"time-axis",useAnimatedComponents:a,animationTrajectory:o}),orientation:A,numTicks:m,tickFormat:e=>(0,jY.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})}),(0,es.jsx)(D,{...kn({key:"temp-axis",useAnimatedComponents:a,animationTrajectory:o}),label:null==O?"SC":"expand"===O?"Fraction of total":"",orientation:T,numTicks:m,tickLength:12,tickFormat:u.formatTickY,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,fontWeight:"500",fontSize:"8"})}),_&&(0,es.jsx)(V,{showHorizontalCrosshair:E,showVerticalCrosshair:C,snapTooltipToDatumX:S,snapTooltipToDatumY:S,showDatumGlyph:S&&!y,showSeriesGlyphs:k&&!y,renderGlyph:x?w: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,s=k?f:o?[o]:[],l=u.formatTimestamp||(e=>(0,jY.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=u.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),d=(0,j7.Z)(c,"category"),p=u.categories?u.categories.map(e=>[e,d[e]]):Object.entries(d);return(0,es.jsxs)("div",{className:(0,tl.cx)("flex flex-col gap-2 py-1"),children:[(0,es.jsx)(n4,{font:"mono",size:"12",color:"contrast",className:"text-end",children:a?l(i.date(a)):"No date"}),(0,es.jsx)(gn,{color:"panel",className:"w-full"}),(0,es.jsx)("div",{className:(0,tl.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,s=null==u?void 0:u.formatComponent;return(0,es.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,es.jsx)(n4,{weight:"semibold",children:t}),(0,es.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,l;let{key:c}=e,d=a&&i.y[c](a);return(0,es.jsxs)(el.Fragment,{children:[(0,es.jsx)(n4,{color:"accent",style:{color:null===(n=u.data)||void 0===n?void 0:null===(t=n[c])||void 0===t?void 0:t.color},className:(0,tl.cx)(o===c?"underline":""),children:(null===(l=u.data)||void 0===l?void 0:null===(r=l[c])||void 0===r?void 0:r.label)||c}),(0,es.jsx)(n4,{size:"12",style:{textAlign:"end"},className:(0,tl.cx)(o===c?"underline":""),children:null==d||Number.isNaN(d)?"–":s?(0,es.jsx)(s,{value:d}):u.format?u.format(d):d})]},c)}),n.length>1&&h&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(n4,{className:"pt-2",children:"total"}),(0,es.jsx)(n4,{size:"12",weight:"bold",className:"pt-2 text-end",children:s?(0,es.jsx)(s,{value:r}):u.format?u.format(r):r})]})]})]},t)})})]})}})]})}function ke(e,t){return"".concat(e,"-").concat(t)}function kt(e,t,n){var r;let i=ke(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)"}function kn(e){let{key:t,useAnimatedComponents:n,animationTrajectory:r}=e;return n&&r?{key:"".concat(t,"-").concat(r),animationTrajectory:r}:{key:t}}var kr=n(24037),ki=n(86707);function ka(e){var t=e.top,n=e.left,r=e.className,i=e.children;return el.createElement(x2.Z,{className:x0()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}ka.propTypes={top:xJ().number,left:xJ().number,className:xJ().string,children:xJ().node};var ko=["children","className","top","left","size"];function ks(){return(ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ko),s=(0,kr.Z)();return(s.type(ki.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?el.createElement(el.Fragment,null,t({path:s})):el.createElement(ka,{top:r,left:i},el.createElement("path",ks({className:x0()("visx-glyph-star",n),d:s()||""},o)))}kl.propTypes={children:xJ().func,className:xJ().string,top:xJ().number,left:xJ().number,size:xJ().oneOfType([xJ().number,xJ().func])};var ku=["top","left","className"];function kc(){return(kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ku);return el.createElement(ka,{top:void 0===t?0:t,left:void 0===n?0:n},el.createElement("circle",kc({className:x0()("visx-glyph-dot",r)},i)))}kd.propTypes={className:xJ().string,top:xJ().number,left:xJ().number,r:xJ().number,cx:xJ().number,cy:xJ().number};var kf=n(9135),kh=["children","className","top","left","size"];function kp(){return(kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kh),s=(0,kr.Z)();return(s.type(kf.Z),"number"==typeof a?s.size(a):a&&s.size(a),t)?el.createElement(el.Fragment,null,t({path:s})):el.createElement(ka,{top:r,left:i},el.createElement("path",kp({className:x0()("visx-glyph-cross",n),d:s()||""},o)))}km.propTypes={children:xJ().func,className:xJ().string,top:xJ().number,left:xJ().number,size:xJ().oneOfType([xJ().number,xJ().func])};var kg=n(46385),kv=n(20651),ky=["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],kb="#495057";function kx(){return(kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)k_(e,n,{get:t[n],enumerable:!0})})(kC,{assign:()=>k3,colors:()=>k1,createStringInterpolator:()=>U,skipAnimation:()=>k2,to:()=>H,willAdvance:()=>k4});var kS=kU(),kO=e=>kZ(e,kS),kM=kU();kO.write=e=>kZ(e,kM);var kP=kU();kO.onStart=e=>kZ(e,kP);var kA=kU();kO.onFrame=e=>kZ(e,kA);var kT=kU();kO.onFinish=e=>kZ(e,kT);var kN=[];kO.setTimeout=(e,t)=>{let n=kO.now()+t,r=()=>{let e=kN.findIndex(e=>e.cancel==r);~e&&kN.splice(e,1),kz-=~e?1:0},i={time:n,handler:e,cancel:r};return kN.splice(kR(n),0,i),kz+=1,kI(),i};var kR=e=>~(~kN.findIndex(t=>t.time>e)||~kN.length);kO.cancel=e=>{kP.delete(e),kA.delete(e),kT.delete(e),kS.delete(e),kM.delete(e)},kO.sync=e=>{kF=!0,kO.batchedUpdates(e),kF=!1},kO.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,kO.onStart(n)}return r.handler=e,r.cancel=()=>{kP.delete(n),t=null},r};var kD="undefined"!=typeof window?window.requestAnimationFrame:()=>{};kO.use=e=>kD=e,kO.now="undefined"!=typeof performance?()=>performance.now():Date.now,kO.batchedUpdates=e=>e(),kO.catch=console.error,kO.frameLoop="always",kO.advance=()=>{"demand"!==kO.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):kB()};var kL=-1,kz=0,kF=!1;function kZ(e,t){kF?(t.delete(e),e(0)):(t.add(e),kI())}function kI(){kL<0&&(kL=0,"demand"!==kO.frameLoop&&kD(kV))}function kV(){~kL&&(kD(kV),kO.batchedUpdates(kB))}function kB(){let e=kL,t=kR(kL=kO.now());if(t&&(kH(kN.splice(0,t),e=>e.handler()),kz-=t),!kz){kL=-1;return}kP.flush(),kS.flush(e?Math.min(64,kL-e):16.667),kA.flush(),kM.flush(),kT.flush()}function kU(){let e=new Set,t=e;return{add(n){kz+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(kz-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,kz-=t.size,kH(t,t=>t(n)&&e.add(t)),kz+=e.size,t=e)}}}function kH(e,t){e.forEach(e=>{try{t(e)}catch(e){kO.catch(e)}})}function kW(){}var k$=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),kq={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 kK(e,t){if(kq.arr(e)){if(!kq.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function kG(e,t,n){if(kq.arr(e)){for(let r=0;rkq.und(e)?[]:kq.arr(e)?e:[e];function kJ(e,t){if(e.size){let n=Array.from(e);e.clear(),kY(n,t)}}var kQ=(e,...t)=>kJ(e,e=>e(...t)),k0=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),k1=null,k2=!1,k4=kW,k3=e=>{e.to&&(H=e.to),e.now&&(kO.now=e.now),void 0!==e.colors&&(k1=e.colors),null!=e.skipAnimation&&(k2=e.skipAnimation),e.createStringInterpolator&&(U=e.createStringInterpolator),e.requestAnimationFrame&&kO.use(e.requestAnimationFrame),e.batchedUpdates&&(kO.batchedUpdates=e.batchedUpdates),e.willAdvance&&(k4=e.willAdvance),e.frameLoop&&(kO.frameLoop=e.frameLoop)},k5=new Set,k6=[],k8=[],k7=0,k9={get idle(){return!k5.size&&!k6.length},start(e){k7>e.priority?(k5.add(e),kO.onStart(Ee)):(Et(e),kO(Er))},advance:Er,sort(e){if(k7)kO.onFrame(()=>k9.sort(e));else{let t=k6.indexOf(e);~t&&(k6.splice(t,1),En(e))}},clear(){k6=[],k5.clear()}};function Ee(){k5.forEach(Et),k5.clear(),kO(Er)}function Et(e){k6.includes(e)||En(e)}function En(e){k6.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(k6,t=>t.priority>e.priority),0,e)}function Er(e){let t=k8;for(let n=0;n0}var Ei="[-+]?\\d*\\.?\\d+",Ea=Ei+"%";function Eo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Es=RegExp("rgb"+Eo(Ei,Ei,Ei)),El=RegExp("rgba"+Eo(Ei,Ei,Ei,Ei)),Eu=RegExp("hsl"+Eo(Ei,Ea,Ea)),Ec=RegExp("hsla"+Eo(Ei,Ea,Ea,Ei)),Ed=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ef=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eh=/^#([0-9a-fA-F]{6})$/,Ep=/^#([0-9a-fA-F]{8})$/;function Em(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 Eg(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*Em(i,r,e+1/3))<<24|Math.round(255*Em(i,r,e))<<16|Math.round(255*Em(i,r,e-1/3))<<8}function Ev(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function Ey(e){return(parseFloat(e)%360+360)%360/360}function Eb(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ex(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ew(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Eh.exec(e))?parseInt(t[1]+"ff",16)>>>0:k1&&void 0!==k1[e]?k1[e]:(t=Es.exec(e))?(Ev(t[1])<<24|Ev(t[2])<<16|Ev(t[3])<<8|255)>>>0:(t=El.exec(e))?(Ev(t[1])<<24|Ev(t[2])<<16|Ev(t[3])<<8|Eb(t[4]))>>>0:(t=Ed.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ep.exec(e))?parseInt(t[1],16)>>>0:(t=Ef.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Eu.exec(e))?(255|Eg(Ey(t[1]),Ex(t[2]),Ex(t[3])))>>>0:(t=Ec.exec(e))?(Eg(Ey(t[1]),Ex(t[2]),Ex(t[3]))|Eb(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 Ej=(e,t,n)=>{if(kq.fun(e))return e;if(kq.arr(e))return Ej({range:e,output:t,extrapolate:n});if(kq.str(e.output[0]))return U(e);let r=e.output,i=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",o=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=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],s,a,o,e.map)}},Ek=Symbol.for("FluidValue.get"),EE=Symbol.for("FluidValue.observers"),E_=e=>!!(e&&e[Ek]),EC=e=>e&&e[Ek]?e[Ek]():e,ES=e=>e[EE]||null;function EO(e,t){let n=e[EE];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var EM=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");EP(this,e)}},EP=(e,t)=>EN(e,Ek,t);function EA(e,t){if(e[Ek]){let n=e[EE];n||EN(e,EE,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ET(e,t){let n=e[EE];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[EE]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var EN=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ER=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ED=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,EL=RegExp(`(${ER.source})(%|[a-z]+)`,"i"),Ez=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,EF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,EZ=e=>{let[t,n]=EI(e);if(!t||k0())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&&EF.test(n))return EZ(n);else if(n)return n;return e},EI=e=>{let t=EF.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},EV=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,EB=e=>{W||(W=k1?RegExp(`(${Object.keys(k1).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>EC(e).replace(EF,EZ).replace(ED,Ew).replace(W,Ew)),n=t.map(e=>e.match(ER).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=>Ej({...e,output:t}));return e=>{let n=!EL.test(t[0])&&t.find(e=>EL.test(e))?.replace(ER,""),i=0;return t[0].replace(ER,()=>`${r[i++](e)}${n||""}`).replace(Ez,EV)}},EU="react-spring: ",EH=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${EU}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},EW=EH(console.warn),E$=EH(console.warn);function Eq(e){return kq.str(e)&&("#"==e[0]||/\d/.test(e)||!k0()&&EF.test(e)||e in(k1||{}))}var EK=k0()?el.useEffect:el.useLayoutEffect,EY=()=>{let e=(0,el.useRef)(!1);return EK(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function EG(){let e=(0,el.useState)()[1],t=EY();return()=>{t.current&&e(Math.random())}}var EX=e=>(0,el.useEffect)(e,EJ),EJ=[];function EQ(e){let t=(0,el.useRef)();return(0,el.useEffect)(()=>{t.current=e}),t.current}var E0=Symbol.for("Animated:node"),E1=e=>!!e&&e[E0]===e,E2=e=>e&&e[E0],E4=(e,t)=>k$(e,E0,t),E3=e=>e&&e[E0]&&e[E0].getPayload(),E5=class{constructor(){E4(this,this)}getPayload(){return this.payload||[]}},E6=class extends E5{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,kq.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new E6(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return kq.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,kq.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E8=class extends E6{constructor(e){super(0),this._string=null,this._toString=Ej({output:[e,e]})}static create(e){return new E8(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(kq.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=Ej({output:[this.getValue(),e]})),this._value=0,super.reset()}},E7={dependencies:null},E9=class extends E5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return kG(this.source,(n,r)=>{E1(n)?t[r]=n.getValue(e):E_(n)?t[r]=EC(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&kY(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return kG(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){E7.dependencies&&E_(e)&&E7.dependencies.add(e);let t=E3(e);t&&kY(t,e=>this.add(e))}},_e=class extends E9{constructor(e){super(e)}static create(e){return new _e(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(_t)),!0)}};function _t(e){return(Eq(e)?E8:E6).create(e)}function _n(e){let t=E2(e);return t?t.constructor:kq.arr(e)?_e:Eq(e)?E8:E6}var _r=(e,t)=>{let n=!kq.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,el.forwardRef)((r,i)=>{let a=(0,el.useRef)(null),o=n&&(0,el.useCallback)(e=>{a.current=(i&&(kq.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return E7.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new E9(e),E7.dependencies=null,[e,n]}(r,t),u=EG(),c=()=>{let e=a.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new _i(c,l),f=(0,el.useRef)();EK(()=>(f.current=d,kY(l,e=>EA(e,d)),()=>{f.current&&(kY(f.current.deps,e=>ET(e,f.current)),kO.cancel(f.current.update))})),(0,el.useEffect)(c,[]),EX(()=>()=>{let e=f.current;kY(e.deps,t=>ET(t,e))});let h=t.getComponentProps(s.getValue());return el.createElement(e,{...h,ref:o})})},_i=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&kO.write(this.update)}},_a=Symbol.for("AnimatedComponent"),_o=e=>kq.str(e)?e:e&&kq.str(e.displayName)?e.displayName:kq.fun(e)&&e.name||null;function _s(e,...t){return kq.fun(e)?e(...t):e}var _l=(e,t)=>!0===e||!!(t&&e&&(kq.fun(e)?e(t):kX(e).includes(t))),_u=(e,t)=>kq.obj(e)?t&&e[t]:e,_c=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,_d=e=>e,_f=(e,t=_d)=>{let n=_h;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);kq.und(n)||(r[i]=n)}return r},_h=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_p={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 _m(e){let t=function(e){let t={},n=0;if(kG(e,(e,r)=>{!_p[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return kG(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function _g(e){return e=EC(e),kq.arr(e)?e.map(_g):Eq(e)?kC.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _v(e){for(let t in e)return!0;return!1}function _y(e){return kq.fun(e)||kq.arr(e)&&kq.obj(e[0])}function _b(e,t){e.ref?.delete(e),t?.delete(e)}function _x(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var _w={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},_j=class{constructor(){this.velocity=0,Object.assign(this,_w)}};function _k(e,t){if(kq.und(t.decay)){let n=!kq.und(t.tension)||!kq.und(t.friction);!n&&kq.und(t.frequency)&&kq.und(t.damping)&&kq.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var _E=[],__=class{constructor(){this.changed=!1,this.values=_E,this.toValues=null,this.fromValues=_E,this.config=new _j,this.immediate=!1}};function _C(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u;let c=_l(n.cancel??r?.cancel,t);if(c)h();else{kq.und(n.pause)||(i.paused=_l(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||_l(e,t)),l=_s(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(),l=u.time-kO.now()}function f(){l>0&&!kC.skipAnimation?(i.delayed=!0,u=kO.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var _S=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?_P(e.get()):t.every(e=>e.noop)?_O(e.get()):_M(e.get(),t.every(e=>e.finished)),_O=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),_M=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),_P=e=>({value:e,cancelled:!0,finished:!1});function _A(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=_f(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)&&_P(r)||i!==n.asyncId&&_M(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let a=new _N,o=new _R;return(async()=>{if(kC.skipAnimation)throw _T(n),o.result=_M(r,!1),c(o),o;p(a);let s=kq.obj(e)?{...e}:{...t,to:e};s.parentId=i,kG(f,(e,t)=>{kq.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(kC.skipAnimation)return _T(n),_M(r,!1);try{let t;t=kq.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=_M(r.get(),!0,!1)}catch(e){if(e instanceof _N)d=e.result;else if(e instanceof _R)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return kq.fun(o)&&kO.batchedUpdates(()=>{o(d,r,r.item)}),d})():l}function _T(e,t){kJ(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var _N=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.")}},_R=class extends Error{constructor(){super("SkipAnimationSignal")}},_D=e=>e instanceof _z,_L=1,_z=class extends EM{constructor(){super(...arguments),this.id=_L++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=E2(this);return e&&e.getValue()}to(...e){return kC.to(this,e)}interpolate(...e){return EW(`${EU}The "interpolate" function is deprecated in v9 (use "to" instead)`),kC.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){EO(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||k9.sort(this),EO(this,{type:"priority",parent:this,priority:e})}},_F=Symbol.for("SpringPhase"),_Z=e=>(1&e[_F])>0,_I=e=>(2&e[_F])>0,_V=e=>(4&e[_F])>0,_B=(e,t)=>t?e[_F]|=3:e[_F]&=-3,_U=(e,t)=>t?e[_F]|=4:e[_F]&=-5,_H=class extends _z{constructor(e,t){if(super(),this.animation=new __,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,!kq.und(e)||!kq.und(t)){let n=kq.obj(e)?{...e}:{...t,from:e};kq.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(_I(this)||this._state.asyncTo)||_V(this)}get goal(){return EC(this.animation.to)}get velocity(){let e=E2(this);return e instanceof E6?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return _Z(this)}get isAnimating(){return _I(this)}get isPaused(){return _V(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=E3(r.to);!o&&E_(r.to)&&(i=kX(EC(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==E8?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=kq.arr(a.velocity)?a.velocity[l]:a.velocity,f=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(kq.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(s.lastPosition-d)<=f,t=o*r}else{t=null==s.lastVelocity?o:s.lastVelocity;let n=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!kq.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=(-(1e-6*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,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(a.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+a.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=E2(this),l=s.getValue();if(t){let e=EC(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return kO.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(_I(this)){let{to:e,config:t}=this.animation;kO.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 kq.und(e)?(n=this.queue||[],this.queue=[]):n=[kq.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>_S(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),_T(this._state,e&&this._lastCallId),kO.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=kq.obj(n)?n[t]:n)||_y(n))&&(n=void 0),null==(r=kq.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return _Z(this)||(e.reverse&&([n,r]=[r,n]),r=EC(r),kq.und(r)?E2(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_f(e,(e,t)=>/^on/.test(t)?_u(e,n):e)),_G(this,e,"onProps"),_X(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 _C(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{_V(this)||(_U(this,!0),kQ(a.pauseQueue),_X(this,"onPause",_M(this,_W(this,this.animation.to)),this))},resume:()=>{_V(this)&&(_U(this,!1),_I(this)&&this._resume(),kQ(a.resumeQueue),_X(this,"onResume",_M(this,_W(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=_$(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(_P(this));let r=!kq.und(e.to),i=!kq.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(_P(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||kq.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!kK(d,u);f&&(s.from=d),d=EC(d);let h=!kK(c,l);h&&this._focus(c);let p=_y(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(_k(n={...n},t),t={...n,...t}),_k(e,t),Object.assign(e,t),_w)null==e[r]&&(e[r]=_w[r]);let{frequency:r,damping:i}=e,{mass:a}=e;kq.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,_s(t.config,a),t.config!==o.config?_s(o.config,a):void 0);let y=E2(this);if(!y||kq.und(c))return n(_M(this,!0));let b=kq.und(t.reset)?i&&!t.default:!kq.und(d)&&_l(t.reset,a),x=b?d:this.get(),w=_g(c),j=kq.num(w)||kq.arr(w)||Eq(w),k=!p&&(!j||_l(o.immediate||t.immediate,a));if(h){let e=_n(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,_=E_(c),C=!1;if(!_){let e=b||!_Z(this)&&f;(h||e)&&(_=!(C=kK(_g(x),w))),(kK(s.immediate,k)||k)&&kK(m.decay,g)&&kK(m.velocity,v)||(_=!0)}if(C&&_I(this)&&(s.changed&&!b?_=!0:_||this._stop(l)),!p&&((_||E_(l))&&(s.values=y.getPayload(),s.toValues=E_(c)?null:E==E8?[1]:kX(w)),s.immediate==k||(s.immediate=k,k||b||this._set(l)),_)){let{onRest:e}=s;kY(_Y,e=>_G(this,t,e));let r=_M(this,_W(this,l));kQ(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&kO.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?_s(o.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(_A(t.to,t,this._state,this)):_?this._start():_I(this)&&!h?this._pendingCalls.add(n):n(_O(x))}_focus(e){let t=this.animation;e!==t.to&&(ES(this)&&this._detach(),t.to=e,ES(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;E_(t)&&(EA(t,this),_D(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;E_(e)&&ET(e,this)}_set(e,t=!0){let n=EC(e);if(!kq.und(n)){let e=E2(this);if(!e||!kK(n,e.getValue())){let r=_n(n);e&&e.constructor==r?e.setValue(n):E4(this,r.create(n)),e&&kO.batchedUpdates(()=>{this._onChange(n,t)})}}return E2(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,_X(this,"onStart",_M(this,_W(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),_s(this.animation.onChange,e,this)),_s(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;E2(this).reset(EC(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),_I(this)||(_B(this,!0),_V(this)||this._resume())}_resume(){kC.skipAnimation?this.finish():k9.start(this)}_stop(e,t){if(_I(this)){_B(this,!1);let n=this.animation;kY(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),EO(this,{type:"idle",parent:this});let r=t?_P(this.get()):_M(this.get(),_W(this,e??n.to));kQ(this._pendingCalls,r),n.changed&&(n.changed=!1,_X(this,"onRest",r,this))}}};function _W(e,t){let n=_g(t);return kK(_g(e.get()),n)}function _$(e,t=e.loop,n=e.to){let r=_s(t);if(r){let i=!0!==r&&_m(r),a=(i||e).reverse,o=!i||i.reset;return _q({...e,loop:t,default:!1,pause:void 0,to:!a||_y(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function _q(e){let{to:t,from:n}=e=_m(e),r=new Set;return kq.obj(t)&&_K(t,r),kq.obj(n)&&_K(n,r),e.keys=r.size?Array.from(r):null,e}function _K(e,t){kG(e,(e,n)=>null!=e&&t.add(n))}var _Y=["onStart","onRest","onChange","onPause","onResume"];function _G(e,t,n){e.animation[n]=t[n]!==_c(t,n)?_u(t[n],e.key):void 0}function _X(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var _J=["onStart","onChange","onRest"],_Q=1,_0=class{constructor(e,t){this.id=_Q++,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];kq.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_q(e)),this}start(e){let{queue:t}=this;return(e?t=kX(e).map(_q):this.queue=[],this._flush)?this._flush(this,t):(_8(this,t),_1(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;kY(kX(t),t=>n[t].stop(!!e))}else _T(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(kq.und(e))this.start({pause:!0});else{let t=this.springs;kY(kX(e),e=>t[e].pause())}return this}resume(e){if(kq.und(e))this.start({pause:!1});else{let t=this.springs;kY(kX(e),e=>t[e].resume())}return this}each(e){kG(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,kJ(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&&kJ(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,kJ(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)}kO.onFrame(this._onFrame)}};function _1(e,t){return Promise.all(t.map(t=>_2(e,t))).then(t=>_S(e,t))}async function _2(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,u=kq.obj(t.default)&&t.default;o&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);let c=kq.arr(i)||kq.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):kY(_J,n=>{let r=t[n];if(kq.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,kQ(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===_c(t,"cancel");(c||h&&d.asyncId)&&f.push(_C(++e._lastAsyncId,{props:t,state:d,actions:{pause:kW,resume:kW,start(t,n){h?(_T(d,e._lastAsyncId),n(_P(e))):(t.onRest=s,n(_A(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=_S(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=_$(t,o,i);if(n)return _8(e,[n]),_2(e,n,!0)}return l&&kO.batchedUpdates(()=>l(p,e,e.item)),p}function _4(e,t){let n={...e.springs};return t&&kY(kX(t),e=>{kq.und(e.keys)&&(e=_q(e)),kq.obj(e.to)||(e={...e,to:void 0}),_6(n,e,e=>_5(e))}),_3(e,n),n}function _3(e,t){kG(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,EA(t,e))})}function _5(e,t){let n=new _H;return n.key=e,t&&EA(n,t),n}function _6(e,t,n){t.keys&&kY(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function _8(e,t){kY(t,t=>{_6(e.springs,t,t=>_5(t,e))})}var _7=({children:e,...t})=>{let n=(0,el.useContext)(_9),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,el.useState)(()=>({inputs:t,result:e()})),r=(0,el.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}=_9;return el.createElement(a,{value:t},e)},_9=(p={},Object.assign(_7,el.createContext(p)),_7.Provider._context=_7,_7.Consumer._context=_7,_7);_7.Provider=_9.Provider,_7.Consumer=_9.Consumer;var Ce=()=>{let e=[],t=function(t){E$(`${EU}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 kY(e,(e,i)=>{if(kq.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 kY(e,e=>e.pause(...arguments)),this},t.resume=function(){return kY(e,e=>e.resume(...arguments)),this},t.set=function(t){kY(e,(e,n)=>{let r=kq.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return kY(e,(e,r)=>{if(kq.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 kY(e,e=>e.stop(...arguments)),this},t.update=function(t){return kY(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return kq.fun(e)?e(n,t):e};return t._getProps=n,t};function Ct(e,t){let n=kq.fun(e),[[r],i]=function(e,t,n){let r=kq.fun(t)&&t;r&&!n&&(n=[]);let i=(0,el.useMemo)(()=>r||3==arguments.length?Ce():void 0,[]),a=(0,el.useRef)(0),o=EG(),s=(0,el.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=_4(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{_3(e,n),s.queue.push(()=>{r(_1(e,t))}),o()}):_1(e,t)}}),[]),l=(0,el.useRef)([...s.ctrls]),u=[],c=EQ(e)||0;function d(e,n){for(let i=e;i{kY(l.current.slice(e,c),e=>{_b(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,el.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>_4(e,u[t])),h=(0,el.useContext)(_7),p=EQ(h),m=h!==p&&_v(h);EK(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],kY(e,e=>e())),kY(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(_x(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),EX(()=>()=>{kY(s.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 Cn(e,t,n){let r=kq.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,el.useMemo)(()=>r||3==arguments.length?Ce():void 0,[]),h=kX(e),p=[],m=(0,el.useRef)(null),g=i?null:m.current;EK(()=>{m.current=p}),EX(()=>(kY(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{kY(m.current,e=>{e.expired&&clearTimeout(e.expirationId),_b(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):Cr++})}return kq.und(n)?e:kq.fun(n)?e.map(n):kX(n)}(h,r?r():t,g),y=i&&m.current||[];EK(()=>kY(y,({ctrl:e,item:t,key:n})=>{_b(e,f),_s(u,t,n)}));let b=[];if(g&&kY(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=v.indexOf(e.key))&&(p[t]=e)}),kY(h,(e,t)=>{p[t]||(p[t]={key:v[t],item:e,phase:"mount",ctrl:new _0},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;kY(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}kq.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let x=-o,w=EG(),j=_f(t),k=new Map,E=(0,el.useRef)(new Map),_=(0,el.useRef)(!1);kY(p,(e,n)=>{let i,a;let u=e.key,f=e.phase,h=r?r():t,p=_s(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=_s(i,e.item,n),!(i=kq.obj(i)?_m(i):{to:i}).config){let t=d||j.config;i.config=_s(t,e.item,n,a)}x+=o;let y={...j,delay:p+x,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==a&&kq.und(y.from)){let i=r?r():t,a=kq.und(i.initial)||g?i.from:i.initial;y.from=_s(a,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{_s(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=_s(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(w,r));return}}}e&&t.some(e=>e.expired)&&(E.current.delete(n),l&&(_.current=!0),w())}}};let C=_4(e.ctrl,y);"leave"===a&&l?E.current.set(e,{phase:a,springs:C,payload:y}):k.set(e,{phase:a,springs:C,payload:y})});let C=(0,el.useContext)(_7),S=EQ(C),O=C!==S&&_v(C);EK(()=>{O&&kY(p,e=>{e.ctrl.start({default:C})})},[C]),kY(k,(e,t)=>{if(E.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),EK(()=>{kY(E.current.size?E.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&"enter"==e&&r.start({default:C}),t&&(_x(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let M=e=>el.createElement(el.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?el.createElement(i.type,{...i.props,key:kq.str(t.key)||kq.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[M,f]:M}var Cr=1,Ci=class extends _z{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ej(...t);let n=this._get();E4(this,_n(n).create(n))}advance(e){let t=this._get();kK(t,this.get())||(E2(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Co(this._active)&&Cs(this)}_get(){let e=kq.arr(this.source)?this.source.map(EC):kX(EC(this.source));return this.calc(...e)}_start(){this.idle&&!Co(this._active)&&(this.idle=!1,kY(E3(this),e=>{e.done=!1}),kC.skipAnimation?(kO.batchedUpdates(()=>this.advance()),Cs(this)):k9.start(this))}_attach(){let e=1;kY(kX(this.source),t=>{E_(t)&&EA(t,this),_D(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){kY(kX(this.source),e=>{E_(e)&&ET(e,this)}),this._active.clear(),Cs(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=kX(this.source).reduce((e,t)=>Math.max(e,(_D(t)?t.priority:0)+1),0))}};function Ca(e){return!1!==e.idle}function Co(e){return!e.size||Array.from(e).every(Ca)}function Cs(e){e.idle||(e.idle=!0,kY(E3(e),e=>{e.done=!0}),EO(e,{type:"idle",parent:e}))}var Cl=(e,...t)=>new Ci(e,t);kC.assign({createStringInterpolator:EB,to:(e,t)=>new Ci(e,t)}),k9.advance;var Cu=/^--/,Cc={},Cd={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},Cf=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Ch=["Webkit","Ms","Moz","O"];Cd=Object.keys(Cd).reduce((e,t)=>(Ch.forEach(n=>e[Cf(n,t)]=e[t]),e),Cd);var Cp=/^(matrix|translate|scale|rotate|skew)/,Cm=/^(translate)/,Cg=/^(rotate|skew)/,Cv=(e,t)=>kq.num(e)&&0!==e?e+t:e,Cy=(e,t)=>kq.arr(e)?e.every(e=>Cy(e,t)):kq.num(e)?e===t:parseFloat(e)===t,Cb=class extends E9{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=>Cv(e,"px")).join(",")})`,Cy(e,0)])),kG(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(Cp.test(t)){if(delete r[t],kq.und(e))return;let n=Cm.test(t)?"px":Cg.test(t)?"deg":"";i.push(kX(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Cv(i,n)})`,Cy(i,0)]:e=>[`${t}(${e.map(e=>Cv(e,n)).join(",")})`,Cy(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new Cx(i,a)),super(r)}},Cx=class extends EM{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 kY(this.inputs,(n,r)=>{let i=EC(n[0]),[a,o]=this.transforms[r](kq.arr(i)?i:n.map(EC));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){1==e&&kY(this.inputs,e=>kY(e,e=>E_(e)&&EA(e,this)))}observerRemoved(e){0==e&&kY(this.inputs,e=>kY(e,e=>E_(e)&&ET(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),EO(this,e)}};kC.assign({batchedUpdates:ey.unstable_batchedUpdates,createStringInterpolator:EB,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 Cw=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new E9(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=_o(e)||"Anonymous";return(e=kq.str(e)?a[e]||(a[e]=_r(e,i)):e[_a]||(e[_a]=_r(e,i))).displayName=`Animated(${t})`,e};return kG(e,(t,n)=>{kq.arr(e)&&(n=_o(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:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:Cc[t]||(Cc[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||Cu.test(t)||Cd.hasOwnProperty(t)&&Cd[t]?(""+d).trim():d+"px";Cu.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!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new Cb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,Cj=n(23442),Ck=(0,el.createContext)({});function CE(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,a=e.children,o=(0,el.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return el.createElement(Ck.Provider,{value:o},a)}function C_(){return(C_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,CA),p=(0,el.useContext)(CO)||{},m=p.innerHeight,g=p.innerWidth,v=p.margin,y=p.xScale,b=p.yScale,x=p.dataRegistry,w=(0,el.useMemo)(function(){return y?CM(y):0},[y]),j=(0,el.useMemo)(function(){return b?CM(b):0},[b]);if((!s||!l)&&!o)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==o?null:null==x?void 0:x.get(o),E=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!b||!g||!m||!E||!_||!v)return null;var C=(null!=(t=(0,x5.Z)(y(E(a))))?t:NaN)+w/2,S=(null!=(n=(0,x5.Z)(b(_(a))))?n:NaN)+j/2,O=C+c+16>v.left+g?-c:c,M=S+f+16>v.top+m?-f:f;return CP(C)&&CP(S)?el.createElement(r,CT({width:g,height:m},h,{x:C,y:S,dx:O,dy:M}),i):null}CN.propTypes={dataKey:xJ().string,xAccessor:xJ().func,yAccessor:xJ().func};var CR=["x","y","AnnotationComponent"],CD=["editable"];function CL(){return(CL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function CF(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.AnnotationComponent,o=Cz(e,CR),s=(0,el.useRef)({x:n,y:i}),l=Ct({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,el.useEffect)(function(){s.current={x:n,y:i}},[n,i]),el.createElement(Cw.g,{transform:Cl([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},el.createElement(a,CL({x:n,y:i},o)))}function CZ(e){var t=e.editable,n=Cz(e,CD),r=(0,el.useCallback)(function(e){return el.createElement(CF,CL({AnnotationComponent:t?CS:CE},e))},[t]);return el.createElement(CN,CL({AnnotationComponent:r},n))}CZ.propTypes={editable:xJ().bool};var CI=n(12766),CV=["d","stroke","fill"];function CB(){return(CB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,CV),a=(0,el.useRef)(t),o=(0,el.useCallback)(j2()(function(e){a.current=e},50),[]),s=(0,CI.interpolatePath)(a.current,t);o(t);var l=Ct({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=Ct({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return el.createElement(Cw.path,CB({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var CH=n(12935),CW=n(12151);function C$(){return(C$=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function C4(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)=>C2(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 C3=C4(C2);C3.right;let C5=C3.left;function C6(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 s=C4(i).left,l=Number(r.invert(a)),u=s(o,l),c=o[u-1],d=o[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=C5(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,Sl),_=(0,el.useContext)(CO),C=_.colorScale,S=_.theme,O=_.horizontal,M=(0,el.useMemo)(function(){return b?CK(x,b):void 0},[x,b]),P=(0,el.useMemo)(function(){return CK(x,y)},[x,y]),A=(0,el.useMemo)(function(){return j?CK(k,j):void 0},[k,j]),T=(0,el.useMemo)(function(){return CK(k,w)},[k,w]),N=(0,el.useCallback)(function(e){return CP(x(y(e)))&&CP(k(w(e)))},[x,y,k,w]),R=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",D="AREASERIES_EVENT_SOURCE-"+l,L=Sr({dataKey:l,enableEvents:void 0===g||g,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:D,allowedSources:[CG,D]}),z=(0,el.useMemo)(function(){var e=CY(O?x:k);return O?{x0:null!=M?M:e,x1:P,y:T}:{x:P,y0:null!=A?A:e,y1:T}},[x,k,O,P,T,M,A]),F=!!(d||c),Z=(0,el.useCallback)(function(e){var t=e.glyphs;return F?t.map(function(e){return el.createElement(el.Fragment,{key:e.key},Ss(Su({},e,{color:"transparent",onFocus:L.onFocus,onBlur:L.onBlur})))}):null},[F,L.onFocus,L.onBlur]);return el.createElement(el.Fragment,null,el.createElement(CH.Z,Su({},z,E,{curve:o,defined:N}),function(e){var t=e.path;return el.createElement(a,Su({className:"visx-area",stroke:"transparent",fill:R,strokeLinecap:"round"},E,{d:t(s)||""},L))}),(void 0===v||v)&&el.createElement(CW.Z,Su({x:P,y:T,defined:N,curve:o},u),function(e){var t=e.path;return el.createElement(a,Su({className:"visx-line",fill:"transparent",stroke:R,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),F&&el.createElement(Sa,{dataKey:l,data:s,xAccessor:y,yAccessor:w,xScale:x,yScale:k,renderGlyphs:Z}))}Sc.propTypes={renderLine:xJ().bool};var Sd=Cq(Sc);function Sf(){return(Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,a=1,o=e[t[0]],s=o.length;a=0;)n[t]=t;return n}function Sb(e,t){return e[t]}function Sx(e){let t=[];return t.key=e,t}Array.prototype.slice;var Sw=n(74322),Sj=n(58543);function Sk(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,l]),d=(0,el.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=Sg([]),t=Sy,n=Sv,r=Sb;function i(i){var a,o,s,l=Array.from(e.apply(this,arguments),Sx),u=l.length,c=-1;for(let e of i)for(o=0,++c;o0&&0===r&&(a?i.xScale=function(e){return e.domain(Sk(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(Sk(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,a,d,o,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function SM(e,t,n){var r,i,a,o,s=e.xScale,l=e.yScale,u=e.point,c=(n?C7:C8)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,Sm.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,Sm.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(a=l((0,Sm.l8)(c.datum)))?a:-1/0)&&u.y>=(null!=(o=l((0,Sm.xf)(c.datum)))?o:1/0)?0:c.distanceY}:null}var SP=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function SA(){return(SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(o,SP)),u=SA({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"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[_,C,g,E,w]),O=(0,el.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?SM(e,r,y):null},[E,y]),M="AREASTACK_EVENT_SOURCE-"+k.join("-"),P=Sr({dataKey:k,enableEvents:void 0===a||a,findNearestDatum:O,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:M,allowedSources:[CG,M]}),A=!!(l||s),T=(0,el.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return el.createElement(el.Fragment,{key:e.key},Ss(SA({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[A,P.onFocus,P.onBlur]);return!k.some(function(e){return null==v.get(e)})&&b&&x&&g?el.createElement("g",{className:"visx-area-stack"},S.map(function(e){return el.createElement(CH.Z,SA({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return el.createElement(n,SA({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),(void 0===p||p)&&S.map(function(e){return el.createElement(Sp.Z,SA({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 el.createElement(n,SA({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),A&&S.map(function(e,t){var n=S[S.length-t-1];return el.createElement(Sa,{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:ST,yScale:ST,renderGlyphs:T})})):null}function SR(){return(SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Sz),c=(0,el.useContext)(CO),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,g=c.height,v=u.orientation,y=(0,el.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]),b=u.tickLabelProps,x=(0,el.useMemo)(function(){return b||y?function(e,t,n){return SF({},null==y?void 0:y.tickLabel,{width:"left"===v||"right"===v?null==p?void 0:p[v]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,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?el.createElement(l,SF({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==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:x,scale:k})):null}function SI(){return(SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return SU({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var g=o(i(u.datum)),v=(null!=g?g:1/0)+(null!=c?c:1/0),y=v+d,b=l.x>=v&&l.x<=y;return SU({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(v+y)/2)})}(e,k,g)},[k,g]),_="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",C=Sr({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:E,onBlur:o,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[CG,_]}),S=(0,el.useMemo)(function(){return b?CY(b):0},[b]),O=(0,el.useMemo)(function(){return x?CY(x):0},[x]),M=j.map(function(e){return m.get(e)});if(M.some(function(e){return null==e})||!b||!x||!p)return null;var P=CM(k),A=M.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=b(n(e)))?t:NaN)-S:(null!=(i=x(r(e)))?i:NaN)-O},s=g?function(e){var t;return null!=(t=x(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(a))?t:0,u=g?function(e){return S+Math.min(0,o(e))}:function(e){return s(e)+l},c=g?function(e){return s(e)+l}:function(e){return O+Math.min(0,o(e))},d=g?function(e){return Math.abs(o(e))}:function(){return P},f=g?function(){return P}: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(!CP(r))return null;var i=c(e);if(!CP(i))return null;var o=d(e);if(!CP(o))return null;var s=f(e);return CP(s)?{key:a+"-"+t,x:r,y:i,width:o,height:s,fill:null!=(n=null==v?void 0:v(e,t))?n:p(a)}:null}).filter(function(e){return e})}});return el.createElement("g",{className:"visx-bar-group"},A.map(function(e){return e&&el.createElement(a,SH({horizontal:g,xScale:b,yScale:x},e,C,{key:e.key}))}))}SW.propTypes={children:xJ().node.isRequired,padding:xJ().number,sortBars:xJ().func};var S$=n(10897),Sq=function(e){return!!(null==e?void 0:e.includes("url("))},SK=function(e){return Sq(e)?"rgba(0,0,0,0.1)":e},SY=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],SG=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function SX(){return(SX=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function SQ(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:SK(e.fill),opacity:1}}function S0(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,s=e.radiusLeft,l=SJ(e,SY);return el.createElement(el.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 el.createElement(S$.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:a,bottom:o,left:s},function(e){var t=e.path;return el.createElement(CU,SX({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function S1(e){var t,n,r,i=e.bars,a=e.xScale,o=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,SJ(e,SG)),u=Cn(i,SX({},(n=(t={horizontal:s,scale:s?a:o}).scale,r=!!t.horizontal,(0,el.useMemo)(function(){var e=CY(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:SK(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:SQ,update:SQ,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return el.createElement(el.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,a=e.width,o=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:el.createElement(Cw.rect,SX({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:a,height:o,fill:Sq(t.fill)?t.fill:s,opacity:u},l))}))}function S2(e){return null==e.radius?el.createElement(S1,e):el.createElement(S0,SX({},e,{radius:e.radius}))}function S4(){return(S4=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S5),w=(0,el.useContext)(CO),j=w.colorScale,k=w.horizontal,E=w.theme,_=w.innerWidth,C=w.innerHeight,S=(0,el.useMemo)(function(){return CK(v,g)},[v,g]),O=(0,el.useMemo)(function(){return CK(b,y)},[b,y]),M=CM(k?b:v)||(k?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===a?.1:a))),P=(0,el.useMemo)(function(){return v?CY(v):0},[v]),A=(0,el.useMemo)(function(){return b?CY(b):0},[b]),T=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",N=(0,el.useMemo)(function(){var e=k?0:-M/2,t=k?-M/2:0;return s.map(function(n,r){var i,a=S(n)+e;if(!CP(a))return null;var s=O(n)+t;if(!CP(s))return null;var l=k?a-P:s-A;return CP(l)?{key:""+r,x:k?P+Math.min(0,l):a,y:k?s:A+Math.min(0,l),width:k?Math.abs(l):M,height:k?M:Math.abs(l),fill:null!=(i=null==o?void 0:o(n,r))?i:T}:null}).filter(function(e){return e})},[M,T,o,s,S,O,k,P,A]),R="BARSERIES_EVENT_SOURCE-"+l,D=Sr({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:R,allowedSources:[CG,R]});return el.createElement("g",{className:"vx-bar-series"},el.createElement(i,S6({bars:N,horizontal:k,xScale:v,yScale:b},D,x)))}S8.propTypes={barPadding:xJ().number,colorAccessor:xJ().func};var S7=Cq(S8),S9=["colorAccessor"];function Oe(){return(Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S9);return el.createElement(S7,Oe({},n,{colorAccessor:t,BarsComponent:S2}))}var On=n(15590);function Or(){return(Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ou),i=(0,el.useCallback)(function(e){return el.createElement(Ol,Oc({},e,{renderGlyph:n}))},[n]);return el.createElement(So,Oc({},r,{renderGlyphs:i}))}var Of=n(93353),Oh=n(63962),Op=["rows","columns","GridRowsComponent","GridColumnsComponent"];function Om(){return(Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Op),o=(0,el.useContext)(CO),s=o.theme,l=o.xScale,u=o.yScale,c=o.margin,d=o.innerWidth,f=o.innerHeight,h=null==s?void 0:s.gridStyles;return el.createElement(el.Fragment,null,(void 0===t||t)&&u&&null!=d&&el.createElement(r,Om({left:null==c?void 0:c.left,lineStyle:h,width:d,scale:u},a)),(void 0===n||n)&&l&&null!=f&&el.createElement(i,Om({top:null==c?void 0:c.top,lineStyle:h,height:f,scale:l},a)))}Og.propTypes={rows:xJ().bool,columns:xJ().bool};var Ov=["animationTrajectory"];function Oy(){return(Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ov),r=(0,el.useMemo)(function(){return function(e){return el.createElement(Of.Z,Oy({},e,{animationTrajectory:t}))}},[t]),i=(0,el.useMemo)(function(){return function(e){return el.createElement(Oh.Z,Oy({},e,{animationTrajectory:t}))}},[t]);return el.createElement(Og,Oy({GridRowsComponent:r,GridColumnsComponent:i},n))}var Ox=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function Ow(){return(Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ox),j=(0,el.useContext)(CO),k=j.colorScale,E=j.theme,_=(0,el.useMemo)(function(){return CK(g,m)},[g,m]),C=(0,el.useMemo)(function(){return CK(y,v)},[y,v]),S=(0,el.useCallback)(function(e){return CP(g(m(e)))&&CP(y(v(e)))},[g,m,y,v]),O=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==E?void 0:null==(r=E.colors)?void 0:r[0])?t:"#222",M="LINESERIES_EVENT_SOURCE-"+s,P=Sr({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:M,allowedSources:[CG,M]}),A=!!(u||l),T=(0,el.useCallback)(function(e){var t=e.glyphs;return A?t.map(function(e){return el.createElement(el.Fragment,{key:e.key},Ss(Ow({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[A,P.onFocus,P.onBlur]);return el.createElement(el.Fragment,null,el.createElement(CW.Z,Ow({x:_,y:C,defined:S,curve:a},w),function(e){var t,n=e.path;return el.createElement(x,Ow({stroke:null!=(t=null==i?void 0:i(s))?t:O,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},w,{d:n(o)||""},P))}),A&&el.createElement(Sa,{dataKey:s,data:o,xAccessor:m,yAccessor:v,xScale:g,yScale:y,renderGlyphs:T}))}Oj.propTypes={colorAccessor:xJ().func};var Ok=Cq(Oj);function OE(){return(OE=Object.assign?Object.assign.bind():function(e){for(var t=1;tOO.every(n=>e[n]===t[n]);function OP(e,t){return(OP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var OA=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,OP(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)?ey.createPortal(this.props.children,this.node):null},t}(el.PureComponent);OA.propTypes={zIndex:xJ().oneOfType([xJ().number,xJ().string])};var OT=["detectBounds","zIndex"],ON=["left","top","detectBounds","zIndex"];function OR(){return(OR=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var OL=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],Oz=["x","y"];function OF(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 OZ(){return(OZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,el.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:o,x:s,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&&!OM(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?OS()(e,d):e,c?OS()(e,c):e]},[l,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,el.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,el.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,el.useEffect)(()=>{g(),v()},[r,m,p]),(0,el.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())},s,h]}(OD(et,OT)))[0],es=ea[1],eu=ea[2],ec=(0,el.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,a=OD(e,ON),o=null==i?ei:i,s=(null==r?er:r)?wj:wh,l=(void 0===t?0:t)+(es.left||0)+window.scrollX,u=(void 0===n?0:n)+(es.top||0)+window.scrollY;return el.createElement(OA,{zIndex:o},el.createElement(s,OR({left:l,top:u},a)))}},[er,ei,es.left,es.top]),{containerRef:eo,containerBounds:es,forceRefreshBounds:eu,TooltipInPortal:ec}),N=T.containerRef,R=T.TooltipInPortal,D=T.forceRefreshBounds,L=(0,el.useCallback)(function(e){var t;N(null!=(t=null==e?void 0:e.parentElement)?t:null)},[N]),z=null!=A&&A.tooltipOpen?a(OZ({},A,{colorScale:k})):null,F=(null==A?void 0:A.tooltipOpen)&&null!=z,Z=(0,el.useRef)(!1);(0,el.useEffect)(function(){F&&!Z.current&&D(),Z.current=F},[F,D]);var I=null==A?void 0:A.tooltipLeft,V=null==A?void 0:A.tooltipTop,B=O?CM(O):0,U=M?CM(M):0,H=(0,el.useCallback)(function(e,t){var n,r,i=null==P?void 0:P.get(e),a=null==i?void 0:i.xAccessor,o=null==i?void 0:i.yAccessor;return{left:O&&a?null!=(n=Number(O(a(t)))+B/2)?n:0:void 0,top:M&&o?null!=(r=Number(M(o(t)))+U/2)?r:0:void 0}},[P,B,U,O,M]),W=null==A?void 0:null==(ed=A.tooltipData)?void 0:ed.nearestDatum,$=null!=(ef=null==W?void 0:W.key)?ef:"";if(F&&W&&(g||y)){var q=H($,W.datum),K=q.left,Y=q.top;I=g&&CP(K)?K:I,V=y&&CP(Y)?Y:V}var G=[];if(F&&(void 0!==c&&c||h)){var X=Number(null!=(eE=null==i?void 0:i.radius)?eE:4);if(h)Object.values(null!=(e_=null==A?void 0:null==(eC=A.tooltipData)?void 0:eC.datumByKey)?e_:{}).forEach(function(e){var t,n,r,a=e.key,o=e.datum,s=e.index,l=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=H(a,o),c=u.left,d=u.top;CP(c)&&CP(d)&&G.push({key:a,color:l,datum:o,index:s,size:X,x:c,y:d,glyphStyle:i,isNearestDatum:!!W&&W.key===a})});else if(W){var J=H($,W.datum),Q=J.left,ee=J.top;if(CP(Q)&&CP(ee)){var et,en,er,ei,ea,eo,es,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,eb,ex,ew,ej,ek,eE,e_,eC,eS,eO,eM,eP,eA,eT,eN=null!=(eS=null!=(eO=null!=(eM=null!=(eP=$&&(null==k?void 0:k($)))?eP:null)?eM:null==E?void 0:null==(eA=E.gridStyles)?void 0:eA.stroke)?eO:null==E?void 0:null==(eT=E.htmlLabel)?void 0:eT.color)?eS:"#222";G.push({key:$,color:eN,datum:W.datum,index:W.index,size:X,x:Q,y:ee,glyphStyle:i,isNearestDatum:!0})}}}return el.createElement(el.Fragment,null,el.createElement("svg",{ref:L,style:OV}),F&&el.createElement(el.Fragment,null,void 0!==p&&p&&el.createElement(R,{className:"visx-crosshair visx-crosshair-vertical",left:I,top:null==S?void 0:S.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:OI},el.createElement("svg",{width:"1",height:_,overflow:"visible"},el.createElement("line",OZ({x1:0,x2:0,y1:0,y2:_,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"},b)))),void 0!==d&&d&&el.createElement(R,{className:"visx-crosshair visx-crosshair-horizontal",left:null==S?void 0:S.left,top:V,offsetLeft:0,offsetTop:0,detectBounds:!1,style:OI},el.createElement("svg",{width:C,height:"1",overflow:"visible"},el.createElement("line",OZ({x1:0,x2:C,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ev=null!=(ey=null==E?void 0:null==(eb=E.gridStyles)?void 0:eb.stroke)?ey:null==E?void 0:null==(ex=E.htmlLabel)?void 0:ex.color)?ev:"#222"},r)))),G.map(function(e,t){var n=e.x,r=e.y,i=OF(e,Oz);return el.createElement(R,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:OI},el.createElement("svg",{overflow:"visible"},s(OZ({x:0,y:0},i))))}),el.createElement(R,OZ({left:I,top:V,style:OZ({},wf,{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 OW(e){var t=(0,el.useContext)(CX);return null!=t&&t.tooltipOpen?el.createElement(OH,e):null}OB.propTypes={isNearestDatum:xJ().bool.isRequired},OH.propTypes={renderTooltip:xJ().func.isRequired,renderGlyph:xJ().func,snapTooltipToDatumX:xJ().bool,snapTooltipToDatumY:xJ().bool,showVerticalCrosshair:xJ().bool,showHorizontalCrosshair:xJ().bool,showDatumGlyph:xJ().bool,showSeriesGlyphs:xJ().bool},OW.propTypes={renderTooltip:xJ().func.isRequired,renderGlyph:xJ().func,snapTooltipToDatumX:xJ().bool,snapTooltipToDatumY:xJ().bool,showVerticalCrosshair:xJ().bool,showHorizontalCrosshair:xJ().bool,showDatumGlyph:xJ().bool,showSeriesGlyphs:xJ().bool};var O$=n(70390);function Oq(e){var t=e.children,n=(0,el.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 el.createElement(CJ.Provider,{value:n},t)}function OK(){return(OK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,wl);return wu({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[i]),o=(0,el.useCallback)(function(){return i({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[i]),{tooltipOpen:r.tooltipOpen,tooltipLeft:r.tooltipLeft,tooltipTop:r.tooltipTop,tooltipData:r.tooltipData,updateTooltip:i,showTooltip:a,hideTooltip:o}),d=c.tooltipOpen,f=c.tooltipLeft,h=c.tooltipTop,p=c.tooltipData,m=c.updateTooltip,g=c.hideTooltip,v=(0,el.useRef)(null),y=(0,el.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,a=e.distanceX,o=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(CP(a)?a:1/0,2)+Math.pow(CP(o)?o:1/0,2));m(function(e){var a,o,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&CP(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:s})},[v,p,i,s]);var x=C0({source:CG});return(Sn({dataKey:"nearest"===(void 0===f?"nearest":f)?St:Se,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,allowedSources:O7}),v)?null==p||null==i?el.createElement(O$.Z,null,function(t){return el.createElement(O9,O6({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==y?el.createElement(OY,null,el.createElement(O9,e)):null==b?el.createElement(Oq,null,el.createElement(O9,e)):p>0&&i>0?el.createElement("svg",{width:p,height:i,"aria-label":void 0===t?"XYChart":t},r,(void 0===n||n)&&el.createElement("rect",O6({x:s.left,y:s.top,width:p-s.left-s.right,height:i-s.top-s.bottom,fill:"transparent"},x))):null:m&&g?el.createElement(O5,{xScale:m,yScale:g,theme:h,initialDimensions:{width:p,height:i,margin:s},horizontal:a},el.createElement(O9,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function Me(e){return el.createElement(Sd,e)}function Mt(e){return el.createElement(SN,e)}function Mn(){return(Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ml(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,s=e.radiusLeft,l=Ms(e,Mi),u=!!(l.onFocus||l.onBlur);return el.createElement(el.Fragment,null,t.map(function(e){var t=e.key,c=Ms(e,Ma);return null==n?el.createElement("rect",Mo({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):el.createElement(S$.Z,Mo({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:a,bottom:o,left:s},c,l))}))}function Mu(){return(Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Md);return el.createElement(S7,Mf({},n,{colorAccessor:t,BarsComponent:Ml}))};function Mp(){return(Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,es.jsx)(v8,{value:"line",children:"Line"}),(0,es.jsx)(v8,{disabled:p||m,value:"areastack",children:"Area Stack"}),(0,es.jsx)(v8,{disabled:p||m,value:"barstack",children:"Bar Stack"}),(0,es.jsx)(v8,{disabled:p,value:"area",children:"Area"}),(0,es.jsx)(v8,{disabled:p,value:"bargroup",children:"Bar Group"})]})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{weight:"semibold",children:"Stack series offset"}),(0,es.jsxs)(v7,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,es.jsxs)(v8,{disabled:!s,value:"none",children:["None",(0,es.jsx)(y5,{children:"zero-baseline"})]}),(0,es.jsxs)(v8,{disabled:!s,value:"diverging",children:["Diverging",(0,es.jsx)(y5,{children:"non zero-baseline"})]}),(0,es.jsxs)(v8,{disabled:!s,value:"expand",children:["Expand",(0,es.jsx)(y5,{children:"values sum to 1"})]}),(0,es.jsxs)(v8,{disabled:!s,value:"wiggle",children:["Wiggle",(0,es.jsx)(y5,{children:"stream graph"})]})]})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{weight:"semibold",children:"Curve shape"}),(0,es.jsxs)(v7,{value:i,onValueChange:e=>a(e),className:"flex flex-col gap-1",children:[(0,es.jsx)(v8,{disabled:!o,value:"linear",children:"Linear"}),(0,es.jsx)(v8,{disabled:!o,value:"cardinal",children:"Cardinal"}),(0,es.jsx)(v8,{disabled:!o,value:"step",children:"Step"})]})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{weight:"semibold",children:"Axes"}),(0,es.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,es.jsxs)(v7,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,es.jsx)(v8,{value:"bottom",children:"Bottom"}),(0,es.jsx)(v8,{value:"top",children:"Top"})]}),(0,es.jsxs)(v7,{value:f,onValueChange:e=>h(e),className:"flex flex-col gap-2",children:[(0,es.jsx)(v8,{value:"left",children:"Left"}),(0,es.jsx)(v8,{value:"right",children:"Right"})]})]})]})]})})}let ME=(0,el.forwardRef)((e,t)=>{let{className:n}=e;return(0,es.jsxs)("div",{ref:t,className:(0,tl.cx)("flex gap-1 items-center",n),children:[(0,es.jsx)(M_,{}),(0,es.jsx)(M_,{}),(0,es.jsx)(M_,{})]})});function M_(){return(0,es.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 MC(e){let{id:t,height:n,data:r,config:i,actionsLeft:a,isLoading:o,actionsRight:s,emptyState:l,variant:u="panel",allowConfiguration:c=!0}=e,d=function(e,t,n){let[r,i]=(0,el.useState)(!(0,y4.Tb)()&&!n.disableAnimations),{resolvedTheme:a}=(0,xH.F)(),o=(0,el.useMemo)(()=>"dark"===a?kE:kk,[a]),[s,l]=(0,el.useState)("center"),[u,c]=(0,el.useState)([!1,!1]),[d,f]=u,[h,p]=(0,Mj.Z)("".concat(e,"/xAxisOrientation"),{defaultValue:"bottom"}),[m,g]=(0,Mj.Z)("".concat(e,"/yAxisOrientation"),{defaultValue:"right"}),[v,y]=(0,el.useState)(!0),[b,x]=(0,el.useState)(!0),[w,j]=(0,el.useState)(!1),[k,E]=(0,el.useState)(!0),[_,C]=(0,el.useState)(!0),[S,O]=(0,Mj.Z)("".concat(e,"/chartType"),{defaultValue:n.chartType||"areastack"}),[M,P]=(0,Mj.Z)("".concat(e,"/curveType"),{defaultValue:n.curveType||"linear"}),[A,T]=(0,Mj.Z)("".concat(e,"/stackOffset"),{defaultValue:n.stackOffset||"none"}),N=(0,el.useMemo)(()=>n.chartType,[]),R=(0,el.useMemo)(()=>n.curveType,[]),D=(0,el.useMemo)(()=>n.stackOffset,[]),L=["line","area","areastack"].includes(S),z=["barstack","areastack"].includes(S),F=o.xyChartTheme.gridStyles.stroke,[Z,I]=(0,el.useState)(!1),[V,B]=(0,el.useState)("star"),U=(0,el.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:a,onPointerOut:o,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:a,onPointerOut:o,onPointerUp:s};return"star"===V?(0,es.jsx)(kl,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):"circle"===V?(0,es.jsx)(kd,{left:t,top:n,stroke:F,fill:i,r:r,...u}):"cross"===V?(0,es.jsx)(km,{left:t,top:n,stroke:F,fill:i,size:10*r,...u}):(0,es.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[V,F]),H=(0,el.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return"barstack"!==S&&"bargroup"!==S?[...t,{...e,timestamp:e.timestamp+(0,jY.Nr)(1)}]:t},[S,t]),W=(0,el.useMemo)(()=>{if(H.length<2)return 0;let e=[H[0].timestamp,H[H.length-1].timestamp],t=new Date().getTime();return t>e[0]&&tObject.keys((0,Mw.Z)(t[0],"timestamp")),[t]),q=(0,el.useMemo)(()=>n.enabledGraph||$,[$,n]),K=(0,el.useMemo)(()=>n.enabledTip||$,[$,n]),Y=(0,el.useMemo)(()=>({x:$.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:$.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[$]);return{id:e,accessors:Y,useAnimatedComponents:r,animationTrajectory:s,config:n,scales:(0,el.useMemo)(()=>({x:{type:"band",paddingInner:L?1:.3},y:{type:"linear"}}),[L]),data:H,curve:(0,el.useMemo)(()=>"cardinal"===M&&kg.ZP||"step"===M&&wQ.ZP||kv.Z,[M]),chartData:t,numTicks:4,isLine:L,isStack:z,todayOffset:W,initialChartType:N,initialCurveType:R,initialStackOffset:D,chartType:S,curveType:M,keys:$,enabledGraph:q,enabledTip:K,renderBarGroup:"bargroup"===S,renderBarStack:"barstack"===S,enableTooltipGlyph:Z,renderTooltipGlyph:U,renderAreaSeries:"area"===S,renderAreaStack:"areastack"===S,renderLineSeries:"line"===S,sharedTooltip:_,showGridColumns:f,showGridRows:d,showHorizontalCrosshair:w,showTooltip:v,showVerticalCrosshair:b,snapTooltipToDatum:!z&&k,stackOffset:A,theme:o,margin:(0,el.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:l,setGridProps:c,setXAxisOrientation:p,setYAxisOrientation:g,setShowTooltip:y,setShowVerticalCrosshair:x,setShowHorizontalCrosshair:j,setSnapTooltipToDatum:E,setSharedTooltip:C,setChartType:O,setCurveType:P,setStackOffset:T,setEnableTooltipGlyph:I,setTooltipGlyphComponent:B,...r?{Annotation:CZ,AreaSeries:Sh,AreaStack:SD,Axis:SV,BarGroup:S3,BarSeries:Ot,BarStack:Oo,GlyphSeries:Od,Grid:Ob,LineSeries:O_,Tooltip:OW,XYChart:O9}:{AreaSeries:Me,AreaStack:Mt,Axis:Mr,BarGroup:Mc,BarSeries:Mh,BarStack:Mm,Grid:Mb,LineSeries:Mx,Tooltip:OW,XYChart:O9}}}(t,r,i),f=(0,es.jsxs)(es.Fragment,{children:[(0,es.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===u&&c&&(0,es.jsx)(Mk,{...d})]}),(0,es.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:a}),(0,es.jsx)(j8,{children:e=>{let{width:t,height:n}=e;return o?(0,es.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,es.jsx)(ME,{className:"scale-150"})}):0===r.length&&l?l:(0,es.jsx)(j9,{...d,width:t,height:n})}})]});return"panel"===u?(0,es.jsx)(n6,{className:"relative p-px",style:{height:n},children:f}):(0,es.jsx)("div",{className:"relative p-px",style:{height:n},children:f})}var MS="text/plain",MO=e=>{};(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var MM="undefined"==typeof window?void 0:window,MP="undefined"==typeof globalThis?void 0:globalThis,MA=null!=($=null==MM?void 0:MM.Promise)?$:null==MP?void 0:MP.Promise,MT="undefined"==typeof navigator?void 0:navigator,MN=null==MT?void 0:MT.clipboard;null==(q=null==MN?void 0:MN.read)||q.bind(MN),null==(K=null==MN?void 0:MN.readText)||K.bind(MN);var MR=null==(Y=null==MN?void 0:MN.write)?void 0:Y.bind(MN),MD=null==(G=null==MN?void 0:MN.writeText)?void 0:G.bind(MN),ML=null==MM?void 0:MM.ClipboardItem,Mz=function(){if(!MA)throw Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return MA}();function MF(e,t,n){for(var r in MO("listener called"),e.success=!0,t){var i=t[r],a=n.clipboardData;a.setData(r,i),r===MS&&a.getData(r)!==i&&(MO("setting text/plain failed"),e.success=!1)}n.preventDefault()}function MZ(e){var t={success:!1},n=MF.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function MI(e,t){MV(e);var n=MZ(t);return MB(),n}function MV(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function MB(){var e=document.getSelection();e&&e.removeAllRanges()}function MU(e){var t,n,r,i,a,o,s,l=MS in e;if("undefined"==typeof ClipboardEvent&&void 0!==(null==MM?void 0:MM.clipboardData)&&void 0!==(null==MM?void 0:MM.clipboardData.setData)){if(!l)throw Error("No `text/plain` value was specified.");if(function(e){if(!MM.clipboardData)return!1;var t=MM.clipboardData.setData("Text",e);return t&&MO("writeTextIE worked"),t}(e[MS]))return!0;throw Error("Copying failed, possibly because the user rejected it.")}return MZ(e)?(MO("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(MO('UA "Edge" => assuming success'),!0):MI(document.body,e)?(MO("copyUsingTempSelection worked"),!0):((o=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),o.textContent="temporary element",document.body.appendChild(o),s=MI(o,e),document.body.removeChild(o),s)?(MO("copyUsingTempElem worked"),!0):(t=e[MS],MO("copyTextUsingDOM"),(n=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),r=n,n.attachShadow&&(MO("Using shadow DOM."),r=n.attachShadow({mode:"open"})),(i=document.createElement("span")).innerText=t,r.appendChild(i),document.body.appendChild(n),MV(i),a=document.execCommand("copy"),MB(),document.body.removeChild(n),!!a&&(MO("copyTextUsingDOM worked"),!0))}function MH(e,t){var n=[];for(var r in e){var i=e[r];n.push(t(i))}return Mz.all(n).then(t=>{for(var n={},r=0;rMz.resolve(!0),Mq=Mz.resolve(!1);function MK(e){return new Mz((t,n)=>{try{t(e())}catch(e){n(e)}})}function MY(e){return MK(()=>MD?(MO("Using `navigator.clipboard.writeText()`."),MD(e).catch(MG)):Mz.resolve(MG(e)))}function MG(e){var t;if(!MU(((t={})[MS]=e,t)))throw Error("writeText() failed")}function MX(e,t){for(var n in e)if(-1!==e[n].types.indexOf(t))return!0;return!1}function MJ(e){return MH(e.types,function(t){return e.getType(t)}).then(t=>new Promise((n,r)=>{var i={};e.presentationStyle&&(i.presentationStyle=e.presentationStyle),ML?n(new ML(t,i)):r("window.ClipboardItem is not defined")}))}let MQ={data:""},M0=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||MQ,M1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,M2=/\/\*[^]*?\*\/| +/g,M4=/\n+/g,M3=(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]?M3(o,a):a+"{"+M3(o,"k"==a[1]?"":t)+"}":"object"==typeof o?r+=M3(o,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=o&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=M3.p?M3.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},M5={},M6=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+M6(e[n]);return t}return e},M8=(e,t,n,r,i)=>{var a;let o=M6(e),s=M5[o]||(M5[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!M5[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=M1.exec(e.replace(M2,""));)t[4]?r.shift():t[3]?(n=t[3].replace(M4," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(M4," ").trim();return r[0]})(e);M5[s]=M3(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let l=n&&M5.g?M5.g:null;return n&&(M5.g=M5[s]),a=M5[s],l?t.data=t.data.replace(l,a):-1===t.data.indexOf(a)&&(t.data=r?a+t.data:t.data+a),s},M7=(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?"":M3(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function M9(e){let t=this||{},n=e.call?e(t.p):e;return M8(n.unshift?n.raw?M7(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,M0(t.target),t.g,t.o,t.k)}M9.bind({g:1});let Pe,Pt,Pn,Pr=M9.bind({k:1});function Pi(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:Pt&&Pt()},s),n.o=/ *go\d+/.test(l),s.className=M9.apply(n,r)+(l?" "+l:""),t&&(s.ref=o);let u=e;return e[0]&&(u=s.as||e,delete s.as),Pn&&u[0]&&Pn(s),Pe(u,s)}return t?t(i):i}}var Pa=e=>"function"==typeof e,Po=(e,t)=>Pa(e)?e(t):e,Ps=(i=0,()=>(++i).toString()),Pl=()=>{if(void 0===a&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");a=!e||e.matches}return a},Pu=new Map,Pc=e=>{if(Pu.has(e))return;let t=setTimeout(()=>{Pu.delete(e),Pm({type:4,toastId:e})},1e3);Pu.set(e,t)},Pd=e=>{let t=Pu.get(e);t&&clearTimeout(t)},Pf=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&Pd(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return e.toasts.find(e=>e.id===n.id)?Pf(e,{type:1,toast:n}):Pf(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Pc(r):e.toasts.forEach(e=>{Pc(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Ph=[],Pp={toasts:[],pausedAt:void 0},Pm=e=>{Pp=Pf(Pp,e),Ph.forEach(e=>{e(Pp)})},Pg={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Pv=(e={})=>{let[t,n]=(0,el.useState)(Pp);(0,el.useEffect)(()=>(Ph.push(n),()=>{let e=Ph.indexOf(n);e>-1&&Ph.splice(e,1)}),[t]);let r=t.toasts.map(t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||Pg[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}});return{...t,toasts:r}},Py=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Ps()}),Pb=e=>(t,n)=>{let r=Py(t,e,n);return Pm({type:2,toast:r}),r.id},Px=(e,t)=>Pb("blank")(e,t);Px.error=Pb("error"),Px.success=Pb("success"),Px.loading=Pb("loading"),Px.custom=Pb("custom"),Px.dismiss=e=>{Pm({type:3,toastId:e})},Px.remove=e=>Pm({type:4,toastId:e}),Px.promise=(e,t,n)=>{let r=Px.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then(e=>(Px.success(Po(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e)).catch(e=>{Px.error(Po(t.error,e),{id:r,...n,...null==n?void 0:n.error})}),e};var Pw=(e,t)=>{Pm({type:1,toast:{id:e,height:t}})},Pj=()=>{Pm({type:5,time:Date.now()})},Pk=e=>{let{toasts:t,pausedAt:n}=Pv(e);(0,el.useEffect)(()=>{if(n)return;let e=Date.now(),r=t.map(t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&Px.dismiss(t.id);return}return setTimeout(()=>Px.dismiss(t.id),n)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[t,n]);let r=(0,el.useCallback)(()=>{n&&Pm({type:6,time:Date.now()})},[n]),i=(0,el.useCallback)((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:a}=n||{},o=t.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=o.findIndex(t=>t.id===e.id),l=o.filter((e,t)=>te.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[t]);return{toasts:t,handlers:{updateHeight:Pw,startPause:Pj,endPause:r,calculateOffset:i}}},PE=Pr` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -196,19 +196,19 @@ to { pointer-events: auto; padding: 8px 10px; border-radius: 8px; -`,PB=Pi("div")` +`,PV=Pi("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; -`,PV=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=Pl()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[PF(n),PZ(n)];return{animation:t?`${Pr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Pr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},PU=el.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?PV(e.position||t||"top-center",e.visible):{opacity:0},a=el.createElement(Pz,{toast:e}),o=el.createElement(PB,{...e.ariaProps},Po(e.message,e));return el.createElement(PI,{className:e.className,style:{...i,...n,...e.style}},"function"==typeof r?r({icon:a,message:o}):el.createElement(el.Fragment,null,a,o))});_=el.createElement,M3.p=void 0,Pe=_,Pt=void 0,Pn=void 0;var PH=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=el.useCallback(t=>{if(t){let n=()=>{r(e,t.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return el.createElement("div",{ref:a,className:t,style:n},i)},PW=(e,t)=>{let n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Pl()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...r}},P$=M9` +`,PB=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=Pl()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[PF(n),PZ(n)];return{animation:t?`${Pr(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Pr(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},PU=el.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?PB(e.position||t||"top-center",e.visible):{opacity:0},a=el.createElement(Pz,{toast:e}),o=el.createElement(PV,{...e.ariaProps},Po(e.message,e));return el.createElement(PI,{className:e.className,style:{...i,...n,...e.style}},"function"==typeof r?r({icon:a,message:o}):el.createElement(el.Fragment,null,a,o))});_=el.createElement,M3.p=void 0,Pe=_,Pt=void 0,Pn=void 0;var PH=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=el.useCallback(t=>{if(t){let n=()=>{r(e,t.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return el.createElement("div",{ref:a,className:t,style:n},i)},PW=(e,t)=>{let n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Pl()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...r}},P$=M9` z-index: 9999; > * { pointer-events: auto; } -`,Pq=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=Pk(n);return el.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(n=>{let a=n.position||t,o=PW(a,l.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return el.createElement(PH,{id:n.id,key:n.id,onHeightUpdate:l.updateHeight,className:n.visible?P$:"",style:o},"custom"===n.type?Po(n.message,n):i?i(n):el.createElement(PU,{toast:n,position:a}))}))};function PK(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,es.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,es.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,es.jsx)(n4,{className:"flex items-center",color:"subtle",children:t}),(0,es.jsx)(l7,{content:n,children:(0,es.jsx)(n4,{ellipsis:!0,className:"flex-1",children:n})}),(0,es.jsx)("div",{className:"flex items-center pl-1",children:(0,es.jsx)(ue,{icon:"hover",size:"none",onClick:e=>{Px.dismiss(i)},children:(0,es.jsx)(ut.PcV,{})})})]}),r&&(0,es.jsx)("div",{className:"pb-1",children:(0,es.jsx)(fb,{children:(0,es.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,es.jsx)(n4,{color:"subtle",size:"14",children:r})})})})]})}let PY=e=>{let{title:t,body:n,icon:r,options:i={}}=e;Px(e=>(0,es.jsx)(PK,{toastId:e.id,title:t,body:n,icon:r}),PJ(i))};function PG(e){let{title:t,body:n,options:r}=e;PY({title:t,body:n,icon:(0,es.jsx)(ut.yar,{className:"text-green-600"}),options:r})}function PX(e){let{title:t,body:n,options:r}=e;PY({title:t,body:n,icon:(0,es.jsx)(ut.T80,{className:"text-red-600"}),options:r})}function PJ(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,tl.cx)(n5(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,es.jsx)("div",{className:"!flex-none w-5",children:(0,es.jsx)(ut.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,es.jsx)("div",{className:"!flex-none w-5",children:(0,es.jsx)(ut.Jsc,{className:"w-5 text-red-600"})})},...t}}function PQ(){return(0,es.jsx)(Pq,{toastOptions:PJ(),containerStyle:{zIndex:20}})}let P0=(e,t)=>{PY({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,es.jsx)(ut.vtB,{})}),MY(e)},P1=(e,t,n)=>{var r;PY({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,es.jsx)(ut.vtB,{})}),r=[new ClipboardItem({[t]:e})],MK(()=>MR&&ML?(MO("Using `navigator.clipboard.write()`."),Mz.all(r.map(MJ)).then(e=>MR(e).then(M$).catch(e=>{if(!MX(r,MS)&&!MX(r,"text/html"))throw e;return Mq}))):Mq).then(e=>{var t;return e?MW:(MX(r,MS)||MO("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."),MH((t=r[0]).types,function(e){return t.getType(e).then(e=>new Mz((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(!MU(e))throw Error("write() failed")}))})},P2=e=>{let{text:t,title:n,body:r,icon:i,options:a}=e;PY({title:n,body:r,icon:i||(0,es.jsx)(ut.vtB,{}),options:a}),MY(t)};function P4(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e?t&&e.length>t?"".concat(e.slice(0,t)).concat(n?"...":""):"".concat(e.slice(0,t)):""}function P3(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"").replace(/^bid:/,"")}function P5(e,t,n){return t?"".concat(e," ").concat(P4(t,n)):"".concat(e)}function P6(e){let{testId:t,value:n,displayValue:r,type:i,label:a,href:o,maxLength:s,size:l,scaleSize:u,weight:c,font:d,color:f="contrast",className:h,siascanUrl:p,contextMenu:m}=e,g=a||(0,jY.uV)(i),v=s||(0,jY.uF)(i),y=P3(n),b=r||i&&(0,jY.Lu)(i,y,v)||(0,jY.mj)(y,v);return(0,es.jsxs)("div",{"data-testid":t,className:(0,tl.cx)("flex items-center",h),children:[o?(0,es.jsx)(gT,{href:o,underline:"hover",size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:b}):(0,es.jsx)(n4,{size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:b}),(0,es.jsx)("div",{className:"ml-1 flex items-center",children:m||(0,es.jsx)(P8,{cleanValue:y,label:g,size:l,siascanUrl:p,type:i})})]})}function P8(e){let{size:t,cleanValue:n,label:r,siascanUrl:i,type:a}=e;return(0,es.jsxs)(gh,{trigger:(0,es.jsx)(ue,{size:"none",variant:"ghost",children:(0,es.jsx)(ut.EMN,{className:"10"===t?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,es.jsxs)(gp,{onSelect:e=>{P0(n,r)},onClick:e=>{e.stopPropagation()},children:[(0,es.jsx)(gg,{children:(0,es.jsx)(ut.olJ,{})}),"Copy to clipboard"]}),i&&a&&(0,jY.Lg)(a)&&(0,es.jsx)(gT,{target:"_blank",href:(0,jY.jH)(i,a,n),className:"block w-full",underline:"none",children:(0,es.jsxs)(gp,{onClick:e=>{e.stopPropagation()},children:[(0,es.jsx)(gg,{children:(0,es.jsx)(ut.V8Q,{})}),"View on Siascan"]})})]})}function P7(e){let{value:t,displayValue:n,type:r,href:i,maxLength:a,size:o,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=a||(0,jY.uF)(r),f=P3(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,es.jsxs)("div",{className:(0,tl.cx)("flex items-center",c),children:[i?(0,es.jsx)(gT,{href:i,underline:"hover",size:o,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,es.jsx)(n4,{size:o,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,es.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function P9(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change"}=e,o=(0,jY.yF)(String(t),{units:"SF"});return(0,es.jsx)(l7,{content:(i?"".concat(i," "):"")+o,children:(0,es.jsxs)(n4,{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 Ae(e){let{testId:t,value:n,size:r,scaleSize:i,tooltip:a="",tipSide:o,font:s="mono",variant:l="change",color:u,fixed:c=3,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0}=e,m=n.isGreaterThan(0)?"+":n.isLessThan(0)?"-":"",g=u||("change"===l?n.isGreaterThan(0)?"green":n.isLessThan(0)?"red":"subtle":"contrast"),v=(0,es.jsxs)(n4,{"data-testid":t,size:r,scaleSize:i,weight:"medium",font:s,ellipsis:!0,color:g,children:["change"===l?"".concat(m).concat((0,jY.Vz)(n.absoluteValue(),{fixed:c,dynamicUnits:d})):(0,jY.Vz)(n,{fixed:c,dynamicUnits:d,hastingUnits:f}),h||""]});return p?(0,es.jsx)(l7,{content:(a?"".concat(a," "):"")+(0,jY.Vz)(n,{fixed:16,dynamicUnits:!1}),side:o,children:v}):v}function At(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:a="",variant:o="change",fixed:s,font:l="mono",fixedTip:u=20,showTooltip:c=!0,tipSide:d,extendedSuffix:f}=e,{rate:h,currency:p}=(0,y4.Nz)(),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||!p)return null;let v=h.times(t).div(1e24),y=void 0!==s?s:p.fixed,b=(0,es.jsx)(n4,{size:n,scaleSize:r,weight:"medium",font:l,ellipsis:!0,color:g,children:"".concat(m).concat(p.prefix).concat(An(v.absoluteValue(),y)).concat(f||"")});return c?(0,es.jsx)(l7,{side:d,content:(a?"".concat(a," "):"")+"".concat(m).concat(p.prefix).concat(An(v.absoluteValue(),u)).concat(f||""),children:b}):b}function An(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 Ar(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",fixed:o=3,fixedFiat:s,fixedTipFiat:l,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,y4.Hv)(),{rate:y}=(0,y4.Nz)(),b=(0,el.useMemo)(()=>(0,es.jsx)(Ae,{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]),x=(0,el.useMemo)(()=>(0,es.jsx)(At,{sc:t,size:n,color:m&&"row"===g&&"bothPreferSc"===v?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:s,fixedTip:l,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,n,r,i,a,u,s,l,d,f,h,p,c,v,m,g]);return"sc"!==v&&y?"fiat"===v?x:"bothPreferSc"===v?m?(0,es.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[b,x]}):b:"bothPreferFiat"===v?m?(0,es.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[x,b]}):x:b:b}function Ai(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",tipSide:a,variant:o="change",color:s,format:l}=e,u=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",c="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,es.jsx)(l7,{side:a,content:(i?"".concat(i," "):"")+l(t),children:(0,es.jsx)(n4,{size:n,weight:r,font:"mono",ellipsis:!0,color:s||c,children:"change"===o?"".concat(u).concat(l(t.absoluteValue())):l(t)})})}var Aa=n(84712),Ao=n(45036),As=n(47421),Al=1/0,Au=function(e){var t,n=(t=e)?(t=(0,As.Z)(t))===Al||t===-Al?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},Ac=Math.min,Ad=function(e,t){if((e=Au(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=Ac(e,4294967295);t="function"==typeof(n=t)?n:Ao.Z,e-=4294967295;for(var a=(0,Aa.Z)(i,t);++r(0,es.jsxs)("div",{className:(0,tl.cx)("relative flex gap-4 p-3.5",(0,tl.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,es.jsx)(bn,{className:"w-[60px] h-[50px]"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,es.jsx)(bn,{className:"w-[90%] h-[20px]"}),(0,es.jsx)(bn,{className:"w-[140px] h-[14px]"})]})]},e))})}var Ah=n(96647),Ap=n(71609);function Am(e){let{type:t,label:n,initials:r,href:i,src:a,shape:o}=e,s=(0,es.jsx)(uj,{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")}),l=i&&(0,es.jsx)(gT,{href:i,underline:"none","data-testid":"entity-link",children:s})||s;return t?(0,es.jsx)(l7,{content:n||(0,jY.jF)(t),children:(0,es.jsx)("div",{className:"",children:l})}):l}function Ag(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:a,href:o,onClick:s,children:l}=e;return(0,es.jsxs)("div",{className:(0,tl.cx)("flex gap-4 p-4",(0,tl.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,es.jsx)(Am,{label:t,type:n,shape:i,src:r,initials:a||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:o}),l]})}function Av(e){let t=e.sc,n=e.sf,r=e.hash&&(0,es.jsx)(P6,{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,jY.pX)(e.txType)||(0,jY.jF)(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?(0,Ap.Z)(i):i;return(0,es.jsx)(Ag,{...e,children:(0,es.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,es.jsx)(n4,{color:"subtle",weight:"semibold",children:(0,es.jsx)(gT,{href:e.blockHref,underline:"none",children:(0,jY.yF)(e.height)})}),a?(0,es.jsx)(l7,{content:a,children:(0,es.jsx)(n4,{ellipsis:!0,weight:"medium",children:a})}):(0,es.jsx)(n4,{ellipsis:!0,weight:"medium",children:r})]}),(0,es.jsx)("div",{className:"flex-1"}),(0,es.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,es.jsx)(Ar,{variant:e.scVariant,value:t}),!!n&&(0,es.jsx)(P9,{variant:e.sfVariant,value:n})]})]}),(0,es.jsxs)("div",{className:"flex justify-between w-full",children:[(0,es.jsx)("div",{className:"flex gap-1",children:!!a&&r}),(0,es.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(n4,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,es.jsx)(n4,{color:"verySubtle",children:(0,es.jsx)(ut.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,es.jsx)(n4,{color:"subtle",children:(0,Ah.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Ay(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:a,emptyMessage:o,skeletonCount:s=10,children:l}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||l||(c="skeleton"),((null==r?void 0:r.length)||l)&&(c="currentData"),(0,es.jsx)(n6,{children:(0,es.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,es.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,es.jsx)(gx,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,es.jsx)("div",{className:"flex-1"}),n]}),(0,es.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(a||(0,es.jsx)("div",{className:(0,tl.cx)("flex items-center justify-center h-[84px]",(0,tl.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,es.jsx)(n4,{size:"18",color:"subtle",children:o||"No results"})})),"currentData"===c&&(l||(null==r?void 0:r.map((e,t)=>(0,es.jsx)(Av,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,es.jsx)(Af,{skeletonCount:s})]})]})})}function Ab(e){let{label:t,entityType:n,entityValue:r,actions:i,href:a,value:o,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:g}=e,v=(0,es.jsx)(n4,{color:"subtle",size:"12",className:"h-6",children:f});return(0,es.jsx)(n6,{children:(0,es.jsx)("div",{className:(0,tl.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",g?"cursor-pointer":""),onClick:g,children:(0,es.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,es.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,es.jsx)(n4,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?(0,Ap.Z)(t):t}),i]}),(0,es.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,es.jsx)(bn,{className:"h-12 w-[150px]"}):(0,es.jsxs)(es.Fragment,{children:[void 0!==u&&(0,es.jsx)(Ar,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,es.jsx)(P9,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,es.jsx)(P6,{scaleSize:p,label:(0,jY.jF)(n),href:a,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,es.jsx)(n4,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,es.jsx)(P6,{scaleSize:p,label:"hash",value:l}),void 0!==o&&(0,es.jsx)(n4,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:o})]}),v?(0,es.jsx)("div",{className:"mt-1",children:m?(0,es.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,es.jsx)(bn,{className:"h-4 w-[100px]"})}):h?(0,es.jsx)(l7,{content:h,children:v}):v}):null]})]})})})}function Ax(e){let{title:t,actions:n,name:r}=e;return(0,es.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,es.jsx)(gM,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Aw(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,es.jsx)(n4,{size:"14",color:"red",children:a}):null}function Aj(e){let{form:t,title:n,actions:r,name:i,className:a,wrap:o}=e,s=t.formState.errors[i];return n||s?(0,es.jsxs)("div",{className:(0,tl.cx)("flex justify-between items-center gap-x-4 overflow-hidden",o?"flex-wrap":"",a),children:[(0,es.jsx)(Ax,{name:i,title:n,actions:r}),(0,es.jsx)(Aw,{form:t,name:i})]}):null}function Ak(e){let{children:t,...n}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,es.jsx)(Aj,{...n}),t]})}function AE(e){let{form:t,size:n="medium",variant:r="accent",className:i,children:a}=e;return(0,es.jsx)(ue,{className:i,size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,es.jsx)(ME,{}):a})}function A_(e){let{formik:t,title:n,name:r,placeholder:i,disabled:a,readOnly:o,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:g,type:v,variants:y}=e;return(0,es.jsx)(AP,{formik:t,title:n,name:r,children:"number"===v?(0,es.jsx)(AS,{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,es.jsx)(AO,{formik:t,name:r,disabled:a,readOnly:o,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,es.jsx)(AC,{formik:t,name:r,autoComplete:s,disabled:a,readOnly:o,placeholder:i,tabIndex:u,spellCheck:l,type:v,variants:y})})}function AC(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:a,readOnly:o,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,es.jsx)(yS,{id:n,name:n,autoComplete:i,disabled:a,spellCheck:l,placeholder:r,tabIndex:s,readOnly:o||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function AS(e){let{formik:t,name:n,units:r,disabled:i,readOnly:a,tabIndex:o,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,es.jsx)(y2,{id:n,units:r,name:n,placeholder:new(y0())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:a||t.isSubmitting,tabIndex:o,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function AO(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:a,placeholder:o,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,es.jsx)(y3,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:a,onFocus:()=>t.setFieldTouched(n),sc:new(y0())(t.values[n]),placeholder:new(y0())(o),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function AM(e){var t,n;let{formik:r,title:i,name:a,withStatusError:o=!1,className:s}=e,l=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||l)&&(0,es.jsxs)("div",{className:(0,tl.cx)("flex justify-between items-center gap-4",s),children:[i?(0,es.jsx)(gM,{htmlFor:a,children:i}):(0,es.jsx)("div",{}),l&&(0,es.jsx)(n4,{size:"14",color:"red",children:u})]})}function AP(e){let{children:t,...n}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,es.jsx)(AM,{...n}),t]})}function AA(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:a=!0,children:o}=e;return(0,es.jsxs)(es.Fragment,{children:[a&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,es.jsx)(n4,{color:"red",children:n.status.error}),(0,es.jsx)(ue,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,es.jsx)(ME,{}):o})]})}let AT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function AN(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function AR(e){return"nodeType"in e}function AD(e){var t,n;return e?AN(e)?e:AR(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function AL(e){let{Document:t}=AD(e);return e instanceof t}function Az(e){return!AN(e)&&e instanceof AD(e).HTMLElement}function AF(e){return e instanceof AD(e).SVGElement}function AZ(e){return e?AN(e)?e.document:AR(e)?AL(e)?e:Az(e)||AF(e)?e.ownerDocument:document:document:document}let AI=AT?el.useLayoutEffect:el.useEffect;function AB(e){let t=(0,el.useRef)(e);return AI(()=>{t.current=e}),(0,el.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function AU(e,t){let n=(0,el.useRef)();return(0,el.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function AH(e){let t=AB(e),n=(0,el.useRef)(null),r=(0,el.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function AW(e){let t=(0,el.useRef)();return(0,el.useEffect)(()=>{t.current=e},[e]),t.current}let A$={};function Aq(e,t){return(0,el.useMemo)(()=>{if(t)return t;let n=null==A$[e]?0:A$[e]+1;return A$[e]=n,e+"-"+n},[e,t])}function AK(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 AY=AK(1),AG=AK(-1);function AX(e){if(!e)return!1;let{KeyboardEvent:t}=AD(e.target);return t&&e instanceof t}function AJ(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=AD(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 AQ=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[AQ.Translate.toString(e),AQ.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),A0="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",A1={display:"none"};function A2(e){let{id:t,value:n}=e;return el.createElement("div",{id:t,style:A1},n)}function A4(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return el.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 A3=(0,el.createContext)(null),A5={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 "},A6={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 A8(e){let{announcements:t=A6,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=A5}=e,{announce:a,announcement:o}=function(){let[e,t]=(0,el.useState)("");return{announce:(0,el.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=Aq("DndLiveRegion"),[l,u]=(0,el.useState)(!1);if((0,el.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,el.useContext)(A3);(0,el.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,el.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])),!l)return null;let c=el.createElement(el.Fragment,null,el.createElement(A2,{id:r,value:i.draggable}),el.createElement(A4,{id:s,announcement:o}));return n?(0,ey.createPortal)(c,n):c}function A7(){}function A9(e,t){return(0,el.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(C=X||(X={})).DragStart="dragStart",C.DragMove="dragMove",C.DragEnd="dragEnd",C.DragCancel="dragCancel",C.DragOver="dragOver",C.RegisterDroppable="registerDroppable",C.SetDroppableDisabled="setDroppableDisabled",C.UnregisterDroppable="unregisterDroppable";let Te=Object.freeze({x:0,y:0});function Tt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let Tn=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(Tt)};function Tr(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Te}let Ti=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 Ta(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 To={ignoreTransform:!1};function Ts(e,t){void 0===t&&(t=To);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=AD(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=Ta(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),u=e.top-s-(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:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function Tl(e){return Ts(e,{ignoreTransform:!0})}function Tu(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if(AL(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Az(i)||AF(i)||n.includes(i))return n;let o=AD(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=AD(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=AD(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function Tc(e){let[t]=Tu(e,1);return null!=t?t:null}function Td(e){return AT&&e?AN(e)?e:AR(e)?AL(e)||e===AZ(e).scrollingElement?window:Az(e)?e:null:null:null}function Tf(e){return AN(e)?e.scrollX:e.scrollLeft}function Th(e){return AN(e)?e.scrollY:e.scrollTop}function Tp(e){return{x:Tf(e),y:Th(e)}}function Tm(e){return!!AT&&!!e&&e===document.scrollingElement}function Tg(e){let t={x:0,y:0},n=Tm(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}}(S=J||(J={}))[S.Forward=1]="Forward",S[S.Backward=-1]="Backward";let Tv={x:.2,y:.2};function Ty(e){return e.reduce((e,t)=>AY(e,Tp(t)),Te)}function Tb(e,t){if(void 0===t&&(t=Ts),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Tc(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let Tx=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Tf(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Th(t),0)}]];class Tw{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=Tu(t),r=Ty(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,Tx))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 Tj{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 Tk(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 TE(e){e.preventDefault()}function T_(e){e.stopPropagation()}(O=Q||(Q={})).Click="click",O.DragStart="dragstart",O.Keydown="keydown",O.ContextMenu="contextmenu",O.Resize="resize",O.SelectionChange="selectionchange",O.VisibilityChange="visibilitychange",(M=ee||(ee={})).Space="Space",M.Down="ArrowDown",M.Right="ArrowRight",M.Left="ArrowLeft",M.Up="ArrowUp",M.Esc="Escape",M.Enter="Enter";let TC={start:[ee.Space,ee.Enter],cancel:[ee.Esc],end:[ee.Space,ee.Enter]},TS=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ee.Right:return{...n,x:n.x+25};case ee.Left:return{...n,x:n.x-25};case ee.Down:return{...n,y:n.y+25};case ee.Up:return{...n,y:n.y-25}}};class TO{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 Tj(AZ(t)),this.windowListeners=new Tj(AD(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Q.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Tb(n),t(Te)}handleKeyDown(e){if(AX(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=TC,coordinateGetter:a=TS,scrollBehavior:o="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:Te;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=AG(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=Tg(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===ee.Right?h.right-h.width/2:h.right,Math.max(i===ee.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===ee.Down?h.bottom-h.height/2:h.bottom,Math.max(i===ee.Down?h.top:h.top+h.height/2,c.y))},m=i===ee.Right&&!s||i===ee.Left&&!l,g=i===ee.Down&&!u||i===ee.Up&&!a;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,a=i===ee.Right&&e<=d.x||i===ee.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===ee.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===ee.Down&&e<=d.y||i===ee.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===ee.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,AY(AG(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 TM(e){return!!(e&&"distance"in e)}function TP(e){return!!(e&&"delay"in e)}TO.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=TC,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 TA{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=AD(e);return e instanceof t?e:AZ(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=AZ(a),this.documentListeners=new Tj(this.document),this.listeners=new Tj(n),this.windowListeners=new Tj(AD(a)),this.initialCoordinates=null!=(r=AJ(i))?r:Te,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(Q.Resize,this.handleCancel),this.windowListeners.add(Q.DragStart,TE),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),this.windowListeners.add(Q.ContextMenu,TE),this.documentListeners.add(Q.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(TP(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(TM(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(Q.Click,T_,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Q.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 s=null!=(t=AJ(e))?t:Te,l=AG(r,s);if(!n&&o){if(TM(o)){if(null!=o.tolerance&&Tk(l,o.tolerance))return this.handleCancel();if(Tk(l,o.distance))return this.handleStart()}return TP(o)&&Tk(l,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ee.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let TT={move:{name:"pointermove"},end:{name:"pointerup"}};class TN extends TA{constructor(e){let{event:t}=e;super(e,TT,AZ(t.target))}}TN.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 TR={move:{name:"mousemove"},end:{name:"mouseup"}};(P=et||(et={}))[P.RightClick=2]="RightClick";class TD extends TA{constructor(e){super(e,TR,AZ(e.event.target))}}TD.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==et.RightClick&&(null==r||r({event:n}),!0)}}];let TL={move:{name:"touchmove"},end:{name:"touchend"}};class Tz extends TA{constructor(e){super(e,TL)}static setup(){return window.addEventListener(TL.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(TL.move.name,e)};function e(){}}}Tz.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)}}],(A=en||(en={}))[A.Pointer=0]="Pointer",A[A.DraggableRect=1]="DraggableRect",(T=er||(er={}))[T.TreeOrder=0]="TreeOrder",T[T.ReversedTreeOrder=1]="ReversedTreeOrder";let TF={x:{[J.Backward]:!1,[J.Forward]:!1},y:{[J.Backward]:!1,[J.Forward]:!1}};(N=ei||(ei={}))[N.Always=0]="Always",N[N.BeforeDragging=1]="BeforeDragging",N[N.WhileDragging=2]="WhileDragging",(ea||(ea={})).Optimized="optimized";let TZ=new Map;function TI(e,t){return AU(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function TB(e){let{callback:t,disabled:n}=e,r=AB(t),i=(0,el.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,el.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function TV(e){return new Tw(Ts(e),e)}function TU(e,t,n){void 0===t&&(t=TV);let[r,i]=(0,el.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=AB(t),i=(0,el.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,el.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=TB({callback:i});return AI(()=>{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 TH=[];function TW(e,t){void 0===t&&(t=[]);let n=(0,el.useRef)(null);return(0,el.useEffect)(()=>{n.current=null},t),(0,el.useEffect)(()=>{let t=e!==Te;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?AG(e,n.current):Te}function T$(e){return(0,el.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 Tq=[];function TK(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Az(t)?t:e}let TY=[{sensor:TN,options:{}},{sensor:TO,options:{}}],TG={current:{}},TX={draggable:{measure:Tl},droppable:{measure:Tl,strategy:ei.WhileDragging,frequency:ea.Optimized},dragOverlay:{measure:Ts}};class TJ 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 TQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new TJ,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:A7},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:TX,measureDroppableContainers:A7,windowRect:null,measuringScheduled:!1},T0={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:A7,draggableNodes:new Map,over:null,measureDroppableContainers:A7},T1=(0,el.createContext)(T0),T2=(0,el.createContext)(TQ);function T4(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new TJ}}}function T3(e,t){switch(t.type){case X.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case X.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 X.DragEnd:case X.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case X.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new TJ(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case X.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 TJ(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case X.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new TJ(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function T5(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,el.useContext)(T1),a=AW(r),o=AW(null==n?void 0:n.id);return(0,el.useEffect)(()=>{if(!t&&!r&&a&&null!=o){if(!AX(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(A0)?e:e.querySelector(A0);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function T6(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let T8=(0,el.createContext)({...Te,scaleX:1,scaleY:1});(R=eo||(eo={}))[R.Uninitialized=0]="Uninitialized",R[R.Initializing=1]="Initializing",R[R.Initialized=2]="Initialized";let T7=(0,el.memo)(function(e){var t,n,r,i,a,o;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=TY,collisionDetection:f=Tn,measuring:h,modifiers:p,...m}=e,[g,v]=(0,el.useReducer)(T3,void 0,T4),[y,b]=function(){let[e]=(0,el.useState)(()=>new Set),t=(0,el.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,el.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]}(),[x,w]=(0,el.useState)(eo.Uninitialized),j=x===eo.Initialized,{draggable:{active:k,nodes:E,translate:_},droppable:{containers:C}}=g,S=k?E.get(k):null,O=(0,el.useRef)({initial:null,translated:null}),M=(0,el.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==S?void 0:S.data)?e:TG,rect:O}:null},[k,S]),P=(0,el.useRef)(null),[A,T]=(0,el.useState)(null),[N,R]=(0,el.useState)(null),D=AV(m,Object.values(m)),L=Aq("DndDescribedBy",s),z=(0,el.useMemo)(()=>C.getEnabled(),[C]),F=(0,el.useMemo)(()=>({draggable:{...TX.draggable,...null==h?void 0:h.draggable},droppable:{...TX.droppable,...null==h?void 0:h.droppable},dragOverlay:{...TX.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:I,measuringScheduled:B}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,el.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,el.useRef)(e),d=function(){switch(u){case ei.Always:return!1;case ei.BeforeDragging:return n;default:return!n}}(),f=AV(d),h=(0,el.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,el.useRef)(null),m=AU(t=>{if(d&&!n)return TZ;if(!t||t===TZ||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 Tw(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,l]);return(0,el.useEffect)(()=>{c.current=e},[e]),(0,el.useEffect)(()=>{d||h()},[n,d]),(0,el.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,el.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(z,{dragging:j,dependencies:[_.x,_.y],config:F.droppable}),V=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return AU(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),U=(0,el.useMemo)(()=>N?AJ(N):null,[N]),H=function(){let e=(null==A?void 0:A.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=TI(V,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,el.useRef)(!1),{x:o,y:s}="boolean"==typeof i?{x:i,y:i}:i;AI(()=>{if(!o&&!s||!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=Tr(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Tc(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}({activeNode:k?E.get(k):null,config:H.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let $=TU(V,F.draggable.measure,W),q=TU(V?V.parentElement:null),K=(0,el.useRef)({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:Z,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Y=C.getNodeFor(null==(t=K.current.over)?void 0:t.id),G=function(e){let{measure:t}=e,[n,r]=(0,el.useState)(null),i=TB({callback:(0,el.useCallback)(e=>{for(let{target:n}of e)if(Az(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=AH((0,el.useCallback)(e=>{let n=TK(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,el.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:F.dragOverlay.measure}),Q=null!=(n=G.nodeRef.current)?n:V,ee=j?null!=(r=G.rect)?r:$:null,et=!!(G.nodeRef.current&&G.rect),ea=function(e){let t=TI(e);return Tr(e,t)}(et?null:$),es=T$(Q?AD(Q):null),eu=function(e){let t=(0,el.useRef)(e),n=AU(n=>e?n&&n!==TH&&e&&t.current&&e.parentNode===t.current.parentNode?n:Tu(e):TH,[e]);return(0,el.useEffect)(()=>{t.current=e},[e]),n}(j?null!=Y?Y:V:null),ec=function(e,t){void 0===t&&(t=Ts);let[n]=e,r=T$(n?AD(n):null),[i,a]=(0,el.useReducer)(function(){return e.length?e.map(e=>Tm(e)?r:new Tw(t(e),e)):Tq},Tq),o=TB({callback:a});return e.length>0&&i===Tq&&a(),AI(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),a())},[e]),i}(eu),ed=T6(p,{transform:{x:_.x-ea.x,y:_.y-ea.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:$,containerNodeRect:q,draggingNodeRect:ee,over:K.current.over,overlayNodeRect:G.rect,scrollableAncestors:eu,scrollableAncestorRects:ec,windowRect:es}),ef=U?AY(U,_):null,eh=function(e){let[t,n]=(0,el.useState)(null),r=(0,el.useRef)(e),i=(0,el.useCallback)(e=>{let t=Td(e.target);t&&n(e=>e?(e.set(t,Tp(t)),new Map(e)):null)},[]);return(0,el.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=Td(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Tp(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=Td(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,el.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>AY(e,t),Te):Ty(e):Te,[e,t])}(eu),ep=TW(eh),em=TW(eh,[$]),eg=AY(ed,ep),ev=ee?Ti(ee,ed):null,eb=M&&ev?f({active:M,collisionRect:ev,droppableRects:Z,droppableContainers:z,pointerCoordinates:ef}):null,ex=function(e,t){if(!e||0===e.length)return null;let[n]=e;return n.id}(eb,0),[ew,ej]=(0,el.useState)(null),ek=(a=et?ed:AY(ed,em),o=null!=(i=null==ew?void 0:ew.rect)?i:null,{...a,scaleX:o&&$?o.width/$.width:1,scaleY:o&&$?o.height/$.height:1}),eE=(0,el.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==P.current)return;let i=E.get(P.current);if(!i)return;let a=e.nativeEvent,o=new n({active:P.current,activeNode:i,event:a,options:r,context:K,onStart(e){let t=P.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:O}};(0,ey.unstable_batchedUpdates)(()=>{null==r||r(i),w(eo.Initializing),v({type:X.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){v({type:X.DragMove,coordinates:e})},onEnd:s(X.DragEnd),onCancel:s(X.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=K.current,o=null;if(t&&i){let{cancelDrop:s}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===X.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(e=X.DragCancel)}P.current=null,(0,ey.unstable_batchedUpdates)(()=>{v({type:e}),w(eo.Uninitialized),ej(null),T(null),R(null);let t=e===X.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=D.current[t];null==e||e(o),y({type:t,event:o})}})}}(0,ey.unstable_batchedUpdates)(()=>{T(o),R(e.nativeEvent)})},[E]),e_=(0,el.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=E.get(r);null!==P.current||!a||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:a})||(i.dndKit={capturedBy:t.sensor},P.current=r,eE(n,t))},[E,eE]),eC=(0,el.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e_(e.handler,t)}))]},[]),[d,e_]);(0,el.useEffect)(()=>{if(!AT)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})),AI(()=>{$&&x===eo.Initializing&&w(eo.Initialized)},[$,x]),(0,el.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,ey.unstable_batchedUpdates)(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[eg.x,eg.y]),(0,el.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=K.current;if(!e||null==P.current||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(ex),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,ey.unstable_batchedUpdates)(()=>{ej(s),null==a||a(l),y({type:"onDragOver",event:l})})},[ex]),AI(()=>{K.current={activatorEvent:N,active:M,activeNode:V,collisionRect:ev,collisions:eb,droppableRects:Z,draggableNodes:E,draggingNode:Q,draggingNodeRect:ee,droppableContainers:C,over:ew,scrollableAncestors:eu,scrollAdjustedTranslate:eg},O.current={initial:ee,translated:ev}},[M,V,eb,ev,E,Q,ee,Z,C,ew,eu,eg]),function(e){let{acceleration:t,activator:n=en.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=er.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=AW(t);return AU(e=>{if(n||!r||!e)return TF;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[J.Backward]:e.x[J.Backward]||-1===i.x,[J.Forward]:e.x[J.Forward]||1===i.x},y:{[J.Backward]:e.y[J.Backward]||-1===i.y,[J.Forward]:e.y[J.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!a}),[p,m]=function(){let e=(0,el.useRef)(null);return[(0,el.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,el.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,el.useRef)({x:0,y:0}),v=(0,el.useRef)({x:0,y:0}),y=(0,el.useMemo)(()=>{switch(n){case en.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case en.DraggableRect:return i}},[n,i,l]),b=(0,el.useRef)(null),x=(0,el.useCallback)(()=>{let e=b.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,el.useMemo)(()=>s===er.TreeOrder?[...u].reverse():u,[s,u]);(0,el.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:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Tv);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=Tg(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=J.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=J.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=J.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(h.x=J.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(),b.current=e,p(x,o),g.current=a,v.current=i;return}}g.current={x:0,y:0},v.current={x:0,y:0},m()},[t,x,r,m,a,o,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...H,delta:_,draggingRect:ev,pointerCoordinates:ef,scrollableAncestors:eu,scrollableAncestorRects:ec});let eS=(0,el.useMemo)(()=>({active:M,activeNode:V,activeNodeRect:$,activatorEvent:N,collisions:eb,containerNodeRect:q,dragOverlay:G,draggableNodes:E,droppableContainers:C,droppableRects:Z,over:ew,measureDroppableContainers:I,scrollableAncestors:eu,scrollableAncestorRects:ec,measuringConfiguration:F,measuringScheduled:B,windowRect:es}),[M,V,$,N,eb,q,G,E,C,Z,ew,I,eu,ec,F,B,es]),eO=(0,el.useMemo)(()=>({activatorEvent:N,activators:eC,active:M,activeNodeRect:$,ariaDescribedById:{draggable:L},dispatch:v,draggableNodes:E,over:ew,measureDroppableContainers:I}),[N,eC,M,$,v,L,E,ew,I]);return el.createElement(A3.Provider,{value:b},el.createElement(T1.Provider,{value:eO},el.createElement(T2.Provider,{value:eS},el.createElement(T8.Provider,{value:ek},c)),el.createElement(T5,{disabled:(null==l?void 0:l.restoreFocus)===!1})),el.createElement(A8,{...l,hiddenTextDescribedById:L}))}),T9=(0,el.createContext)(null),Ne="button",Nt={timeout:25};function Nn(e){let{animation:t,children:n}=e,[r,i]=(0,el.useState)(null),[a,o]=(0,el.useState)(null),s=AW(n);return n||r||!s||i(s),AI(()=>{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]),el.createElement(el.Fragment,null,n,r?(0,el.cloneElement)(r,{ref:o}):null)}let Nr={x:0,y:0,scaleX:1,scaleY:1};function Ni(e){let{children:t}=e;return el.createElement(T1.Provider,{value:T0},el.createElement(T8.Provider,{value:Nr},t))}let Na={position:"fixed",touchAction:"none"},No=e=>AX(e)?"transform 250ms ease":void 0,Ns=(0,el.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:l,transform:u,transition:c=No}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...Na,width:s.width,height:s.height,top:s.top,left:s.left,transform:AQ.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=AJ(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,s):void 0,transition:"function"==typeof c?c(r):c,...l};return el.createElement(n,{className:o,style:f,ref:t},a)}),Nl={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:AQ.Transform.toString(t)},{transform:AQ.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)}})},Nu=0,Nc=el.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:v,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:j}=(0,el.useContext)(T2),k=(0,el.useContext)(T8),E=(t=null==f?void 0:f.id,(0,el.useMemo)(()=>{if(null!=t)return++Nu},[t])),_=T6(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:k,windowRect:j}),C=TI(h),S=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return AB((e,a)=>{if(null===t)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let l=TK(a);if(!l)return;let{transform:u}=AD(a).getComputedStyle(a),c=Ta(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Nl,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...l}=e;if(!t)return;let u={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},c={scaleX:1!==s.scaleX?a.rect.width*s.scaleX/o.rect.width:1,scaleY:1!==s.scaleY?a.rect.height*s.scaleY/o.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:a,dragOverlay:o,transform:{initial:s,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,...l}),g=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==m||m(),e()}})}}(t);return Tb(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:g,measuringConfiguration:b}),O=C?v.setRef:void 0;return el.createElement(Ni,null,el.createElement(Nn,{animation:S},f&&E?el.createElement(Ns,{key:E,id:f.id,ref:O,as:l,activatorEvent:d,adjustScale:n,className:u,transition:o,rect:C,style:{zIndex:c,...a},transform:_},r):null))});function Nd(){return(0,el.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:a,context:o,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,es.jsx)("tr",{ref:t,...i,...a,style:r,id:n.id,"data-testid":n.id,onClick:n.onClick,className:(0,tl.cx)("border-b",n.isSelected?["bg-blue-400 border-blue-500/30","dark:bg-blue-600/50 dark:border-blue-600/20"]:"border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",n.className,h),children:s.map((e,t)=>{let{id:r,render:i,contentClassName:a,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,es.jsx)("td",{"data-testid":r,className:(0,tl.cx)(d(t,(0,tl.cx)(s,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,es.jsx)("div",{className:(0,tl.cx)(f(t,(0,tl.cx)(a,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,es.jsx)(i,{data:n,context:o})})},"".concat(r,"/").concat(n.id))})},n.id)})}function Nf(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Aq("Droppable"),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,el.useContext)(T1),{role:h=Ne,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==l?void 0:l.id)===t,v=(0,el.useContext)(g?T8:T9),[y,b]=AH(),[x,w]=AH(),j=(0,el.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[o,t]),k=AV(n);return AI(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:k}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,el.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&h===Ne||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:b,setActivatorNodeRef:w,transform:v}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,el.useMemo)(()=>Nd(),[]);return(0,es.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:s,getContentClassNames:l})}function Nh(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Aq("Droppable"),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=(0,el.useContext)(T1),c=(0,el.useRef)({disabled:n}),d=(0,el.useRef)(!1),f=(0,el.useRef)(null),h=(0,el.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...Nt,...i},v=AV(null!=m?m:r),y=TB({callback:(0,el.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}),[b,x]=AH((0,el.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=AV(t);return(0,el.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),AI(()=>(s({type:X.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:w}}),()=>s({type:X.UnregisterDroppable,key:a,id:r})),[r]),(0,el.useEffect)(()=>{n!==c.current.disabled&&(s({type:X.SetDroppableDisabled,id:r,key:a,disabled:n}),c.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:x}}({id:t.id}),d=(0,el.useMemo)(()=>Nd(),[]);return(0,es.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:s,getContentClassNames:l})}function Np(e){let{columns:t,data:n,context:r={},sortField:i,sortDirection:a,sortableColumns:o,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,draggingDatums:b,draggingMultipleLabel:x=e=>"Move selection (".concat(e,")"),testId:w}=e,j="emptyState";!c||(null==n?void 0:n.length)||(j="skeleton"),(null==n?void 0:n.length)&&(j="currentData");let k=(0,el.useCallback)((e,n,r)=>(0,tl.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]),E=(0,el.useCallback)((e,t)=>(0,tl.cx)("flex items-center",t),[]),_=(0,el.useMemo)(()=>Nd(),[]),C=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(A9(TD,{activationConstraint:{distance:10}}),A9(Tz,{activationConstraint:{delay:250,tolerance:5}})),S=(0,el.useMemo)(()=>t.some(e=>{let{summary:t}=e;return t&&t({context:r})}),[t,r]);return(0,es.jsxs)(T7,{sensors:C,onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,children:[(0,es.jsx)(Nc,{children:b?1===b.length?(0,es.jsx)(n6,{className:"inline-block",children:(0,es.jsx)("table",{children:(0,es.jsx)("tbody",{children:(0,es.jsx)(_,{className:"pointer-events-none",data:b[0],context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},b[0].id)})})}):(0,es.jsx)(n6,{className:"inline-block py-2 px-4",children:(0,es.jsx)(n4,{children:x(b.length)})}):null}),(0,es.jsxs)(n6,{children:[(0,es.jsxs)("table",{"data-testid":w,onMouseDown:e=>{e.shiftKey&&e.preventDefault()},"data-loading":"skeleton"===j,className:"relative z-10 table-auto border-collapse w-full",children:[(0,es.jsxs)("thead",{className:(0,tl.cx)("sticky -top-px z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,es.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:l,heading:u,label:c,tip:d,cellClassName:f,contentClassName:h}=e,p=(null==o?void 0:o.includes(n))&&!!s,m=i===n;return(0,es.jsx)("th",{"data-testid":n,className:(0,tl.cx)(k(t,f,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,es.jsx)("div",{className:"overflow-hidden py-3",children:(0,es.jsxs)("div",{onClick:()=>{p&&s(n)},className:(0,tl.cx)(E(t,h),p?"cursor-pointer":""),children:[u?(0,es.jsx)(u,{context:r}):null,(0,es.jsx)(l7,{content:d,children:(0,es.jsxs)(n4,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[l?(0,es.jsx)("div",{children:l}):null,(0,es.jsx)(n4,{ellipsis:!0,size:"12",weight:"medium",children:c})]})}),m&&(0,es.jsx)(n4,{color:"contrast",children:"asc"===a?(0,es.jsx)(ut.MR9,{className:"scale-75"}):(0,es.jsx)(ut.cRw,{className:"scale-75"})}),p&&!m&&(0,es.jsx)(n4,{color:"verySubtle",children:(0,es.jsx)(ut.MR9,{className:"scale-75"})})]})})},n)})}),S&&(0,es.jsx)("tr",{children:t.map((e,t)=>{let{id:n,cellClassName:i,contentClassName:a,summary:o}=e;return(0,es.jsx)("th",{"data-testid":n,className:(0,tl.cx)(k(t,i,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,es.jsx)("div",{className:"overflow-hidden py-3",children:(0,es.jsx)("div",{className:(0,tl.cx)(E(t,a)),children:o&&(0,es.jsx)(o,{context:r})})})},n)})})]}),(0,es.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===j&&(null==n?void 0:n.map(e=>(null==b?void 0:b.find(t=>t.id===e.id))?null:e.isDraggable?(0,es.jsx)(Nf,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},e.id):e.isDroppable?(0,es.jsx)(Nh,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},e.id):(0,es.jsx)(_,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},e.id))),"skeleton"===j&&Ad(u).map(e=>(0,es.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,es.jsx)("td",{className:k(t,i,!1),children:(0,es.jsx)("div",{className:(0,tl.cx)(E(t,r),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===j&&d]})]})}function Nm(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,a=(0,gv.j0)();return(0,es.jsxs)(uM,{children:[(0,es.jsx)(ue,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,es.jsx)("div",{className:"flex scale-[0.65]",children:(0,es.jsx)(ut.XJM,{})})}),(0,es.jsx)(ue,{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,es.jsx)(ut.bdU,{})}),(0,es.jsx)(ue,{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,es.jsx)(ME,{className:"px-2"}):"No results"}),(0,es.jsx)(ue,{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,es.jsx)(ut.VUy,{})}),(0,es.jsx)(ue,{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,es.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,es.jsx)(ut.RRj,{})})})]})}function Ng(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,a=(0,gv.j0)();return(0,es.jsxs)(uM,{children:[(0,es.jsx)(ue,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,es.jsx)("div",{className:"flex scale-[0.65]",children:(0,es.jsx)(ut.XJM,{})})}),(0,es.jsx)(ue,{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,es.jsx)(ut.bdU,{})}),i?(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,es.jsx)(ME,{className:"px-2"})}):r?(0,es.jsxs)(ue,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,es.jsx)(ue,{icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:t+n}}),children:(0,es.jsx)(ut.VUy,{})})]})}function Nv(e){let{marker:t,isMore:n,pageTotal:r,isLoading:i}=e,a=(0,gv.j0)();return(0,es.jsxs)(uM,{children:[(0,es.jsx)(ue,{icon:"contrast",size:"small",variant:"gray",className:"rounded-r-none",disabled:!t,onClick:()=>a.push({query:{...a.query,marker:""}}),children:(0,es.jsx)("div",{className:"flex scale-[0.65]",children:(0,es.jsx)(ut.XJM,{})})}),i?(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,es.jsx)(ME,{className:"px-2"})}):r?(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",children:r}):(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,es.jsx)(ue,{icon:"contrast",disabled:!n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,marker:t}}),children:(0,es.jsx)(ut.VUy,{})})]})}function Ny(e){let{separator:t,children:n}=e,r=el.Children.toArray(n).filter(e=>el.isValidElement(e)&&("function"!=typeof e.type||null!==e.type(e.props)));return(0,es.jsx)(es.Fragment,{children:r.map((e,n)=>{var i,a;return(0,es.jsxs)(el.Fragment,{children:[e,ns(),children:(0,es.jsx)(ut.UG6,{})}),(0,es.jsx)(NS,{title:"Lock app",onClick:o,children:(0,es.jsx)(ut.mBM,{})})]})]})})}var NP=Object.create,NA=Object.defineProperty,NT=Object.getOwnPropertyDescriptor,NN=Object.getOwnPropertyNames,NR=Object.getPrototypeOf,ND=Object.prototype.hasOwnProperty,NL=(s=(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=new WeakMap,i=(t=function(e,t){return r.set(e,t),t},function(e){var i=r.get(e),a=void 0===i?e.size:i<1073741824?i+1:0;if(!e.has(a))return t(e,a);if(e.size<536870912){for(;e.has(a);)a=Math.floor(1073741824*Math.random());return t(e,a)}if(e.size>n)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=i(e);return e.add(t),t},e.generateUniqueNumber=i},"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={})},()=>(l||s((l={exports:{}}).exports,l),l.exports));el.Component;var Nz=(d=null!=(u=NL())?NP(NR(u)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of NN(t))ND.call(e,i)||i===n||NA(e,i,{get:()=>t[i],enumerable:!(r=NT(t,i))||r.enumerable});return e})(!c&&u&&u.__esModule?d:NA(d,"default",{value:u,enumerable:!0}),u)),NF=e=>void 0!==e.method&&"call"===e.method,NZ=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(NF(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(NZ(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:s}=a;r.delete(i),"interval"===s?t.delete(o):n.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,Nz.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,Nz.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,Nz.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,Nz.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},z='(()=>{"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})}}))})();',f=null,()=>{if(null!==f)return f;let e=new Blob([z],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return f=L(t),setTimeout(()=>URL.revokeObjectURL(t)),f};var NI=(typeof window>"u"?"undefined":typeof window)=="object",NB={setTimeout:NI?setTimeout.bind(window):setTimeout,clearTimeout:NI?clearTimeout.bind(window):clearTimeout,setInterval:NI?setInterval.bind(window):setInterval,clearInterval:NI?clearInterval.bind(window):clearInterval},NV={},NU=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,NV[e]=NV[e]||[],NV[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),NB.setTimeout(()=>{window.localStorage.removeItem(n)},500),NV[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=NV[this.name].indexOf(this);NV[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)}},NH=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:NU;function NW(){return Math.random().toString(36).substring(2)}var N$=class{options;channel;token=NW();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=>NB.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{NB.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=NB.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=>NB.clearInterval(e))}catch{}}}},Nq=class{channel;options;elector;token=NW();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new NH(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new N$(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()}},NK=NI?document:null,NY=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function NG(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function NJ(e){let{route:t}=e,n=(0,y4.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function NQ(e){let{appName:t,title:n,navTitle:r,profile:i,size:a="4",banner:o,nav:s,actions:l,stats:u,after:c,dockedControls:d,children:f,sidenav:h,connectivityRoute:p,isSynced:m,showWallet:g,walletBalanceSc:v,routes:y,scroll:b=!0,openSettings:x}=e,{lock:w,settings:j}=(0,y4.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:a}=NJ({route:n}),{settings:o}=(0,y4.Hv)(),s=(0,gv.j0)();(0,el.useEffect)(()=>{if(a)return;let e=!s.asPath.startsWith(r.login),n=!o.password||!i;if(e&&n){t();return}},[s,o.password,i,a])}({lock:w,route:p,routes:y}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=NK,events:i=NY,timers:a,immediateEvents:o=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},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:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,el.useRef)(NX()),_=(0,el.useRef)(NX()),C=(0,el.useRef)(null),S=(0,el.useRef)(null),O=(0,el.useRef)(0),M=(0,el.useRef)(0),P=(0,el.useRef)(0),A=(0,el.useRef)(0),T=(0,el.useRef)(!1),N=(0,el.useRef)(!1),R=(0,el.useRef)(!1),D=(0,el.useRef)(!0),L=(0,el.useRef)(!1),z=(0,el.useRef)(null),F=(0,el.useRef)(null),Z=(0,el.useRef)(e),I=(0,el.useRef)(0);(0,el.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(Z.current=e-n,I.current=n):(Z.current=e,I.current=t),!D.current){if(v||k)return;T.current&&(Y.current(null,eA),F.current&&F.current.active()),ed()}},[e,t,n,v,k]);let B=(0,el.useRef)(y);(0,el.useEffect)(()=>{B.current=y},[y]);let V=(0,el.useRef)(o),U=(0,el.useRef)(r),H=(0,el.useRef)([...new Set([...i,...o]).values()]),W=(0,el.useRef)(k);(0,el.useEffect)(()=>{W.current=k,!D.current&&(k?ep():v||ed())},[k]);let $=(0,el.useRef)(s);(0,el.useEffect)(()=>{$.current=s},[s]);let q=(0,el.useRef)(l);(0,el.useEffect)(()=>{q.current=l},[l]);let K=(0,el.useRef)(u);(0,el.useEffect)(()=>{K.current=u},[u]);let Y=(0,el.useRef)(c);(0,el.useEffect)(()=>{Y.current=c},[c]);let G=(0,el.useRef)(d);(0,el.useEffect)(()=>{G.current=d},[d]);let X=(0,el.useRef)(f);(0,el.useEffect)(()=>{X.current=f},[f]);let J=(0,el.useMemo)(()=>{let e=(e,t)=>G.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?NG(e,p):e},[p,h]),Q=(0,el.useRef)();(0,el.useEffect)(()=>{b&&w&&(Q.current=NG(()=>{F.current.active()},w))},[b,w]);let ee=()=>{null!==z.current&&(NB.clearTimeout(z.current),z.current=null)},et=(e,t=!0)=>{ee(),z.current=NB.setTimeout(ea,e||Z.current),t&&(S.current=NX())},en=e=>{N.current||T.current||(q.current(e,eA),$.current({type:"active",prompted:!0},eA)),A.current=0,P.current=NX(),N.current=!0,et(I.current,!1)},er=()=>{ee(),T.current||(K.current(null,eA),$.current({type:"idle"},eA)),T.current=!0,C.current=NX(),B.current?ec():N.current&&(P.current=0,N.current=!1)},ei=e=>{ee(),(T.current||N.current)&&(Y.current(e,eA),$.current({type:"active",prompted:!1},eA)),N.current=!1,P.current=0,T.current=!1,O.current+=NX()-C.current,M.current+=NX()-C.current,eu(),et()},ea=e=>{if(!T.current){J.cancel&&J.cancel();let t=NX()-S.current;if(!(Z.current+I.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)},eo=e=>{if(g||S.current||(S.current=NX(),Y.current(null,eA)),J(e,eA),N.current)return;if(ee(),!T.current&&V.current.includes(e.type)){ea(e);return}let t=NX()-S.current;if(T.current&&!y||!T.current&&t>=Z.current){ea(e);return}R.current=!1,A.current=0,P.current=0,et(),b&&w&&Q.current()},es=(0,el.useRef)(eo);(0,el.useEffect)(()=>{let e=L.current;e&&ec(),m>0?es.current=NG(eo,m):es.current=eo,e&&eu()},[m,p,h,G,b,w]);let eu=()=>{NI&&U.current&&(L.current||(H.current.forEach(e=>{U.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{NI&&U.current&&(L.current||e)&&(H.current.forEach(e=>{U.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ed=(0,el.useCallback)(e=>!W.current&&(ee(),eu(),T.current=!1,N.current=!1,R.current=!1,A.current=0,P.current=0,F.current&&!e&&F.current.start(),et(),!0),[z,T,W,Z,F]),ef=(0,el.useCallback)(e=>!W.current&&(ee(),eu(),_.current=NX(),O.current+=NX()-C.current,M.current+=NX()-C.current,O.current=0,T.current=!1,N.current=!1,R.current=!1,A.current=0,P.current=0,F.current&&!e&&F.current.reset(),v||et(),!0),[z,T,Z,v,W,F]),eh=(0,el.useCallback)(e=>!W.current&&(ee(),eu(),(T.current||N.current)&&ei(),T.current=!1,N.current=!1,R.current=!1,A.current=0,P.current=0,_.current=NX(),F.current&&!e&&F.current.activate(),et(),!0),[z,T,N,W,Z,F]),ep=(0,el.useCallback)((e=!1)=>!W.current&&!R.current&&(A.current=ej(),R.current=!0,ec(),ee(),F.current&&!e&&F.current.pause(),!0),[z,W,F]),em=(0,el.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||eu(),T.current||et(A.current),P.current&&(P.current=NX()),F.current&&!e&&F.current.resume(),!0),[z,Z,W,A,F]),eg=(0,el.useCallback)((e,t)=>(F.current?(t&&X.current(e,eA),F.current.message(e)):t&&X.current(e,eA),!0),[f]),ev=(0,el.useCallback)(()=>T.current,[T]),ey=(0,el.useCallback)(()=>N.current,[N]),eb=(0,el.useCallback)(()=>F.current?F.current.isLeader:null,[F]),ex=(0,el.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,el.useCallback)(()=>F.current?F.current.token:null,[F]),ej=(0,el.useCallback)(()=>{if(R.current)return A.current;let e=Math.floor((A.current?A.current:I.current+Z.current)-(S.current?NX()-S.current:0));return e<0?0:Math.abs(e)},[Z,I,N,A,S]),ek=(0,el.useCallback)(()=>Math.round(NX()-_.current),[_]),eE=(0,el.useCallback)(()=>Math.round(NX()-E.current),[E]),e_=(0,el.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,el.useCallback)(()=>S.current?new Date(S.current):null,[S]),eS=(0,el.useCallback)(()=>T.current?Math.round(NX()-C.current+O.current):Math.round(O.current),[C,O]),eO=(0,el.useCallback)(()=>T.current?Math.round(NX()-C.current+M.current):Math.round(M.current),[C,M]),eM=(0,el.useCallback)(()=>{let e=Math.round(ek()-eS());return e>=0?e:0},[C,O]),eP=(0,el.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[C,O]);(0,el.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(NB.setTimeout=a.setTimeout,NB.clearTimeout=a.clearTimeout,NB.setInterval=a.setInterval,NB.clearInterval=a.clearInterval);let e=()=>{F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)};return NI&&window.addEventListener("beforeunload",e),()=>{NI&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)}},[]),(0,el.useEffect)(()=>{F.current&&F.current.close(),b?F.current=new Nq({channelName:x,leaderElection:j,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{X.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):F.current=null},[b,x,j,q,K,Y,X,ed,ef,ep,em]),(0,el.useEffect)(()=>{D.current||(ee(),ec(!0)),v||k||(g?ed():eu())},[v,g,k,D]),(0,el.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...o]).values()];ec(),H.current=e,U.current=r,V.current=o,v||k||(g?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(o),D,k,v,g]),(0,el.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eA={message:eg,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:ev,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:e_,getLastActiveTime:eC,getIdleTime:eS,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eP,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,q.current=e},setOnIdle:e=>{u=e,K.current=e},setOnActive:e=>{c=e,Y.current=e},setOnAction:e=>{d=e,G.current=e},setOnMessage:e=>{f=e,X.current=e}}}({disabled:!t,onIdle:(0,el.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,es.jsxs)(Nk,{appName:t,title:n,children:[(0,es.jsx)(Nw,{}),(0,es.jsxs)("div",{className:"flex flex-col h-full w-full",children:[o,(0,es.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,es.jsx)(NM,{routes:y,profile:i,openSettings:x,lock:w,showWallet:g,walletBalanceSc:v,isSynced:m,children:h}),(0,es.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,es.jsx)(Nb,{title:void 0===r?n:r,nav:s,actions:l,stats:u,after:c}),b?(0,es.jsx)(fb,{className:"z-0",children:(0,es.jsx)(uQ,{size:a,pad:!1,children:(0,es.jsx)("div",{className:"flex flex-col gap-5",children:f})})}):(0,es.jsx)(uQ,{size:a,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:f}),(0,es.jsx)("div",{className:"z-20 fixed bottom-5 left-0 right-0 flex justify-center dark pointer-events-none",children:d})]})]})]})]})}function N0(e,t,n,r){let[i,a]=(0,el.useState)();return(0,el.useEffect)(()=>{!t&&e&&a(e.length)},[t,e,a]),(0,el.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}(0,el.createContext)(null).Consumer;var N1=n(89644),N2=n.n(N1),N4=n(63955),N3=n(68650);function N5(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:s}=t.register(r,n.validation),l=(0,el.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),u=(0,el.useCallback)(()=>{var e;t.trigger(r),null===(e=n.trigger)||void 0===e||e.forEach(e=>t.trigger(e))},[t,n,r]),c=(0,el.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:l,setValue:c}}function N6(e){return(0,el.useCallback)(t=>{PX({title:"Error",body:(0,N3.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function N8(e){let{name:t,form:n,fields:r}=e,i=r[t];return!i.hidden&&(!i.show||i.show(n.getValues()))}function N7(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:a,spellCheck:o,state:s=!0,group:l=!0,type:u}=e,c=r[t],{ref:d,onChange:f,onBlur:h,error:p}=N5({name:t,form:n,field:c}),m=(0,es.jsx)(yS,{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:s?p?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:f,onBlur:h});return l?(0,es.jsx)(Ak,{title:c.title,actions:c.actions,name:t,form:n,children:m}):m}var N9=n(78790);async function Re(e){let{api:t,route:n,password:r}=e;try{return await N2().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 Rt(e){let{appName:t,route:n,routes:r}=e,i=(0,gv.j0)(),{settings:a,setRequestSettings:o}=(0,y4.Hv)(),{loginWithCustomApi:s}=a,l=(0,el.useMemo)(()=>({api:a.api,password:""}),[a.api]),u=(0,N4.cI)({mode:"onBlur",defaultValues:l});(0,el.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,el.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await Re({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(l))},[s,u,i,r,a,o,l,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:s}),f=N6(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,N9.Z)(Object.entries(a.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,es.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,es.jsx)(n6,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,es.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,es.jsxs)("div",{className:"flex justify-between items-center",children:[(0,es.jsx)(n4,{font:"mono",weight:"bold",size:"20",children:t}),(0,es.jsx)(gh,{label:"login settings",trigger:(0,es.jsx)(ue,{icon:"hover",variant:"ghost",children:(0,es.jsx)(ut.shL,{})}),children:(0,es.jsx)(gp,{onSelect:()=>o({loginWithCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,es.jsx)(gn,{className:"w-full mt-2 mb-3"}),(0,es.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,es.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,es.jsxs)(uM,{children:[(0,es.jsx)(N7,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,es.jsx)(gh,{trigger:(0,es.jsx)(ue,{type:"button",children:(0,es.jsx)(ut.wGX,{})}),children:p.map(e=>(0,es.jsx)(gp,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,es.jsx)(N7,{name:"password",form:u,fields:d,group:!1}),h&&(0,es.jsx)(n4,{size:"14",color:"red",children:h.message}),(0,es.jsx)(AE,{size:"small",form:u,children:"Unlock"})]})})]})})})}function Rn(e){let{children:t}=e;return(0,es.jsx)(rM,{children:t&&(0,es.jsx)(l5.div,{className:"pointer-events-auto",initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.2},children:t})})}function Rr(e){let{name:t,form:n,fields:r,size:i="medium",group:a=!0,before:o,children:s}=e,l=r[t],{setValue:u,onBlur:c,value:d,error:f}=N5({name:t,field:l,form:n}),h=(0,es.jsxs)("div",{className:"flex gap-1 items-center",children:[o,(0,es.jsx)(b_,{"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}),s]});return a?(0,es.jsx)(Ak,{title:l.title,name:t,form:n,className:"pb-[1.5px]",children:h}):h}function Ri(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6,showFiat:h}=o,{setValue:p,onBlur:m,value:g,error:v}=N5({name:t,field:o,form:n}),y=(0,el.useMemo)(()=>s?new(y0())(s):u&&"boolean"!=typeof u?new(y0())(u):l&&"boolean"!=typeof l?new(y0())(l):void 0,[s,u,l]),b=(0,es.jsx)(y3,{name:t,size:i,sc:g,units:c,showFiat:h,decimalsLimitSc:d,decimalsLimitFiat:f,readOnly:o.readOnly,error:v,changed:n.formState.dirtyFields[t],placeholder:y,onChange:e=>{p(e,!0)},onBlur:m});return a?(0,es.jsx)(Ak,{title:o.title,name:t,form:n,children:b}):b}let Ra={address:"",siacoin:void 0,includeFee:!1};function Ro(e){let{hastings:t,includeFee:n,fee:r}=e;return n?t:t.plus(r)}function Rs(e){let{address:t,hastings:n,fee:r,transactionId:i}=e,a=n.plus(r);return(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,es.jsx)(P6,{testId:"address",value:t,type:"address"})]}),(0,es.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"amount",size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,es.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"networkFee",size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,es.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"total",size:"14",value:a,variant:"value",dynamicUnits:!1})})]}),i&&(0,es.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,es.jsx)(P6,{testId:"transactionId",value:i,type:"transaction"})]})]})}function Rl(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),a=n.length-1;return(0,es.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,es.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,es.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:s}=e,l=t===o,u=i>=n,c=n===a,d=0===n,f=u&&i!==a;return(0,es.jsxs)("div",{className:(0,tl.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,es.jsx)(n4,{color:l?"contrast":"verySubtle",className:(0,tl.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,es.jsx)("div",{className:(0,tl.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,es.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 Ru(e){let{data:{address:t,hastings:n},fee:r,transactionId:i}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(Rs,{address:t,hastings:n,fee:r,transactionId:i}),(0,es.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.Z$8,{})}),(0,es.jsx)(n4,{children:"Transaction successfully broadcasted."})]})]})}let Rc={address:"",hastings:new(y0())(0)};function Rd(e){let{trigger:t,open:n,onOpenChange:r,balance:i,fee:a,send:o}=e,[s,l]=(0,el.useState)("setup"),[u,c]=(0,el.useState)(),[d,f]=(0,el.useState)(Rc),h=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,N4.cI)({defaultValues:Ra}),a=async e=>{if(!e.siacoin||!t)return;let i=e.includeFee?(0,jY.qN)(e.siacoin).minus(n):(0,jY.qN)(e.siacoin),a=Ro({hastings:i,includeFee:e.includeFee,fee:n});t.isLessThan(a)||r({address:e.address,hastings:i})},o=function(e){let{balance:t,fee:n}=e;return{address:{title:"Address",type:"text",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{isValidAddress:e=>(0,jY.At)(e)||"Invalid address"}}},siacoin:{title:"Siacoin",type:"siacoin",placeholder:"100",validation:{required:"required",validate:{greaterThanZero:e=>!new(y0())(e||0).isZero()||"Must be greater than zero",lessThanBalance:(e,r)=>Ro({hastings:(0,jY.qN)(e||0),includeFee:r.includeFee,fee:n}).isLessThan(t||0)||"Not enough funds in wallet"}}},includeFee:{type:"boolean",title:"Include fee",validation:{}}}}({balance:t,fee:n}),s=i.handleSubmit(a),l=i.watch("includeFee"),u=i.watch("siacoin"),c=(0,jY.qN)(u||0);return{el:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(N7,{form:i,fields:o,size:"medium",name:"address",autoComplete:"off"}),(0,es.jsx)(Ri,{form:i,fields:o,name:"siacoin"}),(0,es.jsxs)("div",{className:"flex items-center",children:[(0,es.jsx)(Rr,{name:"includeFee",form:i,size:"small",fields:o,group:!1,children:(0,es.jsx)(n4,{size:"14",color:"contrast",children:"Include fee"})}),(0,es.jsx)(y5,{children:"Include or exclude the network fee from the above transaction value."}),(0,es.jsx)("div",{className:"flex flex-1"})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,es.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",children:"Network fee"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"networkFee",size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,es.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",children:"Total"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"total",size:"14",value:Ro({hastings:c,includeFee:l,fee:n}),variant:"value",dynamicUnits:!1})})]})]})]}),reset:i.reset,form:i,submit:s}}({balance:i,fee:a,onComplete:e=>{f(e),l("confirm")}}),p=function(e){let{send:t,params:n,fee:r,onConfirm:i}=e,{address:a,hastings:o}=n||{},s=(0,N4.cI)({defaultValues:{}}),l=(0,el.useCallback)(async()=>{let{transactionId:e,error:n}=await t({address:a,hastings:o,includeFee:!1});if(n){PX({title:"Error sending siacoin",body:n});return}i({transactionId:e})},[i,a,o,t]),u=(0,el.useMemo)(()=>s.handleSubmit(l),[s,l]);return{el:(0,es.jsx)("div",{className:"flex flex-col gap-4",children:(0,es.jsx)(Rs,{address:a,hastings:o,fee:r})}),form:s,reset:s.reset,submit:u}}({fee:a,params:d,send:o,onConfirm:e=>{let{transactionId:t}=e;c(t),l("done")}}),m=(0,el.useMemo)(()=>"setup"===s?{submitLabel:"Generate transaction",el:h.el,form:h.form,reset:h.reset,submit:h.submit}:"confirm"===s?{submitLabel:"Broadcast transaction",el:p.el,form:p.form,reset:p.reset,submit:p.submit}:void 0,[s,h,p]);return(0,es.jsx)(fj,{trigger:t,open:n,onOpenChange:e=>{e||(h.reset(),p.reset(),l("setup")),r(e)},title:"Send siacoin",onSubmit:m?m.submit:void 0,controls:m&&(0,es.jsx)("div",{className:"flex flex-col gap-1",children:(0,es.jsx)(AE,{form:m.form,children:m.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(Rl,{onChange:e=>l(e),activeStep:s,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,es.jsx)(gn,{className:"w-full mt-4"}),"setup"===s&&h.el,"confirm"===s&&p.el,"done"===s&&(0,es.jsx)(Ru,{data:d,fee:a,transactionId:u})]})})}function Rf(e){let{form:t,onOpenChange:n,defaultValues:r,initKey:i}=e,a=(0,el.useCallback)(()=>{t.reset(r)},[t,r]),o=(0,el.useCallback)(()=>{n(!1),t.reset(r)},[t,n,r]),s=(0,el.useCallback)(e=>{e?(n(!0),setTimeout(()=>{a()},0)):o()},[o,a,n]),l=function(e){let[t,n]=(0,el.useState)(e);return(0,el.useEffect)(()=>{if(!e||!e.length)return;let r=!1;for(let n=0;n{l&&l.length&&l.every(e=>!!e)&&a()},[l]),{reset:a,closeAndReset:o,handleOpenChange:s}}let Rh={address:""},Rp={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function Rm(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,a=(0,N4.cI)({mode:"all",defaultValues:Rh}),{handleOpenChange:o,closeAndReset:s}=Rf({form:a,onOpenChange:i,defaultValues:Rh}),l=(0,el.useCallback)(async e=>{let t=await r(e.address);t.error?PX({title:t.error}):(PG({title:"Connected to peer"}),s())},[s,r]);return(0,es.jsx)(fj,{trigger:t,title:"Connect peer",description:"Connect to a peer by IP address.",open:n,onOpenChange:o,contentVariants:{className:"w-[400px]"},onSubmit:a.handleSubmit(l),controls:(0,es.jsx)("div",{className:"px-1",children:(0,es.jsx)(AE,{form:a,size:"medium",className:"w-full",children:"Connect"})}),children:(0,es.jsx)("div",{className:"flex flex-col gap-4",children:(0,es.jsx)(N7,{form:a,fields:Rp,name:"address",size:"medium"})})})}function Rg(e){var t,n;let{id:r,transaction:i,trigger:a,open:o,onOpenChange:s}=e;return(0,es.jsx)(fj,{title:P5((null==i?void 0:i.txType)?(0,Ap.Z)((0,jY.pX)(i.txType)):"Transaction",r||"",16),trigger:a,open:o,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,es.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,es.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Inflow"}),(0,es.jsx)(Ae,{value:new(y0())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Outflow"}),(0,es.jsx)(Ae,{value:new(y0())((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,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Miner fee"}),(0,es.jsx)(Ae,{value:new(y0())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(y0())(0)))||0)})]}),(0,es.jsx)("div",{className:"flex-1"}),(0,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Timestamp"}),(0,es.jsx)(n4,{children:(null==i?void 0:i.timestamp)?(0,jY.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,es.jsx)(u_,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,es.jsx)(n4,{children:"Could not find transaction in wallet"})})}n(92683);var Rv=n(24511);Rv.Ry().shape({address:Rv.Z_().required("Required"),description:Rv.Z_().required("Required"),index:Rv.Rx().integer().required("Required")});var Ry=n(38001);function Rb(e){let{title:t,description:n,address:r}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,es.jsx)(gx,{size:"20",font:"mono",children:t}),n&&(0,es.jsx)(n4,{children:n}),(0,es.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,es.jsx)("div",{className:"absolute",children:(0,es.jsx)(Ry.Z,{size:200,value:r})})}),(0,es.jsx)(P6,{type:"address",value:r})]})}function Rx(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:a}=e;return(0,es.jsx)(fj,{title:P5("Address",P3(t||"")||"",16),trigger:r,open:i,onOpenChange:a,contentVariants:{className:"w-[400px]"},children:(0,es.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,es.jsx)(Rb,{address:t||""}):(0,es.jsx)(n4,{children:"Could not retreive wallet address"})})})}function Rw(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{color:"amber",children:(0,es.jsx)(ut.qdM,{})}),(0,es.jsxs)(n4,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{color:"amber",children:(0,es.jsx)(ut.qdM,{})}),(0,es.jsxs)(n4,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let Rj={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 Rk(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,y4.Hv)();return(0,es.jsx)(y9,{"aria-label":"currency fiat",name:"currencyFiat",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,es.jsx)(be,{value:t,children:n},t)})})}let RE=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function R_(){let{settings:e,setExternalDataSettings:t}=(0,y4.Hv)();return(0,es.jsx)(y9,{"aria-label":"currency display",name:"currencyDisplay",disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:RE.map(e=>{let{id:t,label:n}=e;return(0,es.jsx)(be,{value:t,children:n},t)})})}function RC(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:a,setRequestSettings:o,setExternalDataSettings:s,daemonExplorer:l,gpu:u}=(0,y4.Hv)();return(0,es.jsx)(fj,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,es.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,es.jsx)("div",{className:"flex flex-col gap-4",children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Display"}),(0,es.jsx)(n3,{size:"14",children:"Configure visual and locale display preferences."}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Currency display"}),(0,es.jsx)(R_,{})]}),(0,es.jsx)(n3,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires a third-party API enabled under Privacy."})]})}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Fiat"}),(0,es.jsx)(Rk,{})]}),(0,es.jsx)(n3,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires a third-party API enabled under Privacy."})]})}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Theme"}),(0,es.jsx)(x$,{})]}),(0,es.jsx)(n3,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"GPU"}),(0,es.jsx)(b_,{disabled:!u.canGpuRender,checked:u.canGpuRender&&u.isGpuEnabled,onCheckedChange:u.setIsGpuEnabled,size:"medium"})]}),(0,es.jsxs)(n3,{size:"14",children:["Enable features that require a GPU."," ",u.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Security"}),(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n3,{size:"14",children:"Configure security preferences."}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Lock app"}),(0,es.jsx)(b_,{size:"medium",checked:a.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,es.jsxs)(y9,{disabled:!a.autoLock,value:String(a.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,es.jsx)(be,{value:(0,jY.sW)(5),children:"5 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(10),children:"10 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(20),children:"20 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(30),children:"30 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(60),children:"1 hour"})]})]}),(0,es.jsx)(n3,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Privacy"}),(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n3,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. Third-party APIs are optional and can be toggled on or off."}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Sia Central"}),(0,es.jsx)(b_,{size:"medium",checked:a.siaCentral,onCheckedChange:e=>s({siaCentral:e})})]}),(0,es.jsx)(n3,{size:"14",children:"The app fetches network average prices and host geolocation from the Sia Central API."})]})}),l.isSupported?(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-1 items-center justify-between",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Explorer"})]}),(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[l.api?(0,es.jsx)(P6,{maxLength:30,value:l.api||"https://api.siascan.com"}):(0,es.jsx)(n4,{size:"14",weight:"medium",color:"subtle",children:"Not configured"}),(0,es.jsx)(b_,{size:"medium",disabled:!0,checked:l.enabled,onCheckedChange:e=>s({siaCentral:e})})]})]}),(0,es.jsx)(n3,{size:"14",children:"The app fetches Siacoin exchange rates from the configured explorer API. This API is configured and enabled in the daemon's startup configuration."})]})}):(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Siascan"}),(0,es.jsx)(b_,{size:"medium",checked:a.siascan,onCheckedChange:e=>s({siascan:e})})]}),(0,es.jsx)(n3,{size:"14",children:"The app fetches Siacoin exchange rates from the Siascan API."})]})})]})]}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Help"}),(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n3,{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,es.jsxs)("div",{className:"flex gap-4",children:[(0,es.jsxs)(gT,{href:Rj.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.lq1,{}),"Website"]}),(0,es.jsxs)(gT,{href:Rj.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.RdX,{}),"Docs"]}),(0,es.jsxs)(gT,{href:Rj.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.Sfn,{}),"About"]}),(0,es.jsxs)(gT,{href:Rj.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.b47,{}),"Discord"]})]})]})]})]})})}function RS(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,es.jsx)(N_,{side:"bottom",balanceSc:t,children:(0,es.jsx)(n6,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,es.jsx)(Ar,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,es.jsx)(l7,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,es.jsxs)(n6,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,es.jsx)(n4,{color:"amber",children:(0,es.jsx)(ut.qdM,{})}),(0,es.jsx)(Ar,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function RO(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:a,sendSiacoin:o,receiveSiacoin:s}=e;return(0,es.jsxs)(es.Fragment,{children:[a&&(0,es.jsx)(RS,{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}),s&&(0,es.jsxs)(ue,{"aria-label":"receive",size:"small",onClick:s,children:[(0,es.jsx)(ut.xHM,{}),"Receive"]}),(0,es.jsxs)(ue,{"aria-label":"send",size:"small",variant:"accent",onClick:o,children:[(0,es.jsx)(ut.rW0,{}),"Send"]})]})}function RM(e,t){if(!e||!e.length)return[];let n=Object.keys((0,Mw.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 RP={"5m":e=>{let t=e+(0,jY.sW)(5);return"5m interval from ".concat((0,jY.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,jY.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+(0,jY.sW)(15);return"15m interval from ".concat((0,jY.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,jY.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+(0,jY.yt)(1);return"Hour interval from ".concat((0,jY.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,jY.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+(0,jY.yt)(24);return"Day interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},weekly:e=>{let t=e+(0,jY.Nr)(7);return"Week interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},monthly:e=>{let t=e+(0,jY.Nr)(30);return"Month interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},yearly:e=>{let t=e+(0,jY.Nr)(365);return"Year interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},default:e=>"".concat((0,jY.rN)(e))};function RA(e){return RP[e]||RP.default}function RT(e){if(!e||!e.length)return{};let t=Object.keys((0,Mw.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 RN({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=RR(e,t[0]),r=RR(e,t[t.length-1]);return RN({total:t.reduce((t,n)=>t+RR(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function RN(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 RR(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function RD(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,xH.F)(),a=(0,el.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:jK.accent[800]}}:{sc:{label:"siacoin",color:jK.accentdark[800]}},[i]),o=(0,el.useMemo)(()=>({data:RM(t,"none"),stats:RT(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:a.sc},format:e=>(0,jY.Vz)(e),formatTimestamp:RA("default"),formatTickY:e=>(0,jY.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,a,r]);return(0,es.jsx)("div",{className:"relative",children:(0,es.jsx)(MC,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:o.data,config:o.config})})}function RL(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,es.jsx)(Ay,{title:"Peers",actions:(0,es.jsx)(ue,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function Rz(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:a}=e;return(0,es.jsxs)("div",{className:(0,tl.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,es.jsx)("div",{className:"relative top-px",children:(0,es.jsx)(bi,{style:{backgroundColor:a}})}),(0,es.jsx)(n4,{size:t,children:n})]})}function RF(e){let{children:t,variant:n,align:r}=e;return(0,es.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,es.jsx)(n4,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function RZ(e){let{date:t,align:n,variant:r}=e;return t?(0,es.jsx)(RF,{variant:r,align:n,children:(0,jY.rN)(t)}):null}function RI(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,es.jsx)(RF,{variant:r,align:n,children:t.toLocaleString()}):null}function RB(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:a,color:o,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!a)return null;let d=r.endHeight-r.startHeight,f=(0,jY.pp)(d),h=(0,jY.jr)(n,r.startHeight),p=(0,jY.jr)(n,i),m=(0,jY.jr)(n,a),g=(p-h)/f,v=(m-h)/f;return(0,es.jsxs)("div",{className:(0,tl.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:RV(g),width:RV(v-g)},children:[(0,es.jsx)("div",{className:(0,tl.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,es.jsx)("div",{className:(0,tl.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===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,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:RV(1-v)}:{left:RV(g)},children:[(0,es.jsx)(RI,{blockHeight:i,align:"start",variant:"primary"}),(0,es.jsx)(RF,{variant:"primary",children:t}),(0,es.jsx)(RI,{blockHeight:a,align:"end",variant:"primary"})]}),c&&(0,es.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:RV(1-v)}:{left:RV(g)},children:[(0,es.jsx)(RZ,{date:p,align:"start",variant:"secondary"}),(0,es.jsx)(RZ,{date:m,align:"start",variant:"secondary"})]}),(0,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:RV(1-v)}:{left:RV(g)},children:[(0,es.jsx)(RZ,{date:p,align:"start",variant:"secondary"}),(0,es.jsx)(RZ,{date:m,align:"start",variant:"secondary"})]})]})}function RV(e){return"".concat(100*e,"%")}function RU(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:a,bottomLabel:o,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,jY.pp)(f),p=(0,jY.jr)(n,i.startHeight),m=r?(0,jY.jr)(n,r):0;return r?(0,es.jsx)("div",{className:(0,tl.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,es.jsxs)("div",{className:(0,tl.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,es.jsx)("div",{className:(0,tl.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,es.jsx)("div",{className:(0,tl.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,es.jsx)("div",{className:(0,tl.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,es.jsx)(RI,{blockHeight:r,align:"start",variant:"primary"}),(0,es.jsx)(RF,{variant:"primary",children:a})]}),(0,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,es.jsx)(RZ,{date:m,align:"start",variant:"secondary"}),o&&(0,es.jsx)(RF,{variant:"secondary",children:o})]})]})}):null}function RH(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:a,revisionHeight:o,proofHeight:s,range:l}=e,u=t-n<6;return(0,es.jsx)("div",{className:"group/main relative w-full",children:(0,es.jsx)("div",{className:"relative py-6",children:(0,es.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,es.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,es.jsxs)("div",{className:"group/segments",children:[(0,es.jsx)(RB,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,es.jsx)(RB,{label:"proof window",currentHeight:t,startHeight:i,endHeight:a,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,es.jsx)(RU,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,es.jsx)(RU,{label:"last revision",currentHeight:t,eventHeight:o,range:l,color:"green",className:"z-20"}),(0,es.jsx)(RU,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,es.jsx)(RU,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var RW=n(36446),R$=n(45904),Rq=function(e,t){return!!(null==e?0:e.length)&&(0,R$.Z)(e,t,0)>-1},RK=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(a=RX.Z,o=!1,t=new RW.Z(t));n:for(;++i{e.stopPropagation(),i(n)},children:(0,es.jsx)(ut.xVB,{})}),(0,es.jsx)(ue,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),a(n)},children:(0,es.jsx)(ut.pHg,{})})]})]})}function R3(e){let{title:t,children:n}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,es.jsx)(gx,{anchorLink:!0,size:"24",children:t}),(0,es.jsx)(n6,{className:"p-6",children:(0,es.jsx)("div",{className:"flex flex-col gap-6",children:(0,es.jsx)(Ny,{separator:(0,es.jsx)(gn,{className:"w-full my-3"}),children:n})})})]})}function R5(e){let{id:t,title:n,description:r,control:i}=e;return(0,es.jsxs)("div",{className:"flex gap-10 justify-between","data-testid":t,children:[(0,es.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,es.jsx)(gx,{id:t||n,anchorLink:!0,size:"20",children:n}),(0,es.jsx)(n3,{size:"14",children:r})]}),(0,es.jsx)("div",{className:"",children:i})]})}function R6(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:a,title:o,variant:s,action:l,onConfirm:u}=n||{},c=(0,N4.cI)(),d=(0,el.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,es.jsx)(fj,{title:o,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,es.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[a,(0,es.jsx)("div",{className:"flex gap-1 justify-end",children:(0,es.jsx)(AE,{variant:s,form:c,size:"small",children:l})})]})})})}function R8(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:a}=e;return(0,es.jsxs)("div",{className:"flex justify-between items-center",children:[(0,es.jsx)(n4,{font:"mono",weight:"bold",size:"20",children:t}),(0,es.jsxs)("div",{className:"flex items-center",children:[n?(0,es.jsxs)(ue,{className:"relative left-2 only:left-0",variant:"ghost",onClick:a,tip:"".concat(n," connected peers"),children:[(0,es.jsx)(n4,{color:"subtle",children:n.toLocaleString()}),(0,es.jsx)(ut.RK4,{})]}):null,i&&r?(0,es.jsx)(l7,{content:"Blockchain is synced",children:(0,es.jsx)("div",{className:"relative left-2",children:(0,es.jsxs)(ue,{variant:"ghost",state:"waiting",children:[(0,es.jsx)(n4,{color:"subtle",children:i.toLocaleString()}),(0,es.jsx)(n4,{color:"green",children:(0,es.jsx)(ut.Y3p,{})})]})})}):null]})]})}function R7(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,es.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,es.jsx)(vE,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,es.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,es.jsx)(n4,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,es.jsx)(n4,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,es.jsx)(n4,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function R9(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:a,nodeBlockHeight:o,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,es.jsx)(b0,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,es.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===a||0===a?null:(0,es.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,es.jsxs)(n4,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[a,"%"]})}),(0,es.jsx)(gR,{size:30})]}),children:(0,es.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,es.jsx)(R8,{nodeBlockHeight:o,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,es.jsx)(gn,{className:"w-full mb-0.5"}):(0,es.jsx)(R7,{percent:a,nodeBlockHeight:o,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(n4,{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,es.jsx)(gn,{className:"w-full mb-1"})]}),c]})})}function De(e){let{testnetName:t}=e;return(0,es.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,es.jsx)(n4,{color:"lo",children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsxs)(n4,{size:"14",color:"lo",children:["You are on the ",t," testnet."]})]})}function Dt(e){let{type:t,label:n,link:r,tip:i,icon:a,value:o,onClick:s,format:l,decimalsLimit:u,units:c}=e;return(0,es.jsxs)("div",{className:"flex justify-between items-center",children:[(0,es.jsx)(l7,{align:"start",side:"bottom",content:i,children:(0,es.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,es.jsx)(n4,{className:"flex relative",children:a||(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(n4,{size:"12",ellipsis:!0,children:r?(0,es.jsx)(gT,{href:r,target:"_blank",children:n}):n})]})}),(0,es.jsx)("div",{role:"button",tabIndex:0,"aria-label":n,className:(0,tl.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(o)},children:"siacoin"===t?(0,es.jsx)(Ar,{value:o,variant:"value",size:"12",fixed:u,dynamicUnits:!1,showTooltip:!1,tipSide:"bottom"}):(0,es.jsx)(Ai,{value:o,variant:"value",size:"12",format:l||(e=>"".concat(y1(e,u)).concat(c?" ".concat(c):"")),tipSide:"bottom"})})]})}function Dn(e){let{form:t,fields:n,name:r}=e;return(0,el.useCallback)((e,i)=>{Dr({form:t,fields:n,name:r,value:e,options:i})},[r,t,n])}function Dr(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 Di(e){let{form:t,fields:n,values:r,options:i}=e;for(let[e,a]of Object.entries(r))Dr({form:t,fields:n,name:e,value:a,options:i})}function Da(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:s,suggestionTip:l,before:u,after:c,tipsDecimalsLimitSc:d=0}=r[t],f=Dn({name:t,fields:r,form:n});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,es.jsx)(u||(()=>null),{name:t,form:n,fields:r}),(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Ri,{name:t,fields:r,form:n,group:!1,size:"small"}),i&&(0,es.jsx)(Dt,{type:"siacoin",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:d,value:(0,jY.qN)(i),onClick:()=>{f(i,!0)}}),s&&l&&(0,es.jsx)(Dt,{type:"siacoin",label:o||"Suggestion",tip:l,decimalsLimit:d,value:(0,jY.qN)(s),onClick:()=>{f(s,!0)}}),(0,es.jsx)(c||(()=>null),{name:t,form:n,fields:r})]})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Do(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimit:d=2,disableGroupSeparators:f,autoComplete:h,prefix:p}=o,{setValue:m,onBlur:g,error:v,value:y}=N5({form:n,field:o,name:t}),b=(0,el.useMemo)(()=>s?new(y0())(s):u&&"boolean"!=typeof u?new(y0())(u):l&&"boolean"!=typeof l?new(y0())(l):void 0,[s,u,l]),x=(0,es.jsx)(y2,{prefix:p,name:t,value:y,units:c,size:i,decimalsLimit:d,disableGroupSeparators:f,autoComplete:h,placeholder:b?new(y0())(b):void 0,state:v?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{m(void 0!==e?new(y0())(e):void 0,!0)},onBlur:g});return a?(0,es.jsx)(Ak,{title:o.title,name:t,form:n,wrap:!0,children:x}):x}function Ds(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:s,suggestionTip:l,decimalsLimit:u=2,after:c,units:d}=r[t],f=Dn({form:n,fields:r,name:t});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Do,{name:t,fields:r,form:n,group:!1}),i&&(0,es.jsx)(Dt,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:i,onClick:()=>{f(i,!0)}}),s&&l&&(0,es.jsx)(Dt,{type:"number",label:o||"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}}),(0,es.jsx)(c||(()=>null),{name:t,form:n,fields:r})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dl(e){let{label:t,link:n,tip:r,value:i,onClick:a}=e;return(0,es.jsxs)("div",{className:"flex justify-between gap-1 items-center overflow-hidden",children:[(0,es.jsx)("div",{children:(0,es.jsx)(l7,{align:"start",side:"bottom",content:r,children:(0,es.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,es.jsx)(n4,{className:"flex relative",children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(n4,{size:"12",children:n?(0,es.jsx)(gT,{href:n,target:"_blank",children:t}):t})]})})}),(0,es.jsx)("div",{className:"overflow-hidden",children:(0,es.jsx)(n4,{role:"button",tabIndex:0,"aria-label":t,className:"flex cursor-pointer items-center",onClick:a,size:"12",children:(0,es.jsx)(uS,{ellipsis:!0,className:"block",children:i})})})]})}function Du(e){let{name:t,form:n,fields:r,type:i}=e,{suggestionLabel:a,suggestion:o,suggestionTip:s}=r[t],l=Dn({form:n,name:t,fields:r});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(N7,{name:t,form:n,fields:r,type:i,group:!1}),o&&s&&(0,es.jsx)(Dl,{label:a||"Suggestion",tip:s,value:o,onClick:()=>{l(o,!0)}})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dc(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],s=Dn({form:n,name:t,fields:r});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)("div",{className:"flex justify-end w-full",children:(0,es.jsx)(Rr,{name:t,form:n,fields:r,group:!1})}),void 0!==a&&o&&(0,es.jsx)(Dl,{label:i||"Suggestion",tip:o,value:a?"on":"off",onClick:()=>{s(a,!0)}})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dd(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{options:s}=o,{ref:l,onChange:u,onBlur:c,error:d}=N5({name:t,form:n,field:o}),f=(0,es.jsx)(y9,{ref:l,name:t,size:i,state:d?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,es.jsx)(be,{value:e.value,children:e.label},e.value))});return a?(0,es.jsx)(Ak,{title:o.title,name:t,form:n,children:f}):f}function Df(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],s=Dn({form:n,name:t,fields:r});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)("div",{className:"flex justify-end w-full",children:(0,es.jsx)(Dd,{name:t,fields:r,form:n,group:!1,size:"small"})}),a&&o&&(0,es.jsx)(Dl,{label:i||"Suggestion",tip:o,value:a,onClick:()=>{s(a,!0)}})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dh(e){let{name:t,form:n,fields:r}=e,i=r[t],a=i.custom||(()=>null);return"custom"===i.type?(0,es.jsx)(a,{form:n,name:t,fields:r}):"number"===i.type?(0,es.jsx)(Ds,{form:n,name:t,fields:r}):"siacoin"===i.type?(0,es.jsx)(Da,{form:n,name:t,fields:r}):"text"===i.type?(0,es.jsx)(Du,{form:n,name:t,fields:r}):"password"===i.type?(0,es.jsx)(Du,{form:n,type:"password",fields:r,name:t}):"boolean"===i.type?(0,es.jsx)(Dc,{form:n,name:t,fields:r}):"select"===i.type?(0,es.jsx)(Df,{form:n,name:t,fields:r}):null}function Dp(e){let{name:t,form:n,fields:r,autoVisibility:i}=e,a=r[t],o=N8({form:n,fields:r,name:t});return!i||o?(0,es.jsx)(R5,{id:t,title:a.title,description:a.description,control:(0,es.jsx)(Dh,{form:n,name:t,fields:r})}):null}function Dm(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&&N8({form:r,fields:i,name:t})}).map(e=>{let[t]=e;return t});return 0===a.length?null:(0,es.jsx)(R3,{title:t,children:a.map(e=>(0,es.jsx)(Dp,{name:e,form:r,fields:i},e))})}function Dg(e){let{name:t,form:n,fields:r,size:i="small",currency:a,group:o=!0}=e,s=(0,y4.J)({currency:a||void 0}).rate,l=r[t],{placeholder:u,decimalsLimit:c=2,units:d}=l,{setValue:f,onBlur:h,error:p,value:m}=N5({form:n,field:l,name:t}),g=(0,el.useMemo)(()=>y4.mV.find(e=>e.id===a),[a]),v=n.formState.dirtyFields[t],y=(0,es.jsxs)("div",{className:(0,tl.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",l.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",l.readOnly?"pointer-events-none":"",l.readOnly?"border-blue-400 dark:border-blue-400":p?"border-red-500 dark:border-red-400":v?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,es.jsx)(y2,{name:t,value:m,units:"".concat((null==g?void 0:g.label)||"?").concat(d||""),prefix:null==g?void 0:g.prefix,size:i,variant:"ghost",focus:"none",readOnly:l.readOnly,decimalsLimit:(null==g?void 0:g.fixed)||c,placeholder:u?new(y0())(u):void 0,state:p?"invalid":v?"valid":"default",onChange:e=>{f(void 0!==e?new(y0())(e):void 0,!0)},onBlur:h}),s&&(0,es.jsx)(Dv,{value:m,currency:a,rate:s})]});return o?(0,es.jsx)(Ak,{title:l.title,name:t,form:n,wrap:!0,children:y}):y}function Dv(e){let{value:t,rate:n}=e,r=t&&!t.isZero()&&n&&!n.isZero(),i=r?(0,jY.qN)(t).div(n):new(y0())(0);return(0,es.jsxs)(n6,{className:"flex gap-1 items-center justify-between relative overflow-hidden px-2 py-1.5 rounded-t-none",children:[(0,es.jsx)(l7,{side:"bottom",content:"The pinned value's current siacoin value",children:(0,es.jsxs)(n4,{className:"flex gap-1 relative",size:"12",children:[(0,es.jsx)(ut.oce,{}),"Current value"]})}),r?(0,es.jsx)(Ae,{value:i,size:"12",variant:"value",fixed:0,dynamicUnits:!0,hastingUnits:!1,tipSide:"bottom"}):(0,es.jsx)(n4,{size:"12",ellipsis:!0,color:r?"contrast":"verySubtle",children:"-"})]})}function Dy(e){let{name:t,form:n,fields:r,currency:i}=e,{average:a,averageTip:o,suggestionLabel:s,suggestion:l,suggestionTip:u,before:c,after:d}=r[t],f=Dn({form:n,fields:r,name:t}),h=(0,y4.J)({currency:i||void 0}).rate,p=(0,el.useMemo)(()=>a&&"boolean"!=typeof a&&h?new(y0())(a).times(h):void 0,[a,h]),m=(0,el.useMemo)(()=>l&&"boolean"!=typeof l&&h?new(y0())(l).times(h):void 0,[l,h]);return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,es.jsx)(c||(()=>null),{name:t,form:n,fields:r}),(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Dg,{name:t,fields:r,form:n,group:!1,currency:i}),p&&(0,es.jsx)(Dt,{type:"siacoin",label:"Network average",tip:o||"Averages provided by Sia Central.",value:p,decimalsLimit:0,onClick:()=>{f(a,!0)}}),m&&u&&(0,es.jsx)(Dt,{type:"siacoin",label:s||"Suggestion",tip:u,decimalsLimit:0,value:m,onClick:()=>{f(l,!0)}}),(0,es.jsx)(d||(()=>null),{name:t,form:n,fields:r})]})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Db(e){let{form:t,remoteValues:n}=e,r=(0,el.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,el.useEffect)(()=>{r()},[n])}function Dx(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function Dw(e){let{form:t,remoteValues:n}=e,[r,i]=(0,el.useState)(!1),{isUnlockedAndAuthedRoute:a}=(0,y4.Hv)();(0,el.useEffect)(()=>{a||i(!1)},[a]),(0,el.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}ut.lg1,ut.eHR,ut.I$H,ut.KiD,ut.P5r,ut.CCF,ut.w9S,ut.EL$,ut.aPl,ut.wEY,ut.EOT,ut.kSc,ut.W$S,ut.lJ7,ut.ORH,ut.ka0,ut.BdP,ut.d19,ut.Mes,ut.VUg,ut.U_S,ut.T85;let Dj=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[o,s]=(0,el.useState)(!0),l=(0,el.useRef)(!1),u=(0,el.useRef)(0);return(0,el.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,el.createElement)(nF,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:(0,el.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,el.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,el.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},a)};function Dk(e){let{children:t}=e,[n,r]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{r(!0)},[]),(0,es.jsx)("div",{children:n?t:null})}function DE(e){let{className:t,daemonExplorerInfoRoute:n,passwordProtectRequestHooks:r,fallback:i,children:a,lockRoutes:o}=e;return(0,es.jsx)(Dk,{children:(0,es.jsx)(y4.kl,{fallback:i,children:(0,es.jsx)(xH.f,{attribute:"class",children:(0,es.jsx)(Dj,{children:(0,es.jsx)(y4.bW,{lockRoutes:o,daemonExplorerInfoRoute:n,passwordProtectRequestHooks:r,children:(0,es.jsxs)("div",{id:"root",className:t,children:[(0,es.jsx)(PQ,{}),a]})})})})})})}var D_=n(83864),DC=n(74994),DS=D_.Z&&1/(0,DC.Z)(new D_.Z([,-0]))[1]==1/0?function(e){return new D_.Z(e)}:function(){},DO=function(e,t,n){var r=-1,i=Rq,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=RK;else if(a>=200){var u=t?null:DS(e);if(u)return(0,DC.Z)(u);o=!1,i=RX.Z,l=new RW.Z}else l=t?[]:s;n:for(;++r=120&&c.length>=120)?new RW.Z(o&&c):void 0}c=e[0];var d=-1,f=s[0];n:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,el.useCallback)(e=>{l(t=>{var n;return(n=[...t,...e]).length?DO(n):[]})},[l]),d=(0,el.useCallback)(e=>{l(t=>R2(t,e))},[l]),f=(0,el.useCallback)(()=>{l(r)},[l,r]),h=(0,el.useMemo)(()=>n.filter(e=>{let t=null==o?void 0:o.includes(e.category||"");return!e.fixed&&!t}),[n,o]),p=(0,el.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==o?void 0:o.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,o]),{sortField:m,sortDirection:g,setSortField:v,setSortDirection:y,toggleSort:b}=function(e,t){let{defaultSortField:n,sortOptions:r,enabledColumns:i}=t,[a,o]=(0,Mj.Z)("".concat(e,"/sortField"),{defaultValue:n}),[s,l]=(0,Mj.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,el.useCallback)(e=>{if(a!==e){o(e),l("asc");return}l(e=>"desc"===e?"asc":"desc")},[a,o,l]),setSortDirection:l,setSortField:o,sortableColumns:(0,el.useMemo)(()=>r?DT(r.map(e=>e.id),i):[],[r,i]),sortField:a,sortDirection:s}}(e,{defaultSortField:i,sortOptions:a,enabledColumns:p}),x=(0,el.useMemo)(()=>a?DT(a.map(e=>e.id),p):[],[a,p]);return{configurableColumns:h,enabledColumns:p,toggleColumnVisibility:u,toggleSort:b,setSortDirection:y,setSortField:v,sortableColumns:x,sortField:m,setColumnsVisible:c,setColumnsHidden:d,sortDirection:g,resetDefaultColumnVisibility:f}}function DD(){let e=(0,gv.xj)(),t=(0,gv.jD)(),n=(0,gv.lr)();return(0,el.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,s=a?"".concat(t,"?").concat(a):t;s!==o&&e.replace(s)},[e,n,t])}function DL(){let[e,t]=(0,el.useState)([]),n=DD(),r=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,el.useCallback)(()=>{t([]),n()},[t,n]),a=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,el.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 Dz(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,el.useMemo)(()=>{if(!t)return;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 y0()&&a instanceof y0()?n.lte(a)?1:-1:n<=a?1:-1:void 0===n?-1:void 0===a?1:n instanceof y0()&&a instanceof y0()?n.gte(a)?1:-1:n>=a?1:-1})]},[t,n,r,i])}function DF(){let[e,t]=(0,el.useState)([]),n=DD(),r=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,el.useCallback)(()=>{t([]),n()},[t,n]),a=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,el.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}var DZ=n(1619),DI=n(90820),DB=n(27491),DV=function(e,t){var n={};return t=(0,DB.Z)(t,3),(0,DI.Z)(e,function(e,r,i){(0,DZ.Z)(n,r,t(e,r,i))}),n};function DU(e){let[t,n]=(0,el.useState)({}),r=(0,el.useMemo)(()=>Object.keys(t),[t]),i=(0,el.useMemo)(()=>Object.entries(t).map(e=>{let[t,n]=e;return n}).sort((e,t)=>e.index-t.index),[t]),[[a,o],s]=(0,el.useState)([void 0,void 0]),l=(0,el.useCallback)(()=>{s([void 0,void 0])},[]),u=(0,el.useCallback)((e,t)=>{s([e,t])},[]),c=(0,el.useMemo)(()=>null==e?void 0:e.map(e=>e.id).join(","),[e]);(0,el.useEffect)(()=>{l()},[c]);let d=(0,el.useCallback)((r,s)=>{if(!e)return;let c=e.findIndex(e=>e.id===r);if(-1===c)return;let d=e[c],f={row:d,index:c},h=!!(null==s?void 0:s.ctrlKey)||!!(null==s?void 0:s.metaKey),p=!!(null==s?void 0:s.shiftKey),m={...t};if(h){if(m[d.id]){var g,v;delete m[d.id];let e=(g=i,v=c,g.find(e=>e.index>v)||[...g].reverse().find(e=>e.indexDH({dataset:e,selectionMap:t}),[e,t]),h=(0,el.useMemo)(()=>e?r.some(t=>!e.some(e=>e.id===t)):r.length>0,[e,r]),p=(0,el.useMemo)(()=>!!e&&e.some(e=>t[e.id]),[e,t]),m=(0,el.useCallback)(()=>{e&&n(t=>{let n={...t},r=DH({dataset:e,selectionMap:t});return!1===r||"indeterminate"===r?e.forEach((e,t)=>{n[e.id]={row:e,index:t}}):e.forEach(e=>{delete n[e.id]}),n})},[e]),g=(0,el.useCallback)(e=>{n(t=>{let n={...t};return e.forEach(e=>{delete n[e]}),n}),e.find(e=>e===(null==a?void 0:a.row.id))&&l()},[null==a?void 0:a.row.id,l]),v=(0,el.useCallback)(()=>{n({}),l()},[l]),y=(0,el.useMemo)(()=>r.length,[r]);return{onSelect:d,onSelectPage:m,selection:(0,el.useMemo)(()=>DV(t,e=>e.row),[t]),selectedIds:r,isPageAllSelected:f,selectionCount:y,someSelectedRowsOutsideCurrentPage:h,someSelectedOnCurrentPage:p,deselect:g,deselectAll:v}}function DH(e){let{dataset:t,selectionMap:n}=e;return!!t&&(!!t.every(e=>n[e.id])||!!t.some(e=>n[e.id])&&"indeterminate")}function DW(e){let{multiSelect:t,children:n,entityWord:r,entityWordPlural:i}=e;return t.selectionCount>0?(0,es.jsx)(Rn,{children:(0,es.jsxs)(n6,{"aria-label":r+" multi-select menu",className:"pl-3 pr-2 py-2 min-w-[250px] flex gap-2 items-center rounded-lg light:bg-black pointer-events-auto",children:[!!t.selectionCount&&(0,es.jsx)(n4,{size:"14",children:"".concat((0,jY._6)(t.selectionCount,r,{plural:i})," selected").concat(t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?" on this and other pages":!t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?"":t.someSelectedRowsOutsideCurrentPage&&!t.someSelectedOnCurrentPage?" on other pages":"")}),(0,es.jsx)("div",{className:"flex-1"}),n,(0,es.jsx)(ue,{tip:"Deselect all",onClick:t.deselectAll,size:"small",children:(0,es.jsx)(ut.PcV,{})})]})}):(0,es.jsx)(Rn,{})}function D$(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,jY.gU)(5),n.startHeight=n.startHeight-(0,jY.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=(0,jY.Nr)(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}let Dq=/^[a-z]{2}$/i;function DK(e){if(!Dq.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 DY=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function DG(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 D0(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function D1(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),D0(i)}let D2=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||D2(n,t))};function D4(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let a=DY();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):DG(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 D3="application/font-woff",D5="image/jpeg",D6={woff:D3,woff2:D3,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:D5,jpeg:D5,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function D8(e){return D6[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function D7(e){return -1!==e.search(/^(data:)/)}function D9(e,t){return`data:${t};base64,${e}`}async function Le(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 Lt={};async function Ln(e,t,n){var r,i,a;let o,s;let l=(r=e,i=t,a=n.includeQueryParams,s=r.replace(/\?.*/,""),a&&(s=r),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=Lt[l])return Lt[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await Le(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));o=D9(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 Lt[l]=o,o}async function Lr(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):DQ(t)}async function Li(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),DQ(t.toDataURL())}let n=e.poster,r=D8(n);return DQ(await Ln(n,r,t))}async function La(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await Lc(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function Lo(e,t){return D2(e,HTMLCanvasElement)?Lr(e):D2(e,HTMLVideoElement)?Li(e,t):D2(e,HTMLIFrameElement)?La(e):e.cloneNode(!1)}let Ls=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function Ll(e,t,n){var r,i;let a=[];return Ls(e)&&e.assignedNodes?a=DG(e.assignedNodes()):D2(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?a=DG(e.contentDocument.body.childNodes):a=DG((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===a.length||D2(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>Lc(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Lu(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iLo(e,t)).then(n=>Ll(e,n,t)).then(t=>{var n,r;return n=e,D2(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):DG(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`}D2(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),D4(n,r,":before"),D4(n,r,":after"),D2(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),D2(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(D2(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>Lu(e,t)):null}let Ld=/url\((['"]?)([^'"]+?)\1\)/g,Lf=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Lh=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function Lp(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,s=D8(t);if(i){let e=await i(o);a=D9(e,s)}else a=await Ln(o,s,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 Lm(e){return -1!==e.search(Ld)}async function Lg(e,t,n){if(!Lm(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(Lh,e=>{for(;;){let[n,,r]=Lf.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(Ld,(e,n,r)=>(t.push(r),e)),t.filter(e=>!D7(e))})(r).reduce((e,r)=>e.then(e=>Lp(e,r,t,n)),Promise.resolve(r))}async function Lv(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await Lg(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function Ly(e,t){await Lv("background",e,t)||await Lv("background-image",e,t),await Lv("mask",e,t)||await Lv("mask-image",e,t)}async function Lb(e,t){let n=D2(e,HTMLImageElement);if(!(n&&!D7(e.src))&&!(D2(e,SVGImageElement)&&!D7(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await Ln(r,D8(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 Lx(e,t){let n=DG(e.childNodes).map(e=>Lw(e,t));await Promise.all(n).then(()=>e)}async function Lw(e,t){D2(e,Element)&&(await Ly(e,t),await Lb(e,t),await Lx(e,t))}let Lj={};async function Lk(e){let t=Lj[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},Lj[e]=t,t}async function LE(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),Le(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function L_(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 LC(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{DG(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,s=Lk(o).then(e=>LE(e,t)).then(e=>L_(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(s)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(Lk(n.href).then(e=>LE(e,t)).then(e=>L_(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{DG(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function LS(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=DG(e.ownerDocument.styleSheets);return(await LC(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Lm(e.style.getPropertyValue("src")))}async function LO(e,t){let n=await LS(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Lg(e.cssText,n,t)}))).join("\n")}async function LM(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await LO(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 LP(e,t={}){let{width:n,height:r}=DJ(e,t),i=await Lc(e,t,!0);return await LM(i,t),await Lw(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 D1(i,n,r)}async function LA(e,t={}){let{width:n,height:r}=DJ(e,t),i=await LP(e,t),a=await DQ(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=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*l,o.height=c*l,!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&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function LT(e,t={}){return(await LA(e,t)).toDataURL()}async function LN(e,t){let{name:n,quality:r,copy:i,download:a}=t;if(!e)throw Error("HTML node required");let o=await LT(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);P1(await e.blob(),"image/png",n)}}function LR(e){return Object.entries(e)}async function LD(e,t){var n;let r=e.length,i=0;for(let t of(await Promise.all(e)))t.error&&i++;let a=r-i;i>0?PX(t.toastError({totalCount:r,errorCount:i,successCount:a})):PG(t.toastSuccess({totalCount:r,errorCount:i,successCount:a})),await (null===(n=t.after)||void 0===n?void 0:n.call(t))}},76221:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.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),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},83429:function(e,t,n){"use strict";n.d(t,{bW:function(){return Q},kl:function(){return ec},mV:function(){return W},gw:function(){return o},Nz:function(){return el},Hv:function(){return X},iv:function(){return et},J:function(){return es},rB:function(){return en},Nf:function(){return ee},Tu:function(){return O},mw:function(){return A},q0:function(){return P},Tb:function(){return U},V1:function(){return T},Q5:function(){return eu},D:function(){return x}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return V}});var i=n(79381);function a(e,t,n){return[e,"".concat(t).concat((null==n?void 0:n.payload)?JSON.stringify(n.payload):"")]}function o(e){return new Promise(t=>setTimeout(t,e))}var s=n(89644),l=n.n(s),u=n(2784),c=n(65740);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){return{...e,config:{...null==e?void 0:e.config}}}function p(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function m(e,t,n){var r,i;let a=function(e,t,n){var r,i,a,o;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(o=n.config)||void 0===o?void 0:null===(a=o.axios)||void 0===a?void 0:a.headers},l=p(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:a}}function g(e,t,n,r){let i=(null==n?void 0:n.params)||{};r&&r.params&&(i={...i,...r.params}),t=(0,c.AR)(t,i);let a=p(e,n,r);return a===e.api?"".concat(a,"/api").concat(t):"".concat(a).concat(t)}function v(e,t,n,r){let i=p(e,n,r);return i===e.api?t[1].replace("".concat(i,"/api"),""):t[1].replace(i,"")}var y=n(52322);let b=(0,u.createContext)({}),x=()=>(0,u.useContext)(b);function w(e){let{children:t}=e,n=function(){let[e,t]=(0,u.useState)({}),n=(0,u.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]);return{setWorkflow:n,removeWorkflow:(0,u.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,u.useCallback)(()=>{t({})},[t]),workflows:(0,u.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,y.jsx)(b.Provider,{value:n,children:t})}var j=n(76221),k=n(92762);let E={api:"",loginWithCustomApi:!1,password:void 0,recentApis:{},autoLock:!1,autoLockTimeout:6e5},_=(0,u.createContext)({}),C=()=>(0,u.useContext)(_);function S(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,a=(0,u.useMemo)(()=>({...E,...r}),[r]),[o,s]=(0,k.Z)("v1/requestConfig",{defaultValue:a});(0,u.useEffect)(()=>{s(e=>({...a,...e}))},[]);let l=(0,u.useMemo)(()=>({...a,...o}),[o,a]),{resetWorkflows:c}=x(),d=(0,u.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,j.xj)(),h=(0,j.jD)(),[p,m]=(0,u.useState)({}),g=(0,u.useCallback)((e,t)=>{m(n=>({...n,[e]:t}))},[m]),v=(0,u.useCallback)(()=>{for(let[e,t]of(n&&f.push("".concat(n.login,"?prev=").concat([n.login].includes(h)?n.home:h)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(p)))t&&t()},[f,n,d,c,p,h]),y=function(e){let t=(0,j.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),b=(0,u.useMemo)(()=>!!l.password,[l]);return{requestSettings:l,setRequestSettings:d,lock:v,isUnlockedAndAuthedRoute:b&&y,passwordProtectRequestHooks:t,setOnLockCallback:g}}(n);return(0,y.jsx)(_.Provider,{value:r,children:t})}function O(e){let{requestSettings:t}=C(),{mutate:n}=(0,i.kY)();return(0,u.useMemo)(()=>function(r,i,a){return M(n,t,e,void 0,r,i,a)},[n,t,e])}function M(e,t,n,r,i,a,o){return e(e=>!!e&&"string"!=typeof e&&2===e.length&&i(v(t,e,n,r)),a||(e=>e),o)}function P(e){var t;let n=(0,u.useMemo)(()=>f(e),[e]),{requestSettings:r,passwordProtectRequestHooks:o}=C(),s=g(r,n.route,n,void 0),c=(0,u.useMemo)(()=>{var t,i;return t=a("post",s,e),i=n.disabled||o&&!r.password,!t||i?null:t},[s,e,n,o,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=m(r,n,void 0);if(!s)throw Error("No route");try{return(await l().post(s,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 A(e,t){let{setWorkflow:n,removeWorkflow:r}=x(),{mutate:o}=(0,i.kY)(),{requestSettings:s}=C(),u=d(e);return{post:async e=>{let i=h(e);try{let c;let d=m(s,u,i),f=g(s,u.route,u,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=a("post",f,e),p=v(s,h,e,i),y=h.join("");n(y,{route:p,payload:c});let b=await l().post(f,c,d);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 M(o,s,e,i,t,n,r)},i,b),r(y),{status:b.status,data:b.data,headers:b.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function T(e,t){let{mutate:n}=(0,i.kY)(),{requestSettings:r}=C(),{setWorkflow:o,removeWorkflow:s}=x(),u=d(e);return{put:async e=>{let i=h(e);try{let c;let d=m(r,u,i),f=g(r,u.route,u,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=a("put",f,e),p=v(r,h,e,i),y=h.join("");o(y,{route:p,payload:c});let b=await l().put(f,c,d);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 M(n,r,e,i,t,a,o)},i,b),s(y),{status:b.status,data:b.data,headers:b.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function N(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}let R=["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 D(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 L="undefined"==typeof window,z=(()=>{if(L)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 F extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let Z=[],I=[];function B(e){return null!=e}let V=({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"}={})=>N(void 0,void 0,void 0,function*(){let o={};if(L)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==z?void 0:z.isIpad),isMobile:l=!!(null==z?void 0:z.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>N(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 F("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=D(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==z?void 0:z.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=D(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",s="80162181161",l=(null==z?void 0:z.isIpad)?[["a7",s,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",s,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=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let g=(yield Promise.all(h.map(function(e){var t;return N(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of l?["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=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,a=o[i]=null!==(t=o[i])&&void 0!==t?t:c(i);try{n=yield a}catch(e){if(e instanceof F)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?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of v){let[t,n]=e,r=Math.abs(x-t*n);re===n?t-r:e-n);if(!g.length){let e=R.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,v,y,b]=g[0];if(-1===v)return f(0,"BLOCKLISTED",y,v,b);let x=l?e:t,w=0;for(let e=0;e=x[e]&&(w=e);return f(w,"BENCHMARK",y,v,b)});function U(){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:H}=r,W=[{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}],$={siaCentral:!0,siascan:!0,currency:W[0],currencyDisplay:"bothPreferSc"},q=(0,u.createContext)({}),K=()=>(0,u.useContext)(q);function Y(e){let{children:t,...n}=e,r=function(e){let{daemonExplorerInfoRoute:t,defaultSettings:n}=e,r=(0,u.useMemo)(()=>({...$,...n}),[n]),[i,a]=(0,k.Z)("v1/externalData",{defaultValue:r});(0,u.useEffect)(()=>{a(e=>({...r,...e}))},[]);let o=(0,u.useMemo)(()=>({...r,...i}),[i,r]),s=(0,u.useCallback)(e=>{a(t=>({...t,...e}))},[a]),l=(0,u.useCallback)(e=>{let t=W.find(t=>t.id===e);t&&s({currency:t})},[s]);return{externalDataSettings:o,setExternalDataSettings:s,setCurrency:l,currencyOptions:W,daemonExplorer:function(e){var t;let{route:n,config:r,disabled:i}=e,a=ee({disabled:!n||i,route:n||"",config:{...r,swr:{...null==r?void 0:r.swr,revalidateOnFocus:!1}}}),{url:o,enabled:s}=(null===(t=a.data)||void 0===t?void 0:t.explorer)||{},l=(0,u.useMemo)(()=>{if(o)try{let{origin:e}=new URL(o);return e}catch(e){console.error(e)}},[o]);return(0,u.useMemo)(()=>({isSupported:!!a.data,enabled:!!s&&!!l,api:l,isValidating:a.isValidating,isLoading:a.isLoading}),[s,l,a.isValidating,a.isLoading,a.data])}({route:t})}}(n);return(0,y.jsx)(q.Provider,{value:r,children:t})}let G=(0,u.createContext)({}),X=()=>(0,u.useContext)(G);function J(e){let{children:t}=e,n=function(){let{requestSettings:e,setRequestSettings:t,lock:n,isUnlockedAndAuthedRoute:r,setOnLockCallback:i}=C(),{externalDataSettings:a,setExternalDataSettings:o,setCurrency:s,currencyOptions:l,daemonExplorer:c}=K(),d=function(){let e=U(),[t,n]=(0,u.useState)(!1),[r,i]=(0,u.useState)(!1),[{isGpuEnabled:a,hasUserSet:o},s]=(0,k.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,u.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,u.useCallback)(async()=>{let e=!1;{let t=await H();console.log("GPU",t),e=t.tier>0,!o&&t.tier<2&&l(!1,!1)}i(e),n(!0)},[i,l,o]);return(0,u.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:a,shouldRender:r&&a,setCanGpuRender:i,setIsGpuEnabled:l}}();return{settings:(0,u.useMemo)(()=>({...e,...a}),[e,a]),requestSettings:e,externalDataSettings:a,setRequestSettings:t,setExternalDataSettings:o,siascan:a.siascan,siaCentral:a.siaCentral,gpu:d,lock:n,isUnlockedAndAuthedRoute:r,setOnLockCallback:i,setCurrency:s,currencyOptions:l,daemonExplorer:c}}();return(0,y.jsx)(G.Provider,{value:n,children:t})}function Q(e){let{children:t,...n}=e;return(0,y.jsx)(S,{...n,children:(0,y.jsx)(Y,{...n,children:(0,y.jsx)(J,{...n,children:t})})})}function ee(e){var t,n,r;let o=(0,u.useMemo)(()=>f(e),[e]),{requestSettings:s,passwordProtectRequestHooks:c}=C(),d=g(s,o.route,o,void 0);return(0,i.ZP)((n=a("get",d),r=o.disabled||c&&!s.password,!n||r?null:n),async()=>{if(!o.route)throw Error("No route");let e=m(s,o,void 0);if(!d)throw Error("No route");try{return(await l().get(d,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function et(e,t){let{mutate:n}=(0,i.kY)(),{requestSettings:r}=C(),{setWorkflow:o,removeWorkflow:s}=x(),u=d(e);return{delete:async e=>{let i=h(e);try{let c=m(r,u,i),d=g(r,u.route,u,i);if(!d)throw Error("No route");let f=a("delete",d),h=v(r,f,e,i),p=f.join("");o(p,{route:h});let y=await l().delete(d,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 M(n,r,e,i,t,a,o)},i,y),s(p),{status:y.status,data:y.data,headers:y.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function en(e){var t;let{get:n}=function(e){let{settings:t}=X(),n=d(e);return{get:async e=>{let r=h(e);try{let e=m(t,n,r),i=g(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}}}var er=n(6391),ei=n.n(er),ea=n(60381);let eo={revalidateOnFocus:!1,refreshInterval:(0,ea.sW)(5),dedupingInterval:(0,ea.sW)(5)};function es(e){let{currency:t,config:n,disabled:r}=e,{daemonExplorer:i}=X(),a=function(e){let{currency:t,config:n,disabled:r}=e,{daemonExplorer:{enabled:i,api:a},currencyOptions:o}=X(),s=ee({params:{currency:t},disabled:!i||r||!t,api:a,route:"/exchange-rate/siacoin/:currency",config:{...n,swr:{...eo,...null==n?void 0:n.swr}}});return(0,u.useMemo)(()=>({rate:s.data?new(ei())(s.data):void 0,error:s.error,isValidating:s.isValidating,isLoading:s.isLoading,currency:o.find(e=>e.id===t)}),[s.data,s.error,s.isValidating,s.isLoading,o,t])}({currency:t,config:n,disabled:!i.enabled||r}),o=function(e){let{currency:t,config:n,disabled:r}=e,{settings:i,currencyOptions:a}=X(),o=ee({params:{currency:t},api:"https://api.siascan.com",route:"/exchange-rate/siacoin/:currency",config:{...n,swr:{...eo,...null==n?void 0:n.swr}},disabled:!i.siascan||!t||r});return(0,u.useMemo)(()=>({rate:o.data?new(ei())(o.data):void 0,error:o.error,isValidating:o.isValidating,isLoading:o.isLoading,currency:a.find(e=>e.id===t)}),[o.data,o.error,o.isValidating,o.isLoading,a,t])}({currency:t,config:n,disabled:i.enabled||r});return i.enabled?a:o}function el(){let{config:e,disabled:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{settings:n}=X();return es({currency:n.currency.id,config:e,disabled:t})}function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function ec(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,y.jsx)(w,{children:(0,y.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},28420:function(e,t,n){"use strict";n.d(t,{aXP:function(){return na},eHR:function(){return nf},xHM:function(){return nh},L6f:function(){return np},rW0:function(){return nm},osk:function(){return ng},JaG:function(){return nv},wWN:function(){return aZ},Dkj:function(){return aY},fi8:function(){return aF},nnZ:function(){return aX},DlU:function(){return nO},ljb:function(){return nM},EMN:function(){return nP},bdU:function(){return nA},VUy:function(){return nT},Cp0:function(){return nN},kqg:function(){return nR},Mes:function(){return nD},oce:function(){return nz},uTh:function(){return nL},DI$:function(){return nZ},NlZ:function(){return n2},Y3p:function(){return n5},dmA:function(){return n3},Z$8:function(){return n4},MKy:function(){return n6},tEK:function(){return n7},yar:function(){return n8},cRw:function(){return n9},F3j:function(){return re},MR9:function(){return rt},PcV:function(){return rr},QN4:function(){return rn},Jsc:function(){return ra},T80:function(){return ri},bQp:function(){return rs},Y9T:function(){return ro},wEY:function(){return rd},olJ:function(){return rh},vtB:function(){return rf},KiD:function(){return rv},jBN:function(){return ry},B4q:function(){return rk},_Eq:function(){return rb},VHe:function(){return a$},Jrl:function(){return rE},aPl:function(){return r_},kBK:function(){return aH},c_L:function(){return rM},Bpb:function(){return rP},vzB:function(){return rA},nDH:function(){return rz},dr6:function(){return rF},_fo:function(){return rZ},d19:function(){return rI},w9S:function(){return rB},VBo:function(){return aI},q0D:function(){return r$},Hb6:function(){return rW},CCF:function(){return rq},Qbr:function(){return rJ},L37:function(){return rQ},ROc:function(){return aq},jef:function(){return r0},UG6:function(){return aW},lq1:function(){return r1},zvn:function(){return aB},EL$:function(){return r4},BdP:function(){return ie},e1T:function(){return it},P5r:function(){return ir},RdX:function(){return ia},$iY:function(){return ii},U_S:function(){return io},_m8:function(){return aG},V8Q:function(){return ih},POp:function(){return ip},nCM:function(){return iv},kSc:function(){return ig},TtX:function(){return im},mBM:function(){return aU},Lur:function(){return iw},b47:function(){return ij},Sfn:function(){return ik},W$S:function(){return iA},ybx:function(){return iT},T85:function(){return iN},c6N:function(){return iR},Ckx:function(){return iD},EOT:function(){return iz},fDA:function(){return iL},RK4:function(){return iZ},jH8:function(){return iH},XJM:function(){return iW},RRj:function(){return i$},ka0:function(){return iq},hzZ:function(){return iJ},oHy:function(){return iX},n6M:function(){return iQ},VUg:function(){return i3},owP:function(){return i5},Fs9:function(){return i6},wGX:function(){return i8},Wet:function(){return an},xkX:function(){return ar},Zbu:function(){return ai},ZEk:function(){return aa},_iN:function(){return ad},$Iz:function(){return af},UBs:function(){return ah},shL:function(){return ap},hiv:function(){return am},eOF:function(){return ab},mli:function(){return ay},_kF:function(){return aw},lJ7:function(){return aK},ORH:function(){return aC},I98:function(){return aS},VmF:function(){return aO},R$6:function(){return aM},JCW:function(){return aP.JCW},xVB:function(){return aP.xVB},pHg:function(){return aP.pHg},I$H:function(){return aP.I$H},oaN:function(){return aV},qdM:function(){return aP.qdM},KTM:function(){return aP.KTM},gFQ:function(){return aP.gFQ},Gu6:function(){return aP.Gu6},SmH:function(){return aR},RFr:function(){return aD},lg1:function(){return aL}});var r,i,a,o,s,l,u,c,d,f,h,p,m,g,v,y,b,x,w,j,k,E,_,C,S,O,M,P,A,T,N,R,D,L,z,F,Z,I,B,V,U,H,W,$,q,K,Y,G,X,J,Q,ee,et,en,er,ei,ea,eo,es,el,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,eb,ex,ew,ej,ek,eE,e_,eC,eS,eO,eM,eP,eA,eT,eN,eR,eD,eL,ez,eF,eZ,eI,eB,eV,eU,eH,eW,e$,eq,eK,eY,eG,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,ta,to,ts,tl,tu,tc,td,tf,th,tp,tm,tg,tv,ty,tb,tx,tw,tj,tk,tE,t_,tC,tS,tO,tM,tP,tA,tT,tN,tR,tD,tL,tz,tF,tZ,tI,tB,tV,tU,tH,tW,t$,tq,tK,tY,tG,tX,tJ,tQ,t0,t1,t2,t4,t3,t5,t6,t8,t7,t9,ne,nt,nn=n(36662),nr=n(2784),ni=["children"],na=nr.forwardRef(function(e,t){var n=e.children,i=(0,nn._)(e,ni);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=nr.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)}),no=["children"],ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,no);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=nr.createElement("path",{d:"M14 19H18V21H14z"})),a||(a=nr.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),nh=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ns);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=nr.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)}),np=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nl);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=nr.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)}),nm=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nu);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=nr.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=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nc);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=nr.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)}),nv=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nd);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=nr.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),d||(d=nr.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),f||(f=nr.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),h||(h=nr.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),p||(p=nr.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),m||(m=nr.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),g||(g=nr.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),v||(v=nr.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),y||(y=nr.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)}),ny=["children"],nb=["children"],nx=["children"],nw=["children"],nj=["children"],nk=["children"],nE=["children"],n_=["children"],nC=["children"],nS=["children"],nO=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ny);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),b||(b=nr.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)}),nM=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nb);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),x||(x=nr.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"})),w||(w=nr.createElement("path",{d:"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z"})),n)}),nP=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nx);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=nr.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nA=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nw);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=nr.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nT=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nj);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=nr.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nN=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nk);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=nr.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nR=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nE);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=nr.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nD=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,n_);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=nr.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)}),nL=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nC);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=nr.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)}),nz=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nS);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=nr.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)}),nF=["children"],nZ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nF);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=nr.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),A||(A=nr.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)}),nI=["children"],nB=["children"],nV=["children"],nU=["children"],nH=["children"],nW=["children"],n$=["children"],nq=["children"],nK=["children"],nY=["children"],nG=["children"],nX=["children"],nJ=["children"],nQ=["children"],n0=["children"],n1=["children"],n2=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nI);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=nr.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),n4=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nB);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=nr.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),R||(R=nr.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)}),n3=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nV);return nr.createElement(nn.I,(0,nn.a)({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=nr.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"})),L||(L=nr.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)}),n5=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nU);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=nr.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=nr.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)}),n6=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nH);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=nr.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"})),I||(I=nr.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"})),B||(B=nr.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)}),n8=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nW);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=nr.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),U||(U=nr.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)}),n7=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,n$);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=nr.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),W||(W=nr.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)}),n9=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nq);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=nr.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),re=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nK);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=nr.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),rt=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nY);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=nr.createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),n)}),rn=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nG);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=nr.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)}),rr=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nX);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),G||(G=nr.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)}),ri=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nJ);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=nr.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"})),J||(J=nr.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)}),ra=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,nQ);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=nr.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"})),ee||(ee=nr.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)}),ro=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,n0);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=nr.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"})),en||(en=nr.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)}),rs=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,n1);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=nr.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"})),ei||(ei=nr.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)}),rl=["children"],ru=["children"],rc=["children"],rd=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rl);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=nr.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"})),eo||(eo=nr.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),rf=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ru);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=nr.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"})),el||(el=nr.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),rh=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rc);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=nr.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"})),ec||(ec=nr.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),rp=["children"],rm=["children"],rg=["children"],rv=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rp);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=nr.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"})),ef||(ef=nr.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)}),ry=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rm);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=nr.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)}),rb=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rg);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=nr.createElement("circle",{cx:"22",cy:"24",r:"2"})),em||(em=nr.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"})),eg||(eg=nr.createElement("circle",{cx:"8",cy:"8",r:"1"})),ev||(ev=nr.createElement("circle",{cx:"8",cy:"16",r:"1"})),ey||(ey=nr.createElement("circle",{cx:"8",cy:"24",r:"1"})),eb||(eb=nr.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)}),rx=["children"],rw=["children"],rj=["children"],rk=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rx);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=nr.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),ew||(ew=nr.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)}),rE=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rw);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=nr.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),ek||(ek=nr.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),r_=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rj);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=nr.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),e_||(e_=nr.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),rC=["children"],rS=["children"],rO=["children"],rM=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rC);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=nr.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"})),eS||(eS=nr.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),rP=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rS);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=nr.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),rA=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rO);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=nr.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)}),rT=["children"],rN=["children"],rR=["children"],rD=["children"],rL=["children"],rz=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rT);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=nr.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)}),rF=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rN);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=nr.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)}),rZ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rR);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=nr.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)}),rI=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rD);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=nr.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"})),eR||(eR=nr.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),eD||(eD=nr.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rB=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rL);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=nr.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)}),rV=["children"],rU=["children"],rH=["children"],rW=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rV);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=nr.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)}),r$=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rU);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=nr.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)}),rq=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rH);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=nr.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)}),rK=["children"],rY=["children"],rG=["children"],rX=["children"],rJ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rK);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=nr.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)}),rQ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rY);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=nr.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eV||(eV=nr.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)}),r0=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rG);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=nr.createElement("path",{d:"M18 13L16.59 14.41 19.17 17 10 17 10 19 19.17 19 16.59 21.59 18 23 23 18 18 13z"})),eH||(eH=nr.createElement("path",{d:"M11.1716,6l3.4142,3.4142L15.1716,10H28V26H4V6h7.1716m0-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.5858,4.5858A2,2,0,0,0,11.1716,4Z"})),n)}),r1=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,rX);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=nr.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"})),e$||(e$=nr.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)}),r2=["children"],r4=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r2);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=nr.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)}),r3=["children"],r5=["children"],r6=["children"],r8=["children"],r7=["children"],r9=["children"],ie=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r3);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=nr.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)}),it=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r5);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=nr.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"})),eG||(eG=nr.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)}),ir=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r6);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=nr.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)}),ii=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r8);return nr.createElement(nn.I,(0,nn.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eJ||(eJ=nr.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"})),eQ||(eQ=nr.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)}),ia=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r7);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=nr.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"})),e1||(e1=nr.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)}),io=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,r9);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=nr.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)}),is=["children"],il=["children"],iu=["children"],ic=["children"],id=["children"],ih=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,is);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e4||(e4=nr.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"})),e3||(e3=nr.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)}),ip=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,il);return nr.createElement(nn.I,(0,nn.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=nr.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"})),e6||(e6=nr.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)}),im=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iu);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=nr.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=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ic);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=nr.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)}),iv=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,id);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=nr.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=["children"],ib=["children"],ix=["children"],iw=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iy);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=nr.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)}),ij=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ib);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=nr.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"})),tn||(tn=nr.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)}),ik=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ix);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=nr.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)}),iE=["children"],i_=["children"],iC=["children"],iS=["children"],iO=["children"],iM=["children"],iP=["children"],iA=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iE);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=nr.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"})),ta||(ta=nr.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)}),iT=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i_);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=nr.createElement("path",{d:"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),iN=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iC);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=nr.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)}),iR=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iS);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=nr.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"})),tu||(tu=nr.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)}),iD=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iO);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=nr.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"})),td||(td=nr.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)}),iL=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iM);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tf||(tf=nr.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"})),th||(th=nr.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)}),iz=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iP);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=nr.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"})),tm||(tm=nr.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)}),iF=["children"],iZ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iF);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=nr.createElement("circle",{cx:"21",cy:"26",r:"2"})),tv||(tv=nr.createElement("circle",{cx:"21",cy:"6",r:"2"})),ty||(ty=nr.createElement("circle",{cx:"4",cy:"16",r:"2"})),tb||(tb=nr.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)}),iI=["children"],iB=["children"],iV=["children"],iU=["children"],iH=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iI);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=nr.createElement("circle",{cx:"8",cy:"16",r:"2"})),tw||(tw=nr.createElement("circle",{cx:"16",cy:"16",r:"2"})),tj||(tj=nr.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),iW=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iB);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tk||(tk=nr.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),i$=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iV);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=nr.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),iq=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iU);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t_||(t_=nr.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"})),tC||(tC=nr.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),iK=["children"],iY=["children"],iG=["children"],iX=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iK);return nr.createElement(nn.I,(0,nn.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=nr.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"})),tO||(tO=nr.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)}),iJ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iY);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=nr.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=nr.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)}),iQ=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,iG);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=nr.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)}),i0=["children"],i1=["children"],i2=["children"],i4=["children"],i3=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i0);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tT||(tT=nr.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"})),tN||(tN=nr.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)}),i5=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i1);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tR||(tR=nr.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tD||(tD=nr.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"})),tL||(tL=nr.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)}),i6=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i2);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=nr.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)}),i8=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i4);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tF||(tF=nr.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tZ||(tZ=nr.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)}),i7=["children"],i9=["children"],ae=["children"],at=["children"],an=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i7);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tI||(tI=nr.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)}),ar=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,i9);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tB||(tB=nr.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)}),ai=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ae);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tV||(tV=nr.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),tU||(tU=nr.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)}),aa=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,at);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tH||(tH=nr.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)}),ao=["children"],as=["children"],al=["children"],au=["children"],ac=["children"],ad=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ao);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tW||(tW=nr.createElement("path",{d:"M20,16a5,5,0,0,0,10,0,1,1,0,0,0-.1055-.4473L25.896,7.5562a.8913.8913,0,0,0-.0454-.0816A1,1,0,0,0,25,7H18.8218A3.0155,3.0155,0,0,0,17,5.1841V2H15V5.1841A3.0155,3.0155,0,0,0,13.1782,7H7a1,1,0,0,0-.8945.5527l-4,8A1,1,0,0,0,2,16a5,5,0,0,0,10,0,1,1,0,0,0-.1055-.4473L8.6182,9h4.56A3.0147,3.0147,0,0,0,15,10.8154V28H6v2H26V28H17V10.8159A3.0155,3.0155,0,0,0,18.8218,9h4.56l-3.2763,6.5527A1,1,0,0,0,20,16ZM7,19a2.9958,2.9958,0,0,1-2.8152-2h5.63A2.9956,2.9956,0,0,1,7,19Zm2.3821-4H4.6179L7,10.2363ZM16,9a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,16,9Zm9,10a2.9958,2.9958,0,0,1-2.8152-2h5.63A2.9956,2.9956,0,0,1,25,19Zm0-8.7637L27.3821,15H22.6179Z"})),n)}),af=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,as);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t$||(t$=nr.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)}),ah=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,al);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tq||(tq=nr.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)}),ap=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,au);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tK||(tK=nr.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"})),tY||(tY=nr.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)}),am=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ac);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tG||(tG=nr.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)}),ag=["children"],av=["children"],ay=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ag);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tX||(tX=nr.createElement("path",{d:"M8 15H24V17H8z"})),n)}),ab=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,av);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tJ||(tJ=nr.createElement("path",{d:"M8 15H24V17H8z"})),n)}),ax=["children"],aw=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ax);return nr.createElement(nn.I,(0,nn.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tQ||(tQ=nr.createElement("path",{d:"M14 20.18L10.41 16.59 9 18 14 23 23 14 21.59 12.58 14 20.18z"})),t0||(t0=nr.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)}),aj=["children"],ak=["children"],aE=["children"],a_=["children"],aC=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,aj);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t1||(t1=nr.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)}),aS=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,ak);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t2||(t2=nr.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"})),t4||(t4=nr.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),aO=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,aE);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t3||(t3=nr.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),n)}),aM=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,a_);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t5||(t5=nr.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)}),aP=n(63131),aA=["children"],aT=["children"],aN=["children"],aR=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,aA);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t6||(t6=nr.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"})),t8||(t8=nr.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)}),aD=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,aT);return nr.createElement(nn.I,(0,nn.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t7||(t7=nr.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)}),aL=nr.forwardRef(function(e,t){var n=e.children,r=(0,nn._)(e,aN);return nr.createElement(nn.I,(0,nn.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t9||(t9=nr.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"})),ne||(ne=nr.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"})),nt||(nt=nr.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)}),az=n(52322);function aF(e){let{size:t=24,className:n}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 448 512",children:(0,az.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 aZ(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,az.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 aI(e){let{size:t=24,className:n}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,az.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 aB(e){let{size:t=24,className:n}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,az.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 aV(e){let{size:t=24,className:n}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,az.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 aU(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,az.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 aH(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,az.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 aW(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,az.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 a$(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,az.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 aq(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,az.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 aK(e){let{size:t=24}=e;return(0,az.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,az.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,az.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,az.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,az.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,az.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function aY(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,az.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 aG(e){let{size:t=24,className:n}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,az.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"})})}function aX(e){let{size:t=24}=e;return(0,az.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,az.jsx)("path",{d:"M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"})})}},91426:function(e,t,n){"use strict";n.d(t,{cJ:function(){return eh},Z7:function(){return G},Uy:function(){return X},e$:function(){return ei},Mz:function(){return es},oe:function(){return ea},YX:function(){return eo},Bl:function(){return el},D5:function(){return N},oV:function(){return R},sg:function(){return L},ol:function(){return D},B$:function(){return T},d_:function(){return u},DQ:function(){return c},cq:function(){return P},IK:function(){return A},GP:function(){return M},nH:function(){return d},$:function(){return w},wW:function(){return C},ED:function(){return O},lW:function(){return x},s2:function(){return k},ni:function(){return E},uf:function(){return j},Os:function(){return _},Yy:function(){return J},X1:function(){return Q},LS:function(){return en},_3:function(){return et},eM:function(){return ee},bg:function(){return er},Pt:function(){return ef},wy:function(){return F},p$:function(){return ec},Q5:function(){return B},ZM:function(){return ed},F_:function(){return z},Lh:function(){return I},TD:function(){return Z},en:function(){return V},oX:function(){return $},E5:function(){return U},Vp:function(){return q},AR:function(){return H},_M:function(){return K},NF:function(){return W},Cl:function(){return Y},Wl:function(){return h},cQ:function(){return f},Q4:function(){return p},QL:function(){return m},X2:function(){return g},sG:function(){return v},a0:function(){return y},cj:function(){return b}});var r=n(79381),i=n(54897),a=n(83429),o=n(60381),s=n(7699),l=n(67812);function u(e){return(0,a.Nf)({...e,route:s.PS})}function c(e){return(0,a.Nf)({...e,route:s.J6})}function d(){let e=u({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,o.du)():(0,o.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function f(e){return(0,a.Nf)({...e,route:s.gl})}function h(e){return(0,a.mw)({...e,route:s.aU},async e=>{e(e=>e===s.gl)})}function p(e){return(0,a.Nf)({...e,route:s.Sh})}function m(e){return(0,a.Nf)({...e,route:s.Oj})}function g(e){return(0,a.Nf)({...e,route:s.xg})}function v(e){return(0,a.Nf)({...e,route:s.Wi})}function y(e){return(0,a.Nf)({...e,route:s.zk})}function b(e){return(0,a.mw)({...e,route:s.zb},async e=>{await (0,a.gw)(2e3),e(e=>e.startsWith(s.Oj)||e.startsWith(s.zk))})}function x(e){return(0,a.q0)({...e,route:s.N8})}function w(e){return(0,a.Nf)({...e,route:s.rg})}function j(e){return(0,a.Nf)({...e,route:s.yu})}function k(e){return(0,a.Nf)({...e,route:s.MF})}function E(e){return(0,a.V1)({...e,route:s.MF},async e=>{e(e=>!![s.N8,s.MF,s.FP].find(t=>e.startsWith(t)))})}function _(e){return(0,a.V1)({...e,route:s.yu},async e=>{e(e=>!![s.N8,s.yu,s.FP].find(t=>e.startsWith(t)))})}function C(e){return(0,a.mw)({...e,route:s.KP})}let S=(0,i.Z)(e=>e(),5e3);function O(e){return(0,a.mw)({...e,route:s.$G},async(e,t,n)=>{let{params:{hostkey:r}}=t;e(e=>e.startsWith(s.N8),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,host:{...e,interactions:{...e.interactions,lastScan:new Date().toISOString(),lastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),S(()=>{e(e=>e.startsWith(s.N8),e=>e,!0)})})}function M(e){return(0,a.Nf)({...e,route:s.FP})}function P(e){return(0,a.Nf)({...e,route:s.J9})}function A(e){return(0,a.iv)({...e,route:s.J9},async e=>{e(e=>e.startsWith(s.ft))})}function T(e){return(0,a.Nf)({...e,route:s.AJ})}function N(e){return(0,a.Nf)({...e,route:s.aq})}function R(e){return(0,a.mw)({...e,route:s.AJ},async e=>{e(e=>e.startsWith(s.AJ))})}function D(e){return(0,a.V1)({...e,route:s.mD},async e=>{e(e=>e.startsWith(s.rS))})}function L(e){return(0,a.iv)({...e,route:s.aq},async e=>{e(e=>e.startsWith(s.rS))})}function z(e){return(0,a.Nf)({...e,route:s.JK})}function F(e){return(0,a.Nf)({...e,route:s.qf})}function Z(e){return(0,a.mw)({...e,route:s.oZ})}function I(e){return(0,a.mw)({...e,route:s.c_},async e=>{e(e=>e.startsWith(s.DL))})}function B(e){return(0,a.Nf)({...e,route:s.VJ})}function V(e){return(0,a.Nf)({...e,route:s.IB})}function U(e){return(0,a.Nf)({...e,route:s.Ly})}function H(e){return(0,a.Nf)({...e,route:s.M5})}function W(e){return(0,a.Nf)({...e,route:s.cq})}function $(e){return(0,a.V1)({...e,route:s.IB},async e=>{e(e=>e.startsWith(s.IB))})}function q(e){return(0,a.V1)({...e,route:s.Ly},async e=>{e(e=>e.startsWith(s.Ly))})}function K(e){return(0,a.V1)({...e,route:s.M5},async e=>{e(e=>e.startsWith(s.M5))})}function Y(e){return(0,a.V1)({...e,route:s.cq},async e=>{e(e=>e.startsWith(s.cq))})}function G(e){return(0,a.Nf)({...e,route:s.jL})}function X(e){return(0,a.mw)({...e,route:s.ks},async e=>{e(e=>e.startsWith(s.jL))})}function J(e){return(0,a.Nf)({...e,route:s.hp})}function Q(e){return(0,a.Nf)({...e,route:s.nI})}function ee(e){return(0,a.mw)({...e,route:s.sW},async e=>{e(e=>e.startsWith(s.Wy))})}function et(e){return(0,a.mw)({...e,route:s.Pw},async e=>{e(e=>e.startsWith(s.Wy))})}function en(e){return(0,a.mw)({...e,route:s.w_},async e=>{e(e=>e.startsWith(s.Wy))})}function er(e){return(0,a.q0)({...e,route:s.CM})}function ei(e){return(0,a.Nf)({...e,route:l.Kp})}function ea(e){return(0,a.V1)({...e,route:l.Kp},async e=>{e(e=>e===l.Kp),(async()=>{await (0,a.gw)(1e3),e(e=>e===l.E)})()})}function eo(e){return(0,a.Nf)({...e,route:l.E})}function es(e){return(0,a.q0)({...e,route:l.$k})}function el(e){return(0,a.mw)({...e,route:l.sM})}let eu="/worker/object/:key";function ec(e){return(0,a.rB)({...e,route:eu})}function ed(e){var t;return(0,a.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:eu},async e=>{e(e=>e.startsWith(s.DL))})}function ef(e){var t;return(0,a.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/multipart/:key"})}function eh(e){return(0,a.mw)({...e,route:"/worker/account/:id/resetdrift"})}},67812:function(e,t,n){"use strict";n.d(t,{$k:function(){return i},E:function(){return r},Kp:function(){return o},sM:function(){return a}});let r="/autopilot/state",i="/autopilot/config/evaluate",a="/autopilot/trigger",o="/bus/autopilot"},7699:function(e,t,n){"use strict";n.d(t,{$G:function(){return w},AD:function(){return A},AF:function(){return u},AJ:function(){return L},CM:function(){return ea},DL:function(){return Z},FP:function(){return C},GV:function(){return ei},IB:function(){return W},J6:function(){return a},J9:function(){return P},JK:function(){return I},KP:function(){return _},Kr:function(){return y},Ly:function(){return $},M5:function(){return q},MF:function(){return E},MR:function(){return d},N8:function(){return b},Oj:function(){return c},PS:function(){return r},Pw:function(){return en},Sh:function(){return f},VJ:function(){return H},Wi:function(){return p},Wy:function(){return ee},Z2:function(){return T},aU:function(){return l},aq:function(){return z},cN:function(){return N},c_:function(){return V},cq:function(){return K},f0:function(){return g},fo:function(){return S},ft:function(){return M},gc:function(){return o},gl:function(){return s},go:function(){return X},hp:function(){return J},jL:function(){return Y},kP:function(){return i},ks:function(){return G},mD:function(){return F},nI:function(){return Q},nY:function(){return j},o5:function(){return eo},oZ:function(){return U},qf:function(){return B},rS:function(){return D},rg:function(){return x},sW:function(){return et},sw:function(){return O},w_:function(){return er},xg:function(){return h},yu:function(){return k},z$:function(){return R},zb:function(){return v},zk:function(){return m}});let r="/bus/state",i="/bus/consensus/network",a="/bus/consensus/state",o="/bus/consensus/acceptblock",s="/bus/syncer/peers",l="/bus/syncer/connect",u="/bus/syncer/addr",c="/bus/txpool/transactions",d="/bus/txpool/broadcast",f="/bus/txpool/recommendedfee",h="/bus/wallet",p="/bus/wallet/events",m="/bus/wallet/pending",g="/bus/wallet/redistribute",v="/bus/wallet/send",y="/bus/wallet/prepare/form",b="/bus/hosts",x="/bus/host/:hostkey",w="/bus/host/:hostkey/scan",j="/bus/hosts/:hostkey",k="/bus/hosts/blocklist",E="/bus/hosts/allowlist",_="/bus/host/:hostkey/resetlostsectors",C="/bus/contracts",S="/bus/contract/:id/acquire",O="/bus/contract/:id/release",M="/bus/contract",P="/bus/contract/:id",A="/bus/contract/:id/new",T="/bus/contract/:id/renewed",N="/bus/contract/:id/size",R="/bus/contracts/prunable",D="/bus/bucket",L="/bus/buckets",z="/bus/bucket/:name",F="/bus/bucket/:name/policy",Z="/bus/objects",I="/bus/objects/:prefix",B="/bus/object/:key",V="/bus/objects/remove",U="/bus/objects/rename",H="/bus/stats/objects",W="/bus/settings/gouging",$="/bus/settings/pinned",q="/bus/settings/s3",K="/bus/settings/upload",Y="/bus/alerts",G="/bus/alerts/dismiss",X="/bus/slab/:key/objects",J="/bus/metric/contract",Q="/bus/metric/wallet",ee="/bus/multipart",et="/bus/multipart/create",en="/bus/multipart/complete",er="/bus/multipart/abort",ei="/bus/multipart/listparts",ea="/bus/multipart/listuploads",eo="/bus/multipart/part"},65740:function(e,t,n){"use strict";n.d(t,{Li:function(){return T},YY:function(){return N},AR:function(){return A}});var r,i=n(23782),a=n(1619),o=n(92725),s=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)},l=n(1809),u=n(18787),c=n(42383),d=n(43737),f=n(60619),h=n(48465),p=n(52059),m=n(98096),g=n(58189),v=n(93151),y=n(88225),b=n(36394),x=n(93779),w=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},j=n(28363),k=n(81330),E=function(e,t,n,r,i,a,o){var l=w(e,n),E=w(t,n),_=o.get(E);if(_){s(e,n,_);return}var C=a?a(l,E,n+"",e,t,o):void 0,S=void 0===C;if(S){var O=(0,p.Z)(E),M=!O&&(0,g.Z)(E),P=!O&&!M&&(0,x.Z)(E);(C=E,O||M||P)?(0,p.Z)(l)?C=l:(0,m.Z)(l)?C=(0,d.Z)(l):M?(S=!1,C=(0,u.Z)(E,!0)):P?(S=!1,C=(0,c.Z)(E,!0)):C=[]:(0,b.Z)(E)||(0,h.Z)(E)?(C=l,(0,h.Z)(l))?C=(0,j.Z)(l,(0,k.Z)(l)):(!(0,y.Z)(l)||(0,v.Z)(l))&&(C=(0,f.Z)(E)):S=!1}S&&(o.set(E,C),i(C,E,r,a,o),o.delete(E)),s(e,n,C)},_=function e(t,n,r,a,o){t!==n&&(0,l.Z)(n,function(l,u){if(o||(o=new i.Z),(0,y.Z)(l))E(t,n,u,r,e,a,o);else{var c=a?a(w(t,u),l,u+"",t,n,o):void 0;void 0===c&&(c=l),s(t,u,c)}},k.Z)},C=n(71811),S=n(90083),O=(r=function(e,t,n){_(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,S.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:O(r.config,a.config)},s=A(n,{...r.defaultParams,...o.params}),l="data"in o?o.data:void 0;return e[t](s,l,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)))),P().create({baseURL:e,headers:n})}},31405:function(e,t,n){"use strict";n.d(t,{JL:function(){return a},BF:function(){return o}});var r=n(83429);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})}},60381:function(e,t,n){"use strict";n.d(t,{B$:function(){return a},xf:function(){return s},jr:function(){return E},pp:function(){return j},x5:function(){return k},JW:function(){return o},Nk:function(){return R},Jz:function(){return en},Nr:function(){return I},gU:function(){return b},mj:function(){return ec},Lg:function(){return el},gP:function(){return d},Lu:function(){return ed},uF:function(){return es},jH:function(){return eu},uV:function(){return eo},jF:function(){return ei},hR:function(){return ee},hq:function(){return Q},uC:function(){return et},Tc:function(){return Y},aU:function(){return N},du:function(){return G},pX:function(){return J},XA:function(){return $},yt:function(){return Z},vW:function(){return m},rN:function(){return y},yF:function(){return v},Vz:function(){return p},bc:function(){return g},At:function(){return z},He:function(){return W},oK:function(){return H},sW:function(){return F},xL:function(){return V},S5:function(){return w},_6:function(){return ef},XB:function(){return K},GX:function(){return q},C4:function(){return f},qN:function(){return c},ll:function(){return u},dq:function(){return O},LK:function(){return _},ZA:function(){return A},oc:function(){return P},x9:function(){return T},qX:function(){return M},iX:function(){return S},wf:function(){return C},BL:function(){return B},mv:function(){return x},iv:function(){return U}});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 s(e){return new(i())(e).times(1e12)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let l=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(l).toFixed(t)):new r.BigNumber(e).dividedBy(l)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(l).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),s=new r.BigNumber(1e3),l=new r.BigNumber(e),c=new r.BigNumber(e).abs(),d=l.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(s),new r.BigNumber(1)),i=c.dividedBy(o.multipliedBy(t));if(i.isLessThan(s)||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 b(e){return 144*e}function x(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 _(e){return e.times(s(1))}function C(e){return e.div(s(1))}function S(e){return C(e).div(w(1))}function O(e){return _(e).times(w(1))}function M(e,t){return e.div(t).times(w(1))}function P(e,t){let n=x(t.toNumber());return e.times(n).div(w(1))}function A(e){return e.div(1e6)}function T(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:s}=e;if(!(null==t?void 0:t.gt(0))||!(null==n?void 0:n.gt(0))||!(null==r?void 0:r.gt(0))||!(null==s?void 0:s.gt(0))||!(null==i?void 0:i.gt(0))||!(null==a?void 0:a.gt(0))||!(null==o?void 0:o.gt(0)))return;let l=i.times(s),u=o.times(s);return l.times(t).plus(a.times(n)).plus(u.times(r))}var D=n(81395),L=n(22814);function z(e){return 76===e.length&&function(e){var t;let n=function(e){let t=[];for(let n=0;n0?"storageProof":n.fileContracts&&n.fileContracts.length>0&&n.fileContractRevisions&&n.fileContractRevisions.length>0?"contractRenewal":n.fileContractRevisions&&n.fileContractRevisions.length>0?"contractRevision":n.fileContracts&&n.fileContracts.length>0?"contractFormation":n.arbitraryData&&n.arbitraryData.length>0&&0===atob(n.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":n.siafundOutputs&&n.siafundOutputs.length>0?"siafund":n.siacoinOutputs&&n.siacoinOutputs.length>0?"siacoin":"unknown"}return"v2Transaction"===t?function(e){var t;if(e.fileContractResolutions&&e.fileContractResolutions.length>0)return({expiration:"contractExpiration",finalization:"contractFinalization",renewal:"contractRenewal","storage proof":"storageProof"})[e.fileContractResolutions[0].resolution.type];if(e.fileContractRevisions&&e.fileContractRevisions.length>0)return"contractRevision";if(e.fileContracts&&e.fileContracts.length>0)return"contractFormation";let n=null===(t=e.attestations)||void 0===t?void 0:t.filter(e=>"HostAnnouncement"===e.key);return n&&n.length>0?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":"unknown"}(e.data):"v1ContractResolution"===t||"v2ContractResolution"===t?"contractPayout":"miner"===t?"minerPayout":"foundation"===t?"foundationSubsidy":t}function en(e){return"v2Transaction"===e.type?(e.data.siacoinOutputs||[]).reduce((t,n)=>e.relevant.includes(n.address)?t.plus(n.value):t,new(i())(0)).minus((e.data.siacoinInputs||[]).reduce((t,n)=>e.relevant.includes(n.parent.siacoinOutput.address)?t.plus(n.parent.siacoinOutput.value):t,new(i())(0))):"v1Transaction"===e.type?(e.data.transaction.siacoinOutputs||[]).reduce((t,n)=>e.relevant.includes(n.address)?t.plus(n.value):t,new(i())(0)).minus((e.data.spentSiacoinElements||[]).reduce((t,n)=>e.relevant.includes(n.siacoinOutput.address)?t.plus(n.siacoinOutput.value):t,new(i())(0))):new(i())(e.data.siacoinElement.siacoinOutput.value)}let er={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function ei(e){return e?er[e]:void 0}let ea={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 eo(e){return e?ea[e]:void 0}function es(e){return e&&["ip","hostIp"].includes(e)?20:12}function el(e){return e&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(e)}function eu(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 ec(e,t){return"".concat(null==e?void 0:e.slice(0,t)).concat(((null==e?void 0:e.length)||0)>t?"...":"")}function ed(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 ec(t,n)}function ef(e,t,n){let r="1 ".concat(t),i="".concat(t,"s"),a="";"string"==typeof n&&(i=n),"object"==typeof n&&(n.plural&&(i=n.plural),n.customZero&&(a=n.customZero));let o="".concat(e.toLocaleString()," ").concat(i);return 0===e?a||o:1===e?r:o}},70095: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}})},4895: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}})},4254: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}})},91048:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(4895),i=n(49435),a=n(54042),o=n(1473);function s(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 l(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=s(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=s(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u=n(4254);function c(e,t){(0,r.Z)(1,arguments);var n=t||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,s=null==o?0:(0,u.Z)(o),l=null==n.weekStartsOn?s:(0,u.Z)(n.weekStartsOn);if(!(l>=0&&l<=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)},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(l(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),s=null==n.firstWeekContainsDate?o:(0,u.Z)(n.firstWeekContainsDate),l=d(e,t),f=new Date(0);return f.setUTCFullYear(l,0,s),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((s(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=l(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),s(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 b(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 x(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:x,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return b(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}}",b(i,t)).replace("{{time}}",x(a,t))}},j=n(70095),k=["D","DD"],E=["YY","YYYY"];function _(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,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O=/^'([^]*?)'?$/,M=/''/g,P=/[a-zA-Z]/;function A(e,t,n){(0,r.Z)(2,arguments);var s=String(t),l=n||{},c=l.locale||a.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,u.Z)(d),h=null==l.firstWeekContainsDate?f:(0,u.Z)(l.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==l.weekStartsOn?m:(0,u.Z)(l.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 b=(0,j.Z)(v),x=(0,o.Z)(v,b),A={firstWeekContainsDate:h,weekStartsOn:g,locale:c,_originalDate:v};return s.match(S).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,A):e}).join("").match(C).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(O)[1].replace(M,"'");var i=y[r];if(i)return l.useAdditionalWeekYearTokens||-1===E.indexOf(n)||_(n,t,e),l.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||_(n,t,e),i(x,n,c.localize,A);if(r.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},96647:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(49435),i=n(4895);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)}},s=n(54042),l=n(70095);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=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,s=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)(s)}(u,n),g=Math.round((m-((0,l.Z)(u)-(0,l.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),s=(0,r.Z)(t),l=a(o,s),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,s));if(u<1)n=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-l*u);var c=a(o,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===a(e,s)&&(c=!1),n=l*(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)}},22836:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(70095),i=n(49435),a=n(4895);function o(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}var s=n(91048),l=n(54042),u=n(1473);function c(e,t,n){(0,a.Z)(2,arguments);var c,d=(0,i.Z)(e),f=(0,i.Z)(t),h=n||{},p=h.locale,m=void 0===p?l.Z:p,g=h.weekStartsOn,v=void 0===g?0:g;if(!m.localize)throw RangeError("locale must contain localize property");if(!m.formatLong)throw RangeError("locale must contain formatLong property");if(!m.formatRelative)throw RangeError("locale must contain formatRelative property");var y=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)}(d,f);if(isNaN(y))throw RangeError("Invalid time value");c=y<-6?"other":y<-1?"lastWeek":y<0?"yesterday":y<1?"today":y<2?"tomorrow":y<7?"nextWeek":"other";var b=(0,u.Z)(d,(0,r.Z)(d)),x=(0,u.Z)(f,(0,r.Z)(f)),w=m.formatRelative(c,b,x,{locale:m,weekStartsOn:v});return(0,s.Z)(d,w,{locale:m,weekStartsOn:v})}},54042: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"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:o,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],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}}},1473:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4254),i=n(49435),a=n(4895);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))}},49435:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4895);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))}},74669: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(80465).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)},4437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(74669);("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)},80465: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)},42642: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 l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let r=n(2784),i=n(47640),a=n(30154),o=n(30454),s=n(70166),l=n(32374),u=n(33843);function c(){let e=(0,r.useContext)(a.SearchParamsContext);return(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,r.useContext)(a.PathnameContext)}function f(){let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,r.useContext)(a.PathParamsContext)}function p(e){void 0===e&&(e="children");let t=(0,r.useContext)(i.LayoutRouterContext);return t?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 l;let e=t[1];a=null!=(l=e.children)?l:Object.values(e)[0]}if(!a)return i;let u=a[0],c=(0,o.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(c),e(a,n,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=p(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===s.DEFAULT_SEGMENT_KEY?null: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)},32374: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 o},RedirectType:function(){return r.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(23825),i=n(17356);class a extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class o extends URLSearchParams{append(){throw new a}delete(){throw new a}set(){throw new a}sort(){throw new a}}("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)},17356: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,{isNotFoundError:function(){return i},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&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)},19228: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)},23825: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},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return c}});let a=n(98512),o=n(4437),s=n(19228),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+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)?s.RedirectStatusCode.SeeOther:s.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)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,i]=e.digest.split(";",4),a=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(a)&&a in s.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)},12516: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(80465).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)},98512: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,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(12516);function i(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("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)},30454: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)},19745:function(e,t){"use strict";var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return h}});let o="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=r||(r={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("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)},12394: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(14079),("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)},22657:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(43219),i=n(16794),a=n(52322),o=i._(n(2784)),s=r._(n(28316)),l=r._(n(68792)),u=n(25123),c=n(96648),d=n(41897);n(71388);let f=n(24698),h=r._(n(59553)),p={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 m(e,t,n,r,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("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 g(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:v,fill:y,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:E,onError:_,...C}=e;return(0,a.jsx)("img",{...C,...g(f),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(_&&(e.src=e.src),e.complete&&m(e,h,b,x,w,v,k))},[n,h,b,x,w,_,v,k,t]),onLoad:e=>{m(e.currentTarget,h,b,x,w,v,k)},onError:e=>{j(!0),"empty"!==h&&w(!0),_&&_(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(f.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||r||c.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:s,onLoadingComplete:l}=e,m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[b,x]=(0,o.useState)(!1),[w,j]=(0,o.useState)(!1),{props:k,meta:E}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:b,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{...k,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:j,sizesInput:e.sizes,ref:t}),E.priority?(0,a.jsx)(y,{isAppRouter:!n,imgAttributes:k}):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)},14470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(43219),i=n(52322),a=r._(n(2784)),o=n(40706),s=n(90345),l=n(8985),u=n(70286),c=n(95549),d=n(24698),f=n(47640),h=n(34407),p=n(12394),m=n(70558),g=n(19745),v=new Set;function y(e,t,n,r,i,a){if(a||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:x,prefetch:w=null,passHref:j,replace:k,shallow:E,scroll:_,locale:C,onClick:S,onMouseEnter:O,onTouchStart:M,legacyBehavior:P=!1,...A}=e;n=x,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let T=a.default.useContext(d.RouterContext),N=a.default.useContext(f.AppRouterContext),R=null!=T?T:N,D=!T,L=!1!==w,z=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:Z}=a.default.useMemo(()=>{if(!T){let e=b(l);return{href:e,as:v?b(v):e}}let[e,t]=(0,o.resolveHref)(T,l,!0);return{href:e,as:v?(0,o.resolveHref)(T,v):t||e}},[T,l,v]),I=a.default.useRef(F),B=a.default.useRef(Z);P&&(r=a.default.Children.only(n));let V=P?r&&"object"==typeof r&&r.ref:t,[U,H,W]=(0,h.useIntersection)({rootMargin:"200px"}),$=a.default.useCallback(e=>{(B.current!==Z||I.current!==F)&&(W(),B.current=Z,I.current=F),U(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[Z,V,F,W,U]);a.default.useEffect(()=>{R&&H&&L&&y(R,F,Z,{locale:C},{kind:z},D)},[Z,F,H,C,L,null==T?void 0:T.locale,R,D,z]);let q={ref:$,onClick(e){P||"function"!=typeof S||S(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,n,r,i,o,l,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,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?a.default.startTransition(f):f()}(e,R,F,Z,k,E,_,C,D)},onMouseEnter(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&(L||!D)&&y(R,F,Z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:z},D)},onTouchStart:function(e){P||"function"!=typeof M||M(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&(L||!D)&&y(R,F,Z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:z},D)}};if((0,u.isAbsoluteUrl)(Z))q.href=Z;else if(!P||j||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(Z,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(Z,e,null==T?void 0:T.defaultLocale))}return P?a.default.cloneElement(r,q):(0,i.jsx)("a",{...A,...q,children: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)},34407:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(41346),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!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=s.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},s.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=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}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)},72392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},noSSR:function(){return o}});let r=n(43219);n(52322),n(2784);let i=r._(n(23711));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 s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().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)},25123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(71388);let r=n(74999),i=n(96648);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 s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:g,width:v,height:y,fill:b=!1,style:x,overrideSrc:w,onLoad:j,onLoadingComplete:k,placeholder:E="empty",blurDataURL:_,fetchPriority:C,layout:S,objectFit:O,objectPosition:M,lazyBoundary:P,lazyRoot:A,...T}=e,{imgConf:N,showAltText:R,blurComplete:D,defaultLoader:L}=t,z=N||i.imageConfigDefault;if("allSizes"in z)s=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t);s={...z,allSizes:e,deviceSizes:t}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let F=T.loader||L;delete T.loader,delete T.srcSet;let Z="__next_img_default"in F;if(Z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[S];t&&!d&&(d=t)}let I="",B=o(v),V=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(l=e.blurWidth,u=e.blurHeight,_=_||e.blurDataURL,I=e.src,!b){if(B||V){if(B&&!V){let t=B/e.width;V=Math.round(e.height*t)}else if(!B&&V){let t=V/e.height;B=Math.round(e.width*t)}}else B=e.width,V=e.height}}let U=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:I)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,U=!1),s.unoptimized&&(f=!0),Z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let H=o(g),W=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:M}:{},R?{}:{color:"transparent"},x),$=D||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:B,heightInt:V,blurWidth:l,blurHeight:u,blurDataURL:_||"",objectFit:W.objectFit})+'")':'url("'+E+'")',q=$?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:$}:{},K=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}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=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:a,width:l[c]})}}({config:s,src:c,unoptimized:f,width:B,quality:H,sizes:d,loader:F});return{props:{...T,loading:U?"lazy":p,fetchPriority:C,width:B,height:V,decoding:"async",className:m,style:{...W,...q},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:f,priority:h,placeholder:E,fill:b}}}},74999:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===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}})},5329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(43219),i=n(25123),a=n(22657),o=r._(n(59553));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.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}}let l=a.Image},59553: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},79195: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)},23711: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(79195),a=[],o=[],s=!1;function l(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 l(){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(!s){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();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=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,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=()=>(s=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},33843: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)}},21962:function(){},17282:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},29773: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 s(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 l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(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 l.get(e)||l.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=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=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,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;a>>i&1)==1),o.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),l=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^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 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 A(e){return null!=e}function T(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($($({},o),{},{open:a})))});Y.displayName="Dropzone";var G={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 l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,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 l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children: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 X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$($({},G),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,_=t.noClick,C=t.noKeyboard,S=t.noDrag,F=t.noDragEventsBubbling,Z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||z(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(z)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof 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=V((0,r.useReducer)(Q,X),2),eo=ea[0],es=ea[1],el=eo.isFocused,eu=eo.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&k&&er.current&&er.current.focus(),function(){}},[er,k,i]);var ep=(0,r.useCallback)(function(e){Z?Z(e):console.error(e)},[Z]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return H(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||U(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(!T(e)||F){var n,r,i,a,d,f,h,p,m=t.length,g=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:o,multiple:l,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(M(e,i),1)[0],n=j(P(e,a,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[a,c,ep,F,Y,s,o,l,u,W]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,F]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=V(M(e,Y),2),i=t[0],a=t[1],l=V(P(e,s,o),2),u=l[0],c=l[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})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,o,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(a(e)).then(function(t){(!T(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[a,ey,ep,F]),ex=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return a(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,J,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[er,ex]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),ek=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.useCallback)(function(){_||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ex,0):ex())},[_,ex]),e_=function(e){return i?null:e},eC=function(e){return C?null:e_(e)},eS=function(e){return S?null:e_(e)},eO=function(e){F&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=K(e,I);return $($(q({onKeyDown:eC(D(r,ew)),onFocus:eC(D(a,ej)),onBlur:eC(D(o,ek)),onClick:e_(D(s,eE)),onDragEnter:eS(D(l,em)),onDragOver:eS(D(u,eg)),onDragLeave:eS(D(c,ev)),onDrop:eS(D(d,eb)),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,eb,C,S,i]),eP=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=K(e,B);return $($({},q({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:e_(D(n,eb)),onClick:e_(D(r,eP)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,l,eb,i]);return $($({},eo),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:e_(ex)})}function Q(e,t){switch(t.type){case"focus":return $($({},e),{},{isFocused:!0});case"blur":return $($({},e),{},{isFocused:!1});case"openDialog":return $($({},X),{},{isFileDialogActive:!0});case"closeDialog":return $($({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return $($({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return $($({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return $({},X);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,u,c=t(a),d=t(o);if(c&&d){if((l=a.length)!=o.length)return!1;for(s=l;0!=s--;)if(!e(a[s],o[s]))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((l=g.length)!==n(o).length)return!1;for(s=l;0!=s--;)if(!r.call(o,g[s]))return!1;if(i&&a instanceof Element&&o instanceof Element)return a===o;for(s=l;0!=s--;)if(("_owner"!==(u=g[s])||!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},s=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]+")"})};s.propTypes=o,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return a.default.createElement("svg",r({},s,{height:n,width:n,xmlns:o}),i?a.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,a.default[o]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var a=Math.round(i*m),o=Math.round(r*m),s=Math.round((i+1)*m)-a,c=Math.round((r+1)*m)-o;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:a,transformY:o})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},95346:function(e,t,n){"use strict";n.d(t,{Av:function(){return o},pF:function(){return r},xv:function(){return a},zi:function(){return i}});var r="right-scroll-bar-position",i="width-before-scroll-bar",a="with-scroll-bars-hidden",o="--removed-body-scroll-bar-size"},181:function(e,t,n){"use strict";n.d(t,{jp:function(){return m}});var r=n(2784),i=n(33225),a=n(95346),o={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=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[s(n),s(r),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return o;var t=l(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])}},c=(0,i.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat(a.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"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(a.pF," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(a.zi," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(a.pF," .").concat(a.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a.zi," .").concat(a.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(a.Av,": ").concat(l,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},p=function(){r.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=void 0===i?"margin":i;p();var o=r.useMemo(function(){return u(a)},[a]);return r.createElement(c,{styles:f(o,!t,a,n?"":"!important")})}},33225:function(e,t,n){"use strict";n.d(t,{Ws:function(){return s}});var r,i=n(2784),a=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o=function(){var e=a();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},s=function(){var e=o();return function(t){return e(t.styles,t.dynamic),null}}},32718:function(e,t,n){var r,i=n(58085),a=n(41964),o=n(53207),s=/(\+|\-|\*|\\|[^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,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(a+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,a="",o=t;r=s.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var l=i("(",")",o.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);a+=l.pre+u,o=l.post}return a+o}(n,l));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,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var 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],s=a.index,l=r("(",")",e.substring(s));if(!l||l.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:o}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,a){var o,s;return r.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,s=a.functionIdentifier,i(e(o,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>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:()=>l,default:()=>u});let a=(r=n(24470))&&r.__esModule?r:{default:r},o=new Set;function s(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 l(e){return a.default.dim(e)}let u={info(e,t){s(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(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 s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var s=t-(i-a.current);n(e,g?Math.min(s,v-(i-o.current)):s)}},x=function(){var d=Date.now(),h=r(d);if(l.current=[].slice.call(arguments),u.current=i,a.current=d,h){if(!s.current&&f.current)return o.current=a.current,n(b,t),p?e(a.current):c.current;if(g)return n(b,t),e(a.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,l.current=a.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,g,t,v,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return l(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);let i=new Map,a=new Set;function o(e){for(let t of[...a])t(e)}function s(e){try{return e()}catch(e){return}}var l=function(e,t){if(void 0===r.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[n]=(0,r.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return a.add(n),()=>{a.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}o(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>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(){s(()=>localStorage.removeItem(e)),i.delete(e),o(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},57758:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(22970),i=n(2784),a=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return i.createElement(a,(0,r.pi)({},n))};function o(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},64597:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(22970);function i(e){return e}function a(e){void 0===e&&(e={});var t,n,a,o=(void 0===t&&(t=i),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,r.pi)({async:!0,ssr:!1},e),o}},20452:function(e,t,n){"use strict";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,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return X},Ry:function(){return ey},Z_:function(){return K}});try{y=Map}catch(e){}try{b=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(b&&t instanceof b)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 s=n.findIndex(function(e){return e===t[o]});a[o]=s>-1?i[s]:e(t[o],n,i)}return a}return t}(e,[],[])}let i=Object.prototype.toString,a=Error.prototype.toString,o=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+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,b,x=n(93352),w=n.n(x),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 _(){return(_=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let O=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function M(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:s,path:l}=e,u=O(t),c=r.length,d=[];if(o=o||[],!c)return o.length?u(new S(o,a,l)):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}=s;function v(e){return R.isRef(e)?e.getValue(i,m,g):e}function y(e={}){let t=A()(D({value:i,originalValue:l,label:o,path:e.path||a},h,e.params),v),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=D({path:a,parent:m,type:d,createError:y,resolve:v,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}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}". +`,Pq=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:a,containerClassName:o})=>{let{toasts:s,handlers:l}=Pk(n);return el.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(n=>{let a=n.position||t,o=PW(a,l.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return el.createElement(PH,{id:n.id,key:n.id,onHeightUpdate:l.updateHeight,className:n.visible?P$:"",style:o},"custom"===n.type?Po(n.message,n):i?i(n):el.createElement(PU,{toast:n,position:a}))}))};function PK(e){let{icon:t,title:n,body:r,toastId:i}=e;return(0,es.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,es.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[t&&(0,es.jsx)(n4,{className:"flex items-center",color:"subtle",children:t}),(0,es.jsx)(l7,{content:n,children:(0,es.jsx)(n4,{ellipsis:!0,className:"flex-1",children:n})}),(0,es.jsx)("div",{className:"flex items-center pl-1",children:(0,es.jsx)(ue,{icon:"hover",size:"none",onClick:e=>{Px.dismiss(i)},children:(0,es.jsx)(ut.PcV,{})})})]}),r&&(0,es.jsx)("div",{className:"pb-1",children:(0,es.jsx)(fb,{children:(0,es.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,es.jsx)(n4,{color:"subtle",size:"14",children:r})})})})]})}let PY=e=>{let{title:t,body:n,icon:r,options:i={}}=e;Px(e=>(0,es.jsx)(PK,{toastId:e.id,title:t,body:n,icon:r}),PJ(i))};function PG(e){let{title:t,body:n,options:r}=e;PY({title:t,body:n,icon:(0,es.jsx)(ut.yar,{className:"text-green-600"}),options:r})}function PX(e){let{title:t,body:n,options:r}=e;PY({title:t,body:n,icon:(0,es.jsx)(ut.T80,{className:"text-red-600"}),options:r})}function PJ(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,tl.cx)(n5(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",e),success:{icon:(0,es.jsx)("div",{className:"!flex-none w-5",children:(0,es.jsx)(ut.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,es.jsx)("div",{className:"!flex-none w-5",children:(0,es.jsx)(ut.Jsc,{className:"w-5 text-red-600"})})},...t}}function PQ(){return(0,es.jsx)(Pq,{toastOptions:PJ(),containerStyle:{zIndex:20}})}let P0=(e,t)=>{PY({title:t?"Copied ".concat(t," to clipboard"):"Copied to clipboard",icon:(0,es.jsx)(ut.vtB,{})}),MY(e)},P1=(e,t,n)=>{var r;PY({title:n?"Copied ".concat(n," to clipboard"):"Copied to clipboard",icon:(0,es.jsx)(ut.vtB,{})}),r=[new ClipboardItem({[t]:e})],MK(()=>MR&&ML?(MO("Using `navigator.clipboard.write()`."),Mz.all(r.map(MJ)).then(e=>MR(e).then(M$).catch(e=>{if(!MX(r,MS)&&!MX(r,"text/html"))throw e;return Mq}))):Mq).then(e=>{var t;return e?MW:(MX(r,MS)||MO("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."),MH((t=r[0]).types,function(e){return t.getType(e).then(e=>new Mz((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(!MU(e))throw Error("write() failed")}))})},P2=e=>{let{text:t,title:n,body:r,icon:i,options:a}=e;PY({title:n,body:r,icon:i||(0,es.jsx)(ut.vtB,{}),options:a}),MY(t)};function P4(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e?t&&e.length>t?"".concat(e.slice(0,t)).concat(n?"...":""):"".concat(e.slice(0,t)):""}function P3(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"").replace(/^bid:/,"")}function P5(e,t,n){return t?"".concat(e," ").concat(P4(t,n)):"".concat(e)}function P6(e){let{testId:t,value:n,displayValue:r,type:i,label:a,href:o,maxLength:s,size:l,scaleSize:u,weight:c,font:d,color:f="contrast",className:h,siascanUrl:p,contextMenu:m}=e,g=a||(0,jY.uV)(i),v=s||(0,jY.uF)(i),y=P3(n),b=r||i&&(0,jY.Lu)(i,y,v)||(0,jY.mj)(y,v);return(0,es.jsxs)("div",{"data-testid":t,className:(0,tl.cx)("flex items-center",h),children:[o?(0,es.jsx)(gT,{href:o,underline:"hover",size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:b}):(0,es.jsx)(n4,{size:l,scaleSize:u,color:f,weight:c,font:d,ellipsis:!0,children:b}),(0,es.jsx)("div",{className:"ml-1 flex items-center",children:m||(0,es.jsx)(P8,{cleanValue:y,label:g,size:l,siascanUrl:p,type:i})})]})}function P8(e){let{size:t,cleanValue:n,label:r,siascanUrl:i,type:a}=e;return(0,es.jsxs)(gh,{trigger:(0,es.jsx)(ue,{size:"none",variant:"ghost",children:(0,es.jsx)(ut.EMN,{className:"10"===t?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,es.jsxs)(gp,{onSelect:e=>{P0(n,r)},onClick:e=>{e.stopPropagation()},children:[(0,es.jsx)(gg,{children:(0,es.jsx)(ut.olJ,{})}),"Copy to clipboard"]}),i&&a&&(0,jY.Lg)(a)&&(0,es.jsx)(gT,{target:"_blank",href:(0,jY.jH)(i,a,n),className:"block w-full",underline:"none",children:(0,es.jsxs)(gp,{onClick:e=>{e.stopPropagation()},children:[(0,es.jsx)(gg,{children:(0,es.jsx)(ut.V8Q,{})}),"View on Siascan"]})})]})}function P7(e){let{value:t,displayValue:n,type:r,href:i,maxLength:a,size:o,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=a||(0,jY.uF)(r),f=P3(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,es.jsxs)("div",{className:(0,tl.cx)("flex items-center",c),children:[i?(0,es.jsx)(gT,{href:i,underline:"hover",size:o,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,es.jsx)(n4,{size:o,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,es.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function P9(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change"}=e,o=(0,jY.yF)(String(t),{units:"SF"});return(0,es.jsx)(l7,{content:(i?"".concat(i," "):"")+o,children:(0,es.jsxs)(n4,{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 Ae(e){let{testId:t,value:n,size:r,scaleSize:i,tooltip:a="",tipSide:o,font:s="mono",variant:l="change",color:u,fixed:c=3,dynamicUnits:d=!0,hastingUnits:f=!0,extendedSuffix:h,showTooltip:p=!0}=e,m=n.isGreaterThan(0)?"+":n.isLessThan(0)?"-":"",g=u||("change"===l?n.isGreaterThan(0)?"green":n.isLessThan(0)?"red":"subtle":"contrast"),v=(0,es.jsxs)(n4,{"data-testid":t,size:r,scaleSize:i,weight:"medium",font:s,ellipsis:!0,color:g,children:["change"===l?"".concat(m).concat((0,jY.Vz)(n.absoluteValue(),{fixed:c,dynamicUnits:d})):(0,jY.Vz)(n,{fixed:c,dynamicUnits:d,hastingUnits:f}),h||""]});return p?(0,es.jsx)(l7,{content:(a?"".concat(a," "):"")+(0,jY.Vz)(n,{fixed:16,dynamicUnits:!1}),side:o,children:v}):v}function At(e){let{sc:t,size:n,scaleSize:r,color:i,tooltip:a="",variant:o="change",fixed:s,font:l="mono",fixedTip:u=20,showTooltip:c=!0,tipSide:d,extendedSuffix:f}=e,{rate:h,currency:p}=(0,y4.Nz)(),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||!p)return null;let v=h.times(t).div(1e24),y=void 0!==s?s:p.fixed,b=(0,es.jsx)(n4,{size:n,scaleSize:r,weight:"medium",font:l,ellipsis:!0,color:g,children:"".concat(m).concat(p.prefix).concat(An(v.absoluteValue(),y)).concat(f||"")});return c?(0,es.jsx)(l7,{side:d,content:(a?"".concat(a," "):"")+"".concat(m).concat(p.prefix).concat(An(v.absoluteValue(),u)).concat(f||""),children:b}):b}function An(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 Ar(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:a="change",fixed:o=3,fixedFiat:s,fixedTipFiat:l,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,y4.Hv)(),{rate:y}=(0,y4.Nz)(),b=(0,el.useMemo)(()=>(0,es.jsx)(Ae,{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]),x=(0,el.useMemo)(()=>(0,es.jsx)(At,{sc:t,size:n,color:m&&"row"===g&&"bothPreferSc"===v?"subtle":void 0,scaleSize:r,tooltip:i,variant:a,fixed:s,fixedTip:l,font:u,dynamicUnits:d,hastingUnits:f,extendedSuffix:h,showTooltip:p,tipSide:c}),[t,n,r,i,a,u,s,l,d,f,h,p,c,v,m,g]);return"sc"!==v&&y?"fiat"===v?x:"bothPreferSc"===v?m?(0,es.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[b,x]}):b:"bothPreferFiat"===v?m?(0,es.jsxs)("div",{className:"column"===g?"flex flex-col items-end":"flex gap-1",children:[x,b]}):x:b:b}function Ai(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",tipSide:a,variant:o="change",color:s,format:l}=e,u=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",c="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,es.jsx)(l7,{side:a,content:(i?"".concat(i," "):"")+l(t),children:(0,es.jsx)(n4,{size:n,weight:r,font:"mono",ellipsis:!0,color:s||c,children:"change"===o?"".concat(u).concat(l(t.absoluteValue())):l(t)})})}var Aa=n(84712),Ao=n(45036),As=n(47421),Al=1/0,Au=function(e){var t,n=(t=e)?(t=(0,As.Z)(t))===Al||t===-Al?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,r=n%1;return n==n?r?n-r:n:0},Ac=Math.min,Ad=function(e,t){if((e=Au(e))<1||e>9007199254740991)return[];var n,r=4294967295,i=Ac(e,4294967295);t="function"==typeof(n=t)?n:Ao.Z,e-=4294967295;for(var a=(0,Aa.Z)(i,t);++r(0,es.jsxs)("div",{className:(0,tl.cx)("relative flex gap-4 p-3.5",(0,tl.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,es.jsx)(bn,{className:"w-[60px] h-[50px]"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,es.jsx)(bn,{className:"w-[90%] h-[20px]"}),(0,es.jsx)(bn,{className:"w-[140px] h-[14px]"})]})]},e))})}var Ah=n(96647),Ap=n(71609);function Am(e){let{type:t,label:n,initials:r,href:i,src:a,shape:o}=e,s=(0,es.jsx)(uj,{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")}),l=i&&(0,es.jsx)(gT,{href:i,underline:"none","data-testid":"entity-link",children:s})||s;return t?(0,es.jsx)(l7,{content:n||(0,jY.jF)(t),children:(0,es.jsx)("div",{className:"",children:l})}):l}function Ag(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:a,href:o,onClick:s,children:l}=e;return(0,es.jsxs)("div",{className:(0,tl.cx)("flex gap-4 p-4",(0,tl.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,es.jsx)(Am,{label:t,type:n,shape:i,src:r,initials:a||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:o}),l]})}function Av(e){let t=e.sc,n=e.sf,r=e.hash&&(0,es.jsx)(P6,{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,jY.pX)(e.txType)||(0,jY.jF)(e.type),a=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?(0,Ap.Z)(i):i;return(0,es.jsx)(Ag,{...e,children:(0,es.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[e.height&&e.blockHref&&(0,es.jsx)(n4,{color:"subtle",weight:"semibold",children:(0,es.jsx)(gT,{href:e.blockHref,underline:"none",children:(0,jY.yF)(e.height)})}),a?(0,es.jsx)(l7,{content:a,children:(0,es.jsx)(n4,{ellipsis:!0,weight:"medium",children:a})}):(0,es.jsx)(n4,{ellipsis:!0,weight:"medium",children:r})]}),(0,es.jsx)("div",{className:"flex-1"}),(0,es.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,es.jsx)(Ar,{variant:e.scVariant,value:t}),!!n&&(0,es.jsx)(P9,{variant:e.sfVariant,value:n})]})]}),(0,es.jsxs)("div",{className:"flex justify-between w-full",children:[(0,es.jsx)("div",{className:"flex gap-1",children:!!a&&r}),(0,es.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(n4,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,es.jsx)(n4,{color:"verySubtle",children:(0,es.jsx)(ut.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,es.jsx)(n4,{color:"subtle",children:(0,Ah.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Ay(e){let{title:t,actions:n,dataset:r,isLoading:i,emptyState:a,emptyMessage:o,skeletonCount:s=10,children:l}=e,u=t||n,c="emptyState";return!i||(null==r?void 0:r.length)||l||(c="skeleton"),((null==r?void 0:r.length)||l)&&(c="currentData"),(0,es.jsx)(n6,{children:(0,es.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[u&&(0,es.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,es.jsx)(gx,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,es.jsx)("div",{className:"flex-1"}),n]}),(0,es.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===c&&(a||(0,es.jsx)("div",{className:(0,tl.cx)("flex items-center justify-center h-[84px]",(0,tl.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,es.jsx)(n4,{size:"18",color:"subtle",children:o||"No results"})})),"currentData"===c&&(l||(null==r?void 0:r.map((e,t)=>(0,es.jsx)(Av,{...e},e.hash||e.label||t)))),"skeleton"===c&&(0,es.jsx)(Af,{skeletonCount:s})]})]})})}function Ab(e){let{label:t,entityType:n,entityValue:r,actions:i,href:a,value:o,extendedSuffix:s,hash:l,sc:u,scFixed:c=2,sf:d,comment:f,commentTip:h,scaleSize:p="40",isLoading:m,onClick:g}=e,v=(0,es.jsx)(n4,{color:"subtle",size:"12",className:"h-6",children:f});return(0,es.jsx)(n6,{children:(0,es.jsx)("div",{className:(0,tl.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",g?"cursor-pointer":""),onClick:g,children:(0,es.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,es.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,es.jsx)(n4,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?(0,Ap.Z)(t):t}),i]}),(0,es.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[m?(0,es.jsx)(bn,{className:"h-12 w-[150px]"}):(0,es.jsxs)(es.Fragment,{children:[void 0!==u&&(0,es.jsx)(Ar,{extendedSuffix:s,scaleSize:p,variant:"value",value:u,fixed:c}),void 0!==d&&(0,es.jsx)(P9,{scaleSize:p,variant:"value",value:d}),n&&(r?(0,es.jsx)(P6,{scaleSize:p,label:(0,jY.jF)(n),href:a,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,es.jsx)(n4,{font:"mono",weight:"medium",scaleSize:p,children:"-"})),l&&(0,es.jsx)(P6,{scaleSize:p,label:"hash",value:l}),void 0!==o&&(0,es.jsx)(n4,{font:"mono",weight:"medium",scaleSize:p,ellipsis:!0,children:o})]}),v?(0,es.jsx)("div",{className:"mt-1",children:m?(0,es.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,es.jsx)(bn,{className:"h-4 w-[100px]"})}):h?(0,es.jsx)(l7,{content:h,children:v}):v}):null]})]})})})}function Ax(e){let{title:t,actions:n,name:r}=e;return(0,es.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,es.jsx)(gM,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Aw(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,es.jsx)(n4,{size:"14",color:"red",children:a}):null}function Aj(e){let{form:t,title:n,actions:r,name:i,className:a,wrap:o}=e,s=t.formState.errors[i];return n||s?(0,es.jsxs)("div",{className:(0,tl.cx)("flex justify-between items-center gap-x-4 overflow-hidden",o?"flex-wrap":"",a),children:[(0,es.jsx)(Ax,{name:i,title:n,actions:r}),(0,es.jsx)(Aw,{form:t,name:i})]}):null}function Ak(e){let{children:t,...n}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,es.jsx)(Aj,{...n}),t]})}function AE(e){let{form:t,size:n="medium",variant:r="accent",className:i,children:a}=e;return(0,es.jsx)(ue,{className:i,size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,es.jsx)(ME,{}):a})}function A_(e){let{formik:t,title:n,name:r,placeholder:i,disabled:a,readOnly:o,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:g,type:v,variants:y}=e;return(0,es.jsx)(AP,{formik:t,title:n,name:r,children:"number"===v?(0,es.jsx)(AS,{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,es.jsx)(AO,{formik:t,name:r,disabled:a,readOnly:o,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,es.jsx)(AC,{formik:t,name:r,autoComplete:s,disabled:a,readOnly:o,placeholder:i,tabIndex:u,spellCheck:l,type:v,variants:y})})}function AC(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:a,readOnly:o,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,es.jsx)(yS,{id:n,name:n,autoComplete:i,disabled:a,spellCheck:l,placeholder:r,tabIndex:s,readOnly:o||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function AS(e){let{formik:t,name:n,units:r,disabled:i,readOnly:a,tabIndex:o,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,es.jsx)(y2,{id:n,units:r,name:n,placeholder:new(y0())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:a||t.isSubmitting,tabIndex:o,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function AO(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:a,placeholder:o,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,es.jsx)(y3,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:a,onFocus:()=>t.setFieldTouched(n),sc:new(y0())(t.values[n]),placeholder:new(y0())(o),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function AM(e){var t,n;let{formik:r,title:i,name:a,withStatusError:o=!1,className:s}=e,l=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||l)&&(0,es.jsxs)("div",{className:(0,tl.cx)("flex justify-between items-center gap-4",s),children:[i?(0,es.jsx)(gM,{htmlFor:a,children:i}):(0,es.jsx)("div",{}),l&&(0,es.jsx)(n4,{size:"14",color:"red",children:u})]})}function AP(e){let{children:t,...n}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,es.jsx)(AM,{...n}),t]})}function AA(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:a=!0,children:o}=e;return(0,es.jsxs)(es.Fragment,{children:[a&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,es.jsx)(n4,{color:"red",children:n.status.error}),(0,es.jsx)(ue,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,es.jsx)(ME,{}):o})]})}let AT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function AN(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function AR(e){return"nodeType"in e}function AD(e){var t,n;return e?AN(e)?e:AR(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function AL(e){let{Document:t}=AD(e);return e instanceof t}function Az(e){return!AN(e)&&e instanceof AD(e).HTMLElement}function AF(e){return e instanceof AD(e).SVGElement}function AZ(e){return e?AN(e)?e.document:AR(e)?AL(e)?e:Az(e)||AF(e)?e.ownerDocument:document:document:document}let AI=AT?el.useLayoutEffect:el.useEffect;function AV(e){let t=(0,el.useRef)(e);return AI(()=>{t.current=e}),(0,el.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{n.current!==e&&(n.current=e)},t),n}function AU(e,t){let n=(0,el.useRef)();return(0,el.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function AH(e){let t=AV(e),n=(0,el.useRef)(null),r=(0,el.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function AW(e){let t=(0,el.useRef)();return(0,el.useEffect)(()=>{t.current=e},[e]),t.current}let A$={};function Aq(e,t){return(0,el.useMemo)(()=>{if(t)return t;let n=null==A$[e]?0:A$[e]+1;return A$[e]=n,e+"-"+n},[e,t])}function AK(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 AY=AK(1),AG=AK(-1);function AX(e){if(!e)return!1;let{KeyboardEvent:t}=AD(e.target);return t&&e instanceof t}function AJ(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=AD(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 AQ=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[AQ.Translate.toString(e),AQ.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),A0="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",A1={display:"none"};function A2(e){let{id:t,value:n}=e;return el.createElement("div",{id:t,style:A1},n)}function A4(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return el.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 A3=(0,el.createContext)(null),A5={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 "},A6={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 A8(e){let{announcements:t=A6,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=A5}=e,{announce:a,announcement:o}=function(){let[e,t]=(0,el.useState)("");return{announce:(0,el.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=Aq("DndLiveRegion"),[l,u]=(0,el.useState)(!1);if((0,el.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,el.useContext)(A3);(0,el.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,el.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])),!l)return null;let c=el.createElement(el.Fragment,null,el.createElement(A2,{id:r,value:i.draggable}),el.createElement(A4,{id:s,announcement:o}));return n?(0,ey.createPortal)(c,n):c}function A7(){}function A9(e,t){return(0,el.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}(C=X||(X={})).DragStart="dragStart",C.DragMove="dragMove",C.DragEnd="dragEnd",C.DragCancel="dragCancel",C.DragOver="dragOver",C.RegisterDroppable="registerDroppable",C.SetDroppableDisabled="setDroppableDisabled",C.UnregisterDroppable="unregisterDroppable";let Te=Object.freeze({x:0,y:0});function Tt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}let Tn=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(Tt)};function Tr(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Te}let Ti=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 Ta(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 To={ignoreTransform:!1};function Ts(e,t){void 0===t&&(t=To);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=AD(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=Ta(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),u=e.top-s-(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:l+c,bottom:u+d,left:l}}(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function Tl(e){return Ts(e,{ignoreTransform:!0})}function Tu(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if(AL(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Az(i)||AF(i)||n.includes(i))return n;let o=AD(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=AD(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=AD(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function Tc(e){let[t]=Tu(e,1);return null!=t?t:null}function Td(e){return AT&&e?AN(e)?e:AR(e)?AL(e)||e===AZ(e).scrollingElement?window:Az(e)?e:null:null:null}function Tf(e){return AN(e)?e.scrollX:e.scrollLeft}function Th(e){return AN(e)?e.scrollY:e.scrollTop}function Tp(e){return{x:Tf(e),y:Th(e)}}function Tm(e){return!!AT&&!!e&&e===document.scrollingElement}function Tg(e){let t={x:0,y:0},n=Tm(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}}(S=J||(J={}))[S.Forward=1]="Forward",S[S.Backward=-1]="Backward";let Tv={x:.2,y:.2};function Ty(e){return e.reduce((e,t)=>AY(e,Tp(t)),Te)}function Tb(e,t){if(void 0===t&&(t=Ts),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Tc(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let Tx=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Tf(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Th(t),0)}]];class Tw{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=Tu(t),r=Ty(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,Tx))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 Tj{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 Tk(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 TE(e){e.preventDefault()}function T_(e){e.stopPropagation()}(O=Q||(Q={})).Click="click",O.DragStart="dragstart",O.Keydown="keydown",O.ContextMenu="contextmenu",O.Resize="resize",O.SelectionChange="selectionchange",O.VisibilityChange="visibilitychange",(M=ee||(ee={})).Space="Space",M.Down="ArrowDown",M.Right="ArrowRight",M.Left="ArrowLeft",M.Up="ArrowUp",M.Esc="Escape",M.Enter="Enter";let TC={start:[ee.Space,ee.Enter],cancel:[ee.Esc],end:[ee.Space,ee.Enter]},TS=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ee.Right:return{...n,x:n.x+25};case ee.Left:return{...n,x:n.x-25};case ee.Down:return{...n,y:n.y+25};case ee.Up:return{...n,y:n.y-25}}};class TO{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 Tj(AZ(t)),this.windowListeners=new Tj(AD(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Q.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Tb(n),t(Te)}handleKeyDown(e){if(AX(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=TC,coordinateGetter:a=TS,scrollBehavior:o="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:Te;this.referenceCoordinates||(this.referenceCoordinates=u);let c=a(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=AG(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:l,isBottom:u,maxScroll:d,minScroll:f}=Tg(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===ee.Right?h.right-h.width/2:h.right,Math.max(i===ee.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===ee.Down?h.bottom-h.height/2:h.bottom,Math.max(i===ee.Down?h.top:h.top+h.height/2,c.y))},m=i===ee.Right&&!s||i===ee.Left&&!l,g=i===ee.Down&&!u||i===ee.Up&&!a;if(m&&p.x!==c.x){let e=n.scrollLeft+t.x,a=i===ee.Right&&e<=d.x||i===ee.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===ee.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===ee.Down&&e<=d.y||i===ee.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===ee.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,AY(AG(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 TM(e){return!!(e&&"distance"in e)}function TP(e){return!!(e&&"delay"in e)}TO.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=TC,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 TA{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=AD(e);return e instanceof t?e:AZ(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=AZ(a),this.documentListeners=new Tj(this.document),this.listeners=new Tj(n),this.windowListeners=new Tj(AD(a)),this.initialCoordinates=null!=(r=AJ(i))?r:Te,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(Q.Resize,this.handleCancel),this.windowListeners.add(Q.DragStart,TE),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),this.windowListeners.add(Q.ContextMenu,TE),this.documentListeners.add(Q.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(TP(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(TM(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(Q.Click,T_,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Q.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 s=null!=(t=AJ(e))?t:Te,l=AG(r,s);if(!n&&o){if(TM(o)){if(null!=o.tolerance&&Tk(l,o.tolerance))return this.handleCancel();if(Tk(l,o.distance))return this.handleStart()}return TP(o)&&Tk(l,o.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ee.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let TT={move:{name:"pointermove"},end:{name:"pointerup"}};class TN extends TA{constructor(e){let{event:t}=e;super(e,TT,AZ(t.target))}}TN.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 TR={move:{name:"mousemove"},end:{name:"mouseup"}};(P=et||(et={}))[P.RightClick=2]="RightClick";class TD extends TA{constructor(e){super(e,TR,AZ(e.event.target))}}TD.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==et.RightClick&&(null==r||r({event:n}),!0)}}];let TL={move:{name:"touchmove"},end:{name:"touchend"}};class Tz extends TA{constructor(e){super(e,TL)}static setup(){return window.addEventListener(TL.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(TL.move.name,e)};function e(){}}}Tz.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)}}],(A=en||(en={}))[A.Pointer=0]="Pointer",A[A.DraggableRect=1]="DraggableRect",(T=er||(er={}))[T.TreeOrder=0]="TreeOrder",T[T.ReversedTreeOrder=1]="ReversedTreeOrder";let TF={x:{[J.Backward]:!1,[J.Forward]:!1},y:{[J.Backward]:!1,[J.Forward]:!1}};(N=ei||(ei={}))[N.Always=0]="Always",N[N.BeforeDragging=1]="BeforeDragging",N[N.WhileDragging=2]="WhileDragging",(ea||(ea={})).Optimized="optimized";let TZ=new Map;function TI(e,t){return AU(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function TV(e){let{callback:t,disabled:n}=e,r=AV(t),i=(0,el.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,el.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function TB(e){return new Tw(Ts(e),e)}function TU(e,t,n){void 0===t&&(t=TB);let[r,i]=(0,el.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=AV(t),i=(0,el.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,el.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=TV({callback:i});return AI(()=>{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 TH=[];function TW(e,t){void 0===t&&(t=[]);let n=(0,el.useRef)(null);return(0,el.useEffect)(()=>{n.current=null},t),(0,el.useEffect)(()=>{let t=e!==Te;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?AG(e,n.current):Te}function T$(e){return(0,el.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 Tq=[];function TK(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Az(t)?t:e}let TY=[{sensor:TN,options:{}},{sensor:TO,options:{}}],TG={current:{}},TX={draggable:{measure:Tl},droppable:{measure:Tl,strategy:ei.WhileDragging,frequency:ea.Optimized},dragOverlay:{measure:Ts}};class TJ 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 TQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new TJ,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:A7},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:TX,measureDroppableContainers:A7,windowRect:null,measuringScheduled:!1},T0={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:A7,draggableNodes:new Map,over:null,measureDroppableContainers:A7},T1=(0,el.createContext)(T0),T2=(0,el.createContext)(TQ);function T4(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new TJ}}}function T3(e,t){switch(t.type){case X.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case X.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 X.DragEnd:case X.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case X.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new TJ(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case X.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 TJ(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case X.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new TJ(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function T5(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,el.useContext)(T1),a=AW(r),o=AW(null==n?void 0:n.id);return(0,el.useEffect)(()=>{if(!t&&!r&&a&&null!=o){if(!AX(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(A0)?e:e.querySelector(A0);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function T6(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let T8=(0,el.createContext)({...Te,scaleX:1,scaleY:1});(R=eo||(eo={}))[R.Uninitialized=0]="Uninitialized",R[R.Initializing=1]="Initializing",R[R.Initialized=2]="Initialized";let T7=(0,el.memo)(function(e){var t,n,r,i,a,o;let{id:s,accessibility:l,autoScroll:u=!0,children:c,sensors:d=TY,collisionDetection:f=Tn,measuring:h,modifiers:p,...m}=e,[g,v]=(0,el.useReducer)(T3,void 0,T4),[y,b]=function(){let[e]=(0,el.useState)(()=>new Set),t=(0,el.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,el.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]}(),[x,w]=(0,el.useState)(eo.Uninitialized),j=x===eo.Initialized,{draggable:{active:k,nodes:E,translate:_},droppable:{containers:C}}=g,S=k?E.get(k):null,O=(0,el.useRef)({initial:null,translated:null}),M=(0,el.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==S?void 0:S.data)?e:TG,rect:O}:null},[k,S]),P=(0,el.useRef)(null),[A,T]=(0,el.useState)(null),[N,R]=(0,el.useState)(null),D=AB(m,Object.values(m)),L=Aq("DndDescribedBy",s),z=(0,el.useMemo)(()=>C.getEnabled(),[C]),F=(0,el.useMemo)(()=>({draggable:{...TX.draggable,...null==h?void 0:h.draggable},droppable:{...TX.droppable,...null==h?void 0:h.droppable},dragOverlay:{...TX.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:I,measuringScheduled:V}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,el.useState)(null),{frequency:s,measure:l,strategy:u}=i,c=(0,el.useRef)(e),d=function(){switch(u){case ei.Always:return!1;case ei.BeforeDragging:return n;default:return!n}}(),f=AB(d),h=(0,el.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,el.useRef)(null),m=AU(t=>{if(d&&!n)return TZ;if(!t||t===TZ||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 Tw(l(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,l]);return(0,el.useEffect)(()=>{c.current=e},[e]),(0,el.useEffect)(()=>{d||h()},[n,d]),(0,el.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,el.useEffect)(()=>{d||"number"!=typeof s||null!==p.current||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(z,{dragging:j,dependencies:[_.x,_.y],config:F.droppable}),B=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return AU(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(E,k),U=(0,el.useMemo)(()=>N?AJ(N):null,[N]),H=function(){let e=(null==A?void 0:A.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=TI(B,F.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,el.useRef)(!1),{x:o,y:s}="boolean"==typeof i?{x:i,y:i}:i;AI(()=>{if(!o&&!s||!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=Tr(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Tc(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}({activeNode:k?E.get(k):null,config:H.layoutShiftCompensation,initialRect:W,measure:F.draggable.measure});let $=TU(B,F.draggable.measure,W),q=TU(B?B.parentElement:null),K=(0,el.useRef)({activatorEvent:null,active:null,activeNode:B,collisionRect:null,collisions:null,droppableRects:Z,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Y=C.getNodeFor(null==(t=K.current.over)?void 0:t.id),G=function(e){let{measure:t}=e,[n,r]=(0,el.useState)(null),i=TV({callback:(0,el.useCallback)(e=>{for(let{target:n}of e)if(Az(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=AH((0,el.useCallback)(e=>{let n=TK(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]));return(0,el.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:F.dragOverlay.measure}),Q=null!=(n=G.nodeRef.current)?n:B,ee=j?null!=(r=G.rect)?r:$:null,et=!!(G.nodeRef.current&&G.rect),ea=function(e){let t=TI(e);return Tr(e,t)}(et?null:$),es=T$(Q?AD(Q):null),eu=function(e){let t=(0,el.useRef)(e),n=AU(n=>e?n&&n!==TH&&e&&t.current&&e.parentNode===t.current.parentNode?n:Tu(e):TH,[e]);return(0,el.useEffect)(()=>{t.current=e},[e]),n}(j?null!=Y?Y:B:null),ec=function(e,t){void 0===t&&(t=Ts);let[n]=e,r=T$(n?AD(n):null),[i,a]=(0,el.useReducer)(function(){return e.length?e.map(e=>Tm(e)?r:new Tw(t(e),e)):Tq},Tq),o=TV({callback:a});return e.length>0&&i===Tq&&a(),AI(()=>{e.length?e.forEach(e=>null==o?void 0:o.observe(e)):(null==o||o.disconnect(),a())},[e]),i}(eu),ed=T6(p,{transform:{x:_.x-ea.x,y:_.y-ea.y,scaleX:1,scaleY:1},activatorEvent:N,active:M,activeNodeRect:$,containerNodeRect:q,draggingNodeRect:ee,over:K.current.over,overlayNodeRect:G.rect,scrollableAncestors:eu,scrollableAncestorRects:ec,windowRect:es}),ef=U?AY(U,_):null,eh=function(e){let[t,n]=(0,el.useState)(null),r=(0,el.useRef)(e),i=(0,el.useCallback)(e=>{let t=Td(e.target);t&&n(e=>e?(e.set(t,Tp(t)),new Map(e)):null)},[]);return(0,el.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=Td(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Tp(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=Td(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,el.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>AY(e,t),Te):Ty(e):Te,[e,t])}(eu),ep=TW(eh),em=TW(eh,[$]),eg=AY(ed,ep),ev=ee?Ti(ee,ed):null,eb=M&&ev?f({active:M,collisionRect:ev,droppableRects:Z,droppableContainers:z,pointerCoordinates:ef}):null,ex=function(e,t){if(!e||0===e.length)return null;let[n]=e;return n.id}(eb,0),[ew,ej]=(0,el.useState)(null),ek=(a=et?ed:AY(ed,em),o=null!=(i=null==ew?void 0:ew.rect)?i:null,{...a,scaleX:o&&$?o.width/$.width:1,scaleY:o&&$?o.height/$.height:1}),eE=(0,el.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==P.current)return;let i=E.get(P.current);if(!i)return;let a=e.nativeEvent,o=new n({active:P.current,activeNode:i,event:a,options:r,context:K,onStart(e){let t=P.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:O}};(0,ey.unstable_batchedUpdates)(()=>{null==r||r(i),w(eo.Initializing),v({type:X.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i})})},onMove(e){v({type:X.DragMove,coordinates:e})},onEnd:s(X.DragEnd),onCancel:s(X.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=K.current,o=null;if(t&&i){let{cancelDrop:s}=D.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===X.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(e=X.DragCancel)}P.current=null,(0,ey.unstable_batchedUpdates)(()=>{v({type:e}),w(eo.Uninitialized),ej(null),T(null),R(null);let t=e===X.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=D.current[t];null==e||e(o),y({type:t,event:o})}})}}(0,ey.unstable_batchedUpdates)(()=>{T(o),R(e.nativeEvent)})},[E]),e_=(0,el.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=E.get(r);null!==P.current||!a||i.dndKit||i.defaultPrevented||!0!==e(n,t.options,{active:a})||(i.dndKit={capturedBy:t.sensor},P.current=r,eE(n,t))},[E,eE]),eC=(0,el.useMemo)(()=>d.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e_(e.handler,t)}))]},[]),[d,e_]);(0,el.useEffect)(()=>{if(!AT)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})),AI(()=>{$&&x===eo.Initializing&&w(eo.Initialized)},[$,x]),(0,el.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,ey.unstable_batchedUpdates)(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[eg.x,eg.y]),(0,el.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=K.current;if(!e||null==P.current||!t||!i)return;let{onDragOver:a}=D.current,o=r.get(ex),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,ey.unstable_batchedUpdates)(()=>{ej(s),null==a||a(l),y({type:"onDragOver",event:l})})},[ex]),AI(()=>{K.current={activatorEvent:N,active:M,activeNode:B,collisionRect:ev,collisions:eb,droppableRects:Z,draggableNodes:E,draggingNode:Q,draggingNodeRect:ee,droppableContainers:C,over:ew,scrollableAncestors:eu,scrollAdjustedTranslate:eg},O.current={initial:ee,translated:ev}},[M,B,eb,ev,E,Q,ee,Z,C,ew,eu,eg]),function(e){let{acceleration:t,activator:n=en.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=er.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,h=function(e){let{delta:t,disabled:n}=e,r=AW(t);return AU(e=>{if(n||!r||!e)return TF;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[J.Backward]:e.x[J.Backward]||-1===i.x,[J.Forward]:e.x[J.Forward]||1===i.x},y:{[J.Backward]:e.y[J.Backward]||-1===i.y,[J.Forward]:e.y[J.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!a}),[p,m]=function(){let e=(0,el.useRef)(null);return[(0,el.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,el.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,el.useRef)({x:0,y:0}),v=(0,el.useRef)({x:0,y:0}),y=(0,el.useMemo)(()=>{switch(n){case en.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case en.DraggableRect:return i}},[n,i,l]),b=(0,el.useRef)(null),x=(0,el.useCallback)(()=>{let e=b.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,el.useMemo)(()=>s===er.TreeOrder?[...u].reverse():u,[s,u]);(0,el.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:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Tv);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=Tg(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=J.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=J.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=J.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(h.x=J.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(),b.current=e,p(x,o),g.current=a,v.current=i;return}}g.current={x:0,y:0},v.current={x:0,y:0},m()},[t,x,r,m,a,o,JSON.stringify(y),JSON.stringify(h),p,u,w,c,JSON.stringify(f)])}({...H,delta:_,draggingRect:ev,pointerCoordinates:ef,scrollableAncestors:eu,scrollableAncestorRects:ec});let eS=(0,el.useMemo)(()=>({active:M,activeNode:B,activeNodeRect:$,activatorEvent:N,collisions:eb,containerNodeRect:q,dragOverlay:G,draggableNodes:E,droppableContainers:C,droppableRects:Z,over:ew,measureDroppableContainers:I,scrollableAncestors:eu,scrollableAncestorRects:ec,measuringConfiguration:F,measuringScheduled:V,windowRect:es}),[M,B,$,N,eb,q,G,E,C,Z,ew,I,eu,ec,F,V,es]),eO=(0,el.useMemo)(()=>({activatorEvent:N,activators:eC,active:M,activeNodeRect:$,ariaDescribedById:{draggable:L},dispatch:v,draggableNodes:E,over:ew,measureDroppableContainers:I}),[N,eC,M,$,v,L,E,ew,I]);return el.createElement(A3.Provider,{value:b},el.createElement(T1.Provider,{value:eO},el.createElement(T2.Provider,{value:eS},el.createElement(T8.Provider,{value:ek},c)),el.createElement(T5,{disabled:(null==l?void 0:l.restoreFocus)===!1})),el.createElement(A8,{...l,hiddenTextDescribedById:L}))}),T9=(0,el.createContext)(null),Ne="button",Nt={timeout:25};function Nn(e){let{animation:t,children:n}=e,[r,i]=(0,el.useState)(null),[a,o]=(0,el.useState)(null),s=AW(n);return n||r||!s||i(s),AI(()=>{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]),el.createElement(el.Fragment,null,n,r?(0,el.cloneElement)(r,{ref:o}):null)}let Nr={x:0,y:0,scaleX:1,scaleY:1};function Ni(e){let{children:t}=e;return el.createElement(T1.Provider,{value:T0},el.createElement(T8.Provider,{value:Nr},t))}let Na={position:"fixed",touchAction:"none"},No=e=>AX(e)?"transform 250ms ease":void 0,Ns=(0,el.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:l,transform:u,transition:c=No}=e;if(!s)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...Na,width:s.width,height:s.height,top:s.top,left:s.left,transform:AQ.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=AJ(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,s):void 0,transition:"function"==typeof c?c(r):c,...l};return el.createElement(n,{className:o,style:f,ref:t},a)}),Nl={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:AQ.Transform.toString(t)},{transform:AQ.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)}})},Nu=0,Nc=el.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:a,transition:o,modifiers:s,wrapperElement:l="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggableNodes:m,droppableContainers:g,dragOverlay:v,over:y,measuringConfiguration:b,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:j}=(0,el.useContext)(T2),k=(0,el.useContext)(T8),E=(t=null==f?void 0:f.id,(0,el.useMemo)(()=>{if(null!=t)return++Nu},[t])),_=T6(s,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:k,windowRect:j}),C=TI(h),S=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return AV((e,a)=>{if(null===t)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let l=TK(a);if(!l)return;let{transform:u}=AD(a).getComputedStyle(a),c=Ta(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Nl,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...l}=e;if(!t)return;let u={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},c={scaleX:1!==s.scaleX?a.rect.width*s.scaleX/o.rect.width:1,scaleY:1!==s.scaleY?a.rect.height*s.scaleY/o.rect.height:1},d={x:s.x-u.x,y:s.y-u.y,...c},f=i({...l,active:a,dragOverlay:o,transform:{initial:s,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,...l}),g=o.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==m||m(),e()}})}}(t);return Tb(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:m,droppableContainers:g,measuringConfiguration:b}),O=C?v.setRef:void 0;return el.createElement(Ni,null,el.createElement(Nn,{animation:S},f&&E?el.createElement(Ns,{key:E,id:f.id,ref:O,as:l,activatorEvent:d,adjustScale:n,className:u,transition:o,rect:C,style:{zIndex:c,...a},transform:_},r):null))});function Nd(){return(0,el.forwardRef)((e,t)=>{let{data:n,style:r,attributes:i,listeners:a,context:o,columns:s,rowSize:l="default",focusId:u,focusColor:c="default",getCellClassNames:d,getContentClassNames:f,className:h}=e;return(0,es.jsx)("tr",{ref:t,...i,...a,style:r,id:n.id,"data-testid":n.id,onClick:n.onClick,className:(0,tl.cx)("border-b",n.isSelected?["bg-blue-400 border-blue-500/30","dark:bg-blue-600/50 dark:border-blue-600/20"]:"border-gray-200/50 dark:border-graydark-100",n.onClick?"cursor-pointer":"",n.className,h),children:s.map((e,t)=>{let{id:r,render:i,contentClassName:a,cellClassName:s,rowCellClassName:h,rowContentClassName:p}=e;return(0,es.jsx)("td",{"data-testid":r,className:(0,tl.cx)(d(t,(0,tl.cx)(s,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,es.jsx)("div",{className:(0,tl.cx)(f(t,(0,tl.cx)(a,p)),"dense"===l?"h-[50px]":"default"===l?"h-[100px]":""),children:(0,es.jsx)(i,{data:n,context:o})})},"".concat(r,"/").concat(n.id))})},n.id)})}function Nf(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{attributes:u,listeners:c,setNodeRef:d,transform:f}=function(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Aq("Droppable"),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,el.useContext)(T1),{role:h=Ne,roleDescription:p="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==l?void 0:l.id)===t,v=(0,el.useContext)(g?T8:T9),[y,b]=AH(),[x,w]=AH(),j=(0,el.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[o,t]),k=AB(n);return AI(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:k}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:u,attributes:(0,el.useMemo)(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":!!g&&h===Ne||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:b,setActivatorNodeRef:w,transform:v}}({id:t.id}),h=f?{transform:"translate3d(".concat(f.x,"px, ").concat(f.y,"px, 0)")}:void 0,p=(0,el.useMemo)(()=>Nd(),[]);return(0,es.jsx)(p,{ref:d,style:h,attributes:u,listeners:c,data:t,context:n,columns:r,rowSize:i,focusId:a,focusColor:o,getCellClassNames:s,getContentClassNames:l})}function Nh(e){let{data:t,context:n,columns:r,rowSize:i="default",focusId:a,focusColor:o="default",getCellClassNames:s,getContentClassNames:l}=e,{isOver:u,setNodeRef:c}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Aq("Droppable"),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=(0,el.useContext)(T1),c=(0,el.useRef)({disabled:n}),d=(0,el.useRef)(!1),f=(0,el.useRef)(null),h=(0,el.useRef)(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...Nt,...i},v=AB(null!=m?m:r),y=TV({callback:(0,el.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}),[b,x]=AH((0,el.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),w=AB(t);return(0,el.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),AI(()=>(s({type:X.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:w}}),()=>s({type:X.UnregisterDroppable,key:a,id:r})),[r]),(0,el.useEffect)(()=>{n!==c.current.disabled&&(s({type:X.SetDroppableDisabled,id:r,key:a,disabled:n}),c.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(null==l?void 0:l.id)===r,node:b,over:l,setNodeRef:x}}({id:t.id}),d=(0,el.useMemo)(()=>Nd(),[]);return(0,es.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:s,getContentClassNames:l})}function Np(e){let{columns:t,data:n,context:r={},sortField:i,sortDirection:a,sortableColumns:o,toggleSort:s,rowSize:l="default",pageSize:u,isLoading:c,emptyState:d,focusId:f,focusColor:h="default",onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,draggingDatums:b,draggingMultipleLabel:x=e=>"Move selection (".concat(e,")"),testId:w}=e,j="emptyState";!c||(null==n?void 0:n.length)||(j="skeleton"),(null==n?void 0:n.length)&&(j="currentData");let k=(0,el.useCallback)((e,n,r)=>(0,tl.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]),E=(0,el.useCallback)((e,t)=>(0,tl.cx)("flex items-center",t),[]),_=(0,el.useMemo)(()=>Nd(),[]),C=function(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}(A9(TD,{activationConstraint:{distance:10}}),A9(Tz,{activationConstraint:{delay:250,tolerance:5}})),S=(0,el.useMemo)(()=>t.some(e=>{let{summary:t}=e;return t&&t({context:r})}),[t,r]);return(0,es.jsxs)(T7,{sensors:C,onDragStart:p,onDragOver:m,onDragMove:g,onDragEnd:v,onDragCancel:y,children:[(0,es.jsx)(Nc,{children:b?1===b.length?(0,es.jsx)(n6,{className:"inline-block",children:(0,es.jsx)("table",{children:(0,es.jsx)("tbody",{children:(0,es.jsx)(_,{className:"pointer-events-none",data:b[0],context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},b[0].id)})})}):(0,es.jsx)(n6,{className:"inline-block py-2 px-4",children:(0,es.jsx)(n4,{children:x(b.length)})}):null}),(0,es.jsxs)(n6,{children:[(0,es.jsxs)("table",{"data-testid":w,onMouseDown:e=>{e.shiftKey&&e.preventDefault()},"data-loading":"skeleton"===j,className:"relative z-10 table-auto border-collapse w-full",children:[(0,es.jsxs)("thead",{className:(0,tl.cx)("sticky -top-px z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,es.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:l,heading:u,label:c,tip:d,cellClassName:f,contentClassName:h}=e,p=(null==o?void 0:o.includes(n))&&!!s,m=i===n;return(0,es.jsx)("th",{"data-testid":n,className:(0,tl.cx)(k(t,f,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,es.jsx)("div",{className:"overflow-hidden py-3",children:(0,es.jsxs)("div",{onClick:()=>{p&&s(n)},className:(0,tl.cx)(E(t,h),p?"cursor-pointer":""),children:[u?(0,es.jsx)(u,{context:r}):null,(0,es.jsx)(l7,{content:d,children:(0,es.jsxs)(n4,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[l?(0,es.jsx)("div",{children:l}):null,(0,es.jsx)(n4,{ellipsis:!0,size:"12",weight:"medium",children:c})]})}),m&&(0,es.jsx)(n4,{color:"contrast",children:"asc"===a?(0,es.jsx)(ut.MR9,{className:"scale-75"}):(0,es.jsx)(ut.cRw,{className:"scale-75"})}),p&&!m&&(0,es.jsx)(n4,{color:"verySubtle",children:(0,es.jsx)(ut.MR9,{className:"scale-75"})})]})})},n)})}),S&&(0,es.jsx)("tr",{children:t.map((e,t)=>{let{id:n,cellClassName:i,contentClassName:a,summary:o}=e;return(0,es.jsx)("th",{"data-testid":n,className:(0,tl.cx)(k(t,i,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,es.jsx)("div",{className:"overflow-hidden py-3",children:(0,es.jsx)("div",{className:(0,tl.cx)(E(t,a)),children:o&&(0,es.jsx)(o,{context:r})})})},n)})})]}),(0,es.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===j&&(null==n?void 0:n.map(e=>(null==b?void 0:b.find(t=>t.id===e.id))?null:e.isDraggable?(0,es.jsx)(Nf,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},e.id):e.isDroppable?(0,es.jsx)(Nh,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},e.id):(0,es.jsx)(_,{data:e,context:r,columns:t,rowSize:l,focusId:f,focusColor:h,getCellClassNames:k,getContentClassNames:E},e.id))),"skeleton"===j&&Ad(u).map(e=>(0,es.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,es.jsx)("td",{className:k(t,i,!1),children:(0,es.jsx)("div",{className:(0,tl.cx)(E(t,r),"dense"===l?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===j&&d]})]})}function Nm(e){let{offset:t,limit:n,total:r,isLoading:i}=e,a=(0,gv.j0)();return(0,es.jsxs)(uM,{children:[(0,es.jsx)(ue,{"aria-label":"go to first page",icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,es.jsx)("div",{className:"flex scale-[0.65]",children:(0,es.jsx)(ut.XJM,{})})}),(0,es.jsx)(ue,{"aria-label":"go to previous page",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,es.jsx)(ut.bdU,{})}),(0,es.jsx)(ue,{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,es.jsx)(ME,{className:"px-2"}):"No results"}),(0,es.jsx)(ue,{"aria-label":"go to next page",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,es.jsx)(ut.VUy,{})}),(0,es.jsx)(ue,{"aria-label":"go to last page",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,es.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,es.jsx)(ut.RRj,{})})})]})}function Ng(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,a=(0,gv.j0)();return(0,es.jsxs)(uM,{children:[(0,es.jsx)(ue,{"aria-label":"go to first page",icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>a.push({query:{...a.query,offset:0}}),children:(0,es.jsx)("div",{className:"flex scale-[0.65]",children:(0,es.jsx)(ut.XJM,{})})}),(0,es.jsx)(ue,{"aria-label":"go to previous page",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,es.jsx)(ut.bdU,{})}),i?(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,es.jsx)(ME,{className:"px-2"})}):r?(0,es.jsxs)(ue,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",Math.min(t+n,t+r)]}):(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,es.jsx)(ue,{"aria-label":"go to next page",icon:"contrast",disabled:!(r>=n),size:"small",variant:"gray",className:"rounded-none",onClick:()=>a.push({query:{...a.query,offset:t+n}}),children:(0,es.jsx)(ut.VUy,{})})]})}function Nv(e){let{marker:t,nextMarker:n,isMore:r,pageTotal:i,isLoading:a}=e,o=(0,gv.j0)();return(0,es.jsxs)(uM,{children:[(0,es.jsx)(ue,{"aria-label":"go to first page",disabled:void 0!==t&&null===t,icon:"contrast",size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,marker:""}}),children:(0,es.jsx)("div",{className:"flex scale-[0.65]",children:(0,es.jsx)(ut.XJM,{})})}),a?(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,es.jsx)(ME,{className:"px-2"})}):i?(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",tip:"".concat((0,jY._6)(i,"item")," on current page"),children:i}):(0,es.jsx)(ue,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,es.jsx)(ue,{"aria-label":"go to next page",icon:"contrast",disabled:!r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,marker:n}}),children:(0,es.jsx)(ut.VUy,{})})]})}function Ny(e){let{separator:t,children:n}=e,r=el.Children.toArray(n).filter(e=>el.isValidElement(e)&&("function"!=typeof e.type||null!==e.type(e.props)));return(0,es.jsx)(es.Fragment,{children:r.map((e,n)=>{var i,a;return(0,es.jsxs)(el.Fragment,{children:[e,n{e.push({query:{...e.query,offset:0,marker:void 0}})},[e]);return(0,es.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.UJc,{className:"scale-[200%]"})}),(0,es.jsx)(n4,{color:"subtle",className:"text-center max-w-[500px]",children:"No data on this page, reset pagination to continue."}),(0,es.jsx)(ue,{onClick:t,children:"Back to first page"})]})}function Nk(e){let{datasetState:t,noneOnPage:n,noneMatching:r,noneYet:i,error:a}=e;return"noneOnPage"===t?n||(0,es.jsx)(Nj,{}):"noneMatchingFilters"===t?r||(0,es.jsx)(Nb,{}):"noneYet"===t?i||(0,es.jsx)(Nx,{}):"error"===t?a||(0,es.jsx)(Nw,{}):null}function NE(e){let{title:t,nav:n,stats:r,actions:i,after:a}=e;return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsxs)("div",{"data-testid":"navbar",className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,es.jsx)(n4,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,es.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,es.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:n}),(0,es.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,es.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r}),a]})}let N_=("string"==typeof(D={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:D}:D).src;function NC(e){let{children:t}=e;return(0,es.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,es.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,es.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(N_,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,es.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}function NS(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,es.jsxs)(gv.Fb,{children:[(0,es.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,es.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,es.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,es.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,es.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,es.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,es.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,es.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,es.jsx)("title",{children:i})]})}function NO(e){let{appName:t,title:n,children:r}=e;return(0,es.jsxs)("div",{className:"h-screen",children:[(0,es.jsx)(NS,{appName:t,title:n}),r]})}function NM(e){let{appName:t,title:n,children:r,filters:i,actions:a}=e;return(0,es.jsxs)(NO,{appName:t,title:n,children:[(0,es.jsx)(NC,{}),(0,es.jsx)("div",{className:"flex h-full",children:(0,es.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,es.jsx)(NE,{nav:i,actions:a}),(0,es.jsx)("div",{className:"flex-1",children:(0,es.jsx)(uQ,{className:"h-full",children:r})})]})})]})}function NP(e){let{side:t,balanceSc:n,children:r}=e;return n?(0,es.jsx)(l7,{side:t,content:(0,es.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,es.jsxs)("div",{className:"flex gap-4",children:[(0,es.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,es.jsx)(n4,{size:"12",children:"spendable"}),(0,es.jsx)(n4,{size:"12",color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,es.jsx)("div",{className:"flex justify-end",children:(0,es.jsx)(Ar,{size:"12",displayBoth:!0,variant:"value",value:n.spendable})})]}),n.immature&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex gap-4",children:[(0,es.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,es.jsx)(n4,{size:"12",children:"immature"}),(0,es.jsx)(n4,{size:"12",color:"subtle",children:"All confirmed but still locked outputs."})]}),(0,es.jsx)("div",{className:"flex justify-end",children:(0,es.jsx)(Ar,{size:"12",displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex gap-4",children:[(0,es.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,es.jsx)(n4,{size:"12",children:"confirmed"}),(0,es.jsx)(n4,{size:"12",color:"subtle",children:"All confirmed outputs."})]}),(0,es.jsx)("div",{className:"flex justify-end",children:(0,es.jsx)(Ar,{size:"12",displayBoth:!0,variant:"value",value:n.confirmed})})]}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex gap-4",children:[(0,es.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,es.jsx)(n4,{size:"12",children:"unconfirmed"}),(0,es.jsx)(n4,{size:"12",color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,es.jsx)("div",{className:"flex justify-end",children:(0,es.jsx)(Ar,{size:"12",displayBoth:!0,variant:"value",value:n.unconfirmed})})]})]}),children:(0,es.jsx)("div",{children:r})}):null}function NA(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;if(!t)return null;let i=(0,es.jsx)(Ar,{showTooltip:!1,value:t.spendable.plus(t.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return n?(0,es.jsx)(NP,{side:"right",balanceSc:t,children:i}):(0,es.jsx)(l7,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,es.jsx)("div",{children:i})})}function NT(e){let{title:t,children:n,route:r,onClick:i}=e,a=(0,gv.jD)(),o=r&&("/"===r?a===r:null==a?void 0:a.startsWith(r));return r?(0,es.jsx)(gT,{href:r,className:"no-underline",children:(0,es.jsx)(l7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,es.jsx)(ue,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":o?"open":"closed",onClick:i,children:n})})}):(0,es.jsx)(l7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,es.jsx)(ue,{"aria-label":t,icon:"contrast",size:"none",variant:"state","data-state":o?"open":"closed",onClick:i,children:n})})}function NN(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,es.jsx)(NT,{title:"Wallet",route:r.wallet.view,children:(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,es.jsx)(ut.oaN,{}),n&&t&&(0,es.jsx)(NA,{isSynced:n,balanceSc:t})]})})}function NR(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:a,lock:o,openSettings:s,children:l}=e;return(0,es.jsx)(n6,{"data-testid":"sidenav",className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,es.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,es.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,es.jsx)(gR,{size:30})}),(0,es.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,es.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,es.jsx)("div",{className:"flex-1"}),(0,es.jsx)(gn,{className:"w-full"}),i&&(0,es.jsx)(NN,{routes:t,isSynced:r,walletBalanceSc:a}),(0,es.jsx)(NT,{title:"Blockchain node",route:t.node.index,children:(0,es.jsx)(ut.kBK,{})}),(0,es.jsx)(NT,{title:"App preferences",onClick:()=>s(),children:(0,es.jsx)(ut.UG6,{})}),(0,es.jsx)(NT,{title:"Lock app",onClick:o,children:(0,es.jsx)(ut.mBM,{})})]})]})})}var ND=Object.create,NL=Object.defineProperty,Nz=Object.getOwnPropertyDescriptor,NF=Object.getOwnPropertyNames,NZ=Object.getPrototypeOf,NI=Object.prototype.hasOwnProperty,NV=(s=(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=new WeakMap,i=(t=function(e,t){return r.set(e,t),t},function(e){var i=r.get(e),a=void 0===i?e.size:i<1073741824?i+1:0;if(!e.has(a))return t(e,a);if(e.size<536870912){for(;e.has(a);)a=Math.floor(1073741824*Math.random());return t(e,a)}if(e.size>n)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=i(e);return e.add(t),t},e.generateUniqueNumber=i},"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={})},()=>(l||s((l={exports:{}}).exports,l),l.exports));el.Component;var NB=(d=null!=(u=NV())?ND(NZ(u)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of NF(t))NI.call(e,i)||i===n||NL(e,i,{get:()=>t[i],enumerable:!(r=Nz(t,i))||r.enumerable});return e})(!c&&u&&u.__esModule?d:NL(d,"default",{value:u,enumerable:!0}),u)),NU=e=>void 0!==e.method&&"call"===e.method,NH=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(NU(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(NH(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:s}=a;r.delete(i),"interval"===s?t.delete(o):n.delete(o)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,NB.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,NB.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,NB.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,NB.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},z='(()=>{"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})}}))})();',f=null,()=>{if(null!==f)return f;let e=new Blob([z],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return f=L(t),setTimeout(()=>URL.revokeObjectURL(t)),f};var NW=(typeof window>"u"?"undefined":typeof window)=="object",N$={setTimeout:NW?setTimeout.bind(window):setTimeout,clearTimeout:NW?clearTimeout.bind(window):clearTimeout,setInterval:NW?setInterval.bind(window):setInterval,clearInterval:NW?clearInterval.bind(window):clearInterval},Nq={},NK=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,Nq[e]=Nq[e]||[],Nq[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),N$.setTimeout(()=>{window.localStorage.removeItem(n)},500),Nq[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=Nq[this.name].indexOf(this);Nq[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)}},NY=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:NK;function NG(){return Math.random().toString(36).substring(2)}var NX=class{options;channel;token=NG();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=>N$.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{N$.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=N$.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=>N$.clearInterval(e))}catch{}}}},NJ=class{channel;options;elector;token=NG();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new NY(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new NX(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()}},NQ=NW?document:null,N0=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function N1(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function N4(e){let{route:t}=e,n=(0,y4.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function N3(e){let{appName:t,title:n,navTitle:r,profile:i,size:a="4",banner:o,nav:s,actions:l,stats:u,after:c,dockedControls:d,children:f,sidenav:h,connectivityRoute:p,isSynced:m,showWallet:g,walletBalanceSc:v,routes:y,scroll:b=!0,openSettings:x}=e,{lock:w,settings:j}=(0,y4.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:a}=N4({route:n}),{settings:o}=(0,y4.Hv)(),s=(0,gv.j0)();(0,el.useEffect)(()=>{if(a)return;let e=!s.asPath.startsWith(r.login),n=!o.password||!i;if(e&&n){t();return}},[s,o.password,i,a])}({lock:w,route:p,routes:y}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e;!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=NQ,events:i=N0,timers:a,immediateEvents:o=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},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:b=!1,name:x="idle-timer",syncTimers:w=0,leaderElection:j=!1,disabled:k=!1}={}){let E=(0,el.useRef)(N2()),_=(0,el.useRef)(N2()),C=(0,el.useRef)(null),S=(0,el.useRef)(null),O=(0,el.useRef)(0),M=(0,el.useRef)(0),P=(0,el.useRef)(0),A=(0,el.useRef)(0),T=(0,el.useRef)(!1),N=(0,el.useRef)(!1),R=(0,el.useRef)(!1),D=(0,el.useRef)(!0),L=(0,el.useRef)(!1),z=(0,el.useRef)(null),F=(0,el.useRef)(null),Z=(0,el.useRef)(e),I=(0,el.useRef)(0);(0,el.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(Z.current=e-n,I.current=n):(Z.current=e,I.current=t),!D.current){if(v||k)return;T.current&&(Y.current(null,eA),F.current&&F.current.active()),ed()}},[e,t,n,v,k]);let V=(0,el.useRef)(y);(0,el.useEffect)(()=>{V.current=y},[y]);let B=(0,el.useRef)(o),U=(0,el.useRef)(r),H=(0,el.useRef)([...new Set([...i,...o]).values()]),W=(0,el.useRef)(k);(0,el.useEffect)(()=>{W.current=k,!D.current&&(k?ep():v||ed())},[k]);let $=(0,el.useRef)(s);(0,el.useEffect)(()=>{$.current=s},[s]);let q=(0,el.useRef)(l);(0,el.useEffect)(()=>{q.current=l},[l]);let K=(0,el.useRef)(u);(0,el.useEffect)(()=>{K.current=u},[u]);let Y=(0,el.useRef)(c);(0,el.useEffect)(()=>{Y.current=c},[c]);let G=(0,el.useRef)(d);(0,el.useEffect)(()=>{G.current=d},[d]);let X=(0,el.useRef)(f);(0,el.useEffect)(()=>{X.current=f},[f]);let J=(0,el.useMemo)(()=>{let e=(e,t)=>G.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?N1(e,p):e},[p,h]),Q=(0,el.useRef)();(0,el.useEffect)(()=>{b&&w&&(Q.current=N1(()=>{F.current.active()},w))},[b,w]);let ee=()=>{null!==z.current&&(N$.clearTimeout(z.current),z.current=null)},et=(e,t=!0)=>{ee(),z.current=N$.setTimeout(ea,e||Z.current),t&&(S.current=N2())},en=e=>{N.current||T.current||(q.current(e,eA),$.current({type:"active",prompted:!0},eA)),A.current=0,P.current=N2(),N.current=!0,et(I.current,!1)},er=()=>{ee(),T.current||(K.current(null,eA),$.current({type:"idle"},eA)),T.current=!0,C.current=N2(),V.current?ec():N.current&&(P.current=0,N.current=!1)},ei=e=>{ee(),(T.current||N.current)&&(Y.current(e,eA),$.current({type:"active",prompted:!1},eA)),N.current=!1,P.current=0,T.current=!1,O.current+=N2()-C.current,M.current+=N2()-C.current,eu(),et()},ea=e=>{if(!T.current){J.cancel&&J.cancel();let t=N2()-S.current;if(!(Z.current+I.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)},eo=e=>{if(g||S.current||(S.current=N2(),Y.current(null,eA)),J(e,eA),N.current)return;if(ee(),!T.current&&B.current.includes(e.type)){ea(e);return}let t=N2()-S.current;if(T.current&&!y||!T.current&&t>=Z.current){ea(e);return}R.current=!1,A.current=0,P.current=0,et(),b&&w&&Q.current()},es=(0,el.useRef)(eo);(0,el.useEffect)(()=>{let e=L.current;e&&ec(),m>0?es.current=N1(eo,m):es.current=eo,e&&eu()},[m,p,h,G,b,w]);let eu=()=>{NW&&U.current&&(L.current||(H.current.forEach(e=>{U.current.addEventListener(e,es.current,{capture:!0,passive:!0})}),L.current=!0))},ec=(e=!1)=>{NW&&U.current&&(L.current||e)&&(H.current.forEach(e=>{U.current.removeEventListener(e,es.current,{capture:!0})}),L.current=!1)},ed=(0,el.useCallback)(e=>!W.current&&(ee(),eu(),T.current=!1,N.current=!1,R.current=!1,A.current=0,P.current=0,F.current&&!e&&F.current.start(),et(),!0),[z,T,W,Z,F]),ef=(0,el.useCallback)(e=>!W.current&&(ee(),eu(),_.current=N2(),O.current+=N2()-C.current,M.current+=N2()-C.current,O.current=0,T.current=!1,N.current=!1,R.current=!1,A.current=0,P.current=0,F.current&&!e&&F.current.reset(),v||et(),!0),[z,T,Z,v,W,F]),eh=(0,el.useCallback)(e=>!W.current&&(ee(),eu(),(T.current||N.current)&&ei(),T.current=!1,N.current=!1,R.current=!1,A.current=0,P.current=0,_.current=N2(),F.current&&!e&&F.current.activate(),et(),!0),[z,T,N,W,Z,F]),ep=(0,el.useCallback)((e=!1)=>!W.current&&!R.current&&(A.current=ej(),R.current=!0,ec(),ee(),F.current&&!e&&F.current.pause(),!0),[z,W,F]),em=(0,el.useCallback)((e=!1)=>!W.current&&!!R.current&&(R.current=!1,N.current||eu(),T.current||et(A.current),P.current&&(P.current=N2()),F.current&&!e&&F.current.resume(),!0),[z,Z,W,A,F]),eg=(0,el.useCallback)((e,t)=>(F.current?(t&&X.current(e,eA),F.current.message(e)):t&&X.current(e,eA),!0),[f]),ev=(0,el.useCallback)(()=>T.current,[T]),ey=(0,el.useCallback)(()=>N.current,[N]),eb=(0,el.useCallback)(()=>F.current?F.current.isLeader:null,[F]),ex=(0,el.useCallback)(()=>F.current?F.current.isLastActive:null,[F]),ew=(0,el.useCallback)(()=>F.current?F.current.token:null,[F]),ej=(0,el.useCallback)(()=>{if(R.current)return A.current;let e=Math.floor((A.current?A.current:I.current+Z.current)-(S.current?N2()-S.current:0));return e<0?0:Math.abs(e)},[Z,I,N,A,S]),ek=(0,el.useCallback)(()=>Math.round(N2()-_.current),[_]),eE=(0,el.useCallback)(()=>Math.round(N2()-E.current),[E]),e_=(0,el.useCallback)(()=>C.current?new Date(C.current):null,[C]),eC=(0,el.useCallback)(()=>S.current?new Date(S.current):null,[S]),eS=(0,el.useCallback)(()=>T.current?Math.round(N2()-C.current+O.current):Math.round(O.current),[C,O]),eO=(0,el.useCallback)(()=>T.current?Math.round(N2()-C.current+M.current):Math.round(M.current),[C,M]),eM=(0,el.useCallback)(()=>{let e=Math.round(ek()-eS());return e>=0?e:0},[C,O]),eP=(0,el.useCallback)(()=>{let e=Math.round(eE()-eO());return e>=0?e:0},[C,O]);(0,el.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");a&&(N$.setTimeout=a.setTimeout,N$.clearTimeout=a.clearTimeout,N$.setInterval=a.setInterval,N$.clearInterval=a.clearInterval);let e=()=>{F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)};return NW&&window.addEventListener("beforeunload",e),()=>{NW&&window.removeEventListener("beforeunload",e),F.current&&F.current.close(),J.cancel&&J.cancel(),ee(),ec(!0)}},[]),(0,el.useEffect)(()=>{F.current&&F.current.close(),b?F.current=new NJ({channelName:x,leaderElection:j,onPrompt:()=>{en()},onIdle:()=>{er()},onActive:()=>{ei()},onMessage:e=>{X.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):F.current=null},[b,x,j,q,K,Y,X,ed,ef,ep,em]),(0,el.useEffect)(()=>{D.current||(ee(),ec(!0)),v||k||(g?ed():eu())},[v,g,k,D]),(0,el.useEffect)(()=>{if(!D.current){let e=[...new Set([...i,...o]).values()];ec(),H.current=e,U.current=r,B.current=o,v||k||(g?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(o),D,k,v,g]),(0,el.useEffect)(()=>{D.current&&(D.current=!1)},[D]);let eA={message:eg,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:ev,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:ej,getElapsedTime:ek,getTotalElapsedTime:eE,getLastIdleTime:e_,getLastActiveTime:eC,getIdleTime:eS,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eP,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,q.current=e},setOnIdle:e=>{u=e,K.current=e},setOnActive:e=>{c=e,Y.current=e},setOnAction:e=>{d=e,G.current=e},setOnMessage:e=>{f=e,X.current=e}}}({disabled:!t,onIdle:(0,el.useCallback)(()=>{n()},[n]),timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,es.jsxs)(NO,{appName:t,title:n,children:[(0,es.jsx)(NC,{}),(0,es.jsxs)("div",{className:"flex flex-col h-full w-full",children:[o,(0,es.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,es.jsx)(NR,{routes:y,profile:i,openSettings:x,lock:w,showWallet:g,walletBalanceSc:v,isSynced:m,children:h}),(0,es.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,es.jsx)(NE,{title:void 0===r?n:r,nav:s,actions:l,stats:u,after:c}),b?(0,es.jsx)(fb,{className:"z-0",children:(0,es.jsx)(uQ,{size:a,pad:!1,children:(0,es.jsx)("div",{className:"flex flex-col gap-5",children:f})})}):(0,es.jsx)(uQ,{size:a,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:f}),(0,es.jsx)("div",{className:"z-20 fixed bottom-5 left-0 right-0 flex justify-center dark pointer-events-none",children:d})]})]})]})]})}function N5(e){let{datasetPage:t,isValidating:n,error:r,filters:i,offset:a,marker:o}=e,s=function(e){let{offset:t,marker:n}=e;if(void 0!==n){if(n)return!1;if(null===n)return!0}return void 0===t||!(t>0)}({offset:a,marker:o}),[l,u]=(0,el.useState)();return(0,el.useEffect)(()=>{!n&&t&&u(t.length)},[n,t,u]),(0,el.useMemo)(()=>r?"error":void 0===l||l>0&&!t?"loading":0===l?s?i&&0!==i.length?"noneMatchingFilters":"noneYet":"noneOnPage":"loaded",[t,l,r,i,s])}(0,el.createContext)(null).Consumer;var N6=n(89644),N8=n.n(N6),N7=n(63955),N9=n(68650);function Re(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:s}=t.register(r,n.validation),l=(0,el.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),u=(0,el.useCallback)(()=>{var e;t.trigger(r),null===(e=n.trigger)||void 0===e||e.forEach(e=>t.trigger(e))},[t,n,r]),c=(0,el.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:l,setValue:c}}function Rt(e){return(0,el.useCallback)(t=>{PX({title:"Error",body:(0,N9.Z)(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", ")})},[e])}function Rn(e){let{name:t,form:n,fields:r}=e,i=r[t];return!i.hidden&&(!i.show||i.show(n.getValues()))}function Rr(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:a,spellCheck:o,state:s=!0,group:l=!0,type:u}=e,c=r[t],{ref:d,onChange:f,onBlur:h,error:p}=Re({name:t,form:n,field:c}),m=(0,es.jsx)(yS,{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:s?p?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:f,onBlur:h});return l?(0,es.jsx)(Ak,{title:c.title,actions:c.actions,name:t,form:n,children:m}):m}var Ri=n(78790);async function Ra(e){let{api:t,route:n,password:r}=e;try{return await N8().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 Ro(e){let{appName:t,route:n,routes:r}=e,i=(0,gv.j0)(),{settings:a,setRequestSettings:o}=(0,y4.Hv)(),{loginWithCustomApi:s}=a,l=(0,el.useMemo)(()=>({api:a.api,password:""}),[a.api]),u=(0,N7.cI)({mode:"onBlur",defaultValues:l});(0,el.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,el.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await Ra({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(l))},[s,u,i,r,a,o,l,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:s}),f=Rt(d),h=u.formState.errors.api||u.formState.errors.password,p=(0,Ri.Z)(Object.entries(a.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,es.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,es.jsx)(n6,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,es.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,es.jsxs)("div",{className:"flex justify-between items-center",children:[(0,es.jsx)(n4,{font:"mono",weight:"bold",size:"20",children:t}),(0,es.jsx)(gh,{label:"login settings",trigger:(0,es.jsx)(ue,{icon:"hover",variant:"ghost",children:(0,es.jsx)(ut.shL,{})}),children:(0,es.jsx)(gp,{onSelect:()=>o({loginWithCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,es.jsx)(gn,{className:"w-full mt-2 mb-3"}),(0,es.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,es.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,es.jsxs)(uM,{children:[(0,es.jsx)(Rr,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,es.jsx)(gh,{trigger:(0,es.jsx)(ue,{type:"button",children:(0,es.jsx)(ut.wGX,{})}),children:p.map(e=>(0,es.jsx)(gp,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,es.jsx)(Rr,{name:"password",form:u,fields:d,group:!1}),h&&(0,es.jsx)(n4,{size:"14",color:"red",children:h.message}),(0,es.jsx)(AE,{size:"small",form:u,children:"Unlock"})]})})]})})})}function Rs(e){let{children:t}=e;return(0,es.jsx)(rM,{children:t&&(0,es.jsx)(l5.div,{className:"pointer-events-auto",initial:{y:100,opacity:0},animate:{y:0,opacity:1},exit:{y:100,opacity:0},transition:{duration:.2},children:t})})}function Rl(e){let{name:t,form:n,fields:r,size:i="medium",group:a=!0,before:o,children:s}=e,l=r[t],{setValue:u,onBlur:c,value:d,error:f}=Re({name:t,field:l,form:n}),h=(0,es.jsxs)("div",{className:"flex gap-1 items-center",children:[o,(0,es.jsx)(b_,{"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}),s]});return a?(0,es.jsx)(Ak,{title:l.title,name:t,form:n,className:"pb-[1.5px]",children:h}):h}function Ru(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6,showFiat:h}=o,{setValue:p,onBlur:m,value:g,error:v}=Re({name:t,field:o,form:n}),y=(0,el.useMemo)(()=>s?new(y0())(s):u&&"boolean"!=typeof u?new(y0())(u):l&&"boolean"!=typeof l?new(y0())(l):void 0,[s,u,l]),b=(0,es.jsx)(y3,{name:t,size:i,sc:g,units:c,showFiat:h,decimalsLimitSc:d,decimalsLimitFiat:f,readOnly:o.readOnly,error:v,changed:n.formState.dirtyFields[t],placeholder:y,onChange:e=>{p(e,!0)},onBlur:m});return a?(0,es.jsx)(Ak,{title:o.title,name:t,form:n,children:b}):b}let Rc={address:"",siacoin:void 0,includeFee:!1};function Rd(e){let{hastings:t,includeFee:n,fee:r}=e;return n?t:t.plus(r)}function Rf(e){let{address:t,hastings:n,fee:r,transactionId:i}=e,a=n.plus(r);return(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,es.jsx)(P6,{testId:"address",value:t,type:"address"})]}),(0,es.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"amount",size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,es.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"networkFee",size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,es.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"total",size:"14",value:a,variant:"value",dynamicUnits:!1})})]}),i&&(0,es.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,es.jsx)(n4,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,es.jsx)(P6,{testId:"transactionId",value:i,type:"transaction"})]})]})}function Rh(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),a=n.length-1;return(0,es.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,es.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,es.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:s}=e,l=t===o,u=i>=n,c=n===a,d=0===n,f=u&&i!==a;return(0,es.jsxs)("div",{className:(0,tl.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,es.jsx)(n4,{color:l?"contrast":"verySubtle",className:(0,tl.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,es.jsx)("div",{className:(0,tl.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,es.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 Rp(e){let{data:{address:t,hastings:n},fee:r,transactionId:i}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(Rf,{address:t,hastings:n,fee:r,transactionId:i}),(0,es.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.Z$8,{})}),(0,es.jsx)(n4,{children:"Transaction successfully broadcasted."})]})]})}let Rm={address:"",hastings:new(y0())(0)};function Rg(e){let{trigger:t,open:n,onOpenChange:r,balance:i,fee:a,send:o}=e,[s,l]=(0,el.useState)("setup"),[u,c]=(0,el.useState)(),[d,f]=(0,el.useState)(Rm),h=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,N7.cI)({defaultValues:Rc}),a=async e=>{if(!e.siacoin||!t)return;let i=e.includeFee?(0,jY.qN)(e.siacoin).minus(n):(0,jY.qN)(e.siacoin),a=Rd({hastings:i,includeFee:e.includeFee,fee:n});t.isLessThan(a)||r({address:e.address,hastings:i})},o=function(e){let{balance:t,fee:n}=e;return{address:{title:"Address",type:"text",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",validation:{required:"required",validate:{isValidAddress:e=>(0,jY.At)(e)||"Invalid address"}}},siacoin:{title:"Siacoin",type:"siacoin",placeholder:"100",validation:{required:"required",validate:{greaterThanZero:e=>!new(y0())(e||0).isZero()||"Must be greater than zero",lessThanBalance:(e,r)=>Rd({hastings:(0,jY.qN)(e||0),includeFee:r.includeFee,fee:n}).isLessThan(t||0)||"Not enough funds in wallet"}}},includeFee:{type:"boolean",title:"Include fee",validation:{}}}}({balance:t,fee:n}),s=i.handleSubmit(a),l=i.watch("includeFee"),u=i.watch("siacoin"),c=(0,jY.qN)(u||0);return{el:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(Rr,{form:i,fields:o,size:"medium",name:"address",autoComplete:"off"}),(0,es.jsx)(Ru,{form:i,fields:o,name:"siacoin"}),(0,es.jsxs)("div",{className:"flex items-center",children:[(0,es.jsx)(Rl,{name:"includeFee",form:i,size:"small",fields:o,group:!1,children:(0,es.jsx)(n4,{size:"14",color:"contrast",children:"Include fee"})}),(0,es.jsx)(y5,{children:"Include or exclude the network fee from the above transaction value."}),(0,es.jsx)("div",{className:"flex flex-1"})]}),(0,es.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,es.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",children:"Network fee"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"networkFee",size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,es.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,es.jsx)(n4,{color:"verySubtle",children:"Total"}),(0,es.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,es.jsx)(Ae,{testId:"total",size:"14",value:Rd({hastings:c,includeFee:l,fee:n}),variant:"value",dynamicUnits:!1})})]})]})]}),reset:i.reset,form:i,submit:s}}({balance:i,fee:a,onComplete:e=>{f(e),l("confirm")}}),p=function(e){let{send:t,params:n,fee:r,onConfirm:i}=e,{address:a,hastings:o}=n||{},s=(0,N7.cI)({defaultValues:{}}),l=(0,el.useCallback)(async()=>{let{transactionId:e,error:n}=await t({address:a,hastings:o,includeFee:!1});if(n){PX({title:"Error sending siacoin",body:n});return}i({transactionId:e})},[i,a,o,t]),u=(0,el.useMemo)(()=>s.handleSubmit(l),[s,l]);return{el:(0,es.jsx)("div",{className:"flex flex-col gap-4",children:(0,es.jsx)(Rf,{address:a,hastings:o,fee:r})}),form:s,reset:s.reset,submit:u}}({fee:a,params:d,send:o,onConfirm:e=>{let{transactionId:t}=e;c(t),l("done")}}),m=(0,el.useMemo)(()=>"setup"===s?{submitLabel:"Generate transaction",el:h.el,form:h.form,reset:h.reset,submit:h.submit}:"confirm"===s?{submitLabel:"Broadcast transaction",el:p.el,form:p.form,reset:p.reset,submit:p.submit}:void 0,[s,h,p]);return(0,es.jsx)(fj,{trigger:t,open:n,onOpenChange:e=>{e||(h.reset(),p.reset(),l("setup")),r(e)},title:"Send siacoin",onSubmit:m?m.submit:void 0,controls:m&&(0,es.jsx)("div",{className:"flex flex-col gap-1",children:(0,es.jsx)(AE,{form:m.form,children:m.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(Rh,{onChange:e=>l(e),activeStep:s,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,es.jsx)(gn,{className:"w-full mt-4"}),"setup"===s&&h.el,"confirm"===s&&p.el,"done"===s&&(0,es.jsx)(Rp,{data:d,fee:a,transactionId:u})]})})}function Rv(e){let{form:t,onOpenChange:n,defaultValues:r,initKey:i}=e,a=(0,el.useCallback)(()=>{t.reset(r)},[t,r]),o=(0,el.useCallback)(()=>{n(!1),t.reset(r)},[t,n,r]),s=(0,el.useCallback)(e=>{e?(n(!0),setTimeout(()=>{a()},0)):o()},[o,a,n]),l=function(e){let[t,n]=(0,el.useState)(e);return(0,el.useEffect)(()=>{if(!e||!e.length)return;let r=!1;for(let n=0;n{l&&l.length&&l.every(e=>!!e)&&a()},[l]),{reset:a,closeAndReset:o,handleOpenChange:s}}let Ry={address:""},Rb={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function Rx(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,a=(0,N7.cI)({mode:"all",defaultValues:Ry}),{handleOpenChange:o,closeAndReset:s}=Rv({form:a,onOpenChange:i,defaultValues:Ry}),l=(0,el.useCallback)(async e=>{let t=await r(e.address);t.error?PX({title:t.error}):(PG({title:"Connected to peer"}),s())},[s,r]);return(0,es.jsx)(fj,{trigger:t,title:"Connect peer",description:"Connect to a peer by IP address.",open:n,onOpenChange:o,contentVariants:{className:"w-[400px]"},onSubmit:a.handleSubmit(l),controls:(0,es.jsx)("div",{className:"px-1",children:(0,es.jsx)(AE,{form:a,size:"medium",className:"w-full",children:"Connect"})}),children:(0,es.jsx)("div",{className:"flex flex-col gap-4",children:(0,es.jsx)(Rr,{form:a,fields:Rb,name:"address",size:"medium"})})})}function Rw(e){var t,n;let{id:r,transaction:i,trigger:a,open:o,onOpenChange:s}=e;return(0,es.jsx)(fj,{title:P5((null==i?void 0:i.txType)?(0,Ap.Z)((0,jY.pX)(i.txType)):"Transaction",r||"",16),trigger:a,open:o,onOpenChange:s,contentVariants:{className:"w-[800px]"},children:i?(0,es.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,es.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(null==i?void 0:i.inflow)!==void 0&&(0,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Inflow"}),(0,es.jsx)(Ae,{value:new(y0())((null==i?void 0:i.inflow)||0)})]}),(null==i?void 0:i.outflow)!==void 0&&(0,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Outflow"}),(0,es.jsx)(Ae,{value:new(y0())((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,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Miner fee"}),(0,es.jsx)(Ae,{value:new(y0())((null==i?void 0:null===(n=i.raw.minerFees)||void 0===n?void 0:n.reduce((e,t)=>e.plus(t),new(y0())(0)))||0)})]}),(0,es.jsx)("div",{className:"flex-1"}),(0,es.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,es.jsx)(n4,{children:"Timestamp"}),(0,es.jsx)(n4,{children:(null==i?void 0:i.timestamp)?(0,jY.rN)((null==i?void 0:i.timestamp)||0,{timeStyle:"short"}):"Unconfirmed"})]})]}),(0,es.jsx)(u_,{children:JSON.stringify(null==i?void 0:i.raw,null,2)})]}):(0,es.jsx)(n4,{children:"Could not find transaction in wallet"})})}n(92683);var Rj=n(24511);Rj.Ry().shape({address:Rj.Z_().required("Required"),description:Rj.Z_().required("Required"),index:Rj.Rx().integer().required("Required")});var Rk=n(38001);function RE(e){let{title:t,description:n,address:r}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,es.jsx)(gx,{size:"20",font:"mono",children:t}),n&&(0,es.jsx)(n4,{children:n}),(0,es.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,es.jsx)("div",{className:"absolute",children:(0,es.jsx)(Rk.Z,{size:200,value:r})})}),(0,es.jsx)(P6,{type:"address",value:r})]})}function R_(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:a}=e;return(0,es.jsx)(fj,{title:P5("Address",P3(t||"")||"",16),trigger:r,open:i,onOpenChange:a,contentVariants:{className:"w-[400px]"},children:(0,es.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,es.jsx)(RE,{address:t||""}):(0,es.jsx)(n4,{children:"Could not retreive wallet address"})})})}function RC(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{color:"amber",children:(0,es.jsx)(ut.qdM,{})}),(0,es.jsxs)(n4,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{color:"amber",children:(0,es.jsx)(ut.qdM,{})}),(0,es.jsxs)(n4,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let RS={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 RO(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,y4.Hv)();return(0,es.jsx)(y9,{"aria-label":"currency fiat",name:"currencyFiat",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,es.jsx)(be,{value:t,children:n},t)})})}let RM=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function RP(){let{settings:e,setExternalDataSettings:t}=(0,y4.Hv)();return(0,es.jsx)(y9,{"aria-label":"currency display",name:"currencyDisplay",disabled:!e.siaCentral,value:e.currencyDisplay,onChange:e=>t({currencyDisplay:e.currentTarget.value}),children:RM.map(e=>{let{id:t,label:n}=e;return(0,es.jsx)(be,{value:t,children:n},t)})})}function RA(e){let{open:t,onOpenChange:n,securityEl:r,showGpuSetting:i}=e,{settings:a,setRequestSettings:o,setExternalDataSettings:s,daemonExplorer:l,gpu:u}=(0,y4.Hv)();return(0,es.jsx)(fj,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,es.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,es.jsx)("div",{className:"flex flex-col gap-4",children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Display"}),(0,es.jsx)(n3,{size:"14",children:"Configure visual and locale display preferences."}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Currency display"}),(0,es.jsx)(RP,{})]}),(0,es.jsx)(n3,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires a third-party API enabled under Privacy."})]})}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Fiat"}),(0,es.jsx)(RO,{})]}),(0,es.jsx)(n3,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires a third-party API enabled under Privacy."})]})}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Theme"}),(0,es.jsx)(x$,{})]}),(0,es.jsx)(n3,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),i&&(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"GPU"}),(0,es.jsx)(b_,{disabled:!u.canGpuRender,checked:u.canGpuRender&&u.isGpuEnabled,onCheckedChange:u.setIsGpuEnabled,size:"medium"})]}),(0,es.jsxs)(n3,{size:"14",children:["Enable features that require a GPU."," ",u.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Security"}),(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n3,{size:"14",children:"Configure security preferences."}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Lock app"}),(0,es.jsx)(b_,{size:"medium",checked:a.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,es.jsxs)(y9,{disabled:!a.autoLock,value:String(a.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,es.jsx)(be,{value:(0,jY.sW)(5),children:"5 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(10),children:"10 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(20),children:"20 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(30),children:"30 minutes"}),(0,es.jsx)(be,{value:(0,jY.sW)(60),children:"1 hour"})]})]}),(0,es.jsx)(n3,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Privacy"}),(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n3,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. Third-party APIs are optional and can be toggled on or off."}),(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Sia Central"}),(0,es.jsx)(b_,{size:"medium",checked:a.siaCentral,onCheckedChange:e=>s({siaCentral:e})})]}),(0,es.jsx)(n3,{size:"14",children:"The app fetches network average prices and host geolocation from the Sia Central API."})]})}),l.isSupported?(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-1 items-center justify-between",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Explorer"})]}),(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[l.api?(0,es.jsx)(P6,{maxLength:30,value:l.api||"https://api.siascan.com"}):(0,es.jsx)(n4,{size:"14",weight:"medium",color:"subtle",children:"Not configured"}),(0,es.jsx)(b_,{size:"medium",disabled:!0,checked:l.enabled,onCheckedChange:e=>s({siaCentral:e})})]})]}),(0,es.jsx)(n3,{size:"14",children:"The app fetches Siacoin exchange rates from the configured explorer API. This API is configured and enabled in the daemon's startup configuration."})]})}):(0,es.jsx)(ur,{children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,es.jsx)(n4,{children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(gx,{size:"20",className:"flex-1",children:"Siascan"}),(0,es.jsx)(b_,{size:"medium",checked:a.siascan,onCheckedChange:e=>s({siascan:e})})]}),(0,es.jsx)(n3,{size:"14",children:"The app fetches Siacoin exchange rates from the Siascan API."})]})})]})]}),(0,es.jsx)(gn,{className:"w-full"}),(0,es.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,es.jsx)(n4,{size:"16",weight:"bold",children:"Help"}),(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,es.jsx)(n3,{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,es.jsxs)("div",{className:"flex gap-4",children:[(0,es.jsxs)(gT,{href:RS.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.lq1,{}),"Website"]}),(0,es.jsxs)(gT,{href:RS.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.RdX,{}),"Docs"]}),(0,es.jsxs)(gT,{href:RS.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.Sfn,{}),"About"]}),(0,es.jsxs)(gT,{href:RS.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,es.jsx)(ut.b47,{}),"Discord"]})]})]})]})]})})}function RT(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,es.jsx)(NP,{side:"bottom",balanceSc:t,children:(0,es.jsx)(n6,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,es.jsx)(Ar,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})})}):(0,es.jsx)(l7,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,es.jsxs)(n6,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,es.jsx)(n4,{color:"amber",children:(0,es.jsx)(ut.qdM,{})}),(0,es.jsx)(Ar,{variant:"value",value:t.spendable.plus(t.unconfirmed),size:"12",showTooltip:!1})]})}):null}function RN(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:a,sendSiacoin:o,receiveSiacoin:s}=e;return(0,es.jsxs)(es.Fragment,{children:[a&&(0,es.jsx)(RT,{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}),s&&(0,es.jsxs)(ue,{"aria-label":"receive",size:"small",onClick:s,children:[(0,es.jsx)(ut.xHM,{}),"Receive"]}),(0,es.jsxs)(ue,{"aria-label":"send",size:"small",variant:"accent",onClick:o,children:[(0,es.jsx)(ut.rW0,{}),"Send"]})]})}function RR(e,t){if(!e||!e.length)return[];let n=Object.keys((0,Mw.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 RD={"5m":e=>{let t=e+(0,jY.sW)(5);return"5m interval from ".concat((0,jY.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,jY.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+(0,jY.sW)(15);return"15m interval from ".concat((0,jY.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,jY.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+(0,jY.yt)(1);return"Hour interval from ".concat((0,jY.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,jY.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+(0,jY.yt)(24);return"Day interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},weekly:e=>{let t=e+(0,jY.Nr)(7);return"Week interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},monthly:e=>{let t=e+(0,jY.Nr)(30);return"Month interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},yearly:e=>{let t=e+(0,jY.Nr)(365);return"Year interval from ".concat((0,jY.rN)(e)," to ").concat((0,jY.rN)(t))},default:e=>"".concat((0,jY.rN)(e))};function RL(e){return RD[e]||RD.default}function Rz(e){if(!e||!e.length)return{};let t=Object.keys((0,Mw.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 RF({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=RZ(e,t[0]),r=RZ(e,t[t.length-1]);return RF({total:t.reduce((t,n)=>t+RZ(e,n),0),start:n,end:r,count:t.length})}(t,e)}}function RF(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 RZ(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function RI(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,xH.F)(),a=(0,el.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:jK.accent[800]}}:{sc:{label:"siacoin",color:jK.accentdark[800]}},[i]),o=(0,el.useMemo)(()=>({data:RR(t,"none"),stats:Rz(t),config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:a.sc},format:e=>(0,jY.Vz)(e),formatTimestamp:RL("default"),formatTickY:e=>(0,jY.Vz)(e,{fixed:0,dynamicUnits:!0}),disableAnimations:!0,chartType:r},isLoading:n}),[t,n,a,r]);return(0,es.jsx)("div",{className:"relative",children:(0,es.jsx)(MC,{id:"all/v0/wallet/balance",height:200,allowConfiguration:!1,data:o.data,config:o.config})})}function RV(e){let{peers:t,isLoading:n,connectPeer:r}=e;return(0,es.jsx)(Ay,{title:"Peers",actions:(0,es.jsx)(ue,{onClick:r,children:"Connect"}),isLoading:n,dataset:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function RB(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:a}=e;return(0,es.jsxs)("div",{className:(0,tl.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,es.jsx)("div",{className:"relative top-px",children:(0,es.jsx)(bi,{style:{backgroundColor:a}})}),(0,es.jsx)(n4,{size:t,children:n})]})}function RU(e){let{children:t,variant:n,align:r}=e;return(0,es.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,es.jsx)(n4,{size:"10",color:"contrast",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function RH(e){let{date:t,align:n,variant:r}=e;return t?(0,es.jsx)(RU,{variant:r,align:n,children:(0,jY.rN)(t)}):null}function RW(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,es.jsx)(RU,{variant:r,align:n,children:t.toLocaleString()}):null}function R$(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:a,color:o,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!a)return null;let d=r.endHeight-r.startHeight,f=(0,jY.pp)(d),h=(0,jY.jr)(n,r.startHeight),p=(0,jY.jr)(n,i),m=(0,jY.jr)(n,a),g=(p-h)/f,v=(m-h)/f;return(0,es.jsxs)("div",{className:(0,tl.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Rq(g),width:Rq(v-g)},children:[(0,es.jsx)("div",{className:(0,tl.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,es.jsx)("div",{className:(0,tl.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===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,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Rq(1-v)}:{left:Rq(g)},children:[(0,es.jsx)(RW,{blockHeight:i,align:"start",variant:"primary"}),(0,es.jsx)(RU,{variant:"primary",children:t}),(0,es.jsx)(RW,{blockHeight:a,align:"end",variant:"primary"})]}),c&&(0,es.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Rq(1-v)}:{left:Rq(g)},children:[(0,es.jsx)(RH,{date:p,align:"start",variant:"secondary"}),(0,es.jsx)(RH,{date:m,align:"start",variant:"secondary"})]}),(0,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Rq(1-v)}:{left:Rq(g)},children:[(0,es.jsx)(RH,{date:p,align:"start",variant:"secondary"}),(0,es.jsx)(RH,{date:m,align:"start",variant:"secondary"})]})]})}function Rq(e){return"".concat(100*e,"%")}function RK(e){var t;let{currentHeight:n,eventHeight:r,range:i,label:a,bottomLabel:o,color:s,className:l,unconfirmedPing:u=!0}=e,c=!!r&&r>n,d=r&&!c&&n-r<6,f=i.endHeight-i.startHeight,h=(0,jY.pp)(f),p=(0,jY.jr)(n,i.startHeight),m=r?(0,jY.jr)(n,r):0;return r?(0,es.jsx)("div",{className:(0,tl.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",l),style:{left:(t=m?(m-p)/h:0,"".concat(100*t,"%"))},children:(0,es.jsxs)("div",{className:(0,tl.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[u&&d&&(0,es.jsx)("div",{className:(0,tl.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,es.jsx)("div",{className:(0,tl.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,es.jsx)("div",{className:(0,tl.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===s?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===s?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===s?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===s?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,es.jsx)(RW,{blockHeight:r,align:"start",variant:"primary"}),(0,es.jsx)(RU,{variant:"primary",children:a})]}),(0,es.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,es.jsx)(RH,{date:m,align:"start",variant:"secondary"}),o&&(0,es.jsx)(RU,{variant:"secondary",children:o})]})]})}):null}function RY(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:a,revisionHeight:o,proofHeight:s,range:l}=e,u=t-n<6;return(0,es.jsx)("div",{className:"group/main relative w-full",children:(0,es.jsx)("div",{className:"relative py-6",children:(0,es.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,es.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,es.jsxs)("div",{className:"group/segments",children:[(0,es.jsx)(R$,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,es.jsx)(R$,{label:"proof window",currentHeight:t,startHeight:i,endHeight:a,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,es.jsx)(RK,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,es.jsx)(RK,{label:"last revision",currentHeight:t,eventHeight:o,range:l,color:"green",className:"z-20"}),(0,es.jsx)(RK,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,es.jsx)(RK,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var RG=n(36446),RX=n(45904),RJ=function(e,t){return!!(null==e?0:e.length)&&(0,RX.Z)(e,t,0)>-1},RQ=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(a=R2.Z,o=!1,t=new RG.Z(t));n:for(;++i{e.stopPropagation(),i(n)},children:(0,es.jsx)(ut.xVB,{})}),(0,es.jsx)(ue,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),a(n)},children:(0,es.jsx)(ut.pHg,{})})]})]})}function R9(e){let{title:t,children:n}=e;return(0,es.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,es.jsx)(gx,{anchorLink:!0,size:"24",children:t}),(0,es.jsx)(n6,{className:"p-6",children:(0,es.jsx)("div",{className:"flex flex-col gap-6",children:(0,es.jsx)(Ny,{separator:(0,es.jsx)(gn,{className:"w-full my-3"}),children:n})})})]})}function De(e){let{id:t,title:n,description:r,control:i}=e;return(0,es.jsxs)("div",{className:"flex gap-10 justify-between","data-testid":t,children:[(0,es.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,es.jsx)(gx,{id:t||n,anchorLink:!0,size:"20",children:n}),(0,es.jsx)(n3,{size:"14",children:r})]}),(0,es.jsx)("div",{className:"",children:i})]})}function Dt(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:a,title:o,variant:s,action:l,onConfirm:u}=n||{},c=(0,N7.cI)(),d=(0,el.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,es.jsx)(fj,{title:o,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,es.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,es.jsxs)("div",{className:"flex flex-col gap-4",children:[a,(0,es.jsx)("div",{className:"flex gap-1 justify-end",children:(0,es.jsx)(AE,{variant:s,form:c,size:"small",children:l})})]})})})}function Dn(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:a}=e;return(0,es.jsxs)("div",{className:"flex justify-between items-center",children:[(0,es.jsx)(n4,{font:"mono",weight:"bold",size:"20",children:t}),(0,es.jsxs)("div",{className:"flex items-center",children:[n?(0,es.jsxs)(ue,{className:"relative left-2 only:left-0",variant:"ghost",onClick:a,tip:"".concat(n," connected peers"),children:[(0,es.jsx)(n4,{color:"subtle",children:n.toLocaleString()}),(0,es.jsx)(ut.RK4,{})]}):null,i&&r?(0,es.jsx)(l7,{content:"Blockchain is synced",children:(0,es.jsx)("div",{className:"relative left-2",children:(0,es.jsxs)(ue,{variant:"ghost",state:"waiting",children:[(0,es.jsx)(n4,{color:"subtle",children:i.toLocaleString()}),(0,es.jsx)(n4,{color:"green",children:(0,es.jsx)(ut.Y3p,{})})]})})}):null]})]})}function Dr(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,es.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,es.jsx)(vE,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,es.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,es.jsx)(n4,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,es.jsx)(n4,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,es.jsx)(n4,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Di(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:a,nodeBlockHeight:o,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,es.jsx)(b0,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,es.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===a||0===a?null:(0,es.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,es.jsxs)(n4,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[a,"%"]})}),(0,es.jsx)(gR,{size:30})]}),children:(0,es.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,es.jsx)(Dn,{nodeBlockHeight:o,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,es.jsx)(gn,{className:"w-full mb-0.5"}):(0,es.jsx)(Dr,{percent:a,nodeBlockHeight:o,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(n4,{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,es.jsx)(gn,{className:"w-full mb-1"})]}),c]})})}function Da(e){let{testnetName:t}=e;return(0,es.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,es.jsx)(n4,{color:"lo",children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsxs)(n4,{size:"14",color:"lo",children:["You are on the ",t," testnet."]})]})}function Do(e){let{type:t,label:n,link:r,tip:i,icon:a,value:o,onClick:s,format:l,decimalsLimit:u,units:c}=e;return(0,es.jsxs)("div",{className:"flex justify-between items-center",children:[(0,es.jsx)(l7,{align:"start",side:"bottom",content:i,children:(0,es.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,es.jsx)(n4,{className:"flex relative",children:a||(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(n4,{size:"12",ellipsis:!0,children:r?(0,es.jsx)(gT,{href:r,target:"_blank",children:n}):n})]})}),(0,es.jsx)("div",{role:"button",tabIndex:0,"aria-label":n,className:(0,tl.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(o)},children:"siacoin"===t?(0,es.jsx)(Ar,{value:o,variant:"value",size:"12",fixed:u,dynamicUnits:!1,showTooltip:!1,tipSide:"bottom"}):(0,es.jsx)(Ai,{value:o,variant:"value",size:"12",format:l||(e=>"".concat(y1(e,u)).concat(c?" ".concat(c):"")),tipSide:"bottom"})})]})}function Ds(e){let{form:t,fields:n,name:r}=e;return(0,el.useCallback)((e,i)=>{Dl({form:t,fields:n,name:r,value:e,options:i})},[r,t,n])}function Dl(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 Du(e){let{form:t,fields:n,values:r,options:i}=e;for(let[e,a]of Object.entries(r))Dl({form:t,fields:n,name:e,value:a,options:i})}function Dc(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:s,suggestionTip:l,before:u,after:c,tipsDecimalsLimitSc:d=0}=r[t],f=Ds({name:t,fields:r,form:n});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,es.jsx)(u||(()=>null),{name:t,form:n,fields:r}),(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Ru,{name:t,fields:r,form:n,group:!1,size:"small"}),i&&(0,es.jsx)(Do,{type:"siacoin",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:d,value:(0,jY.qN)(i),onClick:()=>{f(i,!0)}}),s&&l&&(0,es.jsx)(Do,{type:"siacoin",label:o||"Suggestion",tip:l,decimalsLimit:d,value:(0,jY.qN)(s),onClick:()=>{f(s,!0)}}),(0,es.jsx)(c||(()=>null),{name:t,form:n,fields:r})]})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dd(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{placeholder:s,average:l,suggestion:u,units:c,decimalsLimit:d=2,disableGroupSeparators:f,autoComplete:h,prefix:p}=o,{setValue:m,onBlur:g,error:v,value:y}=Re({form:n,field:o,name:t}),b=(0,el.useMemo)(()=>s?new(y0())(s):u&&"boolean"!=typeof u?new(y0())(u):l&&"boolean"!=typeof l?new(y0())(l):void 0,[s,u,l]),x=(0,es.jsx)(y2,{prefix:p,name:t,value:y,units:c,size:i,decimalsLimit:d,disableGroupSeparators:f,autoComplete:h,placeholder:b?new(y0())(b):void 0,state:v?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{m(void 0!==e?new(y0())(e):void 0,!0)},onBlur:g});return a?(0,es.jsx)(Ak,{title:o.title,name:t,form:n,wrap:!0,children:x}):x}function Df(e){let{name:t,form:n,fields:r}=e,{average:i,averageTip:a,suggestionLabel:o,suggestion:s,suggestionTip:l,decimalsLimit:u=2,after:c,units:d}=r[t],f=Ds({form:n,fields:r,name:t});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Dd,{name:t,fields:r,form:n,group:!1}),i&&(0,es.jsx)(Do,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:i,onClick:()=>{f(i,!0)}}),s&&l&&(0,es.jsx)(Do,{type:"number",label:o||"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}}),(0,es.jsx)(c||(()=>null),{name:t,form:n,fields:r})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dh(e){let{label:t,link:n,tip:r,value:i,onClick:a}=e;return(0,es.jsxs)("div",{className:"flex justify-between gap-1 items-center overflow-hidden",children:[(0,es.jsx)("div",{children:(0,es.jsx)(l7,{align:"start",side:"bottom",content:r,children:(0,es.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,es.jsx)(n4,{className:"flex relative",children:(0,es.jsx)(ut.RdX,{})}),(0,es.jsx)(n4,{size:"12",children:n?(0,es.jsx)(gT,{href:n,target:"_blank",children:t}):t})]})})}),(0,es.jsx)("div",{className:"overflow-hidden",children:(0,es.jsx)(n4,{role:"button",tabIndex:0,"aria-label":t,className:"flex cursor-pointer items-center",onClick:a,size:"12",children:(0,es.jsx)(uS,{ellipsis:!0,className:"block",children:i})})})]})}function Dp(e){let{name:t,form:n,fields:r,type:i}=e,{suggestionLabel:a,suggestion:o,suggestionTip:s}=r[t],l=Ds({form:n,name:t,fields:r});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Rr,{name:t,form:n,fields:r,type:i,group:!1}),o&&s&&(0,es.jsx)(Dh,{label:a||"Suggestion",tip:s,value:o,onClick:()=>{l(o,!0)}})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dm(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],s=Ds({form:n,name:t,fields:r});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)("div",{className:"flex justify-end w-full",children:(0,es.jsx)(Rl,{name:t,form:n,fields:r,group:!1})}),void 0!==a&&o&&(0,es.jsx)(Dh,{label:i||"Suggestion",tip:o,value:a?"on":"off",onClick:()=>{s(a,!0)}})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dg(e){let{name:t,form:n,fields:r,size:i="small",group:a=!0}=e,o=r[t],{options:s}=o,{ref:l,onChange:u,onBlur:c,error:d}=Re({name:t,form:n,field:o}),f=(0,es.jsx)(y9,{ref:l,name:t,size:i,state:d?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:c,children:null==s?void 0:s.map(e=>(0,es.jsx)(be,{value:e.value,children:e.label},e.value))});return a?(0,es.jsx)(Ak,{title:o.title,name:t,form:n,children:f}):f}function Dv(e){let{name:t,form:n,fields:r}=e,{suggestionLabel:i,suggestion:a,suggestionTip:o}=r[t],s=Ds({form:n,name:t,fields:r});return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)("div",{className:"flex justify-end w-full",children:(0,es.jsx)(Dg,{name:t,fields:r,form:n,group:!1,size:"small"})}),a&&o&&(0,es.jsx)(Dh,{label:i||"Suggestion",tip:o,value:a,onClick:()=>{s(a,!0)}})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function Dy(e){let{name:t,form:n,fields:r}=e,i=r[t],a=i.custom||(()=>null);return"custom"===i.type?(0,es.jsx)(a,{form:n,name:t,fields:r}):"number"===i.type?(0,es.jsx)(Df,{form:n,name:t,fields:r}):"siacoin"===i.type?(0,es.jsx)(Dc,{form:n,name:t,fields:r}):"text"===i.type?(0,es.jsx)(Dp,{form:n,name:t,fields:r}):"password"===i.type?(0,es.jsx)(Dp,{form:n,type:"password",fields:r,name:t}):"boolean"===i.type?(0,es.jsx)(Dm,{form:n,name:t,fields:r}):"select"===i.type?(0,es.jsx)(Dv,{form:n,name:t,fields:r}):null}function Db(e){let{name:t,form:n,fields:r,autoVisibility:i}=e,a=r[t],o=Rn({form:n,fields:r,name:t});return!i||o?(0,es.jsx)(De,{id:t,title:a.title,description:a.description,control:(0,es.jsx)(Dy,{form:n,name:t,fields:r})}):null}function Dx(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&&Rn({form:r,fields:i,name:t})}).map(e=>{let[t]=e;return t});return 0===a.length?null:(0,es.jsx)(R9,{title:t,children:a.map(e=>(0,es.jsx)(Db,{name:e,form:r,fields:i},e))})}function Dw(e){let{name:t,form:n,fields:r,size:i="small",currency:a,group:o=!0}=e,s=(0,y4.J)({currency:a||void 0}).rate,l=r[t],{placeholder:u,decimalsLimit:c=2,units:d}=l,{setValue:f,onBlur:h,error:p,value:m}=Re({form:n,field:l,name:t}),g=(0,el.useMemo)(()=>y4.mV.find(e=>e.id===a),[a]),v=n.formState.dirtyFields[t],y=(0,es.jsxs)("div",{className:(0,tl.cx)("flex flex-col","focus-within:ring ring-blue-500 dark:ring-blue-200","border",l.readOnly?"bg-gray-200 dark:bg-graydark-300":"bg-white dark:bg-graydark-50",l.readOnly?"pointer-events-none":"",l.readOnly?"border-blue-400 dark:border-blue-400":p?"border-red-500 dark:border-red-400":v?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,es.jsx)(y2,{name:t,value:m,units:"".concat((null==g?void 0:g.label)||"?").concat(d||""),prefix:null==g?void 0:g.prefix,size:i,variant:"ghost",focus:"none",readOnly:l.readOnly,decimalsLimit:(null==g?void 0:g.fixed)||c,placeholder:u?new(y0())(u):void 0,state:p?"invalid":v?"valid":"default",onChange:e=>{f(void 0!==e?new(y0())(e):void 0,!0)},onBlur:h}),s&&(0,es.jsx)(Dj,{value:m,currency:a,rate:s})]});return o?(0,es.jsx)(Ak,{title:l.title,name:t,form:n,wrap:!0,children:y}):y}function Dj(e){let{value:t,rate:n}=e,r=t&&!t.isZero()&&n&&!n.isZero(),i=r?(0,jY.qN)(t).div(n):new(y0())(0);return(0,es.jsxs)(n6,{className:"flex gap-1 items-center justify-between relative overflow-hidden px-2 py-1.5 rounded-t-none",children:[(0,es.jsx)(l7,{side:"bottom",content:"The pinned value's current siacoin value",children:(0,es.jsxs)(n4,{className:"flex gap-1 relative",size:"12",children:[(0,es.jsx)(ut.oce,{}),"Current value"]})}),r?(0,es.jsx)(Ae,{value:i,size:"12",variant:"value",fixed:0,dynamicUnits:!0,hastingUnits:!1,tipSide:"bottom"}):(0,es.jsx)(n4,{size:"12",ellipsis:!0,color:r?"contrast":"verySubtle",children:"-"})]})}function Dk(e){let{name:t,form:n,fields:r,currency:i}=e,{average:a,averageTip:o,suggestionLabel:s,suggestion:l,suggestionTip:u,before:c,after:d}=r[t],f=Ds({form:n,fields:r,name:t}),h=(0,y4.J)({currency:i||void 0}).rate,p=(0,el.useMemo)(()=>a&&"boolean"!=typeof a&&h?new(y0())(a).times(h):void 0,[a,h]),m=(0,el.useMemo)(()=>l&&"boolean"!=typeof l&&h?new(y0())(l).times(h):void 0,[l,h]);return(0,es.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,es.jsxs)("div",{className:"flex flex-col w-[260px]",children:[(0,es.jsx)(c||(()=>null),{name:t,form:n,fields:r}),(0,es.jsxs)("div",{className:"flex flex-col gap-3 w-[260px]",children:[(0,es.jsx)(Dw,{name:t,fields:r,form:n,group:!1,currency:i}),p&&(0,es.jsx)(Do,{type:"siacoin",label:"Network average",tip:o||"Averages provided by Sia Central.",value:p,decimalsLimit:0,onClick:()=>{f(a,!0)}}),m&&u&&(0,es.jsx)(Do,{type:"siacoin",label:s||"Suggestion",tip:u,decimalsLimit:0,value:m,onClick:()=>{f(l,!0)}}),(0,es.jsx)(d||(()=>null),{name:t,form:n,fields:r})]})]}),(0,es.jsx)("div",{className:"h-[20px]",children:(0,es.jsx)(Aw,{form:n,name:t})})]})}function DE(e){let{form:t,remoteValues:n}=e,r=(0,el.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,el.useEffect)(()=>{r()},[n])}function D_(e){let{form:t}=e;return{changeCount:Object.entries(t.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length}}function DC(e){let{form:t,remoteValues:n}=e,[r,i]=(0,el.useState)(!1),{isUnlockedAndAuthedRoute:a}=(0,y4.Hv)();(0,el.useEffect)(()=>{a||i(!1)},[a]),(0,el.useEffect)(()=>{!r&&n&&(i(!0),t.reset(n))},[n])}ut.lg1,ut.eHR,ut.I$H,ut.KiD,ut.P5r,ut.CCF,ut.w9S,ut.EL$,ut.aPl,ut.wEY,ut.EOT,ut.kSc,ut.W$S,ut.lJ7,ut.ORH,ut.ka0,ut.BdP,ut.d19,ut.Mes,ut.VUg,ut.U_S,ut.T85;let DS=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[o,s]=(0,el.useState)(!0),l=(0,el.useRef)(!1),u=(0,el.useRef)(0);return(0,el.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,el.createElement)(nF,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:(0,el.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,el.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,el.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},a)};function DO(e){let{children:t}=e,[n,r]=(0,el.useState)(!1);return(0,el.useEffect)(()=>{r(!0)},[]),(0,es.jsx)("div",{children:n?t:null})}function DM(e){let{className:t,daemonExplorerInfoRoute:n,passwordProtectRequestHooks:r,fallback:i,children:a,lockRoutes:o}=e;return(0,es.jsx)(DO,{children:(0,es.jsx)(y4.kl,{fallback:i,children:(0,es.jsx)(xH.f,{attribute:"class",children:(0,es.jsx)(DS,{children:(0,es.jsx)(y4.bW,{lockRoutes:o,daemonExplorerInfoRoute:n,passwordProtectRequestHooks:r,children:(0,es.jsxs)("div",{id:"root",className:t,children:[(0,es.jsx)(PQ,{}),a]})})})})})})}var DP=n(83864),DA=n(74994),DT=DP.Z&&1/(0,DA.Z)(new DP.Z([,-0]))[1]==1/0?function(e){return new DP.Z(e)}:function(){},DN=function(e,t,n){var r=-1,i=RJ,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=RQ;else if(a>=200){var u=t?null:DT(e);if(u)return(0,DA.Z)(u);o=!1,i=R2.Z,l=new RG.Z}else l=t?[]:s;n:for(;++r=120&&c.length>=120)?new RG.Z(o&&c):void 0}c=e[0];var d=-1,f=s[0];n:for(;++d{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),c=(0,el.useCallback)(e=>{l(t=>{var n;return(n=[...t,...e]).length?DN(n):[]})},[l]),d=(0,el.useCallback)(e=>{l(t=>R8(t,e))},[l]),f=(0,el.useCallback)(()=>{l(r)},[l,r]),h=(0,el.useMemo)(()=>n.filter(e=>!e.fixed),[n]),p=(0,el.useMemo)(()=>n.filter(e=>e.fixed||s.includes(e.id)),[s,n]),m=(0,el.useMemo)(()=>p.map(e=>e.id),[p]),{sortField:g,sortDirection:v,setSortField:y,setSortDirection:b,toggleSort:x}=function(e,t){let{defaultSortField:n,defaultSortDirection:r,sortOptions:i,visibleColumnIds:a}=t,[o,s]=(0,Mj.Z)("".concat(e,"/sortField"),{defaultValue:n}),[l,u]=(0,Mj.Z)("".concat(e,"/sortDirection"),{defaultValue:r||"desc"});return{toggleSort:(0,el.useCallback)(e=>{if(o!==e){s(e),u("asc");return}u(e=>"desc"===e?"asc":"desc")},[o,s,u]),setSortDirection:u,setSortField:s,sortableColumns:(0,el.useMemo)(()=>i?Dz(i.map(e=>e.id),a):[],[i,a]),sortField:o,sortDirection:l}}(e,{defaultSortField:i,defaultSortDirection:a,sortOptions:o,visibleColumnIds:m}),w=(0,el.useMemo)(()=>o?Dz(o.map(e=>e.id),m):[],[o,m]);return{configurableColumns:h,visibleColumnIds:m,visibleColumns:p,toggleColumnVisibility:u,toggleSort:x,setSortDirection:b,setSortField:y,sortableColumns:w,sortField:g,setColumnsVisible:c,setColumnsHidden:d,sortDirection:v,resetDefaultColumnVisibility:f}}function DZ(){let e=(0,gv.xj)(),t=(0,gv.jD)(),n=(0,gv.lr)();return(0,el.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,s=a?"".concat(t,"?").concat(a):t;s!==o&&e.replace(s)},[e,n,t])}function DI(){let[e,t]=(0,el.useState)([]),n=DZ(),r=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,el.useCallback)(()=>{t([]),n()},[t,n]),a=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,el.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 DV(e){let{dataset:t,filters:n,sortField:r,sortDirection:i,limit:a,offset:o}=e,s=(0,el.useMemo)(()=>{if(!t)return;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 y0()&&a instanceof y0()?n.lte(a)?1:-1:n<=a?1:-1:void 0===n?-1:void 0===a?1:n instanceof y0()&&a instanceof y0()?n.gte(a)?1:-1:n>=a?1:-1})]},[t,n,r,i]),l=(0,el.useMemo)(()=>{if(s)return s.slice(o,o+a)},[s,o,a]);return{datasetFiltered:s,datasetPage:l}}function DB(){let[e,t]=(0,el.useState)([]),n=DZ(),r=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e.id).concat(e)),n()},[t,n]),i=(0,el.useCallback)(()=>{t([]),n()},[t,n]),a=(0,el.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e)),n()},[t,n]),o=(0,el.useCallback)(()=>{e.length&&(t(e=>e.slice(0,-1)),n())},[e,t,n]);return{filters:e,setFilter:r,removeFilter:a,removeLastFilter:o,resetFilters:i}}function DU(e){let t=(0,gv.lr)();return{limit:Number(t.get("limit")||e),offset:Number(t.get("offset")||0)}}function DH(e){let t=(0,gv.lr)();return{limit:Number(t.get("limit")||e),marker:t.get("marker")||null}}var DW=n(1619),D$=n(90820),Dq=n(27491),DK=function(e,t){var n={};return t=(0,Dq.Z)(t,3),(0,D$.Z)(e,function(e,r,i){(0,DW.Z)(n,r,t(e,r,i))}),n};function DY(e){let[t,n]=(0,el.useState)({}),r=(0,el.useMemo)(()=>Object.keys(t),[t]),i=(0,el.useMemo)(()=>Object.entries(t).map(e=>{let[t,n]=e;return n}).sort((e,t)=>e.index-t.index),[t]),[[a,o],s]=(0,el.useState)([void 0,void 0]),l=(0,el.useCallback)(()=>{s([void 0,void 0])},[]),u=(0,el.useCallback)((e,t)=>{s([e,t])},[]),c=(0,el.useMemo)(()=>null==e?void 0:e.map(e=>e.id).join(","),[e]);(0,el.useEffect)(()=>{l()},[c]);let d=(0,el.useCallback)((r,s)=>{if(!e)return;let c=e.findIndex(e=>e.id===r);if(-1===c)return;let d=e[c],f={row:d,index:c},h=!!(null==s?void 0:s.ctrlKey)||!!(null==s?void 0:s.metaKey),p=!!(null==s?void 0:s.shiftKey),m={...t};if(h){if(m[d.id]){var g,v;delete m[d.id];let e=(g=i,v=c,g.find(e=>e.index>v)||[...g].reverse().find(e=>e.indexDG({dataset:e,selectionMap:t}),[e,t]),h=(0,el.useMemo)(()=>e?r.some(t=>!e.some(e=>e.id===t)):r.length>0,[e,r]),p=(0,el.useMemo)(()=>!!e&&e.some(e=>t[e.id]),[e,t]),m=(0,el.useCallback)(()=>{e&&n(t=>{let n={...t},r=DG({dataset:e,selectionMap:t});return!1===r||"indeterminate"===r?e.forEach((e,t)=>{n[e.id]={row:e,index:t}}):e.forEach(e=>{delete n[e.id]}),n})},[e]),g=(0,el.useCallback)(e=>{n(t=>{let n={...t};return e.forEach(e=>{delete n[e]}),n}),e.find(e=>e===(null==a?void 0:a.row.id))&&l()},[null==a?void 0:a.row.id,l]),v=(0,el.useCallback)(()=>{n({}),l()},[l]),y=(0,el.useMemo)(()=>r.length,[r]);return{onSelect:d,onSelectPage:m,selection:(0,el.useMemo)(()=>DK(t,e=>e.row),[t]),selectedIds:r,isPageAllSelected:f,selectionCount:y,someSelectedRowsOutsideCurrentPage:h,someSelectedOnCurrentPage:p,deselect:g,deselectAll:v}}function DG(e){let{dataset:t,selectionMap:n}=e;return!!t&&(!!t.every(e=>n[e.id])||!!t.some(e=>n[e.id])&&"indeterminate")}function DX(e){let{multiSelect:t,children:n,entityWord:r,entityWordPlural:i}=e;return t.selectionCount>0?(0,es.jsx)(Rs,{children:(0,es.jsxs)(n6,{"aria-label":r+" multi-select menu",className:"pl-3 pr-2 py-2 min-w-[250px] flex gap-2 items-center rounded-lg light:bg-black pointer-events-auto",children:[!!t.selectionCount&&(0,es.jsx)(n4,{size:"14",children:"".concat((0,jY._6)(t.selectionCount,r,{plural:i})," selected").concat(t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?" on this and other pages":!t.someSelectedRowsOutsideCurrentPage&&t.someSelectedOnCurrentPage?"":t.someSelectedRowsOutsideCurrentPage&&!t.someSelectedOnCurrentPage?" on other pages":"")}),(0,es.jsx)("div",{className:"flex-1"}),n,(0,es.jsx)(ue,{tip:"Deselect all",onClick:t.deselectAll,size:"small",children:(0,es.jsx)(ut.PcV,{})})]})}):(0,es.jsx)(Rs,{})}function DJ(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,jY.gU)(5),n.startHeight=n.startHeight-(0,jY.gU)(5);let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=(0,jY.Nr)(1);return{allDatesMap:r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{}),range:n}}let DQ=/^[a-z]{2}$/i;function D0(e){if(!DQ.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 D1=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function D2(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 D6(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function D8(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),D6(i)}let D7=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||D7(n,t))};function D9(e,t,n){let r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;let a=D1();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):D2(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 Le="application/font-woff",Lt="image/jpeg",Ln={woff:Le,woff2:Le,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Lt,jpeg:Lt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Lr(e){return Ln[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function Li(e){return -1!==e.search(/^(data:)/)}function La(e,t){return`data:${t};base64,${e}`}async function Lo(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 Ls={};async function Ll(e,t,n){var r,i,a;let o,s;let l=(r=e,i=t,a=n.includeQueryParams,s=r.replace(/\?.*/,""),a&&(s=r),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),i?`[${i}]${s}`:s);if(null!=Ls[l])return Ls[l];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await Lo(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));o=La(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 Ls[l]=o,o}async function Lu(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):D5(t)}async function Lc(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),D5(t.toDataURL())}let n=e.poster,r=Lr(n);return D5(await Ll(n,r,t))}async function Ld(e){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return await Lg(e.contentDocument.body,{},!0)}catch(e){}return e.cloneNode(!1)}async function Lf(e,t){return D7(e,HTMLCanvasElement)?Lu(e):D7(e,HTMLVideoElement)?Lc(e,t):D7(e,HTMLIFrameElement)?Ld(e):e.cloneNode(!1)}let Lh=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();async function Lp(e,t,n){var r,i;let a=[];return Lh(e)&&e.assignedNodes?a=D2(e.assignedNodes()):D7(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?a=D2(e.contentDocument.body.childNodes):a=D2((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===a.length||D7(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>Lg(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function Lm(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;iLf(e,t)).then(n=>Lp(e,n,t)).then(t=>{var n,r;return n=e,D7(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):D2(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`}D7(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),D9(n,r,":before"),D9(n,r,":after"),D7(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),D7(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(e,t){if(D7(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(e=>Lm(e,t)):null}let Lv=/url\((['"]?)([^'"]+?)\1\)/g,Ly=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Lb=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function Lx(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,s=Lr(t);if(i){let e=await i(o);a=La(e,s)}else a=await Ll(o,s,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 Lw(e){return -1!==e.search(Lv)}async function Lj(e,t,n){if(!Lw(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(Lb,e=>{for(;;){let[n,,r]=Ly.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(Lv,(e,n,r)=>(t.push(r),e)),t.filter(e=>!Li(e))})(r).reduce((e,r)=>e.then(e=>Lx(e,r,t,n)),Promise.resolve(r))}async function Lk(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await Lj(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function LE(e,t){await Lk("background",e,t)||await Lk("background-image",e,t),await Lk("mask",e,t)||await Lk("mask-image",e,t)}async function L_(e,t){let n=D7(e,HTMLImageElement);if(!(n&&!Li(e.src))&&!(D7(e,SVGImageElement)&&!Li(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await Ll(r,Lr(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 LC(e,t){let n=D2(e.childNodes).map(e=>LS(e,t));await Promise.all(n).then(()=>e)}async function LS(e,t){D7(e,Element)&&(await LE(e,t),await L_(e,t),await LC(e,t))}let LO={};async function LM(e){let t=LO[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},LO[e]=t,t}async function LP(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),Lo(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function LA(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 LT(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{D2(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,s=LM(o).then(e=>LP(e,t)).then(e=>LA(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(s)}})}catch(a){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(LM(n.href).then(e=>LP(e,t)).then(e=>LA(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{D2(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function LN(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=D2(e.ownerDocument.styleSheets);return(await LT(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Lw(e.style.getPropertyValue("src")))}async function LR(e,t){let n=await LN(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return Lj(e.cssText,n,t)}))).join("\n")}async function LD(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await LR(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 LL(e,t={}){let{width:n,height:r}=D3(e,t),i=await Lg(e,t,!0);return await LD(i,t),await LS(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 D8(i,n,r)}async function Lz(e,t={}){let{width:n,height:r}=D3(e,t),i=await LL(e,t),a=await D5(i),o=document.createElement("canvas"),s=o.getContext("2d"),l=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*l,o.height=c*l,!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&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(a,0,0,o.width,o.height),o}async function LF(e,t={}){return(await Lz(e,t)).toDataURL()}async function LZ(e,t){let{name:n,quality:r,copy:i,download:a}=t;if(!e)throw Error("HTML node required");let o=await LF(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);P1(await e.blob(),"image/png",n)}}function LI(e){return Object.entries(e)}async function LV(e,t){var n;let r=e.length,i=0;for(let t of(await Promise.all(e)))t.error&&i++;let a=r-i;i>0?PX(t.toastError({totalCount:r,errorCount:i,successCount:a})):PG(t.toastSuccess({totalCount:r,errorCount:i,successCount:a})),await (null===(n=t.after)||void 0===n?void 0:n.call(t))}},76221:function(e,t,n){"use strict";n.d(t,{Ee:function(){return l.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),s=n(96577),l=n.n(s),u=n(82876),c=n(5632)},463:function(e,t,n){"use strict";n.d(t,{bW:function(){return Q},kl:function(){return ed},mV:function(){return W},gw:function(){return o},$S:function(){return ec},Nz:function(){return el},Hv:function(){return X},iv:function(){return et},J:function(){return es},rB:function(){return en},Nf:function(){return ee},Tu:function(){return O},mw:function(){return A},q0:function(){return P},Tb:function(){return U},V1:function(){return T},Q5:function(){return eu},D:function(){return x}});var r={};n.r(r),n.d(r,{getGPUTier:function(){return B}});var i=n(79381);function a(e,t,n){return[e,"".concat(t).concat((null==n?void 0:n.payload)?JSON.stringify(n.payload):"")]}function o(e){return new Promise(t=>setTimeout(t,e))}var s=n(89644),l=n.n(s),u=n(2784),c=n(65740);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){return{...e,config:{...null==e?void 0:e.config}}}function p(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function m(e,t,n){var r,i;let a=function(e,t,n){var r,i,a,o;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(o=n.config)||void 0===o?void 0:null===(a=o.axios)||void 0===a?void 0:a.headers},l=p(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:a}}function g(e,t,n,r){let i=(null==n?void 0:n.params)||{};r&&r.params&&(i={...i,...r.params}),t=(0,c.AR)(t,i);let a=p(e,n,r);return a===e.api?"".concat(a,"/api").concat(t):"".concat(a).concat(t)}function v(e,t,n,r){let i=p(e,n,r);return i===e.api?t[1].replace("".concat(i,"/api"),""):t[1].replace(i,"")}var y=n(52322);let b=(0,u.createContext)({}),x=()=>(0,u.useContext)(b);function w(e){let{children:t}=e,n=function(){let[e,t]=(0,u.useState)({}),n=(0,u.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]);return{setWorkflow:n,removeWorkflow:(0,u.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),resetWorkflows:(0,u.useCallback)(()=>{t({})},[t]),workflows:(0,u.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e])}}();return(0,y.jsx)(b.Provider,{value:n,children:t})}var j=n(76221),k=n(92762);let E={api:"",loginWithCustomApi:!1,password:void 0,recentApis:{},autoLock:!1,autoLockTimeout:6e5},_=(0,u.createContext)({}),C=()=>(0,u.useContext)(_);function S(e){let{children:t,...n}=e,r=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:r}=e,a=(0,u.useMemo)(()=>({...E,...r}),[r]),[o,s]=(0,k.Z)("v1/requestConfig",{defaultValue:a});(0,u.useEffect)(()=>{s(e=>({...a,...e}))},[]);let l=(0,u.useMemo)(()=>({...a,...o}),[o,a]),{resetWorkflows:c}=x(),d=(0,u.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,j.xj)(),h=(0,j.jD)(),[p,m]=(0,u.useState)({}),g=(0,u.useCallback)((e,t)=>{m(n=>({...n,[e]:t}))},[m]),v=(0,u.useCallback)(()=>{for(let[e,t]of(n&&f.push("".concat(n.login,"?prev=").concat([n.login].includes(h)?n.home:h)),d({password:""}),c(),(0,i.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(p)))t&&t()},[f,n,d,c,p,h]),y=function(e){let t=(0,j.jD)();return![e.login].includes(t)}({login:(null==n?void 0:n.login)||"/login"}),b=(0,u.useMemo)(()=>!!l.password,[l]);return{requestSettings:l,setRequestSettings:d,lock:v,isUnlockedAndAuthedRoute:b&&y,passwordProtectRequestHooks:t,setOnLockCallback:g}}(n);return(0,y.jsx)(_.Provider,{value:r,children:t})}function O(e){let{requestSettings:t}=C(),{mutate:n}=(0,i.kY)();return(0,u.useMemo)(()=>function(r,i,a){return M(n,t,e,void 0,r,i,a)},[n,t,e])}function M(e,t,n,r,i,a,o){return e(e=>!!e&&"string"!=typeof e&&2===e.length&&i(v(t,e,n,r)),a||(e=>e),o)}function P(e){var t;let n=(0,u.useMemo)(()=>f(e),[e]),{requestSettings:r,passwordProtectRequestHooks:o}=C(),s=g(r,n.route,n,void 0),c=(0,u.useMemo)(()=>{var t,i;return t=a("post",s,e),i=n.disabled||o&&!r.password,!t||i?null:t},[s,e,n,o,r]);return(0,i.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=m(r,n,void 0);if(!s)throw Error("No route");try{return(await l().post(s,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 A(e,t){let{setWorkflow:n,removeWorkflow:r}=x(),{mutate:o}=(0,i.kY)(),{requestSettings:s}=C(),u=d(e);return{post:async e=>{let i=h(e);try{let c;let d=m(s,u,i),f=g(s,u.route,u,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=a("post",f,e),p=v(s,h,e,i),y=h.join("");n(y,{route:p,payload:c});let b=await l().post(f,c,d);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 M(o,s,e,i,t,n,r)},i,b),r(y),{status:b.status,data:b.data,headers:b.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function T(e,t){let{mutate:n}=(0,i.kY)(),{requestSettings:r}=C(),{setWorkflow:o,removeWorkflow:s}=x(),u=d(e);return{put:async e=>{let i=h(e);try{let c;let d=m(r,u,i),f=g(r,u.route,u,i);if(!f)throw Error("No route");"payload"in i&&(c=i.payload);let h=a("put",f,e),p=v(r,h,e,i),y=h.join("");o(y,{route:p,payload:c});let b=await l().put(f,c,d);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 M(n,r,e,i,t,a,o)},i,b),s(y),{status:b.status,data:b.data,headers:b.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function N(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}let R=["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 D(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 L="undefined"==typeof window,z=(()=>{if(L)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 F extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let Z=[],I=[];function V(e){return null!=e}let B=({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"}={})=>N(void 0,void 0,void 0,function*(){let o={};if(L)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==z?void 0:z.isIpad),isMobile:l=!!(null==z?void 0:z.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>N(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 F("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=D(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==z?void 0:z.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=D(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",s="80162181161",l=(null==z?void 0:z.isIpad)?[["a7",s,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",s,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=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let g=(yield Promise.all(h.map(function(e){var t;return N(this,void 0,void 0,function*(){let n;let r=(e=>{for(let t of l?["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=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,a=o[i]=null!==(t=o[i])&&void 0!==t?t:c(i);try{n=yield a}catch(e){if(e instanceof F)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?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of v){let[t,n]=e,r=Math.abs(x-t*n);re===n?t-r:e-n);if(!g.length){let e=R.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,v,y,b]=g[0];if(-1===v)return f(0,"BLOCKLISTED",y,v,b);let x=l?e:t,w=0;for(let e=0;e=x[e]&&(w=e);return f(w,"BENCHMARK",y,v,b)});function U(){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:H}=r,W=[{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}],$={siaCentral:!0,siascan:!0,currency:W[0],currencyDisplay:"bothPreferSc"},q=(0,u.createContext)({}),K=()=>(0,u.useContext)(q);function Y(e){let{children:t,...n}=e,r=function(e){let{daemonExplorerInfoRoute:t,defaultSettings:n}=e,r=(0,u.useMemo)(()=>({...$,...n}),[n]),[i,a]=(0,k.Z)("v1/externalData",{defaultValue:r});(0,u.useEffect)(()=>{a(e=>({...r,...e}))},[]);let o=(0,u.useMemo)(()=>({...r,...i}),[i,r]),s=(0,u.useCallback)(e=>{a(t=>({...t,...e}))},[a]),l=(0,u.useCallback)(e=>{let t=W.find(t=>t.id===e);t&&s({currency:t})},[s]);return{externalDataSettings:o,setExternalDataSettings:s,setCurrency:l,currencyOptions:W,daemonExplorer:function(e){var t;let{route:n,config:r,disabled:i}=e,a=ee({disabled:!n||i,route:n||"",config:{...r,swr:{...null==r?void 0:r.swr,revalidateOnFocus:!1}}}),{url:o,enabled:s}=(null===(t=a.data)||void 0===t?void 0:t.explorer)||{},l=(0,u.useMemo)(()=>{if(o)try{let{origin:e}=new URL(o);return e}catch(e){console.error(e)}},[o]);return(0,u.useMemo)(()=>({isSupported:!!a.data,enabled:!!s&&!!l,api:l,isValidating:a.isValidating,isLoading:a.isLoading}),[s,l,a.isValidating,a.isLoading,a.data])}({route:t})}}(n);return(0,y.jsx)(q.Provider,{value:r,children:t})}let G=(0,u.createContext)({}),X=()=>(0,u.useContext)(G);function J(e){let{children:t}=e,n=function(){let{requestSettings:e,setRequestSettings:t,lock:n,isUnlockedAndAuthedRoute:r,setOnLockCallback:i}=C(),{externalDataSettings:a,setExternalDataSettings:o,setCurrency:s,currencyOptions:l,daemonExplorer:c}=K(),d=function(){let e=U(),[t,n]=(0,u.useState)(!1),[r,i]=(0,u.useState)(!1),[{isGpuEnabled:a,hasUserSet:o},s]=(0,k.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),l=(0,u.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,u.useCallback)(async()=>{let e=!1;{let t=await H();console.log("GPU",t),e=t.tier>0,!o&&t.tier<2&&l(!1,!1)}i(e),n(!0)},[i,l,o]);return(0,u.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:a,shouldRender:r&&a,setCanGpuRender:i,setIsGpuEnabled:l}}();return{settings:(0,u.useMemo)(()=>({...e,...a}),[e,a]),requestSettings:e,externalDataSettings:a,setRequestSettings:t,setExternalDataSettings:o,siascan:a.siascan,siaCentral:a.siaCentral,gpu:d,lock:n,isUnlockedAndAuthedRoute:r,setOnLockCallback:i,setCurrency:s,currencyOptions:l,daemonExplorer:c}}();return(0,y.jsx)(G.Provider,{value:n,children:t})}function Q(e){let{children:t,...n}=e;return(0,y.jsx)(S,{...n,children:(0,y.jsx)(Y,{...n,children:(0,y.jsx)(J,{...n,children:t})})})}function ee(e){var t,n,r;let o=(0,u.useMemo)(()=>f(e),[e]),{requestSettings:s,passwordProtectRequestHooks:c}=C(),d=g(s,o.route,o,void 0);return(0,i.ZP)((n=a("get",d),r=o.disabled||c&&!s.password,!n||r?null:n),async()=>{if(!o.route)throw Error("No route");let e=m(s,o,void 0);if(!d)throw Error("No route");try{return(await l().get(d,e)).data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function et(e,t){let{mutate:n}=(0,i.kY)(),{requestSettings:r}=C(),{setWorkflow:o,removeWorkflow:s}=x(),u=d(e);return{delete:async e=>{let i=h(e);try{let c=m(r,u,i),d=g(r,u.route,u,i);if(!d)throw Error("No route");let f=a("delete",d),h=v(r,f,e,i),p=f.join("");o(p,{route:h});let y=await l().delete(d,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 M(n,r,e,i,t,a,o)},i,y),s(p),{status:y.status,data:y.data,headers:y.headers}}catch(e){var c,d;return{status:null===(c=e.response)||void 0===c?void 0:c.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function en(e){var t;let{get:n}=function(e){let{settings:t}=X(),n=d(e);return{get:async e=>{let r=h(e);try{let e=m(t,n,r),i=g(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}}}var er=n(6391),ei=n.n(er),ea=n(60381);let eo={revalidateOnFocus:!1,refreshInterval:(0,ea.sW)(5),dedupingInterval:(0,ea.sW)(5)};function es(e){let{currency:t,config:n,disabled:r}=e,{daemonExplorer:i}=X(),a=function(e){let{currency:t,config:n,disabled:r}=e,{daemonExplorer:{enabled:i,api:a},currencyOptions:o}=X(),s=ee({params:{currency:t},disabled:!i||r||!t,api:a,route:"/exchange-rate/siacoin/:currency",config:{...n,swr:{...eo,...null==n?void 0:n.swr}}});return(0,u.useMemo)(()=>({rate:s.data?new(ei())(s.data):void 0,error:s.error,isValidating:s.isValidating,isLoading:s.isLoading,currency:o.find(e=>e.id===t)}),[s.data,s.error,s.isValidating,s.isLoading,o,t])}({currency:t,config:n,disabled:!i.enabled||r}),o=function(e){let{currency:t,config:n,disabled:r}=e,{settings:i,currencyOptions:a}=X(),o=ee({params:{currency:t},api:"https://api.siascan.com",route:"/exchange-rate/siacoin/:currency",config:{...n,swr:{...eo,...null==n?void 0:n.swr}},disabled:!i.siascan||!t||r});return(0,u.useMemo)(()=>({rate:o.data?new(ei())(o.data):void 0,error:o.error,isValidating:o.isValidating,isLoading:o.isLoading,currency:a.find(e=>e.id===t)}),[o.data,o.error,o.isValidating,o.isLoading,a,t])}({currency:t,config:n,disabled:i.enabled||r});return i.enabled?a:o}function el(){let{config:e,disabled:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{settings:n}=X();return es({currency:n.currency.id,config:e,disabled:t})}function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function ec(e){return e||(null===e?[]:void 0)}function ed(e){let{fallback:t,cacheProvider:n,children:r}=e;return(0,y.jsx)(w,{children:(0,y.jsx)(i.J$,{value:{fallback:t||{},provider:n},children:r})})}},28420:function(e,t,n){"use strict";n.d(t,{aXP:function(){return nc},eHR:function(){return nv},xHM:function(){return ny},L6f:function(){return nb},rW0:function(){return nx},osk:function(){return nw},JaG:function(){return nj},wWN:function(){return aK},Dkj:function(){return a3},fi8:function(){return aq},nnZ:function(){return a6},DlU:function(){return nN},ljb:function(){return nR},EMN:function(){return nD},bdU:function(){return nL},VUy:function(){return nz},Cp0:function(){return nF},kqg:function(){return nZ},Mes:function(){return nI},oce:function(){return nB},uTh:function(){return nV},DI$:function(){return nH},NlZ:function(){return n8},Y3p:function(){return re},dmA:function(){return n9},Z$8:function(){return n7},MKy:function(){return rt},tEK:function(){return rr},yar:function(){return rn},cRw:function(){return ri},F3j:function(){return ra},MR9:function(){return ro},PcV:function(){return rl},QN4:function(){return rs},Jsc:function(){return rc},T80:function(){return ru},bQp:function(){return rf},Y9T:function(){return rd},wEY:function(){return rg},olJ:function(){return ry},vtB:function(){return rv},KiD:function(){return rk},jBN:function(){return rE},NZ7:function(){return r_},B4q:function(){return rP},_Eq:function(){return rC},VHe:function(){return a1},Jrl:function(){return rA},aPl:function(){return rT},kBK:function(){return aQ},c_L:function(){return rL},Bpb:function(){return rz},vzB:function(){return rF},nDH:function(){return rH},dr6:function(){return rW},_fo:function(){return r$},d19:function(){return rq},w9S:function(){return rK},VBo:function(){return aY},q0D:function(){return rQ},Hb6:function(){return rJ},CCF:function(){return r0},Qbr:function(){return r5},L37:function(){return r6},ROc:function(){return a2},jef:function(){return r8},UG6:function(){return a0},lq1:function(){return r7},zvn:function(){return aG},EL$:function(){return ie},BdP:function(){return il},e1T:function(){return iu},P5r:function(){return ic},RdX:function(){return ih},$iY:function(){return id},U_S:function(){return ip},_m8:function(){return a5},V8Q:function(){return ix},POp:function(){return iw},nCM:function(){return iE},kSc:function(){return ik},TtX:function(){return ij},mBM:function(){return aJ},Lur:function(){return iO},b47:function(){return iM},Sfn:function(){return iP},W$S:function(){return iF},ybx:function(){return iZ},T85:function(){return iI},c6N:function(){return iV},Ckx:function(){return iB},EOT:function(){return iH},fDA:function(){return iU},RK4:function(){return i$},jH8:function(){return iX},XJM:function(){return iJ},RRj:function(){return iQ},ka0:function(){return i0},hzZ:function(){return i5},oHy:function(){return i3},n6M:function(){return i6},VUg:function(){return at},owP:function(){return an},Fs9:function(){return ar},wGX:function(){return ai},Wet:function(){return ad},UJc:function(){return ac},xkX:function(){return af},Zbu:function(){return ah},ZEk:function(){return ap},_iN:function(){return ax},$Iz:function(){return aw},UBs:function(){return aj},shL:function(){return ak},hiv:function(){return aE},eOF:function(){return aO},mli:function(){return aS},_kF:function(){return aP},lJ7:function(){return a4},ORH:function(){return aD},I98:function(){return aL},VmF:function(){return az},R$6:function(){return aF},JCW:function(){return aZ.JCW},xVB:function(){return aZ.xVB},pHg:function(){return aZ.pHg},I$H:function(){return aZ.I$H},oaN:function(){return aX},qdM:function(){return aZ.qdM},KTM:function(){return aZ.KTM},gFQ:function(){return aZ.gFQ},Gu6:function(){return aZ.Gu6},SmH:function(){return aU},RFr:function(){return aH},lg1:function(){return aW}});var r,i,a,o,s,l,u,c,d,f,h,p,m,g,v,y,b,x,w,j,k,E,_,C,S,O,M,P,A,T,N,R,D,L,z,F,Z,I,V,B,U,H,W,$,q,K,Y,G,X,J,Q,ee,et,en,er,ei,ea,eo,es,el,eu,ec,ed,ef,eh,ep,em,eg,ev,ey,eb,ex,ew,ej,ek,eE,e_,eC,eS,eO,eM,eP,eA,eT,eN,eR,eD,eL,ez,eF,eZ,eI,eV,eB,eU,eH,eW,e$,eq,eK,eY,eG,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,ta,to,ts,tl,tu,tc,td,tf,th,tp,tm,tg,tv,ty,tb,tx,tw,tj,tk,tE,t_,tC,tS,tO,tM,tP,tA,tT,tN,tR,tD,tL,tz,tF,tZ,tI,tV,tB,tU,tH,tW,t$,tq,tK,tY,tG,tX,tJ,tQ,t0,t1,t2,t4,t3,t5,t6,t8,t7,t9,ne,nt,nn,nr,ni,na,no,ns=n(36662),nl=n(2784),nu=["children"],nc=nl.forwardRef(function(e,t){var n=e.children,i=(0,ns._)(e,nu);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),r||(r=nl.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)}),nd=["children"],nf=["children"],nh=["children"],np=["children"],nm=["children"],ng=["children"],nv=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nd);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),i||(i=nl.createElement("path",{d:"M14 19H18V21H14z"})),a||(a=nl.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),ny=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nf);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),o||(o=nl.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)}),nb=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nh);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=nl.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=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,np);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),l||(l=nl.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)}),nw=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nm);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=nl.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=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ng);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=nl.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),d||(d=nl.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),f||(f=nl.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),h||(h=nl.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),p||(p=nl.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),m||(m=nl.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),g||(g=nl.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),v||(v=nl.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),y||(y=nl.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)}),nk=["children"],nE=["children"],n_=["children"],nC=["children"],nS=["children"],nO=["children"],nM=["children"],nP=["children"],nA=["children"],nT=["children"],nN=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nk);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),b||(b=nl.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)}),nR=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nE);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),x||(x=nl.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"})),w||(w=nl.createElement("path",{d:"M9 23H11V25H9zM21 23H23V25H21zM9 18H11V20H9zM21 18H23V20H21zM9 13H11V15H9zM15 23H17V25H15zM15 18H17V20H15zM15 13H17V15H15zM21 13H23V15H21zM9 7H23V10H9z"})),n)}),nD=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n_);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=nl.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nL=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nC);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=nl.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nz=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nS);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=nl.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nF=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nO);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=nl.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nZ=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nM);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=nl.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nI=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nP);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=nl.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)}),nV=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nA);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=nl.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)}),nB=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nT);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=nl.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)}),nU=["children"],nH=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nU);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=nl.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),A||(A=nl.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)}),nW=["children"],n$=["children"],nq=["children"],nK=["children"],nY=["children"],nG=["children"],nX=["children"],nJ=["children"],nQ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=["children"],n5=["children"],n6=["children"],n8=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nW);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=nl.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),n7=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n$);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=nl.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),R||(R=nl.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)}),n9=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nq);return nl.createElement(ns.I,(0,ns.a)({width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=nl.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"})),L||(L=nl.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)}),re=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nK);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=nl.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=nl.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=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nY);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=nl.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"})),I||(I=nl.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"})),V||(V=nl.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)}),rn=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nG);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=nl.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),U||(U=nl.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)}),rr=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nX);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=nl.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),W||(W=nl.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)}),ri=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nJ);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=nl.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),ra=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,nQ);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=nl.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),ro=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n0);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=nl.createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),n)}),rs=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n1);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=nl.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=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n2);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),G||(G=nl.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)}),ru=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n4);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=nl.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"})),J||(J=nl.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)}),rc=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n3);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=nl.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"})),ee||(ee=nl.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)}),rd=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n5);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=nl.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"})),en||(en=nl.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)}),rf=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,n6);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=nl.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"})),ei||(ei=nl.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)}),rh=["children"],rp=["children"],rm=["children"],rg=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rh);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=nl.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"})),eo||(eo=nl.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),rv=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rp);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=nl.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"})),el||(el=nl.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),ry=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rm);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=nl.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"})),ec||(ec=nl.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),rb=["children"],rx=["children"],rw=["children"],rj=["children"],rk=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rb);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=nl.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"})),ef||(ef=nl.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)}),rE=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rx);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=nl.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)}),r_=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rw);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=nl.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V5A2,2,0,0,0,24,3Zm0,2v6H8V5ZM8,19V13H24v6Zm0,8V21H24v6Z"})),em||(em=nl.createElement("circle",{cx:"11",cy:"8",r:"1"})),eg||(eg=nl.createElement("circle",{cx:"11",cy:"16",r:"1"})),ev||(ev=nl.createElement("circle",{cx:"11",cy:"24",r:"1"})),n)}),rC=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rj);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ey||(ey=nl.createElement("circle",{cx:"22",cy:"24",r:"2"})),eb||(eb=nl.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"})),ex||(ex=nl.createElement("circle",{cx:"8",cy:"8",r:"1"})),ew||(ew=nl.createElement("circle",{cx:"8",cy:"16",r:"1"})),ej||(ej=nl.createElement("circle",{cx:"8",cy:"24",r:"1"})),ek||(ek=nl.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)}),rS=["children"],rO=["children"],rM=["children"],rP=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rS);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=nl.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),e_||(e_=nl.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)}),rA=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rO);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=nl.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),eS||(eS=nl.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),rT=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rM);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=nl.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),eM||(eM=nl.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),rN=["children"],rR=["children"],rD=["children"],rL=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rN);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=nl.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"})),eA||(eA=nl.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),rz=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rR);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=nl.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),rF=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rD);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=nl.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)}),rZ=["children"],rI=["children"],rV=["children"],rB=["children"],rU=["children"],rH=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rZ);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=nl.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)}),rW=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rI);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=nl.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)}),r$=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rV);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=nl.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)}),rq=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rB);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=nl.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=nl.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),eZ||(eZ=nl.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rK=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rU);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=nl.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)}),rY=["children"],rG=["children"],rX=["children"],rJ=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rY);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=nl.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)}),rQ=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rG);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=nl.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)}),r0=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,rX);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=nl.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)}),r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,r1);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=nl.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)}),r6=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,r2);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=nl.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"})),e$||(e$=nl.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)}),r8=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,r4);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=nl.createElement("path",{d:"M18 13L16.59 14.41 19.17 17 10 17 10 19 19.17 19 16.59 21.59 18 23 23 18 18 13z"})),eK||(eK=nl.createElement("path",{d:"M11.1716,6l3.4142,3.4142L15.1716,10H28V26H4V6h7.1716m0-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.5858,4.5858A2,2,0,0,0,11.1716,4Z"})),n)}),r7=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,r3);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=nl.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"})),eG||(eG=nl.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)}),r9=["children"],ie=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,r9);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=nl.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)}),it=["children"],ir=["children"],ii=["children"],ia=["children"],io=["children"],is=["children"],il=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,it);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eJ||(eJ=nl.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)}),iu=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ir);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=nl.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=nl.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)}),ic=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ii);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=nl.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)}),id=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ia);return nl.createElement(ns.I,(0,ns.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=nl.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=nl.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)}),ih=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,io);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e3||(e3=nl.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=nl.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)}),ip=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,is);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=nl.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)}),im=["children"],ig=["children"],iv=["children"],iy=["children"],ib=["children"],ix=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,im);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=nl.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=nl.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)}),iw=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ig);return nl.createElement(ns.I,(0,ns.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=nl.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=nl.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)}),ij=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iv);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=nl.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)}),ik=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iy);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=nl.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)}),iE=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ib);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tr||(tr=nl.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)}),i_=["children"],iC=["children"],iS=["children"],iO=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i_);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=nl.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)}),iM=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iC);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=nl.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=nl.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)}),iP=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iS);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=nl.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)}),iA=["children"],iT=["children"],iN=["children"],iR=["children"],iD=["children"],iL=["children"],iz=["children"],iF=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iA);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=nl.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=nl.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)}),iZ=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iT);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=nl.createElement("path",{d:"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),iI=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iN);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=nl.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)}),iV=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iR);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tf||(tf=nl.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"})),th||(th=nl.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)}),iB=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iD);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=nl.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"})),tm||(tm=nl.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)}),iU=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iL);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=nl.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"})),tv||(tv=nl.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)}),iH=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iz);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=nl.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"})),tb||(tb=nl.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)}),iW=["children"],i$=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iW);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=nl.createElement("circle",{cx:"21",cy:"26",r:"2"})),tw||(tw=nl.createElement("circle",{cx:"21",cy:"6",r:"2"})),tj||(tj=nl.createElement("circle",{cx:"4",cy:"16",r:"2"})),tk||(tk=nl.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)}),iq=["children"],iK=["children"],iY=["children"],iG=["children"],iX=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iq);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=nl.createElement("circle",{cx:"8",cy:"16",r:"2"})),t_||(t_=nl.createElement("circle",{cx:"16",cy:"16",r:"2"})),tC||(tC=nl.createElement("circle",{cx:"24",cy:"16",r:"2"})),n)}),iJ=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iK);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=nl.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),iQ=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iY);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tO||(tO=nl.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),i0=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,iG);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=nl.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"})),tP||(tP=nl.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),i1=["children"],i2=["children"],i4=["children"],i3=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i1);return nl.createElement(ns.I,(0,ns.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=nl.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=nl.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)}),i5=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i2);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tN||(tN=nl.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),tR||(tR=nl.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)}),i6=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i4);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tD||(tD=nl.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)}),i8=["children"],i7=["children"],i9=["children"],ae=["children"],at=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i8);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tL||(tL=nl.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"})),tz||(tz=nl.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)}),an=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i7);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tF||(tF=nl.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),tZ||(tZ=nl.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"})),tI||(tI=nl.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)}),ar=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,i9);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tV||(tV=nl.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)}),ai=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ae);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tB||(tB=nl.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tU||(tU=nl.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)}),aa=["children"],ao=["children"],as=["children"],al=["children"],au=["children"],ac=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aa);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tH||(tH=nl.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)}),ad=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ao);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tW||(tW=nl.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)}),af=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,as);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t$||(t$=nl.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)}),ah=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,al);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tq||(tq=nl.createElement("path",{d:"M10 16H22V18H10zM10 10H22V12H10z"})),tK||(tK=nl.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)}),ap=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,au);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tY||(tY=nl.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)}),am=["children"],ag=["children"],av=["children"],ay=["children"],ab=["children"],ax=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,am);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tG||(tG=nl.createElement("path",{d:"M20,16a5,5,0,0,0,10,0,1,1,0,0,0-.1055-.4473L25.896,7.5562a.8913.8913,0,0,0-.0454-.0816A1,1,0,0,0,25,7H18.8218A3.0155,3.0155,0,0,0,17,5.1841V2H15V5.1841A3.0155,3.0155,0,0,0,13.1782,7H7a1,1,0,0,0-.8945.5527l-4,8A1,1,0,0,0,2,16a5,5,0,0,0,10,0,1,1,0,0,0-.1055-.4473L8.6182,9h4.56A3.0147,3.0147,0,0,0,15,10.8154V28H6v2H26V28H17V10.8159A3.0155,3.0155,0,0,0,18.8218,9h4.56l-3.2763,6.5527A1,1,0,0,0,20,16ZM7,19a2.9958,2.9958,0,0,1-2.8152-2h5.63A2.9956,2.9956,0,0,1,7,19Zm2.3821-4H4.6179L7,10.2363ZM16,9a1,1,0,1,1,1-1A1.0009,1.0009,0,0,1,16,9Zm9,10a2.9958,2.9958,0,0,1-2.8152-2h5.63A2.9956,2.9956,0,0,1,25,19Zm0-8.7637L27.3821,15H22.6179Z"})),n)}),aw=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ag);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tX||(tX=nl.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)}),aj=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,av);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tJ||(tJ=nl.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)}),ak=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ay);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tQ||(tQ=nl.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"})),t0||(t0=nl.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)}),aE=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,ab);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t1||(t1=nl.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"],aC=["children"],aS=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,a_);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t2||(t2=nl.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aO=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aC);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t4||(t4=nl.createElement("path",{d:"M8 15H24V17H8z"})),n)}),aM=["children"],aP=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aM);return nl.createElement(ns.I,(0,ns.a)({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t3||(t3=nl.createElement("path",{d:"M14 20.18L10.41 16.59 9 18 14 23 23 14 21.59 12.58 14 20.18z"})),t5||(t5=nl.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)}),aA=["children"],aT=["children"],aN=["children"],aR=["children"],aD=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aA);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t6||(t6=nl.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)}),aL=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aT);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t8||(t8=nl.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"})),t7||(t7=nl.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),az=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aN);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),t9||(t9=nl.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),n)}),aF=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aR);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ne||(ne=nl.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)}),aZ=n(63131),aI=["children"],aV=["children"],aB=["children"],aU=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aI);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nt||(nt=nl.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"})),nn||(nn=nl.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)}),aH=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aV);return nl.createElement(ns.I,(0,ns.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),nr||(nr=nl.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)}),aW=nl.forwardRef(function(e,t){var n=e.children,r=(0,ns._)(e,aB);return nl.createElement(ns.I,(0,ns.a)({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ni||(ni=nl.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"})),na||(na=nl.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"})),no||(no=nl.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)}),a$=n(52322);function aq(e){let{size:t=24,className:n}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a$.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 aK(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,a$.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 aY(e){let{size:t=24,className:n}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,a$.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 aG(e){let{size:t=24,className:n}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,a$.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 aX(e){let{size:t=24,className:n}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,a$.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 aJ(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a$.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 aQ(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a$.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 a0(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,a$.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 a1(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,a$.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 a2(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,a$.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 a4(e){let{size:t=24}=e;return(0,a$.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,a$.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,a$.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,a$.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,a$.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,a$.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function a3(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,a$.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 a5(e){let{size:t=24,className:n}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,a$.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"})})}function a6(e){let{size:t=24}=e;return(0,a$.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,a$.jsx)("path",{d:"M256 0c53 0 96 43 96 96l0 3.6c0 15.7-12.7 28.4-28.4 28.4l-135.1 0c-15.7 0-28.4-12.7-28.4-28.4l0-3.6c0-53 43-96 96-96zM41.4 105.4c12.5-12.5 32.8-12.5 45.3 0l64 64c.7 .7 1.3 1.4 1.9 2.1c14.2-7.3 30.4-11.4 47.5-11.4l112 0c17.1 0 33.2 4.1 47.5 11.4c.6-.7 1.2-1.4 1.9-2.1l64-64c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-64 64c-.7 .7-1.4 1.3-2.1 1.9c6.2 12 10.1 25.3 11.1 39.5l64.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c0 24.6-5.5 47.8-15.4 68.6c2.2 1.3 4.2 2.9 6 4.8l64 64c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-63.1-63.1c-24.5 21.8-55.8 36.2-90.3 39.6L272 240c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 239.2c-34.5-3.4-65.8-17.8-90.3-39.6L86.6 502.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l64-64c1.9-1.9 3.9-3.4 6-4.8C101.5 367.8 96 344.6 96 320l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.3 0c1.1-14.1 5-27.5 11.1-39.5c-.7-.6-1.4-1.2-2.1-1.9l-64-64c-12.5-12.5-12.5-32.8 0-45.3z"})})}},91426:function(e,t,n){"use strict";n.d(t,{cJ:function(){return eh},Z7:function(){return G},Uy:function(){return X},e$:function(){return ei},Mz:function(){return es},oe:function(){return ea},YX:function(){return eo},Bl:function(){return el},D5:function(){return N},oV:function(){return R},sg:function(){return L},ol:function(){return D},B$:function(){return T},d_:function(){return u},DQ:function(){return c},cq:function(){return P},IK:function(){return A},GP:function(){return M},nH:function(){return d},$:function(){return w},wW:function(){return C},ED:function(){return O},lW:function(){return x},s2:function(){return k},ni:function(){return E},uf:function(){return j},Os:function(){return _},Yy:function(){return J},X1:function(){return Q},LS:function(){return en},_3:function(){return et},eM:function(){return ee},bg:function(){return er},Pt:function(){return ef},wy:function(){return F},p$:function(){return ec},Q5:function(){return V},ZM:function(){return ed},F_:function(){return z},Lh:function(){return I},TD:function(){return Z},en:function(){return B},oX:function(){return $},E5:function(){return U},Vp:function(){return q},AR:function(){return H},_M:function(){return K},NF:function(){return W},Cl:function(){return Y},Wl:function(){return h},cQ:function(){return f},Q4:function(){return p},QL:function(){return m},X2:function(){return g},sG:function(){return v},a0:function(){return y},cj:function(){return b}});var r=n(79381),i=n(54897),a=n(463),o=n(60381),s=n(7699),l=n(67812);function u(e){return(0,a.Nf)({...e,route:s.PS})}function c(e){return(0,a.Nf)({...e,route:s.J6})}function d(){let e=u({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,o.du)():(0,o.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function f(e){return(0,a.Nf)({...e,route:s.gl})}function h(e){return(0,a.mw)({...e,route:s.aU},async e=>{e(e=>e===s.gl)})}function p(e){return(0,a.Nf)({...e,route:s.Sh})}function m(e){return(0,a.Nf)({...e,route:s.Oj})}function g(e){return(0,a.Nf)({...e,route:s.xg})}function v(e){return(0,a.Nf)({...e,route:s.Wi})}function y(e){return(0,a.Nf)({...e,route:s.zk})}function b(e){return(0,a.mw)({...e,route:s.zb},async e=>{await (0,a.gw)(2e3),e(e=>e.startsWith(s.Oj)||e.startsWith(s.zk))})}function x(e){return(0,a.q0)({...e,route:s.N8})}function w(e){return(0,a.Nf)({...e,route:s.rg})}function j(e){return(0,a.Nf)({...e,route:s.yu})}function k(e){return(0,a.Nf)({...e,route:s.MF})}function E(e){return(0,a.V1)({...e,route:s.MF},async e=>{e(e=>!![s.N8,s.MF,s.FP].find(t=>e.startsWith(t)))})}function _(e){return(0,a.V1)({...e,route:s.yu},async e=>{e(e=>!![s.N8,s.yu,s.FP].find(t=>e.startsWith(t)))})}function C(e){return(0,a.mw)({...e,route:s.KP})}let S=(0,i.Z)(e=>e(),5e3);function O(e){return(0,a.mw)({...e,route:s.$G},async(e,t,n)=>{let{params:{hostkey:r}}=t;e(e=>e.startsWith(s.N8),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,host:{...e,interactions:{...e.interactions,lastScan:new Date().toISOString(),lastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),S(()=>{e(e=>e.startsWith(s.N8),e=>e,!0)})})}function M(e){return(0,a.Nf)({...e,route:s.FP})}function P(e){return(0,a.Nf)({...e,route:s.J9})}function A(e){return(0,a.iv)({...e,route:s.J9},async e=>{e(e=>e.startsWith(s.ft))})}function T(e){return(0,a.Nf)({...e,route:s.AJ})}function N(e){return(0,a.Nf)({...e,route:s.aq})}function R(e){return(0,a.mw)({...e,route:s.AJ},async e=>{e(e=>e.startsWith(s.AJ))})}function D(e){return(0,a.V1)({...e,route:s.mD},async e=>{e(e=>e.startsWith(s.rS))})}function L(e){return(0,a.iv)({...e,route:s.aq},async e=>{e(e=>e.startsWith(s.rS))})}function z(e){return(0,a.Nf)({...e,route:s.JK})}function F(e){return(0,a.Nf)({...e,route:s.qf})}function Z(e){return(0,a.mw)({...e,route:s.oZ})}function I(e){return(0,a.mw)({...e,route:s.c_},async e=>{e(e=>e.startsWith(s.DL))})}function V(e){return(0,a.Nf)({...e,route:s.VJ})}function B(e){return(0,a.Nf)({...e,route:s.IB})}function U(e){return(0,a.Nf)({...e,route:s.Ly})}function H(e){return(0,a.Nf)({...e,route:s.M5})}function W(e){return(0,a.Nf)({...e,route:s.cq})}function $(e){return(0,a.V1)({...e,route:s.IB},async e=>{e(e=>e.startsWith(s.IB))})}function q(e){return(0,a.V1)({...e,route:s.Ly},async e=>{e(e=>e.startsWith(s.Ly))})}function K(e){return(0,a.V1)({...e,route:s.M5},async e=>{e(e=>e.startsWith(s.M5))})}function Y(e){return(0,a.V1)({...e,route:s.cq},async e=>{e(e=>e.startsWith(s.cq))})}function G(e){return(0,a.Nf)({...e,route:s.jL})}function X(e){return(0,a.mw)({...e,route:s.ks},async e=>{e(e=>e.startsWith(s.jL))})}function J(e){return(0,a.Nf)({...e,route:s.hp})}function Q(e){return(0,a.Nf)({...e,route:s.nI})}function ee(e){return(0,a.mw)({...e,route:s.sW},async e=>{e(e=>e.startsWith(s.Wy))})}function et(e){return(0,a.mw)({...e,route:s.Pw},async e=>{e(e=>e.startsWith(s.Wy))})}function en(e){return(0,a.mw)({...e,route:s.w_},async e=>{e(e=>e.startsWith(s.Wy))})}function er(e){return(0,a.q0)({...e,route:s.CM})}function ei(e){return(0,a.Nf)({...e,route:l.Kp})}function ea(e){return(0,a.V1)({...e,route:l.Kp},async e=>{e(e=>e===l.Kp),(async()=>{await (0,a.gw)(1e3),e(e=>e===l.E)})()})}function eo(e){return(0,a.Nf)({...e,route:l.E})}function es(e){return(0,a.q0)({...e,route:l.$k})}function el(e){return(0,a.mw)({...e,route:l.sM})}let eu="/worker/object/:key";function ec(e){return(0,a.rB)({...e,route:eu})}function ed(e){var t;return(0,a.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:eu},async e=>{e(e=>e.startsWith(s.DL))})}function ef(e){var t;return(0,a.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/multipart/:key"})}function eh(e){return(0,a.mw)({...e,route:"/worker/account/:id/resetdrift"})}},67812:function(e,t,n){"use strict";n.d(t,{$k:function(){return i},E:function(){return r},Kp:function(){return o},sM:function(){return a}});let r="/autopilot/state",i="/autopilot/config/evaluate",a="/autopilot/trigger",o="/bus/autopilot"},7699:function(e,t,n){"use strict";n.d(t,{$G:function(){return w},AD:function(){return A},AF:function(){return u},AJ:function(){return L},CM:function(){return ea},DL:function(){return Z},FP:function(){return C},GV:function(){return ei},IB:function(){return W},J6:function(){return a},J9:function(){return P},JK:function(){return I},KP:function(){return _},Kr:function(){return y},Ly:function(){return $},M5:function(){return q},MF:function(){return E},MR:function(){return d},N8:function(){return b},Oj:function(){return c},PS:function(){return r},Pw:function(){return en},Sh:function(){return f},VJ:function(){return H},Wi:function(){return p},Wy:function(){return ee},Z2:function(){return T},aU:function(){return l},aq:function(){return z},cN:function(){return N},c_:function(){return B},cq:function(){return K},f0:function(){return g},fo:function(){return S},ft:function(){return M},gc:function(){return o},gl:function(){return s},go:function(){return X},hp:function(){return J},jL:function(){return Y},kP:function(){return i},ks:function(){return G},mD:function(){return F},nI:function(){return Q},nY:function(){return j},o5:function(){return eo},oZ:function(){return U},qf:function(){return V},rS:function(){return D},rg:function(){return x},sW:function(){return et},sw:function(){return O},w_:function(){return er},xg:function(){return h},yu:function(){return k},z$:function(){return R},zb:function(){return v},zk:function(){return m}});let r="/bus/state",i="/bus/consensus/network",a="/bus/consensus/state",o="/bus/consensus/acceptblock",s="/bus/syncer/peers",l="/bus/syncer/connect",u="/bus/syncer/addr",c="/bus/txpool/transactions",d="/bus/txpool/broadcast",f="/bus/txpool/recommendedfee",h="/bus/wallet",p="/bus/wallet/events",m="/bus/wallet/pending",g="/bus/wallet/redistribute",v="/bus/wallet/send",y="/bus/wallet/prepare/form",b="/bus/hosts",x="/bus/host/:hostkey",w="/bus/host/:hostkey/scan",j="/bus/hosts/:hostkey",k="/bus/hosts/blocklist",E="/bus/hosts/allowlist",_="/bus/host/:hostkey/resetlostsectors",C="/bus/contracts",S="/bus/contract/:id/acquire",O="/bus/contract/:id/release",M="/bus/contract",P="/bus/contract/:id",A="/bus/contract/:id/new",T="/bus/contract/:id/renewed",N="/bus/contract/:id/size",R="/bus/contracts/prunable",D="/bus/bucket",L="/bus/buckets",z="/bus/bucket/:name",F="/bus/bucket/:name/policy",Z="/bus/objects",I="/bus/objects/:prefix",V="/bus/object/:key",B="/bus/objects/remove",U="/bus/objects/rename",H="/bus/stats/objects",W="/bus/settings/gouging",$="/bus/settings/pinned",q="/bus/settings/s3",K="/bus/settings/upload",Y="/bus/alerts",G="/bus/alerts/dismiss",X="/bus/slab/:key/objects",J="/bus/metric/contract",Q="/bus/metric/wallet",ee="/bus/multipart",et="/bus/multipart/create",en="/bus/multipart/complete",er="/bus/multipart/abort",ei="/bus/multipart/listparts",ea="/bus/multipart/listuploads",eo="/bus/multipart/part"},65740:function(e,t,n){"use strict";n.d(t,{Li:function(){return T},YY:function(){return N},AR:function(){return A}});var r,i=n(23782),a=n(1619),o=n(92725),s=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)},l=n(1809),u=n(18787),c=n(42383),d=n(43737),f=n(60619),h=n(48465),p=n(52059),m=n(98096),g=n(58189),v=n(93151),y=n(88225),b=n(36394),x=n(93779),w=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},j=n(28363),k=n(81330),E=function(e,t,n,r,i,a,o){var l=w(e,n),E=w(t,n),_=o.get(E);if(_){s(e,n,_);return}var C=a?a(l,E,n+"",e,t,o):void 0,S=void 0===C;if(S){var O=(0,p.Z)(E),M=!O&&(0,g.Z)(E),P=!O&&!M&&(0,x.Z)(E);(C=E,O||M||P)?(0,p.Z)(l)?C=l:(0,m.Z)(l)?C=(0,d.Z)(l):M?(S=!1,C=(0,u.Z)(E,!0)):P?(S=!1,C=(0,c.Z)(E,!0)):C=[]:(0,b.Z)(E)||(0,h.Z)(E)?(C=l,(0,h.Z)(l))?C=(0,j.Z)(l,(0,k.Z)(l)):(!(0,y.Z)(l)||(0,v.Z)(l))&&(C=(0,f.Z)(E)):S=!1}S&&(o.set(E,C),i(C,E,r,a,o),o.delete(E)),s(e,n,C)},_=function e(t,n,r,a,o){t!==n&&(0,l.Z)(n,function(l,u){if(o||(o=new i.Z),(0,y.Z)(l))E(t,n,u,r,e,a,o);else{var c=a?a(w(t,u),l,u+"",t,n,o):void 0;void 0===c&&(c=l),s(t,u,c)}},k.Z)},C=n(71811),S=n(90083),O=(r=function(e,t,n){_(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,S.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:O(r.config,a.config)},s=A(n,{...r.defaultParams,...o.params}),l="data"in o?o.data:void 0;return e[t](s,l,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)))),P().create({baseURL:e,headers:n})}},31405:function(e,t,n){"use strict";n.d(t,{JL:function(){return a},BF:function(){return o}});var r=n(463);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})}},60381:function(e,t,n){"use strict";n.d(t,{B$:function(){return a},xf:function(){return s},jr:function(){return E},pp:function(){return j},x5:function(){return k},JW:function(){return o},Nk:function(){return R},Jz:function(){return en},Nr:function(){return I},gU:function(){return b},mj:function(){return ec},Lg:function(){return el},gP:function(){return d},Lu:function(){return ed},uF:function(){return es},jH:function(){return eu},uV:function(){return eo},jF:function(){return ei},hR:function(){return ee},hq:function(){return Q},uC:function(){return et},Tc:function(){return Y},aU:function(){return N},du:function(){return G},pX:function(){return J},XA:function(){return $},yt:function(){return Z},vW:function(){return m},rN:function(){return y},yF:function(){return v},Vz:function(){return p},bc:function(){return g},At:function(){return z},He:function(){return W},oK:function(){return H},sW:function(){return F},xL:function(){return B},S5:function(){return w},_6:function(){return ef},XB:function(){return K},GX:function(){return q},C4:function(){return f},qN:function(){return c},ll:function(){return u},dq:function(){return O},LK:function(){return _},ZA:function(){return A},oc:function(){return P},x9:function(){return T},qX:function(){return M},iX:function(){return S},wf:function(){return C},BL:function(){return V},mv:function(){return x},iv:function(){return U}});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 s(e){return new(i())(e).times(1e12)}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let l=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(l).toFixed(t)):new r.BigNumber(e).dividedBy(l)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(l).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),s=new r.BigNumber(1e3),l=new r.BigNumber(e),c=new r.BigNumber(e).abs(),d=l.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(s),new r.BigNumber(1)),i=c.dividedBy(o.multipliedBy(t));if(i.isLessThan(s)||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 b(e){return 144*e}function x(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 _(e){return e.times(s(1))}function C(e){return e.div(s(1))}function S(e){return C(e).div(w(1))}function O(e){return _(e).times(w(1))}function M(e,t){return e.div(t).times(w(1))}function P(e,t){let n=x(t.toNumber());return e.times(n).div(w(1))}function A(e){return e.div(1e6)}function T(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:s}=e;if(!(null==t?void 0:t.gt(0))||!(null==n?void 0:n.gt(0))||!(null==r?void 0:r.gt(0))||!(null==s?void 0:s.gt(0))||!(null==i?void 0:i.gt(0))||!(null==a?void 0:a.gt(0))||!(null==o?void 0:o.gt(0)))return;let l=i.times(s),u=o.times(s);return l.times(t).plus(a.times(n)).plus(u.times(r))}var D=n(81395),L=n(22814);function z(e){return 76===e.length&&function(e){var t;let n=function(e){let t=[];for(let n=0;n0?"storageProof":n.fileContracts&&n.fileContracts.length>0&&n.fileContractRevisions&&n.fileContractRevisions.length>0?"contractRenewal":n.fileContractRevisions&&n.fileContractRevisions.length>0?"contractRevision":n.fileContracts&&n.fileContracts.length>0?"contractFormation":n.arbitraryData&&n.arbitraryData.length>0&&0===atob(n.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":n.siafundOutputs&&n.siafundOutputs.length>0?"siafund":n.siacoinOutputs&&n.siacoinOutputs.length>0?"siacoin":"unknown"}return"v2Transaction"===t?function(e){var t;if(e.fileContractResolutions&&e.fileContractResolutions.length>0)return({expiration:"contractExpiration",finalization:"contractFinalization",renewal:"contractRenewal","storage proof":"storageProof"})[e.fileContractResolutions[0].resolution.type];if(e.fileContractRevisions&&e.fileContractRevisions.length>0)return"contractRevision";if(e.fileContracts&&e.fileContracts.length>0)return"contractFormation";let n=null===(t=e.attestations)||void 0===t?void 0:t.filter(e=>"HostAnnouncement"===e.key);return n&&n.length>0?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":"unknown"}(e.data):"v1ContractResolution"===t||"v2ContractResolution"===t?"contractPayout":"miner"===t?"minerPayout":"foundation"===t?"foundationSubsidy":t}function en(e){return"v2Transaction"===e.type?(e.data.siacoinOutputs||[]).reduce((t,n)=>e.relevant.includes(n.address)?t.plus(n.value):t,new(i())(0)).minus((e.data.siacoinInputs||[]).reduce((t,n)=>e.relevant.includes(n.parent.siacoinOutput.address)?t.plus(n.parent.siacoinOutput.value):t,new(i())(0))):"v1Transaction"===e.type?(e.data.transaction.siacoinOutputs||[]).reduce((t,n)=>e.relevant.includes(n.address)?t.plus(n.value):t,new(i())(0)).minus((e.data.spentSiacoinElements||[]).reduce((t,n)=>e.relevant.includes(n.siacoinOutput.address)?t.plus(n.siacoinOutput.value):t,new(i())(0))):new(i())(e.data.siacoinElement.siacoinOutput.value)}let er={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function ei(e){return e?er[e]:void 0}let ea={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 eo(e){return e?ea[e]:void 0}function es(e){return e&&["ip","hostIp"].includes(e)?20:12}function el(e){return e&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(e)}function eu(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 ec(e,t){return"".concat(null==e?void 0:e.slice(0,t)).concat(((null==e?void 0:e.length)||0)>t?"...":"")}function ed(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 ec(t,n)}function ef(e,t,n){let r="1 ".concat(t),i="".concat(t,"s"),a="";"string"==typeof n&&(i=n),"object"==typeof n&&(n.plural&&(i=n.plural),n.customZero&&(a=n.customZero));let o="".concat(e.toLocaleString()," ").concat(i);return 0===e?a||o:1===e?r:o}},70095: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}})},4895: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}})},4254: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}})},91048:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(4895),i=n(49435),a=n(54042),o=n(1473);function s(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 l(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=s(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=s(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var u=n(4254);function c(e,t){(0,r.Z)(1,arguments);var n=t||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,s=null==o?0:(0,u.Z)(o),l=null==n.weekStartsOn?s:(0,u.Z)(n.weekStartsOn);if(!(l>=0&&l<=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)},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(l(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),s=null==n.firstWeekContainsDate?o:(0,u.Z)(n.firstWeekContainsDate),l=d(e,t),f=new Date(0);return f.setUTCFullYear(l,0,s),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((s(t).getTime()-(function(e){(0,r.Z)(1,arguments);var t=l(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),s(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 b(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 x(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:x,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return b(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}}",b(i,t)).replace("{{time}}",x(a,t))}},j=n(70095),k=["D","DD"],E=["YY","YYYY"];function _(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,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O=/^'([^]*?)'?$/,M=/''/g,P=/[a-zA-Z]/;function A(e,t,n){(0,r.Z)(2,arguments);var s=String(t),l=n||{},c=l.locale||a.Z,d=c.options&&c.options.firstWeekContainsDate,f=null==d?1:(0,u.Z)(d),h=null==l.firstWeekContainsDate?f:(0,u.Z)(l.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==l.weekStartsOn?m:(0,u.Z)(l.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 b=(0,j.Z)(v),x=(0,o.Z)(v,b),A={firstWeekContainsDate:h,weekStartsOn:g,locale:c,_originalDate:v};return s.match(S).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,A):e}).join("").match(C).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(O)[1].replace(M,"'");var i=y[r];if(i)return l.useAdditionalWeekYearTokens||-1===E.indexOf(n)||_(n,t,e),l.useAdditionalDayOfYearTokens||-1===k.indexOf(n)||_(n,t,e),i(x,n,c.localize,A);if(r.match(P))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},96647:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(49435),i=n(4895);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)}},s=n(54042),l=n(70095);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=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,s=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)(s)}(u,n),g=Math.round((m-((0,l.Z)(u)-(0,l.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),s=(0,r.Z)(t),l=a(o,s),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,s));if(u<1)n=0;else{1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-l*u);var c=a(o,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===a(e,s)&&(c=!1),n=l*(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)}},22836:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(70095),i=n(49435),a=n(4895);function o(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}var s=n(91048),l=n(54042),u=n(1473);function c(e,t,n){(0,a.Z)(2,arguments);var c,d=(0,i.Z)(e),f=(0,i.Z)(t),h=n||{},p=h.locale,m=void 0===p?l.Z:p,g=h.weekStartsOn,v=void 0===g?0:g;if(!m.localize)throw RangeError("locale must contain localize property");if(!m.formatLong)throw RangeError("locale must contain formatLong property");if(!m.formatRelative)throw RangeError("locale must contain formatRelative property");var y=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)}(d,f);if(isNaN(y))throw RangeError("Invalid time value");c=y<-6?"other":y<-1?"lastWeek":y<0?"yesterday":y<1?"today":y<2?"tomorrow":y<7?"nextWeek":"other";var b=(0,u.Z)(d,(0,r.Z)(d)),x=(0,u.Z)(f,(0,r.Z)(f)),w=m.formatRelative(c,b,x,{locale:m,weekStartsOn:v});return(0,s.Z)(d,w,{locale:m,weekStartsOn:v})}},54042: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"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var s=o[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:o,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],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}}},1473:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4254),i=n(49435),a=n(4895);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))}},49435:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4895);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))}},74669: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(80465).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)},4437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(74669);("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)},80465: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)},42642: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 l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let r=n(2784),i=n(47640),a=n(30154),o=n(30454),s=n(70166),l=n(32374),u=n(33843);function c(){let e=(0,r.useContext)(a.SearchParamsContext);return(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,r.useContext)(a.PathnameContext)}function f(){let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function h(){return(0,r.useContext)(a.PathParamsContext)}function p(e){void 0===e&&(e="children");let t=(0,r.useContext)(i.LayoutRouterContext);return t?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 l;let e=t[1];a=null!=(l=e.children)?l:Object.values(e)[0]}if(!a)return i;let u=a[0],c=(0,o.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(c),e(a,n,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=p(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===s.DEFAULT_SEGMENT_KEY?null: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)},32374: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 o},RedirectType:function(){return r.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(23825),i=n(17356);class a extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class o extends URLSearchParams{append(){throw new a}delete(){throw new a}set(){throw new a}sort(){throw new a}}("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)},17356: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,{isNotFoundError:function(){return i},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&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)},19228: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)},23825: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},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return c}});let a=n(98512),o=n(4437),s=n(19228),l="NEXT_REDIRECT";function u(e,t,n){void 0===n&&(n=s.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+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)?s.RedirectStatusCode.SeeOther:s.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)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,i]=e.digest.split(";",4),a=Number(i);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(a)&&a in s.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)},12516: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(80465).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)},98512: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,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(12516);function i(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("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)},30454: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)},19745:function(e,t){"use strict";var n,r,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return h}});let o="refresh",s="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function h(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=r||(r={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("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)},12394: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(14079),("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)},22657:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(43219),i=n(16794),a=n(52322),o=i._(n(2784)),s=r._(n(28316)),l=r._(n(68792)),u=n(25123),c=n(96648),d=n(41897);n(71388);let f=n(24698),h=r._(n(59553)),p={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 m(e,t,n,r,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("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 g(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:v,fill:y,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:E,onError:_,...C}=e;return(0,a.jsx)("img",{...C,...g(f),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(_&&(e.src=e.src),e.complete&&m(e,h,b,x,w,v,k))},[n,h,b,x,w,_,v,k,t]),onLoad:e=>{m(e.currentTarget,h,b,x,w,v,k)},onError:e=>{j(!0),"empty"!==h&&w(!0),_&&_(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(f.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||r||c.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:s,onLoadingComplete:l}=e,m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[b,x]=(0,o.useState)(!1),[w,j]=(0,o.useState)(!1),{props:k,meta:E}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:b,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{...k,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:j,sizesInput:e.sizes,ref:t}),E.priority?(0,a.jsx)(y,{isAppRouter:!n,imgAttributes:k}):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)},14470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(43219),i=n(52322),a=r._(n(2784)),o=n(40706),s=n(90345),l=n(8985),u=n(70286),c=n(95549),d=n(24698),f=n(47640),h=n(34407),p=n(12394),m=n(70558),g=n(19745),v=new Set;function y(e,t,n,r,i,a){if(a||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:x,prefetch:w=null,passHref:j,replace:k,shallow:E,scroll:_,locale:C,onClick:S,onMouseEnter:O,onTouchStart:M,legacyBehavior:P=!1,...A}=e;n=x,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let T=a.default.useContext(d.RouterContext),N=a.default.useContext(f.AppRouterContext),R=null!=T?T:N,D=!T,L=!1!==w,z=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:Z}=a.default.useMemo(()=>{if(!T){let e=b(l);return{href:e,as:v?b(v):e}}let[e,t]=(0,o.resolveHref)(T,l,!0);return{href:e,as:v?(0,o.resolveHref)(T,v):t||e}},[T,l,v]),I=a.default.useRef(F),V=a.default.useRef(Z);P&&(r=a.default.Children.only(n));let B=P?r&&"object"==typeof r&&r.ref:t,[U,H,W]=(0,h.useIntersection)({rootMargin:"200px"}),$=a.default.useCallback(e=>{(V.current!==Z||I.current!==F)&&(W(),V.current=Z,I.current=F),U(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[Z,B,F,W,U]);a.default.useEffect(()=>{R&&H&&L&&y(R,F,Z,{locale:C},{kind:z},D)},[Z,F,H,C,L,null==T?void 0:T.locale,R,D,z]);let q={ref:$,onClick(e){P||"function"!=typeof S||S(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,n,r,i,o,l,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,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:u,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?a.default.startTransition(f):f()}(e,R,F,Z,k,E,_,C,D)},onMouseEnter(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&(L||!D)&&y(R,F,Z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:z},D)},onTouchStart:function(e){P||"function"!=typeof M||M(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&(L||!D)&&y(R,F,Z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:z},D)}};if((0,u.isAbsoluteUrl)(Z))q.href=Z;else if(!P||j||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(Z,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)(Z,e,null==T?void 0:T.defaultLocale))}return P?a.default.cloneElement(r,q):(0,i.jsx)("a",{...A,...q,children: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)},34407:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(41346),a="function"==typeof IntersectionObserver,o=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!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=s.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},s.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=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}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)},72392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},noSSR:function(){return o}});let r=n(43219);n(52322),n(2784);let i=r._(n(23711));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 s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().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)},25123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(71388);let r=n(74999),i=n(96648);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 s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:g,width:v,height:y,fill:b=!1,style:x,overrideSrc:w,onLoad:j,onLoadingComplete:k,placeholder:E="empty",blurDataURL:_,fetchPriority:C,layout:S,objectFit:O,objectPosition:M,lazyBoundary:P,lazyRoot:A,...T}=e,{imgConf:N,showAltText:R,blurComplete:D,defaultLoader:L}=t,z=N||i.imageConfigDefault;if("allSizes"in z)s=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t);s={...z,allSizes:e,deviceSizes:t}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let F=T.loader||L;delete T.loader,delete T.srcSet;let Z="__next_img_default"in F;if(Z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[S];t&&!d&&(d=t)}let I="",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(l=e.blurWidth,u=e.blurHeight,_=_||e.blurDataURL,I=e.src,!b){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 U=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:I)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,U=!1),s.unoptimized&&(f=!0),Z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(C="high");let H=o(g),W=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:M}:{},R?{}:{color:"transparent"},x),$=D||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:B,blurWidth:l,blurHeight:u,blurDataURL:_||"",objectFit:W.objectFit})+'")':'url("'+E+'")',q=$?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:$}:{},K=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:a,sizes:o,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}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=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:a,width:l[c]})}}({config:s,src:c,unoptimized:f,width:V,quality:H,sizes:d,loader:F});return{props:{...T,loading:U?"lazy":p,fetchPriority:C,width:V,height:B,decoding:"async",className:m,style:{...W,...q},sizes:K.sizes,srcSet:K.srcSet,src:w||K.src},meta:{unoptimized:f,priority:h,placeholder:E,fill:b}}}},74999:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===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}})},5329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(43219),i=n(25123),a=n(22657),o=r._(n(59553));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.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}}let l=a.Image},59553: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},79195: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)},23711: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(79195),a=[],o=[],s=!1;function l(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 l(){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(!s){let e=n.webpack?n.webpack():n.modules;e&&o.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();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=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,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=()=>(s=!0,t());d(o,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},33843: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)}},21962:function(){},17282:function(e){e.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},29773: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 s(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 l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(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 l.get(e)||l.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=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=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,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;a>>i&1)==1),o.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new a,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),l=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^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 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 A(e){return null!=e}function T(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($($({},o),{},{open:a})))});Y.displayName="Dropzone";var G={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 l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,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 l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children: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 X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$($({},G),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,k=t.autoFocus,E=t.preventDropOnDocument,_=t.noClick,C=t.noKeyboard,S=t.noDrag,F=t.noDragEventsBubbling,Z=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||z(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(z)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof 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=B((0,r.useReducer)(Q,X),2),eo=ea[0],es=ea[1],el=eo.isFocused,eu=eo.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&k&&er.current&&er.current.focus(),function(){}},[er,k,i]);var ep=(0,r.useCallback)(function(e){Z?Z(e):console.error(e)},[Z]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return H(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||U(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(!T(e)||F){var n,r,i,a,d,f,h,p,m=t.length,g=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:o,multiple:l,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(M(e,i),1)[0],n=j(P(e,a,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[a,c,ep,F,Y,s,o,l,u,W]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,F]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,F]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],a=t[1],l=B(P(e,s,o),2),u=l[0],c=l[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})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,o,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(a(e)).then(function(t){(!T(e)||F)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[a,ey,ep,F]),ex=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return a(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,J,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[er,ex]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),ek=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.useCallback)(function(){_||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ex,0):ex())},[_,ex]),e_=function(e){return i?null:e},eC=function(e){return C?null:e_(e)},eS=function(e){return S?null:e_(e)},eO=function(e){F&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,a=e.onFocus,o=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=K(e,I);return $($(q({onKeyDown:eC(D(r,ew)),onFocus:eC(D(a,ej)),onBlur:eC(D(o,ek)),onClick:e_(D(s,eE)),onDragEnter:eS(D(l,em)),onDragOver:eS(D(u,eg)),onDragLeave:eS(D(c,ev)),onDrop:eS(D(d,eb)),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,eb,C,S,i]),eP=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=K(e,V);return $($({},q({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:e_(D(n,eb)),onClick:e_(D(r,eP)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,l,eb,i]);return $($({},eo),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:e_(ex)})}function Q(e,t){switch(t.type){case"focus":return $($({},e),{},{isFocused:!0});case"blur":return $($({},e),{},{isFocused:!1});case"openDialog":return $($({},X),{},{isFileDialogActive:!0});case"closeDialog":return $($({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return $($({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return $($({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return $({},X);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,u,c=t(a),d=t(o);if(c&&d){if((l=a.length)!=o.length)return!1;for(s=l;0!=s--;)if(!e(a[s],o[s]))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((l=g.length)!==n(o).length)return!1;for(s=l;0!=s--;)if(!r.call(o,g[s]))return!1;if(i&&a instanceof Element&&o instanceof Element)return a===o;for(s=l;0!=s--;)if(("_owner"!==(u=g[s])||!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},s=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]+")"})};s.propTypes=o,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return a.default.createElement("svg",r({},s,{height:n,width:n,xmlns:o}),i?a.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,a.default[o]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var a=Math.round(i*m),o=Math.round(r*m),s=Math.round((i+1)*m)-a,c=Math.round((r+1)*m)-o;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:a,transformY:o})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},95346:function(e,t,n){"use strict";n.d(t,{Av:function(){return o},pF:function(){return r},xv:function(){return a},zi:function(){return i}});var r="right-scroll-bar-position",i="width-before-scroll-bar",a="with-scroll-bars-hidden",o="--removed-body-scroll-bar-size"},181:function(e,t,n){"use strict";n.d(t,{jp:function(){return m}});var r=n(2784),i=n(33225),a=n(95346),o={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=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[s(n),s(r),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return o;var t=l(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])}},c=(0,i.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat(a.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(d,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"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(a.pF," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(a.zi," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(a.pF," .").concat(a.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a.zi," .").concat(a.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(a.Av,": ").concat(l,"px;\n }\n")},h=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},p=function(){r.useEffect(function(){return document.body.setAttribute(d,(h()+1).toString()),function(){var e=h()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},m=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=void 0===i?"margin":i;p();var o=r.useMemo(function(){return u(a)},[a]);return r.createElement(c,{styles:f(o,!t,a,n?"":"!important")})}},33225:function(e,t,n){"use strict";n.d(t,{Ws:function(){return s}});var r,i=n(2784),a=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o=function(){var e=a();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},s=function(){var e=o();return function(t){return e(t.styles,t.dynamic),null}}},32718:function(e,t,n){var r,i=n(58085),a=n(41964),o=n(53207),s=/(\+|\-|\*|\\|[^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,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(a+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,a="",o=t;r=s.exec(o);){r[0].index>0&&(a+=o.substring(0,r[0].index));var l=i("(",")",o.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);a+=l.pre+u,o=l.post}return a+o}(n,l));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,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],a=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[a,o])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var 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],s=a.index,l=r("(",")",e.substring(s));if(!l||l.start!==a[0].length-1)throw SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:o}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,a){var o,s;return r.replace(a.functionIdentifier+"("+a.matches.body+")",(o=a.matches.body,s=a.functionIdentifier,i(e(o,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>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:()=>l,default:()=>u});let a=(r=n(24470))&&r.__esModule?r:{default:r},o=new Set;function s(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 l(e){return a.default.dim(e)}let u={info(e,t){s(a.default.bold(a.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(a.default.bold(a.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(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 s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var i=Date.now();if(r(i))return y(i);if(f.current){var s=t-(i-a.current);n(e,g?Math.min(s,v-(i-o.current)):s)}},x=function(){var d=Date.now(),h=r(d);if(l.current=[].slice.call(arguments),u.current=i,a.current=d,h){if(!s.current&&f.current)return o.current=a.current,n(b,t),p?e(a.current):c.current;if(g)return n(b,t),e(a.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),o.current=0,l.current=a.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,g,t,v,m,h])}((0,r.useCallback)(function(e){return d(e)},[d]),t,n),h=(0,r.useRef)(e);return l(h.current,e)||(f(e),h.current=e),[c,f]}},92762:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);let i=new Map,a=new Set;function o(e){for(let t of[...a])t(e)}function s(e){try{return e()}catch(e){return}}var l=function(e,t){if(void 0===r.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[n]=(0,r.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[n,()=>{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return a.add(n),()=>{a.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}o(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>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(){s(()=>localStorage.removeItem(e)),i.delete(e),o(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},57758:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(22970),i=n(2784),a=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error("Sidecar medium not found");return i.createElement(a,(0,r.pi)({},n))};function o(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},64597:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(22970);function i(e){return e}function a(e){void 0===e&&(e={});var t,n,a,o=(void 0===t&&(t=i),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,r.pi)({async:!0,ssr:!1},e),o}},20452:function(e,t,n){"use strict";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,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return X},Ry:function(){return ey},Z_:function(){return K}});try{y=Map}catch(e){}try{b=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(b&&t instanceof b)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 s=n.findIndex(function(e){return e===t[o]});a[o]=s>-1?i[s]:e(t[o],n,i)}return a}return t}(e,[],[])}let i=Object.prototype.toString,a=Error.prototype.toString,o=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+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,b,x=n(93352),w=n.n(x),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 _(){return(_=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let O=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function M(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:s,path:l}=e,u=O(t),c=r.length,d=[];if(o=o||[],!c)return o.length?u(new S(o,a,l)):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}=s;function v(e){return R.isRef(e)?e.getValue(i,m,g):e}function y(e={}){let t=A()(D({value:i,originalValue:l,label:o,path:e.path||a},h,e.params),v),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=D({path:a,parent:m,type:d,createError:y,resolve:v,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}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:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,Z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue: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),M({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);M({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(Z({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(Z({},t,{value:e}))._validate(e,Z({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=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(I.prototype.__isYupSchema__=!0,["validate","validateSync"]))I.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,T.forEach)(t,(s,l,u)=>{let c=l?z(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}a=c,o=l?"["+s+"]":"."+s}),{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"])I.prototype[e]=I.prototype.oneOf;for(let e of["not","nope"])I.prototype[e]=I.prototype.notOneOf;I.prototype.optional=I.prototype.notRequired,I.prototype;var B=e=>null==e;class V extends I{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})}}V.prototype;let U=/^((([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,H=/^((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,$=e=>B(e)||e===e.trim(),q=({}).toString();function K(){return new Y}class Y extends I{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===q?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(U,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(H,{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:$})}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 G=e=>e!=+e;function X(){return new J}class J extends I{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&&!G(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))}}X.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 I{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),es=n.n(eo),el=n(19950),eu=n.n(el),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 I{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))),s={},l=ep({},t,{parent:s,__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];l.path=(t.path?`${t.path}.`:"")+e;let o="spec"in(n=n.resolve({value:a,context:t.context,parent:s}))?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],l))&&(s[e]=i)}else o&&!a&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:s=this.spec.abortEarly,recursive:l=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(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!em(u)){n(r[0]||null,u);return}o=o||u,M({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ep({},t,{path:i,from:a,strict:!0,parent:u,originalValue:o[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=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 I&&t instanceof I&&(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,T.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,T.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(es())}snakeCase(){return this.transformKeys(ea())}constantCase(){return this.transformKeys(e=>ea()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=A()(this.fields,e=>e.describe()),e}}function ey(e){return new ev(e)}function eb(){return(eb=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,eb({},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,s=t.path,l=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(!S.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!l||!this._typeCheck(r)){n(a[0]||null,r);return}d=d||r;let i=Array(r.length);for(let e=0;el.validate(n,o,t)}M({sync:o,path:s,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)}}ex.prototype},44868:function(e,t,n){"use strict";let r,i,a;var o=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{Animated:()=>x,AnimatedArray:()=>M,AnimatedObject:()=>O,AnimatedString:()=>E,AnimatedValue:()=>j,createHost:()=>I,getAnimated:()=>v,getAnimatedType:()=>T,getPayload:()=>b,isAnimated:()=>g,setAnimated:()=>y}),e.exports=f(s({},"__esModule",{value:!0}),h);var p=n(6901),m=Symbol.for("Animated:node"),g=e=>!!e&&e[m]===e,v=e=>e&&e[m],y=(e,t)=>(0,p.defineHidden)(e,m,t),b=e=>e&&e[m]&&e[m].getPayload(),x=class{constructor(){y(this,this)}getPayload(){return this.payload||[]}},w=n(6901),j=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,w.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new j(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return w.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,w.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},k=n(6901),E=class extends j{constructor(e){super(0),this._string=null,this._toString=(0,k.createInterpolator)({output:[e,e]})}static create(e){return new E(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(k.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,k.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},_=n(6901),C=n(6901),S={dependencies:null},O=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,C.eachProp)(this.source,(n,r)=>{g(n)?t[r]=n.getValue(e):(0,C.hasFluidValue)(n)?t[r]=(0,C.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,C.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,C.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){S.dependencies&&(0,C.hasFluidValue)(e)&&S.dependencies.add(e);let t=b(e);t&&(0,C.each)(t,e=>this.add(e))}},M=class extends O{constructor(e){super(e)}static create(e){return new M(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(P)),!0)}};function P(e){return((0,_.isAnimatedString)(e)?E:j).create(e)}var A=n(6901);function T(e){let t=v(e);return t?t.constructor:A.is.arr(e)?M:(0,A.isAnimatedString)(e)?E:j}var N=n(6901),R=(a=null!=(r=n(2784))?o(c(r)):{},f(!i&&r&&r.__esModule?a:s(a,"default",{value:r,enumerable:!0}),r)),D=n(2784),L=n(6901),z=(e,t)=>{let n=!L.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,D.forwardRef)((r,i)=>{var a;let o;let s=(0,D.useRef)(null),l=n&&(0,D.useCallback)(e=>{s.current=(i&&(L.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(a=r,o=new Set,S.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new O(a),S.dependencies=null,[a,o]),d=(0,L.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,D.useRef)();(0,L.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,L.each)(c,e=>(0,L.addFluidObserver)(e,h)),()=>{p.current&&((0,L.each)(p.current.deps,e=>(0,L.removeFluidObserver)(e,p.current)),L.raf.cancel(p.current.update))})),(0,D.useEffect)(f,[]),(0,L.useOnce)(()=>()=>{let e=p.current;(0,L.each)(e.deps,t=>(0,L.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return R.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&L.raf.write(this.update)}},Z=Symbol.for("AnimatedComponent"),I=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=B(e)||"Anonymous";return(e=N.is.str(e)?a[e]||(a[e]=z(e,i)):e[Z]||(e[Z]=z(e,i))).displayName=`Animated(${t})`,e};return(0,N.eachProp)(e,(t,n)=>{N.is.arr(e)&&(n=B(t)),a[n]=a(t)}),{animated:a}},B=e=>N.is.str(e)?e:e&&N.is.str(e.displayName)?e.displayName:N.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";let r,i;var a,o=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?o(c(e)):{},f(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),p={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(p,{BailSignal:()=>Q,Controller:()=>ek,FrameValue:()=>ea,Globals:()=>tu.Globals,Interpolation:()=>tr,Spring:()=>e6,SpringContext:()=>eR,SpringRef:()=>ez,SpringValue:()=>ef,Trail:()=>e7,Transition:()=>e9,config:()=>F,createInterpolator:()=>td.createInterpolator,easings:()=>td.easings,inferTo:()=>_,interpolate:()=>tl,to:()=>ts,update:()=>tc,useChain:()=>A,useInView:()=>e5,useIsomorphicLayoutEffect:()=>td.useIsomorphicLayoutEffect,useReducedMotion:()=>td.useReducedMotion,useResize:()=>e1,useScroll:()=>eQ,useSpring:()=>eZ,useSpringRef:()=>eV,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>e$,useTransition:()=>eG}),e.exports=f(s({},"__esModule",{value:!0}),p);var m=n(6901),g=n(6901);function v(e,...t){return g.is.fun(e)?e(...t):e}var y=(e,t)=>!0===e||!!(t&&e&&(g.is.fun(e)?e(t):(0,g.toArray)(e).includes(t))),b=(e,t)=>g.is.obj(e)?t&&e[t]:e,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,w=e=>e,j=(e,t=w)=>{let n=k;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);g.is.und(n)||(r[i]=n)}return r},k=["config","onProps","onStart","onChange","onPause","onResume","onRest"],E={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){let t=function(e){let t={},n=0;if((0,g.eachProp)(e,(e,r)=>{E[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,g.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function C(e){return e=(0,g.getFluidValue)(e),g.is.arr(e)?e.map(C):(0,g.isAnimatedString)(e)?g.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function S(e){for(let t in e)return!0;return!1}function O(e){return g.is.fun(e)||g.is.arr(e)&&g.is.obj(e[0])}function M(e,t){e.ref?.delete(e),t?.delete(e)}function P(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function A(e,t,n=1e3){(0,m.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,m.each)(e,(e,i)=>{let a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,m.each)(a,e=>{(0,m.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,m.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,m.each)(n,(e,t)=>(0,m.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var T=n(6901),N=n(2784),R=n(6901),D=n(6901),L=n(25447),z=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Z={...F.default,mass:1,damping:1,easing:z.easings.linear,clamp:!1},I=class{constructor(){this.velocity=0,Object.assign(this,Z)}};function B(e,t){if(z.is.und(t.decay)){let n=!z.is.und(t.tension)||!z.is.und(t.friction);!n&&z.is.und(t.frequency)&&z.is.und(t.damping)&&z.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var V=[],U=class{constructor(){this.changed=!1,this.values=V,this.toValues=null,this.fromValues=V,this.config=new I,this.immediate=!1}},H=n(6901);function W(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u,c=y(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=y(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||y(e,t)),l=v(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(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var $=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?K(e.get()):Y(e.get(),t.every(e=>e.finished)),K=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function X(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=j(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let a=new Q,o=new ee;return(async()=>{if($.Globals.skipAnimation)throw J(n),o.result=Y(r,!1),d(o),o;h(a);let s=$.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,$.eachProp)(u,(e,t)=>{$.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if($.Globals.skipAnimation)return J(n),Y(r,!1);try{let t;t=$.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=Y(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof ee)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return $.is.fun(o)&&$.raf.batchedUpdates(()=>{o(m,r,r.item)}),m})():l}function J(e,t){(0,$.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ee=class extends Error{constructor(){super("SkipAnimationSignal")}},et=n(6901),en=n(25447),er=e=>e instanceof ea,ei=1,ea=class extends et.FluidValue{constructor(){super(...arguments),this.id=ei++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,en.getAnimated)(this);return e&&e.getValue()}to(...e){return et.Globals.to(this,e)}interpolate(...e){return(0,et.deprecateInterpolate)(),et.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,et.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||et.frameLoop.sort(this),(0,et.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),es=e=>(1&e[eo])>0,el=e=>(2&e[eo])>0,eu=e=>(4&e[eo])>0,ec=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ed=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ef=class extends ea{constructor(e,t){if(super(),this.animation=new U,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,!D.is.und(e)||!D.is.und(t)){let n=D.is.obj(e)?{...e}:{...t,from:e};D.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(el(this)||this._state.asyncTo)||eu(this)}get goal(){return(0,D.getFluidValue)(this.animation.to)}get velocity(){let e=(0,L.getAnimated)(this);return e instanceof L.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return es(this)}get isAnimating(){return el(this)}get isPaused(){return eu(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,L.getPayload)(r.to);!o&&(0,D.hasFluidValue)(r.to)&&(i=(0,D.toArray)((0,D.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==L.AnimatedString?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=D.is.arr(a.velocity)?a.velocity[l]:a.velocity,o,f=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(D.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(s.lastPosition-d)<=f,o=i*r}else{o=null==s.lastVelocity?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!D.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(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,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),o=((d=n+a.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=(0,L.getAnimated)(this),l=s.getValue();if(t){let e=(0,D.getFluidValue)(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return D.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;D.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 D.is.und(e)?(n=this.queue||[],this.queue=[]):n=[D.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()),J(this._state,e&&this._lastCallId),D.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=D.is.obj(n)?n[t]:n)||O(n))&&(n=void 0),null==(r=D.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return es(this)||(e.reverse&&([n,r]=[r,n]),r=(0,D.getFluidValue)(r),D.is.und(r)?(0,L.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,j(e,(e,t)=>/^on/.test(t)?b(e,n):e)),ey(this,e,"onProps"),eb(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 W(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{eu(this)||(ed(this,!0),(0,D.flushCalls)(a.pauseQueue),eb(this,"onPause",Y(this,eh(this,this.animation.to)),this))},resume:()=>{eu(this)&&(ed(this,!1),el(this)&&this._resume(),(0,D.flushCalls)(a.resumeQueue),eb(this,"onResume",Y(this,eh(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=ep(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(G(this));let r=!D.is.und(e.to),i=!D.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||D.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,D.isEqual)(d,u);f&&(s.from=d),d=(0,D.getFluidValue)(d);let h=!(0,D.isEqual)(c,l);h&&this._focus(c);let p=O(t.to),{config:m}=s,{decay:g,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(B(n={...n},t),t={...n,...t}),B(e,t),Object.assign(e,t),Z)null==e[r]&&(e[r]=Z[r]);let{frequency:r,damping:i}=e,{mass:a}=e;z.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,v(t.config,a),t.config!==o.config?v(o.config,a):void 0);let x=(0,L.getAnimated)(this);if(!x||D.is.und(c))return n(Y(this,!0));let w=D.is.und(t.reset)?i&&!t.default:!D.is.und(d)&&y(t.reset,a),j=w?d:this.get(),k=C(c),E=D.is.num(k)||D.is.arr(k)||(0,D.isAnimatedString)(k),_=!p&&(!E||y(o.immediate||t.immediate,a));if(h){let e=(0,L.getAnimatedType)(c);if(e!==x.constructor){if(_)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let S=x.constructor,M=(0,D.hasFluidValue)(c),P=!1;if(!M){let e=w||!es(this)&&f;(h||e)&&(M=!(P=(0,D.isEqual)(C(j),k))),((0,D.isEqual)(s.immediate,_)||_)&&(0,D.isEqual)(m.decay,g)&&(0,D.isEqual)(m.velocity,b)||(M=!0)}if(P&&el(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,D.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,D.hasFluidValue)(c)?null:S==L.AnimatedString?[1]:(0,D.toArray)(k)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,D.each)(ev,e=>ey(this,t,e));let r=Y(this,eh(this,l));(0,D.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&D.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(o.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(X(t.to,t,this._state,this)):M?this._start():el(this)&&!h?this._pendingCalls.add(n):n(K(j))}_focus(e){let t=this.animation;e!==t.to&&((0,D.getFluidObservers)(this)&&this._detach(),t.to=e,(0,D.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,D.hasFluidValue)(t)&&((0,D.addFluidObserver)(t,this),er(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,D.hasFluidValue)(e)&&(0,D.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,D.getFluidValue)(e);if(!D.is.und(n)){let e=(0,L.getAnimated)(this);if(!e||!(0,D.isEqual)(n,e.getValue())){let r=(0,L.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,L.setAnimated)(this,r.create(n)),e&&D.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,L.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,eb(this,"onStart",Y(this,eh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,L.getAnimated)(this).reset((0,D.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),el(this)||(ec(this,!0),eu(this)||this._resume())}_resume(){D.Globals.skipAnimation?this.finish():D.frameLoop.start(this)}_stop(e,t){if(el(this)){ec(this,!1);let n=this.animation;(0,D.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,D.callFluidObservers)(this,{type:"idle",parent:this});let r=t?G(this.get()):Y(this.get(),eh(this,e??n.to));(0,D.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,eb(this,"onRest",r,this))}}};function eh(e,t){let n=C(t),r=C(e.get());return(0,D.isEqual)(r,n)}function ep(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&_(r),a=(i||e).reverse,o=!i||i.reset;return em({...e,loop:t,default:!1,pause:void 0,to:!a||O(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function em(e){let{to:t,from:n}=e=_(e),r=new Set;return D.is.obj(t)&&eg(t,r),D.is.obj(n)&&eg(n,r),e.keys=r.size?Array.from(r):null,e}function eg(e,t){(0,D.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function ey(e,t,n){e.animation[n]=t[n]!==x(t,n)?b(t[n],e.key):void 0}function eb(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),ew=["onStart","onChange","onRest"],ej=1,ek=class{constructor(e,t){this.id=ej++,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(em(e)),this}start(e){let{queue:t}=this;return e?t=(0,ex.toArray)(e).map(em):this.queue=[],this._flush?this._flush(this,t):(eP(this,t),eE(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 J(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 eE(e,t){return Promise.all(t.map(t=>e_(e,t))).then(t=>q(e,t))}async function e_(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=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)(ew,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(W(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(J(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(X(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=ep(t,o,i);if(n)return eP(e,[n]),e_(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eC(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=em(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eM(n,e,e=>eO(e))}),eS(e,n),n}function eS(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eO(e,t){let n=new ef;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eM(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eP(e,t){(0,ex.each)(t,t=>{eM(e.springs,t,t=>eO(t,e))})}var eA=h(n(2784)),eT=n(2784),eN=n(6901),eR=({children:e,...t})=>{let n=(0,eT.useContext)(eD),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eN.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eD;return eA.createElement(a,{value:t},e)},eD=(a={},Object.assign(eR,eA.createContext(a)),eR.Provider._context=eR,eR.Consumer._context=eR,eR);eR.Provider=eD.Provider,eR.Consumer=eD.Consumer;var eL=n(6901),ez=()=>{let e=[],t=function(t){(0,eL.deprecateDirectCall)();let r=[];return(0,eL.each)(e,(e,i)=>{if(eL.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,eL.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eL.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eL.each)(e,(e,n)=>{let r=eL.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eL.each)(e,(e,r)=>{if(eL.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,eL.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eL.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eL.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=R.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,N.useMemo)(()=>r||3==arguments.length?ez():void 0,[]),a=(0,N.useRef)(0),o=(0,R.useForceUpdate)(),s=(0,N.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eC(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eS(e,n),s.queue.push(()=>{r(eE(e,t))}),o()}):eE(e,t)}}),[]),l=(0,N.useRef)([...s.ctrls]),u=[],c=(0,R.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,R.each)(l.current.slice(e,c),e=>{M(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,N.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eC(e,u[t])),h=(0,N.useContext)(eR),p=(0,R.usePrev)(h),m=h!==p&&S(h);(0,R.useIsomorphicLayoutEffect)(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,R.each)(e,e=>e())),(0,R.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(P(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,R.useOnce)(()=>()=>{(0,R.each)(s.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}function eZ(e,t){let n=T.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eI=n(2784),eB=()=>ez(),eV=()=>(0,eI.useState)(eB)[0],eU=n(6901),eH=(e,t)=>{let n=(0,eU.useConstant)(()=>new ef(e,t));return(0,eU.useOnce)(()=>()=>{n.stop()}),n},eW=n(6901);function e$(e,t,n){let r=eW.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,a,o=eF(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eW.useIsomorphicLayoutEffect)(()=>{(0,eW.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(P(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=eW.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=h(n(2784)),eK=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,eK.useMemo)(()=>r||3==arguments.length?ez():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,eK.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),M(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eX++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(b,({ctrl:e,item:t,key:n})=>{M(e,f),v(u,t,n)}));let x=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ek},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let w=-o,k=(0,eY.useForceUpdate)(),E=j(t),C=new Map,O=(0,eK.useRef)(new Map),A=(0,eK.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,a=e.phase,u=r?r():t,f,h,p=v(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=v(f,e.item,n),!(f=eY.is.obj(f)?_(f):{to:f}).config){let t=d||E.config;f.config=v(t,e.item,n,h)}w+=o;let b={...E,delay:p+w,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(b.from)){let i=r?r():t,a=eY.is.und(i.initial)||g?i.from:i.initial;b.from=v(a,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(O.current.delete(n),l&&(A.current=!0),k())}};let j=eC(e.ctrl,b);"leave"===h&&l?O.current.set(e,{phase:h,springs:j,payload:b}):C.set(e,{phase:h,springs:j,payload:b})});let T=(0,eK.useContext)(eR),N=(0,eY.usePrev)(T),R=T!==N&&S(T);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eY.each)(C,(e,t)=>{if(O.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(O.current.size?O.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:T}),t&&(P(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eJ=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eZ(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.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,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e0=n(6901),e1=({container:e,...t})=>{let[n,r]=eZ(()=>({width:0,height:0,...t}),[]);return(0,e0.useIsomorphicLayoutEffect)(()=>{let t=(0,e0.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,e0.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e2=n(2784),e4=n(6901),e3={any:0,all:1};function e5(e,t){let[n,r]=(0,e2.useState)(!1),i=(0,e2.useRef)(),a=e4.is.fun(e)&&e,{to:o={},from:s={},...l}=a?a():{},u=a?t:e,[c,d]=eZ(()=>({from:s,...l}),[]);return(0,e4.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:l="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:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e4.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e3[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),a?[i,c]:[i,n]}function e6({children:e,...t}){return e(eZ(t))}var e8=n(6901);function e7({items:e,children:t,...n}){let r=e$(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e8.is.fun(i)?i(r[n]):i})}function e9({items:e,children:t,...n}){return eG(e,n)(t)}var te=n(6901),tt=n(6901),tn=n(25447),tr=class extends ea{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,tt.createInterpolator)(...t);let n=this._get(),r=(0,tn.getAnimatedType)(n);(0,tn.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,tt.isEqual)(t,n)||((0,tn.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ta(this._active)&&to(this)}_get(){let e=tt.is.arr(this.source)?this.source.map(tt.getFluidValue):(0,tt.toArray)((0,tt.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ta(this._active)&&(this.idle=!1,(0,tt.each)((0,tn.getPayload)(this),e=>{e.done=!1}),tt.Globals.skipAnimation?(tt.raf.batchedUpdates(()=>this.advance()),to(this)):tt.frameLoop.start(this))}_attach(){let e=1;(0,tt.each)((0,tt.toArray)(this.source),t=>{(0,tt.hasFluidValue)(t)&&(0,tt.addFluidObserver)(t,this),er(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,tt.each)((0,tt.toArray)(this.source),e=>{(0,tt.hasFluidValue)(e)&&(0,tt.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,tt.toArray)(this.source).reduce((e,t)=>Math.max(e,(er(t)?t.priority:0)+1),0))}};function ti(e){return!1!==e.idle}function ta(e){return!e.size||Array.from(e).every(ti)}function to(e){e.idle||(e.idle=!0,(0,tt.each)((0,tn.getPayload)(e),e=>{e.done=!0}),(0,tt.callFluidObservers)(e,{type:"idle",parent:e}))}var ts=(e,...t)=>new tr(e,t),tl=(e,...t)=>((0,te.deprecateInterpolate)(),new tr(e,t)),tu=n(6901);tu.Globals.assign({createStringInterpolator:tu.createStringInterpolator,to:(e,t)=>new tr(e,t)});var tc=tu.frameLoop.advance,td=n(6901);r=n(8669),i=e.exports,f(p,r,"default"),i&&f(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eP,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>T,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eS,hasFluidValue:()=>eC,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>eo,hsla:()=>es,is:()=>P,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>Z,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>eq,prefix:()=>e$,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>ea,setFluidGetter:()=>eT,toArray:()=>R,useConstant:()=>to,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tg,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>U,colors:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>B,to:()=>z,willAdvance:()=>V});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),x-=~e?1:0},i={time:n,handler:e,cancel:r};return g.splice(v(n),0,i),x+=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"):_()};var b=-1,x=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){b<0&&(b=0,"demand"!==d.frameLoop&&y(E))}function E(){~b&&(y(E),d.batchedUpdates(_))}function _(){let e=b,t=v(b=d.now());if(t&&(S(g.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function C(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,S(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function S(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),P={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(P.arr(e)){if(!P.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(P.arr(e)){for(let r=0;rP.und(e)?[]:P.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),T(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),I=null,B=!1,V=O,U=e=>{e.to&&(z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=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&&(V=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},H=new Set,W=[],$=[],q=0,K={get idle(){return!H.size&&!W.length},start(e){q>e.priority?(H.add(e),d.onStart(Y)):(G(e),d(J))},advance:J,sort(e){if(q)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],H.clear()}};function Y(){H.forEach(G),H.clear(),d(J)}function G(e){W.includes(e)||X(e)}function X(e){var t,n;let r;W.splice((t=W,n=t=>t.priority>e.priority,(r=t.findIndex(n))<0?t.length:r),0,e)}function J(e){let t=$;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)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function 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:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=ea.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|eg(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=eo.exec(e))?(255|eh(em(t[1]),ev(t[2]),ev(t[3])))>>>0:(t=es.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 eb=(e,t,n)=>{if(P.fun(e))return e;if(P.arr(e))return eb({range:e,output:t,extrapolate:n});if(P.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",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=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],s,a,o,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return Q(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eE=Symbol.for("FluidValue.get"),e_=Symbol.for("FluidValue.observers"),eC=e=>!!(e&&e[eE]),eS=e=>e&&e[eE]?e[eE]():e,eO=e=>e[e_]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eP(e,t){let n=e[e_];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eT(this,e)}},eT=(e,t)=>eL(e,eE,t);function eN(e,t){if(e[eE]){let n=e[e_];n||eL(e,e_,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[e_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[e_]=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"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eB=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eV=e=>{let[t,n]=eU(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)?eV(n):n||e},eU=e=>{let t=eB.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eH=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eS(e).replace(eB,eV).replace(eF,ey).replace(eD,ey)),n=t.map(e=>e.match(ez).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!eZ.test(t[0])&&t.find(e=>eZ.test(e))?.replace(ez,""),i=0;return t[0].replace(ez,()=>`${r[i++](e)}${n||""}`).replace(eI,eH)}},e$="react-spring: ",eq=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${e$}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=eq(console.warn);function eY(){eK(`${e$}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eG=eq(console.warn);function eX(){eG(`${e$}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 P.str(e)&&("#"==e[0]||/\d/.test(e)||!Z()&&eB.test(e)||e in(I||{}))}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 ts=n(2784),tl=n(2784),tu=n(2784),tc=Z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,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 tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),U({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,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of r(a))i.call(e,l)||l===o||t(e,l,{get:()=>a[l],enumerable:!(s=n(a,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},96721:function(e,t,n){"use strict";let r,i;var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||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:()=>M,animated:()=>M}),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),b=["Webkit","Ms","Moz","O"];v=Object.keys(v).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),v);var x=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,E=/^(rotate|skew)/,_=(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,S=class extends x.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=>_(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},${_(i,n)})`,C(i,0)]:e=>[`${t}(${e.map(e=>_(e,n)).join(",")})`,C(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,a)),super(r)}},O=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[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 M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).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!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new S(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:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[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,l,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({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},65304:function(e,t,n){"use strict";let r,i;n.d(t,{mY:function(){return eJ},U8:function(){return e4}});var a=n(7896),o=n(2784),s=n.t(o,2),l=n(41816),u=n(26215),c=n(34540),d=n(64680);let f=s["useId".toString()]||(()=>void 0),h=0;function p(e){let[t,n]=o.useState(f());return(0,d.b)(()=>{e||n(e=>null!=e?e:String(h++))},[e]),e||(t?`radix-${t}`:"")}var m=n(73597),g=n(72130),v=n(86029);let y="dismissableLayer.update",b=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...h}=e,p=(0,o.useContext)(b),[m,x]=(0,o.useState)(null),[,k]=(0,o.useState)({}),E=(0,u.e)(t,e=>x(e)),_=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=_.indexOf(C),O=m?_.indexOf(m):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,P=O>=S,A=function(e){let t=(0,v.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){j("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=[...p.branches].some(e=>e.contains(t));!P||n||(null==s||s(e),null==d||d(e),e.defaultPrevented||null==f||f())}),T=function(e){let t=(0,v.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&j("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;[...p.branches].some(e=>e.contains(t))||(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())});return!function(e){let t=(0,v.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{O!==p.layers.size-1||(null==i||i(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))}),(0,o.useEffect)(()=>{if(m)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),w(),()=>{n&&1===p.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[m,n,p]),(0,o.useEffect)(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),w())},[m,p]),(0,o.useEffect)(()=>{let e=()=>k({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,o.createElement)(g.WV.div,(0,a.Z)({},h,{ref:E,style:{pointerEvents:M?P?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,l.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,l.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function w(){let e=new CustomEvent(y);document.dispatchEvent(e)}function j(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,g.jH)(i,a):i.dispatchEvent(a)}let k="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},C=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,d]=(0,o.useState)(null),f=(0,v.W)(i),h=(0,v.W)(s),p=(0,o.useRef)(null),m=(0,u.e)(t,e=>d(e)),y=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:M(p.current,{select:!0})}function t(e){y.paused||!c||c.contains(e.relatedTarget)||M(p.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,c,y.paused]),(0,o.useEffect)(()=>{if(c){P.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(k,_);c.addEventListener(k,f),c.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}(S(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&M(c))}return()=>{c.removeEventListener(k,f),setTimeout(()=>{let t=new CustomEvent(E,_);c.addEventListener(E,h),c.dispatchEvent(t),t.defaultPrevented||M(null!=e?e:document.body,{select:!0}),c.removeEventListener(E,h),P.remove(y)},0)}}},[c,f,h,y]);let b=(0,o.useCallback)(e=>{if(!n&&!r||y.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=S(e);return[O(t,e),O(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,y.paused]);return(0,o.createElement)(g.WV.div,(0,a.Z)({tabIndex:-1},l,{ref:m,onKeyDown:b}))});function S(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 O(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 P=(i=[],{add(e){let t=i[0];e!==t&&(null==t||t.pause()),(i=A(i,e)).unshift(e)},remove(e){var t;null===(t=(i=A(i,e))[0])||void 0===t||t.resume()}});function A(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var T=n(28316);let N=(0,o.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?T.createPortal((0,o.createElement)(g.WV.div,(0,a.Z)({},i,{ref:t})),r):null}),R=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,o.useState)(),a=(0,o.useRef)({}),s=(0,o.useRef)(e),l=(0,o.useRef)("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,o.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,o.useEffect)(()=>{let e=D(a.current);l.current="mounted"===u?e:"none"},[u]),(0,d.b)(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=D(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),(0,d.b)(()=>{if(r){let e=e=>{let t=D(a.current).includes(e.animationName);e.target===r&&t&&(0,T.flushSync)(()=>c("ANIMATION_END"))},t=e=>{e.target===r&&(l.current=D(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)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,o.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=(0,u.e)(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,o.cloneElement)(i,{ref:a}):null};function D(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";let L=0;function z(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var F=n(22970),Z=n(95346),I=n(22442),B=(0,n(64597)._)(),V=function(){},U=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:V,onWheelCapture:V,onTouchMoveCapture:V}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=(0,F._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=(0,I.q)([n,t]),x=(0,F.pi)((0,F.pi)({},y),i);return o.createElement(o.Fragment,null,d&&o.createElement(h,{sideCar:B,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?o.cloneElement(o.Children.only(l),(0,F.pi)((0,F.pi)({},x),{ref:b})):o.createElement(void 0===v?"div":v,(0,F.pi)({},x,{className:u,ref:b}),l))});U.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},U.classNames={fullWidth:Z.zi,zeroRight:Z.pF};var H=n(57758),W=n(181),$=n(33225),q=!1;if("undefined"!=typeof window)try{var K=Object.defineProperty({},"passive",{get:function(){return q=!0,!0}});window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch(e){q=!1}var Y=!!q&&{passive:!1},G=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},X=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},J=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Q(e,n)){var r=ee(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Q=function(e,t){return"v"===e?G(t):X(t)},ee=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},et=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=ee(e,l),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&Q(e,l)&&(f+=g,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},en=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},er=function(e){return[e.deltaX,e.deltaY]},ei=function(e){return e&&"current"in e?e.current:e},ea=0,eo=[],es=(0,H.L)(B,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(ea++)[0],a=o.useState(function(){return(0,$.Ws)()})[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,F.ev)([e.lockRef.current],(e.shards||[]).map(ei),!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=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,a=en(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=J(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=J(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return et(h,t,e,"h"===h?l:u,!0)},[]),u=o.useCallback(function(e){if(eo.length&&eo[eo.length-1]===a){var n="deltaY"in e?er(e):en(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=(s.current.shards||[]).map(ei).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.preventDefault()}}},[]),c=o.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)},[]),d=o.useCallback(function(e){n.current=en(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,er(t),t.target,l(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,en(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return eo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Y),document.addEventListener("touchmove",u,Y),document.addEventListener("touchstart",d,Y),function(){eo=eo.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Y),document.removeEventListener("touchmove",u,Y),document.removeEventListener("touchstart",d,Y)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(W.jp,{gapMode:"margin"}):null)}),el=o.forwardRef(function(e,t){return o.createElement(U,(0,F.pi)({},e,{ref:t,sideCar:es}))});el.classNames=U.classNames;var eu=n(49732),ec=n(99575);let ed="Dialog",[ef,eh]=(0,c.b)(ed),[ep,em]=ef(ed),eg="DialogPortal",[ev,ey]=ef(eg,{forceMount:void 0}),eb="DialogOverlay",ex=(0,o.forwardRef)((e,t)=>{let n=ey(eb,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=em(eb,e.__scopeDialog);return s.modal?(0,o.createElement)(R,{present:r||s.open},(0,o.createElement)(ew,(0,a.Z)({},i,{ref:t}))):null}),ew=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,i=em(eb,n);return(0,o.createElement)(el,{as:ec.g7,allowPinchZoom:!0,shards:[i.contentRef]},(0,o.createElement)(g.WV.div,(0,a.Z)({"data-state":eS(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),ej="DialogContent",ek=(0,o.forwardRef)((e,t)=>{let n=ey(ej,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=em(ej,e.__scopeDialog);return(0,o.createElement)(R,{present:r||s.open},s.modal?(0,o.createElement)(eE,(0,a.Z)({},i,{ref:t})):(0,o.createElement)(e_,(0,a.Z)({},i,{ref:t})))}),eE=(0,o.forwardRef)((e,t)=>{let n=em(ej,e.__scopeDialog),r=(0,o.useRef)(null),i=(0,u.e)(t,n.contentRef,r);return(0,o.useEffect)(()=>{let e=r.current;if(e)return(0,eu.R)(e)},[]),(0,o.createElement)(eC,(0,a.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,l.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,l.M)(e.onFocusOutside,e=>e.preventDefault())}))}),e_=(0,o.forwardRef)((e,t)=>{let n=em(ej,e.__scopeDialog),r=(0,o.useRef)(!1);return(0,o.createElement)(eC,(0,a.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()}}))}),eC=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=em(ej,n),d=(0,o.useRef)(null),f=(0,u.e)(t,d);return(0,o.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:z()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:z()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(C,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},(0,o.createElement)(x,(0,a.Z)({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eS(c.open)},l,{ref:f,onDismiss:()=>c.onOpenChange(!1)}))),!1)});function eS(e){return e?"open":"closed"}let[eO,eM]=(0,c.k)("DialogTitleWarning",{contentName:ej,titleName:"DialogTitle",docsSlug:"dialog"}),eP=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=(0,o.useRef)(null),u=(0,o.useRef)(null),[c=!1,d]=(0,m.T)({prop:r,defaultProp:i,onChange:a});return(0,o.createElement)(ep,{scope:t,triggerRef:l,contentRef:u,contentId:p(),titleId:p(),descriptionId:p(),open:c,onOpenChange:d,onOpenToggle:(0,o.useCallback)(()=>d(e=>!e),[d]),modal:s},n)},eA=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=em(eg,t);return(0,o.createElement)(ev,{scope:t,forceMount:n},o.Children.map(r,e=>(0,o.createElement)(R,{present:n||a.open},(0,o.createElement)(N,{asChild:!0,container:i},e))))};var eT=n(40844),eN='[cmdk-group=""]',eR='[cmdk-group-items=""]',eD='[cmdk-item=""]',eL=`${eD}:not([aria-disabled="true"])`,ez="cmdk-item-select",eF="data-value",eZ=(e,t)=>eT(e,t),eI=o.createContext(void 0),eB=()=>o.useContext(eI),eV=o.createContext(void 0),eU=()=>o.useContext(eV),eH=o.createContext(void 0),eW=o.forwardRef((e,t)=>{let n=o.useRef(null),r=e1(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),i=e1(()=>new Set),a=e1(()=>new Map),s=e1(()=>new Map),l=e1(()=>new Set),u=eQ(e),{label:c,children:d,value:f,onValueChange:h,filter:p,shouldFilter:m,...g}=e,v=o.useId(),y=o.useId(),b=o.useId(),x=e5();e0(()=>{if(void 0!==f){let e=f.trim().toLowerCase();r.current.value=e,x(6,S),w.emit()}},[f]);let w=o.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.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)C(),E(),x(1,_);else if("value"===e){if((null==(i=u.current)?void 0:i.value)!==void 0){null==(o=(a=u.current).onValueChange)||o.call(a,t);return}n||x(5,S)}w.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),j=o.useMemo(()=>({value:(e,t)=>{t!==s.current.get(e)&&(s.current.set(e,t),r.current.filtered.items.set(e,k(t)),x(2,()=>{E(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,()=>{C(),E(),r.current.value||_(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),r.current.filtered.items.delete(e),x(4,()=>{C(),_(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],listId:v,inputId:b,labelId:y}),[]);function k(e){var t;let n=(null==(t=u.current)?void 0:t.filter)??eZ;return e?n(e,r.current.search):0}function E(){if(!n.current||!r.current.search||!1===u.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=a.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=""]');M().sort((t,n)=>{let r=t.getAttribute(eF),i=n.getAttribute(eF);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(eR);t?t.appendChild(e.parentElement===t?e:e.closest(`${eR} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${eR} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${eN}[${eF}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function _(){let e=M().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(eF);w.setState("value",t||void 0)}function C(){if(!r.current.search||!1===u.current.shouldFilter){r.current.filtered.count=i.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of i.current){let n=k(s.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of a.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 S(){var e,t,n;let r=O();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eN))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function O(){return n.current.querySelector(`${eD}[aria-selected="true"]`)}function M(){return Array.from(n.current.querySelectorAll(eL))}function P(e){let t=M()[e];t&&w.setState("value",t.getAttribute(eF))}function A(e){var t;let n=O(),r=M(),i=r.findIndex(e=>e===n),a=r[i+e];null!=(t=u.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState("value",a.getAttribute(eF))}function T(e){let t=O(),n=null==t?void 0:t.closest(eN),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,eN):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eN))?void 0:n.querySelector(eL);r?w.setState("value",r.getAttribute(eF)):A(e)}let N=()=>P(M().length-1),R=e=>{e.preventDefault(),e.metaKey?N():e.altKey?T(1):A(1)},D=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?T(-1):A(-1)};return o.createElement("div",{ref:e2([n,t]),...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&R(e);break;case"ArrowDown":R(e);break;case"p":case"k":e.ctrlKey&&D(e);break;case"ArrowUp":D(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),N();break;case"Enter":{e.preventDefault();let t=O();if(t){let e=new Event(ez);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:e6},c),o.createElement(eV.Provider,{value:w},o.createElement(eI.Provider,{value:j},d)))}),e$=o.forwardRef((e,t)=>{let n=o.useId(),r=o.useRef(null),i=o.useContext(eH),a=eB(),s=eQ(e);e0(()=>a.item(n,i),[]);let l=e3(n,r,[e.value,e.children,r]),u=eU(),c=e4(e=>e.value&&e.value===l.current),d=e4(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function f(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(o.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(ez,f),()=>t.removeEventListener(ez,f)},[d,e.onSelect,e.disabled]),!d)return null;let{disabled:h,value:p,onSelect:m,...g}=e;return o.createElement("div",{ref:e2([r,t]),...g,"cmdk-item":"",role:"option","aria-disabled":h||void 0,"aria-selected":c||void 0,"data-selected":c||void 0,onPointerMove:h?void 0:function(){u.setState("value",l.current,!0)},onClick:h?void 0:f},e.children)}),eq=o.forwardRef((e,t)=>{let{heading:n,children:r,...i}=e,a=o.useId(),s=o.useRef(null),l=o.useRef(null),u=o.useId(),c=eB(),d=e4(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));e0(()=>c.group(a),[]),e3(a,s,[e.value,e.heading,l]);let f=o.createElement(eH.Provider,{value:a},r);return o.createElement("div",{ref:e2([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&o.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),eK=o.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=o.useRef(null),a=e4(e=>!e.search);return n||a?o.createElement("div",{ref:e2([i,t]),...r,"cmdk-separator":"",role:"separator"}):null}),eY=o.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,a=eU(),s=e4(e=>e.search),l=eB();return o.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),o.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:i?e.value:s,onChange:e=>{i||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),eG=o.forwardRef((e,t)=>{let{children:n,...r}=e,i=o.useRef(null),a=o.useRef(null),s=eB();return o.useEffect(()=>{if(a.current&&i.current){let e=a.current,t=i.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)}}},[]),o.createElement("div",{ref:e2([i,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},o.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),eX=o.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:i,...a}=e;return o.createElement(eP,{open:n,onOpenChange:r},o.createElement(eA,{container:i},o.createElement(ex,{"cmdk-overlay":""}),o.createElement(ek,{"aria-label":e.label,"cmdk-dialog":""},o.createElement(eW,{ref:t,...a}))))}),eJ=Object.assign(eW,{List:eG,Item:e$,Input:eY,Group:eq,Separator:eK,Dialog:eX,Empty:o.forwardRef((e,t)=>{let n=o.useRef(!0),r=e4(e=>0===e.filtered.count);return o.useEffect(()=>{n.current=!1},[]),n.current||!r?null:o.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:o.forwardRef((e,t)=>{let{progress:n,children:r,...i}=e;return o.createElement("div",{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},o.createElement("div",{"aria-hidden":!0},r))})});function eQ(e){let t=o.useRef(e);return e0(()=>{t.current=e}),t}var e0=typeof window>"u"?o.useEffect:o.useLayoutEffect;function e1(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function e2(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function e4(e){let t=eU(),n=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,n,n)}function e3(e,t,n){let r=o.useRef(),i=eB();return e0(()=>{var a;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()}})();i.value(e,o),null==(a=t.current)||a.setAttribute(eF,o),r.current=o}),r}var e5=()=>{let[e,t]=o.useState(),n=e1(()=>new Map);return e0(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},e6={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 s(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:s,center:function(e,t,n=0,r=e.length){let i=s(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 s=o},51558:function(e,t,n){"use strict";var r=n(3648),i=n(22327),a=(0,r.Z)(i.Z,"Map");t.Z=a},28114:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=(0,n(3648).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();++t0&&i(c)?n>1?e(c,n-1,i,a,o):(0,r.Z)(o,c):a||(o[o.length]=c)}return o}},1809: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 s=a[++r];if(!1===t(i[s],s,i))break}return e}},90820:function(e,t,n){"use strict";var r=n(1809),i=n(91139);t.Z=function(e,t){return e&&(0,r.Z)(e,t,i.Z)}},5489:function(e,t,n){"use strict";var r=n(92739),i=n(14551);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=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new i.Z:void 0;for(l.set(e,t),l.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)}},37578:function(e,t,n){"use strict";var r=n(62098);t.Z=function(e){var t=new e.constructor(e.byteLength);return new r.Z(t).set(new r.Z(e)),t}},18787:function(e,t,n){"use strict";var r=n(22327),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,s=o?o.allocUnsafe:void 0;t.Z=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},42383:function(e,t,n){"use strict";var r=n(37578);t.Z=function(e,t){var n=t?(0,r.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},43737: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 s.apply(void 0,arguments)})},51075:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(59866),i="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",s="[^"+i+"]",l="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+a+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[s,l,u].join("|")+")"+d+c+")*",h=RegExp(o+"(?="+o+")|(?:"+[s+a+"?",a,l,u,"["+i+"]"].join("|")+")"+(d+c+f),"g"),p=function(e){return(0,r.Z)(e)?e.match(h)||[]:e.split("")}},11620:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,a=n(28114);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 s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=(i=(r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,function(e,n,r,i){t.push(r?i.replace(l,"$1"):n||e)}),t},function(e){return 500===i.size&&i.clear(),e})).cache,r)},14551:function(e,t,n){"use strict";var r=n(81470),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}},8919: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""}},54897:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(88225),i=n(22327),a=function(){return i.Z.Date.now()},o=n(47421),s=Math.max,l=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 b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function x(){var e,n,r,i=a();if(b(i))return w(i);f=setTimeout(x,(e=i-h,n=i-p,r=t-e,g?l(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=b(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=(0,o.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(g="maxWait"in n)?s((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}},92725:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},83894:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i=n(1619),a=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1&&e%1==0&&e<=9007199254740991}},88225:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},99982:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},36394:function(e,t,n){"use strict";var r=n(85084),i=n(61153),a=n(99982),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.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=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},81470:function(e,t,n){"use strict";var r=n(85084),i=n(99982);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},93779:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85084),i=n(45432),a=n(99982),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 s=n(9769),l=n(20329),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},91139:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(62212),i=n(59208),a=(0,n(35100).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,s=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},l=n(18226),u=function(e){return(0,l.Z)(e)?(0,r.Z)(e):s(e)}},81330:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(62212),i=n(88225),a=n(59208),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(18226),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},6539:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(25079),a=n(85420),o=n(92739),s=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},l=n(5489),u=n(95068),c=n(14551),d=function(e,t){var n,r;return t=(0,o.Z)(t,e),n=e,null==(e=(r=t).length<2?n:(0,l.Z)(n,(0,u.Z)(r,0,-1)))||delete e[c.Z(s(t))]},f=n(28363),h=n(36394),p=function(e){return(0,h.Z)(e)?void 0:e},m=n(45384),g=n(22203),v=n(14964),y=n(58242),b=(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 s=t.length;s--;)d(n,t[s]);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+""))},78790:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(45384),i=n(25079),a=n(5489),o=n(27491),s=n(14370),l=n(18226),u=function(e,t){var n=-1,r=(0,l.Z)(e)?Array(e.length):[];return(0,s.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(9769),f=n(81470),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,s=null===t,l=t==t,u=(0,f.Z)(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(45036),g=n(52059),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(71811),b=n(90083),x=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,b.Z)(e,t[0],t[1])?t=[]:n>2&&(0,b.Z)(t[0],t[1],t[2])&&(t=[t[0]]),v(e,(0,r.Z)(t,1),[])})},57978:function(e,t){"use strict";t.Z=function(){return[]}},35197:function(e,t,n){"use strict";var r=n(54897),i=n(88225);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})}},47421: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(88225),s=n(81470),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=function(e){if("number"==typeof e)return e;if((0,s.Z)(e))return l;if((0,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)?l:+e}},68650:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=n(25079),a=n(40871),o=n(95849),s=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},l=(r=n(91139).Z,function(e){var t,n=(0,a.Z)(e);return"[object Map]"==n?(0,o.Z)(e):"[object Set]"==n?s(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},16601:function(e,t,n){"use strict";var r=n(36556);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},71609:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(90821),i=n(59866),a=n(51075),o=n(16601),s=function(e){e=(0,o.Z)(e);var t=(0,i.Z)(e)?(0,a.Z)(e):void 0,n=t?t[0]:e.charAt(0),s=t?(0,r.Z)(t,1).join(""):e.slice(1);return n.toUpperCase()+s}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},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||!l(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,b=e=>/^\w*$/.test(e),x=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,t,n)=>{let r=-1,i=b(t)?[t]:x(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=>l(e)&&!Object.keys(e).length,S=(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))},O=e=>Array.isArray(e)?e:[e],M=e=>"string"==typeof e,P=(e,t,n,r,i)=>M(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),A=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},T=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 l(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=>M(e),I=e=>"radio"===e.type,B=e=>e instanceof RegExp;let V={value:!1,isValid:!1},U={value:!0,isValid:!0};var H=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?U:{value:e[0].value,isValid:!0}:U:V}return V};let W={isValid:!1,value:null};var $=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function q(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=>l(e)&&!B(e)?e:{value:e,message:""},Y=async(e,t,n,r,a)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:b,name:x,valueAsNumber:w,mount:j,disabled:k}=e._f,_=v(t,x);if(!j||k)return{};let S=u?u[0]:s,O=e=>{r&&S.reportValidity&&(S.setCustomValidity(y(e)?"":e||""),S.reportValidity())},P={},T=I(s),N=i(s),R=(w||L(s))&&g(s.value)&&g(_)||F(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,D=A.bind(null,x,n,P),V=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;P[x]={type:e?r:i,message:a,ref:s,...D(e?r:i,a)}};if(a?!Array.isArray(_)||!_.length:c&&(!(T||N)&&(R||o(_))||y(_)&&!_||N&&!H(u).isValid||T&&!$(u).isValid)){let{value:e,message:t}=Z(c)?{value:!!c,message:c}:K(c);if(e&&(P[x]={type:E.required,message:t,ref:S,...D(E.required,t)},!n))return O(t),P}if(!R&&(!o(h)||!o(p))){let e,t;let r=K(p),i=K(h);if(o(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==s.type,l="week"==s.type;M(r.value)&&_&&(e=o?a(_)>a(r.value):l?_>r.value:n>new Date(r.value)),M(i.value)&&_&&(t=o?a(_)r.value),o(i.value)||(t=n+e.value,i=!o(t.value)&&_.length<+t.value;if((r||i)&&(V(r,e.message,t.message),!n))return O(P[x].message),P}if(m&&!R&&M(_)){let{value:e,message:t}=K(m);if(B(e)&&!_.match(e)&&(P[x]={type:E.pattern,message:t,ref:s,...D(E.pattern,t)},!n))return O(t),P}if(b){if(z(b)){let e=q(await b(_,t),S);if(e&&(P[x]={...e,...D(E.validate,e.message)},!n))return O(e.message),P}else if(l(b)){let e={};for(let r in b){if(!C(e)&&!n)break;let i=q(await b[r](_,t),S,r);i&&(e={...i,...D(r,i.message)},O(i.message),n&&(P[x]=e))}if(!C(e)&&(P[x]={ref:S,...e},!n))return P}}return O(!0),P};function G(e,t){let n=Array.isArray(t)?t:b(t)?[t]:x(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)||!s(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)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!Q(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>I(e)||i(e),en=e=>F(e)&&e.isConnected,er=e=>{for(let t in e)if(z(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ea=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?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&&M(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:I(t)?$(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?H(e.refs).value:eo(g(t.value)?e.ref.value:t.value,e)}var el=(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:l(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||b(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&&G(e,t);let ep={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),n=r.useRef(),[s,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},s={},c=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},f=n.shouldUnregister?{}:p(c),b={action:!1,mount:!1,watch:!1},x={mount:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,_={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={values:X(),array:X(),state:X()},A=T(n.mode),Z=T(n.reValidateMode),I=n.criteriaMode===k.all,B=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},V=async e=>{if(_.isValid||e){let e=n.resolver?C((await K()).errors):await ei(s,!0);e!==r.isValid&&S.state.next({isValid:e})}},U=(e,t)=>{(_.isValidating||_.validatingFields)&&((e||Array.from(x.mount)).forEach(e=>{e&&(t?w(r.validatingFields,e,t):G(r.validatingFields,e))}),S.state.next({validatingFields:r.validatingFields,isValidating:!C(r.validatingFields)}))},H=(e,t)=>{w(r.errors,e,t),S.state.next({errors:r.errors})},W=(e,t,n,r)=>{let i=v(s,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:es(i._f)):ev(e,a),b.mount&&V()}},$=(e,t,n,i,a)=>{let o=!1,l=!1,u={name:e},d=!!(v(s,e)&&v(s,e)._f&&v(s,e)._f.disabled);if(!n||i){_.isDirty&&(l=r.isDirty,r.isDirty=u.isDirty=em(),o=l!==u.isDirty);let n=d||Q(v(c,e),t);l=!!(!d&&v(r.dirtyFields,e)),n||d?G(r.dirtyFields,e):w(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,o=o||_.dirtyFields&&!n!==l}if(n){let t=v(r.touchedFields,e);t||(w(r.touchedFields,e,n),u.touchedFields=r.touchedFields,o=o||_.touchedFields&&t!==n)}return o&&a&&S.state.next(u),o?u:{}},q=(n,i,a,o)=>{let s=v(r.errors,n),l=_.isValid&&y(i)&&r.isValid!==i;if(e.delayError&&a?(t=B(()=>H(n,a)))(e.delayError):(clearTimeout(E),t=null,a?w(r.errors,n,a):G(r.errors,n)),(a?!Q(s,a):s)||!C(o)||l){let e={...o,...l&&y(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},S.state.next(e)}},K=async e=>{U(e,!0);let t=await n.resolver(f,n.context,el(e||x.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return U(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):G(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,...s}=o;if(e){let s=x.array.has(e.name);U([a],!0);let l=await Y(o,f,I,n.shouldUseNativeValidation&&!t,s);if(U([a]),l[e.name]&&(i.valid=!1,t))break;t||(v(l,e.name)?s?D(r.errors,l,e.name):w(r.errors,e.name,l[e.name]):G(r.errors,e.name))}s&&await ei(s,t,i)}}return i.valid},em=(e,t)=>(e&&t&&w(f,e,t),!Q(ek(),c)),eg=(e,t,n)=>P(e,x,{...b.mount?f:g(t)?c:M(e)?{[e]:t}:t},n,t),ev=(e,t,n={})=>{let r=v(s,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||S.values.next({name:e,values:{...f}})))}(n.shouldDirty||n.shouldTouch)&&$(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}`,l=v(s,o);!x.array.has(e)&&J(i)&&(!l||l._f)||a(i)?ev(o,i,n):ey(o,i,n)}},eb=(e,t,n={})=>{let i=v(s,e),a=x.array.has(e),l=p(t);w(f,e,l),a?(S.array.next({name:e,values:{...f}}),(_.isDirty||_.dirtyFields)&&n.shouldDirty&&S.state.next({name:e,dirtyFields:ea(c,f),isDirty:em(e,l)})):!i||i._f||o(l)?ev(e,l,n):ey(e,l,n),N(e,x)&&S.state.next({...r}),S.values.next({name:b.mount?e:void 0,values:{...f}})},ex=async e=>{b.mount=!0;let i=e.target,a=i.name,o=!0,l=v(s,a),c=e=>{o=Number.isNaN(e)||e===v(f,a,e)};if(l){let d,h;let p=i.type?es(l._f):u(e),m=e.type===j.BLUR||e.type===j.FOCUS_OUT,g=!ec(l._f)&&!n.resolver&&!v(r.errors,a)&&!l._f.deps||ef(m,v(r.touchedFields,a),r.isSubmitted,Z,A),y=N(a,x,m);w(f,a,p),m?(l._f.onBlur&&l._f.onBlur(e),t&&t(0)):l._f.onChange&&l._f.onChange(e);let b=$(a,p,m,!1),k=!C(b)||y;if(m||S.values.next({name:a,type:e.type,values:{...f}}),g)return _.isValid&&V(),k&&S.state.next({name:a,...y?{}:b});if(!m&&y&&S.state.next({...r}),n.resolver){let{errors:e}=await K([a]);if(c(p),o){let t=ed(r.errors,s,a),n=ed(e,s,t.name||a);d=n.error,a=n.name,h=C(e)}}else U([a],!0),d=(await Y(l,f,I,n.shouldUseNativeValidation))[a],U([a]),c(p),o&&(d?h=!1:_.isValid&&(h=await ei(s,!0)));o&&(l._f.deps&&ej(l._f.deps),q(a,h,d,b))}},ew=(e,t)=>{if(v(r.errors,t)&&e.focus)return e.focus(),1},ej=async(e,t={})=>{let i,a;let o=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(s,e);return await ei(t&&t._f?{[e]:t}:t)}))).every(Boolean))||r.isValid)&&V():a=i=await ei(s);return S.state.next({...!M(e)||_.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&R(s,ew,e?o:x.mount),a},ek=e=>{let t={...b.mount?f:c};return g(e)?t:M(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)}),e_=(e,t,n)=>{let i=(v(s,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:l,...u}=v(r.errors,e)||{};w(r.errors,e,{...u,...t,ref:i}),S.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?O(e):x.mount)x.mount.delete(i),x.array.delete(i),t.keepValue||(G(s,i),G(f,i)),t.keepError||G(r.errors,i),t.keepDirty||G(r.dirtyFields,i),t.keepTouched||G(r.touchedFields,i),t.keepIsValidating||G(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||G(c,i);S.values.next({values:{...f}}),S.state.next({...r,...t.keepDirty?{isDirty:em()}:{}}),t.keepIsValid||V()},eS=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(y(e)&&b.mount||e){let a=e?void 0:g(i)?es(n?n._f:v(r,t)._f):i;w(f,t,a),$(t,a,!1,!1,!0)}},eO=(e,t={})=>{let r=v(s,e),i=y(t.disabled);return w(s,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),x.mount.add(e),r?eS({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:ex,onBlur:ex,ref:i=>{if(i){eO(e,t),r=v(s,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(s,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(s,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(x.array,e)&&b.action)&&x.unMount.add(e)}}},eM=()=>n.shouldFocusError&&R(s,ew,x.mount),eP=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=p(f);if(S.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await K();r.errors=e,o=t}else await ei(s);if(G(r.errors,"root"),C(r.errors)){S.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...r.errors},i),eM(),setTimeout(eM);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:C(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},eA=(t,n={})=>{let i=t?p(t):c,a=p(i),o=C(t),l=o?c:a;if(n.keepDefaultValues||(c=i),!n.keepValues){if(n.keepDirtyValues)for(let e of x.mount)v(r.dirtyFields,e)?w(l,e,v(f,e)):eb(e,v(l,e));else{if(h&&g(t))for(let e of x.mount){let t=v(s,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}}}}s={}}f=e.shouldUnregister?n.keepDefaultValues?p(c):{}:p(l),S.array.next({values:{...l}}),S.values.next({values:{...l}})}x={mount:n.keepDirtyValues?x.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!_.isValid||!!n.keepIsValid||!!n.keepDirtyValues,b.watch=!!e.shouldUnregister,S.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})},eT=(e,t)=>eA(z(e)?e(f):e,t);return{control:{register:eO,unregister:eC,getFieldState:eE,handleSubmit:eP,setError:e_,_executeSchema:K,_getWatch:eg,_getDirty:em,_updateValid:V,_removeUnmounted:()=>{for(let e of x.unMount){let t=v(s,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eC(e)}x.unMount=new Set},_updateFieldArray:(e,t=[],n,i,a=!0,o=!0)=>{if(i&&n){if(b.action=!0,o&&Array.isArray(v(s,e))){let t=n(v(s,e),i.argA,i.argB);a&&w(s,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(_.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)}_.dirtyFields&&(r.dirtyFields=ea(c,f)),S.state.next({name:e,isDirty:em(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else w(f,e,t)},_updateDisabledField:eS,_getFieldArray:t=>m(v(b.mount?f:c,t,e.shouldUnregister?v(c,t,[]):[])),_reset:eA,_resetDefaultValues:()=>z(n.defaultValues)&&n.defaultValues().then(e=>{eT(e,n.resetOptions),S.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{y(e)&&(S.state.next({disabled:e}),R(s,(t,n)=>{let r=v(s,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:S,_proxyFormState:_,_setErrors:e=>{r.errors=e,S.state.next({errors:r.errors,isValid:!1})},get _fields(){return s},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return c},get _names(){return x},set _names(value){x=value},get _formState(){return r},set _formState(value){r=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ej,register:eO,handleSubmit:eP,watch:(e,t)=>z(e)?S.values.subscribe({next:n=>e(eg(void 0,t),n)}):eg(e,t,!0),setValue:eb,getValues:ek,reset:eT,resetField:(e,t={})=>{v(s,e)&&(g(t.defaultValue)?eb(e,p(v(c,e))):(eb(e,t.defaultValue),w(c,e,p(t.defaultValue))),t.keepTouched||G(r.touchedFields,e),t.keepDirty||(G(r.dirtyFields,e),r.isDirty=t.defaultValue?em(e,p(v(c,e))):em()),!t.keepError&&(G(r.errors,e),_.isValid&&V()),S.state.next({...r}))},clearErrors:e=>{e&&O(e).forEach(e=>G(r.errors,e)),S.state.next({errors:e?r.errors:{}})},unregister:eC,setError:e_,setFocus:(e,t={})=>{let n=v(s,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:s});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=>{S(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!==s.isDirty&&f._subjects.state.next({isDirty:e})}},[f,s.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,f),t.current}},79381:function(e,t,n){"use strict";let r;n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return B},kY:function(){return K}});var i=n(2784),a=n(43100);let o=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",g=typeof window!=m,v=typeof document!=m,y=()=>g&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=o.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,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=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return E("online",t),E("offline",n),()=>{_("online",t),_("offline",n)}}},S=!i.useId,O=!g||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),P=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function z(...e){let[t,n,r,i]=e,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=a.populateCache,l=a.rollbackOnError,u=a.optimisticData,d=!1!==a.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,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[l,p]=b(t,a),[v,y,x]=o.get(t),w=v[a],j=()=>d&&(delete x[a],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let k=r,E=D();y[a]=[E,0];let _=!f(u),C=l(),S=C.data,O=C._c,M=f(O)?S:O;if(_&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[a][0]){if(i)throw i;return k}i&&_&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[a][1]=D();let P=await j();if(p({_c:c}),i){if(g)throw i;return}return s?P: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,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!o.has(e)&&(o.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[I,B]=Z(new Map),V=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:I,mutate:B,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=v&&document.visibilityState;return f(e)||"hidden"!==e}}),U=(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},H=(0,i.createContext)({}),W=g&&window.__SWR_DEVTOOLS_USE__,$=W?window.__SWR_DEVTOOLS_USE__:[],q=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(V,(0,i.useContext)(H)),Y=$.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=o.get(I),a=i[r];return a?(delete i[r],a):n(...e)});return e(t,i,r)}),G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(H),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:U(n,a),[r,n,a]),s=a&&a.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=Z(s(o.cache||I),a));let u=l.current;return u&&(o.cache=u[0],o.mutate=u[1]),P(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(H.Provider,p(e,{value:o}))},"defaultValue",{value:V});var Q=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:y,keepPreviousData:x}=n,[w,j,k]=o.get(r),[E,_]=N(e),C=(0,i.useRef)(!1),A=(0,i.useRef)(!1),T=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),Z=()=>F.current,I=()=>Z().isVisible()&&Z().isOnline(),[B,V,U,H]=b(r,E),W=(0,i.useRef)({}).current,$=f(u)?n.fallback[E]:u,q=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!E&&!!t&&(f(d)?!Z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=B(),i=H(),a=n(r),o=r===i?a:n(i),s=a;return[()=>{let e=n(B());return q(e,s)?s:s=e},()=>o]},[r,E]),Y=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>U(E,(t,n)=>{q(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)?$:ee,en=Y.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,ea=(!Q||!!f(en))&&(J&&!f(d)?d:!Z().isPaused()&&(l?!f(et)&&m:f(et)||m)),eo=!!(E&&t&&J&&ea),es=f(Y.isValidating)?eo:Y.isValidating,el=f(Y.isLoading)?eo:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||A.current||Z().isPaused())return!1;let a=!0,o=e||{},l=!k[E]||!o.dedupe,u=()=>S?!A.current&&E===T.current&&C.current:E===T.current,d={isValidating:!1,isLoading:!1},p=()=>{V(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},g={isValidating:!0};f(B().data)&&(g.isLoading=!0);try{if(l&&(V(g),n.loadingTimeout&&f(B().data)&&setTimeout(()=>{a&&u()&&Z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(_),D()]),[t,r]=k[E],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return l&&u()&&Z().onDiscarded(E),!1;d.error=c;let e=j[E];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&Z().onDiscarded(E),!1;let o=B().data;d.data=s(o,t)?o:t,l&&u()&&Z().onSuccess(t,E,n)}catch(n){m();let e=Z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,E,e),(!0===t||h(t)&&t(n))&&I()&&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,T.current,...e),[]);if(P(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),P(()=>{if(!E)return;let e=eu.bind(c,X),t=0,n=G(E,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();Z().revalidateOnFocus&&n>t&&I()&&(t=n+Z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)Z().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,T.current=E,C.current=!0,V({_k:_}),ea&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[E]),P(()=>{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(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,v,y,E]),(0,i.useDebugValue)(ei),l&&f(et)&&E){if(!S&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,A.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,a]=q(e),o=U(t,a),s=r,{use:l}=o,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||o.fetcher||null,o)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return o},_T:function(){return i},ev:function(){return l},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{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[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 l(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:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,Z({assert:!1},t)));let c={value:u,path:i,options:t,originalValue: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),M({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);M({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(Z({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(Z({},t,{value:e}))._validate(e,Z({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=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(I.prototype.__isYupSchema__=!0,["validate","validateSync"]))I.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,T.forEach)(t,(s,l,u)=>{let c=l?z(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}a=c,o=l?"["+s+"]":"."+s}),{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"])I.prototype[e]=I.prototype.oneOf;for(let e of["not","nope"])I.prototype[e]=I.prototype.notOneOf;I.prototype.optional=I.prototype.notRequired,I.prototype;var V=e=>null==e;class B extends I{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=>V(e)||!0===e})}isFalse(e=m.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>V(e)||!1===e})}}B.prototype;let U=/^((([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,H=/^((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,$=e=>V(e)||e===e.trim(),q=({}).toString();function K(){return new Y}class Y extends I{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===q?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return V(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return V(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>V(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(U,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(H,{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:$})}lowercase(e=f.lowercase){return this.transform(e=>V(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>V(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toUpperCase()})}}K.prototype=Y.prototype;let G=e=>e!=+e;function X(){return new J}class J extends I{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&&!G(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return V(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return V(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>V(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>V(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>V(t)?t:Math[e](t))}}X.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 I{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 V(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return V(e)||e<=this.resolve(n)}})}}er.INVALID_DATE=ee,en.prototype=er.prototype,en.INVALID_DATE=ee;var ei=n(57370),ea=n.n(ei),eo=n(96009),es=n.n(eo),el=n(19950),eu=n.n(el),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 I{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))),s={},l=ep({},t,{parent:s,__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];l.path=(t.path?`${t.path}.`:"")+e;let o="spec"in(n=n.resolve({value:a,context:t.context,parent:s}))?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],l))&&(s[e]=i)}else o&&!a&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:a=[],originalValue:o=e,abortEarly:s=this.spec.abortEarly,recursive:l=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(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!em(u)){n(r[0]||null,u);return}o=o||u,M({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ep({},t,{path:i,from:a,strict:!0,parent:u,originalValue:o[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=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 I&&t instanceof I&&(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,T.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,T.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(es())}snakeCase(){return this.transformKeys(ea())}constantCase(){return this.transformKeys(e=>ea()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=A()(this.fields,e=>e.describe()),e}}function ey(e){return new ev(e)}function eb(){return(eb=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,eb({},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,s=t.path,l=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(!S.isError(e)||u)return void n(e,r);a.push(e)}if(!c||!l||!this._typeCheck(r)){n(a[0]||null,r);return}d=d||r;let i=Array(r.length);for(let e=0;el.validate(n,o,t)}M({sync:o,path:s,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 V(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 V(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 V(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)}}ex.prototype},44868:function(e,t,n){"use strict";let r,i,a;var o=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{Animated:()=>x,AnimatedArray:()=>M,AnimatedObject:()=>O,AnimatedString:()=>E,AnimatedValue:()=>j,createHost:()=>I,getAnimated:()=>v,getAnimatedType:()=>T,getPayload:()=>b,isAnimated:()=>g,setAnimated:()=>y}),e.exports=f(s({},"__esModule",{value:!0}),h);var p=n(6901),m=Symbol.for("Animated:node"),g=e=>!!e&&e[m]===e,v=e=>e&&e[m],y=(e,t)=>(0,p.defineHidden)(e,m,t),b=e=>e&&e[m]&&e[m].getPayload(),x=class{constructor(){y(this,this)}getPayload(){return this.payload||[]}},w=n(6901),j=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,w.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new j(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return w.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,w.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},k=n(6901),E=class extends j{constructor(e){super(0),this._string=null,this._toString=(0,k.createInterpolator)({output:[e,e]})}static create(e){return new E(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(k.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,k.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},_=n(6901),C=n(6901),S={dependencies:null},O=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,C.eachProp)(this.source,(n,r)=>{g(n)?t[r]=n.getValue(e):(0,C.hasFluidValue)(n)?t[r]=(0,C.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,C.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,C.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){S.dependencies&&(0,C.hasFluidValue)(e)&&S.dependencies.add(e);let t=b(e);t&&(0,C.each)(t,e=>this.add(e))}},M=class extends O{constructor(e){super(e)}static create(e){return new M(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(P)),!0)}};function P(e){return((0,_.isAnimatedString)(e)?E:j).create(e)}var A=n(6901);function T(e){let t=v(e);return t?t.constructor:A.is.arr(e)?M:(0,A.isAnimatedString)(e)?E:j}var N=n(6901),R=(a=null!=(r=n(2784))?o(c(r)):{},f(!i&&r&&r.__esModule?a:s(a,"default",{value:r,enumerable:!0}),r)),D=n(2784),L=n(6901),z=(e,t)=>{let n=!L.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,D.forwardRef)((r,i)=>{var a;let o;let s=(0,D.useRef)(null),l=n&&(0,D.useCallback)(e=>{s.current=(i&&(L.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(a=r,o=new Set,S.dependencies=o,a.style&&(a={...a,style:t.createAnimatedStyle(a.style)}),a=new O(a),S.dependencies=null,[a,o]),d=(0,L.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,D.useRef)();(0,L.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,L.each)(c,e=>(0,L.addFluidObserver)(e,h)),()=>{p.current&&((0,L.each)(p.current.deps,e=>(0,L.removeFluidObserver)(e,p.current)),L.raf.cancel(p.current.update))})),(0,D.useEffect)(f,[]),(0,L.useOnce)(()=>()=>{let e=p.current;(0,L.each)(e.deps,t=>(0,L.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return R.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&L.raf.write(this.update)}},Z=Symbol.for("AnimatedComponent"),I=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=V(e)||"Anonymous";return(e=N.is.str(e)?a[e]||(a[e]=z(e,i)):e[Z]||(e[Z]=z(e,i))).displayName=`Animated(${t})`,e};return(0,N.eachProp)(e,(t,n)=>{N.is.arr(e)&&(n=V(t)),a[n]=a(t)}),{animated:a}},V=e=>N.is.str(e)?e:e&&N.is.str(e.displayName)?e.displayName:N.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";let r,i;var a,o=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=l(t,i))||r.enumerable});return e},h=(e,t,n)=>(n=null!=e?o(c(e)):{},f(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),p={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(p,{BailSignal:()=>Q,Controller:()=>ek,FrameValue:()=>ea,Globals:()=>tu.Globals,Interpolation:()=>tr,Spring:()=>e6,SpringContext:()=>eR,SpringRef:()=>ez,SpringValue:()=>ef,Trail:()=>e7,Transition:()=>e9,config:()=>F,createInterpolator:()=>td.createInterpolator,easings:()=>td.easings,inferTo:()=>_,interpolate:()=>tl,to:()=>ts,update:()=>tc,useChain:()=>A,useInView:()=>e5,useIsomorphicLayoutEffect:()=>td.useIsomorphicLayoutEffect,useReducedMotion:()=>td.useReducedMotion,useResize:()=>e1,useScroll:()=>eQ,useSpring:()=>eZ,useSpringRef:()=>eB,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>e$,useTransition:()=>eG}),e.exports=f(s({},"__esModule",{value:!0}),p);var m=n(6901),g=n(6901);function v(e,...t){return g.is.fun(e)?e(...t):e}var y=(e,t)=>!0===e||!!(t&&e&&(g.is.fun(e)?e(t):(0,g.toArray)(e).includes(t))),b=(e,t)=>g.is.obj(e)?t&&e[t]:e,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,w=e=>e,j=(e,t=w)=>{let n=k;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);g.is.und(n)||(r[i]=n)}return r},k=["config","onProps","onStart","onChange","onPause","onResume","onRest"],E={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){let t=function(e){let t={},n=0;if((0,g.eachProp)(e,(e,r)=>{E[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,g.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function C(e){return e=(0,g.getFluidValue)(e),g.is.arr(e)?e.map(C):(0,g.isAnimatedString)(e)?g.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function S(e){for(let t in e)return!0;return!1}function O(e){return g.is.fun(e)||g.is.arr(e)&&g.is.obj(e[0])}function M(e,t){e.ref?.delete(e),t?.delete(e)}function P(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function A(e,t,n=1e3){(0,m.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,m.each)(e,(e,i)=>{let a=e.current;if(a.length){let o=n*t[i];isNaN(o)?o=r:r=o,(0,m.each)(a,e=>{(0,m.each)(e.queue,e=>{let t=e.delay;e.delay=e=>o+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,m.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,m.each)(n,(e,t)=>(0,m.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var T=n(6901),N=n(2784),R=n(6901),D=n(6901),L=n(25447),z=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Z={...F.default,mass:1,damping:1,easing:z.easings.linear,clamp:!1},I=class{constructor(){this.velocity=0,Object.assign(this,Z)}};function V(e,t){if(z.is.und(t.decay)){let n=!z.is.und(t.tension)||!z.is.und(t.friction);!n&&z.is.und(t.frequency)&&z.is.und(t.damping)&&z.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var B=[],U=class{constructor(){this.changed=!1,this.values=B,this.toValues=null,this.fromValues=B,this.config=new I,this.immediate=!1}},H=n(6901);function W(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,u,c=y(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=y(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||y(e,t)),l=v(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(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{a.start({...n,callId:e,cancel:c},o)}catch(e){s(e)}}})}var $=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?K(e.get()):Y(e.get(),t.every(e=>e.finished)),K=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function X(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return a||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=j(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let a=new Q,o=new ee;return(async()=>{if($.Globals.skipAnimation)throw J(n),o.result=Y(r,!1),d(o),o;h(a);let s=$.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,$.eachProp)(u,(e,t)=>{$.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if($.Globals.skipAnimation)return J(n),Y(r,!1);try{let t;t=$.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=Y(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof ee)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return $.is.fun(o)&&$.raf.batchedUpdates(()=>{o(m,r,r.item)}),m})():l}function J(e,t){(0,$.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ee=class extends Error{constructor(){super("SkipAnimationSignal")}},et=n(6901),en=n(25447),er=e=>e instanceof ea,ei=1,ea=class extends et.FluidValue{constructor(){super(...arguments),this.id=ei++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,en.getAnimated)(this);return e&&e.getValue()}to(...e){return et.Globals.to(this,e)}interpolate(...e){return(0,et.deprecateInterpolate)(),et.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,et.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||et.frameLoop.sort(this),(0,et.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),es=e=>(1&e[eo])>0,el=e=>(2&e[eo])>0,eu=e=>(4&e[eo])>0,ec=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ed=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ef=class extends ea{constructor(e,t){if(super(),this.animation=new U,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,!D.is.und(e)||!D.is.und(t)){let n=D.is.obj(e)?{...e}:{...t,from:e};D.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(el(this)||this._state.asyncTo)||eu(this)}get goal(){return(0,D.getFluidValue)(this.animation.to)}get velocity(){let e=(0,L.getAnimated)(this);return e instanceof L.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return es(this)}get isAnimating(){return el(this)}get isPaused(){return eu(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,L.getPayload)(r.to);!o&&(0,D.hasFluidValue)(r.to)&&(i=(0,D.toArray)((0,D.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==L.AnimatedString?1:o?o[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=D.is.arr(a.velocity)?a.velocity[l]:a.velocity,o,f=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(D.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(s.lastPosition-d)<=f,o=i*r}else{o=null==s.lastVelocity?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,l=!D.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(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,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(a.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),o=((d=n+a.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=(0,L.getAnimated)(this),l=s.getValue();if(t){let e=(0,D.getFluidValue)(r.to);(l!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return D.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;D.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 D.is.und(e)?(n=this.queue||[],this.queue=[]):n=[D.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()),J(this._state,e&&this._lastCallId),D.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=D.is.obj(n)?n[t]:n)||O(n))&&(n=void 0),null==(r=D.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return es(this)||(e.reverse&&([n,r]=[r,n]),r=(0,D.getFluidValue)(r),D.is.und(r)?(0,L.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,j(e,(e,t)=>/^on/.test(t)?b(e,n):e)),ey(this,e,"onProps"),eb(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 W(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{eu(this)||(ed(this,!0),(0,D.flushCalls)(a.pauseQueue),eb(this,"onPause",Y(this,eh(this,this.animation.to)),this))},resume:()=>{eu(this)&&(ed(this,!1),el(this)&&this._resume(),(0,D.flushCalls)(a.resumeQueue),eb(this,"onResume",Y(this,eh(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=ep(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(G(this));let r=!D.is.und(e.to),i=!D.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(this));this._lastToId=t.callId}let{key:a,defaultProps:o,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||D.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,D.isEqual)(d,u);f&&(s.from=d),d=(0,D.getFluidValue)(d);let h=!(0,D.isEqual)(c,l);h&&this._focus(c);let p=O(t.to),{config:m}=s,{decay:g,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(V(n={...n},t),t={...n,...t}),V(e,t),Object.assign(e,t),Z)null==e[r]&&(e[r]=Z[r]);let{frequency:r,damping:i}=e,{mass:a}=e;z.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,v(t.config,a),t.config!==o.config?v(o.config,a):void 0);let x=(0,L.getAnimated)(this);if(!x||D.is.und(c))return n(Y(this,!0));let w=D.is.und(t.reset)?i&&!t.default:!D.is.und(d)&&y(t.reset,a),j=w?d:this.get(),k=C(c),E=D.is.num(k)||D.is.arr(k)||(0,D.isAnimatedString)(k),_=!p&&(!E||y(o.immediate||t.immediate,a));if(h){let e=(0,L.getAnimatedType)(c);if(e!==x.constructor){if(_)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let S=x.constructor,M=(0,D.hasFluidValue)(c),P=!1;if(!M){let e=w||!es(this)&&f;(h||e)&&(M=!(P=(0,D.isEqual)(C(j),k))),((0,D.isEqual)(s.immediate,_)||_)&&(0,D.isEqual)(m.decay,g)&&(0,D.isEqual)(m.velocity,b)||(M=!0)}if(P&&el(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,D.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,D.hasFluidValue)(c)?null:S==L.AnimatedString?[1]:(0,D.toArray)(k)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,D.each)(ev,e=>ey(this,t,e));let r=Y(this,eh(this,l));(0,D.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&D.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(o.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(X(t.to,t,this._state,this)):M?this._start():el(this)&&!h?this._pendingCalls.add(n):n(K(j))}_focus(e){let t=this.animation;e!==t.to&&((0,D.getFluidObservers)(this)&&this._detach(),t.to=e,(0,D.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,D.hasFluidValue)(t)&&((0,D.addFluidObserver)(t,this),er(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,D.hasFluidValue)(e)&&(0,D.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,D.getFluidValue)(e);if(!D.is.und(n)){let e=(0,L.getAnimated)(this);if(!e||!(0,D.isEqual)(n,e.getValue())){let r=(0,L.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,L.setAnimated)(this,r.create(n)),e&&D.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,L.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,eb(this,"onStart",Y(this,eh(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,L.getAnimated)(this).reset((0,D.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),el(this)||(ec(this,!0),eu(this)||this._resume())}_resume(){D.Globals.skipAnimation?this.finish():D.frameLoop.start(this)}_stop(e,t){if(el(this)){ec(this,!1);let n=this.animation;(0,D.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,D.callFluidObservers)(this,{type:"idle",parent:this});let r=t?G(this.get()):Y(this.get(),eh(this,e??n.to));(0,D.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,eb(this,"onRest",r,this))}}};function eh(e,t){let n=C(t),r=C(e.get());return(0,D.isEqual)(r,n)}function ep(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&_(r),a=(i||e).reverse,o=!i||i.reset;return em({...e,loop:t,default:!1,pause:void 0,to:!a||O(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function em(e){let{to:t,from:n}=e=_(e),r=new Set;return D.is.obj(t)&&eg(t,r),D.is.obj(n)&&eg(n,r),e.keys=r.size?Array.from(r):null,e}function eg(e,t){(0,D.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function ey(e,t,n){e.animation[n]=t[n]!==x(t,n)?b(t[n],e.key):void 0}function eb(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),ew=["onStart","onChange","onRest"],ej=1,ek=class{constructor(e,t){this.id=ej++,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(em(e)),this}start(e){let{queue:t}=this;return e?t=(0,ex.toArray)(e).map(em):this.queue=[],this._flush?this._flush(this,t):(eP(this,t),eE(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 J(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 eE(e,t){return Promise.all(t.map(t=>e_(e,t))).then(t=>q(e,t))}async function e_(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=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)(ew,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(W(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(J(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(X(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){let n=ep(t,o,i);if(n)return eP(e,[n]),e_(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eC(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=em(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eM(n,e,e=>eO(e))}),eS(e,n),n}function eS(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eO(e,t){let n=new ef;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eM(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eP(e,t){(0,ex.each)(t,t=>{eM(e.springs,t,t=>eO(t,e))})}var eA=h(n(2784)),eT=n(2784),eN=n(6901),eR=({children:e,...t})=>{let n=(0,eT.useContext)(eD),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eN.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:a}=eD;return eA.createElement(a,{value:t},e)},eD=(a={},Object.assign(eR,eA.createContext(a)),eR.Provider._context=eR,eR.Consumer._context=eR,eR);eR.Provider=eD.Provider,eR.Consumer=eD.Consumer;var eL=n(6901),ez=()=>{let e=[],t=function(t){(0,eL.deprecateDirectCall)();let r=[];return(0,eL.each)(e,(e,i)=>{if(eL.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,eL.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eL.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eL.each)(e,(e,n)=>{let r=eL.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eL.each)(e,(e,r)=>{if(eL.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,eL.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eL.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eL.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=R.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,N.useMemo)(()=>r||3==arguments.length?ez():void 0,[]),a=(0,N.useRef)(0),o=(0,R.useForceUpdate)(),s=(0,N.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eC(e,t);return!(a.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eS(e,n),s.queue.push(()=>{r(eE(e,t))}),o()}):eE(e,t)}}),[]),l=(0,N.useRef)([...s.ctrls]),u=[],c=(0,R.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,R.each)(l.current.slice(e,c),e=>{M(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,N.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eC(e,u[t])),h=(0,N.useContext)(eR),p=(0,R.usePrev)(h),m=h!==p&&S(h);(0,R.useIsomorphicLayoutEffect)(()=>{a.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,R.each)(e,e=>e())),(0,R.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(P(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,R.useOnce)(()=>()=>{(0,R.each)(s.ctrls,e=>e.stop(!0))});let g=f.map(e=>({...e}));return i?[g,i]:g}function eZ(e,t){let n=T.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eI=n(2784),eV=()=>ez(),eB=()=>(0,eI.useState)(eV)[0],eU=n(6901),eH=(e,t)=>{let n=(0,eU.useConstant)(()=>new ef(e,t));return(0,eU.useOnce)(()=>()=>{n.stop()}),n},eW=n(6901);function e$(e,t,n){let r=eW.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,a,o=eF(e,(e,n)=>{let o=r?r(e,n):t;return a=o.ref,i=i&&o.reverse,o},n||[{}]);if((0,eW.useIsomorphicLayoutEffect)(()=>{(0,eW.each)(o[1].current,(e,t)=>{let n=o[1].current[t+(i?1:-1)];if(P(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=eW.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=h(n(2784)),eK=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,eK.useMemo)(()=>r||3==arguments.length?ez():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,eK.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),M(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eX++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(b,({ctrl:e,item:t,key:n})=>{M(e,f),v(u,t,n)}));let x=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ek},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(a)&&p.sort((e,t)=>a(e.item,t.item));let w=-o,k=(0,eY.useForceUpdate)(),E=j(t),C=new Map,O=(0,eK.useRef)(new Map),A=(0,eK.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,a=e.phase,u=r?r():t,f,h,p=v(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=v(f,e.item,n),!(f=eY.is.obj(f)?_(f):{to:f}).config){let t=d||E.config;f.config=v(t,e.item,n,h)}w+=o;let b={...E,delay:p+w,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(b.from)){let i=r?r():t,a=eY.is.und(i.initial)||g?i.from:i.initial;b.from=v(a,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(O.current.delete(n),l&&(A.current=!0),k())}};let j=eC(e.ctrl,b);"leave"===h&&l?O.current.set(e,{phase:h,springs:j,payload:b}):C.set(e,{phase:h,springs:j,payload:b})});let T=(0,eK.useContext)(eR),N=(0,eY.usePrev)(T),R=T!==N&&S(T);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eY.each)(C,(e,t)=>{if(O.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(O.current.size?O.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:T}),t&&(P(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eX=1,eJ=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eZ(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.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,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e0=n(6901),e1=({container:e,...t})=>{let[n,r]=eZ(()=>({width:0,height:0,...t}),[]);return(0,e0.useIsomorphicLayoutEffect)(()=>{let t=(0,e0.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,e0.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e2=n(2784),e4=n(6901),e3={any:0,all:1};function e5(e,t){let[n,r]=(0,e2.useState)(!1),i=(0,e2.useRef)(),a=e4.is.fun(e)&&e,{to:o={},from:s={},...l}=a?a():{},u=a?t:e,[c,d]=eZ(()=>({from:s,...l}),[]);return(0,e4.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:a,amount:l="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:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e4.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e3[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),a?[i,c]:[i,n]}function e6({children:e,...t}){return e(eZ(t))}var e8=n(6901);function e7({items:e,children:t,...n}){let r=e$(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e8.is.fun(i)?i(r[n]):i})}function e9({items:e,children:t,...n}){return eG(e,n)(t)}var te=n(6901),tt=n(6901),tn=n(25447),tr=class extends ea{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,tt.createInterpolator)(...t);let n=this._get(),r=(0,tn.getAnimatedType)(n);(0,tn.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,tt.isEqual)(t,n)||((0,tn.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ta(this._active)&&to(this)}_get(){let e=tt.is.arr(this.source)?this.source.map(tt.getFluidValue):(0,tt.toArray)((0,tt.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ta(this._active)&&(this.idle=!1,(0,tt.each)((0,tn.getPayload)(this),e=>{e.done=!1}),tt.Globals.skipAnimation?(tt.raf.batchedUpdates(()=>this.advance()),to(this)):tt.frameLoop.start(this))}_attach(){let e=1;(0,tt.each)((0,tt.toArray)(this.source),t=>{(0,tt.hasFluidValue)(t)&&(0,tt.addFluidObserver)(t,this),er(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,tt.each)((0,tt.toArray)(this.source),e=>{(0,tt.hasFluidValue)(e)&&(0,tt.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,tt.toArray)(this.source).reduce((e,t)=>Math.max(e,(er(t)?t.priority:0)+1),0))}};function ti(e){return!1!==e.idle}function ta(e){return!e.size||Array.from(e).every(ti)}function to(e){e.idle||(e.idle=!0,(0,tt.each)((0,tn.getPayload)(e),e=>{e.done=!0}),(0,tt.callFluidObservers)(e,{type:"idle",parent:e}))}var ts=(e,...t)=>new tr(e,t),tl=(e,...t)=>((0,te.deprecateInterpolate)(),new tr(e,t)),tu=n(6901);tu.Globals.assign({createStringInterpolator:tu.createStringInterpolator,to:(e,t)=>new tr(e,t)});var tc=tu.frameLoop.advance,td=n(6901);r=n(8669),i=e.exports,f(p,r,"default"),i&&f(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eP,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>T,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>F,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eS,hasFluidValue:()=>eC,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>eo,hsla:()=>es,is:()=>P,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>Z,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>eq,prefix:()=>e$,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>ea,setFluidGetter:()=>eT,toArray:()=>R,useConstant:()=>to,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tg,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))o.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>U,colors:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>V,to:()=>z,willAdvance:()=>B});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),x-=~e?1:0},i={time:n,handler:e,cancel:r};return g.splice(v(n),0,i),x+=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"):_()};var b=-1,x=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){b<0&&(b=0,"demand"!==d.frameLoop&&y(E))}function E(){~b&&(y(E),d.batchedUpdates(_))}function _(){let e=b,t=v(b=d.now());if(t&&(S(g.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function C(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,S(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function S(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),P={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(P.arr(e)){if(!P.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(P.arr(e)){for(let r=0;rP.und(e)?[]:P.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),T(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),I=null,V=!1,B=O,U=e=>{e.to&&(z=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(V=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},H=new Set,W=[],$=[],q=0,K={get idle(){return!H.size&&!W.length},start(e){q>e.priority?(H.add(e),d.onStart(Y)):(G(e),d(J))},advance:J,sort(e){if(q)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],H.clear()}};function Y(){H.forEach(G),H.clear(),d(J)}function G(e){W.includes(e)||X(e)}function X(e){var t,n;let r;W.splice((t=W,n=t=>t.priority>e.priority,(r=t.findIndex(n))<0?t.length:r),0,e)}function J(e){let t=$;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)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function 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:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=ea.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|eg(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=eo.exec(e))?(255|eh(em(t[1]),ev(t[2]),ev(t[3])))>>>0:(t=es.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 eb=(e,t,n)=>{if(P.fun(e))return e;if(P.arr(e))return eb({range:e,output:t,extrapolate:n});if(P.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",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,a,o,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=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],s,a,o,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return Q(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},eE=Symbol.for("FluidValue.get"),e_=Symbol.for("FluidValue.observers"),eC=e=>!!(e&&e[eE]),eS=e=>e&&e[eE]?e[eE]():e,eO=e=>e[e_]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eP(e,t){let n=e[e_];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eT(this,e)}},eT=(e,t)=>eL(e,eE,t);function eN(e,t){if(e[eE]){let n=e[e_];n||eL(e,e_,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[e_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[e_]=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"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eU(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&&eV.test(n)?eB(n):n||e},eU=e=>{let t=eV.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eH=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eS(e).replace(eV,eB).replace(eF,ey).replace(eD,ey)),n=t.map(e=>e.match(ez).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!eZ.test(t[0])&&t.find(e=>eZ.test(e))?.replace(ez,""),i=0;return t[0].replace(ez,()=>`${r[i++](e)}${n||""}`).replace(eI,eH)}},e$="react-spring: ",eq=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${e$}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=eq(console.warn);function eY(){eK(`${e$}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eG=eq(console.warn);function eX(){eG(`${e$}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 P.str(e)&&("#"==e[0]||/\d/.test(e)||!Z()&&eV.test(e)||e in(I||{}))}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 ts=n(2784),tl=n(2784),tu=n(2784),tc=Z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,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 tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),U({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,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of r(a))i.call(e,l)||l===o||t(e,l,{get:()=>a[l],enumerable:!(s=n(a,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var o=class{}},96721:function(e,t,n){"use strict";let r,i;var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||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:()=>M,animated:()=>M}),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),b=["Webkit","Ms","Moz","O"];v=Object.keys(v).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),v);var x=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,E=/^(rotate|skew)/,_=(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,S=class extends x.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=>_(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},${_(i,n)})`,C(i,0)]:e=>[`${t}(${e.map(e=>_(e,n)).join(",")})`,C(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,a)),super(r)}},O=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[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 M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).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!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new S(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:s}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[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,l,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({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},65304:function(e,t,n){"use strict";let r,i;n.d(t,{mY:function(){return eJ},U8:function(){return e4}});var a=n(7896),o=n(2784),s=n.t(o,2),l=n(41816),u=n(26215),c=n(34540),d=n(64680);let f=s["useId".toString()]||(()=>void 0),h=0;function p(e){let[t,n]=o.useState(f());return(0,d.b)(()=>{e||n(e=>null!=e?e:String(h++))},[e]),e||(t?`radix-${t}`:"")}var m=n(73597),g=n(72130),v=n(86029);let y="dismissableLayer.update",b=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...h}=e,p=(0,o.useContext)(b),[m,x]=(0,o.useState)(null),[,k]=(0,o.useState)({}),E=(0,u.e)(t,e=>x(e)),_=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=_.indexOf(C),O=m?_.indexOf(m):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,P=O>=S,A=function(e){let t=(0,v.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){j("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=[...p.branches].some(e=>e.contains(t));!P||n||(null==s||s(e),null==d||d(e),e.defaultPrevented||null==f||f())}),T=function(e){let t=(0,v.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&j("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;[...p.branches].some(e=>e.contains(t))||(null==c||c(e),null==d||d(e),e.defaultPrevented||null==f||f())});return!function(e){let t=(0,v.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{O!==p.layers.size-1||(null==i||i(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))}),(0,o.useEffect)(()=>{if(m)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),w(),()=>{n&&1===p.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[m,n,p]),(0,o.useEffect)(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),w())},[m,p]),(0,o.useEffect)(()=>{let e=()=>k({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,o.createElement)(g.WV.div,(0,a.Z)({},h,{ref:E,style:{pointerEvents:M?P?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,l.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,l.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function w(){let e=new CustomEvent(y);document.dispatchEvent(e)}function j(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,g.jH)(i,a):i.dispatchEvent(a)}let k="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",_={bubbles:!1,cancelable:!0},C=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,d]=(0,o.useState)(null),f=(0,v.W)(i),h=(0,v.W)(s),p=(0,o.useRef)(null),m=(0,u.e)(t,e=>d(e)),y=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:M(p.current,{select:!0})}function t(e){y.paused||!c||c.contains(e.relatedTarget)||M(p.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,c,y.paused]),(0,o.useEffect)(()=>{if(c){P.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(k,_);c.addEventListener(k,f),c.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}(S(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&M(c))}return()=>{c.removeEventListener(k,f),setTimeout(()=>{let t=new CustomEvent(E,_);c.addEventListener(E,h),c.dispatchEvent(t),t.defaultPrevented||M(null!=e?e:document.body,{select:!0}),c.removeEventListener(E,h),P.remove(y)},0)}}},[c,f,h,y]);let b=(0,o.useCallback)(e=>{if(!n&&!r||y.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=S(e);return[O(t,e),O(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,y.paused]);return(0,o.createElement)(g.WV.div,(0,a.Z)({tabIndex:-1},l,{ref:m,onKeyDown:b}))});function S(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 O(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 P=(i=[],{add(e){let t=i[0];e!==t&&(null==t||t.pause()),(i=A(i,e)).unshift(e)},remove(e){var t;null===(t=(i=A(i,e))[0])||void 0===t||t.resume()}});function A(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var T=n(28316);let N=(0,o.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?T.createPortal((0,o.createElement)(g.WV.div,(0,a.Z)({},i,{ref:t})),r):null}),R=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=(0,o.useState)(),a=(0,o.useRef)({}),s=(0,o.useRef)(e),l=(0,o.useRef)("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,o.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,o.useEffect)(()=>{let e=D(a.current);l.current="mounted"===u?e:"none"},[u]),(0,d.b)(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=D(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),(0,d.b)(()=>{if(r){let e=e=>{let t=D(a.current).includes(e.animationName);e.target===r&&t&&(0,T.flushSync)(()=>c("ANIMATION_END"))},t=e=>{e.target===r&&(l.current=D(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)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:(0,o.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=(0,u.e)(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,o.cloneElement)(i,{ref:a}):null};function D(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";let L=0;function z(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var F=n(22970),Z=n(95346),I=n(22442),V=(0,n(64597)._)(),B=function(){},U=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:B,onWheelCapture:B,onTouchMoveCapture:B}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=(0,F._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=(0,I.q)([n,t]),x=(0,F.pi)((0,F.pi)({},y),i);return o.createElement(o.Fragment,null,d&&o.createElement(h,{sideCar:V,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?o.cloneElement(o.Children.only(l),(0,F.pi)((0,F.pi)({},x),{ref:b})):o.createElement(void 0===v?"div":v,(0,F.pi)({},x,{className:u,ref:b}),l))});U.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},U.classNames={fullWidth:Z.zi,zeroRight:Z.pF};var H=n(57758),W=n(181),$=n(33225),q=!1;if("undefined"!=typeof window)try{var K=Object.defineProperty({},"passive",{get:function(){return q=!0,!0}});window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch(e){q=!1}var Y=!!q&&{passive:!1},G=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},X=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},J=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Q(e,n)){var r=ee(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Q=function(e,t){return"v"===e?G(t):X(t)},ee=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},et=function(e,t,n,r,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=ee(e,l),m=p[0],g=p[1]-p[2]-o*m;(m||g)&&Q(e,l)&&(f+=g,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},en=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},er=function(e){return[e.deltaX,e.deltaY]},ei=function(e){return e&&"current"in e?e.current:e},ea=0,eo=[],es=(0,H.L)(V,function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(ea++)[0],a=o.useState(function(){return(0,$.Ws)()})[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,F.ev)([e.lockRef.current],(e.shards||[]).map(ei),!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=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,a=en(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=J(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=J(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return et(h,t,e,"h"===h?l:u,!0)},[]),u=o.useCallback(function(e){if(eo.length&&eo[eo.length-1]===a){var n="deltaY"in e?er(e):en(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=(s.current.shards||[]).map(ei).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.preventDefault()}}},[]),c=o.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)},[]),d=o.useCallback(function(e){n.current=en(e),r.current=void 0},[]),f=o.useCallback(function(t){c(t.type,er(t),t.target,l(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,en(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return eo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Y),document.addEventListener("touchmove",u,Y),document.addEventListener("touchstart",d,Y),function(){eo=eo.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Y),document.removeEventListener("touchmove",u,Y),document.removeEventListener("touchstart",d,Y)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(W.jp,{gapMode:"margin"}):null)}),el=o.forwardRef(function(e,t){return o.createElement(U,(0,F.pi)({},e,{ref:t,sideCar:es}))});el.classNames=U.classNames;var eu=n(49732),ec=n(99575);let ed="Dialog",[ef,eh]=(0,c.b)(ed),[ep,em]=ef(ed),eg="DialogPortal",[ev,ey]=ef(eg,{forceMount:void 0}),eb="DialogOverlay",ex=(0,o.forwardRef)((e,t)=>{let n=ey(eb,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=em(eb,e.__scopeDialog);return s.modal?(0,o.createElement)(R,{present:r||s.open},(0,o.createElement)(ew,(0,a.Z)({},i,{ref:t}))):null}),ew=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,i=em(eb,n);return(0,o.createElement)(el,{as:ec.g7,allowPinchZoom:!0,shards:[i.contentRef]},(0,o.createElement)(g.WV.div,(0,a.Z)({"data-state":eS(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),ej="DialogContent",ek=(0,o.forwardRef)((e,t)=>{let n=ey(ej,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=em(ej,e.__scopeDialog);return(0,o.createElement)(R,{present:r||s.open},s.modal?(0,o.createElement)(eE,(0,a.Z)({},i,{ref:t})):(0,o.createElement)(e_,(0,a.Z)({},i,{ref:t})))}),eE=(0,o.forwardRef)((e,t)=>{let n=em(ej,e.__scopeDialog),r=(0,o.useRef)(null),i=(0,u.e)(t,n.contentRef,r);return(0,o.useEffect)(()=>{let e=r.current;if(e)return(0,eu.R)(e)},[]),(0,o.createElement)(eC,(0,a.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,l.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,l.M)(e.onFocusOutside,e=>e.preventDefault())}))}),e_=(0,o.forwardRef)((e,t)=>{let n=em(ej,e.__scopeDialog),r=(0,o.useRef)(!1);return(0,o.createElement)(eC,(0,a.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()}}))}),eC=(0,o.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=em(ej,n),d=(0,o.useRef)(null),f=(0,u.e)(t,d);return(0,o.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:z()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:z()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(C,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},(0,o.createElement)(x,(0,a.Z)({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eS(c.open)},l,{ref:f,onDismiss:()=>c.onOpenChange(!1)}))),!1)});function eS(e){return e?"open":"closed"}let[eO,eM]=(0,c.k)("DialogTitleWarning",{contentName:ej,titleName:"DialogTitle",docsSlug:"dialog"}),eP=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=(0,o.useRef)(null),u=(0,o.useRef)(null),[c=!1,d]=(0,m.T)({prop:r,defaultProp:i,onChange:a});return(0,o.createElement)(ep,{scope:t,triggerRef:l,contentRef:u,contentId:p(),titleId:p(),descriptionId:p(),open:c,onOpenChange:d,onOpenToggle:(0,o.useCallback)(()=>d(e=>!e),[d]),modal:s},n)},eA=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=em(eg,t);return(0,o.createElement)(ev,{scope:t,forceMount:n},o.Children.map(r,e=>(0,o.createElement)(R,{present:n||a.open},(0,o.createElement)(N,{asChild:!0,container:i},e))))};var eT=n(40844),eN='[cmdk-group=""]',eR='[cmdk-group-items=""]',eD='[cmdk-item=""]',eL=`${eD}:not([aria-disabled="true"])`,ez="cmdk-item-select",eF="data-value",eZ=(e,t)=>eT(e,t),eI=o.createContext(void 0),eV=()=>o.useContext(eI),eB=o.createContext(void 0),eU=()=>o.useContext(eB),eH=o.createContext(void 0),eW=o.forwardRef((e,t)=>{let n=o.useRef(null),r=e1(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),i=e1(()=>new Set),a=e1(()=>new Map),s=e1(()=>new Map),l=e1(()=>new Set),u=eQ(e),{label:c,children:d,value:f,onValueChange:h,filter:p,shouldFilter:m,...g}=e,v=o.useId(),y=o.useId(),b=o.useId(),x=e5();e0(()=>{if(void 0!==f){let e=f.trim().toLowerCase();r.current.value=e,x(6,S),w.emit()}},[f]);let w=o.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.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)C(),E(),x(1,_);else if("value"===e){if((null==(i=u.current)?void 0:i.value)!==void 0){null==(o=(a=u.current).onValueChange)||o.call(a,t);return}n||x(5,S)}w.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),j=o.useMemo(()=>({value:(e,t)=>{t!==s.current.get(e)&&(s.current.set(e,t),r.current.filtered.items.set(e,k(t)),x(2,()=>{E(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),x(3,()=>{C(),E(),r.current.value||_(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),r.current.filtered.items.delete(e),x(4,()=>{C(),_(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>u.current.shouldFilter,label:c||e["aria-label"],listId:v,inputId:b,labelId:y}),[]);function k(e){var t;let n=(null==(t=u.current)?void 0:t.filter)??eZ;return e?n(e,r.current.search):0}function E(){if(!n.current||!r.current.search||!1===u.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=a.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=""]');M().sort((t,n)=>{let r=t.getAttribute(eF),i=n.getAttribute(eF);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(eR);t?t.appendChild(e.parentElement===t?e:e.closest(`${eR} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${eR} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${eN}[${eF}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function _(){let e=M().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(eF);w.setState("value",t||void 0)}function C(){if(!r.current.search||!1===u.current.shouldFilter){r.current.filtered.count=i.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of i.current){let n=k(s.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of a.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 S(){var e,t,n;let r=O();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eN))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function O(){return n.current.querySelector(`${eD}[aria-selected="true"]`)}function M(){return Array.from(n.current.querySelectorAll(eL))}function P(e){let t=M()[e];t&&w.setState("value",t.getAttribute(eF))}function A(e){var t;let n=O(),r=M(),i=r.findIndex(e=>e===n),a=r[i+e];null!=(t=u.current)&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState("value",a.getAttribute(eF))}function T(e){let t=O(),n=null==t?void 0:t.closest(eN),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,eN):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eN))?void 0:n.querySelector(eL);r?w.setState("value",r.getAttribute(eF)):A(e)}let N=()=>P(M().length-1),R=e=>{e.preventDefault(),e.metaKey?N():e.altKey?T(1):A(1)},D=e=>{e.preventDefault(),e.metaKey?P(0):e.altKey?T(-1):A(-1)};return o.createElement("div",{ref:e2([n,t]),...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&R(e);break;case"ArrowDown":R(e);break;case"p":case"k":e.ctrlKey&&D(e);break;case"ArrowUp":D(e);break;case"Home":e.preventDefault(),P(0);break;case"End":e.preventDefault(),N();break;case"Enter":{e.preventDefault();let t=O();if(t){let e=new Event(ez);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:e6},c),o.createElement(eB.Provider,{value:w},o.createElement(eI.Provider,{value:j},d)))}),e$=o.forwardRef((e,t)=>{let n=o.useId(),r=o.useRef(null),i=o.useContext(eH),a=eV(),s=eQ(e);e0(()=>a.item(n,i),[]);let l=e3(n,r,[e.value,e.children,r]),u=eU(),c=e4(e=>e.value&&e.value===l.current),d=e4(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function f(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(o.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(ez,f),()=>t.removeEventListener(ez,f)},[d,e.onSelect,e.disabled]),!d)return null;let{disabled:h,value:p,onSelect:m,...g}=e;return o.createElement("div",{ref:e2([r,t]),...g,"cmdk-item":"",role:"option","aria-disabled":h||void 0,"aria-selected":c||void 0,"data-selected":c||void 0,onPointerMove:h?void 0:function(){u.setState("value",l.current,!0)},onClick:h?void 0:f},e.children)}),eq=o.forwardRef((e,t)=>{let{heading:n,children:r,...i}=e,a=o.useId(),s=o.useRef(null),l=o.useRef(null),u=o.useId(),c=eV(),d=e4(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));e0(()=>c.group(a),[]),e3(a,s,[e.value,e.heading,l]);let f=o.createElement(eH.Provider,{value:a},r);return o.createElement("div",{ref:e2([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&o.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),eK=o.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=o.useRef(null),a=e4(e=>!e.search);return n||a?o.createElement("div",{ref:e2([i,t]),...r,"cmdk-separator":"",role:"separator"}):null}),eY=o.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=null!=e.value,a=eU(),s=e4(e=>e.search),l=eV();return o.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),o.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:i?e.value:s,onChange:e=>{i||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),eG=o.forwardRef((e,t)=>{let{children:n,...r}=e,i=o.useRef(null),a=o.useRef(null),s=eV();return o.useEffect(()=>{if(a.current&&i.current){let e=a.current,t=i.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)}}},[]),o.createElement("div",{ref:e2([i,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},o.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),eX=o.forwardRef((e,t)=>{let{open:n,onOpenChange:r,container:i,...a}=e;return o.createElement(eP,{open:n,onOpenChange:r},o.createElement(eA,{container:i},o.createElement(ex,{"cmdk-overlay":""}),o.createElement(ek,{"aria-label":e.label,"cmdk-dialog":""},o.createElement(eW,{ref:t,...a}))))}),eJ=Object.assign(eW,{List:eG,Item:e$,Input:eY,Group:eq,Separator:eK,Dialog:eX,Empty:o.forwardRef((e,t)=>{let n=o.useRef(!0),r=e4(e=>0===e.filtered.count);return o.useEffect(()=>{n.current=!1},[]),n.current||!r?null:o.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:o.forwardRef((e,t)=>{let{progress:n,children:r,...i}=e;return o.createElement("div",{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},o.createElement("div",{"aria-hidden":!0},r))})});function eQ(e){let t=o.useRef(e);return e0(()=>{t.current=e}),t}var e0=typeof window>"u"?o.useEffect:o.useLayoutEffect;function e1(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function e2(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function e4(e){let t=eU(),n=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,n,n)}function e3(e,t,n){let r=o.useRef(),i=eV();return e0(()=>{var a;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()}})();i.value(e,o),null==(a=t.current)||a.setAttribute(eF,o),r.current=o}),r}var e5=()=>{let[e,t]=o.useState(),n=e1(()=>new Map);return e0(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},e6={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 s(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:s,center:function(e,t,n=0,r=e.length){let i=s(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 s=o},51558:function(e,t,n){"use strict";var r=n(3648),i=n(22327),a=(0,r.Z)(i.Z,"Map");t.Z=a},28114:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=(0,n(3648).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();++t0&&i(c)?n>1?e(c,n-1,i,a,o):(0,r.Z)(o,c):a||(o[o.length]=c)}return o}},1809: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 s=a[++r];if(!1===t(i[s],s,i))break}return e}},90820:function(e,t,n){"use strict";var r=n(1809),i=n(91139);t.Z=function(e,t){return e&&(0,r.Z)(e,t,i.Z)}},5489:function(e,t,n){"use strict";var r=n(92739),i=n(14551);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=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new i.Z:void 0;for(l.set(e,t),l.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)}},37578:function(e,t,n){"use strict";var r=n(62098);t.Z=function(e){var t=new e.constructor(e.byteLength);return new r.Z(t).set(new r.Z(e)),t}},18787:function(e,t,n){"use strict";var r=n(22327),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,s=o?o.allocUnsafe:void 0;t.Z=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},42383:function(e,t,n){"use strict";var r=n(37578);t.Z=function(e,t){var n=t?(0,r.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},43737: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 s.apply(void 0,arguments)})},51075:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(59866),i="\ud800-\udfff",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",s="[^"+i+"]",l="(?:\ud83c[\udde6-\uddff]){2}",u="[\ud800-\udbff][\udc00-\udfff]",c="(?:"+a+"|"+o+")?",d="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[s,l,u].join("|")+")"+d+c+")*",h=RegExp(o+"(?="+o+")|(?:"+[s+a+"?",a,l,u,"["+i+"]"].join("|")+")"+(d+c+f),"g"),p=function(e){return(0,r.Z)(e)?e.match(h)||[]:e.split("")}},11620:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i,a=n(28114);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 s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=(i=(r=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,function(e,n,r,i){t.push(r?i.replace(l,"$1"):n||e)}),t},function(e){return 500===i.size&&i.clear(),e})).cache,r)},14551:function(e,t,n){"use strict";var r=n(81470),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}},8919: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""}},54897:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(88225),i=n(22327),a=function(){return i.Z.Date.now()},o=n(47421),s=Math.max,l=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 b(e){var n=e-h,r=e-p;return void 0===h||n>=t||n<0||g&&r>=c}function x(){var e,n,r,i=a();if(b(i))return w(i);f=setTimeout(x,(e=i-h,n=i-p,r=t-e,g?l(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=b(n);if(i=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=(0,o.Z)(t)||0,(0,r.Z)(n)&&(m=!!n.leading,c=(g="maxWait"in n)?s((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}},92725:function(e,t){"use strict";t.Z=function(e,t){return e===t||e!=e&&t!=t}},83894:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i=n(1619),a=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1&&e%1==0&&e<=9007199254740991}},88225:function(e,t){"use strict";t.Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},99982:function(e,t){"use strict";t.Z=function(e){return null!=e&&"object"==typeof e}},36394:function(e,t,n){"use strict";var r=n(85084),i=n(61153),a=n(99982),o=Object.prototype,s=Function.prototype.toString,l=o.hasOwnProperty,u=s.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=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},81470:function(e,t,n){"use strict";var r=n(85084),i=n(99982);t.Z=function(e){return"symbol"==typeof e||(0,i.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},93779:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85084),i=n(45432),a=n(99982),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 s=n(9769),l=n(20329),u=l.Z&&l.Z.isTypedArray,c=u?(0,s.Z)(u):function(e){return(0,a.Z)(e)&&(0,i.Z)(e.length)&&!!o[(0,r.Z)(e)]}},91139:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(62212),i=n(59208),a=(0,n(35100).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,s=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},l=n(18226),u=function(e){return(0,l.Z)(e)?(0,r.Z)(e):s(e)}},81330:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(62212),i=n(88225),a=n(59208),o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},s=Object.prototype.hasOwnProperty,l=function(e){if(!(0,i.Z)(e))return o(e);var t=(0,a.Z)(e),n=[];for(var r in e)"constructor"==r&&(t||!s.call(e,r))||n.push(r);return n},u=n(18226),c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},6539:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(25079),a=n(85420),o=n(92739),s=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},l=n(5489),u=n(95068),c=n(14551),d=function(e,t){var n,r;return t=(0,o.Z)(t,e),n=e,null==(e=(r=t).length<2?n:(0,l.Z)(n,(0,u.Z)(r,0,-1)))||delete e[c.Z(s(t))]},f=n(28363),h=n(36394),p=function(e){return(0,h.Z)(e)?void 0:e},m=n(45384),g=n(22203),v=n(14964),y=n(58242),b=(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 s=t.length;s--;)d(n,t[s]);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+""))},78790:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(45384),i=n(25079),a=n(5489),o=n(27491),s=n(14370),l=n(18226),u=function(e,t){var n=-1,r=(0,l.Z)(e)?Array(e.length):[];return(0,s.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(9769),f=n(81470),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,s=null===t,l=t==t,u=(0,f.Z)(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index},m=n(45036),g=n(52059),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(71811),b=n(90083),x=(0,y.Z)(function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,b.Z)(e,t[0],t[1])?t=[]:n>2&&(0,b.Z)(t[0],t[1],t[2])&&(t=[t[0]]),v(e,(0,r.Z)(t,1),[])})},57978:function(e,t){"use strict";t.Z=function(){return[]}},35197:function(e,t,n){"use strict";var r=n(54897),i=n(88225);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})}},47421: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(88225),s=n(81470),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=function(e){if("number"==typeof e)return e;if((0,s.Z)(e))return l;if((0,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)?l:+e}},68650:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r,i=n(25079),a=n(40871),o=n(95849),s=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n},l=(r=n(91139).Z,function(e){var t,n=(0,a.Z)(e);return"[object Map]"==n?(0,o.Z)(e):"[object Set]"==n?s(e):(t=r(e),(0,i.Z)(t,function(t){return[t,e[t]]}))})},16601:function(e,t,n){"use strict";var r=n(36556);t.Z=function(e){return null==e?"":(0,r.Z)(e)}},71609:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(90821),i=n(59866),a=n(51075),o=n(16601),s=function(e){e=(0,o.Z)(e);var t=(0,i.Z)(e)?(0,a.Z)(e):void 0,n=t?t[0]:e.charAt(0),s=t?(0,r.Z)(t,1).join(""):e.slice(1);return n.toUpperCase()+s}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},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||!l(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,b=e=>/^\w*$/.test(e),x=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,t,n)=>{let r=-1,i=b(t)?[t]:x(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=>l(e)&&!Object.keys(e).length,S=(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))},O=e=>Array.isArray(e)?e:[e],M=e=>"string"==typeof e,P=(e,t,n,r,i)=>M(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),A=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},T=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 l(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=>M(e),I=e=>"radio"===e.type,V=e=>e instanceof RegExp;let B={value:!1,isValid:!1},U={value:!0,isValid:!0};var H=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?U:{value:e[0].value,isValid:!0}:U:B}return B};let W={isValid:!1,value:null};var $=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function q(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=>l(e)&&!V(e)?e:{value:e,message:""},Y=async(e,t,n,r,a)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:b,name:x,valueAsNumber:w,mount:j,disabled:k}=e._f,_=v(t,x);if(!j||k)return{};let S=u?u[0]:s,O=e=>{r&&S.reportValidity&&(S.setCustomValidity(y(e)?"":e||""),S.reportValidity())},P={},T=I(s),N=i(s),R=(w||L(s))&&g(s.value)&&g(_)||F(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,D=A.bind(null,x,n,P),B=(e,t,n,r=E.maxLength,i=E.minLength)=>{let a=e?t:n;P[x]={type:e?r:i,message:a,ref:s,...D(e?r:i,a)}};if(a?!Array.isArray(_)||!_.length:c&&(!(T||N)&&(R||o(_))||y(_)&&!_||N&&!H(u).isValid||T&&!$(u).isValid)){let{value:e,message:t}=Z(c)?{value:!!c,message:c}:K(c);if(e&&(P[x]={type:E.required,message:t,ref:S,...D(E.required,t)},!n))return O(t),P}if(!R&&(!o(h)||!o(p))){let e,t;let r=K(p),i=K(h);if(o(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==s.type,l="week"==s.type;M(r.value)&&_&&(e=o?a(_)>a(r.value):l?_>r.value:n>new Date(r.value)),M(i.value)&&_&&(t=o?a(_)r.value),o(i.value)||(t=n+e.value,i=!o(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(P[x].message),P}if(m&&!R&&M(_)){let{value:e,message:t}=K(m);if(V(e)&&!_.match(e)&&(P[x]={type:E.pattern,message:t,ref:s,...D(E.pattern,t)},!n))return O(t),P}if(b){if(z(b)){let e=q(await b(_,t),S);if(e&&(P[x]={...e,...D(E.validate,e.message)},!n))return O(e.message),P}else if(l(b)){let e={};for(let r in b){if(!C(e)&&!n)break;let i=q(await b[r](_,t),S,r);i&&(e={...i,...D(r,i.message)},O(i.message),n&&(P[x]=e))}if(!C(e)&&(P[x]={ref:S,...e},!n))return P}}return O(!0),P};function G(e,t){let n=Array.isArray(t)?t:b(t)?[t]:x(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)||!s(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)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!Q(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>I(e)||i(e),en=e=>F(e)&&e.isConnected,er=e=>{for(let t in e)if(z(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):o(e[n])||(t[n]=!0);return t}var ea=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?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&&M(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:I(t)?$(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?H(e.refs).value:eo(g(t.value)?e.ref.value:t.value,e)}var el=(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:V(e)?e.source:l(e)?V(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||b(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&&G(e,t);let ep={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),n=r.useRef(),[s,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},s={},c=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},f=n.shouldUnregister?{}:p(c),b={action:!1,mount:!1,watch:!1},x={mount:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,_={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={values:X(),array:X(),state:X()},A=T(n.mode),Z=T(n.reValidateMode),I=n.criteriaMode===k.all,V=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},B=async e=>{if(_.isValid||e){let e=n.resolver?C((await K()).errors):await ei(s,!0);e!==r.isValid&&S.state.next({isValid:e})}},U=(e,t)=>{(_.isValidating||_.validatingFields)&&((e||Array.from(x.mount)).forEach(e=>{e&&(t?w(r.validatingFields,e,t):G(r.validatingFields,e))}),S.state.next({validatingFields:r.validatingFields,isValidating:!C(r.validatingFields)}))},H=(e,t)=>{w(r.errors,e,t),S.state.next({errors:r.errors})},W=(e,t,n,r)=>{let i=v(s,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:es(i._f)):ev(e,a),b.mount&&B()}},$=(e,t,n,i,a)=>{let o=!1,l=!1,u={name:e},d=!!(v(s,e)&&v(s,e)._f&&v(s,e)._f.disabled);if(!n||i){_.isDirty&&(l=r.isDirty,r.isDirty=u.isDirty=em(),o=l!==u.isDirty);let n=d||Q(v(c,e),t);l=!!(!d&&v(r.dirtyFields,e)),n||d?G(r.dirtyFields,e):w(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,o=o||_.dirtyFields&&!n!==l}if(n){let t=v(r.touchedFields,e);t||(w(r.touchedFields,e,n),u.touchedFields=r.touchedFields,o=o||_.touchedFields&&t!==n)}return o&&a&&S.state.next(u),o?u:{}},q=(n,i,a,o)=>{let s=v(r.errors,n),l=_.isValid&&y(i)&&r.isValid!==i;if(e.delayError&&a?(t=V(()=>H(n,a)))(e.delayError):(clearTimeout(E),t=null,a?w(r.errors,n,a):G(r.errors,n)),(a?!Q(s,a):s)||!C(o)||l){let e={...o,...l&&y(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},S.state.next(e)}},K=async e=>{U(e,!0);let t=await n.resolver(f,n.context,el(e||x.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return U(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):G(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,...s}=o;if(e){let s=x.array.has(e.name);U([a],!0);let l=await Y(o,f,I,n.shouldUseNativeValidation&&!t,s);if(U([a]),l[e.name]&&(i.valid=!1,t))break;t||(v(l,e.name)?s?D(r.errors,l,e.name):w(r.errors,e.name,l[e.name]):G(r.errors,e.name))}s&&await ei(s,t,i)}}return i.valid},em=(e,t)=>(e&&t&&w(f,e,t),!Q(ek(),c)),eg=(e,t,n)=>P(e,x,{...b.mount?f:g(t)?c:M(e)?{[e]:t}:t},n,t),ev=(e,t,n={})=>{let r=v(s,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||S.values.next({name:e,values:{...f}})))}(n.shouldDirty||n.shouldTouch)&&$(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}`,l=v(s,o);!x.array.has(e)&&J(i)&&(!l||l._f)||a(i)?ev(o,i,n):ey(o,i,n)}},eb=(e,t,n={})=>{let i=v(s,e),a=x.array.has(e),l=p(t);w(f,e,l),a?(S.array.next({name:e,values:{...f}}),(_.isDirty||_.dirtyFields)&&n.shouldDirty&&S.state.next({name:e,dirtyFields:ea(c,f),isDirty:em(e,l)})):!i||i._f||o(l)?ev(e,l,n):ey(e,l,n),N(e,x)&&S.state.next({...r}),S.values.next({name:b.mount?e:void 0,values:{...f}})},ex=async e=>{b.mount=!0;let i=e.target,a=i.name,o=!0,l=v(s,a),c=e=>{o=Number.isNaN(e)||e===v(f,a,e)};if(l){let d,h;let p=i.type?es(l._f):u(e),m=e.type===j.BLUR||e.type===j.FOCUS_OUT,g=!ec(l._f)&&!n.resolver&&!v(r.errors,a)&&!l._f.deps||ef(m,v(r.touchedFields,a),r.isSubmitted,Z,A),y=N(a,x,m);w(f,a,p),m?(l._f.onBlur&&l._f.onBlur(e),t&&t(0)):l._f.onChange&&l._f.onChange(e);let b=$(a,p,m,!1),k=!C(b)||y;if(m||S.values.next({name:a,type:e.type,values:{...f}}),g)return _.isValid&&B(),k&&S.state.next({name:a,...y?{}:b});if(!m&&y&&S.state.next({...r}),n.resolver){let{errors:e}=await K([a]);if(c(p),o){let t=ed(r.errors,s,a),n=ed(e,s,t.name||a);d=n.error,a=n.name,h=C(e)}}else U([a],!0),d=(await Y(l,f,I,n.shouldUseNativeValidation))[a],U([a]),c(p),o&&(d?h=!1:_.isValid&&(h=await ei(s,!0)));o&&(l._f.deps&&ej(l._f.deps),q(a,h,d,b))}},ew=(e,t)=>{if(v(r.errors,t)&&e.focus)return e.focus(),1},ej=async(e,t={})=>{let i,a;let o=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(s,e);return await ei(t&&t._f?{[e]:t}:t)}))).every(Boolean))||r.isValid)&&B():a=i=await ei(s);return S.state.next({...!M(e)||_.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&R(s,ew,e?o:x.mount),a},ek=e=>{let t={...b.mount?f:c};return g(e)?t:M(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)}),e_=(e,t,n)=>{let i=(v(s,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:l,...u}=v(r.errors,e)||{};w(r.errors,e,{...u,...t,ref:i}),S.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?O(e):x.mount)x.mount.delete(i),x.array.delete(i),t.keepValue||(G(s,i),G(f,i)),t.keepError||G(r.errors,i),t.keepDirty||G(r.dirtyFields,i),t.keepTouched||G(r.touchedFields,i),t.keepIsValidating||G(r.validatingFields,i),n.shouldUnregister||t.keepDefaultValue||G(c,i);S.values.next({values:{...f}}),S.state.next({...r,...t.keepDirty?{isDirty:em()}:{}}),t.keepIsValid||B()},eS=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(y(e)&&b.mount||e){let a=e?void 0:g(i)?es(n?n._f:v(r,t)._f):i;w(f,t,a),$(t,a,!1,!1,!0)}},eO=(e,t={})=>{let r=v(s,e),i=y(t.disabled);return w(s,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),x.mount.add(e),r?eS({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:ex,onBlur:ex,ref:i=>{if(i){eO(e,t),r=v(s,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(s,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(s,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(d(x.array,e)&&b.action)&&x.unMount.add(e)}}},eM=()=>n.shouldFocusError&&R(s,ew,x.mount),eP=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=p(f);if(S.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await K();r.errors=e,o=t}else await ei(s);if(G(r.errors,"root"),C(r.errors)){S.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...r.errors},i),eM(),setTimeout(eM);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:C(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},eA=(t,n={})=>{let i=t?p(t):c,a=p(i),o=C(t),l=o?c:a;if(n.keepDefaultValues||(c=i),!n.keepValues){if(n.keepDirtyValues)for(let e of x.mount)v(r.dirtyFields,e)?w(l,e,v(f,e)):eb(e,v(l,e));else{if(h&&g(t))for(let e of x.mount){let t=v(s,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}}}}s={}}f=e.shouldUnregister?n.keepDefaultValues?p(c):{}:p(l),S.array.next({values:{...l}}),S.values.next({values:{...l}})}x={mount:n.keepDirtyValues?x.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!_.isValid||!!n.keepIsValid||!!n.keepDirtyValues,b.watch=!!e.shouldUnregister,S.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})},eT=(e,t)=>eA(z(e)?e(f):e,t);return{control:{register:eO,unregister:eC,getFieldState:eE,handleSubmit:eP,setError:e_,_executeSchema:K,_getWatch:eg,_getDirty:em,_updateValid:B,_removeUnmounted:()=>{for(let e of x.unMount){let t=v(s,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eC(e)}x.unMount=new Set},_updateFieldArray:(e,t=[],n,i,a=!0,o=!0)=>{if(i&&n){if(b.action=!0,o&&Array.isArray(v(s,e))){let t=n(v(s,e),i.argA,i.argB);a&&w(s,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(_.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)}_.dirtyFields&&(r.dirtyFields=ea(c,f)),S.state.next({name:e,isDirty:em(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else w(f,e,t)},_updateDisabledField:eS,_getFieldArray:t=>m(v(b.mount?f:c,t,e.shouldUnregister?v(c,t,[]):[])),_reset:eA,_resetDefaultValues:()=>z(n.defaultValues)&&n.defaultValues().then(e=>{eT(e,n.resetOptions),S.state.next({isLoading:!1})}),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{y(e)&&(S.state.next({disabled:e}),R(s,(t,n)=>{let r=v(s,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:S,_proxyFormState:_,_setErrors:e=>{r.errors=e,S.state.next({errors:r.errors,isValid:!1})},get _fields(){return s},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return c},get _names(){return x},set _names(value){x=value},get _formState(){return r},set _formState(value){r=value},get _options(){return n},set _options(value){n={...n,...value}}},trigger:ej,register:eO,handleSubmit:eP,watch:(e,t)=>z(e)?S.values.subscribe({next:n=>e(eg(void 0,t),n)}):eg(e,t,!0),setValue:eb,getValues:ek,reset:eT,resetField:(e,t={})=>{v(s,e)&&(g(t.defaultValue)?eb(e,p(v(c,e))):(eb(e,t.defaultValue),w(c,e,p(t.defaultValue))),t.keepTouched||G(r.touchedFields,e),t.keepDirty||(G(r.dirtyFields,e),r.isDirty=t.defaultValue?em(e,p(v(c,e))):em()),!t.keepError&&(G(r.errors,e),_.isValid&&B()),S.state.next({...r}))},clearErrors:e=>{e&&O(e).forEach(e=>G(r.errors,e)),S.state.next({errors:e?r.errors:{}})},unregister:eC,setError:e_,setFocus:(e,t={})=>{let n=v(s,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:s});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=>{S(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!==s.isDirty&&f._subjects.state.next({isDirty:e})}},[f,s.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,f),t.current}},79381:function(e,t,n){"use strict";let r;n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return V},kY:function(){return K}});var i=n(2784),a=n(43100);let o=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",g=typeof window!=m,v=typeof document!=m,y=()=>g&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=o.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,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=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(v&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return E("online",t),E("offline",n),()=>{_("online",t),_("offline",n)}}},S=!i.useId,O=!g||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),P=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function z(...e){let[t,n,r,i]=e,a=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=a.populateCache,l=a.rollbackOnError,u=a.optimisticData,d=!1!==a.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,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[l,p]=b(t,a),[v,y,x]=o.get(t),w=v[a],j=()=>d&&(delete x[a],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let k=r,E=D();y[a]=[E,0];let _=!f(u),C=l(),S=C.data,O=C._c,M=f(O)?S:O;if(_&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),E!==y[a][0]){if(i)throw i;return k}i&&_&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[a][1]=D();let P=await j();if(p({_c:c}),i){if(g)throw i;return}return s?P: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,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!o.has(e)&&(o.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,F.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,F.bind(c,r,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[I,V]=Z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(f(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:I,mutate:V,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=v&&document.visibilityState;return f(e)||"hidden"!==e}}),U=(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},H=(0,i.createContext)({}),W=g&&window.__SWR_DEVTOOLS_USE__,$=W?window.__SWR_DEVTOOLS_USE__:[],q=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(H)),Y=$.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=o.get(I),a=i[r];return a?(delete i[r],a):n(...e)});return e(t,i,r)}),G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(H),r=h(t),a=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,i.useMemo)(()=>r?a:U(n,a),[r,n,a]),s=a&&a.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=Z(s(o.cache||I),a));let u=l.current;return u&&(o.cache=u[0],o.mutate=u[1]),P(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(H.Provider,p(e,{value:o}))},"defaultValue",{value:B});var Q=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:y,keepPreviousData:x}=n,[w,j,k]=o.get(r),[E,_]=N(e),C=(0,i.useRef)(!1),A=(0,i.useRef)(!1),T=(0,i.useRef)(E),R=(0,i.useRef)(t),F=(0,i.useRef)(n),Z=()=>F.current,I=()=>Z().isVisible()&&Z().isOnline(),[V,B,U,H]=b(r,E),W=(0,i.useRef)({}).current,$=f(u)?n.fallback[E]:u,q=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!E&&!!t&&(f(d)?!Z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=V(),i=H(),a=n(r),o=r===i?a:n(i),s=a;return[()=>{let e=n(V());return q(e,s)?s:s=e},()=>o]},[r,E]),Y=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>U(E,(t,n)=>{q(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)?$:ee,en=Y.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,ea=(!Q||!!f(en))&&(J&&!f(d)?d:!Z().isPaused()&&(l?!f(et)&&m:f(et)||m)),eo=!!(E&&t&&J&&ea),es=f(Y.isValidating)?eo:Y.isValidating,el=f(Y.isLoading)?eo:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!E||!i||A.current||Z().isPaused())return!1;let a=!0,o=e||{},l=!k[E]||!o.dedupe,u=()=>S?!A.current&&E===T.current&&C.current:E===T.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=k[E];e&&e[1]===r&&delete k[E]},g={isValidating:!0};f(V().data)&&(g.isLoading=!0);try{if(l&&(B(g),n.loadingTimeout&&f(V().data)&&setTimeout(()=>{a&&u()&&Z().onLoadingSlow(E,n)},n.loadingTimeout),k[E]=[i(_),D()]),[t,r]=k[E],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[E]||k[E][1]!==r)return l&&u()&&Z().onDiscarded(E),!1;d.error=c;let e=j[E];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&Z().onDiscarded(E),!1;let o=V().data;d.data=s(o,t)?o:t,l&&u()&&Z().onSuccess(t,E,n)}catch(n){m();let e=Z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,E,e),(!0===t||h(t)&&t(n))&&I()&&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,T.current,...e),[]);if(P(()=>{R.current=t,F.current=n,f(ee)||(er.current=ee)}),P(()=>{if(!E)return;let e=eu.bind(c,X),t=0,n=G(E,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();Z().revalidateOnFocus&&n>t&&I()&&(t=n+Z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)Z().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,T.current=E,C.current=!0,B({_k:_}),ea&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[E]),P(()=>{let e;function t(){let t=h(g)?g(et):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!V().error&&(v||Z().isVisible())&&(y||Z().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,v,y,E]),(0,i.useDebugValue)(ei),l&&f(et)&&E){if(!S&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,F.current=n,A.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,a]=q(e),o=U(t,a),s=r,{use:l}=o,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||o.fetcher||null,o)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return o},_T:function(){return i},ev:function(){return l},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{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[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 l(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(t.J2e,{trigger:(0,n.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(l.hiv,{}),"View",(0,n.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(t.WVB,{children:[(0,n.jsx)(t.__J,{children:"Display properties"}),(0,n.jsx)(t.kFS,{children:(0,n.jsx)(t.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(l.Wet,{})})})]}),(0,n.jsx)(t.FzK,{label:"General",columns:x.map(e=>e.value),enabled:c,setColumnsVisible:r,setColumnsHidden:a}),(0,n.jsx)(t.WVB,{children:(0,n.jsx)(t.j4H,{options:x,values:c,onChange:e=>i(e)})})]})}function h(){return(0,n.jsx)("div",{className:"flex gap-2",children:(0,n.jsx)(f,{})})}function m(){let{severityFilter:e,setSeverityFilter:i,offset:s,limit:r,totals:a,datasetPageTotal:c,datasetState:x,datasetPage:d,dismissMany:u}=(0,o.Z)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full items-center",children:[(0,n.jsx)(t.xvT,{weight:"medium",children:"Filter"}),(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsxs)(t.zxk,{variant:void 0===e?"active":"inactive",onClick:()=>i(void 0),children:["all (",a.all,")"]}),(0,n.jsxs)(t.zxk,{variant:"info"===e?"active":"inactive",onClick:()=>i("info"),children:["info (",a.info,")"]}),(0,n.jsxs)(t.zxk,{variant:"warning"===e?"active":"inactive",onClick:()=>i("warning"),children:["warning (",a.warning,")"]}),(0,n.jsxs)(t.zxk,{variant:"error"===e?"active":"inactive",onClick:()=>i("error"),children:["error (",a.error,")"]}),(0,n.jsxs)(t.zxk,{variant:"critical"===e?"active":"inactive",onClick:()=>i("critical"),children:["critical (",a.critical,")"]})]}),(0,n.jsx)("div",{className:"flex-1"}),"loaded"===x&&!!c&&(0,n.jsxs)(t.zxk,{tip:e?"dismiss ".concat(c):"dismiss all",onClick:()=>{d&&u(d.map(e=>e.id))},children:[(0,n.jsx)(l.NlZ,{}),"Dismiss (",c,")"]}),(0,n.jsx)(t.uDJ,{offset:s,limit:r,isLoading:"loading"===x,total:a.all})]})}let v=s(31392).J;function p(){return(0,n.jsx)(x,{})}p.Layout=v,p.useLayoutProps=function(){let{openDialog:e}=(0,j.Rh)();return{title:"Alerts",routes:u._,sidenav:(0,n.jsx)(d.e,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(h,{}),stats:(0,n.jsx)(m,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=28240)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/alerts-5269e287cf327531.js b/renterd/assets/_next/static/chunks/pages/alerts-5269e287cf327531.js deleted file mode 100644 index fbc2664a8..000000000 --- a/renterd/assets/_next/static/chunks/pages/alerts-5269e287cf327531.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[233],{28240:function(e,s,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/alerts",function(){return i(88728)}])},88728:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return p}});var n=i(52322),t=i(18575),l=i(28420);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(t.xvT,{children:(0,n.jsx)(l.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No alerts matching filters."})]})}function a(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(t.xvT,{children:(0,n.jsx)(l._kF,{className:"scale-[2]"})}),(0,n.jsx)("div",{className:"flex flex-col gap-3 items-center",children:(0,n.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no alerts."})})]})}function c(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(t.xvT,{children:(0,n.jsx)(l.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching alerts."})]})}var o=i(45209);function x(){let{columns:e,datasetPage:s,sortField:i,sortDirection:l,sortableColumns:x,toggleSort:d,limit:u,dataState:j}=(0,o.Z)();return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(t.iA_,{isLoading:"loading"===j,emptyState:"noneMatchingFilters"===j?(0,n.jsx)(r,{}):"noneYet"===j?(0,n.jsx)(a,{}):"error"===j?(0,n.jsx)(c,{}):null,sortableColumns:x,pageSize:u,data:s,columns:e,sortDirection:l,sortField:i,toggleSort:d,rowSize:"auto"})})}var d=i(70825),u=i(4300),j=i(82285);function f(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:i,setColumnsVisible:r,setColumnsHidden:a,enabledColumns:c}=(0,o.Z)(),x=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(t.J2e,{trigger:(0,n.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(l.hiv,{}),"View",(0,n.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(t.WVB,{children:[(0,n.jsx)(t.__J,{children:"Display properties"}),(0,n.jsx)(t.kFS,{children:(0,n.jsx)(t.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),i()},children:(0,n.jsx)(l.Wet,{})})})]}),(0,n.jsx)(t.FzK,{label:"General",columns:x.map(e=>e.value),enabled:c,setColumnsVisible:r,setColumnsHidden:a}),(0,n.jsx)(t.WVB,{children:(0,n.jsx)(t.j4H,{options:x,values:c,onChange:e=>s(e)})})]})}function h(){return(0,n.jsx)("div",{className:"flex gap-2",children:(0,n.jsx)(f,{})})}function m(){let{severityFilter:e,setSeverityFilter:s,offset:i,limit:r,totals:a,pageCount:c,dataState:x,datasetPage:d,dismissMany:u}=(0,o.Z)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full items-center",children:[(0,n.jsx)(t.xvT,{weight:"medium",children:"Filter"}),(0,n.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,n.jsxs)(t.zxk,{variant:void 0===e?"active":"inactive",onClick:()=>s(void 0),children:["all (",a.all,")"]}),(0,n.jsxs)(t.zxk,{variant:"info"===e?"active":"inactive",onClick:()=>s("info"),children:["info (",a.info,")"]}),(0,n.jsxs)(t.zxk,{variant:"warning"===e?"active":"inactive",onClick:()=>s("warning"),children:["warning (",a.warning,")"]}),(0,n.jsxs)(t.zxk,{variant:"error"===e?"active":"inactive",onClick:()=>s("error"),children:["error (",a.error,")"]}),(0,n.jsxs)(t.zxk,{variant:"critical"===e?"active":"inactive",onClick:()=>s("critical"),children:["critical (",a.critical,")"]})]}),(0,n.jsx)("div",{className:"flex-1"}),!x&&!!c&&(0,n.jsxs)(t.zxk,{tip:e?"dismiss ".concat(c):"dismiss all",onClick:()=>{d&&u(d.map(e=>e.id))},children:[(0,n.jsx)(l.NlZ,{}),"Dismiss (",c,")"]}),(0,n.jsx)(t.uDJ,{offset:i,limit:r,isLoading:"loading"===x,datasetTotal:a.all,pageTotal:c})]})}let v=i(31392).J;function p(){return(0,n.jsx)(x,{})}p.Layout=v,p.useLayoutProps=function(){let{openDialog:e}=(0,j.Rh)();return{title:"Alerts",routes:u._,sidenav:(0,n.jsx)(d.e,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(h,{}),stats:(0,n.jsx)(m,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=28240)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/buckets-09164b5b81bb3c9a.js b/renterd/assets/_next/static/chunks/pages/buckets-7b7060a0879c0ea4.js similarity index 57% rename from renterd/assets/_next/static/chunks/pages/buckets-09164b5b81bb3c9a.js rename to renterd/assets/_next/static/chunks/pages/buckets-7b7060a0879c0ea4.js index 98c962048..ad677529d 100644 --- a/renterd/assets/_next/static/chunks/pages/buckets-09164b5b81bb3c9a.js +++ b/renterd/assets/_next/static/chunks/pages/buckets-7b7060a0879c0ea4.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[816],{10010:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets",function(){return t(2855)}])},2855:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return _}});var r=t(52322),e=t(70348),o=t(15222);function _(){return(0,r.jsx)(e.h,{})}_.Layout=o.A,_.useLayoutProps=o.r}},function(n){n.O(0,[705,940,888,774,179],function(){return n(n.s=10010)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[816],{10010:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets",function(){return t(2855)}])},2855:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return _}});var r=t(52322),e=t(70348),o=t(47209);function _(){return(0,r.jsx)(e.h,{})}_.Layout=o.A,_.useLayoutProps=o.r}},function(n){n.O(0,[705,953,888,774,179],function(){return n(n.s=10010)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/files/[[...path]]-c316853e42bd1398.js b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/files/[[...path]]-c9c4e6c971d52ce9.js similarity index 72% rename from renterd/assets/_next/static/chunks/pages/buckets/[bucket]/files/[[...path]]-c316853e42bd1398.js rename to renterd/assets/_next/static/chunks/pages/buckets/[bucket]/files/[[...path]]-c9c4e6c971d52ce9.js index e1a7e130f..0b73d6b71 100644 --- a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/files/[[...path]]-c316853e42bd1398.js +++ b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/files/[[...path]]-c9c4e6c971d52ce9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{69899:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets/[bucket]/files/[[...path]]",function(){return t(31650)}])},31650:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return o}});var e=t(52322),r=t(70348),c=t(15222);function o(){return(0,e.jsx)(r.h,{})}o.Layout=c.A,o.useLayoutProps=c.r}},function(n){n.O(0,[705,940,888,774,179],function(){return n(n.s=69899)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{69899:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets/[bucket]/files/[[...path]]",function(){return t(31650)}])},31650:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return o}});var e=t(52322),r=t(70348),c=t(47209);function o(){return(0,e.jsx)(r.h,{})}o.Layout=c.A,o.useLayoutProps=c.r}},function(n){n.O(0,[705,953,888,774,179],function(){return n(n.s=69899)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-025b2138291e0bf5.js b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-025b2138291e0bf5.js deleted file mode 100644 index 60f3824a8..000000000 --- a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-025b2138291e0bf5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{56592:function(e,s,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets/[bucket]/uploads",function(){return i(22699)}])},19634:function(e,s,i){"use strict";i.d(s,{C:function(){return a}});var n=i(52322),l=i(18575),t=i(28420),r=i(95810);function c(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:i,isViewingUploads:c,navigateToUploads:a}=(0,r.b)();return(0,n.jsxs)(l.h_2,{trigger:(0,n.jsx)(l.zxk,{"aria-label":"change explorer mode",tipSide:"bottom",tip:c?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:c?(0,n.jsx)(t.bQp,{}):"directory"===e?(0,n.jsx)(t.Qbr,{}):(0,n.jsx)(t.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.Xiv,{onSelect:s,children:[(0,n.jsx)(l.KpP,{children:(0,n.jsx)(t.Qbr,{})}),"Directory"]}),(0,n.jsxs)(l.Xiv,{onSelect:i,children:[(0,n.jsx)(l.KpP,{children:(0,n.jsx)(t.nDH,{})}),"All files"]}),(0,n.jsxs)(l.Xiv,{onSelect:a,children:[(0,n.jsx)(l.KpP,{children:(0,n.jsx)(t.bQp,{})}),"Uploads"]})]})}function a(){let{isViewingBuckets:e}=(0,r.b)();return e?(0,n.jsx)(l.ua7,{content:"Viewing all buckets",children:(0,n.jsx)("div",{children:(0,n.jsx)(l.zxk,{state:"waiting",children:(0,n.jsx)(t.fi8,{size:16})})})}):(0,n.jsx)(c,{})}},22699:function(e,s,i){"use strict";i.r(s),i.d(s,{default:function(){return T}});var n=i(52322),l=i(18575),t=i(28420);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(t.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching uploads."})]})}var c=i(95810);function a(){let{filters:e,resetFilters:s}=(0,c.b)();return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(t.Hb6,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No uploads matching filters."}),!!e.length&&(0,n.jsx)(l.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}var x=i(4300);function o(){let{activeBucketName:e}=(0,c.b)();return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(t.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,n.jsx)(l.EKh,{children:e})," bucket does not have any active uploads."]}),(0,n.jsx)(l.Qjf,{href:x._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}var d=i(26706);function u(){let{dataState:e}=(0,d.x)();return"noneMatchingFilters"===e?(0,n.jsx)(a,{}):"error"===e?(0,n.jsx)(r,{}):"noneYet"===e?(0,n.jsx)(o,{}):null}var j=i(34605);function h(){let{sortableColumns:e,toggleSort:s,datasetPage:i,dataState:t,sortField:r,sortDirection:c}=(0,d.x)();return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(l.iA_,{isLoading:"loading"===t,emptyState:(0,n.jsx)(u,{}),pageSize:10,data:i,columns:j.z,sortableColumns:e,sortField:r,sortDirection:c,toggleSort:s,rowSize:"dense"})})}function p(){return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(h,{})})}var f=i(70825),m=i(82285),v=i(31392);function g(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:i,enabledColumns:r}=(0,d.x)();return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(t.hiv,{}),"View",(0,n.jsx)(t.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{onClick:e=>{e.stopPropagation(),i()},children:"Reset default"})})]}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:r,onChange:e=>s(e)})})]})}function b(){return(0,n.jsx)("div",{className:"flex gap-2",children:(0,n.jsx)(g,{})})}function N(){let{abortAll:e,limit:s,pageCount:i,dataState:t,nextMarker:r,hasMore:c}=(0,d.x)();return(0,n.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,n.jsx)("div",{className:"flex-1"}),i>0&&(0,n.jsxs)(l.zxk,{onClick:e,children:["Abort (",i,")"]}),(0,n.jsx)(l._5,{marker:r,isMore:c,limit:s,pageTotal:i,isLoading:"loading"===t})]})}var k=i(19634);function w(){let{activeBucketName:e,setActiveDirectory:s}=(0,c.b)();return(0,n.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,n.jsx)(k.C,{}),(0,n.jsx)(l.xrM,{children:(0,n.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,n.jsx)(l.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,n.jsx)(l.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(t.F3j,{})}),(0,n.jsx)(l.xvT,{onClick:()=>{e&&s(()=>[e])},size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,n.jsx)(l.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(t.F3j,{})}),(0,n.jsx)(l.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Uploads"})]})})]})}let _=v.J;function T(){return(0,n.jsx)(p,{})}T.Layout=_,T.useLayoutProps=function(){let{openDialog:e}=(0,m.Rh)();return{title:"Uploads",navTitle:null,routes:x._,sidenav:(0,n.jsx)(f.e,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(b,{}),stats:(0,n.jsx)(N,{}),nav:(0,n.jsx)(w,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=56592)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-247bb8163e2343a2.js b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-247bb8163e2343a2.js new file mode 100644 index 000000000..3cab12d9a --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/buckets/[bucket]/uploads-247bb8163e2343a2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{56592:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/buckets/[bucket]/uploads",function(){return n(22699)}])},19634:function(e,s,n){"use strict";n.d(s,{C:function(){return a}});var i=n(52322),t=n(70150),l=n(28420),r=n(8068);function c(){let{activeExplorerMode:e,setExplorerModeDirectory:s,setExplorerModeFlat:n,isViewingUploads:c,navigateToUploads:a}=(0,r.b)();return(0,i.jsxs)(t.h_2,{trigger:(0,i.jsx)(t.zxk,{"aria-label":"change explorer mode",tipSide:"bottom",tip:c?"Viewing uploads":"directory"===e?"Viewing directory explorer":"Viewing all bucket files",children:c?(0,i.jsx)(l.bQp,{}):"directory"===e?(0,i.jsx)(l.Qbr,{}):(0,i.jsx)(l.nDH,{})}),contentProps:{align:"start",side:"bottom",className:"max-w-[300px]"},children:[(0,i.jsxs)(t.Xiv,{onSelect:s,children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(l.Qbr,{})}),"Directory"]}),(0,i.jsxs)(t.Xiv,{onSelect:n,children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(l.nDH,{})}),"All files"]}),(0,i.jsxs)(t.Xiv,{onSelect:a,children:[(0,i.jsx)(t.KpP,{children:(0,i.jsx)(l.bQp,{})}),"Uploads"]})]})}function a(){let{isViewingBuckets:e}=(0,r.b)();return e?(0,i.jsx)(t.ua7,{content:"Viewing all buckets",children:(0,i.jsx)("div",{children:(0,i.jsx)(t.zxk,{state:"waiting",children:(0,i.jsx)(l.fi8,{size:16})})})}):(0,i.jsx)(c,{})}},22699:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var i=n(52322),t=n(70150),l=n(28420);function r(){return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,i.jsx)(t.xvT,{children:(0,i.jsx)(l.Ckx,{className:"scale-[200%]"})}),(0,i.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching uploads."})]})}var c=n(8068);function a(){let{filters:e,resetFilters:s}=(0,c.b)();return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,i.jsx)(t.xvT,{children:(0,i.jsx)(l.Hb6,{className:"scale-[200%]"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,i.jsx)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No uploads matching filters."}),!!e.length&&(0,i.jsx)(t.zxk,{onClick:e=>{e.stopPropagation(),s()},children:"Clear filters"})]})]})}var x=n(4300);function o(){let{activeBucketName:e}=(0,c.b)();return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,i.jsx)(t.xvT,{children:(0,i.jsx)(l.Y9T,{className:"scale-[200%]"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,i.jsxs)(t.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["The ",(0,i.jsx)(t.EKh,{children:e})," bucket does not have any active uploads."]}),(0,i.jsx)(t.Qjf,{href:x._.buckets.index,onClick:e=>{e.stopPropagation()},children:"View buckets list"})]})]})}var d=n(67899);function u(){let{datasetState:e}=(0,d.x)();return"noneOnPage"===e?(0,i.jsx)(t.xJ6,{}):"noneMatchingFilters"===e?(0,i.jsx)(a,{}):"error"===e?(0,i.jsx)(r,{}):"noneYet"===e?(0,i.jsx)(o,{}):null}function j(){let{visibleColumns:e,sortableColumns:s,toggleSort:n,datasetPage:l,datasetState:r,sortField:c,sortDirection:a}=(0,d.x)();return(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(t.iA_,{testId:"uploadsTable",isLoading:"loading"===r,emptyState:(0,i.jsx)(u,{}),pageSize:10,data:l,columns:e,sortableColumns:s,sortField:c,sortDirection:a,toggleSort:n,rowSize:"dense"})})}function h(){return(0,i.jsx)("div",{className:"p-6 min-w-fit",children:(0,i.jsx)(j,{})})}var p=n(70825),f=n(82285),m=n(31392);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,visibleColumnIds:r}=(0,d.x)();return(0,i.jsxs)(t.J2e,{trigger:(0,i.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,i.jsx)(l.hiv,{}),"View",(0,i.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,i.jsxs)(t.WVB,{children:[(0,i.jsx)(t.__J,{children:"Display properties"}),(0,i.jsx)(t.kFS,{children:(0,i.jsx)(t.zxk,{onClick:e=>{e.stopPropagation(),n()},children:"Reset default"})})]}),(0,i.jsx)(t.WVB,{children:(0,i.jsx)(t.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:r,onChange:e=>s(e)})})]})}function g(){return(0,i.jsx)("div",{className:"flex gap-2",children:(0,i.jsx)(v,{})})}function b(){let{abortAll:e,limit:s,datasetPageTotal:n,datasetState:l,marker:r,nextMarker:c,hasMore:a}=(0,d.x)();return(0,i.jsxs)("div",{className:"flex gap-3 w-full",children:[(0,i.jsx)("div",{className:"flex-1"}),n>0&&(0,i.jsxs)(t.zxk,{onClick:e,children:["Abort (",n,")"]}),(0,i.jsx)(t._5,{marker:r,nextMarker:c,isMore:a,limit:s,pageTotal:n,isLoading:"loading"===l})]})}var N=n(19634);function k(){let{activeBucketName:e,setActiveDirectory:s}=(0,c.b)();return(0,i.jsxs)("div",{className:"flex gap-2 items-center h-full",children:[(0,i.jsx)(N.C,{}),(0,i.jsx)(t.xrM,{children:(0,i.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,i.jsx)(t.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Buckets"}),(0,i.jsx)(t.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,i.jsx)(l.F3j,{})}),(0,i.jsx)(t.xvT,{onClick:()=>{e&&s(()=>[e])},size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e}),(0,i.jsx)(t.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,i.jsx)(l.F3j,{})}),(0,i.jsx)(t.xvT,{size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Uploads"})]})})]})}let w=m.J;function _(){return(0,i.jsx)(h,{})}_.Layout=w,_.useLayoutProps=function(){let{openDialog:e}=(0,f.Rh)();return{title:"Uploads",navTitle:null,routes:x._,sidenav:(0,i.jsx)(p.e,{}),openSettings:()=>e("settings"),actions:(0,i.jsx)(g,{}),stats:(0,i.jsx)(b,{}),nav:(0,i.jsx)(k,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=56592)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/config-216482a23197ac9b.js b/renterd/assets/_next/static/chunks/pages/config-216482a23197ac9b.js new file mode 100644 index 000000000..987178d6f --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/config-216482a23197ac9b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(55983)}])},55983:function(e,i,s){"use strict";s.r(i),s.d(i,{default:function(){return O}});var n=s(52322),t=s(70150),a=s(90040),r=s(28420);function l(){let{revalidateAndResetForm:e}=(0,a.ZR)();return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(t.xvT,{children:(0,n.jsx)(r.gFQ,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.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,n.jsx)(t.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function o(e){let{name:i,form:s,fields:a}=e;return(0,n.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,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(t.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,n.jsx)(t.QBj,{name:i,form:s,fields:a,size:"small",group:!1})]})})}var c=s(4300);function d(e){let{canUseExchangeRates:i,pinnedCurrency:s}=e;return(0,n.jsxs)(t.s_4,{className:"px-2 pt-1 pb-2",children:[(0,n.jsx)(t.xvT,{size:"12",color:"subtle",children:"To pin this field:"}),(0,n.jsxs)("div",{className:"flex flex-col",children:[!i&&!!s&&(0,n.jsx)(t.rUS,{size:"12",href:c._.config.pinning,underline:"hover",children:"- Enable an exchange rate API"}),!s&&(0,n.jsx)(t.rUS,{size:"12",href:c._.config.pinning,underline:"hover",children:"- Select a pinned currency"})]})]})}var x=s(463);function m(){let{form:e,fields:i,remoteError:s,configRef:r}=(0,a.ZR)(),c=e.watch("pinnedCurrency"),m=e.watch("shouldPinMaxStoragePrice"),h=e.watch("shouldPinMaxUploadPrice"),u=e.watch("shouldPinMaxDownloadPrice"),{rate:f}=(0,x.J)({currency:c||void 0}),j=!!f;return s?(0,n.jsx)(l,{}):(0,n.jsxs)("div",{ref:r,className:"px-5 pt-10 pb-6 flex flex-col gap-16",children:[(0,n.jsxs)(t.M9k,{title:"Storage",children:[(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"storageTB",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"uploadTBMonth",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"downloadTBMonth",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"periodWeeks",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"renewWindowWeeks",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"amountHosts",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,form:e,fields:i,name:"prune"})]}),(0,n.jsxs)(t.M9k,{title:"Pricing",children:[(0,n.jsx)(t.VXA,{id:"maxStoragePriceTBMonthGroup",title:"Max storage price",description:i.maxStoragePriceTBMonth.description,control:(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,n.jsx)(o,{name:"shouldPinMaxStoragePrice",form:e,fields:i}),m?j?(0,n.jsx)(t.npL,{name:"maxStoragePriceTBMonthPinned",form:e,fields:i,currency:c||""}):(0,n.jsx)(d,{canUseExchangeRates:j,pinnedCurrency:c}):(0,n.jsx)(t.ckm,{name:"maxStoragePriceTBMonth",form:e,fields:i})]})}),(0,n.jsx)(t.VXA,{id:"maxUploadPriceTBGroup",title:"Max upload price",description:i.maxUploadPriceTB.description,control:(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,n.jsx)(o,{name:"shouldPinMaxUploadPrice",form:e,fields:i}),h?j?(0,n.jsx)(t.npL,{name:"maxUploadPriceTBPinned",form:e,fields:i,currency:c||""}):(0,n.jsx)(d,{canUseExchangeRates:j,pinnedCurrency:c}):(0,n.jsx)(t.ckm,{name:"maxUploadPriceTB",form:e,fields:i})]})}),(0,n.jsx)(t.VXA,{id:"maxDownloadPriceTBGroup",title:"Max download price",description:i.maxDownloadPriceTB.description,control:(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,n.jsx)(o,{name:"shouldPinMaxDownloadPrice",form:e,fields:i}),u?j?(0,n.jsx)(t.npL,{name:"maxDownloadPriceTBPinned",form:e,fields:i,currency:c||""}):(0,n.jsx)(d,{canUseExchangeRates:j,pinnedCurrency:c}):(0,n.jsx)(t.ckm,{name:"maxDownloadPriceTB",form:e,fields:i})]})}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"maxContractPrice",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"maxRPCPriceMillion",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"hostBlockHeightLeeway",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"minPriceTableValidityMinutes",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"minAccountExpiryDays",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"minMaxEphemeralAccountBalance",form:e,fields:i})]}),(0,n.jsx)(t.vRO,{title:"Hosts",category:"hosts",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Wallet",category:"wallet",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Uploads",category:"uploadpacking",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Redundancy",category:"redundancy",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Pinning",category:"pinning",fields:i,form:e})]})}var h=s(70825),u=s(82285),f=s(31392);function j(){let{takeScreenshot:e}=(0,a.ZR)();return(0,n.jsxs)(t.h_2,{trigger:(0,n.jsx)(t.zxk,{children:(0,n.jsx)(r.jH8,{})}),contentProps:{align:"end"},children:[(0,n.jsx)(t.Juw,{children:"Actions"}),(0,n.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,n.jsx)(t.KpP,{children:(0,n.jsx)(r.olJ,{})}),"Copy image of configuration"]}),(0,n.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,n.jsx)(t.KpP,{children:(0,n.jsx)(r.vzB,{})}),"Download image of configuration"]})]})}function g(){let{configViewMode:e,setConfigViewMode:i}=(0,a.ZR)();return(0,n.jsx)("div",{className:"pl-1",children:(0,n.jsx)(t.ua7,{content:"advanced"===e?"Show advanced settings":"Hide advanced settings",children:(0,n.jsx)("div",{children:(0,n.jsx)(t.rsf,{"aria-label":"configViewMode",checked:"advanced"===e,onCheckedChange:e=>i(e?"advanced":"basic")})})})})}function p(){return(0,n.jsx)(t.J2e,{trigger:(0,n.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(r.hiv,{}),"View",(0,n.jsx)(r.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:(0,n.jsxs)(t.WVB,{children:[(0,n.jsx)(t.__J,{children:"Show advanced settings"}),(0,n.jsx)(t.kFS,{children:(0,n.jsx)(g,{})})]})})}var v=s(60381);function w(){let{onSubmit:e,changeCount:i,revalidateAndResetForm:s,form:l}=(0,a.ZR)();return(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[!!i&&(0,n.jsx)(t.xvT,{size:"12",color:"subtle",children:(0,v._6)(i,"change","changes")}),(0,n.jsx)(t.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!i,onClick:s,children:(0,n.jsx)(r.Wet,{})}),(0,n.jsx)(t.eQh,{children:(0,n.jsxs)(t.zxk,{tip:"Save all changes",variant:"accent",disabled:!l.formState.isDirty||l.formState.isSubmitting,onClick:e,children:[(0,n.jsx)(r.ZEk,{}),"Save changes"]})}),(0,n.jsx)(j,{}),(0,n.jsx)(p,{})]})}var T=s(80063);function P(){return(0,n.jsx)("div",{className:"pl-1",children:(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)(T.z,{size:"small"})})})}var b=s(92762),y=s(40144),N=s(2784),B=s(6391),S=s.n(B),z=s(5001),M=s(5880),k=s(6459),C=s(75346);function R(e){let{estimatedSpendingPerMonth:i}=e,{form:s,fields:l}=(0,a.ZR)(),o=function(e){let{estimatedSpendingPerMonth:i}=e,{form:s}=(0,a.ZR)(),n=s.watch("storageTB"),t=s.watch("downloadTBMonth"),r=s.watch("uploadTBMonth"),l=(0,M.i)({minShards:s.watch("minShards"),totalShards:s.watch("totalShards")}),{rate:o}=(0,k.x)(s),c=(0,N.useMemo)(()=>{let e=(0,z.DQ)({estimatedSpendingPerMonth:i,maxPricingFactor:1.5,storageTB:n,downloadTBMonth:t,uploadTBMonth:r,redundancyMultiplier:l,storageWeight:4,downloadWeight:5,uploadWeight:1});if(!e)return;let s=o?{maxStoragePriceTBMonthPinned:null==e?void 0:e.maxStoragePriceTBMonth.times(o),maxDownloadPriceTBPinned:null==e?void 0:e.maxDownloadPriceTB.times(o),maxUploadPriceTBPinned:null==e?void 0:e.maxUploadPriceTB.times(o)}:void 0;return{...e,...s}},[i,n,t,r,l,o]),d=s.watch("shouldPinMaxStoragePrice"),x=s.watch("shouldPinMaxUploadPrice"),m=s.watch("shouldPinMaxDownloadPrice"),h={};if(c)return d?h.maxStoragePriceTBMonthPinned=c.maxStoragePriceTBMonthPinned:h.maxStoragePriceTBMonth=c.maxStoragePriceTBMonth,x?h.maxUploadPriceTBPinned=c.maxUploadPriceTBPinned:h.maxUploadPriceTB=c.maxUploadPriceTB,m?h.maxDownloadPriceTBPinned=c.maxDownloadPriceTBPinned:h.maxDownloadPriceTB=c.maxDownloadPriceTB,h}({estimatedSpendingPerMonth:i}),c=function(){let{form:e}=(0,a.ZR)(),i=(0,C.w)({form:e}),{estimatedSpendingPerMonth:s}=(0,y.S)(),n=e.watch("storageTB"),t=e.watch("downloadTBMonth"),r=e.watch("uploadTBMonth"),l=(0,M.i)({minShards:e.watch("minShards"),totalShards:e.watch("totalShards")}),o=(0,N.useMemo)(()=>null==s?void 0:s.gt(0),[s]);return(0,N.useMemo)(()=>{if(!o)return new(S())(0);let e=(0,z.DQ)({estimatedSpendingPerMonth:s,maxPricingFactor:1.5,storageTB:n,downloadTBMonth:t,uploadTBMonth:r,redundancyMultiplier:l,storageWeight:4,downloadWeight:5,uploadWeight:1});return U(null==e?void 0:e.maxStoragePriceTBMonth,null==i?void 0:i.maxStoragePriceTBMonth,.01)||U(null==e?void 0:e.maxUploadPriceTB,null==i?void 0:i.maxUploadPriceTB,.01)||U(null==e?void 0:e.maxDownloadPriceTB,null==i?void 0:i.maxDownloadPriceTB,.01)},[o,i,n,t,r,l,s])}();return(0,n.jsx)(t.ua7,{content:(0,n.jsxs)("div",{className:"flex flex-col gap-1 p-1",children:[(0,n.jsx)(t.xvT,{size:"14",weight:"medium",children:"Rebalance prices"}),(0,n.jsxs)(t.xvT,{size:"14",color:"subtle",children:["Update max prices for storage, upload, and download to suggested values that take into account the current estimated usage values and fit the current estimated spending value. The suggested values keep storage, upload, and download prices proportional to each other according to the following weights: ",4,"x storage,"," ",1,"x upload, ",5,"x download. These weights model a recommended pricing ratio across the categories."]})]}),children:(0,n.jsx)(t.zxk,{disabled:!c,"aria-label":"rebalance prices",onClick:()=>{o&&(0,t.JMs)({form:s,fields:l,values:o,options:!0})},children:(0,n.jsx)(r._iN,{})})})}function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(S())(0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(S())(0),s=arguments.length>2?arguments[2]:void 0;return e.eq(0)||i.eq(0)?new(S())(100):e.minus(i).div(e).abs().gt(s)}var _=s(82851);function V(e){let{localStorageKey:i,heading:s,children:a,tip:l,canMaximizeControls:o,testId:c}=e,[d,x]=(0,b.Z)("v0/renterd/".concat(i),{defaultValue:!0}),m=(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)("div",{className:(0,_.cx)("flex justify-between items-center gap-2 px-3 py-1.5",d&&a?"border-b border-gray-200 dark:border-graydark-300":"",o?"cursor-pointer":""),onClick:()=>{o&&x(e=>!e)},children:[s,o&&(0,n.jsx)(t.zxk,{variant:"ghost",size:"none",children:(0,n.jsx)(r.ybx,{})})]})});return(0,n.jsx)("div",{"data-testid":c,className:"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,n.jsxs)(t.xrM,{children:[l?(0,n.jsx)(t.zsw,{trigger:m,children:l}):m,d&&a]})})}function D(){let{form:e}=(0,a.ZR)(),i=e.watch("storageTB"),[s,l]=(0,b.Z)("v0/renterd/config/spendingEstimateMode",{defaultValue:"total"}),o=e.watch("minShards"),c=e.watch("totalShards"),{estimatedSpendingPerMonth:d,estimatedSpendingPerTB:x}=(0,y.S)(),m=(0,M.i)({minShards:o,totalShards:c}),h=(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsxs)(t.PhF,{"aria-label":"select spending estimate mode",name:"spendingEstimateMode",value:s,onChange:e=>l(e.target.value),children:[(0,n.jsxs)(t.Wxm,{value:"total",children:["total cost for 1TB with ",m.toNumber(),"x redundancy"]}),(0,n.jsxs)(t.Wxm,{value:"tb",children:["cost per TB with ",m.toNumber(),"x redundancy"]})]}),(0,n.jsx)(R,{estimatedSpendingPerMonth:d})]});return d&&x&&i?(0,n.jsx)(V,{testId:"spendingEstimate",localStorageKey:"config/spendingEstimate",canMaximizeControls:!0,tip:(0,n.jsx)("div",{className:"p-2",children:(0,n.jsxs)(t.xvT,{size:"14",color:"subtle",children:["The spending estimate is calculated using the current estimated usage and max price values. The estimate assumes spending will be across a distribution of hosts with various prices that fit within max price values, this is modeled with a factor of"," ",1.5,"x."]})}),heading:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(t.xvT,{color:"amber",children:(0,n.jsx)(r.$iY,{})}),(0,n.jsx)(t.xvT,{size:"16",weight:"medium",color:"contrast",noWrap:!0,children:"Spending estimate"}),d&&(0,n.jsx)(t.ho9,{variant:"value",fixed:0,fixedFiat:0,showTooltip:!1,value:(0,v.qN)(d),displayBoth:!1})]}),children:(0,n.jsx)("div",{className:"p-2 flex flex-col gap-2",children:d&&x&&i?"total"===s?(0,n.jsxs)(n.Fragment,{children:[h,(0,n.jsx)(t.ZBx,{name:"estimatedSpendingPerMonth",tabIndex:-1,className:"min-w-[250px]",readOnly:!0,sc:d,size:"small",units:"SC/month",unitsFiatPostfix:"/month",decimalsLimitSc:0,decimalsLimitFiat:2})]}):(0,n.jsxs)(n.Fragment,{children:[h,(0,n.jsx)(t.ZBx,{name:"estimatedSpendingPerTBPerMonth",tabIndex:-1,className:"min-w-[250px]",readOnly:!0,sc:x,size:"small",units:"SC/month",unitsFiatPostfix:"/month",decimalsLimitSc:0,decimalsLimitFiat:2})]}):(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(t.xvT,{color:"contrast",children:(0,n.jsx)(r.oHy,{})}),(0,n.jsx)(t.xvT,{size:"16",weight:"medium",children:"The system will estimate spending once expected usage and pricing fields are filled."})]})})}):null}function Z(){let{form:e,fields:i,evaluation:s}=(0,a.ZR)(),{hostMargin50:l,hostTarget50:o,hasDataToEvaluate:d,needsRecommendations:x,foundRecommendation:m,recommendations:h,usableHostsCurrent:u,userContractCountTarget:f,usableHostsAfterRecommendation:j}=s,g=(0,n.jsxs)("div",{className:"flex flex-col gap-1 px-3 py-2",children:[(0,n.jsxs)(t.xvT,{size:"14",color:"subtle",children:["It is best practice to have settings that match with about"," ",(100*l).toFixed(0),"% more hosts than necessary in case some hosts go offline."]}),(0,n.jsx)(t.Z0O,{className:"w-full my-1"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Required"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[f," hosts"]})]}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Ideal"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[o," hosts"]})]}),(0,n.jsx)(t.Z0O,{className:"w-full my-1"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Current settings"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[u," hosts"]})]}),x&&m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Recommended settings"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[j," hosts"]})]}),(0,n.jsx)(t.Z0O,{className:"w-full my-1"}),j{let{hrefId:a,key:l,title:o,currentLabel:d,targetLabel:x,targetValue:m,direction:h}=s;return(0,n.jsx)(E,{testId:l,title:(0,n.jsxs)(t.xvT,{size:"14",children:["up"===h?"Increase ":"Decrease ",(0,n.jsx)(t.rUS,{href:c._.config.index+"#"+a,size:"14",underline:"hover",children:o})," ","from ",d," to"," ",(0,n.jsx)(t.zxk,{size:"none",onClick:()=>(0,t.fsB)({form:e,fields:i,name:l,value:m,options:!0}),children:x})]}),action:(0,n.jsx)(t.xvT,{children:"up"===h?(0,n.jsx)(r.kqg,{}):(0,n.jsx)(r.EMN,{})})},l)})}):null}):(0,n.jsx)(V,{testId:"recommendations",localStorageKey:"config/recommendations",canMaximizeControls:!1,tip:g,heading:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.xvT,{color:"green",children:(0,n.jsx)(r.dmA,{})}),p,(0,n.jsx)(t.xvT,{size:"16",weight:"medium",children:"Configuration matches with a sufficient number of hosts"})]})})}function E(e){let{testId:i,title:s,action:t}=e;return(0,n.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,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)("div",{className:"flex-1 flex items-center",children:s}),t]})})}function F(){return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)("div",{className:"z-10 absolute top-0 w-full pointer-events-none",children:(0,n.jsx)(t.xrM,{children:(0,n.jsxs)("div",{className:"flex gap-2 items-start justify-center px-3",children:[(0,n.jsx)("div",{className:"pointer-events-auto",children:(0,n.jsx)(D,{})}),(0,n.jsx)("div",{className:"pointer-events-auto",children:(0,n.jsx)(Z,{})})]})})})})}let W=f.J;function O(){return(0,n.jsx)(m,{})}O.Layout=W,O.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)();return{title:"Configuration",routes:c._,nav:(0,n.jsx)(P,{}),sidenav:(0,n.jsx)(h.e,{}),actions:(0,n.jsx)(w,{}),after:(0,n.jsx)(F,{}),openSettings:()=>e("settings"),size:"3"}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/config-8ea20c38d7a742e9.js b/renterd/assets/_next/static/chunks/pages/config-8ea20c38d7a742e9.js deleted file mode 100644 index cb547f733..000000000 --- a/renterd/assets/_next/static/chunks/pages/config-8ea20c38d7a742e9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(55983)}])},55983:function(e,i,s){"use strict";s.r(i),s.d(i,{default:function(){return O}});var n=s(52322),t=s(18575),a=s(90040),r=s(28420);function l(){let{revalidateAndResetForm:e}=(0,a.ZR)();return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(t.xvT,{children:(0,n.jsx)(r.gFQ,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.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,n.jsx)(t.zxk,{onClick:()=>e(),children:"Reload"})]})]})}function o(e){let{name:i,form:s,fields:a}=e;return(0,n.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,n.jsxs)("div",{className:"flex w-full justify-between",children:[(0,n.jsx)(t.xvT,{weight:"medium",color:"verySubtle",size:"14",children:"Pin"}),(0,n.jsx)(t.QBj,{name:i,form:s,fields:a,size:"small",group:!1})]})})}var c=s(4300);function d(e){let{canUseExchangeRates:i,pinnedCurrency:s}=e;return(0,n.jsxs)(t.s_4,{className:"px-2 pt-1 pb-2",children:[(0,n.jsx)(t.xvT,{size:"12",color:"subtle",children:"To pin this field:"}),(0,n.jsxs)("div",{className:"flex flex-col",children:[!i&&!!s&&(0,n.jsx)(t.rUS,{size:"12",href:c._.config.pinning,underline:"hover",children:"- Enable an exchange rate API"}),!s&&(0,n.jsx)(t.rUS,{size:"12",href:c._.config.pinning,underline:"hover",children:"- Select a pinned currency"})]})]})}var x=s(83429);function m(){let{form:e,fields:i,remoteError:s,configRef:r}=(0,a.ZR)(),c=e.watch("pinnedCurrency"),m=e.watch("shouldPinMaxStoragePrice"),h=e.watch("shouldPinMaxUploadPrice"),u=e.watch("shouldPinMaxDownloadPrice"),{rate:f}=(0,x.J)({currency:c||void 0}),j=!!f;return s?(0,n.jsx)(l,{}):(0,n.jsxs)("div",{ref:r,className:"px-5 pt-10 pb-6 flex flex-col gap-16",children:[(0,n.jsxs)(t.M9k,{title:"Storage",children:[(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"storageTB",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"uploadTBMonth",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"downloadTBMonth",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"periodWeeks",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"renewWindowWeeks",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"amountHosts",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,form:e,fields:i,name:"prune"})]}),(0,n.jsxs)(t.M9k,{title:"Pricing",children:[(0,n.jsx)(t.VXA,{id:"maxStoragePriceTBMonthGroup",title:"Max storage price",description:i.maxStoragePriceTBMonth.description,control:(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,n.jsx)(o,{name:"shouldPinMaxStoragePrice",form:e,fields:i}),m?j?(0,n.jsx)(t.npL,{name:"maxStoragePriceTBMonthPinned",form:e,fields:i,currency:c||""}):(0,n.jsx)(d,{canUseExchangeRates:j,pinnedCurrency:c}):(0,n.jsx)(t.ckm,{name:"maxStoragePriceTBMonth",form:e,fields:i})]})}),(0,n.jsx)(t.VXA,{id:"maxUploadPriceTBGroup",title:"Max upload price",description:i.maxUploadPriceTB.description,control:(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,n.jsx)(o,{name:"shouldPinMaxUploadPrice",form:e,fields:i}),h?j?(0,n.jsx)(t.npL,{name:"maxUploadPriceTBPinned",form:e,fields:i,currency:c||""}):(0,n.jsx)(d,{canUseExchangeRates:j,pinnedCurrency:c}):(0,n.jsx)(t.ckm,{name:"maxUploadPriceTB",form:e,fields:i})]})}),(0,n.jsx)(t.VXA,{id:"maxDownloadPriceTBGroup",title:"Max download price",description:i.maxDownloadPriceTB.description,control:(0,n.jsxs)("div",{className:"flex flex-col gap-1 w-[260px]",children:[(0,n.jsx)(o,{name:"shouldPinMaxDownloadPrice",form:e,fields:i}),u?j?(0,n.jsx)(t.npL,{name:"maxDownloadPriceTBPinned",form:e,fields:i,currency:c||""}):(0,n.jsx)(d,{canUseExchangeRates:j,pinnedCurrency:c}):(0,n.jsx)(t.ckm,{name:"maxDownloadPriceTB",form:e,fields:i})]})}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"maxContractPrice",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"maxRPCPriceMillion",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"hostBlockHeightLeeway",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"minPriceTableValidityMinutes",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"minAccountExpiryDays",form:e,fields:i}),(0,n.jsx)(t.CN9,{autoVisibility:!0,name:"minMaxEphemeralAccountBalance",form:e,fields:i})]}),(0,n.jsx)(t.vRO,{title:"Hosts",category:"hosts",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Wallet",category:"wallet",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Uploads",category:"uploadpacking",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Redundancy",category:"redundancy",fields:i,form:e}),(0,n.jsx)(t.vRO,{title:"Pinning",category:"pinning",fields:i,form:e})]})}var h=s(70825),u=s(82285),f=s(31392);function j(){let{takeScreenshot:e}=(0,a.ZR)();return(0,n.jsxs)(t.h_2,{trigger:(0,n.jsx)(t.zxk,{children:(0,n.jsx)(r.jH8,{})}),contentProps:{align:"end"},children:[(0,n.jsx)(t.Juw,{children:"Actions"}),(0,n.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config image",copy:!0})},children:[(0,n.jsx)(t.KpP,{children:(0,n.jsx)(r.olJ,{})}),"Copy image of configuration"]}),(0,n.jsxs)(t.Xiv,{onSelect:()=>{e({name:"config",download:!0})},children:[(0,n.jsx)(t.KpP,{children:(0,n.jsx)(r.vzB,{})}),"Download image of configuration"]})]})}function g(){let{configViewMode:e,setConfigViewMode:i}=(0,a.ZR)();return(0,n.jsx)("div",{className:"pl-1",children:(0,n.jsx)(t.ua7,{content:"advanced"===e?"Show advanced settings":"Hide advanced settings",children:(0,n.jsx)("div",{children:(0,n.jsx)(t.rsf,{"aria-label":"configViewMode",checked:"advanced"===e,onCheckedChange:e=>i(e?"advanced":"basic")})})})})}function p(){return(0,n.jsx)(t.J2e,{trigger:(0,n.jsxs)(t.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(r.hiv,{}),"View",(0,n.jsx)(r.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:(0,n.jsxs)(t.WVB,{children:[(0,n.jsx)(t.__J,{children:"Show advanced settings"}),(0,n.jsx)(t.kFS,{children:(0,n.jsx)(g,{})})]})})}var v=s(60381);function w(){let{onSubmit:e,changeCount:i,revalidateAndResetForm:s,form:l}=(0,a.ZR)();return(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[!!i&&(0,n.jsx)(t.xvT,{size:"12",color:"subtle",children:(0,v._6)(i,"change","changes")}),(0,n.jsx)(t.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!i,onClick:s,children:(0,n.jsx)(r.Wet,{})}),(0,n.jsx)(t.eQh,{children:(0,n.jsxs)(t.zxk,{tip:"Save all changes",variant:"accent",disabled:!l.formState.isDirty||l.formState.isSubmitting,onClick:e,children:[(0,n.jsx)(r.ZEk,{}),"Save changes"]})}),(0,n.jsx)(j,{}),(0,n.jsx)(p,{})]})}var T=s(80063);function P(){return(0,n.jsx)("div",{className:"pl-1",children:(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)(T.z,{size:"small"})})})}var b=s(92762),y=s(40144),N=s(2784),B=s(6391),S=s.n(B),z=s(5001),M=s(5880),k=s(6459),C=s(75346);function R(e){let{estimatedSpendingPerMonth:i}=e,{form:s,fields:l}=(0,a.ZR)(),o=function(e){let{estimatedSpendingPerMonth:i}=e,{form:s}=(0,a.ZR)(),n=s.watch("storageTB"),t=s.watch("downloadTBMonth"),r=s.watch("uploadTBMonth"),l=(0,M.i)({minShards:s.watch("minShards"),totalShards:s.watch("totalShards")}),{rate:o}=(0,k.x)(s),c=(0,N.useMemo)(()=>{let e=(0,z.DQ)({estimatedSpendingPerMonth:i,maxPricingFactor:1.5,storageTB:n,downloadTBMonth:t,uploadTBMonth:r,redundancyMultiplier:l,storageWeight:4,downloadWeight:5,uploadWeight:1});if(!e)return;let s=o?{maxStoragePriceTBMonthPinned:null==e?void 0:e.maxStoragePriceTBMonth.times(o),maxDownloadPriceTBPinned:null==e?void 0:e.maxDownloadPriceTB.times(o),maxUploadPriceTBPinned:null==e?void 0:e.maxUploadPriceTB.times(o)}:void 0;return{...e,...s}},[i,n,t,r,l,o]),d=s.watch("shouldPinMaxStoragePrice"),x=s.watch("shouldPinMaxUploadPrice"),m=s.watch("shouldPinMaxDownloadPrice"),h={};if(c)return d?h.maxStoragePriceTBMonthPinned=c.maxStoragePriceTBMonthPinned:h.maxStoragePriceTBMonth=c.maxStoragePriceTBMonth,x?h.maxUploadPriceTBPinned=c.maxUploadPriceTBPinned:h.maxUploadPriceTB=c.maxUploadPriceTB,m?h.maxDownloadPriceTBPinned=c.maxDownloadPriceTBPinned:h.maxDownloadPriceTB=c.maxDownloadPriceTB,h}({estimatedSpendingPerMonth:i}),c=function(){let{form:e}=(0,a.ZR)(),i=(0,C.w)({form:e}),{estimatedSpendingPerMonth:s}=(0,y.S)(),n=e.watch("storageTB"),t=e.watch("downloadTBMonth"),r=e.watch("uploadTBMonth"),l=(0,M.i)({minShards:e.watch("minShards"),totalShards:e.watch("totalShards")}),o=(0,N.useMemo)(()=>null==s?void 0:s.gt(0),[s]);return(0,N.useMemo)(()=>{if(!o)return new(S())(0);let e=(0,z.DQ)({estimatedSpendingPerMonth:s,maxPricingFactor:1.5,storageTB:n,downloadTBMonth:t,uploadTBMonth:r,redundancyMultiplier:l,storageWeight:4,downloadWeight:5,uploadWeight:1});return U(null==e?void 0:e.maxStoragePriceTBMonth,null==i?void 0:i.maxStoragePriceTBMonth,.01)||U(null==e?void 0:e.maxUploadPriceTB,null==i?void 0:i.maxUploadPriceTB,.01)||U(null==e?void 0:e.maxDownloadPriceTB,null==i?void 0:i.maxDownloadPriceTB,.01)},[o,i,n,t,r,l,s])}();return(0,n.jsx)(t.ua7,{content:(0,n.jsxs)("div",{className:"flex flex-col gap-1 p-1",children:[(0,n.jsx)(t.xvT,{size:"14",weight:"medium",children:"Rebalance prices"}),(0,n.jsxs)(t.xvT,{size:"14",color:"subtle",children:["Update max prices for storage, upload, and download to suggested values that take into account the current estimated usage values and fit the current estimated spending value. The suggested values keep storage, upload, and download prices proportional to each other according to the following weights: ",4,"x storage,"," ",1,"x upload, ",5,"x download. These weights model a recommended pricing ratio across the categories."]})]}),children:(0,n.jsx)(t.zxk,{disabled:!c,"aria-label":"rebalance prices",onClick:()=>{o&&(0,t.JMs)({form:s,fields:l,values:o,options:!0})},children:(0,n.jsx)(r._iN,{})})})}function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new(S())(0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(S())(0),s=arguments.length>2?arguments[2]:void 0;return e.eq(0)||i.eq(0)?new(S())(100):e.minus(i).div(e).abs().gt(s)}var _=s(82851);function V(e){let{localStorageKey:i,heading:s,children:a,tip:l,canMaximizeControls:o,testId:c}=e,[d,x]=(0,b.Z)("v0/renterd/".concat(i),{defaultValue:!0}),m=(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)("div",{className:(0,_.cx)("flex justify-between items-center gap-2 px-3 py-1.5",d&&a?"border-b border-gray-200 dark:border-graydark-300":"",o?"cursor-pointer":""),onClick:()=>{o&&x(e=>!e)},children:[s,o&&(0,n.jsx)(t.zxk,{variant:"ghost",size:"none",children:(0,n.jsx)(r.ybx,{})})]})});return(0,n.jsx)("div",{"data-testid":c,className:"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,n.jsxs)(t.xrM,{children:[l?(0,n.jsx)(t.zsw,{trigger:m,children:l}):m,d&&a]})})}function D(){let{form:e}=(0,a.ZR)(),i=e.watch("storageTB"),[s,l]=(0,b.Z)("v0/renterd/config/spendingEstimateMode",{defaultValue:"total"}),o=e.watch("minShards"),c=e.watch("totalShards"),{estimatedSpendingPerMonth:d,estimatedSpendingPerTB:x}=(0,y.S)(),m=(0,M.i)({minShards:o,totalShards:c}),h=(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsxs)(t.PhF,{"aria-label":"select spending estimate mode",name:"spendingEstimateMode",value:s,onChange:e=>l(e.target.value),children:[(0,n.jsxs)(t.Wxm,{value:"total",children:["total cost for 1TB with ",m.toNumber(),"x redundancy"]}),(0,n.jsxs)(t.Wxm,{value:"tb",children:["cost per TB with ",m.toNumber(),"x redundancy"]})]}),(0,n.jsx)(R,{estimatedSpendingPerMonth:d})]});return d&&x&&i?(0,n.jsx)(V,{testId:"spendingEstimate",localStorageKey:"config/spendingEstimate",canMaximizeControls:!0,tip:(0,n.jsx)("div",{className:"p-2",children:(0,n.jsxs)(t.xvT,{size:"14",color:"subtle",children:["The spending estimate is calculated using the current estimated usage and max price values. The estimate assumes spending will be across a distribution of hosts with various prices that fit within max price values, this is modeled with a factor of"," ",1.5,"x."]})}),heading:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(t.xvT,{color:"amber",children:(0,n.jsx)(r.$iY,{})}),(0,n.jsx)(t.xvT,{size:"16",weight:"medium",color:"contrast",noWrap:!0,children:"Spending estimate"}),d&&(0,n.jsx)(t.ho9,{variant:"value",fixed:0,fixedFiat:0,showTooltip:!1,value:(0,v.qN)(d),displayBoth:!1})]}),children:(0,n.jsx)("div",{className:"p-2 flex flex-col gap-2",children:d&&x&&i?"total"===s?(0,n.jsxs)(n.Fragment,{children:[h,(0,n.jsx)(t.ZBx,{name:"estimatedSpendingPerMonth",tabIndex:-1,className:"min-w-[250px]",readOnly:!0,sc:d,size:"small",units:"SC/month",unitsFiatPostfix:"/month",decimalsLimitSc:0,decimalsLimitFiat:2})]}):(0,n.jsxs)(n.Fragment,{children:[h,(0,n.jsx)(t.ZBx,{name:"estimatedSpendingPerTBPerMonth",tabIndex:-1,className:"min-w-[250px]",readOnly:!0,sc:x,size:"small",units:"SC/month",unitsFiatPostfix:"/month",decimalsLimitSc:0,decimalsLimitFiat:2})]}):(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(t.xvT,{color:"contrast",children:(0,n.jsx)(r.oHy,{})}),(0,n.jsx)(t.xvT,{size:"16",weight:"medium",children:"The system will estimate spending once expected usage and pricing fields are filled."})]})})}):null}function Z(){let{form:e,fields:i,evaluation:s}=(0,a.ZR)(),{hostMargin50:l,hostTarget50:o,hasDataToEvaluate:d,needsRecommendations:x,foundRecommendation:m,recommendations:h,usableHostsCurrent:u,userContractCountTarget:f,usableHostsAfterRecommendation:j}=s,g=(0,n.jsxs)("div",{className:"flex flex-col gap-1 px-3 py-2",children:[(0,n.jsxs)(t.xvT,{size:"14",color:"subtle",children:["It is best practice to have settings that match with about"," ",(100*l).toFixed(0),"% more hosts than necessary in case some hosts go offline."]}),(0,n.jsx)(t.Z0O,{className:"w-full my-1"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Required"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[f," hosts"]})]}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Ideal"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[o," hosts"]})]}),(0,n.jsx)(t.Z0O,{className:"w-full my-1"}),(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Current settings"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[u," hosts"]})]}),x&&m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(t.xvT,{size:"14",color:"subtle",children:"Recommended settings"}),(0,n.jsxs)(t.xvT,{size:"14",color:"contrast",children:[j," hosts"]})]}),(0,n.jsx)(t.Z0O,{className:"w-full my-1"}),j{let{hrefId:a,key:l,title:o,currentLabel:d,targetLabel:x,targetValue:m,direction:h}=s;return(0,n.jsx)(E,{testId:l,title:(0,n.jsxs)(t.xvT,{size:"14",children:["up"===h?"Increase ":"Decrease ",(0,n.jsx)(t.rUS,{href:c._.config.index+"#"+a,size:"14",underline:"hover",children:o})," ","from ",d," to"," ",(0,n.jsx)(t.zxk,{size:"none",onClick:()=>(0,t.fsB)({form:e,fields:i,name:l,value:m,options:!0}),children:x})]}),action:(0,n.jsx)(t.xvT,{children:"up"===h?(0,n.jsx)(r.kqg,{}):(0,n.jsx)(r.EMN,{})})},l)})}):null}):(0,n.jsx)(V,{testId:"recommendations",localStorageKey:"config/recommendations",canMaximizeControls:!1,tip:g,heading:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.xvT,{color:"green",children:(0,n.jsx)(r.dmA,{})}),p,(0,n.jsx)(t.xvT,{size:"16",weight:"medium",children:"Configuration matches with a sufficient number of hosts"})]})})}function E(e){let{testId:i,title:s,action:t}=e;return(0,n.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,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)("div",{className:"flex-1 flex items-center",children:s}),t]})})}function F(){return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)("div",{className:"z-10 absolute top-0 w-full pointer-events-none",children:(0,n.jsx)(t.xrM,{children:(0,n.jsxs)("div",{className:"flex gap-2 items-start justify-center px-3",children:[(0,n.jsx)("div",{className:"pointer-events-auto",children:(0,n.jsx)(D,{})}),(0,n.jsx)("div",{className:"pointer-events-auto",children:(0,n.jsx)(Z,{})})]})})})})}let W=f.J;function O(){return(0,n.jsx)(m,{})}O.Layout=W,O.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)();return{title:"Configuration",routes:c._,nav:(0,n.jsx)(P,{}),sidenav:(0,n.jsx)(h.e,{}),actions:(0,n.jsx)(w,{}),after:(0,n.jsx)(F,{}),openSettings:()=>e("settings"),size:"3"}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-330bb782f75d4230.js b/renterd/assets/_next/static/chunks/pages/contracts-330bb782f75d4230.js new file mode 100644 index 000000000..63078f76a --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/contracts-330bb782f75d4230.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return l(98346)}])},53305:function(e,t,l){"use strict";l.d(t,{a:function(){return u}});var s=l(52322),n=l(70150),a=l(28420),c=l(2784),i=l(82285),r=l(60381),o=l(12295);function u(e){let{multiSelect:t,publicKeys:l}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,o.I)(),x=(0,c.useCallback)(async()=>{d(l,[]),t.deselectAll()},[d,t,l]);return(0,s.jsxs)(n.zxk,{"aria-label":"add host public keys to allowlist",tip:"Add host public keys to allowlist",onClick:()=>{u({title:"Add ".concat((0,r._6)(t.selectionCount,"host")," to allowlist"),action:"Add to allowlist",variant:"accent",body:(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,r._6)(t.selectionCount,"host public key")," to the allowlist?"]})}),onConfirm:x})},children:[(0,s.jsx)(a.nCM,{}),"Add hosts to allowlist"]})}},1884:function(e,t,l){"use strict";l.d(t,{U:function(){return u}});var s=l(52322),n=l(70150),a=l(28420),c=l(2784),i=l(82285),r=l(60381),o=l(12295);function u(e){let{multiSelect:t,publicKeys:l}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,o.I)(),x=(0,c.useCallback)(async()=>{await d([],l),t.deselectAll()},[d,t,l]);return(0,s.jsxs)(n.zxk,{"aria-label":"remove host public keys from allowlist",tip:"Remove host public keys from allowlist",onClick:()=>{u({title:"Remove ".concat((0,r._6)(t.selectionCount,"host")," from allowlist"),action:"Remove from allowlist",variant:"accent",body:(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,r._6)(t.selectionCount,"host public key")," from the allowlist?"]})}),onConfirm:x})},children:[(0,s.jsx)(a.nCM,{}),"Remove hosts from allowlist"]})}},50039:function(e,t,l){"use strict";l.d(t,{c:function(){return o}});var s=l(52322),n=l(70150),a=l(28420),c=l(91426),i=l(2784),r=l(60381);function o(e){let{multiSelect:t,publicKeys:l}=e,o=(0,c.ED)(),u=(0,i.useCallback)(async()=>{await (0,n.eKZ)(l.map(e=>o.post({params:{hostkey:e},payload:{timeout:(0,r.XB)(30)}})),{toastError:e=>{let{successCount:t,errorCount:l,totalCount:s}=e;return{title:"Rescanning ".concat((0,r._6)(t,"host")),body:"Error starting rescan for ".concat(l,"/").concat(s," of total hosts.")}},toastSuccess:e=>{let{totalCount:t}=e;return{title:"Rescanning ".concat((0,r._6)(t,"host"))}},after:()=>{t.deselectAll()}})},[t,l,o]);return(0,s.jsx)(n.zxk,{"aria-label":"rescan selected hosts",tip:"Rescan selected hosts",onClick:u,children:(0,s.jsx)(a._Eq,{})})}},98346:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return M}});var s=l(52322),n=l(70150),a=l(74282),c=l(28420);function i(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(n.xvT,{children:(0,s.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function r(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(n.xvT,{children:(0,s.jsx)(c.VBo,{className:"scale-[200%]"})}),(0,s.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}function o(e){let{error:t}=e;return(null==t?void 0:t.message.startsWith("404"))?(0,s.jsx)(r,{}):(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(n.xvT,{children:(0,s.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var u=l(82851);function d(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(n.xvT,{children:(0,s.jsx)(c.uTh,{className:"scale-[200%]"})}),(0,s.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No data available."})]})}function x(){let{selectedContract:e,allContractsSpendingMetrics:t,selectedContractSpendingMetrics:l,graphMode:c,setGraphMode:i}=(0,a.G)(),r=(0,s.jsxs)("div",{className:"flex gap-2",children:[!e&&(0,s.jsx)(n.zxk,{variant:"spending"===c?"accent":"gray",onClick:()=>i("spending"),children:"Funding & spending: All contracts"}),e&&(0,s.jsxs)(n.zxk,{variant:"spending"===c?"accent":"gray",onClick:()=>i("spending"),children:["Funding & spending: Contract"," ",(0,n.I13)(e.id).slice(0,6)]})]});return(0,s.jsxs)("div",{className:"w-full h-full",children:["spending"===c&&!e&&(0,s.jsx)(n.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:t.data,config:t.config,isLoading:t.isLoading,actionsLeft:r,emptyState:(0,s.jsx)(d,{})}),"spending"===c&&e&&(0,s.jsx)(n.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:l.data,config:l.config,isLoading:l.isLoading,actionsLeft:r,emptyState:(0,s.jsx)(d,{})})]})}function h(){let{visibleColumns:e,datasetPage:t,sortField:l,sortDirection:c,sortableColumns:d,toggleSort:h,limit:j,datasetState:f,cellContext:m,error:p,viewMode:g,filters:v,selectedContract:b}=(0,a.G)(),y="detail"===g&&(!v.length||b),k=y?t&&t.length?"".concat(400-Math.max((2-t.length)*100,0),"px"):"400px":"100%";return(0,s.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,s.jsx)("div",{className:(0,u.cx)("absolute w-full",y?"block":"invisible","transition-all","p-6"),style:{height:y?"calc(100% - ".concat(k,")"):0},children:y?(0,s.jsx)(x,{}):null}),(0,s.jsx)("div",{className:(0,u.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:k},children:(0,s.jsx)(n.xrM,{className:"z-0",children:(0,s.jsx)("div",{className:(0,u.cx)(y?"pb-6 px-6":"p-6","min-w-fit"),children:(0,s.jsx)(n.iA_,{testId:"contractsTable",context:m,isLoading:"loading"===f,emptyState:(0,s.jsx)(n.ubH,{datasetState:f,noneMatching:(0,s.jsx)(i,{}),noneYet:(0,s.jsx)(r,{}),error:(0,s.jsx)(o,{error:p})}),sortableColumns:d,pageSize:j,data:t,columns:e,sortDirection:c,sortField:l,toggleSort:h,rowSize:"default"})})})})]})}var j=l(70825),f=l(4300),m=l(82285),p=l(31392),g=l(46850),v=l(83894);function b(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:l,setColumnsVisible:i,setColumnsHidden:r,sortField:o,setSortField:u,sortDirection:d,setSortDirection:x,visibleColumnIds:h}=(0,a.G)(),j=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),f=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(n.J2e,{trigger:(0,s.jsxs)(n.zxk,{"aria-label":"configure view",size:"small",tip:"Configure view",tipAlign:"end",children:[(0,s.jsx)(c.hiv,{}),"View",(0,s.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(n.WVB,{children:[(0,s.jsx)(n.__J,{children:"Order by"}),(0,s.jsx)(n.kFS,{children:(0,s.jsx)(n.PhF,{value:o,onChange:e=>{u(e.currentTarget.value)},children:Object.entries((0,v.Z)(g.Fo,"category")).map(e=>{let[t,l]=e;return(0,s.jsx)("optgroup",{label:t,children:l.map(e=>(0,s.jsx)(n.Wxm,{value:e.id,children:e.label},e.id))},t)})})})]}),(0,s.jsxs)(n.WVB,{children:[(0,s.jsx)(n.__J,{children:"Direction"}),(0,s.jsx)(n.kFS,{children:(0,s.jsxs)(n.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,s.jsx)(n.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(n.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(n.Clw,{}),(0,s.jsxs)(n.WVB,{children:[(0,s.jsx)(n.__J,{children:"Display properties"}),(0,s.jsx)(n.kFS,{children:(0,s.jsx)(n.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),l()},children:(0,s.jsx)(c.Wet,{})})})]}),(0,s.jsx)(n.FzK,{label:"General",columns:j.map(e=>e.value),enabled:h,setColumnsVisible:i,setColumnsHidden:r}),(0,s.jsx)(n.WVB,{children:(0,s.jsx)(n.j4H,{options:j,values:h,onChange:e=>t(e)})}),(0,s.jsx)(n.FzK,{label:"Time",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:i,setColumnsHidden:r}),(0,s.jsx)(n.WVB,{children:(0,s.jsx)(n.j4H,{options:f,values:h,onChange:e=>t(e)})}),(0,s.jsx)(n.FzK,{label:"Financial",columns:m.map(e=>e.value),enabled:h,setColumnsVisible:i,setColumnsHidden:r}),(0,s.jsx)(n.WVB,{children:(0,s.jsx)(n.j4H,{options:m,values:h,onChange:e=>t(e)})})]})}function y(){let{setViewMode:e}=(0,a.G)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.zxk,{tip:"Toggle graphs",onClick:()=>e(e=>"detail"===e?"list":"detail"),children:(0,s.jsx)(c.oce,{})}),(0,s.jsx)(b,{})]})}var k=l(65304),C=l(2784),w=l(33889);function N(){let{filters:e,removeFilter:t,removeLastFilter:l}=(0,a.G)(),[i,r]=(0,C.useState)(!1),[o,u]=(0,C.useState)(""),[d,x]=(0,C.useState)([]),h=d[d.length-1],j=(d.length,(0,C.useRef)(null)),f=(0,C.useRef)(null),m=(0,C.useCallback)(e=>{x(t=>[...t,e])},[x]),p=(0,C.useCallback)(()=>{x([])},[x]);(0,C.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&r(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let g=(0,C.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),v=(0,C.useCallback)(()=>{u(""),p()},[p]);return(0,s.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,s.jsxs)(n.eQh,{children:[(0,s.jsx)(n.zxk,{variant:"active",state:"waiting",children:e.label}),(0,s.jsx)(n.zxk,{variant:"active",size:"small",onClick:()=>t(e.id),children:(0,s.jsx)(c.PcV,{})})]},e.id)),(0,s.jsxs)(k.mY,{ref:j,label:"Command Menu",onFocus:()=>r(!0),onKeyDown:e=>{if(d.length>0)"Escape"!==e.key&&("Backspace"!==e.key||o)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===d.length&&("Backspace"!==e.key||o||l(),"Escape"===e.key&&!o)){var t;r(!1),null===(t=f.current)||void 0===t||t.blur()}},children:[(0,s.jsx)(k.mY.Input,{ref:f,value:o,onValueChange:u,className:(0,n.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),i&&(0,s.jsx)(n.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,s.jsxs)(n.xrM,{children:[h&&(0,s.jsx)(n.__J,{className:"px-1.5 py-1",children:h.label}),(0,s.jsx)(k.mY.List,{children:(0,s.jsx)(w.F,{currentPage:h,beforeSelect:g,afterSelect:v,pushPage:m})})]})})]})]})}function _(){let{datasetState:e,offset:t,limit:l,datasetFilteredTotal:c}=(0,a.G)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(N,{}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(n.uDJ,{isLoading:"loading"===e,offset:t,limit:l,total:c})]})}var z=l(91426),S=l(60381);function E(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,l]=e;return l.id}),[e.selection]),{openConfirmDialog:l}=(0,m.Rh)(),i=(0,z.IK)(),r=(0,C.useCallback)(async()=>{await (0,n.eKZ)(t.map(e=>i.delete({params:{id:e}})),{toastError:e=>{let{successCount:t,errorCount:l,totalCount:s}=e;return{title:"".concat((0,S._6)(t,"contract")," deleted"),body:"Error deleting ".concat(l,"/").concat(s," total contracts.")}},toastSuccess:e=>{let{totalCount:t}=e;return{title:"".concat((0,S._6)(t,"contract")," deleted")}},after:()=>{e.deselectAll()}})},[e,t,i]);return(0,s.jsx)(n.zxk,{"aria-label":"delete selected contracts",tip:"Delete selected contracts",onClick:()=>{l({title:"Delete contracts",action:"Delete",variant:"red",body:(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to delete the"," ",(0,S._6)(e.selectionCount,"selected contract"),"?"]})}),onConfirm:async()=>{r()}})},children:(0,s.jsx)(c.Jrl,{})})}var A=l(53305);function T(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,l]=e;return l.hostKey}),[e.selection]);return(0,s.jsx)(A.a,{multiSelect:e,publicKeys:t})}var F=l(1884);function R(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,l]=e;return l.hostKey}),[e.selection]);return(0,s.jsx)(F.U,{multiSelect:e,publicKeys:t})}var K=l(50039);function L(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,l]=e;return l.hostKey}),[e.selection]);return(0,s.jsx)(K.c,{multiSelect:e,publicKeys:t})}function V(){let{multiSelect:e}=(0,a.G)();return(0,s.jsxs)(n.hv1,{multiSelect:e,entityWord:"contract",children:[(0,s.jsx)(T,{}),(0,s.jsx)(R,{}),(0,s.jsx)(L,{}),(0,s.jsx)(E,{})]})}let G=p.J;function M(){return(0,s.jsx)(h,{})}M.Layout=G,M.useLayoutProps=function(){let{openDialog:e}=(0,m.Rh)();return{title:"Active contracts",routes:f._,sidenav:(0,s.jsx)(j.e,{}),openSettings:()=>e("settings"),actions:(0,s.jsx)(y,{}),stats:(0,s.jsx)(_,{}),size:"full",scroll:!1,dockedControls:(0,s.jsx)(V,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-77ed6db24c1b79ee.js b/renterd/assets/_next/static/chunks/pages/contracts-77ed6db24c1b79ee.js deleted file mode 100644 index a7605deff..000000000 --- a/renterd/assets/_next/static/chunks/pages/contracts-77ed6db24c1b79ee.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(18677)}])},53305:function(e,t,s){"use strict";s.d(t,{a:function(){return d}});var l=s(52322),n=s(18575),a=s(28420),c=s(2784),i=s(82285),o=s(60381),r=s(12295);function d(e){let{multiSelect:t,publicKeys:s}=e,{openConfirmDialog:d}=(0,i.Rh)(),u=(0,r.I)(),x=(0,c.useCallback)(async()=>{u(s,[]),t.deselectAll()},[u,t,s]);return(0,l.jsxs)(n.zxk,{"aria-label":"add host public keys to allowlist",tip:"Add host public keys to allowlist",onClick:()=>{d({title:"Add ".concat((0,o._6)(t.selectionCount,"host")," to allowlist"),action:"Add to allowlist",variant:"accent",body:(0,l.jsx)("div",{className:"flex flex-col gap-1",children:(0,l.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,o._6)(t.selectionCount,"host public key")," to the allowlist?"]})}),onConfirm:x})},children:[(0,l.jsx)(a.nCM,{}),"Add hosts to allowlist"]})}},69818:function(e,t,s){"use strict";s.d(t,{e:function(){return d}});var l=s(52322),n=s(18575),a=s(28420),c=s(2784),i=s(82285),o=s(60381),r=s(9408);function d(e){let{multiSelect:t,hostAddresses:s}=e,{openConfirmDialog:d}=(0,i.Rh)(),u=(0,r.l)(),x=(0,c.useCallback)(async()=>{u(s,[]),t.deselectAll()},[u,t,s]);return(0,l.jsxs)(n.zxk,{"aria-label":"add host addresses to blocklist",tip:"Add host addresses to blocklist",onClick:()=>{d({title:"Add ".concat((0,o._6)(t.selectionCount,"host")," to blocklist"),action:"Add to blocklist",variant:"red",body:(0,l.jsx)("div",{className:"flex flex-col gap-1",children:(0,l.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,o._6)(t.selectionCount,"host address","host addresses")," ","to the blocklist?"]})}),onConfirm:x})},children:[(0,l.jsx)(a.nCM,{}),"Add hosts to blocklist"]})}},1884:function(e,t,s){"use strict";s.d(t,{U:function(){return d}});var l=s(52322),n=s(18575),a=s(28420),c=s(2784),i=s(82285),o=s(60381),r=s(12295);function d(e){let{multiSelect:t,publicKeys:s}=e,{openConfirmDialog:d}=(0,i.Rh)(),u=(0,r.I)(),x=(0,c.useCallback)(async()=>{await u([],s),t.deselectAll()},[u,t,s]);return(0,l.jsxs)(n.zxk,{"aria-label":"remove host public keys from allowlist",tip:"Remove host public keys from allowlist",onClick:()=>{d({title:"Remove ".concat((0,o._6)(t.selectionCount,"host")," from allowlist"),action:"Remove from allowlist",variant:"accent",body:(0,l.jsx)("div",{className:"flex flex-col gap-1",children:(0,l.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,o._6)(t.selectionCount,"host public key")," from the allowlist?"]})}),onConfirm:x})},children:[(0,l.jsx)(a.nCM,{}),"Remove hosts from allowlist"]})}},46348:function(e,t,s){"use strict";s.d(t,{H:function(){return d}});var l=s(52322),n=s(18575),a=s(28420),c=s(2784),i=s(82285),o=s(60381),r=s(9408);function d(e){let{multiSelect:t,hostAddresses:s}=e,{openConfirmDialog:d}=(0,i.Rh)(),u=(0,r.l)(),x=(0,c.useCallback)(async()=>{u([],s),t.deselectAll()},[u,t,s]);return(0,l.jsxs)(n.zxk,{"aria-label":"remove host addresses from blocklist",tip:"Remove host addresses from blocklist",onClick:()=>{d({title:"Remove ".concat((0,o._6)(t.selectionCount,"host")," from blocklist"),action:"Remove from blocklist",variant:"red",body:(0,l.jsx)("div",{className:"flex flex-col gap-1",children:(0,l.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,o._6)(t.selectionCount,"host address","host addresses")," ","from the blocklist?"]})}),onConfirm:x})},children:[(0,l.jsx)(a.nCM,{}),"Remove hosts from blocklist"]})}},50039:function(e,t,s){"use strict";s.d(t,{c:function(){return r}});var l=s(52322),n=s(18575),a=s(28420),c=s(91426),i=s(2784),o=s(60381);function r(e){let{multiSelect:t,publicKeys:s}=e,r=(0,c.ED)(),d=(0,i.useCallback)(async()=>{await (0,n.eKZ)(s.map(e=>r.post({params:{hostkey:e},payload:{timeout:(0,o.XB)(30)}})),{toastError:e=>{let{successCount:t,errorCount:s,totalCount:l}=e;return{title:"Rescanning ".concat((0,o._6)(t,"host")),body:"Error starting rescan for ".concat(s,"/").concat(l," of total hosts.")}},toastSuccess:e=>{let{totalCount:t}=e;return{title:"Rescanning ".concat((0,o._6)(t,"host"))}},after:()=>{t.deselectAll()}})},[t,s,r]);return(0,l.jsx)(n.zxk,{"aria-label":"rescan selected hosts",tip:"Rescan selected hosts",onClick:d,children:(0,l.jsx)(a._Eq,{})})}},18677:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return D}});var l=s(52322),n=s(18575),a=s(74282),c=s(28420);function i(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(n.xvT,{children:(0,l.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,l.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function o(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(n.xvT,{children:(0,l.jsx)(c.VBo,{className:"scale-[200%]"})}),(0,l.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}function r(e){let{error:t}=e;return(null==t?void 0:t.message.startsWith("404"))?(0,l.jsx)(o,{}):(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(n.xvT,{children:(0,l.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var d=s(82851);function u(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(n.xvT,{children:(0,l.jsx)(c.uTh,{className:"scale-[200%]"})}),(0,l.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No data available."})]})}function x(){let{selectedContract:e,allContractsSpendingMetrics:t,selectedContractSpendingMetrics:s,graphMode:c,setGraphMode:i}=(0,a.G)(),o=(0,l.jsxs)("div",{className:"flex gap-2",children:[!e&&(0,l.jsx)(n.zxk,{variant:"spending"===c?"accent":"gray",onClick:()=>i("spending"),children:"Funding & spending: All contracts"}),e&&(0,l.jsxs)(n.zxk,{variant:"spending"===c?"accent":"gray",onClick:()=>i("spending"),children:["Funding & spending: Contract"," ",(0,n.I13)(e.id).slice(0,6)]})]});return(0,l.jsxs)("div",{className:"w-full h-full",children:["spending"===c&&!e&&(0,l.jsx)(n.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:t.data,config:t.config,isLoading:t.isLoading,actionsLeft:o,emptyState:(0,l.jsx)(u,{})}),"spending"===c&&e&&(0,l.jsx)(n.b0u,{id:"renterd/v0/contracts/graphs/fundingAndSpending",height:"100%",data:s.data,config:s.config,isLoading:s.isLoading,actionsLeft:o,emptyState:(0,l.jsx)(u,{})})]})}function h(){let{columns:e,datasetPage:t,sortField:s,sortDirection:c,sortableColumns:u,toggleSort:h,limit:f,dataState:m,cellContext:j,error:p,viewMode:v,filters:g,selectedContract:b}=(0,a.G)(),k="detail"===v&&(!g.length||b),y=k?t&&t.length?"".concat(400-Math.max((2-t.length)*100,0),"px"):"400px":"100%";return(0,l.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,l.jsx)("div",{className:(0,d.cx)("absolute w-full",k?"block":"invisible","transition-all","p-6"),style:{height:k?"calc(100% - ".concat(y,")"):0},children:k?(0,l.jsx)(x,{}):null}),(0,l.jsx)("div",{className:(0,d.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:y},children:(0,l.jsx)(n.xrM,{className:"z-0",children:(0,l.jsx)("div",{className:(0,d.cx)(k?"pb-6 px-6":"p-6","min-w-fit"),children:(0,l.jsx)(n.iA_,{testId:"contractsTable",context:j,isLoading:"loading"===m,emptyState:"noneMatchingFilters"===m?(0,l.jsx)(i,{}):"noneYet"===m?(0,l.jsx)(o,{}):"error"===m?(0,l.jsx)(r,{error:p}):null,sortableColumns:u,pageSize:f,data:t,columns:e,sortDirection:c,sortField:s,toggleSort:h,rowSize:"default"})})})})]})}var f=s(70825),m=s(4300),j=s(82285),p=s(31392),v=s(46850),g=s(83894);function b(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:i,setColumnsHidden:o,sortField:r,setSortField:d,sortDirection:u,setSortDirection:x,enabledColumns:h}=(0,a.G)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),j=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,l.jsxs)(n.J2e,{trigger:(0,l.jsxs)(n.zxk,{"aria-label":"configure view",size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(c.hiv,{}),"View",(0,l.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(n.WVB,{children:[(0,l.jsx)(n.__J,{children:"Order by"}),(0,l.jsx)(n.kFS,{children:(0,l.jsx)(n.PhF,{value:r,onChange:e=>{d(e.currentTarget.value)},children:Object.entries((0,g.Z)(v.Fo,"category")).map(e=>{let[t,s]=e;return(0,l.jsx)("optgroup",{label:t,children:s.map(e=>(0,l.jsx)(n.Wxm,{value:e.id,children:e.label},e.id))},t)})})})]}),(0,l.jsxs)(n.WVB,{children:[(0,l.jsx)(n.__J,{children:"Direction"}),(0,l.jsx)(n.kFS,{children:(0,l.jsxs)(n.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,l.jsx)(n.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(n.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(n.Clw,{}),(0,l.jsxs)(n.WVB,{children:[(0,l.jsx)(n.__J,{children:"Display properties"}),(0,l.jsx)(n.kFS,{children:(0,l.jsx)(n.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,l.jsx)(c.Wet,{})})})]}),(0,l.jsx)(n.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:i,setColumnsHidden:o}),(0,l.jsx)(n.WVB,{children:(0,l.jsx)(n.j4H,{options:f,values:h,onChange:e=>t(e)})}),(0,l.jsx)(n.FzK,{label:"Time",columns:m.map(e=>e.value),enabled:h,setColumnsVisible:i,setColumnsHidden:o}),(0,l.jsx)(n.WVB,{children:(0,l.jsx)(n.j4H,{options:m,values:h,onChange:e=>t(e)})}),(0,l.jsx)(n.FzK,{label:"Financial",columns:j.map(e=>e.value),enabled:h,setColumnsVisible:i,setColumnsHidden:o}),(0,l.jsx)(n.WVB,{children:(0,l.jsx)(n.j4H,{options:j,values:h,onChange:e=>t(e)})})]})}function k(){let{setViewMode:e}=(0,a.G)();return(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(n.zxk,{tip:"Toggle graphs",onClick:()=>e(e=>"detail"===e?"list":"detail"),children:(0,l.jsx)(c.oce,{})}),(0,l.jsx)(b,{})]})}var y=s(65304),C=s(2784),w=s(94248);function N(){let{filters:e,removeFilter:t,removeLastFilter:s}=(0,a.G)(),[i,o]=(0,C.useState)(!1),[r,d]=(0,C.useState)(""),[u,x]=(0,C.useState)([]),h=u[u.length-1],f=(u.length,(0,C.useRef)(null)),m=(0,C.useRef)(null),j=(0,C.useCallback)(e=>{x(t=>[...t,e])},[x]),p=(0,C.useCallback)(()=>{x([])},[x]);(0,C.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&o(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let v=(0,C.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),g=(0,C.useCallback)(()=>{d(""),p()},[p]);return(0,l.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,l.jsxs)(n.eQh,{children:[(0,l.jsx)(n.zxk,{variant:"active",state:"waiting",children:e.label}),(0,l.jsx)(n.zxk,{variant:"active",size:"small",onClick:()=>t(e.id),children:(0,l.jsx)(c.PcV,{})})]},e.id)),(0,l.jsxs)(y.mY,{ref:f,label:"Command Menu",onFocus:()=>o(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var t;o(!1),null===(t=m.current)||void 0===t||t.blur()}},children:[(0,l.jsx)(y.mY.Input,{ref:m,value:r,onValueChange:d,className:(0,n.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),i&&(0,l.jsx)(n.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,l.jsxs)(n.xrM,{children:[h&&(0,l.jsx)(n.__J,{className:"px-1.5 py-1",children:h.label}),(0,l.jsx)(y.mY.List,{children:(0,l.jsx)(w.F,{currentPage:h,beforeSelect:v,afterSelect:g,pushPage:j})})]})})]})]})}function _(){let{dataState:e,offset:t,limit:s,datasetFilteredCount:c,pageCount:i}=(0,a.G)();return(0,l.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,l.jsx)(N,{}),(0,l.jsx)("div",{className:"flex-1"}),(0,l.jsx)(n.uDJ,{isLoading:"loading"===e,offset:t,limit:s,datasetTotal:c,pageTotal:i})]})}var z=s(91426),A=s(60381);function S(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.id}),[e.selection]),{openConfirmDialog:s}=(0,j.Rh)(),i=(0,z.IK)(),o=(0,C.useCallback)(async()=>{await (0,n.eKZ)(t.map(e=>i.delete({params:{id:e}})),{toastError:e=>{let{successCount:t,errorCount:s,totalCount:l}=e;return{title:"".concat((0,A._6)(t,"contract")," deleted"),body:"Error deleting ".concat(s,"/").concat(l," total contracts.")}},toastSuccess:e=>{let{totalCount:t}=e;return{title:"".concat((0,A._6)(t,"contract")," deleted")}},after:()=>{e.deselectAll()}})},[e,t,i]);return(0,l.jsx)(n.zxk,{"aria-label":"delete selected contracts",tip:"Delete selected contracts",onClick:()=>{s({title:"Delete contracts",action:"Delete",variant:"red",body:(0,l.jsx)("div",{className:"flex flex-col gap-1",children:(0,l.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to delete the"," ",(0,A._6)(e.selectionCount,"selected contract"),"?"]})}),onConfirm:async()=>{o()}})},children:(0,l.jsx)(c.Jrl,{})})}var R=s(69818);function E(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.hostIp}),[e.selection]);return(0,l.jsx)(R.e,{multiSelect:e,hostAddresses:t})}var T=s(53305);function F(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.hostKey}),[e.selection]);return(0,l.jsx)(T.a,{multiSelect:e,publicKeys:t})}var M=s(46348);function G(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.hostIp}),[e.selection]);return(0,l.jsx)(M.H,{multiSelect:e,hostAddresses:t})}var K=s(1884);function L(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.hostKey}),[e.selection]);return(0,l.jsx)(K.U,{multiSelect:e,publicKeys:t})}var V=s(50039);function W(){let{multiSelect:e}=(0,a.G)(),t=(0,C.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.hostKey}),[e.selection]);return(0,l.jsx)(V.c,{multiSelect:e,publicKeys:t})}function P(){let{multiSelect:e}=(0,a.G)();return(0,l.jsxs)(n.hv1,{multiSelect:e,entityWord:"contract",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(F,{}),(0,l.jsx)(E,{})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(L,{}),(0,l.jsx)(G,{})]}),(0,l.jsx)(W,{}),(0,l.jsx)(S,{})]})}let B=p.J;function D(){return(0,l.jsx)(h,{})}D.Layout=B,D.useLayoutProps=function(){let{openDialog:e}=(0,j.Rh)();return{title:"Active contracts",routes:m._,sidenav:(0,l.jsx)(f.e,{}),openSettings:()=>e("settings"),actions:(0,l.jsx)(k,{}),stats:(0,l.jsx)(_,{}),size:"full",scroll:!1,dockedControls:(0,l.jsx)(P,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-28b8e5cdb41c2e71.js b/renterd/assets/_next/static/chunks/pages/hosts-28b8e5cdb41c2e71.js new file mode 100644 index 000000000..bd609b5db --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/hosts-28b8e5cdb41c2e71.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return s(539)}])},53305:function(e,l,s){"use strict";s.d(l,{a:function(){return u}});var t=s(52322),n=s(70150),o=s(28420),a=s(2784),i=s(82285),c=s(60381),r=s(12295);function u(e){let{multiSelect:l,publicKeys:s}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,r.I)(),x=(0,a.useCallback)(async()=>{d(s,[]),l.deselectAll()},[d,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"add host public keys to allowlist",tip:"Add host public keys to allowlist",onClick:()=>{u({title:"Add ".concat((0,c._6)(l.selectionCount,"host")," to allowlist"),action:"Add to allowlist",variant:"accent",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,c._6)(l.selectionCount,"host public key")," to the allowlist?"]})}),onConfirm:x})},children:[(0,t.jsx)(o.nCM,{}),"Add hosts to allowlist"]})}},1884:function(e,l,s){"use strict";s.d(l,{U:function(){return u}});var t=s(52322),n=s(70150),o=s(28420),a=s(2784),i=s(82285),c=s(60381),r=s(12295);function u(e){let{multiSelect:l,publicKeys:s}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,r.I)(),x=(0,a.useCallback)(async()=>{await d([],s),l.deselectAll()},[d,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"remove host public keys from allowlist",tip:"Remove host public keys from allowlist",onClick:()=>{u({title:"Remove ".concat((0,c._6)(l.selectionCount,"host")," from allowlist"),action:"Remove from allowlist",variant:"accent",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,c._6)(l.selectionCount,"host public key")," from the allowlist?"]})}),onConfirm:x})},children:[(0,t.jsx)(o.nCM,{}),"Remove hosts from allowlist"]})}},50039:function(e,l,s){"use strict";s.d(l,{c:function(){return r}});var t=s(52322),n=s(70150),o=s(28420),a=s(91426),i=s(2784),c=s(60381);function r(e){let{multiSelect:l,publicKeys:s}=e,r=(0,a.ED)(),u=(0,i.useCallback)(async()=>{await (0,n.eKZ)(s.map(e=>r.post({params:{hostkey:e},payload:{timeout:(0,c.XB)(30)}})),{toastError:e=>{let{successCount:l,errorCount:s,totalCount:t}=e;return{title:"Rescanning ".concat((0,c._6)(l,"host")),body:"Error starting rescan for ".concat(s,"/").concat(t," of total hosts.")}},toastSuccess:e=>{let{totalCount:l}=e;return{title:"Rescanning ".concat((0,c._6)(l,"host"))}},after:()=>{l.deselectAll()}})},[l,s,r]);return(0,t.jsx)(n.zxk,{"aria-label":"rescan selected hosts",tip:"Rescan selected hosts",onClick:u,children:(0,t.jsx)(o._Eq,{})})}},539:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return L}});var t=s(52322),n=s(70150),o=s(46741),a=s(28420),i=s(4300);function c(){let{datasetState:e}=(0,o.l)();return"noneOnPage"===e?(0,t.jsx)(n.xJ6,{}):"error"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(n.xvT,{children:(0,t.jsx)(a.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(n.xvT,{children:(0,t.jsx)(a.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(n.xvT,{children:(0,t.jsx)(a.zvn,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,t.jsx)(n.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,t.jsx)(n.Qjf,{href:i._.node.index,children:"View peers"})]})]}):null}var r=s(463),u=s(777),d=s(54597);function x(){let{gpu:e,settings:l}=(0,r.Hv)(),{setCmd:s,activeHost:a,onHostMapClick:i,hostsWithLocation:c}=(0,o.l)();return l.siaCentral&&!e.shouldRender?null:(0,t.jsxs)("div",{className:"w-full h-full",children:[(0,t.jsx)(u.T,{activeHost:(null==a?void 0:a.location)?a:void 0,hosts:c,onHostClick:i,onMount:e=>{s(e)}}),(0,t.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,t.jsx)(n.wEc,{color:d.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,t.jsx)(n.wEc,{color:d.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,t.jsx)(n.wEc,{color:d.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var h=s(82851);function m(){let{datasetPage:e,activeHost:l,visibleColumns:s,limit:a,datasetState:i,tableContext:r,viewMode:u}=(0,o.l)();return(0,t.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,t.jsx)("div",{className:(0,h.cx)("absolute h-[70%] w-full","map"===u?"block":"invisible","transition-all"),children:(0,t.jsx)(x,{})}),(0,t.jsx)("div",{className:(0,h.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===u?e&&e.length?400-Math.max((2-e.length)*100,0):400:"100%"},children:(0,t.jsx)(n.xrM,{className:"z-0",id:"scroll-hosts",children:(0,t.jsx)("div",{className:(0,h.cx)("map"===u?"pb-6 px-6":"p-6","min-w-fit"),children:(0,t.jsx)(n.iA_,{testId:"hostsTable",focusId:null==l?void 0:l.publicKey,focusColor:l?(0,d.Kg)(l).colorName:void 0,isLoading:"loading"===i,emptyState:(0,t.jsx)(c,{}),context:r,pageSize:a,data:e,columns:s,rowSize:"default"})})})})]})}var f=s(70825),j=s(82285),p=s(31392);function v(){let{configurableColumns:e,toggleColumnVisibility:l,setColumnsVisible:s,setColumnsHidden:i,resetDefaultColumnVisibility:c,visibleColumnIds:r}=(0,o.l)(),u=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),d=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(n.J2e,{trigger:(0,t.jsxs)(n.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(a.hiv,{}),"View",(0,t.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,t.jsxs)(n.WVB,{children:[(0,t.jsx)(n.__J,{children:"Display properties"}),(0,t.jsx)(n.kFS,{children:(0,t.jsx)(n.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),c()},children:(0,t.jsx)(a.Wet,{})})})]}),(0,t.jsx)(n.FzK,{label:"General",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:u,values:r,onChange:e=>l(e)})}),d.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FzK,{label:"Autopilot",columns:d.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:d,values:r,onChange:e=>l(e)})})]}):null,x.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FzK,{label:"Price table (RHPv3)",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:x,values:r,onChange:e=>l(e)})})]}):null,h.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:h,values:r,onChange:e=>l(e)})})]}):null]})}function b(){let{openDialog:e}=(0,j.Rh)(),{viewMode:l,setViewMode:s}=(0,o.l)(),{settings:i,gpu:c}=(0,r.Hv)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(n.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,t.jsx)(a.nCM,{}),"Manage lists"]}),(0,t.jsx)(n.ua7,{content:i.siaCentral?c.canGpuRender&&c.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,t.jsx)(n.zxk,{disabled:!c.canGpuRender,onClick:()=>{if(!i.siaCentral){e("settings");return}c.isGpuEnabled?s("map"===l?"list":"map"):e("settings")},children:(0,t.jsx)(a.nDH,{})})}),(0,t.jsx)(v,{})]})}var k=s(65304),g=s(2784),C=s(50454);function y(){let{filters:e,removeFilter:l,removeLastFilter:s}=(0,o.l)(),[i,c]=(0,g.useState)(!1),[r,u]=(0,g.useState)(""),[d,x]=(0,g.useState)([]),h=d[d.length-1],m=(0,g.useRef)(null),f=(0,g.useRef)(null),j=(0,g.useCallback)(e=>{x(l=>[...l,e])},[x]),p=(0,g.useCallback)(()=>{x([])},[x]);(0,g.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&c(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let v=(0,g.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),b=(0,g.useCallback)(()=>{u(""),p()},[p]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(n.eQh,{children:[(0,t.jsx)(n.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(n.zxk,{variant:"active",size:"small",onClick:()=>l(e.id),children:(0,t.jsx)(a.PcV,{})})]},e.id)),(0,t.jsxs)(k.mY,{ref:m,label:"Command Menu",onFocus:()=>c(!0),onKeyDown:e=>{if(d.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===d.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var l;c(!1),null===(l=f.current)||void 0===l||l.blur()}},children:[(0,t.jsx)(k.mY.Input,{ref:f,value:r,onValueChange:u,className:(0,n.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),i&&(0,t.jsx)(n.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(n.xrM,{children:[h&&(0,t.jsx)(n.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(k.mY.List,{children:(0,t.jsx)(C.L,{currentPage:h,beforeSelect:v,afterSelect:b,pushPage:j})})]})})]})]})}function w(){let{offset:e,limit:l,datasetPageTotal:s,datasetState:a}=(0,o.l)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(y,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(n.wFK,{offset:e,limit:l,pageTotal:s,isLoading:"loading"===a})]})}var N=s(91426),_=s(60381);function z(){let e=(0,N.wW)(),{multiSelect:l}=(0,o.l)(),s=(0,g.useMemo)(()=>Object.entries(l.selection).map(e=>{let[l,s]=e;return s.publicKey}),[l.selection]),i=(0,g.useCallback)(async()=>{await (0,n.eKZ)(s.map(l=>e.post({params:{hostkey:l}})),{toastError:e=>{let{successCount:l,errorCount:s,totalCount:t}=e;return{title:"Reset lost sector count for ".concat((0,_._6)(l,"host")),body:"Error reseting lost sector count for ".concat(s,"/").concat(t," total hosts.")}},toastSuccess:e=>{let{totalCount:l}=e;return{title:"Reset lost sector count for ".concat((0,_._6)(l,"host"))}},after:()=>{l.deselectAll()}})},[l,s,e]);return(0,t.jsx)(n.zxk,{"aria-label":"reset lost sector count for hosts",tip:"Reset lost sector count for hosts",onClick:i,children:(0,t.jsx)(a.xkX,{})})}var A=s(9408);function R(e){let{multiSelect:l,hostAddresses:s}=e,{openConfirmDialog:o}=(0,j.Rh)(),i=(0,A.l)(),c=(0,g.useCallback)(async()=>{i(s,[]),l.deselectAll()},[i,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"add host addresses to blocklist",tip:"Add host addresses to blocklist",onClick:()=>{o({title:"Add ".concat((0,_._6)(l.selectionCount,"host")," to blocklist"),action:"Add to blocklist",variant:"red",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,_._6)(l.selectionCount,"host address","host addresses")," ","to the blocklist?"]})}),onConfirm:c})},children:[(0,t.jsx)(a.nCM,{}),"Add hosts to blocklist"]})}function E(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.netAddress}),[e.selection]);return(0,t.jsx)(R,{multiSelect:e,hostAddresses:l})}var H=s(53305);function M(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.publicKey}),[e.selection]);return(0,t.jsx)(H.a,{multiSelect:e,publicKeys:l})}function S(e){let{multiSelect:l,hostAddresses:s}=e,{openConfirmDialog:o}=(0,j.Rh)(),i=(0,A.l)(),c=(0,g.useCallback)(async()=>{i([],s),l.deselectAll()},[i,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"remove host addresses from blocklist",tip:"Remove host addresses from blocklist",onClick:()=>{o({title:"Remove ".concat((0,_._6)(l.selectionCount,"host")," from blocklist"),action:"Remove from blocklist",variant:"red",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,_._6)(l.selectionCount,"host address","host addresses")," ","from the blocklist?"]})}),onConfirm:c})},children:[(0,t.jsx)(a.nCM,{}),"Remove hosts from blocklist"]})}function K(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.netAddress}),[e.selection]);return(0,t.jsx)(S,{multiSelect:e,hostAddresses:l})}var T=s(1884);function P(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.publicKey}),[e.selection]);return(0,t.jsx)(T.U,{multiSelect:e,publicKeys:l})}var V=s(50039);function F(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.publicKey}),[e.selection]);return(0,t.jsx)(V.c,{multiSelect:e,publicKeys:l})}function B(){let{multiSelect:e}=(0,o.l)();return(0,t.jsxs)(n.hv1,{multiSelect:e,entityWord:"host",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(M,{}),(0,t.jsx)(E,{})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(P,{}),(0,t.jsx)(K,{})]}),(0,t.jsx)(F,{}),(0,t.jsx)(z,{})]})}let O=p.J;function L(){return(0,t.jsx)(m,{})}L.Layout=O,L.useLayoutProps=function(){let{openDialog:e}=(0,j.Rh)();return{title:"Hosts",routes:i._,sidenav:(0,t.jsx)(f.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,t.jsx)(b,{}),stats:(0,t.jsx)(w,{}),scroll:!1,dockedControls:(0,t.jsx)(B,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-422c362d70dc61ec.js b/renterd/assets/_next/static/chunks/pages/hosts-422c362d70dc61ec.js deleted file mode 100644 index e838335a1..000000000 --- a/renterd/assets/_next/static/chunks/pages/hosts-422c362d70dc61ec.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return s(5017)}])},53305:function(e,l,s){"use strict";s.d(l,{a:function(){return u}});var t=s(52322),n=s(18575),o=s(28420),a=s(2784),i=s(82285),c=s(60381),r=s(12295);function u(e){let{multiSelect:l,publicKeys:s}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,r.I)(),x=(0,a.useCallback)(async()=>{d(s,[]),l.deselectAll()},[d,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"add host public keys to allowlist",tip:"Add host public keys to allowlist",onClick:()=>{u({title:"Add ".concat((0,c._6)(l.selectionCount,"host")," to allowlist"),action:"Add to allowlist",variant:"accent",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,c._6)(l.selectionCount,"host public key")," to the allowlist?"]})}),onConfirm:x})},children:[(0,t.jsx)(o.nCM,{}),"Add hosts to allowlist"]})}},69818:function(e,l,s){"use strict";s.d(l,{e:function(){return u}});var t=s(52322),n=s(18575),o=s(28420),a=s(2784),i=s(82285),c=s(60381),r=s(9408);function u(e){let{multiSelect:l,hostAddresses:s}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,r.l)(),x=(0,a.useCallback)(async()=>{d(s,[]),l.deselectAll()},[d,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"add host addresses to blocklist",tip:"Add host addresses to blocklist",onClick:()=>{u({title:"Add ".concat((0,c._6)(l.selectionCount,"host")," to blocklist"),action:"Add to blocklist",variant:"red",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to add"," ",(0,c._6)(l.selectionCount,"host address","host addresses")," ","to the blocklist?"]})}),onConfirm:x})},children:[(0,t.jsx)(o.nCM,{}),"Add hosts to blocklist"]})}},1884:function(e,l,s){"use strict";s.d(l,{U:function(){return u}});var t=s(52322),n=s(18575),o=s(28420),a=s(2784),i=s(82285),c=s(60381),r=s(12295);function u(e){let{multiSelect:l,publicKeys:s}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,r.I)(),x=(0,a.useCallback)(async()=>{await d([],s),l.deselectAll()},[d,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"remove host public keys from allowlist",tip:"Remove host public keys from allowlist",onClick:()=>{u({title:"Remove ".concat((0,c._6)(l.selectionCount,"host")," from allowlist"),action:"Remove from allowlist",variant:"accent",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,c._6)(l.selectionCount,"host public key")," from the allowlist?"]})}),onConfirm:x})},children:[(0,t.jsx)(o.nCM,{}),"Remove hosts from allowlist"]})}},46348:function(e,l,s){"use strict";s.d(l,{H:function(){return u}});var t=s(52322),n=s(18575),o=s(28420),a=s(2784),i=s(82285),c=s(60381),r=s(9408);function u(e){let{multiSelect:l,hostAddresses:s}=e,{openConfirmDialog:u}=(0,i.Rh)(),d=(0,r.l)(),x=(0,a.useCallback)(async()=>{d([],s),l.deselectAll()},[d,l,s]);return(0,t.jsxs)(n.zxk,{"aria-label":"remove host addresses from blocklist",tip:"Remove host addresses from blocklist",onClick:()=>{u({title:"Remove ".concat((0,c._6)(l.selectionCount,"host")," from blocklist"),action:"Remove from blocklist",variant:"red",body:(0,t.jsx)("div",{className:"flex flex-col gap-1",children:(0,t.jsxs)(n.nvN,{size:"14",children:["Are you sure you would like to remove"," ",(0,c._6)(l.selectionCount,"host address","host addresses")," ","from the blocklist?"]})}),onConfirm:x})},children:[(0,t.jsx)(o.nCM,{}),"Remove hosts from blocklist"]})}},50039:function(e,l,s){"use strict";s.d(l,{c:function(){return r}});var t=s(52322),n=s(18575),o=s(28420),a=s(91426),i=s(2784),c=s(60381);function r(e){let{multiSelect:l,publicKeys:s}=e,r=(0,a.ED)(),u=(0,i.useCallback)(async()=>{await (0,n.eKZ)(s.map(e=>r.post({params:{hostkey:e},payload:{timeout:(0,c.XB)(30)}})),{toastError:e=>{let{successCount:l,errorCount:s,totalCount:t}=e;return{title:"Rescanning ".concat((0,c._6)(l,"host")),body:"Error starting rescan for ".concat(s,"/").concat(t," of total hosts.")}},toastSuccess:e=>{let{totalCount:l}=e;return{title:"Rescanning ".concat((0,c._6)(l,"host"))}},after:()=>{l.deselectAll()}})},[l,s,r]);return(0,t.jsx)(n.zxk,{"aria-label":"rescan selected hosts",tip:"Rescan selected hosts",onClick:u,children:(0,t.jsx)(o._Eq,{})})}},5017:function(e,l,s){"use strict";s.r(l),s.d(l,{default:function(){return L}});var t=s(52322),n=s(18575),o=s(46741),a=s(28420),i=s(4300);function c(){let{dataState:e}=(0,o.l)();return"error"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(n.xvT,{children:(0,t.jsx)(a.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(n.xvT,{children:(0,t.jsx)(a.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(n.xvT,{children:(0,t.jsx)(a.zvn,{className:"scale-[200%]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,t.jsxs)(n.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,t.jsx)(n.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,t.jsx)(n.Qjf,{href:i._.node.index,children:"View peers"})]})]}):null}var r=s(83429),u=s(777),d=s(54597);function x(){let{gpu:e,settings:l}=(0,r.Hv)(),{setCmd:s,activeHost:a,onHostMapClick:i,hostsWithLocation:c}=(0,o.l)();return l.siaCentral&&!e.shouldRender?null:(0,t.jsxs)("div",{className:"w-full h-full",children:[(0,t.jsx)(u.T,{activeHost:(null==a?void 0:a.location)?a:void 0,hosts:c,onHostClick:i,onMount:e=>{s(e)}}),(0,t.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,t.jsx)(n.wEc,{color:d.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,t.jsx)(n.wEc,{color:d.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,t.jsx)(n.wEc,{color:d.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var h=s(82851);function m(){let{datasetPage:e,activeHost:l,columns:s,limit:a,dataState:i,tableContext:r,viewMode:u}=(0,o.l)();return(0,t.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,t.jsx)("div",{className:(0,h.cx)("absolute h-[70%] w-full","map"===u?"block":"invisible","transition-all"),children:(0,t.jsx)(x,{})}),(0,t.jsx)("div",{className:(0,h.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===u?e&&e.length?400-Math.max((2-e.length)*100,0):400:"100%"},children:(0,t.jsx)(n.xrM,{className:"z-0",id:"scroll-hosts",children:(0,t.jsx)("div",{className:(0,h.cx)("map"===u?"pb-6 px-6":"p-6","min-w-fit"),children:(0,t.jsx)(n.iA_,{testId:"hostsTable",focusId:null==l?void 0:l.publicKey,focusColor:l?(0,d.Kg)(l).colorName:void 0,isLoading:"loading"===i,emptyState:(0,t.jsx)(c,{}),context:r,pageSize:a,data:e,columns:s,rowSize:"default"})})})})]})}var f=s(70825),j=s(82285),p=s(31392);function v(){let{configurableColumns:e,toggleColumnVisibility:l,setColumnsVisible:s,setColumnsHidden:i,resetDefaultColumnVisibility:c,enabledColumns:r}=(0,o.l)(),u=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),d=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(n.J2e,{trigger:(0,t.jsxs)(n.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(a.hiv,{}),"View",(0,t.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,t.jsxs)(n.WVB,{children:[(0,t.jsx)(n.__J,{children:"Display properties"}),(0,t.jsx)(n.kFS,{children:(0,t.jsx)(n.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),c()},children:(0,t.jsx)(a.Wet,{})})})]}),(0,t.jsx)(n.FzK,{label:"General",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:u,values:r,onChange:e=>l(e)})}),d.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FzK,{label:"Autopilot",columns:d.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:d,values:r,onChange:e=>l(e)})})]}):null,x.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FzK,{label:"Price table (RHPv3)",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:x,values:r,onChange:e=>l(e)})})]}):null,h.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:s,setColumnsHidden:i}),(0,t.jsx)(n.WVB,{children:(0,t.jsx)(n.j4H,{options:h,values:r,onChange:e=>l(e)})})]}):null]})}function b(){let{openDialog:e}=(0,j.Rh)(),{viewMode:l,setViewMode:s}=(0,o.l)(),{settings:i,gpu:c}=(0,r.Hv)();return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(n.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,t.jsx)(a.nCM,{}),"Manage lists"]}),(0,t.jsx)(n.ua7,{content:i.siaCentral?c.canGpuRender&&c.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,t.jsx)(n.zxk,{disabled:!c.canGpuRender,onClick:()=>{if(!i.siaCentral){e("settings");return}c.isGpuEnabled?s("map"===l?"list":"map"):e("settings")},children:(0,t.jsx)(a.nDH,{})})}),(0,t.jsx)(v,{})]})}var k=s(65304),g=s(2784),C=s(50454);function y(){let{filters:e,removeFilter:l,removeLastFilter:s}=(0,o.l)(),[i,c]=(0,g.useState)(!1),[r,u]=(0,g.useState)(""),[d,x]=(0,g.useState)([]),h=d[d.length-1],m=(0,g.useRef)(null),f=(0,g.useRef)(null),j=(0,g.useCallback)(e=>{x(l=>[...l,e])},[x]),p=(0,g.useCallback)(()=>{x([])},[x]);(0,g.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&c(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let v=(0,g.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),b=(0,g.useCallback)(()=>{u(""),p()},[p]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(n.eQh,{children:[(0,t.jsx)(n.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(n.zxk,{variant:"active",size:"small",onClick:()=>l(e.id),children:(0,t.jsx)(a.PcV,{})})]},e.id)),(0,t.jsxs)(k.mY,{ref:m,label:"Command Menu",onFocus:()=>c(!0),onKeyDown:e=>{if(d.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===d.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var l;c(!1),null===(l=f.current)||void 0===l||l.blur()}},children:[(0,t.jsx)(k.mY.Input,{ref:f,value:r,onValueChange:u,className:(0,n.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),i&&(0,t.jsx)(n.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(n.xrM,{children:[h&&(0,t.jsx)(n.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(k.mY.List,{children:(0,t.jsx)(C.L,{currentPage:h,beforeSelect:v,afterSelect:b,pushPage:j})})]})})]})]})}function w(){let{offset:e,limit:l,pageCount:s,dataState:a}=(0,o.l)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(y,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(n.wFK,{offset:e,limit:l,pageTotal:s,isLoading:"loading"===a})]})}var N=s(91426),_=s(60381);function z(){let e=(0,N.wW)(),{multiSelect:l}=(0,o.l)(),s=(0,g.useMemo)(()=>Object.entries(l.selection).map(e=>{let[l,s]=e;return s.publicKey}),[l.selection]),i=(0,g.useCallback)(async()=>{await (0,n.eKZ)(s.map(l=>e.post({params:{hostkey:l}})),{toastError:e=>{let{successCount:l,errorCount:s,totalCount:t}=e;return{title:"Reset lost sector count for ".concat((0,_._6)(l,"host")),body:"Error reseting lost sector count for ".concat(s,"/").concat(t," total hosts.")}},toastSuccess:e=>{let{totalCount:l}=e;return{title:"Reset lost sector count for ".concat((0,_._6)(l,"host"))}},after:()=>{l.deselectAll()}})},[l,s,e]);return(0,t.jsx)(n.zxk,{"aria-label":"reset lost sector count for hosts",tip:"Reset lost sector count for hosts",onClick:i,children:(0,t.jsx)(a.xkX,{})})}var A=s(69818);function R(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.netAddress}),[e.selection]);return(0,t.jsx)(A.e,{multiSelect:e,hostAddresses:l})}var E=s(53305);function H(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.publicKey}),[e.selection]);return(0,t.jsx)(E.a,{multiSelect:e,publicKeys:l})}var M=s(46348);function S(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.netAddress}),[e.selection]);return(0,t.jsx)(M.H,{multiSelect:e,hostAddresses:l})}var K=s(1884);function T(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.publicKey}),[e.selection]);return(0,t.jsx)(K.U,{multiSelect:e,publicKeys:l})}var V=s(50039);function F(){let{multiSelect:e}=(0,o.l)(),l=(0,g.useMemo)(()=>Object.entries(e.selection).map(e=>{let[l,s]=e;return s.publicKey}),[e.selection]);return(0,t.jsx)(V.c,{multiSelect:e,publicKeys:l})}function P(){let{multiSelect:e}=(0,o.l)();return(0,t.jsxs)(n.hv1,{multiSelect:e,entityWord:"host",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(H,{}),(0,t.jsx)(R,{})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(T,{}),(0,t.jsx)(S,{})]}),(0,t.jsx)(F,{}),(0,t.jsx)(z,{})]})}let B=p.J;function L(){return(0,t.jsx)(m,{})}L.Layout=B,L.useLayoutProps=function(){let{openDialog:e}=(0,j.Rh)();return{title:"Hosts",routes:i._,sidenav:(0,t.jsx)(f.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,t.jsx)(b,{}),stats:(0,t.jsx)(w,{}),scroll:!1,dockedControls:(0,t.jsx)(P,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/keys-80ed5e666e22a6ce.js b/renterd/assets/_next/static/chunks/pages/keys-80ed5e666e22a6ce.js new file mode 100644 index 000000000..be0fa3760 --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/keys-80ed5e666e22a6ce.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{87111:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/keys",function(){return s(27267)}])},27267:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return w}});var n=s(52322),l=s(70150),i=s(28420);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(i.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No keys matching filters."})]})}var a=s(82285);function c(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(i._m8,{size:64})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are no S3 authentication keypairs yet. Create one to get started."}),(0,n.jsx)(l.zxk,{onClick:()=>{e("keysCreate")},children:"Create keypair"})]})]})}function o(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(i.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching keys."})]})}var x=s(83239);function d(){let{visibleColumns:e,datasetPage:t,sortField:s,sortDirection:i,sortableColumns:a,toggleSort:d,limit:u,datasetState:j,cellContext:h}=(0,x.E)();return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"keysTable",isLoading:"loading"===j,emptyState:(0,n.jsx)(l.ubH,{datasetState:j,noneMatching:(0,n.jsx)(r,{}),noneYet:(0,n.jsx)(c,{}),error:(0,n.jsx)(o,{})}),sortableColumns:a,pageSize:u,data:t,context:h,columns:e,sortDirection:i,sortField:s,toggleSort:d,rowSize:"default"})})}var u=s(70825),j=s(4300),h=s(31392),p=s(14974),f=s(83894);function m(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:r,setColumnsHidden:a,sortField:c,setSortField:o,sortDirection:d,setSortDirection:u,visibleColumnIds:j}=(0,x.E)(),h=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(i.hiv,{}),"View",(0,n.jsx)(i.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Order by"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.PhF,{value:c,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,f.Z)(p.Fo,"category")).map(e=>{let[t,s]=e;return(0,n.jsx)("optgroup",{label:t,children:s.map(e=>(0,n.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},t)})})})]}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Direction"}),(0,n.jsx)(l.kFS,{children:(0,n.jsxs)(l.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,n.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(l.Clw,{}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(i.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:h.map(e=>e.value),enabled:j,setColumnsVisible:r,setColumnsHidden:a}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:h,values:j,onChange:e=>t(e)})})]})}function v(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(l.zxk,{onClick:()=>e("keysCreate"),children:[(0,n.jsx)(i.aXP,{}),"Create keypair"]}),(0,n.jsx)(m,{})]})}function g(){let{limit:e,offset:t,datasetTotal:s,datasetState:i}=(0,x.E)();return(0,n.jsxs)("div",{className:"flex w-full",children:[(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(l.uDJ,{offset:t,limit:e,total:s,isLoading:"loading"===i})]})}var y=s(91426),k=s(2784),C=s(6539);function b(){let{multiSelect:e}=(0,x.E)(),t=(0,k.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.key}),[e.selection]),{openConfirmDialog:s}=(0,a.Rh)(),r=(0,y.AR)(),c=(0,y._M)(),o=(0,k.useCallback)(async()=>{var s;if(!r.data){(0,l.OHV)({title:"Error deleting key"});return}let n=(0,C.Z)(null===(s=r.data)||void 0===s?void 0:s.authentication.v4Keypairs,t),i=await c.put({payload:{...r.data,authentication:{...r.data.authentication,v4Keypairs:n}}});e.deselectAll(),i.error?(0,l.OHV)({title:"Error deleting keys",body:i.error}):(0,l.OPV)({title:"Keys deleted"})},[r.data,c,e,t]);return(0,n.jsx)(l.zxk,{"aria-label":"delete selected keys",tip:"Delete selected keys",onClick:()=>{s({title:"Delete keys",action:"Delete",variant:"red",body:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)(l.nvN,{size:"14",children:["Are you sure you would like to delete the"," ",e.selectionCount.toLocaleString()," selected keys?"]})}),onConfirm:async()=>{o()}})},children:(0,n.jsx)(i.Jrl,{})})}function N(){let{multiSelect:e}=(0,x.E)();return(0,n.jsx)(l.hv1,{multiSelect:e,entityWord:"key",children:(0,n.jsx)(b,{})})}let _=h.J;function w(){return(0,n.jsx)(d,{})}w.Layout=_,w.useLayoutProps=function(){let{openDialog:e}=(0,a.Rh)();return{title:"Keys",routes:j._,sidenav:(0,n.jsx)(u.e,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(v,{}),stats:(0,n.jsx)(g,{}),dockedControls:(0,n.jsx)(N,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=87111)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/keys-8abb7a2a9b5efcf4.js b/renterd/assets/_next/static/chunks/pages/keys-8abb7a2a9b5efcf4.js deleted file mode 100644 index c0b6db0cc..000000000 --- a/renterd/assets/_next/static/chunks/pages/keys-8abb7a2a9b5efcf4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{87111:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/keys",function(){return s(27267)}])},27267:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return w}});var n=s(52322),l=s(18575),i=s(28420);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(i.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No keys matching filters."})]})}var a=s(82285);function c(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(i._m8,{size:64})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are no S3 authentication keypairs yet. Create one to get started."}),(0,n.jsx)(l.zxk,{onClick:()=>{e("keysCreate")},children:"Create keypair"})]})]})}function o(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(i.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching keys."})]})}var x=s(83239);function d(){let{columns:e,datasetPage:t,sortField:s,sortDirection:i,sortableColumns:a,toggleSort:d,limit:u,dataState:j,cellContext:h}=(0,x.E)();return(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"keysTable",isLoading:"loading"===j,emptyState:"noneMatchingFilters"===j?(0,n.jsx)(r,{}):"noneYet"===j?(0,n.jsx)(c,{}):"error"===j?(0,n.jsx)(o,{}):null,sortableColumns:a,pageSize:u,data:t,context:h,columns:e,sortDirection:i,sortField:s,toggleSort:d,rowSize:"default"})})}var u=s(70825),j=s(4300),h=s(31392),p=s(14974),f=s(83894);function m(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:r,setColumnsHidden:a,sortField:c,setSortField:o,sortDirection:d,setSortDirection:u,enabledColumns:j}=(0,x.E)(),h=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(i.hiv,{}),"View",(0,n.jsx)(i.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Order by"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.PhF,{value:c,onChange:e=>{o(e.currentTarget.value)},children:Object.entries((0,f.Z)(p.Fo,"category")).map(e=>{let[t,s]=e;return(0,n.jsx)("optgroup",{label:t,children:s.map(e=>(0,n.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},t)})})})]}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Direction"}),(0,n.jsx)(l.kFS,{children:(0,n.jsxs)(l.PhF,{value:d,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,n.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(l.Clw,{}),(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(i.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:h.map(e=>e.value),enabled:j,setColumnsVisible:r,setColumnsHidden:a}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:h,values:j,onChange:e=>t(e)})})]})}function g(){let{openDialog:e}=(0,a.Rh)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(l.zxk,{onClick:()=>e("keysCreate"),children:[(0,n.jsx)(i.aXP,{}),"Create keypair"]}),(0,n.jsx)(m,{})]})}function v(){let{limit:e,offset:t,datasetCount:s,pageCount:i,dataState:r}=(0,x.E)();return(0,n.jsxs)("div",{className:"flex w-full",children:[(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(l.uDJ,{offset:t,limit:e,datasetTotal:s,pageTotal:i,isLoading:"loading"===r})]})}var y=s(91426),k=s(2784),C=s(6539);function N(){let{multiSelect:e}=(0,x.E)(),t=(0,k.useMemo)(()=>Object.entries(e.selection).map(e=>{let[t,s]=e;return s.key}),[e.selection]),{openConfirmDialog:s}=(0,a.Rh)(),r=(0,y.AR)(),c=(0,y._M)(),o=(0,k.useCallback)(async()=>{var s;if(!r.data){(0,l.OHV)({title:"Error deleting key"});return}let n=(0,C.Z)(null===(s=r.data)||void 0===s?void 0:s.authentication.v4Keypairs,t),i=await c.put({payload:{...r.data,authentication:{...r.data.authentication,v4Keypairs:n}}});e.deselectAll(),i.error?(0,l.OHV)({title:"Error deleting keys",body:i.error}):(0,l.OPV)({title:"Keys deleted"})},[r.data,c,e,t]);return(0,n.jsx)(l.zxk,{"aria-label":"delete selected keys",tip:"Delete selected keys",onClick:()=>{s({title:"Delete keys",action:"Delete",variant:"red",body:(0,n.jsx)("div",{className:"flex flex-col gap-1",children:(0,n.jsxs)(l.nvN,{size:"14",children:["Are you sure you would like to delete the"," ",e.selectionCount.toLocaleString()," selected keys?"]})}),onConfirm:async()=>{o()}})},children:(0,n.jsx)(i.Jrl,{})})}function b(){let{multiSelect:e}=(0,x.E)();return(0,n.jsx)(l.hv1,{multiSelect:e,entityWord:"key",children:(0,n.jsx)(N,{})})}let _=h.J;function w(){return(0,n.jsx)(d,{})}w.Layout=_,w.useLayoutProps=function(){let{openDialog:e}=(0,a.Rh)();return{title:"Keys",routes:j._,sidenav:(0,n.jsx)(u.e,{}),openSettings:()=>e("settings"),actions:(0,n.jsx)(g,{}),stats:(0,n.jsx)(v,{}),dockedControls:(0,n.jsx)(b,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=87111)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/login-2434eef88aea94b0.js b/renterd/assets/_next/static/chunks/pages/login-926c5079fbe713ea.js similarity index 89% rename from renterd/assets/_next/static/chunks/pages/login-2434eef88aea94b0.js rename to renterd/assets/_next/static/chunks/pages/login-926c5079fbe713ea.js index ee2603107..75a5e342c 100644 --- a/renterd/assets/_next/static/chunks/pages/login-2434eef88aea94b0.js +++ b/renterd/assets/_next/static/chunks/pages/login-926c5079fbe713ea.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(28454)}])},28454:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(18575),o=t(4300);function i(){return(0,r.jsx)(e.zXq,{appName:"renterd",route:o.h,routes:o._})}function c(){return(0,r.jsx)(i,{})}c.Layout=function(n){return(0,r.jsx)(e.juT,{appName:"renterd",...n})},c.useLayoutProps=function(){return{}}}},function(n){n.O(0,[888,774,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(28454)}])},28454:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(70150),o=t(4300);function i(){return(0,r.jsx)(e.zXq,{appName:"renterd",route:o.h,routes:o._})}function c(){return(0,r.jsx)(i,{})}c.Layout=function(n){return(0,r.jsx)(e.juT,{appName:"renterd",...n})},c.useLayoutProps=function(){return{}}}},function(n){n.O(0,[888,774,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/node-6a5ee2c79c8cd9f3.js b/renterd/assets/_next/static/chunks/pages/node-2e845dce62c79a91.js similarity index 95% rename from renterd/assets/_next/static/chunks/pages/node-6a5ee2c79c8cd9f3.js rename to renterd/assets/_next/static/chunks/pages/node-2e845dce62c79a91.js index 1a09f296a..151ff78d6 100644 --- a/renterd/assets/_next/static/chunks/pages/node-6a5ee2c79c8cd9f3.js +++ b/renterd/assets/_next/static/chunks/pages/node-2e845dce62c79a91.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(73496)}])},73496:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var a=t(52322),i=t(18575),o=t(91426),l=t(82285);function s(){var e,n,t;let s=(0,o.cQ)(),r=(0,o.QL)({config:{swr:{refreshInterval:3e4}}}),c=(0,o.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:u}=(0,l.Rh)();return(0,a.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,a.jsx)(i.ncR,{label:"Height",value:c.data?Number(c.data.blockHeight).toLocaleString():void 0,comment:(null===(e=c.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,a.jsx)(i.ncR,{label:"Connected peers",value:null===(n=s.data)||void 0===n?void 0:n.length}),(0,a.jsx)(i.ncR,{label:"Transactions in pool",value:null===(t=r.data)||void 0===t?void 0:t.length})]}),(0,a.jsx)(i.u5Q,{peers:s.data,isLoading:s.isValidating,connectPeer:()=>u("connectPeer")})]})}var r=t(4300),c=t(70825);let u=t(31392).J;function d(){return(0,a.jsx)(s,{})}d.Layout=u,d.useLayoutProps=function(){let{openDialog:e}=(0,l.Rh)();return{title:"Node",routes:r._,sidenav:(0,a.jsx)(c.e,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(73496)}])},73496:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var a=t(52322),i=t(70150),o=t(91426),l=t(82285);function s(){var e,n,t;let s=(0,o.cQ)(),r=(0,o.QL)({config:{swr:{refreshInterval:3e4}}}),c=(0,o.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:u}=(0,l.Rh)();return(0,a.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,a.jsx)(i.ncR,{label:"Height",value:c.data?Number(c.data.blockHeight).toLocaleString():void 0,comment:(null===(e=c.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,a.jsx)(i.ncR,{label:"Connected peers",value:null===(n=s.data)||void 0===n?void 0:n.length}),(0,a.jsx)(i.ncR,{label:"Transactions in pool",value:null===(t=r.data)||void 0===t?void 0:t.length})]}),(0,a.jsx)(i.u5Q,{peers:s.data,isLoading:s.isValidating,connectPeer:()=>u("connectPeer")})]})}var r=t(4300),c=t(70825);let u=t(31392).J;function d(){return(0,a.jsx)(s,{})}d.Layout=u,d.useLayoutProps=function(){let{openDialog:e}=(0,l.Rh)();return{title:"Node",routes:r._,sidenav:(0,a.jsx)(c.e,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/wallet-1390f831b16a4e43.js b/renterd/assets/_next/static/chunks/pages/wallet-1390f831b16a4e43.js new file mode 100644 index 000000000..5fe772d64 --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/wallet-1390f831b16a4e43.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(11495)}])},11495:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),a=t(70150),l=t(88022),c=t(28420);function i(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(a.xvT,{children:(0,s.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function r(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(a.xvT,{children:(0,s.jsx)(c.fDA,{className:"scale-[200%]"})}),(0,s.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function o(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(a.xvT,{children:(0,s.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}function x(){let{balances:e,metrics:n,datasetPage:t,datasetState:c,visibleColumns:x,cellContext:d,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j,defaultPageSize:h}=(0,l.n)();return(0,s.jsxs)("div",{className:"flex flex-col gap-4 px-6 py-7 min-w-fit",children:[(null==e?void 0:e.length)?(0,s.jsx)(a.Z58,{chartType:"line",balances:e,isLoading:n.isValidating}):null,(0,s.jsx)(a.iA_,{testId:"eventsTable",isLoading:"loading"===c,emptyState:(0,s.jsx)(a.ubH,{datasetState:c,noneMatching:(0,s.jsx)(i,{}),noneYet:(0,s.jsx)(r,{}),error:(0,s.jsx)(o,{})}),pageSize:h,data:t,context:d,columns:x,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j})]})}var d=t(91426),u=t(82285),f=t(4300),m=t(6391),j=t.n(m),h=t(70825),p=t(31392),g=t(16211);function w(){let{isSynced:e,syncPercent:n,isWalletSynced:t,walletScanPercent:c}=(0,g.n)(),{offset:i,limit:r,datasetPageTotal:o,datasetState:x}=(0,l.n)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(a.DmW,{isSynced:e,isWalletSynced:t,syncPercent:n,walletScanPercent:c}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(a.wFK,{offset:i,limit:r,pageTotal:o,isLoading:"loading"===x})]})}let v=p.J;function N(){return(0,s.jsx)(x,{})}N.Layout=v,N.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)(),n=(0,d.X2)(),{isSynced:t,isWalletSynced:l,syncPercent:c,walletScanPercent:i}=(0,g.n)();return{title:"Wallet",routes:f._,sidenav:(0,s.jsx)(h.e,{}),openSettings:()=>e("settings"),actions:(0,s.jsx)(a.QUh,{isSynced:t,isWalletSynced:l,syncPercent:c,walletScanPercent:i,balanceSc:n.data?{spendable:new(j())(n.data.spendable),unconfirmed:new(j())(n.data.unconfirmed),confirmed:new(j())(n.data.confirmed),immature:new(j())(n.data.immature)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,s.jsx)(w,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/wallet-447851b622413f4a.js b/renterd/assets/_next/static/chunks/pages/wallet-447851b622413f4a.js deleted file mode 100644 index 7a4ea2a10..000000000 --- a/renterd/assets/_next/static/chunks/pages/wallet-447851b622413f4a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(11495)}])},11495:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),a=t(18575),l=t(88022),i=t(28420);function c(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(a.xvT,{children:(0,s.jsx)(i.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function r(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(a.xvT,{children:(0,s.jsx)(i.fDA,{className:"scale-[200%]"})}),(0,s.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function o(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(a.xvT,{children:(0,s.jsx)(i.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(a.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}function x(){let{balances:e,metrics:n,dataset:t,dataState:i,columns:x,cellContext:d,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j,defaultPageSize:h}=(0,l.n)();return(0,s.jsxs)("div",{className:"flex flex-col gap-4 px-6 py-7 min-w-fit",children:[(null==e?void 0:e.length)?(0,s.jsx)(a.Z58,{chartType:"line",balances:e,isLoading:n.isValidating}):null,(0,s.jsx)(a.iA_,{testId:"eventsTable",isLoading:"loading"===i,emptyState:"noneMatchingFilters"===i?(0,s.jsx)(c,{}):"noneYet"===i?(0,s.jsx)(r,{}):"error"===i?(0,s.jsx)(o,{}):null,pageSize:h,data:t,context:d,columns:x,sortableColumns:u,sortDirection:f,sortField:m,toggleSort:j})]})}var d=t(91426),u=t(82285),f=t(4300),m=t(6391),j=t.n(m),h=t(70825),p=t(31392),g=t(16211);function w(){let{isSynced:e,syncPercent:n,isWalletSynced:t,walletScanPercent:i}=(0,g.n)(),{offset:c,limit:r,pageCount:o,dataState:x}=(0,l.n)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,s.jsx)(a.DmW,{isSynced:e,isWalletSynced:t,syncPercent:n,walletScanPercent:i}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(a.wFK,{offset:c,limit:r,pageTotal:o,isLoading:"loading"===x})]})}let v=p.J;function N(){return(0,s.jsx)(x,{})}N.Layout=v,N.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)(),n=(0,d.X2)(),{isSynced:t,isWalletSynced:l,syncPercent:i,walletScanPercent:c}=(0,g.n)();return{title:"Wallet",routes:f._,sidenav:(0,s.jsx)(h.e,{}),openSettings:()=>e("settings"),actions:(0,s.jsx)(a.QUh,{isSynced:t,isWalletSynced:l,syncPercent:i,walletScanPercent:c,balanceSc:n.data?{spendable:new(j())(n.data.spendable),unconfirmed:new(j())(n.data.unconfirmed),confirmed:new(j())(n.data.confirmed),immature:new(j())(n.data.immature)}:void 0,receiveSiacoin:()=>e("addressDetails"),sendSiacoin:()=>e("sendSiacoin")}),stats:(0,s.jsx)(w,{})}}}},function(e){e.O(0,[705,888,774,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/l4xDOkuSF9pS81_psorln/_buildManifest.js b/renterd/assets/_next/static/l4xDOkuSF9pS81_psorln/_buildManifest.js new file mode 100644 index 000000000..b3349fcae --- /dev/null +++ b/renterd/assets/_next/static/l4xDOkuSF9pS81_psorln/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-7bd31586412389b2.js"],"/404":[s,"static/chunks/pages/404-6444fd59ec933aba.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/alerts":[s,"static/chunks/pages/alerts-514edfb128d9aeb6.js"],"/buckets":[s,c,"static/chunks/pages/buckets-7b7060a0879c0ea4.js"],"/buckets/[bucket]/files/[[...path]]":[s,c,"static/chunks/pages/buckets/[bucket]/files/[[...path]]-c9c4e6c971d52ce9.js"],"/buckets/[bucket]/uploads":[s,"static/chunks/pages/buckets/[bucket]/uploads-247bb8163e2343a2.js"],"/config":[s,"static/chunks/pages/config-216482a23197ac9b.js"],"/contracts":[s,"static/chunks/pages/contracts-330bb782f75d4230.js"],"/hosts":[s,"static/chunks/pages/hosts-28b8e5cdb41c2e71.js"],"/keys":[s,"static/chunks/pages/keys-80ed5e666e22a6ce.js"],"/login":["static/chunks/pages/login-926c5079fbe713ea.js"],"/node":[s,"static/chunks/pages/node-2e845dce62c79a91.js"],"/wallet":[s,"static/chunks/pages/wallet-1390f831b16a4e43.js"],sortedPages:["/","/404","/_app","/_error","/alerts","/buckets","/buckets/[bucket]/files/[[...path]]","/buckets/[bucket]/uploads","/config","/contracts","/hosts","/keys","/login","/node","/wallet"]}}("static/chunks/705-b20b87b6824937eb.js","static/chunks/953-1c073c0c2fe0b283.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/Q3umR26zs3TtcJHHUTyxT/_ssgManifest.js b/renterd/assets/_next/static/l4xDOkuSF9pS81_psorln/_ssgManifest.js similarity index 100% rename from renterd/assets/_next/static/Q3umR26zs3TtcJHHUTyxT/_ssgManifest.js rename to renterd/assets/_next/static/l4xDOkuSF9pS81_psorln/_ssgManifest.js diff --git a/renterd/assets/alerts.html b/renterd/assets/alerts.html index f167fca99..dccab5a70 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 37b9df554..0970f8d3a 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 f463aaa01..246505c91 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 df2666183..925a4f49f 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 73d077d68..498736286 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 e317a41ee..600f6786b 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 2a40816d1..379b2901f 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 ac71240be..107d6e957 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 533d515f2..92e5f0bf7 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 80fa53c28..5709cfcd2 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 00a8b7db1..1a24a06f0 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 b1b1fc100..8f0006f2c 100644 --- a/renterd/assets/wallet.html +++ b/renterd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/404.html b/walletd/assets/404.html index f99927568..30154b418 100644 --- a/walletd/assets/404.html +++ b/walletd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/_next/static/Bp08pagronAIYfikKmVmT/_buildManifest.js b/walletd/assets/_next/static/Bp08pagronAIYfikKmVmT/_buildManifest.js deleted file mode 100644 index 51b7e70b0..000000000 --- a/walletd/assets/_next/static/Bp08pagronAIYfikKmVmT/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-7ba244e13c4c00e1.js"],"/404":["static/chunks/pages/404-3e566fa940a281a4.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/login":["static/chunks/pages/login-37d5f41afbb0a933.js"],"/node":["static/chunks/pages/node-0fcd18fe3a11b028.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-b8652e4a924a3d78.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-e5b263947f64de2b.js"],sortedPages:["/","/404","/_app","/_error","/login","/node","/wallets/[id]","/wallets/[id]/addresses"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/walletd/assets/_next/static/PfWTW49A3v3uEGmpYXXBx/_buildManifest.js b/walletd/assets/_next/static/PfWTW49A3v3uEGmpYXXBx/_buildManifest.js new file mode 100644 index 000000000..4ff2e158a --- /dev/null +++ b/walletd/assets/_next/static/PfWTW49A3v3uEGmpYXXBx/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-095fc638b9846f2a.js"],"/404":["static/chunks/pages/404-301fdd4994344970.js"],"/_error":["static/chunks/pages/_error-fedd2c6ebd3d27b9.js"],"/login":["static/chunks/pages/login-08e8b5d9d8df664b.js"],"/node":["static/chunks/pages/node-bc3be04b17091746.js"],"/wallets/[id]":["static/chunks/pages/wallets/[id]-109b41ba4ba2094a.js"],"/wallets/[id]/addresses":["static/chunks/pages/wallets/[id]/addresses-a24692c652c3e45b.js"],sortedPages:["/","/404","/_app","/_error","/login","/node","/wallets/[id]","/wallets/[id]/addresses"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/walletd/assets/_next/static/Bp08pagronAIYfikKmVmT/_ssgManifest.js b/walletd/assets/_next/static/PfWTW49A3v3uEGmpYXXBx/_ssgManifest.js similarity index 100% rename from walletd/assets/_next/static/Bp08pagronAIYfikKmVmT/_ssgManifest.js rename to walletd/assets/_next/static/PfWTW49A3v3uEGmpYXXBx/_ssgManifest.js diff --git a/walletd/assets/_next/static/chunks/pages/404-3e566fa940a281a4.js b/walletd/assets/_next/static/chunks/pages/404-301fdd4994344970.js similarity index 96% rename from walletd/assets/_next/static/chunks/pages/404-3e566fa940a281a4.js rename to walletd/assets/_next/static/chunks/pages/404-301fdd4994344970.js index 4f55797e8..afa4ab27e 100644 --- a/walletd/assets/_next/static/chunks/pages/404-3e566fa940a281a4.js +++ b/walletd/assets/_next/static/chunks/pages/404-301fdd4994344970.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{99133:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return t(635)}])},71036:function(e,n,t){"use strict";t.d(n,{v:function(){return h}});var i=t(52322),s=t(63392),r=t(4300),a=t(16211),o=t(28135),l=t(64245),c=t(88464);function d(){var e,n,t,r;let{openDialog:d}=(0,l.Rh)(),u=(0,o.cQ)(),f=(0,a.n)(),h=(0,o.gM)(),m=(0,o.OH)({config:{swr:{revalidateOnFocus:!1}}}),x=null===(e=m.data)||void 0===e?void 0:e.version,v="?"===x?"https://github.com/SiaFoundation/walletd/commits/":(null==x?void 0:x.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(x):"https://github.com/SiaFoundation/walletd/tree/".concat(x),j=m.data?new Date().getTime()-new Date(null===(n=m.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(s.HfT,{name:"walletd",peerCount:null===(t=u.data)||void 0===t?void 0:t.length,connectPeer:()=>d("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[m.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:(0,c.bc)(j,{format:"long"})})})]}),h.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:h.data.name})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=m.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,o.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,i.jsx)(s.t6k,{testnetName:n})}function f(e){let{children:n}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:o}=(0,a.n)();return(0,i.jsx)(s.tU3,{appName:"walletd",profile:(0,i.jsx)(d,{}),connectivityRoute:r.h,banner:(0,i.jsx)(u,{}),showWallet:!1,isSynced:o,dockedControls:(0,i.jsx)(f,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return o}});var i=t(52322),s=t(63392),r=t(57165),a=t(4300);function o(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s.KJW,{title:"Dashboard",route:a._.home,children:(0,i.jsx)(r.K2o,{})})})}},635:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var i=t(52322),s=t(2784),r=t(5632);function a(e){let{route:n}=e,t=(0,r.useRouter)();return(0,s.useEffect)(()=>{t.replace(n)},[t,n]),(0,i.jsx)("div",{})}var o=t(71036),l=t(77687),c=t(4300),d=t(64245);let u=o.v;function f(){return(0,i.jsx)(a,{route:c._.home})}f.Layout=u,f.useLayoutProps=function(){let{openDialog:e}=(0,d.Rh)();return{title:"Home",routes:c._,sidenav:(0,i.jsx)(l._,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=99133)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{99133:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return t(635)}])},71036:function(e,n,t){"use strict";t.d(n,{v:function(){return h}});var i=t(52322),s=t(83448),r=t(4300),a=t(16211),o=t(28135),l=t(64245),c=t(88464);function d(){var e,n,t,r;let{openDialog:d}=(0,l.Rh)(),u=(0,o.cQ)(),f=(0,a.n)(),h=(0,o.gM)(),m=(0,o.OH)({config:{swr:{revalidateOnFocus:!1}}}),x=null===(e=m.data)||void 0===e?void 0:e.version,v="?"===x?"https://github.com/SiaFoundation/walletd/commits/":(null==x?void 0:x.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(x):"https://github.com/SiaFoundation/walletd/tree/".concat(x),j=m.data?new Date().getTime()-new Date(null===(n=m.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,i.jsxs)(s.HfT,{name:"walletd",peerCount:null===(t=u.data)||void 0===t?void 0:t.length,connectPeer:()=>d("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[m.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:(0,c.bc)(j,{format:"long"})})})]}),h.data&&(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,i.jsx)(s.xvT,{size:"14",children:h.data.name})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=m.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,o.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,i.jsx)(s.t6k,{testnetName:n})}function f(e){let{children:n}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:o}=(0,a.n)();return(0,i.jsx)(s.tU3,{appName:"walletd",profile:(0,i.jsx)(d,{}),connectivityRoute:r.h,banner:(0,i.jsx)(u,{}),showWallet:!1,isSynced:o,dockedControls:(0,i.jsx)(f,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return o}});var i=t(52322),s=t(83448),r=t(57165),a=t(4300);function o(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s.KJW,{title:"Dashboard",route:a._.home,children:(0,i.jsx)(r.K2o,{})})})}},635:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var i=t(52322),s=t(2784),r=t(5632);function a(e){let{route:n}=e,t=(0,r.useRouter)();return(0,s.useEffect)(()=>{t.replace(n)},[t,n]),(0,i.jsx)("div",{})}var o=t(71036),l=t(77687),c=t(4300),d=t(64245);let u=o.v;function f(){return(0,i.jsx)(a,{route:c._.home})}f.Layout=u,f.useLayoutProps=function(){let{openDialog:e}=(0,d.Rh)();return{title:"Home",routes:c._,sidenav:(0,i.jsx)(l._,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=99133)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/_app-2ddf97bc9bdb0c8f.js b/walletd/assets/_next/static/chunks/pages/_app-4b3f7afa051e6b69.js similarity index 53% rename from walletd/assets/_next/static/chunks/pages/_app-2ddf97bc9bdb0c8f.js rename to walletd/assets/_next/static/chunks/pages/_app-4b3f7afa051e6b69.js index 04a32637d..fb41e4366 100644 --- a/walletd/assets/_next/static/chunks/pages/_app-2ddf97bc9bdb0c8f.js +++ b/walletd/assets/_next/static/chunks/pages/_app-4b3f7afa051e6b69.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(A,Q,B){"use strict";B.d(Q,{An:function(){return c},Ht:function(){return M},R7:function(){return h},RH:function(){return n}});var C,I,E=B(97699),g=B.n(E);(C=I||(I={})).blue="blue",C.nanoS="nanoS",C.nanoSP="nanoSP",C.nanoX="nanoX",C.stax="stax";let w={[I.blue]:{id:I.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:A=>4096},[I.nanoS]:{id:I.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:A=>{var Q;return g().lt(null!==(Q=g().coerce(A))&&void 0!==Q?Q:"","2.0.0")?4096:2048}},[I.nanoSP]:{id:I.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:A=>32},[I.nanoX]:{id:I.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:A=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[I.stax]:{id:I.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:A=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}};I.blue,I.nanoS,I.nanoSP,I.nanoX,I.stax;let D=Object.values(w),c=11415,M=A=>{let Q=D.find(Q=>Q.legacyUsbProductId===A);if(Q)return Q;let B=A>>8;return D.find(A=>A.productIdMM===B)},s=[],y={};for(let A in w){let Q=w[A],{bluetoothSpec:B}=Q;if(B)for(let A=0;As,h=A=>y[A.toLowerCase()]},9341:function(A,Q,B){"use strict";var C,I;B.d(Q,{qX:function(){return M},vs:function(){return s},WC:function(){return k},PS:function(){return h},FB:function(){return y},wp:function(){return n},rZ:function(){return K}});let E={},g={},w=(A,Q)=>{g[A]=Q},D=A=>{class Q extends Error{constructor(B,C,I){if(super(B||A,I),Object.setPrototypeOf(this,Q.prototype),this.name=A,C)for(let A in C)this[A]=C[A];if(I&&"object"==typeof I&&"cause"in I&&!("cause"in this)){let A=I.cause;this.cause=A,"stack"in A&&(this.stack=this.stack+"\nCAUSE: "+A.stack)}}}return E[A]=Q,Q};D("AccountNameRequired"),D("AccountNotSupported"),D("AmountRequired"),D("BluetoothRequired"),D("BtcUnmatchedApp"),D("CantOpenDevice"),D("CashAddrNotSupported"),D("ClaimRewardsFeesWarning"),D("CurrencyNotSupported"),D("DeviceAppVerifyNotSupported"),D("DeviceGenuineSocketEarlyClose"),D("DeviceNotGenuine"),D("DeviceOnDashboardExpected"),D("DeviceOnDashboardUnexpected"),D("DeviceInOSUExpected"),D("DeviceHalted"),D("DeviceNameInvalid"),D("DeviceSocketFail"),D("DeviceSocketNoBulkStatus");let c=D("LockedDeviceError");D("UnresponsiveDeviceError");let M=D("DisconnectedDevice"),s=D("DisconnectedDeviceDuringOperation");D("DeviceExtractOnboardingStateError"),D("DeviceOnboardingStatePollingError"),D("EnpointConfig"),D("EthAppPleaseEnableContractData"),D("FeeEstimationFailed"),D("FirmwareNotRecognized"),D("HardResetFail"),D("InvalidXRPTag"),D("InvalidAddress"),D("InvalidNonce"),D("InvalidAddressBecauseDestinationIsAlsoSource"),D("LatestMCUInstalledError"),D("UnknownMCU"),D("LedgerAPIError"),D("LedgerAPIErrorWithMessage"),D("LedgerAPINotAvailable"),D("ManagerAppAlreadyInstalled"),D("ManagerAppRelyOnBTC"),D("ManagerAppDepInstallRequired"),D("ManagerAppDepUninstallRequired"),D("ManagerDeviceLocked"),D("ManagerFirmwareNotEnoughSpace"),D("ManagerNotEnoughSpace"),D("ManagerUninstallBTCDep"),D("NetworkDown"),D("NoAddressesFound"),D("NotEnoughBalance"),D("NotEnoughBalanceToDelegate"),D("NotEnoughBalanceInParentAccount"),D("NotEnoughSpendableBalance"),D("NotEnoughBalanceBecauseDestinationNotCreated"),D("NoAccessToCamera"),D("NotEnoughGas"),D("NotEnoughGasSwap"),D("NotSupportedLegacyAddress"),D("GasLessThanEstimate"),D("PriorityFeeTooLow"),D("PriorityFeeTooHigh"),D("PriorityFeeHigherThanMaxFee"),D("MaxFeeTooLow"),D("PasswordsDontMatch"),D("PasswordIncorrect"),D("RecommendSubAccountsToEmpty"),D("RecommendUndelegation"),D("TimeoutTagged"),D("UnexpectedBootloader"),D("MCUNotGenuineToDashboard"),D("RecipientRequired"),D("UnavailableTezosOriginatedAccountReceive"),D("UnavailableTezosOriginatedAccountSend"),D("UpdateFetchFileFail"),D("UpdateIncorrectHash"),D("UpdateIncorrectSig"),D("UpdateYourApp"),D("UserRefusedDeviceNameChange"),D("UserRefusedAddress"),D("UserRefusedFirmwareUpdate"),D("UserRefusedAllowManager"),D("UserRefusedOnDevice");let y=D("TransportOpenUserCancelled");D("TransportInterfaceNotAvailable");let n=D("TransportRaceCondition");D("TransportWebUSBGestureRequired"),D("TransactionHasBeenValidatedError"),D("DeviceShouldStayInApp"),D("WebsocketConnectionError"),D("WebsocketConnectionFailed"),D("WrongDeviceForAccount"),D("WrongAppForCurrency"),D("ETHAddressNonEIP"),D("CantScanQRCode"),D("FeeNotLoaded"),D("FeeRequired"),D("FeeTooHigh"),D("PendingOperation"),D("SyncError"),D("PairingFailed"),D("PeerRemovedPairing"),D("GenuineCheckFailed"),D("LedgerAPI4xx"),D("LedgerAPI5xx"),D("FirmwareOrAppUpdateRequired"),D("OpReturnSizeLimit"),D("DustLimit"),D("LanguageNotFound"),D("NoDBPathGiven"),D("DBWrongPassword"),D("DBNotReset"),(I=C||(C={})).Unknown="Unknown",I.LocationServicesDisabled="LocationServicesDisabled",I.LocationServicesUnauthorized="LocationServicesUnauthorized",I.BluetoothScanStartFailed="BluetoothScanStartFailed";class h extends Error{constructor(A,Q){let B="TransportError";super(A||B),this.name=B,this.message=A,this.stack=Error(A).stack,this.id=Q}}w("TransportError",A=>new h(A.message,A.id));let k={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};function K(A){let Q=Object.keys(k).find(Q=>k[Q]===A)||"UNKNOWN_ERROR",B=function(A){switch(A){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=A&&A<=28671)return"Internal error, please report"}(A)||Q,C=A.toString(16),I=`Ledger device: ${B} (0x${C})`;if(A===k.LOCKED_DEVICE)throw new c(I);this.name="TransportStatusError",this.message=I,this.stack=Error(I).stack,this.statusCode=A,this.statusText=Q}K.prototype=Error(),w("TransportStatusError",A=>new K(A.statusCode))},65597:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return AS}});var C,I=B(97790),E=B(9341),g=B(75102),w=function(A,Q){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)};function D(A,Q){function B(){this.constructor=A}w(A,Q),A.prototype=null===Q?Object.create(Q):(B.prototype=Q.prototype,new B)}function c(A){return"function"==typeof A}var M=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,M=value},get useDeprecatedSynchronousErrorHandling(){return M}};function y(A){setTimeout(function(){throw A},0)}var n={closed:!0,next:function(A){},error:function(A){if(s.useDeprecatedSynchronousErrorHandling)throw A;y(A)},complete:function(){}},h=Array.isArray||function(A){return A&&"number"==typeof A.length};function k(A){return null!==A&&"object"==typeof A}var K=function(){function A(A){return Error.call(this),this.message=A?A.length+" errors occurred during unsubscription:\n"+A.map(function(A,Q){return Q+1+") "+A.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=A,this}return A.prototype=Object.create(Error.prototype),A}(),t=function(){var A;function Q(A){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,A&&(this._ctorUnsubscribe=!0,this._unsubscribe=A)}return Q.prototype.unsubscribe=function(){if(!this.closed){var A,B=this._parentOrParents,C=this._ctorUnsubscribe,I=this._unsubscribe,E=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,B instanceof Q)B.remove(this);else if(null!==B)for(var g=0;g{let C=(function(A,Q){let B=[];for(let C=0,I=Q(0);CB-(0===A?5:3)).map((A,B)=>{let C=e.alloc(0===B?5:3);return C.writeUInt8(5,0),C.writeUInt16BE(B,1),0===B&&C.writeUInt16BE(Q.length,3),e.concat([C,A])});return new a(Q=>{let B=!1;return(function(){var Q,I,E,g;return Q=this,I=void 0,E=void 0,g=function*(){for(let Q of C){if(B)return;yield A(Q)}},new(E||(E=Promise))(function(A,B){function C(A){try{D(g.next(A))}catch(A){B(A)}}function w(A){try{D(g.throw(A))}catch(A){B(A)}}function D(Q){var B;Q.done?A(Q.value):((B=Q.value)instanceof E?B:new E(function(A){A(B)})).then(C,w)}D((g=g.apply(Q,I||[])).next())})})().then(()=>{B=!0,Q.complete()},A=>{B=!0,(0,N.c)("ble-error","sendAPDU failure "+String(A)),Q.error(A)}),()=>{B||((0,N.c)("ble-verbose","sendAPDU interruption"),B=!0)}})};var S=B(48834).lW;let F=A=>a.create(Q=>{let B=0,C=0,I=S.alloc(0),g=A.subscribe({complete:()=>{Q.error(new E.qX),g.unsubscribe()},error:A=>{(0,N.c)("ble-error","in receiveAPDU "+String(A)),Q.error(A),g.unsubscribe()},next:A=>{let w=A.readUInt8(0),D=A.readUInt16BE(1),c=A.slice(3);if(5!==w){Q.error(new E.PS("Invalid tag "+w.toString(16),"InvalidTag"));return}if(B!==D){Q.error(new E.PS("BLE: Invalid sequence number. discontinued chunk. Received "+D+" but expected "+B,"InvalidSequence"));return}if(0===D&&(C=c.readUInt16BE(0),c=c.slice(2)),B++,(I=S.concat([I,c])).length>C){Q.error(new E.PS("BLE: received too much data. discontinued chunk. Received "+I.length+" but expected "+C,"BLETooMuchData"));return}I.length===C&&(Q.next(I),Q.complete(),g.unsubscribe())}});return()=>{g.unsubscribe()}});function l(A,Q){return function(B){if("function"!=typeof A)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return B.lift(new Y(A,Q))}}var Y=function(){function A(A,Q){this.project=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new H(A,this.project,this.thisArg))},A}(),H=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.project=B,I.count=0,I.thisArg=C||I,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.project.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}this.destination.next(Q)},Q}(i),f=function(A){return function(Q){for(var B=0,C=A.length;B0?this._next(A.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},Q}(T);function W(){for(var A,Q,B=[],C=0;C1&&"number"==typeof B[B.length-1]&&(I=B.pop())):"number"==typeof g&&(I=B.pop()),null===E&&1===B.length&&B[0]instanceof a)?B[0]:(void 0===(A=I)&&(A=Number.POSITIVE_INFINITY),function A(Q,B,C){return(void 0===C&&(C=Number.POSITIVE_INFINITY),"function"==typeof B)?function(I){return I.pipe(A(function(A,C){return m(Q(A,C)).pipe(l(function(Q,I){return B(A,Q,C,I)}))},C))}:("number"==typeof B&&(C=B),function(A){return A.lift(new P(Q,C))})}(r,A))((Q=E)?b(B,Q):new a(f(B)))}var z=new a(function(A){return A.complete()});function x(){}var V=function(){function A(A,Q,B){this.nextOrObserver=A,this.error=Q,this.complete=B}return A.prototype.call=function(A,Q){return Q.subscribe(new v(A,this.nextOrObserver,this.error,this.complete))},A}(),v=function(A){function Q(Q,B,C,I){var E=A.call(this,Q)||this;return E._tapNext=x,E._tapError=x,E._tapComplete=x,E._tapError=C||x,E._tapComplete=I||x,c(B)?(E._context=E,E._tapNext=B):B&&(E._context=B,E._tapNext=B.next||x,E._tapError=B.error||x,E._tapComplete=B.complete||x),E}return D(Q,A),Q.prototype._next=function(A){try{this._tapNext.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.next(A)},Q.prototype._error=function(A){try{this._tapError.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.error(A)},Q.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(A){this.destination.error(A);return}return this.destination.complete()},Q}(i),X=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}(),q=function(A){function Q(Q,B){var C=A.call(this)||this;return C.subject=Q,C.subscriber=B,C.closed=!1,C}return D(Q,A),Q.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this.subject,Q=A.observers;if(this.subject=null,Q&&0!==Q.length&&!A.isStopped&&!A.closed){var B=Q.indexOf(this.subscriber);-1!==B&&Q.splice(B,1)}}},Q}(t),_=function(A){function Q(Q){var B=A.call(this,Q)||this;return B.destination=Q,B}return D(Q,A),Q}(i),$=function(A){function Q(){var Q=A.call(this)||this;return Q.observers=[],Q.closed=!1,Q.isStopped=!1,Q.hasError=!1,Q.thrownError=null,Q}return D(Q,A),Q.prototype[L]=function(){return new _(this)},Q.prototype.lift=function(A){var Q=new AA(this,this);return Q.operator=A,Q},Q.prototype.next=function(A){if(this.closed)throw new X;if(!this.isStopped)for(var Q=this.observers,B=Q.length,C=Q.slice(),I=0;I1)){this.connection=null;return}var B=this.connection,C=A._connection;this.connection=null,C&&(!B||C===B)&&C.unsubscribe()},Q}(i),AI={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(C=function(A){function Q(Q,B){var C=A.call(this)||this;return C.source=Q,C.subjectFactory=B,C._refCount=0,C._isComplete=!1,C}return D(Q,A),Q.prototype._subscribe=function(A){return this.getSubject().subscribe(A)},Q.prototype.getSubject=function(){var A=this._subject;return(!A||A.isStopped)&&(this._subject=this.subjectFactory()),this._subject},Q.prototype.connect=function(){var A=this._connection;return!A&&(this._isComplete=!1,(A=this._connection=new t).add(this.source.subscribe(new AE(this.getSubject(),this))),A.closed&&(this._connection=null,A=t.EMPTY)),A},Q.prototype.refCount=function(){return AQ()(this)},Q}(a).prototype)._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}},AE=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.connectable=B,C}return D(Q,A),Q.prototype._error=function(Q){this._unsubscribe(),A.prototype._error.call(this,Q)},Q.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),A.prototype._complete.call(this)},Q.prototype._unsubscribe=function(){var A=this.connectable;if(A){this.connectable=null;var Q=A._connection;A._refCount=0,A._subject=null,A._connection=null,Q&&Q.unsubscribe()}},Q}(_);function Ag(){return new $}var Aw=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}(),AD=function(){function A(A,Q){this.predicate=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new Ac(A,this.predicate,this.thisArg))},A}(),Ac=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.predicate=B,I.thisArg=C,I.count=0,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.predicate.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}Q&&this.destination.next(A)},Q}(i),AM=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}(),As=function(){function A(A){if(this.total=A,this.total<0)throw new AM}return A.prototype.call=function(A,Q){return Q.subscribe(new Ay(A,this.total))},A}(),Ay=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.total=B,C.count=0,C}return D(Q,A),Q.prototype._next=function(A){var Q=this.total,B=++this.count;B<=Q&&(this.destination.next(A),B===Q&&(this.destination.complete(),this.unsubscribe()))},Q}(i),An=function(){function A(A){this.defaultValue=A}return A.prototype.call=function(A,Q){return Q.subscribe(new Ah(A,this.defaultValue))},A}(),Ah=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.defaultValue=B,C.isEmpty=!0,C}return D(Q,A),Q.prototype._next=function(A){this.isEmpty=!1,this.destination.next(A)},Q.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},Q}(i),Ak=function(){function A(A){this.errorFactory=A}return A.prototype.call=function(A,Q){return Q.subscribe(new AK(A,this.errorFactory))},A}(),AK=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.errorFactory=B,C.hasValue=!1,C}return D(Q,A),Q.prototype._next=function(A){this.hasValue=!0,this.destination.next(A)},Q.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var A=void 0;try{A=this.errorFactory()}catch(Q){A=Q}this.destination.error(A)},Q}(i),At=function(){function A(){}return A.prototype.call=function(A,Q){return Q.subscribe(new AU(A))},A}(),AU=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return D(Q,A),Q.prototype._next=function(A){},Q}(i),AL=B(48834).lW;let Ai=A=>a.create(Q=>{function B(A){let B=A.target;B.value&&Q.next(AL.from(B.value.buffer))}return(0,N.c)("ble-verbose","start monitor "+A.uuid),A.startNotifications().then(()=>{A.addEventListener("characteristicvaluechanged",B)}),()=>{(0,N.c)("ble-verbose","end monitor "+A.uuid),A.stopNotifications()}});var AG=B(48834).lW,Ap=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let Ar=()=>{let{bluetooth:A}=navigator;if(void 0===A)throw Error("web bluetooth not supported");return A},Aa=()=>a.create(A=>{let Q=Ar(),B=Q=>{A.next(Q.value)};Q.addEventListener("availabilitychanged",B);let C=!1;return Q.getAvailability().then(Q=>{C||A.next(Q)}),()=>{C=!0,Q.removeEventListener("availabilitychanged",B)}}),Ao={},AN=()=>({filters:(0,g.RH)().map(A=>({services:[A]}))}),Ae=A=>Ap(void 0,void 0,void 0,function*(){if(!A.gatt)throw Error("bluetooth gatt not found");let[Q]=yield A.gatt.getPrimaryServices();if(!Q)throw Error("bluetooth service not found");let B=(0,g.R7)(Q.uuid);if(!B)throw Error("bluetooth service infos not found");return[Q,B]});class AJ extends I.ZP{static listen(A){let Q;return(0,N.c)("ble-verbose","listen..."),Ar().requestDevice(AN()).then(B=>{Q||(A.next({type:"add",descriptor:B}),A.complete())},Q=>{A.error(new E.FB(Q.message))}),{unsubscribe:function(){Q=!0}}}static open(A){return Ap(this,void 0,void 0,function*(){return function A(Q,B){return Ap(this,void 0,void 0,function*(){var C;let I;if("string"==typeof Q){if(Ao[Q])return(0,N.c)("ble-verbose","Transport in cache, using that."),Ao[Q];let A=Ar();I=yield A.requestDevice(AN())}else I=Q;I.gatt.connected||((0,N.c)("ble-verbose","not connected. connecting..."),yield I.gatt.connect());let[g,w]=yield Ae(I),{deviceModel:D,writeUuid:c,notifyUuid:M}=w,[s,y]=yield Promise.all([g.getCharacteristic(c),g.getCharacteristic(M)]),n=Ai(y).pipe((C=A=>{(0,N.c)("ble-frame","<= "+A.toString("hex"))},function(A){return A.lift(new V(C,void 0,void 0))}),function(A){return AQ()(function(A){var Q=Object.create(A,AI);return Q.source=A,Q.subjectFactory=Ag,Q}(A))}),h=n.subscribe(),k=new AJ(I,s,n,D);if(!I.gatt.connected)throw new E.qX;Ao[k.id]=k;let K=A=>{console.log("onDisconnect!",A),delete Ao[k.id],k.notYetDisconnected=!1,h.unsubscribe(),I.removeEventListener("gattserverdisconnected",K),(0,N.c)("ble-verbose",`BleTransport(${k.id}) disconnected`),k.emit("disconnect",A)};I.addEventListener("gattserverdisconnected",K);let t=Date.now();try{yield k.inferMTU()}finally{Date.now()-t<1e3&&(B=!1),B&&(yield I.gatt.disconnect(),yield new Promise(A=>setTimeout(A,4e3)))}return B?A(I,!1):k})}(A,!0)})}constructor(A,Q,B,C){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=A=>Ap(this,void 0,void 0,function*(){(0,N.c)("ble-frame","=> "+A.toString("hex")),yield this.writeCharacteristic.writeValue(A)}),this.id=A.id,this.device=A,this.writeCharacteristic=Q,this.notifyObservable=B,this.deviceModel=C,(0,N.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return Ap(this,void 0,void 0,function*(){let A=23;if(yield this.exchangeAtomicImpl(()=>Ap(this,void 0,void 0,function*(){try{var Q;A=(yield W(this.notifyObservable.pipe(function(A,Q){var B=arguments.length>=2;return function(C){var I,E,g;return C.pipe(A?(I=function(Q,B){return A(Q,B,C)},function(A){return A.lift(new AD(I,void 0))}):r,function(A){return A.lift(new As(1))},B?(void 0===(E=Q)&&(E=null),function(A){return A.lift(new An(E))}):(g=function(){return new Aw},function(A){return A.lift(new Ak(g))}))}}(A=>8===A.readUInt8(0)),l(A=>A.readUInt8(5))),(Q=()=>m(this.write(AG.from([8,0,0,0,0]))),new a(function(A){var B;try{B=Q()}catch(Q){A.error(Q);return}return(B?m(B):z).subscribe(A)})).pipe(function(A){return A.lift(new At)})).toPromise())+3}catch(A){throw(0,N.c)("ble-error","inferMTU got "+String(A)),this.device.gatt.disconnect(),A}})),A>23){let Q=A-3;(0,N.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(Q)}`),this.mtuSize=Q}return this.mtuSize})}exchange(A){return Ap(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>Ap(this,void 0,void 0,function*(){try{let Q=A.toString("hex");(0,N.c)("apdu",`=> ${Q}`);let B=yield W(this.notifyObservable.pipe(F),J(this.write,A,this.mtuSize)).toPromise(),C=B.toString("hex");return(0,N.c)("apdu",`<= ${C}`),B}catch(A){throw(0,N.c)("ble-error","exchange got "+String(A)),this.notYetDisconnected&&this.device.gatt.disconnect(),A}}))})}setScrambleKey(){}close(){return Ap(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}AJ.isSupported=()=>Promise.resolve().then(Ar).then(()=>!0,()=>!1),AJ.observeAvailability=A=>Aa().subscribe(A),AJ.list=()=>Promise.resolve([]),AJ.disconnect=A=>Ap(void 0,void 0,void 0,function*(){(0,N.c)("ble-verbose",`user disconnect(${A})`);let Q=Ao[A];Q&&Q.device.gatt.disconnect()});var AS=AJ},27748:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return t}});var C=B(97790),I=B(9341),E=B(48834).lW;let g={data:E.alloc(0),dataLength:0,sequence:0};var w=(A,Q)=>({makeBlocks(B){let C=E.concat([function(A){let Q=E.alloc(2);return Q.writeUInt16BE(A,0),Q}(B.length),B]),I=Q-5,g=Math.ceil(C.length/I);C=E.concat([C,E.alloc(g*I-C.length+1).fill(0)]);let w=[];for(let Q=0;Qw&&(C=C.slice(0,w)),{data:C,dataLength:w,sequence:D}},getReducedResult(A){if(A&&A.dataLength===A.data.length)return A.data}}),D=B(75102),c=B(91288),M=B(48834).lW,s=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let y=[{vendorId:D.An}],n=()=>{let{hid:A}=navigator;if(!A)throw new I.PS("navigator.hid is not supported","HIDNotSupported");return A};function h(){return s(this,void 0,void 0,function*(){let A=yield n().requestDevice({filters:y});return Array.isArray(A)?A:[A]})}function k(){return s(this,void 0,void 0,function*(){return(yield n().getDevices()).filter(A=>A.vendorId===D.An)})}class K extends C.ZP{constructor(A){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(A=>{this.inputCallback=A}),this.onInputReport=A=>{let Q=M.from(A.data.buffer);this.inputCallback?(this.inputCallback(Q),this.inputCallback=null):this.inputs.push(Q)},this._disconnectEmitted=!1,this._emitDisconnect=A=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",A))},this.exchange=A=>s(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>s(this,void 0,void 0,function*(){let Q,B;let{channel:C,packetSize:I}=this;(0,c.c)("apdu","=> "+A.toString("hex"));let E=w(C,I),g=E.makeBlocks(A);for(let A=0;A{if(A&&A.message&&A.message.includes("write"))throw this._emitDisconnect(A),new I.vs(A.message);throw A})}),this.device=A,this.deviceModel="number"==typeof A.productId?(0,D.Ht)(A.productId):void 0,A.addEventListener("inputreport",this.onInputReport)}static request(){return s(this,void 0,void 0,function*(){let[A]=yield h();return K.open(A)})}static openConnected(){return s(this,void 0,void 0,function*(){let A=yield k();return 0===A.length?null:K.open(A[0])})}static open(A){return s(this,void 0,void 0,function*(){yield A.open();let Q=new K(A),B=C=>{A===C.device&&(n().removeEventListener("disconnect",B),Q._emitDisconnect(new I.qX))};return n().addEventListener("disconnect",B),Q})}close(){return s(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}K.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),K.list=k,K.listen=A=>{let Q=!1;return(function(){return s(this,void 0,void 0,function*(){let A=yield k();return A.length>0?A[0]:(yield h())[0]})})().then(B=>{if(B){if(!Q){let Q="number"==typeof B.productId?(0,D.Ht)(B.productId):void 0;A.next({type:"add",descriptor:B,deviceModel:Q}),A.complete()}}else A.error(new I.FB("Access denied to use Ledger device"))},Q=>{A.error(new I.FB(Q.message))}),{unsubscribe:function(){Q=!0}}};var t=K},97790:function(A,Q,B){"use strict";var C=B(22699),I=B.n(C),E=B(9341),g=B(48834).lW,w=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};class D{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(I()),this.send=(A,Q,B,C,I=g.alloc(0),D=[E.WC.OK])=>w(this,void 0,void 0,function*(){if(I.length>=256)throw new E.PS("data.length exceed 256 bytes limit. Got: "+I.length,"DataLengthTooBig");let w=yield this.exchange(g.concat([g.from([A,Q,B,C]),g.from([I.length]),I])),c=w.readUInt16BE(w.length-2);if(!D.some(A=>A===c))throw new E.rZ(c);return w}),this.exchangeAtomicImpl=A=>w(this,void 0,void 0,function*(){let Q;if(this.exchangeBusyPromise)throw new E.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let B=new Promise(A=>{Q=A});this.exchangeBusyPromise=B;let C=!1,I=setTimeout(()=>{C=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let Q=yield A();return C&&this.emit("responsive"),Q}finally{clearTimeout(I),Q&&Q(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(A){throw Error("exchange not implemented")}exchangeBulk(A,Q){let B=!1;return w(this,void 0,void 0,function*(){if(!B)for(let C of A){let A=yield this.exchange(C);if(B)return;let I=A.readUInt16BE(A.length-2);if(I!==E.WC.OK)throw new E.rZ(I);Q.next(A)}}).then(()=>!B&&Q.complete(),A=>!B&&Q.error(A)),{unsubscribe:()=>{B=!0}}}setScrambleKey(A){}close(){return Promise.resolve()}on(A,Q){this._events.on(A,Q)}off(A,Q){this._events.removeListener(A,Q)}emit(A,...Q){this._events.emit(A,...Q)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(A){this.exchangeTimeout=A}setExchangeUnresponsiveTimeout(A){this.unresponsiveTimeout=A}static create(A=3e3,Q){return new Promise((B,C)=>{let I=!1,g=this.listen({next:Q=>{I=!0,g&&g.unsubscribe(),w&&clearTimeout(w),this.open(Q.descriptor,A).then(B,C)},error:A=>{w&&clearTimeout(w),C(A)},complete:()=>{w&&clearTimeout(w),I||C(new E.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),w=Q?setTimeout(()=>{g.unsubscribe(),C(new E.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},Q):null})}decorateAppAPIMethods(A,Q,B){for(let C of Q)A[C]=this.decorateAppAPIMethod(C,A[C],A,B)}decorateAppAPIMethod(A,Q,B,C){return(...I)=>w(this,void 0,void 0,function*(){let{_appAPIlock:g}=this;if(g)return Promise.reject(new E.PS("Ledger Device is busy (lock "+g+")","TransportLocked"));try{return this._appAPIlock=A,this.setScrambleKey(C),yield Q.apply(B,I)}finally{this._appAPIlock=null}})}}D.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",D.ErrorMessage_NoDeviceFound="No Ledger device found",Q.ZP=D},91288:function(A,Q,B){"use strict";B.d(Q,{c:function(){return E}});var C=0,I=[],E=function(A,Q,B){var E={type:A,id:String(++C),date:new Date};Q&&(E.message=Q),B&&(E.data=B),function(A){for(var Q=0;Q0&&I[I.length-1])&&(6===E[0]||2===E[0])){g=0;continue}if(3===E[0]&&(!I||E[1]>I[0]&&E[1]2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');let Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return M(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);let B=0|h(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(R(A,Uint8Array)){let Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(R(A,ArrayBuffer)||A&&R(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(A,SharedArrayBuffer)||A&&R(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);let I=function(A){var Q;if(w.isBuffer(A)){let Q=0|n(A.length),B=g(Q);return 0===B.length||A.copy(B,0,0,Q),B}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function c(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function M(A){return c(A),g(A<0?0:0|n(A))}function s(A){let Q=A.length<0?0:0|n(A.length),B=g(Q);for(let C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function h(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||R(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;let I=!1;for(;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return f(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return d(A).length;default:if(I)return C?-1:f(A).length;Q=(""+Q).toLowerCase(),I=!0}}function k(A,Q,B){let I=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){let C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);let I="";for(let C=Q;C2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:U(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):U(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function U(A,Q,B,C,I){let E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function c(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){let C=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){let B=!0;for(let C=0;C239?4:Q>223?3:Q>191?2:1;if(I+g<=B){let B,C,w,D;switch(g){case 1:Q<128&&(E=Q);break;case 2:(192&(B=A[I+1]))==128&&(D=(31&Q)<<6|63&B)>127&&(E=D);break;case 3:B=A[I+1],C=A[I+2],(192&B)==128&&(192&C)==128&&(D=(15&Q)<<12|(63&B)<<6|63&C)>2047&&(D<55296||D>57343)&&(E=D);break;case 4:B=A[I+1],C=A[I+2],w=A[I+3],(192&B)==128&&(192&C)==128&&(192&w)==128&&(D=(15&Q)<<18|(63&B)<<12|(63&C)<<6|63&w)>65535&&D<1114112&&(E=D)}}null===E?(E=65533,g=1):E>65535&&(E-=65536,C.push(E>>>10&1023|55296),E=56320|1023&E),C.push(E),I+=g}return function(A){let Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);let B="",C=0;for(;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function p(A,Q,B,C,I){F(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,B}function r(A,Q,B,C,I){F(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B+7]=E,E>>=8,A[B+6]=E,E>>=8,A[B+5]=E,E>>=8,A[B+4]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B+3]=g,g>>=8,A[B+2]=g,g>>=8,A[B+1]=g,g>>=8,A[B]=g,B+8}function a(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function o(A,Q,B,C,E){return Q=+Q,B>>>=0,E||a(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function N(A,Q,B,C,E){return Q=+Q,B>>>=0,E||a(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.Buffer=w,Q.SlowBuffer=function(A){return+A!=A&&(A=0),w.alloc(+A)},Q.INSPECT_MAX_BYTES=50,Q.kMaxLength=2147483647,w.TYPED_ARRAY_SUPPORT=function(){try{let A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(c(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return M(A)},w.allocUnsafeSlow=function(A){return M(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),R(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;let B=A.length,C=Q.length;for(let I=0,E=Math.min(B,C);IC.length?(w.isBuffer(Q)||(Q=w.from(Q)),Q.copy(C,I)):Uint8Array.prototype.set.call(C,Q,I);else if(w.isBuffer(Q))Q.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=Q.length}return C},w.byteLength=h,w.prototype._isBuffer=!0,w.prototype.swap16=function(){let A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;let E=I-C,g=B-Q,D=Math.min(E,g),c=this.slice(C,I),M=A.slice(Q,B);for(let A=0;A>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let n=!1;for(;;)switch(C){case"hex":return function(A,Q,B,C){let I;B=Number(B)||0;let E=A.length-B;C?(C=Number(C))>E&&(C=E):C=E;let g=Q.length;for(C>g/2&&(C=g/2),I=0;I>8,I.push(B%256),I.push(C);return I}(A,this.length-M),this,M,s);default:if(n)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),n=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){let B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A+--Q],I=1;for(;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readBigUInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&Y(A,this.length-8);let C=Q+256*this[++A]+65536*this[++A]+16777216*this[++A],I=this[++A]+256*this[++A]+65536*this[++A]+16777216*B;return BigInt(C)+(BigInt(I)<>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&Y(A,this.length-8);let C=16777216*Q+65536*this[++A]+256*this[++A]+this[++A],I=16777216*this[++A]+65536*this[++A]+256*this[++A]+B;return(BigInt(C)<>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);let C=Q,I=1,E=this[A+--C];for(;C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readBigInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&Y(A,this.length-8),(BigInt(this[A+4]+256*this[A+5]+65536*this[A+6]+(B<<24))<>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&Y(A,this.length-8),(BigInt((Q<<24)+65536*this[++A]+256*this[++A]+this[++A])<>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=1,E=0;for(this[Q]=255&A;++E>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=B-1,E=1;for(this[Q+I]=255&A;--I>=0&&(E*=256);)this[Q+I]=A/E&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigUInt64LE=b(function(A,Q=0){return p(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=b(function(A,Q=0){return r(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=0,E=1,g=0;for(this[Q]=255&A;++I>0)-g&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=B-1,E=1,g=0;for(this[Q+I]=255&A;--I>=0&&(E*=256);)A<0&&0===g&&0!==this[Q+I+1]&&(g=1),this[Q+I]=(A/E>>0)-g&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigInt64LE=b(function(A,Q=0){return p(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=b(function(A,Q=0){return r(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeFloatLE=function(A,Q,B){return o(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return o(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return N(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return N(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I=C+4;B-=3)Q=`_${A.slice(B-3,B)}${Q}`;return`${A.slice(0,B)}${Q}`}function F(A,Q,B,C,I,E){if(A>B||A3?0===Q||Q===BigInt(0)?`>= 0${I} and < 2${I} ** ${(E+1)*8}${I}`:`>= -(2${I} ** ${(E+1)*8-1}${I}) and < 2 ** ${(E+1)*8-1}${I}`:`>= ${Q}${I} and <= ${B}${I}`,new e.ERR_OUT_OF_RANGE("value",C,A)}l(I,"offset"),(void 0===C[I]||void 0===C[I+E])&&Y(I,C.length-(E+1))}function l(A,Q){if("number"!=typeof A)throw new e.ERR_INVALID_ARG_TYPE(Q,"number",A)}function Y(A,Q,B){if(Math.floor(A)!==A)throw l(A,B),new e.ERR_OUT_OF_RANGE(B||"offset","an integer",A);if(Q<0)throw new e.ERR_BUFFER_OUT_OF_BOUNDS;throw new e.ERR_OUT_OF_RANGE(B||"offset",`>= ${B?1:0} and <= ${Q}`,A)}J("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(A,Q){return`The "${A}" argument must be of type number. Received type ${typeof Q}`},TypeError),J("ERR_OUT_OF_RANGE",function(A,Q,B){let C=`The value of "${A}" is out of range.`,I=B;return Number.isInteger(B)&&Math.abs(B)>4294967296?I=S(String(B)):"bigint"==typeof B&&(I=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(I=S(I)),I+="n"),C+=` It must be ${Q}. Received ${I}`},RangeError);let H=/[^+/0-9A-Za-z-_]/g;function f(A,Q){let B;Q=Q||1/0;let C=A.length,I=null,E=[];for(let g=0;g55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function d(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function u(A,Q,B,C){let I;for(I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function R(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}let j=function(){let A="0123456789abcdef",Q=Array(256);for(let B=0;B<16;++B){let C=16*B;for(let I=0;I<16;++I)Q[C+I]=A[B]+A[I]}return Q}();function b(A){return"undefined"==typeof BigInt?m:A}function m(){throw Error("BigInt not supported")}},52180:function(A,Q){"use strict";var B,C=this&&this.__extends||(B=function(A,Q){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)},function(A,Q){function C(){this.constructor=A}B(A,Q),A.prototype=null===Q?Object.create(Q):(C.prototype=Q.prototype,new C)});Object.defineProperty(Q,"__esModule",{value:!0});var I=function(){function A(A){void 0===A&&(A="="),this._paddingCharacter=A}return A.prototype.encodedLength=function(A){return this._paddingCharacter?(A+2)/3*4|0:(8*A+5)/6|0},A.prototype.encode=function(A){for(var Q="",B=0;B>>18&63)+this._encodeByte(C>>>12&63)+this._encodeByte(C>>>6&63)+this._encodeByte(C>>>0&63)}var I=A.length-B;if(I>0){var C=A[B]<<16|(2===I?A[B+1]<<8:0);Q+=this._encodeByte(C>>>18&63)+this._encodeByte(C>>>12&63),2===I?Q+=this._encodeByte(C>>>6&63):Q+=this._paddingCharacter||"",Q+=this._paddingCharacter||""}return Q},A.prototype.maxDecodedLength=function(A){return this._paddingCharacter?A/4*3|0:(6*A+7)/8|0},A.prototype.decodedLength=function(A){return this.maxDecodedLength(A.length-this._getPaddingLength(A))},A.prototype.decode=function(A){if(0===A.length)return new Uint8Array(0);for(var Q=this._getPaddingLength(A),B=A.length-Q,C=new Uint8Array(this.maxDecodedLength(B)),I=0,E=0,g=0,w=0,D=0,c=0,M=0;E>>4,C[I++]=D<<4|c>>>2,C[I++]=c<<6|M,g|=256&w,g|=256&D,g|=256&c,g|=256&M;if(E>>4,g|=256&w,g|=256&D),E>>2,g|=256&c),E>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-15)+(62-A>>>8&3))},A.prototype._decodeChar=function(A){return 256+((42-A&A-44)>>>8&-256+A-43+62)+((46-A&A-48)>>>8&-256+A-47+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},A.prototype._getPaddingLength=function(A){var Q=0;if(this._paddingCharacter){for(var B=A.length-1;B>=0&&A[B]===this._paddingCharacter;B--)Q++;if(A.length<4||Q>2)throw Error("Base64Coder: incorrect padding")}return Q},A}();Q.Coder=I;var E=new I;Q.encode=function(A){return E.encode(A)},Q.decode=function(A){return E.decode(A)};var g=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return C(Q,A),Q.prototype._encodeByte=function(A){var Q=A;return String.fromCharCode(Q+=65+(25-A>>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-13)+(62-A>>>8&49))},Q.prototype._decodeChar=function(A){return 256+((44-A&A-46)>>>8&-256+A-45+62)+((94-A&A-96)>>>8&-256+A-95+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},Q}(I);Q.URLSafeCoder=g;var w=new g;Q.encodeURLSafe=function(A){return w.encode(A)},Q.decodeURLSafe=function(A){return w.decode(A)},Q.encodedLength=function(A){return E.encodedLength(A)},Q.maxDecodedLength=function(A){return E.maxDecodedLength(A)},Q.decodedLength=function(A){return E.decodedLength(A)}},99985:function(A,Q,B){"use strict";Q.Z=w;var C=g(B(13980)),I=g(B(2784)),E=g(B(23442));function g(A){return A&&A.__esModule?A:{default:A}}function w(A){var Q=A.captureDragArea,B=A.snapToPointer,C=A.children,g=A.dx,w=A.dy,D=A.height,c=A.onDragEnd,M=A.onDragMove,s=A.onDragStart,y=A.resetOnStart,n=A.width,h=A.x,k=A.y,K=A.isDragging,t=A.restrict,U=A.restrictToPath,L=(0,E.default)({resetOnStart:y,snapToPointer:void 0===B||B,onDragEnd:c,onDragMove:M,onDragStart:s,x:h,y:k,dx:g,dy:w,isDragging:K,restrict:t,restrictToPath:U});return I.default.createElement(I.default.Fragment,null,L.isDragging&&(void 0===Q||Q)&&I.default.createElement("rect",{width:n,height:D,onPointerDown:L.dragStart,onPointerMove:L.dragMove,onPointerUp:L.dragEnd,fill:"transparent"}),C(L))}w.propTypes={children:C.default.func.isRequired,width:C.default.number.isRequired,height:C.default.number.isRequired,captureDragArea:C.default.bool,isDragging:C.default.bool}},23442:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=void 0===A?{}:A,B=Q.resetOnStart,c=void 0!==B&&B,s=Q.snapToPointer,y=void 0===s||s,n=Q.onDragEnd,h=Q.onDragMove,k=Q.onDragStart,K=Q.x,t=Q.y,U=Q.dx,L=Q.dy,i=Q.isDragging,G=Q.restrict,p=void 0===G?{}:G,r=Q.restrictToPath,a=(0,C.useRef)({x:K,y:t,dx:U,dy:L}),o=(0,g.default)({x:K,y:t,dx:null!=U?U:0,dy:null!=L?L:0,isDragging:!1}),N=o[0],e=o[1],J=(0,C.useState)(new I.Point({x:0,y:0})),S=J[0],F=J[1];(0,C.useEffect)(function(){(a.current.x!==K||a.current.y!==t||a.current.dx!==U||a.current.dy!==L)&&(a.current={x:K,y:t,dx:U,dy:L},e(function(A){return M({},A,{x:K,y:t,dx:null!=U?U:0,dy:null!=L?L:0})}))}),(0,C.useEffect)(function(){void 0!==i&&N.isDragging!==i&&e(function(A){return M({},A,{isDragging:i})})},[N.isDragging,i,e]);var l=(0,D.default)(r),Y=(0,C.useCallback)(function(A){A.persist(),e(function(Q){var B=Q.x,C=Q.y,g=Q.dx,D=Q.dy,M=new I.Point({x:((void 0===B?0:B)||0)+g,y:((void 0===C?0:C)||0)+D}),s=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),n=y?s:M,h=(0,w.default)(n,l,p);return F((0,I.subtractPoints)(M,s)),{isDragging:!0,dx:c?0:Q.dx,dy:c?0:Q.dy,x:c?h.x:h.x-Q.dx,y:c?h.y:h.y-Q.dy}},k&&function(Q){k(M({},Q,{event:A}))})},[k,c,p,l,e,y]),H=(0,C.useCallback)(function(A){A.persist(),e(function(Q){if(!Q.isDragging)return Q;var B=Q.x,C=Q.y,g=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),D=y?g:(0,I.sumPoints)(g,S),c=(0,w.default)(D,l,p);return M({},Q,{dx:c.x-(void 0===B?0:B),dy:c.y-(void 0===C?0:C)})},h&&function(Q){Q.isDragging&&h(M({},Q,{event:A}))})},[e,h,y,S,l,p]),f=(0,C.useCallback)(function(A){A.persist(),e(function(A){return M({},A,{isDragging:!1})},n&&function(Q){n(M({},Q,{event:A}))})},[n,e]);return M({},N,{dragEnd:f,dragMove:H,dragStart:Y})};var C=B(2784),I=B(61305),E=B(65319),g=c(B(37016)),w=c(B(60890)),D=c(B(32722));function c(A){return A&&A.__esModule?A:{default:A}}function M(){return(M=Object.assign?Object.assign.bind():function(A){for(var Q=1;QA.length)&&(Q=A.length);for(var B=0,C=Array(Q);B=A.length?{done:!0}:{done:!1,value:A[I++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Q);!(C=g()).done;){var w=C.value,D=Math.sqrt(Math.pow(w.x-A.x,2)+Math.pow(w.y-A.y,2));D0)?(0,I.default)(A,Q):{x:(0,C.default)(A.x,null!=(E=B.xMin)?E:-1/0,null!=(g=B.xMax)?g:1/0),y:(0,C.default)(A.y,null!=(w=B.yMin)?w:-1/0,null!=(D=B.yMax)?D:1/0)}};var C=E(B(30968)),I=E(B(98929));function E(A){return A&&A.__esModule?A:{default:A}}},32722:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){return(0,C.useMemo)(function(){if(!A)return[];var Q=A.getCTM()||new DOMMatrix;return function(A,Q,B){if(void 0===B&&(B=1),!A)return[];for(var C=[],I=A.getTotalLength(),E=0;E<=I;E+=B){var g=A.getPointAtLength(E).matrixTransform(Q);C.push(g)}return C}(A,Q)},[null==A?void 0:A.getTotalLength()])};var C=B(2784)},37016:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=(0,C.useState)(A),B=Q[0],I=Q[1],E=(0,C.useRef)(null),g=(0,C.useCallback)(function(A,Q){E.current=Q||null,I(A)},[I]);return(0,C.useLayoutEffect)(function(){E.current&&(E.current(B),E.current=null)},[B]),[B,g]};var C=B(2784)},65319:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{localPoint:function(){return C.Z},touchPoint:function(){return I.Z}});var C=B(91032),I=B(49833)},91032:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return E}});var C=B(49833),I=B(44321);function E(A,Q){if((0,I.kK)(A)&&Q)return(0,C.Z)(A,Q);if((0,I.cO)(A)){var B=A.target;if(B)return(0,C.Z)(B,A)}return null}},49833:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return w}});var C=B(19067),I=B(44321);function E(){return(E=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q0?{x:A.changedTouches[0].clientX,y:A.changedTouches[0].clientY}:E({},g);if((0,I.N5)(A))return{x:A.clientX,y:A.clientY};var Q=null==A?void 0:A.target,B=Q&&"getBoundingClientRect"in Q?Q.getBoundingClientRect():null;return B?{x:B.x+B.width/2,y:B.y+B.height/2}:E({},g)}(Q),w=(0,I.vZ)(A)?A.ownerSVGElement:A,D=(0,I.DY)(w)?w.getScreenCTM():null;if((0,I.r4)(w)&&D){var c=w.createSVGPoint();return c.x=B.x,c.y=B.y,c=c.matrixTransform(D.inverse()),new C.Z({x:c.x,y:c.y})}var M=A.getBoundingClientRect();return new C.Z({x:B.x-M.left-A.clientLeft,y:B.y-M.top-A.clientTop})}},44321:function(A,Q,B){"use strict";function C(A){return!!A&&A instanceof Element}function I(A){return!!A&&(A instanceof SVGElement||"ownerSVGElement"in A)}function E(A){return!!A&&"createSVGPoint"in A}function g(A){return!!A&&"getScreenCTM"in A}function w(A){return!!A&&"changedTouches"in A}function D(A){return!!A&&"clientX"in A}function c(A){return!!A&&(A instanceof Event||"nativeEvent"in A&&A.nativeEvent instanceof Event)}B.d(Q,{DY:function(){return g},N5:function(){return D},cO:function(){return c},kK:function(){return C},r4:function(){return E},vZ:function(){return I},z6:function(){return w}})},19067:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return C}});var C=function(){function A(A){var Q=A.x,B=A.y;this.x=0,this.y=0,this.x=void 0===Q?0:Q,this.y=void 0===B?0:B}var Q=A.prototype;return Q.value=function(){return{x:this.x,y:this.y}},Q.toArray=function(){return[this.x,this.y]},A}()},61305:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{Point:function(){return C.Z},subtractPoints:function(){return E},sumPoints:function(){return I}});var C=B(19067);function I(A,Q){return new C.Z({x:A.x+Q.x,y:A.y+Q.y})}function E(A,Q){return new C.Z({x:A.x-Q.x,y:A.y-Q.y})}},47440:function(A,Q,B){"use strict";Q.Z=function(A){var Q=A.from,B=void 0===Q?{x:0,y:0}:Q,g=A.to,D=void 0===g?{x:1,y:1}:g,c=A.fill,M=A.className,s=A.innerRef,y=function(A,Q){if(null==A)return{};var B,C,I={},E=Object.keys(A);for(C=0;C=0||(I[B]=A[B]);return I}(A,E),n=B.x===D.x||B.y===D.y;return C.default.createElement("line",w({ref:s,className:(0,I.default)("visx-line",M),x1:B.x,y1:B.y,x2:D.x,y2:D.y,fill:void 0===c?"transparent":c,shapeRendering:n?"crispEdges":"auto"},y))};var C=g(B(2784)),I=g(B(72779)),E=["from","to","fill","className","innerRef"];function g(A){return A&&A.__esModule?A:{default:A}}function w(){return(w=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q=200&&A<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};E.forEach(["delete","get","head"],function(A){y.headers[A]={}}),E.forEach(["post","put","patch"],function(A){y.headers[A]=E.merge(M)}),A.exports=y},98560:function(A){"use strict";A.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(A){A.exports={version:"0.27.2"}},73644:function(A){"use strict";A.exports=function(A,Q){return function(){for(var B=Array(arguments.length),C=0;C=0)&&("set-cookie"===Q?g[Q]=(g[Q]?g[Q]:[]).concat([B]):g[Q]=g[Q]?g[Q]+", "+B:B)}),g}},10738:function(A){"use strict";A.exports=function(A){var Q=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return Q&&Q[1]||""}},70783:function(A){"use strict";A.exports=function(A){return function(Q){return A.apply(null,Q)}}},49027:function(A,Q,B){"use strict";var C=B(48834).lW,I=B(93044);A.exports=function(A,Q){Q=Q||new FormData;var B=[];function E(A){return null===A?"":I.isDate(A)?A.toISOString():I.isArrayBuffer(A)||I.isTypedArray(A)?"function"==typeof Blob?new Blob([A]):C.from(A):A}return!function A(C,g){if(I.isPlainObject(C)||I.isArray(C)){if(-1!==B.indexOf(C))throw Error("Circular reference detected in "+g);B.push(C),I.forEach(C,function(B,C){if(!I.isUndefined(B)){var w,D=g?g+"."+C:C;if(B&&!g&&"object"==typeof B){if(I.endsWith(C,"{}"))B=JSON.stringify(B);else if(I.endsWith(C,"[]")&&(w=I.toArray(B))){w.forEach(function(A){I.isUndefined(A)||Q.append(D,E(A))});return}}A(B,D)}}),B.pop()}else Q.append(g,E(C))}(A),Q}},17525:function(A,Q,B){"use strict";var C=B(29241).version,I=B(21218),E={};["object","boolean","number","function","string","symbol"].forEach(function(A,Q){E[A]=function(B){return typeof B===A||"a"+(Q<1?"n ":" ")+A}});var g={};E.transitional=function(A,Q,B){function E(A,Q){return"[Axios v"+C+"] Transitional option '"+A+"'"+Q+(B?". "+B:"")}return function(B,C,w){if(!1===A)throw new I(E(C," has been removed"+(Q?" in "+Q:"")),I.ERR_DEPRECATED);return Q&&!g[C]&&(g[C]=!0,console.warn(E(C," has been deprecated since v"+Q+" and will be removed in the near future"))),!A||A(B,C,w)}},A.exports={assertOptions:function(A,Q,B){if("object"!=typeof A)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);for(var C=Object.keys(A),E=C.length;E-- >0;){var g=C[E],w=Q[g];if(w){var D=A[g],c=void 0===D||w(D,g,A);if(!0!==c)throw new I("option "+g+" must be "+c,I.ERR_BAD_OPTION_VALUE);continue}if(!0!==B)throw new I("Unknown option "+g,I.ERR_BAD_OPTION)}},validators:E}},93044:function(A,Q,B){"use strict";var C,I,E=B(73644),g=Object.prototype.toString,w=(C=Object.create(null),function(A){var Q=g.call(A);return C[Q]||(C[Q]=Q.slice(8,-1).toLowerCase())});function D(A){return A=A.toLowerCase(),function(Q){return w(Q)===A}}function c(A){return Array.isArray(A)}function M(A){return void 0===A}var s=D("ArrayBuffer");function y(A){return null!==A&&"object"==typeof A}function n(A){if("object"!==w(A))return!1;var Q=Object.getPrototypeOf(A);return null===Q||Q===Object.prototype}var h=D("Date"),k=D("File"),K=D("Blob"),t=D("FileList");function U(A){return"[object Function]"===g.call(A)}var L=D("URLSearchParams");function i(A,Q){if(null!=A){if("object"!=typeof A&&(A=[A]),c(A))for(var B=0,C=A.length;B0;)g[E=C[I]]||(Q[E]=A[E],g[E]=!0);A=Object.getPrototypeOf(A)}while(A&&(!B||B(A,Q))&&A!==Object.prototype);return Q},kindOf:w,kindOfTest:D,endsWith:function(A,Q,B){A=String(A),(void 0===B||B>A.length)&&(B=A.length),B-=Q.length;var C=A.indexOf(Q,B);return -1!==C&&C===B},toArray:function(A){if(!A)return null;var Q=A.length;if(M(Q))return null;for(var B=Array(Q);Q-- >0;)B[Q]=A[Q];return B},isTypedArray:G,isFileList:t}},82294:function(A){"use strict";function Q(A,Q,I){A instanceof RegExp&&(A=B(A,I)),Q instanceof RegExp&&(Q=B(Q,I));var E=C(A,Q,I);return E&&{start:E[0],end:E[1],pre:I.slice(0,E[0]),body:I.slice(E[0]+A.length,E[1]),post:I.slice(E[1]+Q.length)}}function B(A,Q){var B=Q.match(A);return B?B[0]:null}function C(A,Q,B){var C,I,E,g,w,D=B.indexOf(A),c=B.indexOf(Q,D+1),M=D;if(D>=0&&c>0){if(A===Q)return[D,c];for(C=[],E=B.length;M>=0&&!w;)M==D?(C.push(M),D=B.indexOf(A,M+1)):1==C.length?w=[C.pop(),c]:((I=C.pop())=0?D:c;C.length&&(w=[E,g])}return w}A.exports=Q,Q.range=C},95766:function(A,Q){"use strict";Q.byteLength=function(A){var Q=D(A),B=Q[0],C=Q[1];return(B+C)*3/4-C},Q.toByteArray=function(A){var Q,B,E=D(A),g=E[0],w=E[1],c=new I((g+w)*3/4-w),M=0,s=w>0?g-4:g;for(B=0;B>16&255,c[M++]=Q>>8&255,c[M++]=255&Q;return 2===w&&(Q=C[A.charCodeAt(B)]<<2|C[A.charCodeAt(B+1)]>>4,c[M++]=255&Q),1===w&&(Q=C[A.charCodeAt(B)]<<10|C[A.charCodeAt(B+1)]<<4|C[A.charCodeAt(B+2)]>>2,c[M++]=Q>>8&255,c[M++]=255&Q),c},Q.fromByteArray=function(A){for(var Q,C=A.length,I=C%3,E=[],g=0,w=C-I;g>18&63]+B[I>>12&63]+B[I>>6&63]+B[63&I]);return E.join("")}(A,g,g+16383>w?w:g+16383));return 1===I?E.push(B[(Q=A[C-1])>>2]+B[Q<<4&63]+"=="):2===I&&E.push(B[(Q=(A[C-2]<<8)+A[C-1])>>10]+B[Q>>4&63]+B[Q<<2&63]+"="),E.join("")};for(var B=[],C=[],I="undefined"!=typeof Uint8Array?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,w=E.length;g0)throw Error("Invalid string. Length must be a multiple of 4");var B=A.indexOf("=");-1===B&&(B=Q);var C=B===Q?0:4-B%4;return[B,C]}C["-".charCodeAt(0)]=62,C["_".charCodeAt(0)]=63},6391:function(A,Q,B){var C;!function(I){"use strict";var E,g=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,w=Math.ceil,D=Math.floor,c="[BigNumber Error] ",M=c+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function y(A){var Q=0|A;return A>0||A===Q?Q:Q-1}function n(A){for(var Q,B,C=1,I=A.length,E=A[0]+"";Cc^B?1:-1;for(g=0,w=(D=I.length)<(c=E.length)?D:c;gE[g]^B?1:-1;return D==c?0:D>c^B?1:-1}function k(A,Q,B,C){if(AB||A!==D(A))throw Error(c+(C||"Argument")+("number"==typeof A?AB?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function K(A){var Q=A.c.length-1;return y(A.e/14)==Q&&A.c[Q]%2!=0}function t(A,Q){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(Q<0?"e":"e+")+Q}function U(A,Q,B){var C,I;if(Q<0){for(I=B+".";++Q;I+=B);A=I+A}else if(C=A.length,++Q>C){for(I=B,Q-=C;--Q;I+=B);A+=I}else Ql?n.c=n.e=null:A.e=10;w/=10,E++);E>l?n.c=n.e=null:(n.e=E,n.c=[A]);return}y=String(A)}else{if(!g.test(y=String(A)))return r(n,y,c);n.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(E=y.indexOf("."))>-1&&(y=y.replace(".","")),(w=y.search(/e/i))>0?(E<0&&(E=w),E+=+y.slice(w+1),y=y.substring(0,w)):E<0&&(E=y.length)}else{if(k(Q,2,u.length,"Base"),10==Q&&R)return T(n=new j(A),N+n.e+1,e);if(y=String(A),c="number"==typeof A){if(0*A!=0)return r(n,y,c,Q);if(n.s=1/A<0?(y=y.slice(1),-1):1,j.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(M+A)}else n.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(B=u.slice(0,Q),E=w=0,s=y.length;wB.indexOf(C=y.charAt(w))){if("."==C){if(w>E){E=s;continue}}else if(!I&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){I=!0,w=-1,E=0;continue}return r(n,String(A),c,Q)}c=!1,(E=(y=p(y,Q,10,n.s)).indexOf("."))>-1?y=y.replace(".",""):E=y.length}for(w=0;48===y.charCodeAt(w);w++);for(s=y.length;48===y.charCodeAt(--s););if(y=y.slice(w,++s)){if(s-=w,c&&j.DEBUG&&s>15&&(A>9007199254740991||A!==D(A)))throw Error(M+n.s*A);if((E=E-w-1)>l)n.c=n.e=null;else if(E=S)?t(D,g):U(D,g,"0");else if(E=(A=T(new j(A),Q,B)).e,w=(D=n(A.c)).length,1==C||2==C&&(Q<=E||E<=J)){for(;ww){if(--Q>0)for(D+=".";Q--;D+="0");}else if((Q+=E-w)>0)for(E+1==w&&(D+=".");Q--;D+="0");return A.s<0&&I?"-"+D:D}function m(A,Q){for(var B,C=1,I=new j(A[0]);C=10;I/=10,C++);return(B=C+14*B-1)>l?A.c=A.e=null:B=10;c/=10,I++);if((E=Q-I)<0)E+=14,g=Q,n=(M=h[y=0])/s[I-g-1]%10|0;else if((y=w((E+1)/14))>=h.length){if(C){for(;h.length<=y;h.push(0));M=n=0,I=1,E%=14,g=E-14+1}else break A}else{for(I=1,M=c=h[y];c>=10;c/=10,I++);E%=14,n=(g=E-14+I)<0?0:M/s[I-g-1]%10|0}if(C=C||Q<0||null!=h[y+1]||(g<0?M:M%s[I-g-1]),C=B<4?(n||C)&&(0==B||B==(A.s<0?3:2)):n>5||5==n&&(4==B||C||6==B&&(E>0?g>0?M/s[I-g]:0:h[y-1])%10&1||B==(A.s<0?8:7)),Q<1||!h[0])return h.length=0,C?(Q-=A.e+1,h[0]=s[(14-Q%14)%14],A.e=-Q||0):h[0]=A.e=0,A;if(0==E?(h.length=y,c=1,y--):(h.length=y+1,c=s[14-E],h[y]=g>0?D(M/s[I-g]%s[g])*c:0),C)for(;;){if(0==y){for(E=1,g=h[0];g>=10;g/=10,E++);for(g=h[0]+=c,c=1;g>=10;g/=10,c++);E!=c&&(A.e++,1e14==h[0]&&(h[0]=1));break}if(h[y]+=c,1e14!=h[y])break;h[y--]=0,c=1}for(E=h.length;0===h[--E];h.pop());}A.e>l?A.c=A.e=null:A.e=S?t(Q,B):U(Q,B,"0"),A.s<0?"-"+Q:Q)}return j.clone=A,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(A){var Q,B;if(null!=A){if("object"==typeof A){if(A.hasOwnProperty(Q="DECIMAL_PLACES")&&(k(B=A[Q],0,1e9,Q),N=B),A.hasOwnProperty(Q="ROUNDING_MODE")&&(k(B=A[Q],0,8,Q),e=B),A.hasOwnProperty(Q="EXPONENTIAL_AT")&&((B=A[Q])&&B.pop?(k(B[0],-1e9,0,Q),k(B[1],0,1e9,Q),J=B[0],S=B[1]):(k(B,-1e9,1e9,Q),J=-(S=B<0?-B:B))),A.hasOwnProperty(Q="RANGE")){if((B=A[Q])&&B.pop)k(B[0],-1e9,-1,Q),k(B[1],1,1e9,Q),F=B[0],l=B[1];else if(k(B,-1e9,1e9,Q),B)F=-(l=B<0?-B:B);else throw Error(c+Q+" cannot be zero: "+B)}if(A.hasOwnProperty(Q="CRYPTO")){if(!!(B=A[Q])===B){if(B){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Y=B;else throw Y=!B,Error(c+"crypto unavailable")}else Y=B}else throw Error(c+Q+" not true or false: "+B)}if(A.hasOwnProperty(Q="MODULO_MODE")&&(k(B=A[Q],0,9,Q),H=B),A.hasOwnProperty(Q="POW_PRECISION")&&(k(B=A[Q],0,1e9,Q),f=B),A.hasOwnProperty(Q="FORMAT")){if("object"==typeof(B=A[Q]))d=B;else throw Error(c+Q+" not an object: "+B)}if(A.hasOwnProperty(Q="ALPHABET")){if("string"!=typeof(B=A[Q])||/^.?$|[+\-.\s]|(.).*\1/.test(B))throw Error(c+Q+" invalid: "+B);R="0123456789"==B.slice(0,10),u=B}}else throw Error(c+"Object expected: "+A)}return{DECIMAL_PLACES:N,ROUNDING_MODE:e,EXPONENTIAL_AT:[J,S],RANGE:[F,l],CRYPTO:Y,MODULO_MODE:H,POW_PRECISION:f,FORMAT:d,ALPHABET:u}},j.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!j.DEBUG)return!0;var Q,B,C=A.c,I=A.e,E=A.s;A:if("[object Array]"==({}).toString.call(C)){if((1===E||-1===E)&&I>=-1e9&&I<=1e9&&I===D(I)){if(0===C[0]){if(0===I&&1===C.length)return!0;break A}if((Q=(I+1)%14)<1&&(Q+=14),String(C[0]).length==Q){for(Q=0;Q=1e14||B!==D(B))break A;if(0!==B)return!0}}}else if(null===C&&null===I&&(null===E||1===E||-1===E))return!0;throw Error(c+"Invalid BigNumber: "+A)},j.maximum=j.max=function(){return m(arguments,a.lt)},j.minimum=j.min=function(){return m(arguments,a.gt)},j.random=(B=9007199254740992*Math.random()&2097151?function(){return D(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(A){var Q,C,I,E,g,M=0,y=[],n=new j(o);if(null==A?A=N:k(A,0,1e9),E=w(A/14),Y){if(crypto.getRandomValues){for(Q=crypto.getRandomValues(new Uint32Array(E*=2));M>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),Q[M]=C[0],Q[M+1]=C[1]):(y.push(g%1e14),M+=2);M=E/2}else if(crypto.randomBytes){for(Q=crypto.randomBytes(E*=7);M=9e15?crypto.randomBytes(7).copy(Q,M):(y.push(g%1e14),M+=7);M=E/7}else throw Y=!1,Error(c+"crypto unavailable")}if(!Y)for(;M=10;g/=10,M++);M<14&&(I-=14-M)}return n.e=I,n.c=y,n}),j.sum=function(){for(var A=1,Q=arguments,B=new j(Q[0]);AB-1&&(null==g[I+1]&&(g[I+1]=0),g[I+1]+=g[I]/B|0,g[I]%=B)}return g.reverse()}return function(B,C,I,E,g){var w,D,c,M,s,y,h,k,K=B.indexOf("."),t=N,L=e;for(K>=0&&(M=f,f=0,B=B.replace(".",""),y=(k=new j(C)).pow(B.length-K),f=M,k.c=Q(U(n(y.c),y.e,"0"),10,I,A),k.e=k.c.length),c=M=(h=Q(B,C,I,g?(w=u,A):(w=A,u))).length;0==h[--M];h.pop());if(!h[0])return w.charAt(0);if(K<0?--c:(y.c=h,y.e=c,y.s=E,h=(y=G(y,k,t,L,I)).c,s=y.r,c=y.e),K=h[D=c+t+1],M=I/2,s=s||D<0||null!=h[D+1],s=L<4?(null!=K||s)&&(0==L||L==(y.s<0?3:2)):K>M||K==M&&(4==L||s||6==L&&1&h[D-1]||L==(y.s<0?8:7)),D<1||!h[0])B=s?U(w.charAt(1),-t,w.charAt(0)):w.charAt(0);else{if(h.length=D,s)for(--I;++h[--D]>I;)h[D]=0,D||(++c,h=[1].concat(h));for(M=h.length;!h[--M];);for(K=0,B="";K<=M;B+=w.charAt(h[K++]));B=U(B,c,w.charAt(0))}return B}}(),G=function(){function A(A,Q,B){var C,I,E,g,w=0,D=A.length,c=Q%1e7,M=Q/1e7|0;for(A=A.slice();D--;)C=M*(E=A[D]%1e7)+(g=A[D]/1e7|0)*c,w=((I=c*E+C%1e7*1e7+w)/B|0)+(C/1e7|0)+M*g,A[D]=I%B;return w&&(A=[w].concat(A)),A}function Q(A,Q,B,C){var I,E;if(B!=C)E=B>C?1:-1;else for(I=E=0;IQ[I]?1:-1;break}return E}function B(A,Q,B,C){for(var I=0;B--;)A[B]-=I,I=A[B]1;A.splice(0,1));}return function(C,I,E,g,w){var c,M,s,n,h,k,K,t,U,L,i,G,p,r,a,o,N,e=C.s==I.s?1:-1,J=C.c,S=I.c;if(!J||!J[0]||!S||!S[0])return new j(C.s&&I.s&&(J?!S||J[0]!=S[0]:S)?J&&0==J[0]||!S?0*e:e/0:NaN);for(U=(t=new j(e)).c=[],e=E+(M=C.e-I.e)+1,w||(w=1e14,M=y(C.e/14)-y(I.e/14),e=e/14|0),s=0;S[s]==(J[s]||0);s++);if(S[s]>(J[s]||0)&&M--,e<0)U.push(1),n=!0;else{for(r=J.length,o=S.length,s=0,e+=2,(h=D(w/(S[0]+1)))>1&&(S=A(S,h,w),J=A(J,h,w),o=S.length,r=J.length),p=o,i=(L=J.slice(0,o)).length;i=w/2&&a++;do{if(h=0,(c=Q(S,L,o,i))<0){if(G=L[0],o!=i&&(G=G*w+(L[1]||0)),(h=D(G/a))>1)for(h>=w&&(h=w-1),K=(k=A(S,h,w)).length,i=L.length;1==Q(k,L,K,i);)h--,B(k,oQ(S,L,o,i);)h++,B(L,o=10;e/=10,s++);T(t,E+(t.e=s+14*M-1)+1,g,n)}else t.e=M,t.r=+n;return t}}(),C=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,E=/^\.([^.]+)$/,L=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(A,Q,B,g){var w,D=B?Q:Q.replace(i,"");if(L.test(D))A.s=isNaN(D)?null:D<0?-1:1;else{if(!B&&(D=D.replace(C,function(A,Q,B){return w="x"==(B=B.toLowerCase())?16:"b"==B?2:8,g&&g!=w?A:Q}),g&&(w=g,D=D.replace(I,"$1").replace(E,"0.$1")),Q!=D))return new j(D,w);if(j.DEBUG)throw Error(c+"Not a"+(g?" base "+g:"")+" number: "+Q);A.s=null}A.c=A.e=null},a.absoluteValue=a.abs=function(){var A=new j(this);return A.s<0&&(A.s=1),A},a.comparedTo=function(A,Q){return h(this,new j(A,Q))},a.decimalPlaces=a.dp=function(A,Q){var B,C,I;if(null!=A)return k(A,0,1e9),null==Q?Q=e:k(Q,0,8),T(new j(this),A+this.e+1,Q);if(!(B=this.c))return null;if(C=((I=B.length-1)-y(this.e/14))*14,I=B[I])for(;I%10==0;I/=10,C--);return C<0&&(C=0),C},a.dividedBy=a.div=function(A,Q){return G(this,new j(A,Q),N,e)},a.dividedToIntegerBy=a.idiv=function(A,Q){return G(this,new j(A,Q),0,1)},a.exponentiatedBy=a.pow=function(A,Q){var B,C,I,E,g,M,s,y,n,h=this;if((A=new j(A)).c&&!A.isInteger())throw Error(c+"Exponent not an integer: "+P(A));if(null!=Q&&(Q=new j(Q)),M=A.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!A.c||!A.c[0])return n=new j(Math.pow(+P(h),M?2-K(A):+P(A))),Q?n.mod(Q):n;if(s=A.s<0,Q){if(Q.c?!Q.c[0]:!Q.s)return new j(NaN);(C=!s&&h.isInteger()&&Q.isInteger())&&(h=h.mod(Q))}else{if(A.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||M&&h.c[1]>=24e7:h.c[0]<8e13||M&&h.c[0]<=9999975e7)))return E=h.s<0&&K(A)?-0:0,h.e>-1&&(E=1/E),new j(s?1/E:E);f&&(E=w(f/14+2))}for(M?(B=new j(.5),s&&(A.s=1),y=K(A)):y=(I=Math.abs(+P(A)))%2,n=new j(o);;){if(y){if(!(n=n.times(h)).c)break;E?n.c.length>E&&(n.c.length=E):C&&(n=n.mod(Q))}if(I){if(0===(I=D(I/2)))break;y=I%2}else if(T(A=A.times(B),A.e+1,1),A.e>14)y=K(A);else{if(0==(I=+P(A)))break;y=I%2}h=h.times(h),E?h.c&&h.c.length>E&&(h.c.length=E):C&&(h=h.mod(Q))}return C?n:(s&&(n=o.div(n)),Q?n.mod(Q):E?T(n,f,e,g):n)},a.integerValue=function(A){var Q=new j(this);return null==A?A=e:k(A,0,8),T(Q,Q.e+1,A)},a.isEqualTo=a.eq=function(A,Q){return 0===h(this,new j(A,Q))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(A,Q){return h(this,new j(A,Q))>0},a.isGreaterThanOrEqualTo=a.gte=function(A,Q){return 1===(Q=h(this,new j(A,Q)))||0===Q},a.isInteger=function(){return!!this.c&&y(this.e/14)>this.c.length-2},a.isLessThan=a.lt=function(A,Q){return 0>h(this,new j(A,Q))},a.isLessThanOrEqualTo=a.lte=function(A,Q){return -1===(Q=h(this,new j(A,Q)))||0===Q},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(A,Q){var B,C,I,E,g=this.s;if(Q=(A=new j(A,Q)).s,!g||!Q)return new j(NaN);if(g!=Q)return A.s=-Q,this.plus(A);var w=this.e/14,D=A.e/14,c=this.c,M=A.c;if(!w||!D){if(!c||!M)return c?(A.s=-Q,A):new j(M?this:NaN);if(!c[0]||!M[0])return M[0]?(A.s=-Q,A):new j(c[0]?this:3==e?-0:0)}if(w=y(w),D=y(D),c=c.slice(),g=w-D){for((E=g<0)?(g=-g,I=c):(D=w,I=M),I.reverse(),Q=g;Q--;I.push(0));I.reverse()}else for(C=(E=(g=c.length)<(Q=M.length))?g:Q,g=Q=0;Q0)for(;Q--;c[B++]=0);for(Q=1e14-1;C>g;){if(c[--C]=0;){for(B=0,n=t[I]%1e7,h=t[I]/1e7|0,E=I+(g=D);E>I;)w=h*(c=K[--g]%1e7)+(M=K[g]/1e7|0)*n,B=((c=n*c+w%1e7*1e7+k[E]+B)/1e14|0)+(w/1e7|0)+h*M,k[E--]=c%1e14;k[E]=B}return B?++C:k.splice(0,1),Z(A,k,C)},a.negated=function(){var A=new j(this);return A.s=-A.s||null,A},a.plus=function(A,Q){var B,C=this.s;if(Q=(A=new j(A,Q)).s,!C||!Q)return new j(NaN);if(C!=Q)return A.s=-Q,this.minus(A);var I=this.e/14,E=A.e/14,g=this.c,w=A.c;if(!I||!E){if(!g||!w)return new j(C/0);if(!g[0]||!w[0])return w[0]?A:new j(g[0]?this:0*C)}if(I=y(I),E=y(E),g=g.slice(),C=I-E){for(C>0?(E=I,B=w):(C=-C,B=g),B.reverse();C--;B.push(0));B.reverse()}for((C=g.length)-(Q=w.length)<0&&(B=w,w=g,g=B,Q=C),C=0;Q;)C=(g[--Q]=g[Q]+w[Q]+C)/1e14|0,g[Q]=1e14===g[Q]?0:g[Q]%1e14;return C&&(g=[C].concat(g),++E),Z(A,g,E)},a.precision=a.sd=function(A,Q){var B,C,I;if(null!=A&&!!A!==A)return k(A,1,1e9),null==Q?Q=e:k(Q,0,8),T(new j(this),A,Q);if(!(B=this.c))return null;if(C=14*(I=B.length-1)+1,I=B[I]){for(;I%10==0;I/=10,C--);for(I=B[0];I>=10;I/=10,C++);}return A&&this.e+1>C&&(C=this.e+1),C},a.shiftedBy=function(A){return k(A,-9007199254740991,9007199254740991),this.times("1e"+A)},a.squareRoot=a.sqrt=function(){var A,Q,B,C,I,E=this.c,g=this.s,w=this.e,D=N+4,c=new j("0.5");if(1!==g||!E||!E[0])return new j(!g||g<0&&(!E||E[0])?NaN:E?this:1/0);if(0==(g=Math.sqrt(+P(this)))||g==1/0?(((Q=n(E)).length+w)%2==0&&(Q+="0"),g=Math.sqrt(+Q),w=y((w+1)/2)-(w<0||w%2),B=new j(Q=g==1/0?"5e"+w:(Q=g.toExponential()).slice(0,Q.indexOf("e")+1)+w)):B=new j(g+""),B.c[0]){for((g=(w=B.e)+D)<3&&(g=0);;)if(I=B,B=c.times(I.plus(G(this,I,D,1))),n(I.c).slice(0,g)===(Q=n(B.c)).slice(0,g)){if(B.e0&&h>0){for(I=h%g||g,M=n.substr(0,I);I0&&(M+=D+n.slice(I)),y&&(M="-"+M)}C=s?M+(B.decimalSeparator||"")+((w=+B.fractionGroupSize)?s.replace(RegExp("\\d{"+w+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):s):M}return(B.prefix||"")+C+(B.suffix||"")},a.toFraction=function(A){var Q,B,C,I,E,g,w,D,M,y,h,k,K=this.c;if(null!=A&&(!(w=new j(A)).isInteger()&&(w.c||1!==w.s)||w.lt(o)))throw Error(c+"Argument "+(w.isInteger()?"out of range: ":"not an integer: ")+P(w));if(!K)return new j(this);for(Q=new j(o),M=B=new j(o),C=D=new j(o),k=n(K),E=Q.e=k.length-this.e-1,Q.c[0]=s[(g=E%14)<0?14+g:g],A=!A||w.comparedTo(Q)>0?E>0?Q:M:w,g=l,l=1/0,w=new j(k),D.c[0]=0;y=G(w,Q,0,1),1!=(I=B.plus(y.times(C))).comparedTo(A);)B=C,C=I,M=D.plus(y.times(I=M)),D=I,Q=w.minus(y.times(I=Q)),w=I;return I=G(A.minus(B),C,0,1),D=D.plus(I.times(M)),B=B.plus(I.times(C)),D.s=M.s=this.s,E*=2,h=1>G(M,C,E,e).minus(this).abs().comparedTo(G(D,B,E,e).minus(this).abs())?[M,C]:[D,B],l=g,h},a.toNumber=function(){return+P(this)},a.toPrecision=function(A,Q){return null!=A&&k(A,1,1e9),b(this,A,Q,2)},a.toString=function(A){var Q,B=this,C=B.s,I=B.e;return null===I?C?(Q="Infinity",C<0&&(Q="-"+Q)):Q="NaN":(null==A?Q=I<=J||I>=S?t(n(B.c),I):U(n(B.c),I,"0"):10===A&&R?Q=U(n((B=T(new j(B),N+I+1,e)).c),B.e,"0"):(k(A,2,u.length,"Base"),Q=p(U(n(B.c),I,"0"),10,A,C,!0)),C<0&&B.c[0]&&(Q="-"+Q)),Q},a.valueOf=a.toJSON=function(){return P(this)},a._isBigNumber=!0,null!=Q&&j.set(Q),j}()).default=E.BigNumber=E,void 0!==(C=(function(){return E}).call(Q,B,Q,A))&&(A.exports=C)}(0)},70651:function(A,Q,B){let C=B(7967);function I(A,Q,B){let C=A[Q]+A[B],I=A[Q+1]+A[B+1];C>=4294967296&&I++,A[Q]=C,A[Q+1]=I}function E(A,Q,B,C){let I=A[Q]+B;B<0&&(I+=4294967296);let E=A[Q+1]+C;I>=4294967296&&E++,A[Q]=I,A[Q+1]=E}function g(A,Q){return A[Q]^A[Q+1]<<8^A[Q+2]<<16^A[Q+3]<<24}function w(A,Q,B,C,g,w){let D=s[g],c=s[g+1],y=s[w],n=s[w+1];I(M,A,Q),E(M,A,D,c);let h=M[C]^M[A],k=M[C+1]^M[A+1];M[C]=k,M[C+1]=h,I(M,B,C),h=M[Q]^M[B],k=M[Q+1]^M[B+1],M[Q]=h>>>24^k<<8,M[Q+1]=k>>>24^h<<8,I(M,A,Q),E(M,A,y,n),h=M[C]^M[A],k=M[C+1]^M[A+1],M[C]=h>>>16^k<<16,M[C+1]=k>>>16^h<<16,I(M,B,C),h=M[Q]^M[B],k=M[Q+1]^M[B+1],M[Q]=k>>>31^h<<1,M[Q+1]=h>>>31^k<<1}let D=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=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(A){return 2*A})),M=new Uint32Array(32),s=new Uint32Array(32);function y(A,Q){let B=0;for(B=0;B<16;B++)M[B]=A.h[B],M[B+16]=D[B];for(M[24]=M[24]^A.t,M[25]=M[25]^A.t/4294967296,Q&&(M[28]=~M[28],M[29]=~M[29]),B=0;B<32;B++)s[B]=g(A.b,4*B);for(B=0;B<12;B++)w(0,8,16,24,c[16*B+0],c[16*B+1]),w(2,10,18,26,c[16*B+2],c[16*B+3]),w(4,12,20,28,c[16*B+4],c[16*B+5]),w(6,14,22,30,c[16*B+6],c[16*B+7]),w(0,10,20,30,c[16*B+8],c[16*B+9]),w(2,12,22,24,c[16*B+10],c[16*B+11]),w(4,14,16,26,c[16*B+12],c[16*B+13]),w(6,8,18,28,c[16*B+14],c[16*B+15]);for(B=0;B<16;B++)A.h[B]=A.h[B]^M[B]^M[B+16]}let n=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 h(A,Q,B,C){if(0===A||A>64)throw Error("Illegal output length, expected 0 < length <= 64");if(Q&&Q.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(B&&16!==B.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(C&&16!==C.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:A};n.fill(0),n[0]=A,Q&&(n[1]=Q.length),n[2]=1,n[3]=1,B&&n.set(B,32),C&&n.set(C,48);for(let A=0;A<16;A++)I.h[A]=D[A]^g(n,4*A);return Q&&(k(I,Q),I.c=128),I}function k(A,Q){for(let B=0;B>2]>>8*(3&B);return Q}function t(A,Q,B,I,E){B=B||64,A=C.normalizeInput(A),I&&(I=C.normalizeInput(I)),E&&(E=C.normalizeInput(E));let g=h(B,Q,I,E);return k(g,A),K(g)}A.exports={blake2b:t,blake2bHex:function(A,Q,B,I,E){let g=t(A,Q,B,I,E);return C.toHex(g)},blake2bInit:h,blake2bUpdate:k,blake2bFinal:K}},39962:function(A,Q,B){let C=B(7967);function I(A,Q,B,C,I,g){D[A]=D[A]+D[Q]+I,D[C]=E(D[C]^D[A],16),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],12),D[A]=D[A]+D[Q]+g,D[C]=E(D[C]^D[A],8),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],7)}function E(A,Q){return A>>>Q^A<<32-Q}let g=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),w=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]),D=new Uint32Array(16),c=new Uint32Array(16);function M(A,Q){let B=0;for(B=0;B<8;B++)D[B]=A.h[B],D[B+8]=g[B];for(D[12]^=A.t,D[13]^=A.t/4294967296,Q&&(D[14]=~D[14]),B=0;B<16;B++){var C,E;c[B]=(C=A.b)[E=4*B]^C[E+1]<<8^C[E+2]<<16^C[E+3]<<24}for(B=0;B<10;B++)I(0,4,8,12,c[w[16*B+0]],c[w[16*B+1]]),I(1,5,9,13,c[w[16*B+2]],c[w[16*B+3]]),I(2,6,10,14,c[w[16*B+4]],c[w[16*B+5]]),I(3,7,11,15,c[w[16*B+6]],c[w[16*B+7]]),I(0,5,10,15,c[w[16*B+8]],c[w[16*B+9]]),I(1,6,11,12,c[w[16*B+10]],c[w[16*B+11]]),I(2,7,8,13,c[w[16*B+12]],c[w[16*B+13]]),I(3,4,9,14,c[w[16*B+14]],c[w[16*B+15]]);for(B=0;B<8;B++)A.h[B]^=D[B]^D[B+8]}function s(A,Q){if(!(A>0&&A<=32))throw Error("Incorrect output length, should be in [1, 32]");let B=Q?Q.length:0;if(Q&&!(B>0&&B<=32))throw Error("Incorrect key length, should be in [1, 32]");let C={h:new Uint32Array(g),b:new Uint8Array(64),c:0,t:0,outlen:A};return C.h[0]^=16842752^B<<8^A,B>0&&(y(C,Q),C.c=64),C}function y(A,Q){for(let B=0;B>2]>>8*(3&B)&255;return Q}function h(A,Q,B){B=B||32,A=C.normalizeInput(A);let I=s(B,Q);return y(I,A),n(I)}A.exports={blake2s:h,blake2sHex:function(A,Q,B){let I=h(A,Q,B);return C.toHex(I)},blake2sInit:s,blake2sUpdate:y,blake2sFinal:n}},81395:function(A,Q,B){let C=B(70651),I=B(39962);A.exports={blake2b:C.blake2b,blake2bHex:C.blake2bHex,blake2bInit:C.blake2bInit,blake2bUpdate:C.blake2bUpdate,blake2bFinal:C.blake2bFinal,blake2s:I.blake2s,blake2sHex:I.blake2sHex,blake2sInit:I.blake2sInit,blake2sUpdate:I.blake2sUpdate,blake2sFinal:I.blake2sFinal}},7967:function(A){function Q(A){return(4294967296+A).toString(16).substring(1)}A.exports={normalizeInput:function(A){let Q;if(A instanceof Uint8Array)Q=A;else if("string"==typeof A)Q=new TextEncoder().encode(A);else throw Error("Input must be an string, Buffer or Uint8Array");return Q},toHex:function(A){return Array.prototype.map.call(A,function(A){return(A<16?"0":"")+A.toString(16)}).join("")},debugPrint:function(A,B,C){let I="\n"+A+" = ";for(let E=0;E2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');var Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return M(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);var B=0|h(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(S(A,Uint8Array)){var Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(S(A,ArrayBuffer)||A&&S(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(S(A,SharedArrayBuffer)||A&&S(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');var C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);var I=function(A){if(w.isBuffer(A)){var Q,B=0|n(A.length),C=g(B);return 0===C.length||A.copy(C,0,0,B),C}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function c(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function M(A){return c(A),g(A<0?0:0|n(A))}function s(A){for(var Q=A.length<0?0:0|n(A.length),B=g(Q),C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function h(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||S(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);var B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;for(var I=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return N(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return e(A).length;default:if(I)return C?-1:N(A).length;Q=(""+Q).toLowerCase(),I=!0}}function k(A,Q,B){var I,E,g=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){var C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);for(var I="",E=Q;E2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:U(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):U(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function U(A,Q,B,C,I){var E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function c(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){var M=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){for(var s=!0,y=0;y239?4:c>223?3:c>191?2:1;if(I+s<=B)switch(s){case 1:c<128&&(M=c);break;case 2:(192&(E=A[I+1]))==128&&(D=(31&c)<<6|63&E)>127&&(M=D);break;case 3:E=A[I+1],g=A[I+2],(192&E)==128&&(192&g)==128&&(D=(15&c)<<12|(63&E)<<6|63&g)>2047&&(D<55296||D>57343)&&(M=D);break;case 4:E=A[I+1],g=A[I+2],w=A[I+3],(192&E)==128&&(192&g)==128&&(192&w)==128&&(D=(15&c)<<18|(63&E)<<12|(63&g)<<6|63&w)>65535&&D<1114112&&(M=D)}null===M?(M=65533,s=1):M>65535&&(M-=65536,C.push(M>>>10&1023|55296),M=56320|1023&M),C.push(M),I+=s}return function(A){var Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);for(var B="",C=0;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function p(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function r(A,Q,B,C,E){return Q=+Q,B>>>=0,E||p(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function a(A,Q,B,C,E){return Q=+Q,B>>>=0,E||p(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.lW=w,Q.h2=50,w.TYPED_ARRAY_SUPPORT=function(){try{var A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(c(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return M(A)},w.allocUnsafeSlow=function(A){return M(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(S(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),S(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;for(var B=A.length,C=Q.length,I=0,E=Math.min(B,C);IC.length?w.from(E).copy(C,I):Uint8Array.prototype.set.call(C,E,I);else if(w.isBuffer(E))E.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=E.length}return C},w.byteLength=h,w.prototype._isBuffer=!0,w.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(S(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;for(var E=I-C,g=B-Q,D=Math.min(E,g),c=this.slice(C,I),M=A.slice(Q,B),s=0;s>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var I,E,g,w,D,c,M,s,y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var n=!1;;)switch(C){case"hex":return function(A,Q,B,C){B=Number(B)||0;var I=A.length-B;C?(C=Number(C))>I&&(C=I):C=I;var E=Q.length;C>E/2&&(C=E/2);for(var g=0;g>8,I.push(B%256),I.push(C);return I}(A,this.length-M),this,M,s);default:if(n)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),n=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){var B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A+--Q],I=1;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readIntLE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=Q,I=1,E=this[A+--C];C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readFloatLE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=1,g=0;for(this[Q]=255&A;++g>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=B-1,g=1;for(this[Q+E]=255&A;--E>=0&&(g*=256);)this[Q+E]=A/g&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=0,g=1,w=0;for(this[Q]=255&A;++E>0)-w&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=B-1,g=1,w=0;for(this[Q+E]=255&A;--E>=0&&(g*=256);)A<0&&0===w&&0!==this[Q+E+1]&&(w=1),this[Q+E]=(A/g>>0)-w&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeFloatLE=function(A,Q,B){return r(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return r(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return a(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return a(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function e(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(o,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function J(A,Q,B,C){for(var I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function S(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}var F=function(){for(var A="0123456789abcdef",Q=Array(256),B=0;B<16;++B)for(var C=16*B,I=0;I<16;++I)Q[C+I]=A[B]+A[I];return Q}()},72779:function(A,Q){var B;!function(){"use strict";var C={}.hasOwnProperty;function I(){for(var A=[],Q=0;Q0&&g.length>I&&!g.warned){g.warned=!0;var I,E,g,c=Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=A,c.type=Q,c.count=g.length,console&&console.warn&&console.warn(c)}return A}function M(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(A,Q,B){var C={fired:!1,wrapFn:void 0,target:A,type:Q,listener:B},I=M.bind(C);return I.listener=B,C.wrapFn=I,I}function y(A,Q,B){var C=A._events;if(void 0===C)return[];var I=C[Q];return void 0===I?[]:"function"==typeof I?B?[I.listener||I]:[I]:B?function(A){for(var Q=Array(A.length),B=0;B0&&(g=Q[0]),g instanceof Error)throw g;var g,w=Error("Unhandled error."+(g?" ("+g.message+")":""));throw w.context=g,w}var D=E[A];if(void 0===D)return!1;if("function"==typeof D)C(D,this,Q);else for(var c=D.length,M=h(D,c),B=0;B=0;E--)if(B[E]===Q||B[E].listener===Q){g=B[E].listener,I=E;break}if(I<0)return this;0===I?B.shift():function(A,Q){for(;Q+1=0;C--)this.removeListener(A,Q[C]);return this},E.prototype.listeners=function(A){return y(this,A,!0)},E.prototype.rawListeners=function(A){return y(this,A,!1)},E.listenerCount=function(A,Q){return"function"==typeof A.listenerCount?A.listenerCount(Q):n.call(A,Q)},E.prototype.listenerCount=n,E.prototype.eventNames=function(){return this._eventsCount>0?Q(this._events):[]}},73463:function(A,Q,B){"use strict";var C=B(73887),I={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},E={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};function D(A){return C.isMemo(A)?g:w[A.$$typeof]||I}w[C.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w[C.Memo]=g;var c=Object.defineProperty,M=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,n=Object.getPrototypeOf,h=Object.prototype;A.exports=function A(Q,B,C){if("string"!=typeof B){if(h){var I=n(B);I&&I!==h&&A(Q,I,C)}var g=M(B);s&&(g=g.concat(s(B)));for(var w=D(Q),k=D(B),K=0;K>1,M=-7,s=B?I-1:0,y=B?-1:1,n=A[Q+s];for(s+=y,E=n&(1<<-M)-1,n>>=-M,M+=w;M>0;E=256*E+A[Q+s],s+=y,M-=8);for(g=E&(1<<-M)-1,E>>=-M,M+=C;M>0;g=256*g+A[Q+s],s+=y,M-=8);if(0===E)E=1-c;else{if(E===D)return g?NaN:1/0*(n?-1:1);g+=Math.pow(2,C),E-=c}return(n?-1:1)*g*Math.pow(2,E-C)},Q.write=function(A,Q,B,C,I,E){var g,w,D,c=8*E-I-1,M=(1<>1,y=23===I?5960464477539062e-23:0,n=C?0:E-1,h=C?1:-1,k=Q<0||0===Q&&1/Q<0?1:0;for(isNaN(Q=Math.abs(Q))||Q===1/0?(w=isNaN(Q)?1:0,g=M):(g=Math.floor(Math.log(Q)/Math.LN2),Q*(D=Math.pow(2,-g))<1&&(g--,D*=2),g+s>=1?Q+=y/D:Q+=y*Math.pow(2,1-s),Q*D>=2&&(g++,D/=2),g+s>=M?(w=0,g=M):g+s>=1?(w=(Q*D-1)*Math.pow(2,I),g+=s):(w=Q*Math.pow(2,s-1)*Math.pow(2,I),g=0));I>=8;A[B+n]=255&w,n+=h,w/=256,I-=8);for(g=g<0;A[B+n]=255&g,n+=h,g/=256,c-=8);A[B+n-h]|=128*k}},39515:function(A,Q,B){var C=B(38761)(B(37772),"DataView");A.exports=C},89612:function(A,Q,B){var C=B(52118),I=B(96909),E=B(98138),g=B(4174),w=B(7942);function D(A){var Q=-1,B=null==A?0:A.length;for(this.clear();++QI?0:I+Q),(B=B>I?I:B)<0&&(B+=I),I=Q>B?0:B-Q>>>0,Q>>>=0;for(var E=Array(I);++C=I?A:C(A,Q,B)}},24019:function(A,Q,B){var C=B(37772)["__core-js_shared__"];A.exports=C},55463:function(A){A.exports=function(A){return function(Q,B,C){for(var I=-1,E=Object(Q),g=C(Q),w=g.length;w--;){var D=g[A?w:++I];if(!1===B(E[D],D,E))break}return Q}}},83126:function(A,Q,B){var C=B(23895),I=B(33880),E=B(8435),g=B(66188);A.exports=function(A){return function(Q){var B=I(Q=g(Q))?E(Q):void 0,w=B?B[0]:Q.charAt(0),D=B?C(B,1).join(""):Q.slice(1);return w[A]()+D}}},34311:function(A,Q,B){var C=B(81207),I=B(97329),E=B(11618),g=RegExp("['’]","g");A.exports=function(A){return function(Q){return C(E(I(Q).replace(g,"")),A,"")}}},61655:function(A,Q,B){var C=B(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"});A.exports=C},83043:function(A,Q,B){var C=B(38761),I=function(){try{var A=C(Object,"defineProperty");return A({},"",{}),A}catch(A){}}();A.exports=I},74871:function(A,Q,B){var C=B(45386),I=B(87064),E=B(59950);A.exports=function(A,Q,B,g,w,D){var c=1&B,M=A.length,s=Q.length;if(M!=s&&!(c&&s>M))return!1;var y=D.get(A),n=D.get(Q);if(y&&n)return y==Q&&n==A;var h=-1,k=!0,K=2&B?new C:void 0;for(D.set(A,Q),D.set(Q,A);++h-1&&A%1==0&&A-1}},94769:function(A,Q,B){var C=B(22218);A.exports=function(A,Q){var B=this.__data__,I=C(B,A);return I<0?(++this.size,B.push([A,Q])):B[I][1]=Q,this}},92411:function(A,Q,B){var C=B(89612),I=B(80235),E=B(10326);A.exports=function(){this.size=0,this.__data__={hash:new C,map:new(E||I),string:new C}}},36417:function(A,Q,B){var C=B(27937);A.exports=function(A){var Q=C(this,A).delete(A);return this.size-=Q?1:0,Q}},86928:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).get(A)}},79493:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).has(A)}},24150:function(A,Q,B){var C=B(27937);A.exports=function(A,Q){var B=C(this,A),I=B.size;return B.set(A,Q),this.size+=B.size==I?0:1,this}},75179:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A,C){B[++Q]=[C,A]}),B}},73477:function(A){A.exports=function(A,Q){return function(B){return null!=B&&B[A]===Q&&(void 0!==Q||A in Object(B))}}},77777:function(A,Q,B){var C=B(30733);A.exports=function(A){var Q=C(A,function(A){return 500===B.size&&B.clear(),A}),B=Q.cache;return Q}},99191:function(A,Q,B){var C=B(38761)(Object,"create");A.exports=C},54248:function(A,Q,B){var C=B(60241)(Object.keys,Object);A.exports=C},4146:function(A,Q,B){A=B.nmd(A);var C=B(51242),I=Q&&!Q.nodeType&&Q,E=I&&A&&!A.nodeType&&A,g=E&&E.exports===I&&C.process,w=function(){try{var A=E&&E.require&&E.require("util").types;if(A)return A;return g&&g.binding&&g.binding("util")}catch(A){}}();A.exports=w},37157:function(A){var Q=Object.prototype.toString;A.exports=function(A){return Q.call(A)}},60241:function(A){A.exports=function(A,Q){return function(B){return A(Q(B))}}},37772:function(A,Q,B){var C=B(51242),I="object"==typeof self&&self&&self.Object===Object&&self,E=C||I||Function("return this")();A.exports=E},52842:function(A){A.exports=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this}},52482:function(A){A.exports=function(A){return this.__data__.has(A)}},16909:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A){B[++Q]=A}),B}},15243:function(A,Q,B){var C=B(80235);A.exports=function(){this.__data__=new C,this.size=0}},72858:function(A){A.exports=function(A){var Q=this.__data__,B=Q.delete(A);return this.size=Q.size,B}},4417:function(A){A.exports=function(A){return this.__data__.get(A)}},8605:function(A){A.exports=function(A){return this.__data__.has(A)}},71418:function(A,Q,B){var C=B(80235),I=B(10326),E=B(96738);A.exports=function(A,Q){var B=this.__data__;if(B instanceof C){var g=B.__data__;if(!I||g.length<199)return g.push([A,Q]),this.size=++B.size,this;B=this.__data__=new E(g)}return B.set(A,Q),this.size=B.size,this}},8435:function(A,Q,B){var C=B(50217),I=B(33880),E=B(63344);A.exports=function(A){return I(A)?E(A):C(A)}},54452:function(A,Q,B){var C=B(77777),I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,g=C(function(A){var Q=[];return 46===A.charCodeAt(0)&&Q.push(""),A.replace(I,function(A,B,C,I){Q.push(C?I.replace(E,"$1"):B||A)}),Q});A.exports=g},33812:function(A,Q,B){var C=B(4795),I=1/0;A.exports=function(A){if("string"==typeof A||C(A))return A;var Q=A+"";return"0"==Q&&1/A==-I?"-0":Q}},87035:function(A){var Q=Function.prototype.toString;A.exports=function(A){if(null!=A){try{return Q.call(A)}catch(A){}try{return A+""}catch(A){}}return""}},63344:function(A){var Q="\ud800-\udfff",B="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",C="\ud83c[\udffb-\udfff]",I="[^"+Q+"]",E="(?:\ud83c[\udde6-\uddff]){2}",g="[\ud800-\udbff][\udc00-\udfff]",w="(?:"+B+"|"+C+")?",D="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[I,E,g].join("|")+")"+D+w+")*",M=RegExp(C+"(?="+C+")|(?:"+[I+B+"?",B,E,g,"["+Q+"]"].join("|")+")"+(D+w+c),"g");A.exports=function(A){return A.match(M)||[]}},75304:function(A){var Q="\ud800-\udfff",B="\\u2700-\\u27bf",C="a-z\\xdf-\\xf6\\xf8-\\xff",I="A-Z\\xc0-\\xd6\\xd8-\\xde",E="\\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",g="['’]",w="["+E+"]",D="["+C+"]",c="[^"+Q+E+"\\d+"+B+C+I+"]",M="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",y="["+I+"]",n="(?:"+D+"|"+c+")",h="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",K="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",t="[\\ufe0e\\ufe0f]?",U="(?:\\u200d(?:"+["[^"+Q+"]",M,s].join("|")+")"+t+K+")*",L="(?:"+["["+B+"]",M,s].join("|")+")"+(t+K+U),i=RegExp([y+"?"+D+"+"+h+"(?="+[w,y,"$"].join("|")+")","(?:"+y+"|"+c+")+"+k+"(?="+[w,y+n,"$"].join("|")+")",y+"?"+n+"+"+h,y+"+"+k,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",L].join("|"),"g");A.exports=function(A){return A.match(i)||[]}},96009:function(A,Q,B){var C=B(82108),I=B(34311)(function(A,Q,B){return Q=Q.toLowerCase(),A+(B?C(Q):Q)});A.exports=I},82108:function(A,Q,B){var C=B(66188),I=B(23779);A.exports=function(A){return I(C(A).toLowerCase())}},97329:function(A,Q,B){var C=B(61655),I=B(66188),E=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");A.exports=function(A){return(A=I(A))&&A.replace(E,C).replace(g,"")}},41225:function(A){A.exports=function(A,Q){return A===Q||A!=A&&Q!=Q}},72579:function(A,Q,B){var C=B(13324);A.exports=function(A,Q,B){var I=null==A?void 0:C(A,Q);return void 0===I?B:I}},93352:function(A,Q,B){var C=B(32726),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},95041:function(A,Q,B){var C=B(20187),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},23059:function(A){A.exports=function(A){return A}},79631:function(A,Q,B){var C=B(15183),I=B(15125),E=Object.prototype,g=E.hasOwnProperty,w=E.propertyIsEnumerable,D=C(function(){return arguments}())?C:function(A){return I(A)&&g.call(A,"callee")&&!w.call(A,"callee")};A.exports=D},86152:function(A){var Q=Array.isArray;A.exports=Q},67878:function(A,Q,B){var C=B(61049),I=B(61158);A.exports=function(A){return null!=A&&I(A.length)&&!C(A)}},73226:function(A,Q,B){A=B.nmd(A);var C=B(37772),I=B(36330),E=Q&&!Q.nodeType&&Q,g=E&&A&&!A.nodeType&&A,w=g&&g.exports===E?C.Buffer:void 0,D=w?w.isBuffer:void 0;A.exports=D||I},61049:function(A,Q,B){var C=B(53366),I=B(29259);A.exports=function(A){if(!I(A))return!1;var Q=C(A);return"[object Function]"==Q||"[object GeneratorFunction]"==Q||"[object AsyncFunction]"==Q||"[object Proxy]"==Q}},61158:function(A){A.exports=function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991}},29259:function(A){A.exports=function(A){var Q=typeof A;return null!=A&&("object"==Q||"function"==Q)}},15125:function(A){A.exports=function(A){return null!=A&&"object"==typeof A}},4795:function(A,Q,B){var C=B(53366),I=B(15125);A.exports=function(A){return"symbol"==typeof A||I(A)&&"[object Symbol]"==C(A)}},77598:function(A,Q,B){var C=B(35522),I=B(47826),E=B(4146),g=E&&E.isTypedArray,w=g?I(g):C;A.exports=w},90249:function(A,Q,B){var C=B(1634),I=B(86411),E=B(67878);A.exports=function(A){return E(A)?C(A):I(A)}},19950:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,Q(A,I,E),A)}),B}},34519:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,I,Q(A,I,E))}),B}},30733:function(A,Q,B){var C=B(96738);function I(A,Q){if("function"!=typeof A||null!=Q&&"function"!=typeof Q)throw TypeError("Expected a function");var B=function(){var C=arguments,I=Q?Q.apply(this,C):C[0],E=B.cache;if(E.has(I))return E.get(I);var g=A.apply(this,C);return B.cache=E.set(I,g)||E,g};return B.cache=new(I.Cache||C),B}I.Cache=C,A.exports=I},65798:function(A,Q,B){var C=B(20256),I=B(82952),E=B(21401),g=B(33812);A.exports=function(A){return E(A)?C(g(A)):I(A)}},57370:function(A,Q,B){var C=B(34311)(function(A,Q,B){return A+(B?"_":"")+Q.toLowerCase()});A.exports=C},30981:function(A){A.exports=function(){return[]}},36330:function(A){A.exports=function(){return!1}},66188:function(A,Q,B){var C=B(1054);A.exports=function(A){return null==A?"":C(A)}},23779:function(A,Q,B){var C=B(83126)("toUpperCase");A.exports=C},11618:function(A,Q,B){var C=B(45981),I=B(83559),E=B(66188),g=B(75304);A.exports=function(A,Q,B){return(A=E(A),void 0===(Q=B?void 0:Q))?I(A)?g(A):C(A):A.match(Q)||[]}},77105:function(A,Q,B){"use strict";let C=B(8006),I=Symbol("max"),E=Symbol("length"),g=Symbol("lengthCalculator"),w=Symbol("allowStale"),D=Symbol("maxAge"),c=Symbol("dispose"),M=Symbol("noDisposeOnSet"),s=Symbol("lruList"),y=Symbol("cache"),n=Symbol("updateAgeOnGet"),h=()=>1;class k{constructor(A){if("number"==typeof A&&(A={max:A}),A||(A={}),A.max&&("number"!=typeof A.max||A.max<0))throw TypeError("max must be a non-negative number");this[I]=A.max||1/0;let Q=A.length||h;if(this[g]="function"!=typeof Q?h:Q,this[w]=A.stale||!1,A.maxAge&&"number"!=typeof A.maxAge)throw TypeError("maxAge must be a number");this[D]=A.maxAge||0,this[c]=A.dispose,this[M]=A.noDisposeOnSet||!1,this[n]=A.updateAgeOnGet||!1,this.reset()}set max(A){if("number"!=typeof A||A<0)throw TypeError("max must be a non-negative number");this[I]=A||1/0,U(this)}get max(){return this[I]}set allowStale(A){this[w]=!!A}get allowStale(){return this[w]}set maxAge(A){if("number"!=typeof A)throw TypeError("maxAge must be a non-negative number");this[D]=A,U(this)}get maxAge(){return this[D]}set lengthCalculator(A){"function"!=typeof A&&(A=h),A!==this[g]&&(this[g]=A,this[E]=0,this[s].forEach(A=>{A.length=this[g](A.value,A.key),this[E]+=A.length})),U(this)}get lengthCalculator(){return this[g]}get length(){return this[E]}get itemCount(){return this[s].length}rforEach(A,Q){Q=Q||this;for(let B=this[s].tail;null!==B;){let C=B.prev;G(this,A,B,Q),B=C}}forEach(A,Q){Q=Q||this;for(let B=this[s].head;null!==B;){let C=B.next;G(this,A,B,Q),B=C}}keys(){return this[s].toArray().map(A=>A.key)}values(){return this[s].toArray().map(A=>A.value)}reset(){this[c]&&this[s]&&this[s].length&&this[s].forEach(A=>this[c](A.key,A.value)),this[y]=new Map,this[s]=new C,this[E]=0}dump(){return this[s].map(A=>!t(this,A)&&{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[s]}set(A,Q,B){if((B=B||this[D])&&"number"!=typeof B)throw TypeError("maxAge must be a number");let C=B?Date.now():0,w=this[g](Q,A);if(this[y].has(A)){if(w>this[I])return L(this,this[y].get(A)),!1;let g=this[y].get(A).value;return this[c]&&!this[M]&&this[c](A,g.value),g.now=C,g.maxAge=B,g.value=Q,this[E]+=w-g.length,g.length=w,this.get(A),U(this),!0}let n=new i(A,Q,w,C,B);return n.length>this[I]?(this[c]&&this[c](A,Q),!1):(this[E]+=n.length,this[s].unshift(n),this[y].set(A,this[s].head),U(this),!0)}has(A){return!!this[y].has(A)&&!t(this,this[y].get(A).value)}get(A){return K(this,A,!0)}peek(A){return K(this,A,!1)}pop(){let A=this[s].tail;return A?(L(this,A),A.value):null}del(A){L(this,this[y].get(A))}load(A){this.reset();let Q=Date.now();for(let B=A.length-1;B>=0;B--){let C=A[B],I=C.e||0;if(0===I)this.set(C.k,C.v);else{let A=I-Q;A>0&&this.set(C.k,C.v,A)}}}prune(){this[y].forEach((A,Q)=>K(this,Q,!1))}}let K=(A,Q,B)=>{let C=A[y].get(Q);if(C){let Q=C.value;if(t(A,Q)){if(L(A,C),!A[w])return}else B&&(A[n]&&(C.value.now=Date.now()),A[s].unshiftNode(C));return Q.value}},t=(A,Q)=>{if(!Q||!Q.maxAge&&!A[D])return!1;let B=Date.now()-Q.now;return Q.maxAge?B>Q.maxAge:A[D]&&B>A[D]},U=A=>{if(A[E]>A[I])for(let Q=A[s].tail;A[E]>A[I]&&null!==Q;){let B=Q.prev;L(A,Q),Q=B}},L=(A,Q)=>{if(Q){let B=Q.value;A[c]&&A[c](B.key,B.value),A[E]-=B.length,A[y].delete(B.key),A[s].removeNode(Q)}};class i{constructor(A,Q,B,C,I){this.key=A,this.value=Q,this.length=B,this.now=C,this.maxAge=I||0}}let G=(A,Q,B,C)=>{let I=B.value;t(A,I)&&(L(A,B),A[w]||(I=void 0)),I&&Q.call(C,I.value,I.key,A)};A.exports=k},53207:function(A,Q,B){var C=B(96570);C.prototype.formulaEval=function(){"use strict";for(var A,Q,B,C=[],I=this.value,E=0;E"+Q.value+""+I[E].show+""+A.value+"",type:10}):C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+""+A.value+"",type:1})):2===I[E].type||9===I[E].type?(A=C.pop(),Q=C.pop(),C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+I[E].show+(1!=A.type?"(":"")+A.value+(1!=A.type?")":""),type:I[E].type})):12===I[E].type&&(A=C.pop(),Q=C.pop(),B=C.pop(),C.push({value:I[E].show+"("+B.value+","+Q.value+","+A.value+")",type:12}));return C[0].value},A.exports=C},66655:function(A,Q,B){"use strict";var C=B(72346);function I(A,Q){for(var B=0;Bh.length-2?h.length-1:A.length-D;B>0;B--)if(void 0!==h[B])for(I=0;I0&&aB)w.push(A);else{for(;B>=I&&!M||M&&I1)throw new C.Exception("Uncaught Syntax error");return E[0].value>1e15?"Infinity":parseFloat(E[0].value.toFixed(15))},C.eval=function(A,Q,B){return void 0===Q?this.lex(A).toPostfix().postfixEval():void 0!==B?this.lex(A,Q).toPostfix().postfixEval(B):void 0!==Q.length?this.lex(A,Q).toPostfix().postfixEval():this.lex(A).toPostfix().postfixEval(Q)},A.exports=C},93542:function(A,Q,B){"use strict";var C,I;A.exports=(null==(C=B.g.process)?void 0:C.env)&&"object"==typeof(null==(I=B.g.process)?void 0:I.env)?B.g.process:B(42351)},86570:function(A,Q,B){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return B(39173)}])},5834:function(A,Q,B){"use strict";B.d(Q,{u:function(){return w}});var C=B(52322),I=B(63392),E=B(68382),g=B(64245);function w(){let{openDialog:A}=(0,g.Rh)();return(0,C.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,C.jsx)(D,{title:E.z.walletAddNew.title,description:E.z.walletAddNew.description,onSelect:()=>A("walletAddNew")}),(0,C.jsx)(D,{title:E.z.walletAddRecover.title,description:E.z.walletAddRecover.description,onSelect:()=>A("walletAddRecover")}),(0,C.jsx)(D,{title:E.z.walletAddWatch.title,description:E.z.walletAddWatch.description,onSelect:()=>A("walletAddWatch")}),(0,C.jsx)(D,{title:E.z.walletAddLedger.title,description:E.z.walletAddLedger.description,onSelect:()=>A("walletAddLedger")})]})}function D(A){let{title:Q,description:B,disabled:E,onSelect:g}=A;return(0,C.jsx)(I.Wh3,{onClick:g,disabled:E,children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,C.jsx)(I.X6q,{size:"20",children:Q}),(0,C.jsx)(I.nvN,{size:"14",color:"subtle",children:B})]})})}},75061:function(A,Q,B){"use strict";B.d(Q,{g:function(){return w}});var C=B(52322),I=B(63392),E=B(57165),g=B(64245);function w(A){let{wallet:{id:Q,metadata:B,state:w,actions:D},...c}=A,{openDialog:M}=(0,g.Rh)();return(0,C.jsxs)(I.h_2,{...c,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),"seed"===B.type?"unlocked"===w.status?(0,C.jsxs)(I.Xiv,{"aria-label":"Wallet context menu",onClick:A=>A.stopPropagation(),onSelect:()=>D.lock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Lur,{})}),"Lock wallet"]}):(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>D.unlock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.VmF,{})}),"Unlock wallet"]}):null,(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("walletUpdate",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.dr6,{})}),"Edit wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("walletRemove",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Jrl,{})}),"Delete wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("walletsRescan"),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.vs4,{})}),"Rescan blockchain"]})]})}},4300:function(A,Q,B){"use strict";B.d(Q,{_:function(){return I},h:function(){return E}});var C=B(27050);let I={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},E=C.cz},99634:function(A,Q,B){"use strict";B.d(Q,{h:function(){return C}});let C=(0,B(88464).XB)(15)},68382:function(A,Q,B){"use strict";B.d(Q,{_:function(){return w},z:function(){return g}});var C=B(52322),I=B(63392),E=B(57165);let g={walletAddNew:{title:"Create a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,C.jsx)(C.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,C.jsx)(C.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},w={seed:{title:"Seed-based wallet",icon:(0,C.jsx)(E.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,C.jsx)(E.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,C.jsx)(E._Gh,{})}}},61708:function(A,Q,B){"use strict";B.d(Q,{p:function(){return g}});var C=B(63392),I=B(2784),E=B(64245);function g(A){let{walletId:Q,response:B,filters:g}=A,{openDialog:w}=(0,E.Rh)(),D=(0,I.useMemo)(()=>B.data?B.data.map(A=>{let{address:B,description:C,metadata:I,spendPolicy:E}=A;return{id:B,address:B,description:C,spendPolicy:E,metadata:I||{},walletId:Q,onClick:()=>w("addressUpdate",{walletId:Q,address:B}),raw:A}}):null,[B.data,w,Q]),c=(0,C.c2j)(D,B.isValidating,B.error,g),M=(D||[]).reduce((A,Q)=>{let{metadata:B}=Q;return B.index>A?B.index:A},-1);return{dataset:D,dataState:c,error:B.error,lastIndex:M,filters:g}}},18291:function(A,Q,B){"use strict";B.d(Q,{OZ:function(){return U},Jz:function(){return t}});var C=B(52322),I=B(63392),E=B(28135),g=B(2784),w=B(47706),D=B(57165),c=B(64245);function M(A){let{address:{walletId:Q,id:B,metadata:g},...w}=A,{openDialog:M}=(0,c.Rh)(),s=(0,E.XF)();return(0,C.jsxs)(I.h_2,{...w,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("confirm",{title:void 0!==g.index?"Remove address ".concat(g.index):"Remove address",action:"Remove",variant:"red",body:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(I.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,C.jsxs)(I.nvN,{size:"14",font:"mono",children:[(0,I.I13)(B).slice(0,40),"..."]})]}),onConfirm:async()=>{let A=await s.delete({params:{id:Q,addr:B}});A.error?(0,I.OHV)({title:"Error deleting address",body:A.error}):(0,I.OPV)({title:void 0!==g.index?"Address ".concat(g.index," removed"):"Address removed"})}}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(D.Jrl,{})}),"Remove address"]})]})}let s=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(M,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},address:Q})}},{id:"address",label:"address",category:"general",fixed:!0,render:A=>{let{data:{address:Q,description:B},context:E}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.XxW,{maxLength:40,value:Q,type:"address",siascanUrl:E.siascanUrl}),B&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:B})}),children:(0,C.jsx)(I.nvN,{size:"12",children:B.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:A=>{let{data:{metadata:Q}}=A;return void 0===Q.index?null:(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(I.xvT,{children:Q.index.toLocaleString()})})}}];var y=B(5632),n=B(66510),h=B(99634),k=B(61708);let K=(0,g.createContext)({}),t=()=>(0,g.useContext)(K);function U(A){let{children:Q}=A,B=function(){let A=(0,y.useRouter)().query.id,Q=(0,E.bd)({disabled:!A,params:{id:A},config:{swr:{refreshInterval:h.h}}}),{filters:B,setFilter:C,removeFilter:D,removeLastFilter:c,resetFilters:M}=(0,I.Wdu)(),{dataset:K,dataState:t,lastIndex:U}=(0,k.p)({walletId:A,response:Q,filters:B}),{configurableColumns:L,enabledColumns:i,sortableColumns:G,toggleColumnVisibility:p,setColumnsVisible:r,setColumnsHidden:a,toggleSort:o,setSortDirection:N,setSortField:e,sortField:J,sortDirection:S,resetDefaultColumnVisibility:F}=(0,I.oy6)("walletd/v0/addresses",{columns:s,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),l=(0,I._4u)({dataset:K,filters:B,sortField:J,sortDirection:S}),Y=(0,g.useMemo)(()=>s.filter(A=>A.fixed||i.includes(A.id)),[i]),H=(0,n.B)(),f=(0,g.useMemo)(()=>({siascanUrl:H}),[H]);return{dataState:t,error:Q.error,datasetCount:(null==l?void 0:l.length)||0,columns:Y,dataset:l,cellContext:f,lastIndex:U,configurableColumns:L,enabledColumns:i,sortableColumns:G,toggleColumnVisibility:p,setColumnsVisible:r,setColumnsHidden:a,toggleSort:o,setSortDirection:N,setSortField:e,sortField:J,filters:B,setFilter:C,removeFilter:D,removeLastFilter:c,resetFilters:M,sortDirection:S,resetDefaultColumnVisibility:F}}();return(0,C.jsx)(K.Provider,{value:B,children:Q})}},47706:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","address","index"],I="index",E=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},64245:function(A,Q,B){"use strict";B.d(Q,{Tu:function(){return AT},xQ:function(){return AP},Rh:function(){return AZ}});var C=B(52322),I=B(2784),E=B(63392),g=B(28135),w=B(5834);function D(A){let{open:Q,trigger:B,onOpenChange:I}=A;return(0,C.jsx)(E.VqE,{title:"Add Wallet",trigger:B,open:Q,onOpenChange:I,contentVariants:{className:"max-w-[600px]"},children:(0,C.jsx)(w.u,{})})}var c=B(57165),M=B(63955),s=B(54525),y=B(68382),n=B(81395);function h(A){let{copySeed:Q,children:B,icon:I,description:g}=A;return(0,C.jsxs)("div",{className:"",children:[B,(0,C.jsx)(E.s_4,{className:"mt-2",children:(0,C.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,C.jsx)("div",{className:"flex",children:I}),(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:g}),Q&&(0,C.jsx)(E.zxk,{onClick:Q,children:"Copy Seed to Clipboard"})]})]})})]})}var k=B(36331);let K={name:"",description:"",mnemonic:"",hasCopied:!1};function t(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),t=(0,g.lT)(),U=(0,M.cI)({mode:"all",defaultValues:K}),L=U.watch("mnemonic"),i=(0,I.useCallback)(()=>{(0,E.vQq)(L,"seed"),U.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),U.clearErrors(["mnemonic"])},[L,U]),G=(0,I.useCallback)(async()=>{let{phrase:A}=(0,k.K)().wallet.generateSeedPhrase();U.setValue("hasCopied",!1),U.setValue("mnemonic",A),U.clearErrors(["hasCopied","mnemonic"])},[U]);(0,I.useEffect)(()=>{B&&G()},[B]);let{dataset:p}=(0,s.r)(),r=function(A){let{walletNames:Q,copySeed:B}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",onClick:A=>{A.currentTarget.select(),B()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,k.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},copied:(A,Q)=>Q.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:(null==p?void 0:p.map(A=>A.name))||[],copySeed:i}),a=(0,I.useCallback)(async A=>{let Q=A.mnemonic.trim(),B=(0,n.blake2bHex)(Q),C=await t.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:B}}});C.error?(0,E.OHV)({title:"Error creating wallet",body:C.error}):(D("walletAddressesGenerate",{walletId:C.data.id}),U.reset(K))},[U,D,t]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddNew.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:U.handleSubmit(a),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:U,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,C.jsx)(E.yEL,{name:"name",form:U,fields:r}),(0,C.jsx)(E.Bau,{name:"description",form:U,fields:r}),(0,C.jsx)(h,{icon:(0,C.jsx)(c.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.Bau,{form:U,fields:r,name:"mnemonic"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:G,children:[(0,C.jsx)(c.nt4,{}),"Regenerate"]}),(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:i,children:[(0,C.jsx)(c.olJ,{}),"Copy to clipboard"]})]})]})})]})})}var U=B(6391),L=B.n(U);function i(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:I}=A;return{type:B,title:"Seed",actions:(0,C.jsx)("div",{className:"flex gap-1",children:(0,C.jsx)(E.zxk,{tip:"password"===B?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>I("password"===B?"text":"password"),children:"password"===B?(0,C.jsx)(c.pHg,{}):(0,C.jsx)(c.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,k.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},match:A=>(0,n.blake2bHex)(A)===Q||"seed phrase does not match"}}}}var G=B(40361);function p(A){let{walletId:Q,name:B,form:I,fields:g,actionText:w}=A,{dataset:D,walletAutoLockEnabled:M,walletAutoLockTimeout:y}=(0,s.r)(),n=null==D?void 0:D.find(A=>A.id===Q),k=null==n?void 0:n.state.mnemonic,K=(0,G.l)(y),t=w?" and ".concat(w):"";return k?(0,C.jsx)(h,{icon:(0,C.jsx)(c.R$y,{}),description:M?(0,C.jsxs)(C.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",K.amount," ",K.units,", manually locked, or the app is closed."]}):(0,C.jsx)(C.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,C.jsx)(h,{icon:(0,C.jsx)(c.R$y,{}),description:M?(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",t,". The wallet will stay unlocked until it is inactive for"," ",K.amount," ",K.units,", manually locked, or the app is closed."]}):(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",t,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,C.jsx)(E.yEL,{form:I,fields:g,name:B})})}var r=B(99634),a=B(61708);let o=[];function N(A){let{id:Q}=A,B=(0,g.bd)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:r.h}}}),{dataset:C,dataState:I,lastIndex:E}=(0,a.p)({walletId:Q,response:B,filters:o});return{dataState:I,error:B.error,datasetCount:(null==C?void 0:C.length)||0,dataset:C,lastIndex:E}}function e(A){let{label:Q,description:B}=A;return(0,C.jsx)(E.bZj,{className:"!p-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(c.qdM,{})}),(0,C.jsx)(E.xvT,{weight:"medium",children:Q})]}),(0,C.jsx)(E.xvT,{size:"14",color:"subtle",children:B})]})})}function J(){return{shouldRescan:{type:"boolean",title:"Enable",validation:{}},rescanStartHeight:{type:"number",decimalsLimit:0,title:"Start height",validation:{}}}}function S(){let{rescanStartHeight:A}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{shouldRescan:!1,rescanStartHeight:new(L())(A||0)}}function F(A){let{form:Q,fields:B}=A,I=Q.watch("shouldRescan");return(0,C.jsxs)("div",{className:"flex flex-col gap-1 pt-4",children:[(0,C.jsx)(E.Z0O,{className:"w-full my-2"}),(0,C.jsx)(E.__J,{color:"contrast",className:"pb-2",size:"16",children:"Advanced"}),(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(E.__J,{color:"contrast",children:"Rescan"})}),(0,C.jsxs)("div",{className:"flex justify-start gap-3",children:[(0,C.jsx)(E.QBj,{form:Q,fields:B,name:"shouldRescan"}),I&&(0,C.jsx)(E.jIp,{form:Q,fields:B,name:"rescanStartHeight"})]}),I&&(0,C.jsx)(E.xvT,{size:"14",color:"subtle",children:"Rescan the blockchain from the specified start height to find any missing transaction activity across all wallets."}),I&&(0,C.jsxs)("div",{className:"pt-2 flex flex-col gap-2",children:[(0,C.jsx)(l,{}),(0,C.jsx)(Y,{})]})]})}function l(){return(0,C.jsx)(e,{label:"Warning",description:(0,C.jsx)(C.Fragment,{children:"Only rescan the blockchain if you have added addresses with past transactions activity. Rescanning the blockchain is a very expensive operation and can take a long time."})})}function Y(){return(0,C.jsx)(e,{label:"Warning",description:(0,C.jsx)(C.Fragment,{children:"For start height, select the highest block height possible, but one that you are sure is before the first transaction activity for the addresses you have added."})})}function H(){let A=(0,g.Ap)();return async Q=>{if(Q.shouldRescan){let B=await A.post({payload:Q.rescanStartHeight?Q.rescanStartHeight.toNumber():0});B.error?(0,E.OHV)({title:"Error rescanning the blockchain",body:B.error}):(0,E.OPV)({title:"Rescanning the blockchain",body:"The blockchain is being rescanned for relevant wallet events."})}}}var f=B(16211),d=B(88464);function u(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c}=Q||{},{lastIndex:y}=N({id:c}),{dataset:n,cacheWalletMnemonic:h}=(0,s.r)(),K=null==n?void 0:n.find(A=>A.id===c),t=y+1,U=function(A){let{nextIndex:Q,currentHeight:B}=A;return{mnemonic:"",index:new(L())(Q),count:new(L())(1),...S({rescanStartHeight:B})}}({nextIndex:t,currentHeight:(0,f.n)().nodeBlockHeight}),[G,r]=(0,I.useState)("password"),a=(0,M.cI)({mode:"all",defaultValues:U});(0,I.useEffect)(()=>{a.formState.isSubmitting||a.setValue("index",new(L())(t))},[t]);let{handleOpenChange:o,closeAndReset:e}=(0,E.t0Y)({form:a,onOpenChange:D,defaultValues:U}),l=a.watch("mnemonic"),Y=a.watch("index"),u=a.watch("count"),R=a.watch("shouldRescan"),j=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B}),index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"10",validation:{required:"required",max:1e3}},...J()}}({mnemonicHash:null==K?void 0:K.metadata.mnemonicHash,mnemonicFieldType:G,setMnemonicFieldType:r}),b=(0,g.yi)(),m=(0,I.useCallback)(async(A,Q,B)=>{function C(A,Q,B){(0,E.OHV)({title:"Error generating addresses",body:Q>0?"".concat(Q+1,"/").concat(A," addresses were generated and saved. Batch failed on with: ").concat(B):B})}for(let I=Q;I{await m(K.state.mnemonic||l,Y.toNumber(),u.toNumber()),Z(A)},[m,l,Y,u,K,Z]);return(0,C.jsxs)(E.VqE,{title:"Wallet ".concat(null==K?void 0:K.name,": generate addresses"),trigger:B,open:w,onOpenChange:o,contentVariants:{className:"w-[500px]"},onSubmit:a.handleSubmit(T),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(E.ZqQ,{form:a,size:"medium",variant:R?"red":"accent",children:["Generate addresses",R?" and rescan":""]})}),children:[(0,C.jsx)(p,{walletId:c,name:"mnemonic",form:a,fields:j,actionText:"generate addresses"}),(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:a,fields:j,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:a,fields:j,name:"count"})})]}),(0,C.jsx)(F,{form:a,fields:j})]})}var R=B(5632),j=B(4300);let b={name:""};function m(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,c=(0,R.useRouter)(),{walletId:y}=Q||{},{closeDialog:n}=AZ(),{dataset:h}=(0,s.r)(),k=null==h?void 0:h.find(A=>A.id===y),K=(0,g.OZ)(),t=(0,M.cI)({mode:"all",defaultValues:b}),U=(0,I.useCallback)(async()=>{let A=await K.delete({params:{id:y}});A.error?(0,E.OHV)({title:"Error removing wallet",body:A.error}):((0,E.OPV)({title:"Wallet permanently removed"}),t.reset(),n(),c.push(j._.home))},[t,y,K,n,c]),L=(0,I.useMemo)(()=>{var A;return{name:{type:"text",title:"Name",placeholder:A=null==k?void 0:k.name,validation:{required:"required",validate:{equals:Q=>Q===A||"name does not match"}}}}},[k]),i=(0,E.WsO)(L);return(0,C.jsx)(E.VqE,{title:"Remove wallet",trigger:B,open:w,onOpenChange:A=>{A||t.reset(b),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:t.handleSubmit(U,i),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,C.jsx)(E.EKh,{children:null==k?void 0:k.name}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"name",form:t,fields:L}),(0,C.jsx)(E.ZqQ,{variant:"red",form:t,children:"Remove"})]})})}function Z(A){let{trigger:Q,open:B,onOpenChange:w,params:D}=A,{walletId:c,address:s}=D||{},{openDialog:y}=AZ(),{dataset:n,dataState:h}=N({id:c}),k=null==n?void 0:n.find(A=>A.id===s),K=(0,g.yi)(),t=function(A){let{description:Q}=A;return{description:Q||""}}({description:null==k?void 0:k.description}),U=(0,M.cI)({mode:"all",defaultValues:t}),{handleOpenChange:L,closeAndReset:i}=(0,E.t0Y)({form:U,onOpenChange:w,defaultValues:t,initKey:[D,void 0===h]}),G=(0,I.useCallback)(async A=>{let Q=await K.put({params:{id:c},payload:{...k.raw,address:s,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating address",body:Q.error}):i()},[c,s,K,k,i]);return(0,C.jsx)(E.VqE,{title:(0,E.$Gg)(s,20),trigger:Q,open:B,onOpenChange:L,contentVariants:{className:"w-[400px]"},onSubmit:U.handleSubmit(G),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{onClick:()=>y("addressRemove",{walletId:c,address:s}),children:"Remove address"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"small",form:U,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.hKn,{address:(null==k?void 0:k.address)||""}),(0,C.jsx)(E.Bau,{name:"description",form:U,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let T={name:"",description:""};function P(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c}=Q||{},{dataset:y}=(0,s.r)(),n=null==y?void 0:y.find(A=>A.id===c),h=(0,g.SK)(),k=n?{name:n.name,description:n.description}:T,K=(0,M.cI)({mode:"all",defaultValues:k}),{handleOpenChange:t,closeAndReset:U}=(0,E.t0Y)({form:K,onOpenChange:D,defaultValues:k}),L=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(0,I.useMemo)(()=>(null==y?void 0:y.reduce((A,Q)=>Q.name!==(null==n?void 0:n.name)?A.concat(Q.name):A,[]))||[],[y,n])}),i=(0,I.useCallback)(async A=>{let Q=await h.post({params:{id:c},payload:{...n.raw,name:A.name,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating wallet",body:Q.error}):U()},[c,h,n,U]);return(0,C.jsx)(E.VqE,{title:"".concat(null==n?void 0:n.name),trigger:B,open:w,onOpenChange:t,contentVariants:{className:"w-[400px]"},onSubmit:K.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:K,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.__J,{children:"Type"}),(0,C.jsx)("div",{children:(0,C.jsx)(E.Cts,{children:null==n?void 0:n.metadata.type})})]}),(0,C.jsx)(E.yEL,{name:"name",form:K,fields:L}),(0,C.jsx)(E.Bau,{name:"description",form:K,fields:L})]})})}var O=B(79381),W=B(71508),z=B(65597),x=B(27748);async function V(){return(await Promise.all([z.Z.isSupported().then(async A=>{let Q=await v();return A&&!Q?"Bluetooth":null}),x.Z.isSupported().then(A=>A?"HID":null)])).filter(A=>A)}async function v(){return navigator.brave&&await navigator.brave.isBrave()}function X(A){let{title:Q,details:B,actions:I,shouldVerify:g}=A,{device:w,disconnect:D}=(0,W.c)();return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[g?(0,C.jsxs)(C.Fragment,{children:[!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==w?void 0:w.type)==="Bluetooth"&&(0,C.jsx)(E.ua7,{content:"Bluetooth",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(c.Ya6,{})})}),(null==w?void 0:w.type)==="USB"&&(0,C.jsx)(E.ua7,{content:"USB",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(c.Fhn,{size:16})})}),(null==w?void 0:w.type)==="HID"&&(0,C.jsx)(E.ua7,{content:"HID",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(c.Pj_,{size:16})})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[I,!!w&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(c.PcV,{})})]})]}),B]})})}let q={transportType:""};function _(A){var Q;let{shouldVerify:B}=A,{device:g,connect:w,verify:D,setError:s,waitingForUser:y}=(0,W.c)(),n=(0,M.cI)({mode:"all",defaultValues:q}),h=n.watch("transportType"),k=!!(null==g?void 0:g.publicKey0),K=(0,O.ZP)("deviceConnect/supportedTransports",()=>V(),{revalidateOnFocus:!1});(0,I.useEffect)(()=>{K.data&&(n.setValue("transportType",K.data[0]),0===K.data.length&&s(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[K.data]);let t=function(A){let{supportedTransports:Q}=A;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:Q.map(A=>({value:A,label:A})),validation:{required:!0}}}}({supportedTransports:K.data||[]}),U=(0,I.useCallback)(async()=>{h&&w(h)},[w,h]),L=(0,I.useCallback)(async()=>{h&&await D()},[D,h]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:g?B?k?(0,C.jsx)(X,{shouldVerify:B,title:g.transport.deviceModel.productName,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:g.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,C.jsx)(X,{shouldVerify:B,title:g.transport.deviceModel.productName,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(E.zxk,{variant:"accent",onClick:L,children:[(0,C.jsx)(c.j7C,{}),"Verify"]})}),details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,C.jsx)(X,{shouldVerify:B,title:g.transport.deviceModel.productName}):(0,C.jsx)(X,{shouldVerify:B,title:"Connect Ledger...",actions:(null===(Q=K.data)||void 0===Q?void 0:Q.length)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.WyV,{name:"transportType",form:n,fields:t,group:!1}),(0,C.jsx)(E.zxk,{size:"small",onClick:U,children:"Connect"})]}):null,details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm in browser and on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})]}):(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})})})}let $={name:"",description:"",ledgerConnectedAndVerified:!1};function AA(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),c=(0,g.lT)(),n=(0,M.cI)({mode:"all",defaultValues:$}),{device:h,disconnect:K,error:t}=(0,W.c)();(0,I.useEffect)(()=>{B&&K()},[B]),(0,I.useEffect)(()=>{h&&h.publicKey0?n.setValue("ledgerConnectedAndVerified",!0):n.setValue("ledgerConnectedAndVerified",!1)},[n,h]),(0,I.useEffect)(()=>{t?n.setError("ledgerConnectedAndVerified",{message:t.message}):n.clearErrors("ledgerConnectedAndVerified")},[n,t]);let{dataset:U}=(0,s.r)(),L=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},ledgerConnectedAndVerified:{type:"boolean",title:"",validation:{validate:{ledgerConnectedAndVerified:A=>A||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:(null==U?void 0:U.map(A=>A.name))||[]}),i=(0,g.yi)(),G=(0,I.useCallback)(async(A,Q)=>{let{unlockConditions:B,address:C}=Q;if((await i.put({params:{id:A},payload:{address:C,description:"",metadata:{index:0,unlockConditions:B}}})).error){(0,E.OHV)({title:"Error saving address"});return}},[i]),p=(0,I.useCallback)(async A=>{if(!A.ledgerConnectedAndVerified||!h.publicKey0||!h.address0)return;let Q={type:"ledger",publicKey0:h.publicKey0,address0:h.address0},B=await c.post({payload:{name:A.name,description:A.description,metadata:Q}});if(B.error)(0,E.OHV)({title:"Error saving wallet",body:B.error});else{let A=(0,k.K)().wallet.standardUnlockConditions(h.publicKey0);A.error||G(B.data.id,{unlockConditions:A.unlockConditions,address:h.address0}),D("walletLedgerAddressGenerate",{walletId:B.data.id,walletJustCreated:!0}),n.reset($)}},[n,D,c,h,G]);return n.register("ledgerConnectedAndVerified",L.ledgerConnectedAndVerified.validation),(0,C.jsx)(E.VqE,{title:y.z.walletAddLedger.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:n.handleSubmit(p),controls:(0,C.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:n,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,C.jsx)(E.yEL,{name:"name",form:n,fields:L}),(0,C.jsx)(E.Bau,{name:"description",form:n,fields:L}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,C.jsx)(E.cp7,{name:"ledgerConnectedAndVerified",form:n}),(0,C.jsx)(_,{shouldVerify:!0})]})]})})}let AQ={name:"",description:"",mnemonic:""};function AB(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),K=(0,M.cI)({mode:"all",defaultValues:AQ}),{dataset:t}=(0,s.r)(),U=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,k.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:(null==t?void 0:t.map(A=>A.name))||[]}),L=(0,g.lT)(),i=(0,I.useCallback)(async A=>{let Q=A.mnemonic.trim(),B=(0,n.blake2bHex)(Q),C=await L.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:B}}});C.error?(0,E.OHV)({title:"Error adding wallet",body:C.error}):(D("walletAddressesGenerate",{walletId:C.data.id}),K.reset(AQ))},[K,D,L]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddRecover.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:K.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:K,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,C.jsx)(E.yEL,{name:"name",form:K,fields:U}),(0,C.jsx)(E.Bau,{name:"description",form:K,fields:U}),(0,C.jsx)(h,{icon:(0,C.jsx)(c.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,C.jsx)(E.Bau,{form:K,fields:U,name:"mnemonic"})})]})})}let AC={name:"",description:""};function AI(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),c=(0,g.lT)(),n=(0,M.cI)({mode:"all",defaultValues:AC}),{dataset:h}=(0,s.r)(),k=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(null==h?void 0:h.map(A=>A.name))||[]}),K=(0,I.useCallback)(async A=>{let Q=await c.post({payload:{name:A.name,description:A.description,metadata:{type:"watch"}}});Q.error?(0,E.OHV)({title:"Error adding wallet",body:Q.error}):(D("walletAddressesAdd",{walletId:Q.data.id}),n.reset(AC))},[n,D,c]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddWatch.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:n.handleSubmit(K),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:n,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,C.jsx)(E.yEL,{name:"name",form:n,fields:k}),(0,C.jsx)(E.Bau,{name:"description",form:n,fields:k})]})})}var AE=B(49058);let Ag={addresses:"",...S()};function Aw(A){return(0,AE.Z)(A.trim().split(/[^0-9a-fA-F]+/).map(A=>A).filter(A=>!!A))}function AD(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c}=Q||{},{dataset:y}=(0,s.r)(),n=null==y?void 0:y.find(A=>A.id===c),h=(0,M.cI)({mode:"all",defaultValues:Ag}),{handleOpenChange:k,closeAndReset:K}=(0,E.t0Y)({form:h,onOpenChange:D,defaultValues:Ag}),t={addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:A=>{let Q=Aw(A||"");for(let A=0;A{let Q=Aw(A),B=Q.length,C=0;for(let A=0;A{let Q=await L(A.addresses);if(Q.error){1===Q.total?(0,E.OHV)({title:"Error saving address",body:Q.error}):(0,E.OHV)({title:"Error saving addresses",body:Q.successful>0?"".concat(Q.successful," of ").concat(Q.total," addresses were saved."):""});return}(0,E.OPV)({title:"Added ".concat((0,d._6)(1,"address","addresses"))}),i(A),K()},[L,K,i]),p=h.watch("addresses"),r=h.watch("shouldRescan"),a=Aw(p).length;return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==n?void 0:n.name,": add addresses"),trigger:B,open:w,onOpenChange:k,contentVariants:{className:"w-[500px]"},onSubmit:h.handleSubmit(G),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(E.ZqQ,{form:h,variant:r?"red":"accent",size:"medium",children:["Add ",(0,d._6)(a,"address","addresses"),r?" and rescan":""]})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,C.jsx)(E.Bau,{form:h,fields:t,name:"addresses"}),(0,C.jsx)(F,{form:h,fields:t})]})})}let Ac={address:""};function AM(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c,address:s}=Q||{},{closeDialog:y}=AZ(),n=(0,g.XF)(),h=(0,M.cI)({defaultValues:Ac}),k=(0,I.useCallback)(async()=>{let A=await n.delete({params:{id:c,addr:s}});A.error?(0,E.OHV)({title:"Error removing address",body:A.error}):((0,E.OPV)({title:"Address permanently removed"}),h.reset(),y())},[h,c,s,n,y]),K=(0,I.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:s,validation:{required:"required",validate:{equals:A=>(0,E.I13)(A)===(0,E.I13)(s)||"address does not match"}}}}),[s]),t=(0,E.WsO)(K);return(0,C.jsx)(E.VqE,{title:"Remove address",trigger:B,open:w,onOpenChange:A=>{A||h.reset(Ac),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(k,t),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,C.jsxs)(E.EKh,{children:[(0,E.I13)(s).slice(0,12),"..."]}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"address",form:h,fields:K}),(0,C.jsx)(E.ZqQ,{variant:"red",form:h,children:"Remove"})]})})}let As="e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",Ay=(0,d.qN)(.00393),An={receiveAddress:"",changeAddress:"",claimAddress:"",customChangeAddress:!1,customClaimAddress:!1,mode:"siacoin",siacoin:void 0,siafund:void 0,includeFee:!1};function Ah(A){let{balanceSc:Q,balanceSf:B,onComplete:g,defaultChangeAddress:w,defaultClaimAddress:D}=A,s=(0,M.cI)({mode:"all",defaultValues:An}),y=function(A){let{balanceSc:Q,balanceSf:B,fee:I}=A;return{receiveAddress:{type:"text",title:"Recipient address",placeholder:As,validation:{validate:{required:A=>!!A||"required",valid:A=>(0,d.At)(A)||"invalid address"}}},mode:{type:"select",title:"Action",options:[{value:"siacoin",label:"Send siacoins"},{value:"siafund",label:"Send siafunds"}],validation:{required:"required"}},siacoin:{type:"siacoin",title:"Siacoin",placeholder:"100",validation:{validate:{required:(A,Q)=>"siacoin"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siacoin"!==Q.mode||!new(L())(A||0).isZero()||"must be greater than zero",balance:(A,B)=>"siacoin"!==B.mode||Q.gte((0,d.qN)(A||0).plus(I))||"not enough funds in wallet"}}},siafund:{type:"number",title:"Siafunds",decimalsLimit:0,placeholder:"100",validation:{validate:{required:(A,Q)=>"siafund"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siafund"!==Q.mode||(null==A?void 0:A.gt(0))||"must be greater than zero",balance:(A,C)=>"siafund"!==C.mode||(null==Q?void 0:Q.gte(I))&&(null==B?void 0:B.gte(A))||"not enough funds in wallet"}}},customChangeAddress:{type:"boolean",title:"Custom change adress",validation:{}},customClaimAddress:{type:"boolean",title:"Custom claim adress",validation:{}},changeAddress:{type:"text",title:"Change address",placeholder:As,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address where any change from the transaction will be sent. If a custom change address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>!Q.customChangeAddress||!!A||"required",valid:(A,Q)=>!Q.customChangeAddress||(0,d.At)(A)||"invalid address"}}},claimAddress:{type:"text",title:"Claim address",placeholder:As,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address that will receive any unclaimed siacoin earnings from the siafund. If a custom claim address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||!!A||"required"},valid:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||(0,d.At)(A)||"invalid address"}}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balanceSc:Q,balanceSf:B,fee:Ay}),n=(0,I.useCallback)(async A=>{let Q=new(L())(A.siacoin||0),B=new(L())(A.siafund||0),C=A.includeFee?(0,d.qN)(Q).minus(Ay):(0,d.qN)(Q),I=B.toNumber();g({receiveAddress:A.receiveAddress,changeAddress:A.customChangeAddress?A.changeAddress:w,claimAddress:A.customClaimAddress?A.claimAddress:D,fee:Ay,mode:A.mode,siacoin:C,siafund:I})},[g,w,D]),h=(0,I.useMemo)(()=>s.handleSubmit(n),[s,n]),k=s.watch("siacoin"),K=s.watch("mode"),t=s.watch("customChangeAddress"),U=s.watch("customClaimAddress"),i=s.watch("includeFee"),G=(0,d.qN)(k||0),p=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[B.gt(0)&&(0,C.jsx)(E.WyV,{size:"medium",form:s,fields:y,name:"mode"}),(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"receiveAddress",autoComplete:"off"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customChangeAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom change address"}),y.changeAddress.actions]})}),"siafund"===K&&(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customClaimAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom claim address"}),y.claimAddress.actions]})})]}),t&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"changeAddress",autoComplete:"off"}),"siafund"===K&&U&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"claimAddress",autoComplete:"off"}),"siacoin"===K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.qGu,{size:"medium",form:s,fields:y,name:"siacoin"}),(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsxs)(E.QBj,{size:"small",form:s,fields:y,name:"includeFee",children:[(0,C.jsx)(E.xvT,{children:"Include fee"}),(0,C.jsx)(E.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,C.jsx)("div",{className:"flex flex-1"})]})]}):(0,C.jsx)(E.jIp,{size:"medium",form:s,fields:y,name:"siafund"}),(0,C.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:Ay,variant:"value",dynamicUnits:!1})})]}),"siacoin"===K&&(0,C.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:i?G:G.plus(Ay),variant:"value",dynamicUnits:!1})})]})]})]});return{form:s,el:p,handleSubmit:h,reset:()=>s.reset(An)}}function Ak(A){let{params:{receiveAddress:Q,changeAddress:B,claimAddress:I,mode:g,siacoin:w,siafund:D,fee:c},transactionId:M}=A,s=w.plus(c);return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Recipient address"}),(0,C.jsx)(E.XxW,{value:Q,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Change address"}),(0,C.jsx)(E.XxW,{value:B,type:"address"})]}),"siafund"===g&&(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Claim address"}),(0,C.jsx)(E.XxW,{value:I,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:"siacoin"===g?(0,C.jsx)(E.YKL,{size:"14",value:w,variant:"value",dynamicUnits:!1}):(0,C.jsx)(E.Sby,{size:"14",value:D,variant:"value"})})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:c,variant:"value",dynamicUnits:!1})})]}),"siacoin"===g&&(0,C.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),M&&(0,C.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,C.jsx)(E.XxW,{value:M,type:"transaction"})]})]})}function AK(A){let{transaction:Q,toSign:B,addresses:C,siacoinOutputs:I,siafundOutputs:g}=A;if(!C)return{error:"No addresses"};if(!I)return{error:"No outputs"};for(let A of B){let B=(0,E.I13)(A),{address:w,siacoinUtxo:D,siafundUtxo:c,siacoinInput:M,siafundInput:s,error:y}=At({toSignId:B,addresses:C,siacoinOutputs:I,siafundOutputs:g,transaction:Q});if(y)return{error:y};D&&(M.unlockConditions=w.metadata.unlockConditions),c&&(s.unlockConditions=w.metadata.unlockConditions),Q.signatures||(Q.signatures=[]),Q.signatures.push({parentID:B,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function At(A){var Q,B;let{toSignId:C,transaction:I,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A,c=(0,E.I13)(C),M=function(A){let{id:Q,addresses:B,siacoinOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siacoinOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:c,addresses:g,siacoinOutputs:w});if(!M.error){let A=null===(Q=I.siacoinInputs)||void 0===Q?void 0:Q.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(M.utxo.id));return A?{address:M.address,siacoinUtxo:M.utxo,siacoinInput:A}:{error:"Missing input"}}let s=function(A){let{id:Q,addresses:B,siafundOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siafundOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:c,addresses:g,siafundOutputs:D});if(!s.error){let A=null===(B=I.siafundInputs)||void 0===B?void 0:B.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(s.utxo.id));return A?{address:s.address,siafundUtxo:s.utxo,siafundInput:A}:{error:"Missing input"}}return s.error&&"Missing utxo"!==s.error?{error:s.error}:{error:M.error}}function AU(A){let{cancel:Q}=A,B=(0,g.ys)();return(0,I.useCallback)(async A=>{let{signedTransaction:C}=A;if(!C)return{error:"No signed transaction"};let I=await B.post({payload:{transactions:[C],v2transactions:[]}});return I.error?(Q(C),{error:I.error}):{}},[Q,B])}function AL(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.zQ)();return(0,I.useCallback)(async A=>{var C,I;let g=(null===(C=A.siacoinInputs)||void 0===C?void 0:C.map(A=>A.parentID))||[],w=(null===(I=A.siafundInputs)||void 0===I?void 0:I.map(A=>A.parentID))||[],D=await B.post({params:{id:Q},payload:{siacoinOutputs:g,siafundOutputs:w}});D.error&&(0,E.OHV)({title:"Error canceling transaction",body:D.error})},[Q,B])}function Ai(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.sv)(),C=(0,g.bW)();return(0,I.useCallback)(async A=>{let{receiveAddress:I,changeAddress:E,claimAddress:g,mode:w,siacoin:D,siafund:c,fee:M}=A;if(!I||!E||!g)return{error:"No addresses"};if("siacoin"===w){let A=await B.post({params:{id:Q},payload:{amount:D.plus(M).toString(),changeAddress:E,transaction:{minerFees:[M.toString()],siacoinOutputs:[{value:D.toString(),address:I}]}}});return A.error?{error:A.error}:{fundedTransaction:A.data.transaction,toSign:A.data.toSign}}if("siafund"===w){let A=[],w=await C.post({params:{id:Q},payload:{amount:c,changeAddress:E,claimAddress:g,transaction:{minerFees:[M.toString()],siafundOutputs:[{value:c,address:I}]}}});return w.error?{error:w.error}:(A.push(...w.data.toSign),(w=await B.post({params:{id:Q},payload:{amount:M.toString(),changeAddress:E,transaction:w.data.transaction}})).error)?{error:w.error}:(A.push(...w.data.toSign),{fundedTransaction:w.data.transaction,toSign:A})}},[B,C,Q])}let AG={mnemonic:""};function Ap(A){let{params:Q,transactionId:B}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(Ak,{params:Q,transactionId:B}),(0,C.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(c.Z$8,{})}),(0,C.jsx)(E.xvT,{children:"Transaction successfully broadcast."})]})]})}function Ar(A){let{trigger:Q,open:B,onOpenChange:I,sendParams:g,signedTxnId:w,step:D,send:c,compose:M,setStep:s,controls:y}=A;return(0,C.jsx)(E.VqE,{trigger:Q,open:B,onOpenChange:A=>{A||(M.reset(),c.reset(),s("compose")),I(A)},title:"Send",onSubmit:y?y.handleSubmit:void 0,controls:(null==y?void 0:y.form)&&(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.ZqQ,{form:y.form,children:y.submitLabel})}),contentVariants:{className:"w-[450px]"},children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.tIK,{onChange:A=>{s(A)},activeStep:D,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,C.jsx)(E.Z0O,{className:"w-full mt-4"}),"compose"===D&&M.el,"send"===D&&c.el,"done"===D&&(0,C.jsx)(Ap,{params:g,transactionId:w})]})})}let Aa={receiveAddress:"",changeAddress:"",claimAddress:"",mode:"siacoin",siacoin:new(L())(0),siafund:0,fee:new(L())(0)};function Ao(A){var Q,B;let{params:w,trigger:D,open:c,onOpenChange:y}=A,{walletId:n}=w||{},h=(0,g.tM)({disabled:!n,params:{id:n}}),{dataset:K}=N({id:n}),t=(0,I.useMemo)(()=>{var A;return new(L())((null===(A=h.data)||void 0===A?void 0:A.siacoins)||0)},[h.data]),U=(0,I.useMemo)(()=>{var A;return new(L())((null===(A=h.data)||void 0===A?void 0:A.siafunds)||0)},[h.data]),[G,r]=(0,I.useState)("compose"),[a,o]=(0,I.useState)(),[e,J]=(0,I.useState)(Aa),S=Ah({balanceSc:t,balanceSf:U,defaultChangeAddress:null==K?void 0:null===(Q=K[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==K?void 0:null===(B=K[0])||void 0===B?void 0:B.address,onComplete:A=>{J(Q=>({...Q,...A})),r("send")}}),F=function(A){let{walletId:Q,params:B,onConfirm:w}=A,D=function(){let{wallet:A,cacheWalletMnemonic:Q}=(0,s.r)(),B=null==A?void 0:A.id,C=(0,g.jL)({disabled:!B,params:{id:B}}),E=(0,g.cd)({disabled:!B,params:{id:B}}),{dataset:w}=N({id:B}),D=(0,g.ek)(),c=(0,g.gM)(),M=Ai(),y=AL(),n=AU({cancel:y});return(0,I.useCallback)(async A=>{let{mnemonic:I,params:g}=A;if(!w)return{error:"No addresses found"};let{fundedTransaction:s,toSign:h,error:K}=await M(g);if(K)return{fundedTransaction:s,error:K};let{signedTransaction:t,error:U}=function(A){let{mnemonic:Q,transaction:B,toSign:C,consensusState:I,consensusNetwork:E,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A;if(!I)return{error:"No consensus state"};if(!g)return{error:"No addresses"};if(!w)return{error:"No outputs"};let{error:c}=AK({toSign:C,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(c)return{error:c};for(let[A,c]of C.entries()){let{address:C,error:M}=At({toSignId:c,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(M)return{error:M};let s=(0,k.K)().wallet.keyPairFromSeedPhrase(Q,C.metadata.index);if(s.error)return{error:s.error};let{signature:y,error:n}=(0,k.K)().wallet.signTransactionV1(I,E,B,A,s.privateKey);if(n)return{error:n};B.signatures[A].signature=y}return{signedTransaction:B}}({mnemonic:I,transaction:s,toSign:h,consensusState:D.data,consensusNetwork:c.data,addresses:w,siacoinOutputs:C.data,siafundOutputs:E.data});return U?(y(s),{error:U}):(Q(B,I),n({signedTransaction:t}))},[y,w,M,B,D.data,c.data,C.data,E.data,Q,n])}(),{isSeedCached:c}=function(A){let{dataset:Q}=(0,s.r)(),B=null==Q?void 0:Q.find(Q=>Q.id===A),C=null==B?void 0:B.state.mnemonic;return{cachedMnemonic:C,isSeedCached:!!C}}(Q),{dataset:y}=(0,s.r)(),n=null==y?void 0:y.find(A=>A.id===Q),h=null==n?void 0:n.metadata.mnemonicHash,K=(0,M.cI)({mode:"all",defaultValues:AG}),[t,U]=(0,I.useState)("password"),L=(0,I.useMemo)(()=>(function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C,isSeedCached:I}=A;return{mnemonic:I?{title:"Seed",type:"text",validation:{}}:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}})({mnemonicFieldType:t,setMnemonicFieldType:U,mnemonicHash:h,isSeedCached:c}),[t,U,h,c]),G=(0,I.useCallback)(async A=>{let{error:Q}=await D({mnemonic:n.state.mnemonic||A.mnemonic,params:B});if(Q){(0,E.OHV)({title:Q});return}w({})},[D,B,w,n]),r=(0,E.WsO)(L),a=(0,I.useMemo)(()=>K.handleSubmit(G,r),[K,G,r]),o=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(p,{walletId:Q,name:"mnemonic",form:K,fields:L,actionText:"complete the transaction"}),(0,C.jsx)(Ak,{params:B})]});return{form:K,el:o,handleSubmit:a,reset:()=>K.reset(AG)}}({walletId:n,params:e,onConfirm:A=>{let{transactionId:Q}=A;o(Q),r("done")}}),l=(0,I.useMemo)(()=>"compose"===G?{submitLabel:"Generate transaction",form:S.form,handleSubmit:S.handleSubmit,reset:S.reset}:"send"===G?{submitLabel:"Sign and broadcast transaction",form:F.form,handleSubmit:F.handleSubmit,reset:F.reset}:void 0,[G,S,F]);return(0,C.jsx)(Ar,{trigger:D,open:c,onOpenChange:A=>{A||(S.reset(),F.reset(),r("compose")),y(A)},controls:l,compose:S,send:F,sendParams:e,signedTxnId:a,step:G,setStep:r})}function AN(A){let{title:Q,isSigned:B,isConnected:I,details:g,actions:w}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):I?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsx)("div",{className:"flex gap-1 justify-between items-center",children:w})]}),g]})})}function Ae(A){let{waitingForUser:Q,isConnected:B,isSigned:I,sign:g}=A;return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:I?(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction"}):B&&Q?(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):B?(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction",actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:g,children:"Sign"})})}):(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var AJ=B(48834).lW;async function AS(A){let{device:Q,transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g}=A;if(!I)return{error:"No addresses"};if(!E)return{error:"No outputs"};let{error:w}=AK({transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g});if(w)return{error:w};for(let[A,w]of C.entries()){let C=At({toSignId:w,addresses:I,siacoinOutputs:E,siafundOutputs:g,transaction:B});if(C.error)return{error:C.error};let D=await AF({device:Q,transaction:B,signatureIndex:A,keyIndex:C.address.metadata.index});if(D.error)return{error:D.error}}return{transaction:B}}async function AF(A){let Q,{device:B,transaction:C,signatureIndex:I,keyIndex:E}=A,{encodedTransaction:g,error:w}=(0,k.K)().wallet.encodeTransaction(C);if(w)return{error:w};let D=AJ.from(g,"utf-8"),c=0>function(A,Q){let B=/[^0-9.]/gi,C=A.replace(B,"").split("."),I=Q.replace(B,"").split("."),E=Math.max(C.length,I.length);for(let A=0;AB)return 1}return 0}(await B.sia.getVersion(),"0.4.5");try{Q=c?await B.sia.signTransactionV044(D,I,E):await B.sia.signTransaction(D,I,E,0)}catch(A){return{error:A.message}}return C.signatures[I].signature=Q,{transaction:C}}let Al={isConnected:!1,isSigned:!1};function AY(A){var Q,B;let{params:w,trigger:D,open:c,onOpenChange:y}=A,{walletId:n}=w||{},[h,k]=(0,I.useState)("compose"),[K,t]=(0,I.useState)(),[U,i]=(0,I.useState)(Aa),G=(0,g.tM)({disabled:!n,params:{id:n}}),{dataset:p}=N({id:n}),r=Ah({balanceSc:(0,I.useMemo)(()=>{var A;return new(L())((null===(A=G.data)||void 0===A?void 0:A.siacoins)||0)},[G.data]),balanceSf:(0,I.useMemo)(()=>{var A;return new(L())((null===(A=G.data)||void 0===A?void 0:A.siafunds)||0)},[G.data]),defaultChangeAddress:null==p?void 0:null===(Q=p[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==p?void 0:null===(B=p[0])||void 0===B?void 0:B.address,onComplete:A=>{i(Q=>({...Q,...A})),k("send")}}),a=function(A){let{params:Q,step:B,onConfirm:w}=A,D=(0,M.cI)({mode:"all",defaultValues:Al}),c=D.watch("isConnected"),y=D.watch("isSigned"),{device:n,error:h}=(0,W.c)(),k=AL(),K=function(A){let{cancel:Q}=A,{wallet:B}=(0,s.r)(),C=null==B?void 0:B.id,E=(0,g.jL)({disabled:!C,params:{id:C}}),w=(0,g.cd)({disabled:!C,params:{id:C}}),{dataset:D}=N({id:C}),{device:c}=(0,W.c)();return(0,I.useCallback)(async A=>{let{fundedTransaction:B,toSign:C}=A;if(!c||!B)return;let I=await AS({device:c,transaction:B,toSign:C,addresses:D,siacoinOutputs:E.data,siafundOutputs:w.data});return I.error?(Q(B),{error:I.error}):{signedTransaction:I.transaction}},[c,D,E.data,w.data,Q])}({cancel:k}),t=AU({cancel:k}),U=function(A){let{fund:Q,cancel:B,sign:C}=A;return(0,I.useCallback)(async A=>{let{fundedTransaction:I,toSign:E,error:g}=await Q(A);if(g)return{fundedTransaction:I,error:g};let{signedTransaction:w,error:D}=await C({fundedTransaction:I,toSign:E});return D?(B(I),{fundedTransaction:I,error:D}):{signedTransaction:w}},[Q,C,B])}({cancel:k,fund:Ai(),sign:K}),[L,i]=(0,I.useState)(!1),[G,p]=(0,I.useState)();(0,I.useEffect)(()=>{"compose"===B&&p(void 0)},[B]),(0,I.useEffect)(()=>{n?D.setValue("isConnected",!0):(i(!1),D.setValue("isConnected",!1))},[D,n]),(0,I.useEffect)(()=>{h?D.setError("isConnected",{message:h.message}):D.clearErrors("isConnected")},[D,h]),(0,I.useEffect)(()=>{G||D.setValue("isSigned",!1)},[D,G]);let r=(0,I.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:A=>A||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:A=>A||"Transaction must be signed"}}}}),[]),a=(0,I.useCallback)(async A=>{if(!A.isConnected)return;let{error:Q}=await t({signedTransaction:G});if(Q){(0,E.OHV)({title:Q});return}w({})},[t,G,w]),o=(0,E.WsO)(r),e=(0,I.useMemo)(()=>D.handleSubmit(a,o),[D,a,o]),J=(0,I.useCallback)(async()=>{i(!0);let{signedTransaction:A,error:B}=await U(Q);B?(0,E.OHV)({title:B}):(p(A),D.setValue("isSigned",!0)),i(!1)},[D,U,Q]),S=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"isConnected"}),(0,C.jsx)(E.cp7,{name:"isConnected",form:D}),(0,C.jsx)(_,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Signature",name:"isSigned"}),(0,C.jsx)(E.cp7,{name:"isSigned",form:D}),(0,C.jsx)(Ae,{waitingForUser:L,isConnected:c,isSigned:y,sign:J})]})]}),(0,C.jsx)(Ak,{params:Q})]});return{form:D,el:S,handleSubmit:e,cancel:()=>{G&&k(G)},reset:()=>D.reset(Al)}}({walletId:n,step:h,params:U,onConfirm:A=>{let{transactionId:Q}=A;t(Q),k("done")}}),o=(0,I.useMemo)(()=>"compose"===h?{submitLabel:"Generate transaction",form:r.form,handleSubmit:r.handleSubmit,reset:r.reset}:"send"===h?{submitLabel:"Sign and broadcast transaction",form:a.form,handleSubmit:a.handleSubmit,reset:a.reset}:void 0,[h,r,a]);return(0,C.jsx)(Ar,{trigger:D,open:c,onOpenChange:A=>{A||(r.reset(),a.reset(),k("compose")),y(A)},controls:o,compose:r,send:a,sendParams:U,signedTxnId:K,step:h,setStep:k})}function AH(A){let{params:Q,trigger:B,open:g,onOpenChange:w}=A,{walletId:D}=Q||{},{dataset:c,cacheWalletMnemonic:y}=(0,s.r)(),n=null==c?void 0:c.find(A=>A.id===D),h={mnemonic:""},[k,K]=(0,I.useState)("password"),t=(0,M.cI)({mode:"all",defaultValues:h}),{handleOpenChange:U,closeAndReset:L}=(0,E.t0Y)({form:t,onOpenChange:w,defaultValues:h}),G=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}}({mnemonicHash:null==n?void 0:n.metadata.mnemonicHash,mnemonicFieldType:k,setMnemonicFieldType:K}),r=(0,I.useCallback)(A=>{y(D,A.mnemonic),L()},[D,y,L]),a=(0,E.WsO)(G);return(0,C.jsx)(E.VqE,{title:"Unlock wallet: ".concat(null==n?void 0:n.name),trigger:B,open:g,onOpenChange:U,contentVariants:{className:"w-[500px]"},onSubmit:t.handleSubmit(r,a),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:t,variant:"accent",size:"medium",children:"Continue"})}),children:(0,C.jsx)(p,{walletId:null==n?void 0:n.id,form:t,fields:G,name:"mnemonic"})})}function Af(A){let{open:Q,onOpenChange:B}=A,{walletAutoLockTimeout:I,setWalletAutoLockTimeout:g,setWalletAutoLockEnabled:w,walletAutoLockEnabled:D}=(0,s.r)();return(0,C.jsx)(E.DLL,{open:Q,onOpenChange:B,securityEl:(0,C.jsx)(E.bZj,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(c.RdX,{})}),(0,C.jsx)(E.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,C.jsx)(E.rsf,{size:"medium",checked:D,onCheckedChange:A=>w(A)}),(0,C.jsxs)(E.PhF,{disabled:!D,value:String(I),onChange:A=>{g(Number(A.currentTarget.value))},children:[(0,C.jsx)(E.Wxm,{value:(0,d.sW)(5),children:"5 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(10),children:"10 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(20),children:"20 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(30),children:"30 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(60),children:"1 hour"})]})]}),(0,C.jsx)(E.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function Ad(A){let{title:Q,isNew:B,address:I,details:g,actions:w,remove:D}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[I?B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[w,B&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(c.PcV,{})})]})]}),g]})})}function Au(A){let{index:Q,address:B,isNew:g,setAddress:w,remove:D}=A,{device:c,error:M,setError:s}=(0,W.c)(),[y,n]=(0,I.useState)(!1),h=(0,I.useCallback)(async()=>{if(c){if(M){(0,E.OHV)({title:"Error connecting to Ledger",body:M.message});return}try{n(!0);let A=await c.sia.verifyStandardAddress(Q);w({index:Q,address:A.address,publicKey:A.publicKey})}catch(A){s(A),console.log(A)}n(!1)}},[Q,c,M,s,w]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:B?(0,C.jsx)(Ad,{title:"Address ".concat(Q),isNew:g,remove:D,address:B,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:B,label:"public key 0",color:"subtle",maxLength:30})})}):y?(0,C.jsx)(Ad,{title:"Address ".concat(Q),isNew:g,remove:D,details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,C.jsx)(Ad,{title:"Address ".concat(Q),isNew:g,remove:D,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:h,children:"Generate"})})})})}function AR(A){return{isNew:!0,address:"",publicKey:"",index:A}}function Aj(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c,walletJustCreated:y}=Q||{},{dataset:n,lastIndex:h,datasetCount:K}=N({id:c}),t=(0,f.n)(),{dataset:U}=(0,s.r)(),i=null==U?void 0:U.find(A=>A.id===c),G=h+1,p=function(A){let{nextIndex:Q,rescanStartHeight:B}=A;return{ledgerConnected:!1,index:new(L())(Q),count:new(L())(1),...S({rescanStartHeight:B})}}({nextIndex:G,rescanStartHeight:t.nodeBlockHeight}),r=(0,M.cI)({mode:"all",defaultValues:p}),{disconnect:a,error:o}=(0,W.c)();(0,I.useEffect)(()=>{!y&&w&&a()},[w]),(0,I.useEffect)(()=>{r.formState.isSubmitting||r.setValue("index",new(L())(G))},[G]);let e=r.watch("index"),l=r.watch("count"),Y=r.watch("shouldRescan"),u={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:A=>A||"Ledger must be connected"}}},index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"1",validation:{required:"required",max:1e3}},...J()},R=(0,g.yi)();(0,I.useEffect)(()=>{o?r.setError("ledgerConnected",{message:o.message}):r.clearErrors("ledgerConnected")},[r,o]);let[j,b]=(0,I.useState)({});(0,I.useEffect)(()=>{w&&y&&b({0:AR(0)})},[w]);let m=(0,I.useCallback)(()=>{if(!e||!l)return;let A={...j};for(let Q=e.toNumber();Q{b(Q=>{let B={...Q};return delete B[A],B})},[]),T=(0,I.useCallback)(A=>{let{index:Q,address:B,publicKey:C}=A;b(A=>{let I={...A};return I[Q]={...I[Q],address:B,publicKey:C},I})},[b]),P=(0,I.useMemo)(()=>{let A={};for(let[Q,{address:B,publicKey:C}]of Object.entries(j)){let I=null==n?void 0:n.find(A=>A.metadata.index===Number(Q));A[Q]={isNew:!I,index:Number(Q),address:(null==I?void 0:I.address)||B,publicKey:(null==I?void 0:I.metadata.unlockConditions.publicKeys[0])||C}}return A},[n,j]),O=(0,I.useMemo)(()=>Object.entries(P).filter(A=>{let[Q,B]=A;return B.isNew&&B.address}).map(A=>{let[Q,B]=A;return B}),[P]),z=(0,I.useCallback)(async()=>{let A=O.length;function Q(A,Q,B){(0,E.OHV)({title:"Error generating addresses",body:Q>0?"".concat(Q+1,"/").concat(A," addresses were generated and saved. Batch failed on with: ").concat(B):B})}for(let[B,{address:C,publicKey:I,index:E}]of O.entries()){let g=(0,k.K)().wallet.standardUnlockConditions(I);if(g.error){Q(A,B,g.error);return}let w={index:E,unlockConditions:g.unlockConditions},D=await R.put({params:{id:c},payload:{address:C,description:"",metadata:w}});if(D.error){Q(A,B,D.error);return}}(0,E.OPV)({title:"Added ".concat((0,d._6)(A,"address","addresses"))})},[R,c,O]),{handleOpenChange:x,closeAndReset:V}=(0,E.t0Y)({form:r,onOpenChange:A=>{b({}),D(A)},defaultValues:p}),v=H(),X=(0,I.useCallback)(async A=>{O.length>0&&await z(),await v(A),V()},[O,z,V,v]);return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==i?void 0:i.name,": generate addresses"),trigger:B,open:w,onOpenChange:x,contentVariants:{className:"w-[500px]"},onSubmit:r.handleSubmit(X),controls:(0,C.jsxs)("div",{className:"flex gap-1 justify-end",children:[(0,C.jsx)(E.zxk,{size:"medium",variant:"gray",onClick:V,children:"Close"}),(O.length>0||Y)&&(0,C.jsx)(E.ZqQ,{form:r,size:"medium",variant:Y?"red":"accent",children:O.length>0?"Save ".concat((0,d._6)(O.length,"address","addresses")).concat(Y?" and rescan":""):"Rescan"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.xvT,{children:["Wallet currently has ",(0,d._6)(K,"address","addresses")," ","with a highest index of ",h,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnected"}),(0,C.jsx)(E.cp7,{name:"ledgerConnected",form:r}),(0,C.jsx)(_,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:r,fields:u,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:r,fields:u,name:"count"})}),(0,C.jsx)(E.zxk,{onClick:m,children:"Add"})]}),(0,C.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(P).map(A=>{let[Q,{address:B,isNew:I}]=A;return(0,C.jsx)(Au,{isNew:I,address:B,setAddress:T,index:Number(Q),remove:()=>Z(Number(Q))},Q)})})]}),(0,C.jsx)(F,{form:r,fields:u})]})})}function Ab(A){let{trigger:Q,open:B,onOpenChange:g}=A,w=function(A){let{rescanStartHeight:Q}=A;return{...S({rescanStartHeight:Q}),shouldRescan:!0}}({rescanStartHeight:(0,f.n)().nodeBlockHeight}),D=(0,M.cI)({mode:"all",defaultValues:w}),{handleOpenChange:c,closeAndReset:s}=(0,E.t0Y)({form:D,onOpenChange:g,defaultValues:w}),y={...J()},n=H(),h=(0,I.useCallback)(async A=>{n(A),s()},[s,n]);return(0,C.jsx)(E.VqE,{title:"Rescan the blockchain",trigger:Q,open:B,onOpenChange:c,contentVariants:{className:"w-[500px]"},onSubmit:D.handleSubmit(h),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:D,variant:"red",size:"medium",children:"Rescan"})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Rescan the blockchain from the specified start height to find any missing transaction activity across all wallets."}),(0,C.jsx)("div",{className:"w-[100px]",children:(0,C.jsx)(E.jIp,{form:D,fields:y,name:"rescanStartHeight"})}),(0,C.jsxs)("div",{className:"pt-2 flex flex-col gap-2",children:[(0,C.jsx)(l,{}),(0,C.jsx)(Y,{})]})]})})}let Am=(0,I.createContext)({}),AZ=()=>(0,I.useContext)(Am);function AT(A){let{children:Q}=A,B=function(){let[A,Q]=(0,I.useState)(),[B,C]=(0,I.useState)({}),E=(0,I.useCallback)((A,B)=>{C(Q=>({...Q,[A]:B})),Q(A)},[C,Q]),g=(0,I.useCallback)(()=>{C(Q=>({...Q,[A]:void 0})),Q(void 0)},[Q,C,A]),w=(0,I.useCallback)(A=>{A||g()},[g]);return{dialog:A,params:B,openDialog:E,confirm,closeDialog:g,onOpenChange:w}}();return(0,C.jsx)(Am.Provider,{value:B,children:Q})}function AP(){let{openDialog:A,onOpenChange:Q,closeDialog:B,dialog:I,params:w}=AZ(),c=(0,g.Wl)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Af,{open:"settings"===I,onOpenChange:Q}),(0,C.jsx)(D,{open:"walletAddType"===I,params:w.walletAddType,onOpenChange:Q=>Q?A(I,w.walletAddType):B()}),(0,C.jsx)(t,{open:"walletAddNew"===I,params:w.walletAddNew,onOpenChange:Q=>Q?A(I,w.walletAddNew):B()}),(0,C.jsx)(AB,{open:"walletAddRecover"===I,params:w.walletAddRecover,onOpenChange:Q=>Q?A(I,w.walletAddRecover):B()}),(0,C.jsx)(AA,{open:"walletAddLedger"===I,params:w.walletAddLedger,onOpenChange:Q=>Q?A(I,w.walletAddLedger):B()}),(0,C.jsx)(AI,{open:"walletAddWatch"===I,params:w.walletAddWatch,onOpenChange:Q=>Q?A(I,w.walletAddWatch):B()}),(0,C.jsx)(u,{open:"walletAddressesGenerate"===I,params:w.walletAddressesGenerate,onOpenChange:Q=>Q?A(I,w.walletAddressesGenerate):B()}),(0,C.jsx)(Aj,{open:"walletLedgerAddressGenerate"===I,params:w.walletLedgerAddressGenerate,onOpenChange:Q=>Q?A(I,w.walletLedgerAddressGenerate):B()}),(0,C.jsx)(AD,{open:"walletAddressesAdd"===I,params:w.walletAddressesAdd,onOpenChange:Q=>Q?A(I,w.walletAddressesAdd):B()}),(0,C.jsx)(m,{open:"walletRemove"===I,params:w.walletRemove,onOpenChange:Q=>Q?A(I,w.walletRemove):B()}),(0,C.jsx)(P,{open:"walletUpdate"===I,params:w.walletUpdate,onOpenChange:Q=>Q?A(I,w.walletUpdate):B()}),(0,C.jsx)(AH,{open:"walletUnlock"===I,params:w.walletUnlock,onOpenChange:Q=>Q?A(I,w.walletUnlock):B()}),(0,C.jsx)(Ab,{open:"walletsRescan"===I,params:w.walletsRescan,onOpenChange:Q=>Q?A(I,w.walletsRescan):B()}),(0,C.jsx)(Z,{open:"addressUpdate"===I,params:w.addressUpdate,onOpenChange:Q=>Q?A(I,w.addressUpdate):B()}),(0,C.jsx)(AM,{open:"addressRemove"===I,params:w.addressRemove,onOpenChange:Q=>Q?A(I,w.addressRemove):B()}),(0,C.jsx)(E.D_D,{open:"connectPeer"===I,params:w.connectPeer,connect:A=>c.post({payload:A}),onOpenChange:Q=>Q?A(I,w.connectPeer):B()}),(0,C.jsx)(Ao,{open:"walletSendSeed"===I,params:w.walletSendSeed,onOpenChange:Q=>Q?A(I,w.walletSendSeed):B()}),(0,C.jsx)(AY,{open:"walletSendLedger"===I,params:w.walletSendLedger,onOpenChange:Q=>Q?A(I,w.walletSendLedger):B()}),(0,C.jsx)(E.QHy,{open:"confirm"===I,params:w.confirm,onOpenChange:Q=>Q?A(I,w.confirm):B()})]})}},94589:function(A,Q,B){"use strict";B.d(Q,{Yl:function(){return U},hI:function(){return t}});var C=B(52322),I=B(63392),E=B(28135),g=B(88464),w=B(2784);let D=["transactionId","type","height","timestamp","amount","fee"],c=[];var M=B(57165);let s=[{id:"transactionId",label:"transaction ID",category:"general",render:A=>{let{data:{id:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"transaction ID",type:"transaction",siascanUrl:B.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:A=>{let{data:{txType:Q}}=A;return(0,C.jsx)(I.Cts,{size:"small",children:(0,g.pX)(Q)})}},{id:"height",label:"height",category:"general",contentClassName:"justify-end",render:A=>{let{data:{height:Q,pending:B,maturityHeight:E,isMature:g}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):Q?Q&&E&&E>Q?(0,C.jsx)(I.ua7,{content:g?"The maturity height has been reached.":"The maturity height has not been reached, therefore the output is still locked.",children:(0,C.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(I.xvT,{size:"12",font:"mono",ellipsis:!0,color:g?"green":"red",className:"flex gap-1 items-center",children:[g?(0,C.jsx)(M.VmF,{}):(0,C.jsx)(M.Lur,{}),E.toLocaleString()]})}),(0,C.jsxs)("div",{className:"flex justify-between items-end gap-1",children:[(0,C.jsx)("div",{className:"pl-[8px] pb-[6px]",children:(0,C.jsx)("div",{className:"border-l border-b border-gray-800 dark:border-graydark-800 h-[20px] w-[7px]"})}),(0,C.jsx)(I.xvT,{size:"12",font:"mono",color:"subtle",ellipsis:!0,children:Q.toLocaleString()})]})]})}):(0,C.jsx)(I.xvT,{size:"12",font:"mono",ellipsis:!0,children:Q.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",contentClassName:"justify-end",render:A=>{let{data:{timestamp:Q,pending:B}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,g.rN)(Q,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{amountSc:Q,amountSf:B}}=A;return Q?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!Q.isZero()&&(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",value:Q}),!!B&&(0,C.jsx)(I.Sby,{size:"12",value:B})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{fee:Q}}=A;return Q?(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:Q}):null}},{id:"contractId",label:"contract ID",category:"general",render:A=>{let{data:{contractId:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"contract ID",siascanUrl:B.siascanUrl}):null}}];var y=B(5632),n=B(66510),h=B(99634),k=B(16211);let K=(0,w.createContext)({}),t=()=>(0,w.useContext)(K);function U(A){let{children:Q}=A,B=function(){let A=(0,y.useRouter)(),Q=A.query.id,B=Number(A.query.limit||100),C=Number(A.query.offset||0),{filters:M,setFilter:K,removeFilter:t,removeLastFilter:U,resetFilters:L}=(0,I.Uu5)(),i=(0,E.wh)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:h.h}}}),G=(0,E.sG)({disabled:!Q,params:{limit:B,offset:C,id:Q},config:{swr:{refreshInterval:h.h}}}),p=(0,k.n)(),r=(0,w.useMemo)(()=>{if(!G.data||!i.data)return null;let A=i.data.map(A=>{let Q=(0,g.Jz)(A),B=(0,g.T6)(A),C=(0,g.hq)(A);return{id:A.id,timestamp:0,pending:!0,type:A.type,txType:(0,g.uC)(A),isMature:!1,amountSc:Q,amountSf:B,fee:C}}),Q=G.data.map(A=>{let Q=(0,g.Jz)(A),B=(0,g.T6)(A),C=(0,g.hq)(A),I=(0,g.hR)(A),E=A.maturityHeight<=p.nodeBlockHeight;return{id:A.id,type:A.type,txType:(0,g.uC)(A),timestamp:new Date(A.timestamp).getTime(),maturityHeight:A.maturityHeight,isMature:E,height:A.index.height,pending:!1,amountSc:Q,amountSf:B,fee:C,contractId:I}});return[...A.reverse(),...Q]},[G.data,i.data,p.nodeBlockHeight]),{configurableColumns:a,enabledColumns:o,sortableColumns:N,toggleColumnVisibility:e,setColumnsVisible:J,setColumnsHidden:S,toggleSort:F,setSortDirection:l,setSortField:Y,sortField:H,sortDirection:f,resetDefaultColumnVisibility:d}=(0,I.oy6)("walletd/v0/events",{columns:s,columnsDefaultVisible:D,sortOptions:c,defaultSortField:"id"}),u=(0,w.useMemo)(()=>s.filter(A=>A.fixed||o.includes(A.id)),[o]),R=G.isValidating||i.isValidating,j=G.error||i.error,b=(0,I.c2j)(r,R,j,M),m=(0,n.B)(),Z=(0,w.useMemo)(()=>({siascanUrl:m}),[m]);return{dataState:b,error:G.error,pageCount:(null==r?void 0:r.length)||0,columns:u,dataset:r,cellContext:Z,configurableColumns:a,enabledColumns:o,sortableColumns:N,toggleColumnVisibility:e,setColumnsVisible:J,setColumnsHidden:S,toggleSort:F,setSortDirection:l,setSortField:Y,sortField:H,sortDirection:f,resetDefaultColumnVisibility:d,filters:M,setFilter:K,removeFilter:t,removeLastFilter:U,resetFilters:L,offset:C,limit:B}}();return(0,C.jsx)(K.Provider,{value:B,children:Q})}},71508:function(A,Q,B){"use strict";B.d(Q,{c:function(){return M},d:function(){return s}});var C=B(52322),I=B(65597),E=B(27748),g=B(35415),w=B.n(g),D=B(2784);let c=(0,D.createContext)({}),M=()=>(0,D.useContext)(c);function s(A){let{children:Q}=A,B=function(){let[A,Q]=(0,D.useState)(!1),[B,C]=(0,D.useState)(),[g,c]=(0,D.useState)(),M=(0,D.useCallback)(()=>{if(B){try{B.sia.close(),c(void 0)}catch(A){console.log(A)}C(void 0)}},[B]),s=(0,D.useCallback)(async A=>{let B=null;Q(!0);try{switch(A){case"HID":(B=await E.Z.openConnected())||(B=await E.Z.create());break;case"Bluetooth":B=await I.Z.create();break;default:throw Error("Unsupported transport method: ".concat(A))}if(B){c(void 0);let I=new(w())(B);C({type:A,sia:I,transport:B}),Q(!1)}}catch(A){c(A),Q(!1)}},[]),y=(0,D.useCallback)(async()=>{if(!B){c(Error("No device connected"));return}Q(!0);try{let A=await B.sia.verifyPublicKey(0);return c(void 0),C(Q=>({...Q,publicKey0:A.publicKey,address0:A.address})),Q(!1),A}catch(A){Q(!1),c(A)}},[B]);return(0,D.useEffect)(()=>{if(!(null==B?void 0:B.transport))return;let A=setInterval(async()=>{(null==B?void 0:B.transport._disconnectEmitted)&&C(void 0)},2e3);return()=>clearInterval(A)},[null==B?void 0:B.transport]),{connect:s,verify:y,disconnect:M,device:B,error:g,setError:c,waitingForUser:A}}();return(0,C.jsx)(c.Provider,{value:B,children:Q})}},54525:function(A,Q,B){"use strict";B.d(Q,{k:function(){return o},r:function(){return a}});var C=B(52322),I=B(63392),E=B(28135),g=B(2784),w=B(18700),D=B(57165),c=B(88464),M=B(40361),s=B(68382),y=B(6391),n=B.n(y),h=B(75061);let k=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(h.g,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},wallet:Q})}},{id:"details",label:"name",category:"general",fixed:!0,render:A=>{let{data:{id:Q,name:B,description:E}}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.xvT,{weight:"bold",ellipsis:!0,children:B||Q}),E&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:E})}),children:(0,C.jsx)(I.nvN,{size:"12",children:E.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(A){let{data:{id:Q}}=A,B=(0,E.tM)({params:{id:Q}});return B.data?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(n())(B.data.siacoins)}),!!B.data.siafunds&&(0,C.jsx)(I.Sby,{size:"12",variant:"value",value:B.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:A=>{var Q,B;let{data:{metadata:{type:E}}}=A;return(0,C.jsx)(I.ua7,{content:null===(Q=s._[E])||void 0===Q?void 0:Q.title,children:(0,C.jsxs)(I.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,C.jsx)(I.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(B=s._[E])||void 0===B?void 0:B.icon}),E]})})}},{id:"status",label:"status",category:"general",render:A=>{let{data:Q,context:{walletAutoLockEnabled:B,walletAutoLockTimeout:E}}=A,{type:g}=Q.metadata,{status:w,activityAt:c}=Q.state,{unlock:s,lock:y}=Q.actions;if("seed"===g){let A=new Date().getTime()-c,Q=(0,M.l)(Math.max(E-A,0)),g=B?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(Q.amount.toFixed(0)," more ").concat(Q.units,", manually locked, or the app is closed."):"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed.";return(0,C.jsx)(I.zxk,{tip:"unlocked"===w?g:"The wallet is currently locked.",color:"unlocked"===w?"contrast":"verySubtle",variant:"ghost",onClick:A=>{A.stopPropagation(),"unlocked"===w?y():s()},children:"unlocked"===w?(0,C.jsx)(D.VmF,{}):(0,C.jsx)(D.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:A=>{let{data:{createdAt:Q}}=A;return Q?(0,C.jsx)(I.xvT,{size:"12",children:(0,c.rN)(Q,{dateStyle:"medium"})}):null}}];var K=B(5632),t=B(4300),U=B(27429),L=B(92762),i=B(64245),G=B(36219),p=B(99634);let r=(0,g.createContext)({}),a=()=>(0,g.useContext)(r);function o(A){let{children:Q}=A,B=function(){let A=(0,E.rB)({config:{swr:{refreshInterval:p.h}}}),Q=(0,K.useRouter)(),{openDialog:B}=(0,i.Rh)(),{setOnLockCallback:C}=(0,G.Hv)(),{mnemonicCache:D,walletActivityAt:M,cacheWalletMnemonic:s,cachedMnemonicCount:y,lockAllWallets:n,walletAutoLockTimeout:h,setWalletAutoLockTimeout:r,setWalletAutoLockEnabled:a,walletAutoLockEnabled:o}=function(){let[A,Q]=(0,L.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[B,C]=(0,L.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,c.sW)(5)}),[I,E]=(0,g.useState)({}),[w,D]=(0,g.useState)({}),M=(0,g.useMemo)(()=>Object.keys(w).length,[w]),s=(0,g.useCallback)(A=>{E(Q=>({...Q,[A]:new Date().getTime()}))},[E]),y=(0,g.useCallback)((A,Q)=>{D(B=>({...B,[A]:Q})),Q&&s(A)},[D,s]),n=(0,g.useCallback)(()=>{if(!A)return;let Q=new Date().getTime()-B;for(let[A,B]of Object.entries(w))B&&(I[A]||0){D({})},[D]),k=(0,K.useRouter)(),i=(0,g.useCallback)(()=>{k.pathname.startsWith(t._.wallet.base)&&s(k.query.id)},[k,s]);return(0,U.Yp)({onAction:i,throttle:5e3,eventsThrottle:5e3}),(0,g.useEffect)(()=>{if(!A)return;let Q=setInterval(()=>{n()},5e3);return()=>{clearInterval(Q)}},[A]),{walletActivityAt:I,updateWalletActivityAt:s,mnemonicCache:w,cacheWalletMnemonic:y,lockAllWallets:h,cachedMnemonicCount:M,walletAutoLockTimeout:B,setWalletAutoLockTimeout:C,setWalletAutoLockEnabled:Q,walletAutoLockEnabled:A}}();(0,g.useEffect)(()=>{C("wallets",()=>{n()})},[]);let N=(0,g.useMemo)(()=>A.data?A.data.map(A=>{let{id:C,name:I,description:E,dateCreated:g,lastUpdated:w,metadata:c}=A;return{id:C,name:I,description:E,createdAt:new Date(g).getTime()||0,updatedAt:new Date(w).getTime()||0,metadata:c||{},raw:A,state:{mnemonic:D[C],status:D[C]?"unlocked":"locked",activityAt:M[C]},actions:{unlock:()=>B("walletUnlock",{walletId:C}),lock:()=>s(C,void 0)},onClick:()=>Q.push({pathname:t._.wallet.view,query:{id:C}})}}):null,[Q,A.data,D,M,B,s]),e=null==N?void 0:N.find(A=>A.id===Q.query.id),{filters:J,setFilter:S,removeFilter:F,removeLastFilter:l,resetFilters:Y}=(0,I.Wdu)(),{configurableColumns:H,enabledColumns:f,sortableColumns:d,toggleColumnVisibility:u,setColumnsVisible:R,setColumnsHidden:j,toggleSort:b,setSortDirection:m,setSortField:Z,sortField:T,sortDirection:P,resetDefaultColumnVisibility:O}=(0,I.oy6)("walletd/v0/wallets",{columns:k,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),W=(0,I._4u)({dataset:N,filters:J,sortField:T,sortDirection:P}),z=(0,g.useMemo)(()=>k.filter(A=>A.fixed||f.includes(A.id)),[f]),x=(0,I.c2j)(N,A.isValidating,A.error,J),V=(0,g.useMemo)(()=>({walletAutoLockTimeout:h,walletAutoLockEnabled:o}),[o,h]);return{dataState:x,error:A.error,datasetCount:(null==W?void 0:W.length)||0,unlockedCount:y,columns:z,dataset:W,context:V,wallet:e,configurableColumns:H,enabledColumns:f,sortableColumns:d,toggleColumnVisibility:u,setColumnsVisible:R,setColumnsHidden:j,toggleSort:b,setSortDirection:m,setSortField:Z,sortField:T,filters:J,setFilter:S,removeFilter:F,removeLastFilter:l,resetFilters:Y,sortDirection:P,resetDefaultColumnVisibility:O,cacheWalletMnemonic:s,lockAllWallets:n,walletAutoLockTimeout:h,setWalletAutoLockTimeout:r,setWalletAutoLockEnabled:a,walletAutoLockEnabled:o}}();return(0,C.jsx)(r.Provider,{value:B,children:Q})}},18700:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","details","balance","type","status","createdAt"],I="name",E=[{id:"name",label:"name",category:"general"},{id:"type",label:"type",category:"general"},{id:"status",label:"status",category:"general"},{id:"createdAt",label:"created on",category:"general"}]},66510:function(A,Q,B){"use strict";B.d(Q,{B:function(){return E}});var C=B(63392),I=B(28135);function E(){var A;return(null===(A=(0,I.gM)().data)||void 0===A?void 0:A.name)==="zen"?C.nNd.explore.testnetZen:C.nNd.explore.mainnet}},16211:function(A,Q,B){"use strict";B.d(Q,{n:function(){return g}});var C=B(88464),I=B(36219),E=B(28135);function g(){var A;let{isUnlockedAndAuthedRoute:Q}=(0,I.Hv)(),B=(0,E.XC)({config:{swr:{refreshInterval:1e4}}}),C=(0,E.ek)({config:{swr:{refreshInterval:A=>w(A)?6e4:1e4}}}),g=(0,E.nH)(),D=B.data?null===(A=B.data)||void 0===A?void 0:A.height:0,c=Q&&D&&g?Number((100*Math.min(D/g,1)).toFixed(1)):0;return{isSynced:w(C.data),nodeBlockHeight:D,estimatedBlockHeight:g,syncPercent:c,moreThan100BlocksToSync:!!D&&!!g&&g-D>100,firstTimeSyncing:!!D&&!!g&&g-D>5e4}}function w(A){return!!A&&function(A){if(!A||!A.length)return!1;let Q=A[0],B=Date.now()-(0,C.yt)(2);return new Date(Q).getTime()>B}(A.prevTimestamps)}},40361:function(A,Q,B){"use strict";function C(A){return!A||A<1e3?{amount:0,units:"seconds"}:(A/=1e3)<60?{amount:Math.floor(100*A)/100,units:"seconds"}:{amount:Math.floor(A/60*100)/100,units:"minutes"}}B.d(Q,{l:function(){return C}})},39173:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{default:function(){return AC}});var C=B(52322);B(21962);var I=B(63392),E=B(64245),g=B(2784),w=B(54525),D=B(18291),c=B(94589),M=B(71508),s=B(36331);let y=(0,g.createContext)({});function n(A){let{children:Q}=A,B=((0,g.useEffect)(()=>{(async()=>{await (0,s.x)()})()},[]),{});return(0,C.jsx)(y.Provider,{value:B,children:Q})}var h=B(28135),k=B(16211),K=B(70095),t=B(49435),U=B(4895);function L(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A);return Q.setHours(0,0,0,0),Q}var i=B(54042);function G(A){if(null===A||!0===A||!1===A)return NaN;var Q=Number(A);return isNaN(Q)?Q:Q<0?Math.ceil(Q):Math.floor(Q)}function p(A,Q){return(0,U.Z)(2,arguments),function(A,Q){return(0,U.Z)(2,arguments),new Date((0,t.Z)(A).getTime()+G(Q))}(A,-G(Q))}function r(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A),B=Q.getUTCDay();return Q.setUTCDate(Q.getUTCDate()-((B<1?7:0)+B-1)),Q.setUTCHours(0,0,0,0),Q}function a(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A),B=Q.getUTCFullYear(),C=new Date(0);C.setUTCFullYear(B+1,0,4),C.setUTCHours(0,0,0,0);var I=r(C),E=new Date(0);E.setUTCFullYear(B,0,4),E.setUTCHours(0,0,0,0);var g=r(E);return Q.getTime()>=I.getTime()?B+1:Q.getTime()>=g.getTime()?B:B-1}function o(A,Q){(0,U.Z)(1,arguments);var B=Q||{},C=B.locale,I=C&&C.options&&C.options.weekStartsOn,E=null==I?0:G(I),g=null==B.weekStartsOn?E:G(B.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,t.Z)(A),D=w.getUTCDay();return w.setUTCDate(w.getUTCDate()-((D=1&&D<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(C+1,0,D),c.setUTCHours(0,0,0,0);var M=o(c,Q),s=new Date(0);s.setUTCFullYear(C,0,D),s.setUTCHours(0,0,0,0);var y=o(s,Q);return B.getTime()>=M.getTime()?C+1:B.getTime()>=y.getTime()?C:C-1}function e(A,Q){for(var B=Math.abs(A).toString();B.length0?B:1-B;return e("yy"===Q?C%100:C,Q.length)},M:function(A,Q){var B=A.getUTCMonth();return"M"===Q?String(B+1):e(B+1,2)},d:function(A,Q){return e(A.getUTCDate(),Q.length)},h:function(A,Q){return e(A.getUTCHours()%12||12,Q.length)},H:function(A,Q){return e(A.getUTCHours(),Q.length)},m:function(A,Q){return e(A.getUTCMinutes(),Q.length)},s:function(A,Q){return e(A.getUTCSeconds(),Q.length)},S:function(A,Q){var B=Q.length;return e(Math.floor(A.getUTCMilliseconds()*Math.pow(10,B-3)),Q.length)}},S={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function F(A,Q){var B=A>0?"-":"+",C=Math.abs(A),I=Math.floor(C/60),E=C%60;return 0===E?B+String(I):B+String(I)+(Q||"")+e(E,2)}function l(A,Q){return A%60==0?(A>0?"-":"+")+e(Math.abs(A)/60,2):Y(A,Q)}function Y(A,Q){var B=Math.abs(A);return(A>0?"-":"+")+e(Math.floor(B/60),2)+(Q||"")+e(B%60,2)}var H={G:function(A,Q,B){var C=A.getUTCFullYear()>0?1:0;switch(Q){case"G":case"GG":case"GGG":return B.era(C,{width:"abbreviated"});case"GGGGG":return B.era(C,{width:"narrow"});default:return B.era(C,{width:"wide"})}},y:function(A,Q,B){if("yo"===Q){var C=A.getUTCFullYear();return B.ordinalNumber(C>0?C:1-C,{unit:"year"})}return J.y(A,Q)},Y:function(A,Q,B,C){var I=N(A,C),E=I>0?I:1-I;return"YY"===Q?e(E%100,2):"Yo"===Q?B.ordinalNumber(E,{unit:"year"}):e(E,Q.length)},R:function(A,Q){return e(a(A),Q.length)},u:function(A,Q){return e(A.getUTCFullYear(),Q.length)},Q:function(A,Q,B){var C=Math.ceil((A.getUTCMonth()+1)/3);switch(Q){case"Q":return String(C);case"QQ":return e(C,2);case"Qo":return B.ordinalNumber(C,{unit:"quarter"});case"QQQ":return B.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return B.quarter(C,{width:"narrow",context:"formatting"});default:return B.quarter(C,{width:"wide",context:"formatting"})}},q:function(A,Q,B){var C=Math.ceil((A.getUTCMonth()+1)/3);switch(Q){case"q":return String(C);case"qq":return e(C,2);case"qo":return B.ordinalNumber(C,{unit:"quarter"});case"qqq":return B.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return B.quarter(C,{width:"narrow",context:"standalone"});default:return B.quarter(C,{width:"wide",context:"standalone"})}},M:function(A,Q,B){var C=A.getUTCMonth();switch(Q){case"M":case"MM":return J.M(A,Q);case"Mo":return B.ordinalNumber(C+1,{unit:"month"});case"MMM":return B.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return B.month(C,{width:"narrow",context:"formatting"});default:return B.month(C,{width:"wide",context:"formatting"})}},L:function(A,Q,B){var C=A.getUTCMonth();switch(Q){case"L":return String(C+1);case"LL":return e(C+1,2);case"Lo":return B.ordinalNumber(C+1,{unit:"month"});case"LLL":return B.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return B.month(C,{width:"narrow",context:"standalone"});default:return B.month(C,{width:"wide",context:"standalone"})}},w:function(A,Q,B,C){var I=function(A,Q){(0,U.Z)(1,arguments);var B=(0,t.Z)(A);return Math.round((o(B,Q).getTime()-(function(A,Q){(0,U.Z)(1,arguments);var B=Q||{},C=B.locale,I=C&&C.options&&C.options.firstWeekContainsDate,E=null==I?1:G(I),g=null==B.firstWeekContainsDate?E:G(B.firstWeekContainsDate),w=N(A,Q),D=new Date(0);return D.setUTCFullYear(w,0,g),D.setUTCHours(0,0,0,0),o(D,Q)})(B,Q).getTime())/6048e5)+1}(A,C);return"wo"===Q?B.ordinalNumber(I,{unit:"week"}):e(I,Q.length)},I:function(A,Q,B){var C=function(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A);return Math.round((r(Q).getTime()-(function(A){(0,U.Z)(1,arguments);var Q=a(A),B=new Date(0);return B.setUTCFullYear(Q,0,4),B.setUTCHours(0,0,0,0),r(B)})(Q).getTime())/6048e5)+1}(A);return"Io"===Q?B.ordinalNumber(C,{unit:"week"}):e(C,Q.length)},d:function(A,Q,B){return"do"===Q?B.ordinalNumber(A.getUTCDate(),{unit:"date"}):J.d(A,Q)},D:function(A,Q,B){var C=function(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A),B=Q.getTime();return Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0),Math.floor((B-Q.getTime())/864e5)+1}(A);return"Do"===Q?B.ordinalNumber(C,{unit:"dayOfYear"}):e(C,Q.length)},E:function(A,Q,B){var C=A.getUTCDay();switch(Q){case"E":case"EE":case"EEE":return B.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return B.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return B.day(C,{width:"short",context:"formatting"});default:return B.day(C,{width:"wide",context:"formatting"})}},e:function(A,Q,B,C){var I=A.getUTCDay(),E=(I-C.weekStartsOn+8)%7||7;switch(Q){case"e":return String(E);case"ee":return e(E,2);case"eo":return B.ordinalNumber(E,{unit:"day"});case"eee":return B.day(I,{width:"abbreviated",context:"formatting"});case"eeeee":return B.day(I,{width:"narrow",context:"formatting"});case"eeeeee":return B.day(I,{width:"short",context:"formatting"});default:return B.day(I,{width:"wide",context:"formatting"})}},c:function(A,Q,B,C){var I=A.getUTCDay(),E=(I-C.weekStartsOn+8)%7||7;switch(Q){case"c":return String(E);case"cc":return e(E,Q.length);case"co":return B.ordinalNumber(E,{unit:"day"});case"ccc":return B.day(I,{width:"abbreviated",context:"standalone"});case"ccccc":return B.day(I,{width:"narrow",context:"standalone"});case"cccccc":return B.day(I,{width:"short",context:"standalone"});default:return B.day(I,{width:"wide",context:"standalone"})}},i:function(A,Q,B){var C=A.getUTCDay(),I=0===C?7:C;switch(Q){case"i":return String(I);case"ii":return e(I,Q.length);case"io":return B.ordinalNumber(I,{unit:"day"});case"iii":return B.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return B.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return B.day(C,{width:"short",context:"formatting"});default:return B.day(C,{width:"wide",context:"formatting"})}},a:function(A,Q,B){var C=A.getUTCHours()/12>=1?"pm":"am";switch(Q){case"a":case"aa":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(A,Q,B){var C,I=A.getUTCHours();switch(C=12===I?S.noon:0===I?S.midnight:I/12>=1?"pm":"am",Q){case"b":case"bb":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(A,Q,B){var C,I=A.getUTCHours();switch(C=I>=17?S.evening:I>=12?S.afternoon:I>=4?S.morning:S.night,Q){case"B":case"BB":case"BBB":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(A,Q,B){if("ho"===Q){var C=A.getUTCHours()%12;return 0===C&&(C=12),B.ordinalNumber(C,{unit:"hour"})}return J.h(A,Q)},H:function(A,Q,B){return"Ho"===Q?B.ordinalNumber(A.getUTCHours(),{unit:"hour"}):J.H(A,Q)},K:function(A,Q,B){var C=A.getUTCHours()%12;return"Ko"===Q?B.ordinalNumber(C,{unit:"hour"}):e(C,Q.length)},k:function(A,Q,B){var C=A.getUTCHours();return(0===C&&(C=24),"ko"===Q)?B.ordinalNumber(C,{unit:"hour"}):e(C,Q.length)},m:function(A,Q,B){return"mo"===Q?B.ordinalNumber(A.getUTCMinutes(),{unit:"minute"}):J.m(A,Q)},s:function(A,Q,B){return"so"===Q?B.ordinalNumber(A.getUTCSeconds(),{unit:"second"}):J.s(A,Q)},S:function(A,Q){return J.S(A,Q)},X:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();if(0===I)return"Z";switch(Q){case"X":return l(I);case"XXXX":case"XX":return Y(I);default:return Y(I,":")}},x:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"x":return l(I);case"xxxx":case"xx":return Y(I);default:return Y(I,":")}},O:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"O":case"OO":case"OOO":return"GMT"+F(I,":");default:return"GMT"+Y(I,":")}},z:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"z":case"zz":case"zzz":return"GMT"+F(I,":");default:return"GMT"+Y(I,":")}},t:function(A,Q,B,C){return e(Math.floor((C._originalDate||A).getTime()/1e3),Q.length)},T:function(A,Q,B,C){return e((C._originalDate||A).getTime(),Q.length)}};function f(A,Q){switch(A){case"P":return Q.date({width:"short"});case"PP":return Q.date({width:"medium"});case"PPP":return Q.date({width:"long"});default:return Q.date({width:"full"})}}function d(A,Q){switch(A){case"p":return Q.time({width:"short"});case"pp":return Q.time({width:"medium"});case"ppp":return Q.time({width:"long"});default:return Q.time({width:"full"})}}var u={p:d,P:function(A,Q){var B,C=A.match(/(P+)(p+)?/)||[],I=C[1],E=C[2];if(!E)return f(A,Q);switch(I){case"P":B=Q.dateTime({width:"short"});break;case"PP":B=Q.dateTime({width:"medium"});break;case"PPP":B=Q.dateTime({width:"long"});break;default:B=Q.dateTime({width:"full"})}return B.replace("{{date}}",f(I,Q)).replace("{{time}}",d(E,Q))}},R=["D","DD"],j=["YY","YYYY"];function b(A,Q,B){if("YYYY"===A)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(Q,"`) for formatting years to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("YY"===A)throw RangeError("Use `yy` instead of `YY` (in `".concat(Q,"`) for formatting years to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("D"===A)throw RangeError("Use `d` instead of `D` (in `".concat(Q,"`) for formatting days of the month to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("DD"===A)throw RangeError("Use `dd` instead of `DD` (in `".concat(Q,"`) for formatting days of the month to the input `").concat(B,"`; see: https://git.io/fxCyr"))}var m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,P=/''/g,O=/[a-zA-Z]/,W=B(99634),z=B(88464),x=B(36219),V=B(27050);function v(){var A;let Q=(0,k.n)(),B=(0,h.R2)({config:{swr:{refreshInterval:A=>{var B;return(null==A?void 0:null===(B=A.index)||void 0===B?void 0:B.height){C&&!Q&&B(A=>A.startsWith(V.Xf)),I(Q)},[Q])}({isScanning:w}),B.data&&w)?(0,C.jsx)("div",{"data-testid":"rescanStatusPanel",className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,C.jsxs)(I.s_4,{className:"px-2 py-2 w-[400px] overflow-hidden",children:[(0,C.jsx)(I.xvT,{weight:"medium",className:"pb-2",children:"Rescanning the blockchain"}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(I.kod,{variant:"accent",value:B.data.index.height,max:Q.nodeBlockHeight}),(0,C.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,C.jsx)(I.xvT,{color:"verySubtle",size:"12",ellipsis:!0,children:B.data.error?"Stopped":"Scanning..."}),(0,C.jsx)(I.xvT,{color:"verySubtle",size:"12",noWrap:!0,children:"".concat(B.data.index.height.toLocaleString()," / ").concat(Q.nodeBlockHeight.toLocaleString())})]})]}),(0,C.jsx)(I.Z0O,{className:"w-full mt-2 mb-1"}),(0,C.jsxs)("div",{className:"flex justify-between items-center",children:[B.data.error&&(0,C.jsx)(I.xvT,{color:"red",size:"12",children:"Error rescanning the blockchain"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsxs)(I.xvT,{color:"subtle",size:"12",children:["Started"," ",function(A,Q,B){(0,U.Z)(2,arguments);var C,I=(0,t.Z)(A),E=(0,t.Z)(Q),g=B||{},w=g.locale,D=void 0===w?i.Z:w,c=g.weekStartsOn,M=void 0===c?0:c;if(!D.localize)throw RangeError("locale must contain localize property");if(!D.formatLong)throw RangeError("locale must contain formatLong property");if(!D.formatRelative)throw RangeError("locale must contain formatRelative property");var s=function(A,Q){(0,U.Z)(2,arguments);var B=L(A),C=L(Q);return Math.round((B.getTime()-(0,K.Z)(B)-(C.getTime()-(0,K.Z)(C)))/864e5)}(I,E);if(isNaN(s))throw RangeError("Invalid time value");C=s<-6?"other":s<-1?"lastWeek":s<0?"yesterday":s<1?"today":s<2?"tomorrow":s<7?"nextWeek":"other";var y=p(I,(0,K.Z)(I)),n=p(E,(0,K.Z)(E));return function(A,Q,B){(0,U.Z)(2,arguments);var C=String(Q),I=B||{},E=I.locale||i.Z,g=E.options&&E.options.firstWeekContainsDate,w=null==g?1:G(g),D=null==I.firstWeekContainsDate?w:G(I.firstWeekContainsDate);if(!(D>=1&&D<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=E.options&&E.options.weekStartsOn,M=null==c?0:G(c),s=null==I.weekStartsOn?M:G(I.weekStartsOn);if(!(s>=0&&s<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw RangeError("locale must contain localize property");if(!E.formatLong)throw RangeError("locale must contain formatLong property");var y=(0,t.Z)(A);if(!function(A){return(0,U.Z)(1,arguments),(!!function(A){return(0,U.Z)(1,arguments),A instanceof Date||"object"==typeof A&&"[object Date]"===Object.prototype.toString.call(A)}(A)||"number"==typeof A)&&!isNaN(Number((0,t.Z)(A)))}(y))throw RangeError("Invalid time value");var n=(0,K.Z)(y),h=p(y,n),k={firstWeekContainsDate:D,weekStartsOn:s,locale:E,_originalDate:y};return C.match(Z).map(function(A){var Q=A[0];return"p"===Q||"P"===Q?(0,u[Q])(A,E.formatLong,k):A}).join("").match(m).map(function(B){if("''"===B)return"'";var C=B[0];if("'"===C)return B.match(T)[1].replace(P,"'");var g=H[C];if(g)return I.useAdditionalWeekYearTokens||-1===j.indexOf(B)||b(B,Q,A),I.useAdditionalDayOfYearTokens||-1===R.indexOf(B)||b(B,Q,A),g(h,B,E.localize,k);if(C.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return B}).join("")}(I,D.formatRelative(C,y,n,{locale:D,weekStartsOn:M}),{locale:D,weekStartsOn:M})}(new Date(B.data.startTime),new Date)]})]}),B.data.error&&(0,C.jsx)("div",{className:"flex flex-col gap-1 overflow-hidden pt-1",children:(0,C.jsx)(I.xvT,{color:"contrast",size:"12",children:B.data.error})})]})}):null}function X(A){let{children:Q}=A;return(0,C.jsx)(n,{children:(0,C.jsx)(E.Tu,{children:(0,C.jsx)(M.d,{children:(0,C.jsx)(w.k,{children:(0,C.jsx)(D.OZ,{children:(0,C.jsxs)(c.Yl,{children:[(0,C.jsx)(E.xQ,{}),(0,C.jsx)(v,{}),Q]})})})})})})}var q=B(4300),_=B(29773),$=B.n(_),AA=B(17282),AQ=B.n(AA);let AB=(0,B(82851).cx)($().variable,AQ().variable);function AC(A){return(0,C.jsx)(I.PD$,{className:AB,fallback:A.pageProps.fallback,passwordProtectRequestHooks:!0,lockRoutes:q._,children:(0,C.jsx)(X,{children:(0,C.jsx)(AI,{...A})})})}function AI(A){let{Component:Q,pageProps:B}=A,I=Q.Layout,E=Q.useLayoutProps(),{fallback:g,...w}=B;return(0,C.jsx)(I,{...E,children:(0,C.jsx)(Q,{...w})})}},63392:function(A,Q,B){"use strict";let C,I,E,g,w;B.d(Q,{bZj:function(){return cs},tU3:function(){return lO},zXq:function(){return Yr},juT:function(){return lR},Cts:function(){return cY},WVB:function(){return Kk},zxk:function(){return cD},EKh:function(){return cf},QHy:function(){return dA},HfT:function(){return dC},ncR:function(){return ST},VqE:function(){return yS},h_2:function(){return Ki},Xiv:function(){return KG},Juw:function(){return Kp},KpP:function(){return Kr},cp7:function(){return SO},Qyk:function(){return SP},jIp:function(){return dE},WyV:function(){return dg},qGu:function(){return Yo},QBj:function(){return Ya},yEL:function(){return l1},Bau:function(){return dw},ZqQ:function(){return Sx},X6q:function(){return Ke},Yqd:function(){return UC},__J:function(){return Ku},rUS:function(){return Kb},Qjf:function(){return Km},xgg:function(){return eW},kFS:function(){return KK},FzK:function(){return f7},Clw:function(){return Kh},PD$:function(){return dM},Wxm:function(){return Uw},wFK:function(){return ll},s_4:function(){return Cg},nvN:function(){return CI},u5Q:function(){return f8},j4H:function(){return UI},J2e:function(){return ts},kod:function(){return tl},tIK:function(){return YN},PhF:function(){return Ug},Wh3:function(){return U5},Z0O:function(){return Kc},DLL:function(){return f0},KJW:function(){return lm},rsf:function(){return UF},D_D:function(){return YF},iA_:function(){return lF},t6k:function(){return dI},xvT:function(){return CC},ua7:function(){return cg},XxW:function(){return SB},YKL:function(){return SE},ho9:function(){return SD},Sby:function(){return SI},hKn:function(){return fv},vQq:function(){return J7},I13:function(){return SQ},OHV:function(){return J5},OPV:function(){return J2},$Gg:function(){return SA},_4u:function(){return dG},Wdu:function(){return di},c2j:function(){return lW},t0Y:function(){return Ye},WsO:function(){return l3},Uu5:function(){return dp},oy6:function(){return dU},nNd:function(){return fX}});var D,c,M,s,y,n,h,k,K,t,U,L,i,G,p,r,a,o,N,e,J,S,F,l,Y,H,f,d,u,R,j,b,m,Z,T,P,O,W,z,x,V,v,X,q,_,$,AA,AQ,AB,AC,AI,AE,Ag,Aw,AD,Ac,AM,As,Ay,An={};B.r(An),B.d(An,{useDropzone:function(){return GL}});var Ah=B(52322),Ak=B(2784),AK=B.t(Ak,2);function At(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}function AU(...A){return Ak.useCallback(At(...A),A)}var AL=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A,I=Ak.Children.toArray(B),E=I.find(Ap);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:Ak.Children.count(A)>1?Ak.Children.only(null):Ak.isValidElement(A)?A.props.children:null);return(0,Ah.jsx)(Ai,{...C,ref:Q,children:Ak.isValidElement(A)?Ak.cloneElement(A,void 0,B):null})}return(0,Ah.jsx)(Ai,{...C,ref:Q,children:B})});AL.displayName="Slot";var Ai=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A;if(Ak.isValidElement(B)){let A,I;let E=(A=Object.getOwnPropertyDescriptor(B.props,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.ref:(A=Object.getOwnPropertyDescriptor(B,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.props.ref:B.props.ref||B.ref;return Ak.cloneElement(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?I&&E?B[C]=(...A)=>{E(...A),I(...A)}:I&&(B[C]=I):"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:Q?At(Q,E):E})}return Ak.Children.count(B)>1?Ak.Children.only(null):null});Ai.displayName="SlotClone";var AG=({children:A})=>(0,Ah.jsx)(Ah.Fragment,{children:A});function Ap(A){return Ak.isValidElement(A)&&A.type===AG}function Ar(A){let Q=Ak.useRef(A);return Ak.useEffect(()=>{Q.current=A}),Ak.useMemo(()=>(...A)=>Q.current?.(...A),[])}function Aa({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=Ak.useState(A),[C]=B,I=Ak.useRef(C),E=Ar(Q);return Ak.useEffect(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=Ar(B);return[g,Ak.useCallback(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}var Ao=B(28316),AN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=Ak.forwardRef((A,B)=>{let{asChild:C,...I}=A,E=C?AL:Q;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Ah.jsx)(E,{...I,ref:B})});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{});function Ae(A){let Q=Ak.useRef(A);return Ak.useEffect(()=>{Q.current=A}),Ak.useMemo(()=>(...A)=>Q.current?.(...A),[])}var AJ=globalThis?.document?Ak.useLayoutEffect:()=>{};function AS(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}var AF=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A,I=Ak.Children.toArray(B),E=I.find(AH);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:Ak.Children.count(A)>1?Ak.Children.only(null):Ak.isValidElement(A)?A.props.children:null);return(0,Ah.jsx)(Al,{...C,ref:Q,children:Ak.isValidElement(A)?Ak.cloneElement(A,void 0,B):null})}return(0,Ah.jsx)(Al,{...C,ref:Q,children:B})});AF.displayName="Slot";var Al=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A;if(Ak.isValidElement(B)){let A,I;let E=(A=Object.getOwnPropertyDescriptor(B.props,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.ref:(A=Object.getOwnPropertyDescriptor(B,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.props.ref:B.props.ref||B.ref;return Ak.cloneElement(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?I&&E?B[C]=(...A)=>{E(...A),I(...A)}:I&&(B[C]=I):"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:Q?AS(Q,E):E})}return Ak.Children.count(B)>1?Ak.Children.only(null):null});Al.displayName="SlotClone";var AY=({children:A})=>(0,Ah.jsx)(Ah.Fragment,{children:A});function AH(A){return Ak.isValidElement(A)&&A.type===AY}var Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=Ak.forwardRef((A,B)=>{let{asChild:C,...I}=A,E=C?AF:Q;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Ah.jsx)(E,{...I,ref:B})});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{}),Ad=globalThis?.document?Ak.useLayoutEffect:()=>{},Au=A=>{let Q,B;let{present:C,children:I}=A,E=function(A){var Q,B;let[C,I]=Ak.useState(),E=Ak.useRef({}),g=Ak.useRef(A),w=Ak.useRef("none"),[D,c]=(Q=A?"mounted":"unmounted",B={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},Ak.useReducer((A,Q)=>B[A][Q]??A,Q));return Ak.useEffect(()=>{let A=AR(E.current);w.current="mounted"===D?A:"none"},[D]),Ad(()=>{let Q=E.current,B=g.current;if(B!==A){let C=w.current,I=AR(Q);A?c("MOUNT"):"none"===I||Q?.display==="none"?c("UNMOUNT"):B&&C!==I?c("ANIMATION_OUT"):c("UNMOUNT"),g.current=A}},[A,c]),Ad(()=>{if(C){let A;let Q=C.ownerDocument.defaultView??window,B=B=>{let I=AR(E.current).includes(B.animationName);if(B.target===C&&I&&(c("ANIMATION_END"),!g.current)){let B=C.style.animationFillMode;C.style.animationFillMode="forwards",A=Q.setTimeout(()=>{"forwards"===C.style.animationFillMode&&(C.style.animationFillMode=B)})}},I=A=>{A.target===C&&(w.current=AR(E.current))};return C.addEventListener("animationstart",I),C.addEventListener("animationcancel",B),C.addEventListener("animationend",B),()=>{Q.clearTimeout(A),C.removeEventListener("animationstart",I),C.removeEventListener("animationcancel",B),C.removeEventListener("animationend",B)}}c("ANIMATION_END")},[C,c]),{isPresent:["mounted","unmountSuspended"].includes(D),ref:Ak.useCallback(A=>{A&&(E.current=getComputedStyle(A)),I(A)},[])}}(C),g="function"==typeof I?I({present:E.isPresent}):Ak.Children.only(I),w=function(...A){return Ak.useCallback(function(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}(...A),A)}(E.ref,(Q=Object.getOwnPropertyDescriptor(g.props,"ref")?.get)&&"isReactWarning"in Q&&Q.isReactWarning?g.ref:(Q=Object.getOwnPropertyDescriptor(g,"ref")?.get)&&"isReactWarning"in Q&&Q.isReactWarning?g.props.ref:g.props.ref||g.ref);return"function"==typeof I||E.isPresent?Ak.cloneElement(g,{ref:w}):null};function AR(A){return A?.animationName||"none"}Au.displayName="Presence";var Aj=globalThis?.document?Ak.useLayoutEffect:()=>{},Ab=AK["useId".toString()]||(()=>void 0),Am=0;function AZ(A){let[Q,B]=Ak.useState(Ab());return Aj(()=>{A||B(A=>A??String(Am++))},[A]),A||(Q?`radix-${Q}`:"")}var AT="Collapsible",[AP,AO]=function(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>Ak.createContext(A));return function(B){let C=B?.[A]||Q;return Ak.useMemo(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=Ak.createContext(C),E=B.length;B=[...B,C];let g=Q=>{let{scope:B,children:C,...g}=Q,w=B?.[A]?.[E]||I,D=Ak.useMemo(()=>g,Object.values(g));return(0,Ah.jsx)(w.Provider,{value:D,children:C})};return g.displayName=Q+"Provider",[g,function(B,g){let w=g?.[A]?.[E]||I,D=Ak.useContext(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return Ak.useMemo(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}(AT),[AW,Az]=AP(AT),Ax=Ak.forwardRef((A,Q)=>{let{__scopeCollapsible:B,open:C,defaultOpen:I,disabled:E,onOpenChange:g,...w}=A,[D=!1,c]=function({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=Ak.useState(A),[C]=B,I=Ak.useRef(C),E=Ae(Q);return Ak.useEffect(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=Ae(B);return[g,Ak.useCallback(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}({prop:C,defaultProp:I,onChange:g});return(0,Ah.jsx)(AW,{scope:B,disabled:E,contentId:AZ(),open:D,onOpenToggle:Ak.useCallback(()=>c(A=>!A),[c]),children:(0,Ah.jsx)(Af.div,{"data-state":A$(D),"data-disabled":E?"":void 0,...w,ref:Q})})});Ax.displayName=AT;var AV="CollapsibleTrigger",Av=Ak.forwardRef((A,Q)=>{let{__scopeCollapsible:B,...C}=A,I=Az(AV,B);return(0,Ah.jsx)(Af.button,{type:"button","aria-controls":I.contentId,"aria-expanded":I.open||!1,"data-state":A$(I.open),"data-disabled":I.disabled?"":void 0,disabled:I.disabled,...C,ref:Q,onClick:function(A,Q,{checkForDefaultPrevented:B=!0}={}){return function(C){if(A?.(C),!1===B||!C.defaultPrevented)return Q?.(C)}}(A.onClick,I.onOpenToggle)})});Av.displayName=AV;var AX="CollapsibleContent",Aq=Ak.forwardRef((A,Q)=>{let{forceMount:B,...C}=A,I=Az(AX,A.__scopeCollapsible);return(0,Ah.jsx)(Au,{present:B||I.open,children:({present:A})=>(0,Ah.jsx)(A_,{...C,ref:Q,present:A})})});Aq.displayName=AX;var A_=Ak.forwardRef((A,Q)=>{let{__scopeCollapsible:B,present:C,children:I,...E}=A,g=Az(AX,B),[w,D]=Ak.useState(C),c=Ak.useRef(null),M=function(...A){return Ak.useCallback(AS(...A),A)}(Q,c),s=Ak.useRef(0),y=s.current,n=Ak.useRef(0),h=n.current,k=g.open||w,K=Ak.useRef(k),t=Ak.useRef();return Ak.useEffect(()=>{let A=requestAnimationFrame(()=>K.current=!1);return()=>cancelAnimationFrame(A)},[]),AJ(()=>{let A=c.current;if(A){t.current=t.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";let Q=A.getBoundingClientRect();s.current=Q.height,n.current=Q.width,K.current||(A.style.transitionDuration=t.current.transitionDuration,A.style.animationName=t.current.animationName),D(C)}},[g.open,C]),(0,Ah.jsx)(Af.div,{"data-state":A$(g.open),"data-disabled":g.disabled?"":void 0,id:g.contentId,hidden:!k,...E,ref:M,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...A.style},children:k&&I})});function A$(A){return A?"open":"closed"}var A0=Ak.createContext(void 0),A8="Accordion",A3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A1,A4,A2]=function(A){let Q=A+"CollectionProvider",[B,C]=function(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>Ak.createContext(A));return function(B){let C=B?.[A]||Q;return Ak.useMemo(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=Ak.createContext(C),E=B.length;function g(Q){let{scope:B,children:C,...g}=Q,w=B?.[A][E]||I,D=Ak.useMemo(()=>g,Object.values(g));return(0,Ah.jsx)(w.Provider,{value:D,children:C})}return B=[...B,C],g.displayName=Q+"Provider",[g,function(B,g){let w=g?.[A][E]||I,D=Ak.useContext(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return Ak.useMemo(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}(Q),[I,E]=B(Q,{collectionRef:{current:null},itemMap:new Map}),g=A=>{let{scope:Q,children:B}=A,C=Ak.useRef(null),E=Ak.useRef(new Map).current;return(0,Ah.jsx)(I,{scope:Q,itemMap:E,collectionRef:C,children:B})};g.displayName=Q;let w=A+"CollectionSlot",D=Ak.forwardRef((A,Q)=>{let{scope:B,children:C}=A,I=AU(Q,E(w,B).collectionRef);return(0,Ah.jsx)(AL,{ref:I,children:C})});D.displayName=w;let c=A+"CollectionItemSlot",M="data-radix-collection-item",s=Ak.forwardRef((A,Q)=>{let{scope:B,children:C,...I}=A,g=Ak.useRef(null),w=AU(Q,g),D=E(c,B);return Ak.useEffect(()=>(D.itemMap.set(g,{ref:g,...I}),()=>void D.itemMap.delete(g))),(0,Ah.jsx)(AL,{[M]:"",ref:w,children:C})});return s.displayName=c,[{Provider:g,Slot:D,ItemSlot:s},function(Q){let B=E(A+"CollectionConsumer",Q);return Ak.useCallback(()=>{let A=B.collectionRef.current;if(!A)return[];let Q=Array.from(A.querySelectorAll(`[${M}]`));return Array.from(B.itemMap.values()).sort((A,B)=>Q.indexOf(A.ref.current)-Q.indexOf(B.ref.current))},[B.collectionRef,B.itemMap])},C]}(A8),[A5,A9]=function(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>Ak.createContext(A));return function(B){let C=B?.[A]||Q;return Ak.useMemo(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=Ak.createContext(C),E=B.length;B=[...B,C];let g=Q=>{let{scope:B,children:C,...g}=Q,w=B?.[A]?.[E]||I,D=Ak.useMemo(()=>g,Object.values(g));return(0,Ah.jsx)(w.Provider,{value:D,children:C})};return g.displayName=Q+"Provider",[g,function(B,g){let w=g?.[A]?.[E]||I,D=Ak.useContext(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return Ak.useMemo(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}(A8,[A2,AO]),A6=AO();Ak.forwardRef((A,Q)=>{let{type:B,...C}=A;return(0,Ah.jsx)(A1.Provider,{scope:A.__scopeAccordion,children:"multiple"===B?(0,Ah.jsx)(QI,{...C,ref:Q}):(0,Ah.jsx)(QC,{...C,ref:Q})})}).displayName=A8;var[A7,QA]=A5(A8),[QQ,QB]=A5(A8,{collapsible:!1}),QC=Ak.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},collapsible:E=!1,...g}=A,[w,D]=Aa({prop:B,defaultProp:C,onChange:I});return(0,Ah.jsx)(A7,{scope:A.__scopeAccordion,value:w?[w]:[],onItemOpen:D,onItemClose:Ak.useCallback(()=>E&&D(""),[E,D]),children:(0,Ah.jsx)(QQ,{scope:A.__scopeAccordion,collapsible:E,children:(0,Ah.jsx)(Qw,{...g,ref:Q})})})}),QI=Ak.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},...E}=A,[g=[],w]=Aa({prop:B,defaultProp:C,onChange:I}),D=Ak.useCallback(A=>w((Q=[])=>[...Q,A]),[w]),c=Ak.useCallback(A=>w((Q=[])=>Q.filter(Q=>Q!==A)),[w]);return(0,Ah.jsx)(A7,{scope:A.__scopeAccordion,value:g,onItemOpen:D,onItemClose:c,children:(0,Ah.jsx)(QQ,{scope:A.__scopeAccordion,collapsible:!0,children:(0,Ah.jsx)(Qw,{...E,ref:Q})})})}),[QE,Qg]=A5(A8),Qw=Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,disabled:C,dir:I,orientation:E="vertical",...g}=A,w=AU(Ak.useRef(null),Q),D=A4(B),c="ltr"===function(A){let Q=Ak.useContext(A0);return A||Q||"ltr"}(I),M=function(A,Q,{checkForDefaultPrevented:B=!0}={}){return function(C){if(A?.(C),!1===B||!C.defaultPrevented)return Q?.(C)}}(A.onKeyDown,A=>{if(!A3.includes(A.key))return;let Q=A.target,B=D().filter(A=>!A.ref.current?.disabled),C=B.findIndex(A=>A.ref.current===Q),I=B.length;if(-1===C)return;A.preventDefault();let g=C,w=I-1,M=()=>{(g=C+1)>w&&(g=0)},s=()=>{(g=C-1)<0&&(g=w)};switch(A.key){case"Home":g=0;break;case"End":g=w;break;case"ArrowRight":"horizontal"===E&&(c?M():s());break;case"ArrowDown":"vertical"===E&&M();break;case"ArrowLeft":"horizontal"===E&&(c?s():M());break;case"ArrowUp":"vertical"===E&&s()}let y=g%I;B[y].ref.current?.focus()});return(0,Ah.jsx)(QE,{scope:B,disabled:C,direction:I,orientation:E,children:(0,Ah.jsx)(A1.Slot,{scope:B,children:(0,Ah.jsx)(AN.div,{...g,"data-orientation":E,ref:w,onKeyDown:C?void 0:M})})})}),QD="AccordionItem",[Qc,QM]=A5(QD);Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,value:C,...I}=A,E=Qg(QD,B),g=QA(QD,B),w=A6(B),D=AZ(),c=C&&g.value.includes(C)||!1,M=E.disabled||A.disabled;return(0,Ah.jsx)(Qc,{scope:B,open:c,disabled:M,triggerId:D,children:(0,Ah.jsx)(Ax,{"data-orientation":E.orientation,"data-state":Qh(c),...w,...I,ref:Q,disabled:M,open:c,onOpenChange:A=>{A?g.onItemOpen(C):g.onItemClose(C)}})})}).displayName=QD;var Qs="AccordionHeader";Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,...C}=A,I=Qg(A8,B),E=QM(Qs,B);return(0,Ah.jsx)(AN.h3,{"data-orientation":I.orientation,"data-state":Qh(E.open),"data-disabled":E.disabled?"":void 0,...C,ref:Q})}).displayName=Qs;var Qy="AccordionTrigger";Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,...C}=A,I=Qg(A8,B),E=QM(Qy,B),g=QB(Qy,B),w=A6(B);return(0,Ah.jsx)(A1.ItemSlot,{scope:B,children:(0,Ah.jsx)(Av,{"aria-disabled":E.open&&!g.collapsible||void 0,"data-orientation":I.orientation,id:E.triggerId,...w,...C,ref:Q})})}).displayName=Qy;var Qn="AccordionContent";function Qh(A){return A?"open":"closed"}Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,...C}=A,I=Qg(A8,B),E=QM(Qn,B),g=A6(B);return(0,Ah.jsx)(Aq,{role:"region","aria-labelledby":E.triggerId,"data-orientation":I.orientation,...g,...C,ref:Q,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...A.style}})}).displayName=Qn;var Qk=B(82851);function QK(){return(QK=Object.assign?Object.assign.bind():function(A){for(var Q=1;QA.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}function QL(...A){return(0,Ak.useCallback)(QU(...A),A)}function Qi(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>(0,Ak.createContext)(A));return function(B){let C=(null==B?void 0:B[A])||Q;return(0,Ak.useMemo)(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=(0,Ak.createContext)(C),E=B.length;function g(Q){let{scope:B,children:C,...g}=Q,w=(null==B?void 0:B[A][E])||I,D=(0,Ak.useMemo)(()=>g,Object.values(g));return(0,Ak.createElement)(w.Provider,{value:D},C)}return B=[...B,C],g.displayName=Q+"Provider",[g,function(B,g){let w=(null==g?void 0:g[A][E])||I,D=(0,Ak.useContext)(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return(0,Ak.useMemo)(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}let QG=(0,Ak.forwardRef)((A,Q)=>{let{children:B,...C}=A,I=Ak.Children.toArray(B),E=I.find(Qa);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:Ak.Children.count(A)>1?Ak.Children.only(null):(0,Ak.isValidElement)(A)?A.props.children:null);return(0,Ak.createElement)(Qp,QK({},C,{ref:Q}),(0,Ak.isValidElement)(A)?(0,Ak.cloneElement)(A,void 0,B):null)}return(0,Ak.createElement)(Qp,QK({},C,{ref:Q}),B)});QG.displayName="Slot";let Qp=(0,Ak.forwardRef)((A,Q)=>{let{children:B,...C}=A;return(0,Ak.isValidElement)(B)?(0,Ak.cloneElement)(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?B[C]=(...A)=>{null==E||E(...A),null==I||I(...A)}:"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:QU(Q,B.ref)}):Ak.Children.count(B)>1?Ak.Children.only(null):null});Qp.displayName="SlotClone";let Qr=({children:A})=>(0,Ak.createElement)(Ak.Fragment,null,A);function Qa(A){return(0,Ak.isValidElement)(A)&&A.type===Qr}let Qo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=(0,Ak.forwardRef)((A,B)=>{let{asChild:C,...I}=A,E=C?QG:Q;return(0,Ak.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Ak.createElement)(E,QK({},I,{ref:B}))});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{});function QN(A){let Q=(0,Ak.useRef)(A);return(0,Ak.useEffect)(()=>{Q.current=A}),(0,Ak.useMemo)(()=>(...A)=>{var B;return null===(B=Q.current)||void 0===B?void 0:B.call(Q,...A)},[])}let Qe="dismissableLayer.update",QJ=(0,Ak.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QS=(0,Ak.forwardRef)((A,Q)=>{let{disableOutsidePointerEvents:B=!1,onEscapeKeyDown:I,onPointerDownOutside:E,onFocusOutside:g,onInteractOutside:w,onDismiss:D,...c}=A,M=(0,Ak.useContext)(QJ),[s,y]=(0,Ak.useState)(null),[,n]=(0,Ak.useState)({}),h=QL(Q,A=>y(A)),k=Array.from(M.layers),[K]=[...M.layersWithOutsidePointerEventsDisabled].slice(-1),t=k.indexOf(K),U=s?k.indexOf(s):-1,L=M.layersWithOutsidePointerEventsDisabled.size>0,i=U>=t,G=function(A){let Q=QN(A),B=(0,Ak.useRef)(!1),C=(0,Ak.useRef)(()=>{});return(0,Ak.useEffect)(()=>{let A=A=>{if(A.target&&!B.current){let B={originalEvent:A};function I(){Ql("dismissableLayer.pointerDownOutside",Q,B,{discrete:!0})}"touch"===A.pointerType?(document.removeEventListener("click",C.current),C.current=I,document.addEventListener("click",C.current,{once:!0})):I()}B.current=!1},I=window.setTimeout(()=>{document.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(I),document.removeEventListener("pointerdown",A),document.removeEventListener("click",C.current)}},[Q]),{onPointerDownCapture:()=>B.current=!0}}(A=>{let Q=A.target,B=[...M.branches].some(A=>A.contains(Q));!i||B||(null==E||E(A),null==w||w(A),A.defaultPrevented||null==D||D())}),p=function(A){let Q=QN(A),B=(0,Ak.useRef)(!1);return(0,Ak.useEffect)(()=>{let A=A=>{A.target&&!B.current&&Ql("dismissableLayer.focusOutside",Q,{originalEvent:A},{discrete:!1})};return document.addEventListener("focusin",A),()=>document.removeEventListener("focusin",A)},[Q]),{onFocusCapture:()=>B.current=!0,onBlurCapture:()=>B.current=!1}}(A=>{let Q=A.target;[...M.branches].some(A=>A.contains(Q))||(null==g||g(A),null==w||w(A),A.defaultPrevented||null==D||D())});return!function(A){let Q=QN(A);(0,Ak.useEffect)(()=>{let A=A=>{"Escape"===A.key&&Q(A)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[Q])}(A=>{U!==M.layers.size-1||(null==I||I(A),!A.defaultPrevented&&D&&(A.preventDefault(),D()))}),(0,Ak.useEffect)(()=>{if(s)return B&&(0===M.layersWithOutsidePointerEventsDisabled.size&&(C=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),M.layersWithOutsidePointerEventsDisabled.add(s)),M.layers.add(s),QF(),()=>{B&&1===M.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=C)}},[s,B,M]),(0,Ak.useEffect)(()=>()=>{s&&(M.layers.delete(s),M.layersWithOutsidePointerEventsDisabled.delete(s),QF())},[s,M]),(0,Ak.useEffect)(()=>{let A=()=>n({});return document.addEventListener(Qe,A),()=>document.removeEventListener(Qe,A)},[]),(0,Ak.createElement)(Qo.div,QK({},c,{ref:h,style:{pointerEvents:L?i?"auto":"none":void 0,...A.style},onFocusCapture:Qt(A.onFocusCapture,p.onFocusCapture),onBlurCapture:Qt(A.onBlurCapture,p.onBlurCapture),onPointerDownCapture:Qt(A.onPointerDownCapture,G.onPointerDownCapture)}))});function QF(){let A=new CustomEvent(Qe);document.dispatchEvent(A)}function Ql(A,Q,B,{discrete:C}){let I=B.originalEvent.target,E=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:B});(Q&&I.addEventListener(A,Q,{once:!0}),C)?I&&(0,Ao.flushSync)(()=>I.dispatchEvent(E)):I.dispatchEvent(E)}let QY=(null==globalThis?void 0:globalThis.document)?Ak.useLayoutEffect:()=>{},QH=AK["useId".toString()]||(()=>void 0),Qf=0;function Qd(A){return A.split("-")[0]}function Qu(A){return A.split("-")[1]}function QR(A){return["top","bottom"].includes(Qd(A))?"x":"y"}function Qj(A){return"y"===A?"height":"width"}function Qb(A,Q,B){let C,{reference:I,floating:E}=A,g=I.x+I.width/2-E.width/2,w=I.y+I.height/2-E.height/2,D=QR(Q),c=Qj(D),M=I[c]/2-E[c]/2,s="x"===D;switch(Qd(Q)){case"top":C={x:g,y:I.y-E.height};break;case"bottom":C={x:g,y:I.y+I.height};break;case"right":C={x:I.x+I.width,y:w};break;case"left":C={x:I.x-E.width,y:w};break;default:C={x:I.x,y:I.y}}switch(Qu(Q)){case"start":C[D]-=M*(B&&s?-1:1);break;case"end":C[D]+=M*(B&&s?-1:1)}return C}let Qm=async(A,Q,B)=>{let{placement:C="bottom",strategy:I="absolute",middleware:E=[],platform:g}=B,w=await (null==g.isRTL?void 0:g.isRTL(Q)),D=await g.getElementRects({reference:A,floating:Q,strategy:I}),{x:c,y:M}=Qb(D,C,w),s=C,y={},n=0;for(let B=0;B({name:"arrow",options:A,async fn(Q){let{element:B,padding:C=0}=null!=A?A:{},{x:I,y:E,placement:g,rects:w,platform:D}=Q;if(null==B)return{};let c=QZ(C),M={x:I,y:E},s=QR(g),y=Qu(g),n=Qj(s),h=await D.getDimensions(B),k="y"===s?"top":"left",K="y"===s?"bottom":"right",t=w.reference[n]+w.reference[s]-M[s]-w.floating[n],U=M[s]-w.reference[s],L=await (null==D.getOffsetParent?void 0:D.getOffsetParent(B)),i=L?"y"===s?L.clientHeight||0:L.clientWidth||0:0;0===i&&(i=w.floating[n]);let G=c[k],p=i-h[n]-c[K],r=i/2-h[n]/2+(t/2-U/2),a=QW(G,QO(r,p)),o=("start"===y?c[k]:c[K])>0&&r!==a&&w.reference[n]<=w.floating[n];return{[s]:M[s]-(o?rQx[A])}let Qv={start:"end",end:"start"};function QX(A){return A.replace(/start|end/g,A=>Qv[A])}let Qq=["top","right","bottom","left"];function Q_(A,Q){return{top:A.top-Q.height,right:A.right-Q.width,bottom:A.bottom-Q.height,left:A.left-Q.width}}function Q$(A){return Qq.some(Q=>A[Q]>=0)}Qq.reduce((A,Q)=>A.concat(Q,Q+"-start",Q+"-end"),[]);let Q0=function(A){let{strategy:Q="referenceHidden",...B}=void 0===A?{}:A;return{name:"hide",async fn(A){let{rects:C}=A;switch(Q){case"referenceHidden":{let Q=Q_(await QP(A,{...B,elementContext:"reference"}),C.reference);return{data:{referenceHiddenOffsets:Q,referenceHidden:Q$(Q)}}}case"escaped":{let Q=Q_(await QP(A,{...B,altBoundary:!0}),C.floating);return{data:{escapedOffsets:Q,escaped:Q$(Q)}}}default:return{}}}}};function Q8(A){return"x"===A?"y":"x"}function Q3(A){return A&&A.document&&A.location&&A.alert&&A.setInterval}function Q1(A){if(null==A)return window;if(!Q3(A)){let Q=A.ownerDocument;return Q&&Q.defaultView||window}return A}function Q4(A){return Q1(A).getComputedStyle(A)}function Q2(A){return Q3(A)?"":A?(A.nodeName||"").toLowerCase():""}function Q5(){let A=navigator.userAgentData;return null!=A&&A.brands?A.brands.map(A=>A.brand+"/"+A.version).join(" "):navigator.userAgent}function Q9(A){return A instanceof Q1(A).HTMLElement}function Q6(A){return A instanceof Q1(A).Element}function Q7(A){return"undefined"!=typeof ShadowRoot&&(A instanceof Q1(A).ShadowRoot||A instanceof ShadowRoot)}function BA(A){let{overflow:Q,overflowX:B,overflowY:C}=Q4(A);return/auto|scroll|overlay|hidden/.test(Q+C+B)}function BQ(A){let Q=/firefox/i.test(Q5()),B=Q4(A);return"none"!==B.transform||"none"!==B.perspective||"paint"===B.contain||["transform","perspective"].includes(B.willChange)||Q&&"filter"===B.willChange||Q&&!!B.filter&&"none"!==B.filter}function BB(){return!/^((?!chrome|android).)*safari/i.test(Q5())}let BC=Math.min,BI=Math.max,BE=Math.round;function Bg(A,Q,B){var C,I,E,g;void 0===Q&&(Q=!1),void 0===B&&(B=!1);let w=A.getBoundingClientRect(),D=1,c=1;Q&&Q9(A)&&(D=A.offsetWidth>0&&BE(w.width)/A.offsetWidth||1,c=A.offsetHeight>0&&BE(w.height)/A.offsetHeight||1);let M=Q6(A)?Q1(A):window,s=!BB()&&B,y=(w.left+(s&&null!=(C=null==(I=M.visualViewport)?void 0:I.offsetLeft)?C:0))/D,n=(w.top+(s&&null!=(E=null==(g=M.visualViewport)?void 0:g.offsetTop)?E:0))/c,h=w.width/D,k=w.height/c;return{width:h,height:k,top:n,right:y+h,bottom:n+k,left:y,x:y,y:n}}function Bw(A){return((A instanceof Q1(A).Node?A.ownerDocument:A.document)||window.document).documentElement}function BD(A){return Q6(A)?{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop}:{scrollLeft:A.pageXOffset,scrollTop:A.pageYOffset}}function Bc(A){return Bg(Bw(A)).left+BD(A).scrollLeft}function BM(A){return"html"===Q2(A)?A:A.assignedSlot||A.parentNode||(Q7(A)?A.host:null)||Bw(A)}function Bs(A){return Q9(A)&&"fixed"!==getComputedStyle(A).position?A.offsetParent:null}function By(A){let Q=Q1(A),B=Bs(A);for(;B&&["table","td","th"].includes(Q2(B))&&"static"===getComputedStyle(B).position;)B=Bs(B);return B&&("html"===Q2(B)||"body"===Q2(B)&&"static"===getComputedStyle(B).position&&!BQ(B))?Q:B||function(A){let Q=BM(A);for(Q7(Q)&&(Q=Q.host);Q9(Q)&&!["html","body"].includes(Q2(Q));){if(BQ(Q))return Q;Q=Q.parentNode}return null}(A)||Q}function Bn(A){if(Q9(A))return{width:A.offsetWidth,height:A.offsetHeight};let Q=Bg(A);return{width:Q.width,height:Q.height}}function Bh(A,Q){var B;void 0===Q&&(Q=[]);let C=function A(Q){let B=BM(Q);return["html","body","#document"].includes(Q2(B))?Q.ownerDocument.body:Q9(B)&&BA(B)?B:A(B)}(A),I=C===(null==(B=A.ownerDocument)?void 0:B.body),E=Q1(C),g=I?[E].concat(E.visualViewport||[],BA(C)?C:[]):C,w=Q.concat(g);return I?w:w.concat(Bh(g))}function Bk(A,Q,B){return"viewport"===Q?QT(function(A,Q){let B=Q1(A),C=Bw(A),I=B.visualViewport,E=C.clientWidth,g=C.clientHeight,w=0,D=0;if(I){E=I.width,g=I.height;let A=BB();(A||!A&&"fixed"===Q)&&(w=I.offsetLeft,D=I.offsetTop)}return{width:E,height:g,x:w,y:D}}(A,B)):Q6(Q)?function(A,Q){let B=Bg(A,!1,"fixed"===Q),C=B.top+A.clientTop,I=B.left+A.clientLeft;return{top:C,left:I,x:I,y:C,right:I+A.clientWidth,bottom:C+A.clientHeight,width:A.clientWidth,height:A.clientHeight}}(Q,B):QT(function(A){var Q;let B=Bw(A),C=BD(A),I=null==(Q=A.ownerDocument)?void 0:Q.body,E=BI(B.scrollWidth,B.clientWidth,I?I.scrollWidth:0,I?I.clientWidth:0),g=BI(B.scrollHeight,B.clientHeight,I?I.scrollHeight:0,I?I.clientHeight:0),w=-C.scrollLeft+Bc(A),D=-C.scrollTop;return"rtl"===Q4(I||B).direction&&(w+=BI(B.clientWidth,I?I.clientWidth:0)-E),{width:E,height:g,x:w,y:D}}(Bw(A)))}let BK={getClippingRect:function(A){let{element:Q,boundary:B,rootBoundary:C,strategy:I}=A,E=[..."clippingAncestors"===B?function(A){let Q=Bh(A),B=["absolute","fixed"].includes(Q4(A).position)&&Q9(A)?By(A):A;return Q6(B)?Q.filter(A=>Q6(A)&&function(A,Q){let B=null==Q.getRootNode?void 0:Q.getRootNode();if(A.contains(Q))return!0;if(B&&Q7(B)){let B=Q;do{if(B&&A===B)return!0;B=B.parentNode||B.host}while(B)}return!1}(A,B)&&"body"!==Q2(A)):[]}(Q):[].concat(B),C],g=E[0],w=E.reduce((A,B)=>{let C=Bk(Q,B,I);return A.top=BI(C.top,A.top),A.right=BC(C.right,A.right),A.bottom=BC(C.bottom,A.bottom),A.left=BI(C.left,A.left),A},Bk(Q,g,I));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(A){let{rect:Q,offsetParent:B,strategy:C}=A,I=Q9(B),E=Bw(B);if(B===E)return Q;let g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if((I||!I&&"fixed"!==C)&&(("body"!==Q2(B)||BA(E))&&(g=BD(B)),Q9(B))){let A=Bg(B,!0);w.x=A.x+B.clientLeft,w.y=A.y+B.clientTop}return{...Q,x:Q.x-g.scrollLeft+w.x,y:Q.y-g.scrollTop+w.y}},isElement:Q6,getDimensions:Bn,getOffsetParent:By,getDocumentElement:Bw,getElementRects:A=>{let{reference:Q,floating:B,strategy:C}=A;return{reference:function(A,Q,B){let C=Q9(Q),I=Bw(Q),E=Bg(A,C&&function(A){let Q=Bg(A);return BE(Q.width)!==A.offsetWidth||BE(Q.height)!==A.offsetHeight}(Q),"fixed"===B),g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if(C||!C&&"fixed"!==B){if(("body"!==Q2(Q)||BA(I))&&(g=BD(Q)),Q9(Q)){let A=Bg(Q,!0);w.x=A.x+Q.clientLeft,w.y=A.y+Q.clientTop}else I&&(w.x=Bc(I))}return{x:E.left+g.scrollLeft-w.x,y:E.top+g.scrollTop-w.y,width:E.width,height:E.height}}(Q,By(B),C),floating:{...Bn(B),x:0,y:0}}},getClientRects:A=>Array.from(A.getClientRects()),isRTL:A=>"rtl"===Q4(A).direction};function Bt(A,Q,B,C){void 0===C&&(C={});let{ancestorScroll:I=!0,ancestorResize:E=!0,elementResize:g=!0,animationFrame:w=!1}=C,D=I&&!w,c=E&&!w,M=D||c?[...Q6(A)?Bh(A):[],...Bh(Q)]:[];M.forEach(A=>{D&&A.addEventListener("scroll",B,{passive:!0}),c&&A.addEventListener("resize",B)});let s,y=null;if(g){let C=!0;y=new ResizeObserver(()=>{C||B(),C=!1}),Q6(A)&&!w&&y.observe(A),y.observe(Q)}let n=w?Bg(A):null;return w&&function Q(){let C=Bg(A);n&&(C.x!==n.x||C.y!==n.y||C.width!==n.width||C.height!==n.height)&&B(),n=C,s=requestAnimationFrame(Q)}(),B(),()=>{var A;M.forEach(A=>{D&&A.removeEventListener("scroll",B),c&&A.removeEventListener("resize",B)}),null==(A=y)||A.disconnect(),y=null,w&&cancelAnimationFrame(s)}}let BU=(A,Q,B)=>Qm(A,Q,{platform:BK,...B});var BL="undefined"!=typeof document?Ak.useLayoutEffect:Ak.useEffect;let Bi=A=>{let{element:Q,padding:B}=A;return{name:"arrow",options:A,fn(A){if(Object.prototype.hasOwnProperty.call(Q,"current")){if(null!=Q.current)return Qz({element:Q.current,padding:B}).fn(A)}else if(Q)return Qz({element:Q,padding:B}).fn(A);return{}}}},BG=(0,Ak.forwardRef)((A,Q)=>{let{children:B,width:C=10,height:I=5,...E}=A;return(0,Ak.createElement)(Qo.svg,QK({},E,{ref:Q,width:C,height:I,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),A.asChild?B:(0,Ak.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),Bp="Popper",[Br,Ba]=Qi(Bp),[Bo,BN]=Br(Bp),Be=(0,Ak.forwardRef)((A,Q)=>{let{__scopePopper:B,virtualRef:C,...I}=A,E=BN("PopperAnchor",B),g=(0,Ak.useRef)(null),w=QL(Q,g);return(0,Ak.useEffect)(()=>{E.onAnchorChange((null==C?void 0:C.current)||g.current)}),C?null:(0,Ak.createElement)(Qo.div,QK({},I,{ref:w}))}),BJ="PopperContent",[BS,BF]=Br(BJ),[Bl,BY]=Br(BJ,{hasParent:!1,positionUpdateFns:new Set}),BH=(0,Ak.forwardRef)((A,Q)=>{var B,C,I,E,g,w,D,c,M,s,y,n;let{__scopePopper:h,side:k="bottom",sideOffset:K=0,align:t="center",alignOffset:U=0,arrowPadding:L=0,collisionBoundary:i=[],collisionPadding:G=0,sticky:p="partial",hideWhenDetached:r=!1,avoidCollisions:a=!0,...o}=A,N=BN(BJ,h),[e,J]=(0,Ak.useState)(null),S=QL(Q,A=>J(A)),[F,l]=(0,Ak.useState)(null),Y=function(A){let[Q,B]=(0,Ak.useState)(void 0);return QY(()=>{if(A){B({width:A.offsetWidth,height:A.offsetHeight});let Q=new ResizeObserver(Q=>{let C,I;if(!Array.isArray(Q)||!Q.length)return;let E=Q[0];if("borderBoxSize"in E){let A=E.borderBoxSize,Q=Array.isArray(A)?A[0]:A;C=Q.inlineSize,I=Q.blockSize}else C=A.offsetWidth,I=A.offsetHeight;B({width:C,height:I})});return Q.observe(A,{box:"border-box"}),()=>Q.unobserve(A)}B(void 0)},[A]),Q}(F),H=null!==(B=null==Y?void 0:Y.width)&&void 0!==B?B:0,f=null!==(C=null==Y?void 0:Y.height)&&void 0!==C?C:0,d="number"==typeof G?G:{top:0,right:0,bottom:0,left:0,...G},u=Array.isArray(i)?i:[i],R=u.length>0,j={padding:d,boundary:u.filter(Bu),altBoundary:R},{reference:b,floating:m,strategy:Z,x:T,y:P,placement:O,middlewareData:W,update:z}=function(A){let{middleware:Q,placement:B="bottom",strategy:C="absolute",whileElementsMounted:I}=void 0===A?{}:A,E=Ak.useRef(null),g=Ak.useRef(null),w=function(A){let Q=Ak.useRef(A);return BL(()=>{Q.current=A}),Q}(I),D=Ak.useRef(null),[c,M]=Ak.useState({x:null,y:null,strategy:C,placement:B,middlewareData:{}}),[s,y]=Ak.useState(Q);!function A(Q,B){let C,I,E;if(Q===B)return!0;if(typeof Q!=typeof B)return!1;if("function"==typeof Q&&Q.toString()===B.toString())return!0;if(Q&&B&&"object"==typeof Q){if(Array.isArray(Q)){if((C=Q.length)!=B.length)return!1;for(I=C;0!=I--;)if(!A(Q[I],B[I]))return!1;return!0}if((C=(E=Object.keys(Q)).length)!==Object.keys(B).length)return!1;for(I=C;0!=I--;)if(!Object.prototype.hasOwnProperty.call(B,E[I]))return!1;for(I=C;0!=I--;){let C=E[I];if(("_owner"!==C||!Q.$$typeof)&&!A(Q[C],B[C]))return!1}return!0}return Q!=Q&&B!=B}(null==s?void 0:s.map(A=>{let{options:Q}=A;return Q}),null==Q?void 0:Q.map(A=>{let{options:Q}=A;return Q}))&&y(Q);let n=Ak.useCallback(()=>{E.current&&g.current&&BU(E.current,g.current,{middleware:s,placement:B,strategy:C}).then(A=>{h.current&&Ao.flushSync(()=>{M(A)})})},[s,B,C]);BL(()=>{h.current&&n()},[n]);let h=Ak.useRef(!1);BL(()=>(h.current=!0,()=>{h.current=!1}),[]);let k=Ak.useCallback(()=>{if("function"==typeof D.current&&(D.current(),D.current=null),E.current&&g.current){if(w.current){let A=w.current(E.current,g.current,n);D.current=A}else n()}},[n,w]),K=Ak.useCallback(A=>{E.current=A,k()},[k]),t=Ak.useCallback(A=>{g.current=A,k()},[k]),U=Ak.useMemo(()=>({reference:E,floating:g}),[]);return Ak.useMemo(()=>({...c,update:n,refs:U,reference:K,floating:t}),[c,n,U,K,t])}({strategy:"fixed",placement:k+("center"!==t?"-"+t:""),whileElementsMounted:Bt,middleware:[{name:"offset",options:M={mainAxis:K+f,alignmentAxis:U},async fn(A){let{x:Q,y:B}=A,C=await async function(A,Q){let{placement:B,platform:C,elements:I}=A,E=await (null==C.isRTL?void 0:C.isRTL(I.floating)),g=Qd(B),w=Qu(B),D="x"===QR(B),c=["left","top"].includes(g)?-1:1,M=E&&D?-1:1,s="function"==typeof Q?Q(A):Q,{mainAxis:y,crossAxis:n,alignmentAxis:h}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return w&&"number"==typeof h&&(n="end"===w?-1*h:h),D?{x:n*M,y:y*c}:{x:y*c,y:n*M}}(A,M);return{x:Q+C.x,y:B+C.y,data:C}}},a?{name:"shift",options:y={mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(void 0===s&&(s={}),{options:s,fn(A){let{x:Q,y:B,placement:C,rects:I,middlewareData:E}=A,{offset:g=0,mainAxis:w=!0,crossAxis:D=!0}=s,c={x:Q,y:B},M=QR(C),y=Q8(M),n=c[M],h=c[y],k="function"==typeof g?g({...I,placement:C}):g,K="number"==typeof k?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(w){let A="y"===M?"height":"width",Q=I.reference[M]-I.floating[A]+K.mainAxis,B=I.reference[M]+I.reference[A]-K.mainAxis;nB&&(n=B)}if(D){var t,U,L,i;let A="y"===M?"width":"height",Q=["top","left"].includes(Qd(C)),B=I.reference[y]-I.floating[A]+(Q&&null!=(t=null==(U=E.offset)?void 0:U[y])?t:0)+(Q?0:K.crossAxis),g=I.reference[y]+I.reference[A]+(Q?0:null!=(L=null==(i=E.offset)?void 0:i[y])?L:0)-(Q?K.crossAxis:0);hg&&(h=g)}return{[M]:n,[y]:h}}}):void 0,...j},async fn(A){let{x:Q,y:B,placement:C}=A,{mainAxis:I=!0,crossAxis:E=!1,limiter:g={fn:A=>{let{x:Q,y:B}=A;return{x:Q,y:B}}},...w}=y,D={x:Q,y:B},c=await QP(A,w),M=QR(Qd(C)),s=Q8(M),n=D[M],h=D[s];if(I){let A="y"===M?"bottom":"right";n=QW(n+c["y"===M?"top":"left"],QO(n,n-c[A]))}if(E){let A="y"===s?"bottom":"right";h=QW(h+c["y"===s?"top":"left"],QO(h,h-c[A]))}let k=g.fn({...A,[M]:n,[s]:h});return{...k,data:{x:k.x-Q,y:k.y-B}}}}:void 0,F?Bi({element:F,padding:L}):void 0,a?{name:"flip",options:n={...j},async fn(A){var Q,B,C,I;let{placement:E,middlewareData:g,rects:w,initialPlacement:D,platform:c,elements:M}=A,{mainAxis:s=!0,crossAxis:y=!0,fallbackPlacements:h,fallbackStrategy:k="bestFit",flipAlignment:K=!0,...t}=n,U=Qd(E),L=h||(U!==D&&K?function(A){let Q=QV(A);return[QX(A),Q,QX(Q)]}(D):[QV(D)]),i=[D,...L],G=await QP(A,t),p=[],r=(null==(Q=g.flip)?void 0:Q.overflows)||[];if(s&&p.push(G[U]),y){let{main:A,cross:Q}=function(A,Q,B){void 0===B&&(B=!1);let C=Qu(A),I=QR(A),E=Qj(I),g="x"===I?C===(B?"end":"start")?"right":"left":"start"===C?"bottom":"top";return Q.reference[E]>Q.floating[E]&&(g=QV(g)),{main:g,cross:QV(g)}}(E,w,await (null==c.isRTL?void 0:c.isRTL(M.floating)));p.push(G[A],G[Q])}if(r=[...r,{placement:E,overflows:p}],!p.every(A=>A<=0)){let A=(null!=(B=null==(C=g.flip)?void 0:C.index)?B:0)+1,Q=i[A];if(Q)return{data:{index:A,overflows:r},reset:{placement:Q}};let w="bottom";switch(k){case"bestFit":{let A=null==(I=r.map(A=>[A,A.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((A,Q)=>A[1]-Q[1])[0])?void 0:I[0].placement;A&&(w=A);break}case"initialPlacement":w=D}if(E!==w)return{reset:{placement:w}}}return{}}}:void 0,BR({arrowWidth:H,arrowHeight:f}),r?Q0({strategy:"referenceHidden"}):void 0].filter(Bd)});QY(()=>{b(N.anchor)},[b,N.anchor]);let x=null!==T&&null!==P,[V,v]=Bj(O),X=null===(I=W.arrow)||void 0===I?void 0:I.x,q=null===(E=W.arrow)||void 0===E?void 0:E.y,_=(null===(g=W.arrow)||void 0===g?void 0:g.centerOffset)!==0,[$,AA]=(0,Ak.useState)();QY(()=>{e&&AA(window.getComputedStyle(e).zIndex)},[e]);let{hasParent:AQ,positionUpdateFns:AB}=BY(BJ,h),AC=!AQ;(0,Ak.useLayoutEffect)(()=>{if(!AC)return AB.add(z),()=>{AB.delete(z)}},[AC,AB,z]),(0,Ak.useLayoutEffect)(()=>{AC&&x&&Array.from(AB).reverse().forEach(A=>requestAnimationFrame(A))},[AC,x,AB]);let AI={"data-side":V,"data-align":v,...o,ref:S,style:{...o.style,animation:x?void 0:"none",opacity:null!==(w=W.hide)&&void 0!==w&&w.referenceHidden?0:void 0}};return(0,Ak.createElement)("div",{ref:m,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:x?`translate3d(${Math.round(T)}px, ${Math.round(P)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[null===(D=W.transformOrigin)||void 0===D?void 0:D.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")}},(0,Ak.createElement)(BS,{scope:h,placedSide:V,onArrowChange:l,arrowX:X,arrowY:q,shouldHideArrow:_},AC?(0,Ak.createElement)(Bl,{scope:h,hasParent:!0,positionUpdateFns:AB},(0,Ak.createElement)(Qo.div,AI)):(0,Ak.createElement)(Qo.div,AI)))}),Bf={top:"bottom",right:"left",bottom:"top",left:"right"};function Bd(A){return void 0!==A}function Bu(A){return null!==A}let BR=A=>({name:"transformOrigin",options:A,fn(Q){var B,C,I,E,g;let{placement:w,rects:D,middlewareData:c}=Q,M=(null===(B=c.arrow)||void 0===B?void 0:B.centerOffset)!==0,s=M?0:A.arrowWidth,y=M?0:A.arrowHeight,[n,h]=Bj(w),k={start:"0%",center:"50%",end:"100%"}[h],K=(null!==(C=null===(I=c.arrow)||void 0===I?void 0:I.x)&&void 0!==C?C:0)+s/2,t=(null!==(E=null===(g=c.arrow)||void 0===g?void 0:g.y)&&void 0!==E?E:0)+y/2,U="",L="";return"bottom"===n?(U=M?k:`${K}px`,L=`${-y}px`):"top"===n?(U=M?k:`${K}px`,L=`${D.floating.height+y}px`):"right"===n?(U=`${-y}px`,L=M?k:`${t}px`):"left"===n&&(U=`${D.floating.width+y}px`,L=M?k:`${t}px`),{data:{x:U,y:L}}}});function Bj(A){let[Q,B="center"]=A.split("-");return[Q,B]}let Bb=A=>{let{__scopePopper:Q,children:B}=A,[C,I]=(0,Ak.useState)(null);return(0,Ak.createElement)(Bo,{scope:Q,anchor:C,onAnchorChange:I},B)},Bm=(0,Ak.forwardRef)((A,Q)=>{var B;let{container:C=null==globalThis?void 0:null===(B=globalThis.document)||void 0===B?void 0:B.body,...I}=A;return C?Ao.createPortal((0,Ak.createElement)(Qo.div,QK({},I,{ref:Q})),C):null}),BZ=A=>{let{present:Q,children:B}=A,C=function(A){var Q,B;let[C,I]=(0,Ak.useState)(),E=(0,Ak.useRef)({}),g=(0,Ak.useRef)(A),w=(0,Ak.useRef)("none"),[D,c]=(Q=A?"mounted":"unmounted",B={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,Ak.useReducer)((A,Q)=>{let C=B[A][Q];return null!=C?C:A},Q));return(0,Ak.useEffect)(()=>{let A=BT(E.current);w.current="mounted"===D?A:"none"},[D]),QY(()=>{let Q=E.current,B=g.current;if(B!==A){let C=w.current,I=BT(Q);A?c("MOUNT"):"none"===I||(null==Q?void 0:Q.display)==="none"?c("UNMOUNT"):B&&C!==I?c("ANIMATION_OUT"):c("UNMOUNT"),g.current=A}},[A,c]),QY(()=>{if(C){let A=A=>{let Q=BT(E.current).includes(A.animationName);A.target===C&&Q&&(0,Ao.flushSync)(()=>c("ANIMATION_END"))},Q=A=>{A.target===C&&(w.current=BT(E.current))};return C.addEventListener("animationstart",Q),C.addEventListener("animationcancel",A),C.addEventListener("animationend",A),()=>{C.removeEventListener("animationstart",Q),C.removeEventListener("animationcancel",A),C.removeEventListener("animationend",A)}}c("ANIMATION_END")},[C,c]),{isPresent:["mounted","unmountSuspended"].includes(D),ref:(0,Ak.useCallback)(A=>{A&&(E.current=getComputedStyle(A)),I(A)},[])}}(Q),I="function"==typeof B?B({present:C.isPresent}):Ak.Children.only(B),E=QL(C.ref,I.ref);return"function"==typeof B||C.isPresent?(0,Ak.cloneElement)(I,{ref:E}):null};function BT(A){return(null==A?void 0:A.animationName)||"none"}BZ.displayName="Presence";let BP=(0,Ak.forwardRef)((A,Q)=>(0,Ak.createElement)(Qo.span,QK({},A,{ref:Q,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",...A.style}}))),[BO,BW]=Qi("Tooltip",[Ba]),Bz=Ba(),Bx="tooltip.open",[BV,Bv]=BO("TooltipProvider"),BX="Tooltip",[Bq,B_]=BO(BX),B$="TooltipTrigger",B0=(0,Ak.forwardRef)((A,Q)=>{let{__scopeTooltip:B,...C}=A,I=B_(B$,B),E=Bv(B$,B),g=Bz(B),w=QL(Q,(0,Ak.useRef)(null),I.onTriggerChange),D=(0,Ak.useRef)(!1),c=(0,Ak.useRef)(!1),M=(0,Ak.useCallback)(()=>D.current=!1,[]);return(0,Ak.useEffect)(()=>()=>document.removeEventListener("pointerup",M),[M]),(0,Ak.createElement)(Be,QK({asChild:!0},g),(0,Ak.createElement)(Qo.button,QK({"aria-describedby":I.open?I.contentId:void 0,"data-state":I.stateAttribute},C,{ref:w,onPointerMove:Qt(A.onPointerMove,A=>{"touch"===A.pointerType||c.current||E.isPointerInTransitRef.current||(I.onTriggerEnter(),c.current=!0)}),onPointerLeave:Qt(A.onPointerLeave,()=>{I.onTriggerLeave(),c.current=!1}),onPointerDown:Qt(A.onPointerDown,()=>{D.current=!0,document.addEventListener("pointerup",M,{once:!0})}),onFocus:Qt(A.onFocus,()=>{D.current||I.onOpen()}),onBlur:Qt(A.onBlur,I.onClose),onClick:Qt(A.onClick,A=>{0===A.detail&&I.onClose()})})))}),B8="TooltipPortal",[B3,B1]=BO(B8,{forceMount:void 0}),B4="TooltipContent",B2=(0,Ak.forwardRef)((A,Q)=>{let B=B1(B4,A.__scopeTooltip),{forceMount:C=B.forceMount,side:I="top",...E}=A,g=B_(B4,A.__scopeTooltip);return(0,Ak.createElement)(BZ,{present:C||g.open},g.disableHoverableContent?(0,Ak.createElement)(B7,QK({side:I},E,{ref:Q})):(0,Ak.createElement)(B5,QK({side:I},E,{ref:Q})))}),B5=(0,Ak.forwardRef)((A,Q)=>{let B=B_(B4,A.__scopeTooltip),C=Bv(B4,A.__scopeTooltip),I=(0,Ak.useRef)(null),E=QL(Q,I),[g,w]=(0,Ak.useState)(null),{trigger:D,onClose:c}=B,M=I.current,{onPointerInTransitChange:s}=C,y=(0,Ak.useCallback)(()=>{w(null),s(!1)},[s]),n=(0,Ak.useCallback)((A,Q)=>{let B=A.currentTarget,C=function(A,Q){let B=Math.abs(Q.top-A.y),C=Math.abs(Q.bottom-A.y),I=Math.abs(Q.right-A.x),E=Math.abs(Q.left-A.x);switch(Math.min(B,C,I,E)){case E:return"left";case I:return"right";case B:return"top";case C:return"bottom";default:return null}}({x:A.clientX,y:A.clientY},B.getBoundingClientRect()),I="right"===C||"bottom"===C?-5:5;w(function(A){let Q=A.slice();return Q.sort((A,Q)=>A.xQ.x?1:A.yQ.y?1:0),function(A){if(A.length<=1)return A.slice();let Q=[];for(let B=0;B=2;){let A=Q[Q.length-1],B=Q[Q.length-2];if((A.x-B.x)*(C.y-B.y)>=(A.y-B.y)*(C.x-B.x))Q.pop();else break}Q.push(C)}Q.pop();let B=[];for(let Q=A.length-1;Q>=0;Q--){let C=A[Q];for(;B.length>=2;){let A=B[B.length-1],Q=B[B.length-2];if((A.x-Q.x)*(C.y-Q.y)>=(A.y-Q.y)*(C.x-Q.x))B.pop();else break}B.push(C)}return(B.pop(),1===Q.length&&1===B.length&&Q[0].x===B[0].x&&Q[0].y===B[0].y)?Q:Q.concat(B)}(Q)}(["right"===C||"left"===C?{x:A.clientX+I,y:A.clientY}:{x:A.clientX,y:A.clientY+I},...function(A){let{top:Q,right:B,bottom:C,left:I}=A;return[{x:I,y:Q},{x:B,y:Q},{x:B,y:C},{x:I,y:C}]}(Q.getBoundingClientRect())])),s(!0)},[s]);return(0,Ak.useEffect)(()=>()=>y(),[y]),(0,Ak.useEffect)(()=>{if(D&&M){let A=A=>n(A,M),Q=A=>n(A,D);return D.addEventListener("pointerleave",A),M.addEventListener("pointerleave",Q),()=>{D.removeEventListener("pointerleave",A),M.removeEventListener("pointerleave",Q)}}},[D,M,n,y]),(0,Ak.useEffect)(()=>{if(g){let A=A=>{let Q=A.target,B={x:A.clientX,y:A.clientY},C=(null==D?void 0:D.contains(Q))||(null==M?void 0:M.contains(Q)),I=!function(A,Q){let{x:B,y:C}=A,I=!1;for(let A=0,E=Q.length-1;AC!=c>C&&B<(D-g)*(C-w)/(c-w)+g&&(I=!I)}return I}(B,g);C?y():I&&(y(),c())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[D,M,g,c,y]),(0,Ak.createElement)(B7,QK({},A,{ref:E}))}),[B9,B6]=BO(BX,{isInside:!1}),B7=(0,Ak.forwardRef)((A,Q)=>{let{__scopeTooltip:B,children:C,"aria-label":I,onEscapeKeyDown:E,onPointerDownOutside:g,...w}=A,D=B_(B4,B),c=Bz(B),{onClose:M}=D;return(0,Ak.useEffect)(()=>(document.addEventListener(Bx,M),()=>document.removeEventListener(Bx,M)),[M]),(0,Ak.useEffect)(()=>{if(D.trigger){let A=A=>{let Q=A.target;null!=Q&&Q.contains(D.trigger)&&M()};return window.addEventListener("scroll",A,{capture:!0}),()=>window.removeEventListener("scroll",A,{capture:!0})}},[D.trigger,M]),(0,Ak.createElement)(QS,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:E,onPointerDownOutside:g,onFocusOutside:A=>A.preventDefault(),onDismiss:M},(0,Ak.createElement)(BH,QK({"data-state":D.stateAttribute},c,w,{ref:Q,style:{...w.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,Ak.createElement)(Qr,null,C),(0,Ak.createElement)(B9,{scope:B,isInside:!0},(0,Ak.createElement)(BP,{id:D.contentId,role:"tooltip"},I||C))))}),CA=A=>{let{__scopeTooltip:Q,children:B,open:C,defaultOpen:I=!1,onOpenChange:E,disableHoverableContent:g,delayDuration:w}=A,D=Bv(BX,A.__scopeTooltip),c=Bz(Q),[M,s]=(0,Ak.useState)(null),y=function(A){let[Q,B]=Ak.useState(QH());return QY(()=>{B(A=>null!=A?A:String(Qf++))},[void 0]),Q?`radix-${Q}`:""}(),n=(0,Ak.useRef)(0),h=null!=g?g:D.disableHoverableContent,k=null!=w?w:D.delayDuration,K=(0,Ak.useRef)(!1),[t=!1,U]=function({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=(0,Ak.useState)(A),[C]=B,I=(0,Ak.useRef)(C),E=QN(Q);return(0,Ak.useEffect)(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=QN(B);return[g,(0,Ak.useCallback)(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}({prop:C,defaultProp:I,onChange:A=>{A?(D.onOpen(),document.dispatchEvent(new CustomEvent(Bx))):D.onClose(),null==E||E(A)}}),L=(0,Ak.useMemo)(()=>t?K.current?"delayed-open":"instant-open":"closed",[t]),i=(0,Ak.useCallback)(()=>{window.clearTimeout(n.current),K.current=!1,U(!0)},[U]),G=(0,Ak.useCallback)(()=>{window.clearTimeout(n.current),U(!1)},[U]),p=(0,Ak.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(()=>{K.current=!0,U(!0)},k)},[k,U]);return(0,Ak.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,Ak.createElement)(Bb,c,(0,Ak.createElement)(Bq,{scope:Q,contentId:y,open:t,stateAttribute:L,trigger:M,onTriggerChange:s,onTriggerEnter:(0,Ak.useCallback)(()=>{D.isOpenDelayed?p():i()},[D.isOpenDelayed,p,i]),onTriggerLeave:(0,Ak.useCallback)(()=>{h?G():window.clearTimeout(n.current)},[G,h]),onOpen:i,onClose:G,disableHoverableContent:h},B))},CQ=A=>{let{__scopeTooltip:Q,forceMount:B,children:C,container:I}=A,E=B_(B8,Q);return(0,Ak.createElement)(B3,{scope:Q,forceMount:B},(0,Ak.createElement)(BZ,{present:B||E.open},(0,Ak.createElement)(Bm,{asChild:!0,container:I},C)))},CB=(0,Qk.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"}}),CC=Ak.forwardRef((A,Q)=>{let{tag:B="span",className:C,font:I,color:E,weight:g,size:w,scaleSize:D,noWrap:c,underline:M,ellipsis:s,wrapEllipsis:y,...n}=A;return(0,Ah.jsx)(B,{ref:Q,className:(0,Qk.cx)(C,CB({font:I,color:E,weight:g,size:w,scaleSize:D,underline:M,noWrap:c,ellipsis:s,wrapEllipsis:y})),...n})}),CI=Ak.forwardRef((A,Q)=>{let{size:B="18",...C}=A;return(0,Ah.jsx)(CC,{tag:"p",...C,ref:Q,weight:"regular",scaleSize:B,color:"subtle",className:(0,Qk.cx)("leading-relaxed md:leading-relaxed",A.className)})}),CE=(0,Qk.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"}}),Cg=Ak.forwardRef((A,Q)=>{let{className:B,color:C,...I}=A;return(0,Ah.jsx)("div",{ref:Q,className:CE({className:B,color:C}),...I})});var Cw=B(93542);let CD=(void 0===Cw||Cw.env,"production"),Cc=1/60*1e3,CM="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Cs="undefined"!=typeof window?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(CM()),Cc),Cy=!0,Cn=!1,Ch=!1,Ck={delta:0,timestamp:0},CK=["read","update","preRender","render","postRender"],Ct=CK.reduce((A,Q)=>(A[Q]=function(A){let Q=[],B=[],C=0,I=!1,E=!1,g=new WeakSet,w={schedule:(A,E=!1,w=!1)=>{let D=w&&I,c=D?Q:B;return E&&g.add(A),-1===c.indexOf(A)&&(c.push(A),D&&I&&(C=Q.length)),A},cancel:A=>{let Q=B.indexOf(A);-1!==Q&&B.splice(Q,1),g.delete(A)},process:D=>{if(I){E=!0;return}if(I=!0,[Q,B]=[B,Q],B.length=0,C=Q.length)for(let B=0;BCn=!0),A),{}),CU=CK.reduce((A,Q)=>{let B=Ct[Q];return A[Q]=(A,Q=!1,C=!1)=>(Cn||Cr(),B.schedule(A,Q,C)),A},{}),CL=CK.reduce((A,Q)=>(A[Q]=Ct[Q].cancel,A),{}),Ci=CK.reduce((A,Q)=>(A[Q]=()=>Ct[Q].process(Ck),A),{}),CG=A=>Ct[A].process(Ck),Cp=A=>{Cn=!1,Ck.delta=Cy?Cc:Math.max(Math.min(A-Ck.timestamp,40),1),Ck.timestamp=A,Ch=!0,CK.forEach(CG),Ch=!1,Cn&&(Cy=!1,Cs(Cp))},Cr=()=>{Cn=!0,Cy=!0,Ch||Cs(Cp)},Ca=()=>Ck,Co="undefined"!=typeof document,CN=Co?Ak.useLayoutEffect:Ak.useEffect;function Ce(){let A=(0,Ak.useRef)(!1);return CN(()=>(A.current=!0,()=>{A.current=!1}),[]),A}let CJ=(0,Ak.createContext)(null);function CS(A){let Q=(0,Ak.useRef)(null);return null===Q.current&&(Q.current=A()),Q.current}class CF extends Ak.Component{getSnapshotBeforeUpdate(A){let Q=this.props.childRef.current;if(Q&&A.isPresent&&!this.props.isPresent){let A=this.props.sizeRef.current;A.height=Q.offsetHeight||0,A.width=Q.offsetWidth||0,A.top=Q.offsetTop,A.left=Q.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Cl({children:A,isPresent:Q}){let B=(0,Ak.useId)(),C=(0,Ak.useRef)(null),I=(0,Ak.useRef)({width:0,height:0,top:0,left:0});return(0,Ak.useInsertionEffect)(()=>{let{width:A,height:E,top:g,left:w}=I.current;if(Q||!C.current||!A||!E)return;C.current.dataset.motionPopId=B;let D=document.createElement("style");return document.head.appendChild(D),D.sheet&&D.sheet.insertRule(` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75102:function(A,Q,B){"use strict";B.d(Q,{An:function(){return c},Ht:function(){return M},R7:function(){return h},RH:function(){return n}});var C,I,E=B(97699),g=B.n(E);(C=I||(I={})).blue="blue",C.nanoS="nanoS",C.nanoSP="nanoSP",C.nanoX="nanoX",C.stax="stax";let w={[I.blue]:{id:I.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:A=>4096},[I.nanoS]:{id:I.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:A=>{var Q;return g().lt(null!==(Q=g().coerce(A))&&void 0!==Q?Q:"","2.0.0")?4096:2048}},[I.nanoSP]:{id:I.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:A=>32},[I.nanoX]:{id:I.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:A=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[I.stax]:{id:I.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:A=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}};I.blue,I.nanoS,I.nanoSP,I.nanoX,I.stax;let D=Object.values(w),c=11415,M=A=>{let Q=D.find(Q=>Q.legacyUsbProductId===A);if(Q)return Q;let B=A>>8;return D.find(A=>A.productIdMM===B)},s=[],y={};for(let A in w){let Q=w[A],{bluetoothSpec:B}=Q;if(B)for(let A=0;As,h=A=>y[A.toLowerCase()]},9341:function(A,Q,B){"use strict";var C,I;B.d(Q,{qX:function(){return M},vs:function(){return s},WC:function(){return k},PS:function(){return h},FB:function(){return y},wp:function(){return n},rZ:function(){return K}});let E={},g={},w=(A,Q)=>{g[A]=Q},D=A=>{class Q extends Error{constructor(B,C,I){if(super(B||A,I),Object.setPrototypeOf(this,Q.prototype),this.name=A,C)for(let A in C)this[A]=C[A];if(I&&"object"==typeof I&&"cause"in I&&!("cause"in this)){let A=I.cause;this.cause=A,"stack"in A&&(this.stack=this.stack+"\nCAUSE: "+A.stack)}}}return E[A]=Q,Q};D("AccountNameRequired"),D("AccountNotSupported"),D("AmountRequired"),D("BluetoothRequired"),D("BtcUnmatchedApp"),D("CantOpenDevice"),D("CashAddrNotSupported"),D("ClaimRewardsFeesWarning"),D("CurrencyNotSupported"),D("DeviceAppVerifyNotSupported"),D("DeviceGenuineSocketEarlyClose"),D("DeviceNotGenuine"),D("DeviceOnDashboardExpected"),D("DeviceOnDashboardUnexpected"),D("DeviceInOSUExpected"),D("DeviceHalted"),D("DeviceNameInvalid"),D("DeviceSocketFail"),D("DeviceSocketNoBulkStatus");let c=D("LockedDeviceError");D("UnresponsiveDeviceError");let M=D("DisconnectedDevice"),s=D("DisconnectedDeviceDuringOperation");D("DeviceExtractOnboardingStateError"),D("DeviceOnboardingStatePollingError"),D("EnpointConfig"),D("EthAppPleaseEnableContractData"),D("FeeEstimationFailed"),D("FirmwareNotRecognized"),D("HardResetFail"),D("InvalidXRPTag"),D("InvalidAddress"),D("InvalidNonce"),D("InvalidAddressBecauseDestinationIsAlsoSource"),D("LatestMCUInstalledError"),D("UnknownMCU"),D("LedgerAPIError"),D("LedgerAPIErrorWithMessage"),D("LedgerAPINotAvailable"),D("ManagerAppAlreadyInstalled"),D("ManagerAppRelyOnBTC"),D("ManagerAppDepInstallRequired"),D("ManagerAppDepUninstallRequired"),D("ManagerDeviceLocked"),D("ManagerFirmwareNotEnoughSpace"),D("ManagerNotEnoughSpace"),D("ManagerUninstallBTCDep"),D("NetworkDown"),D("NoAddressesFound"),D("NotEnoughBalance"),D("NotEnoughBalanceToDelegate"),D("NotEnoughBalanceInParentAccount"),D("NotEnoughSpendableBalance"),D("NotEnoughBalanceBecauseDestinationNotCreated"),D("NoAccessToCamera"),D("NotEnoughGas"),D("NotEnoughGasSwap"),D("NotSupportedLegacyAddress"),D("GasLessThanEstimate"),D("PriorityFeeTooLow"),D("PriorityFeeTooHigh"),D("PriorityFeeHigherThanMaxFee"),D("MaxFeeTooLow"),D("PasswordsDontMatch"),D("PasswordIncorrect"),D("RecommendSubAccountsToEmpty"),D("RecommendUndelegation"),D("TimeoutTagged"),D("UnexpectedBootloader"),D("MCUNotGenuineToDashboard"),D("RecipientRequired"),D("UnavailableTezosOriginatedAccountReceive"),D("UnavailableTezosOriginatedAccountSend"),D("UpdateFetchFileFail"),D("UpdateIncorrectHash"),D("UpdateIncorrectSig"),D("UpdateYourApp"),D("UserRefusedDeviceNameChange"),D("UserRefusedAddress"),D("UserRefusedFirmwareUpdate"),D("UserRefusedAllowManager"),D("UserRefusedOnDevice");let y=D("TransportOpenUserCancelled");D("TransportInterfaceNotAvailable");let n=D("TransportRaceCondition");D("TransportWebUSBGestureRequired"),D("TransactionHasBeenValidatedError"),D("DeviceShouldStayInApp"),D("WebsocketConnectionError"),D("WebsocketConnectionFailed"),D("WrongDeviceForAccount"),D("WrongAppForCurrency"),D("ETHAddressNonEIP"),D("CantScanQRCode"),D("FeeNotLoaded"),D("FeeRequired"),D("FeeTooHigh"),D("PendingOperation"),D("SyncError"),D("PairingFailed"),D("PeerRemovedPairing"),D("GenuineCheckFailed"),D("LedgerAPI4xx"),D("LedgerAPI5xx"),D("FirmwareOrAppUpdateRequired"),D("OpReturnSizeLimit"),D("DustLimit"),D("LanguageNotFound"),D("NoDBPathGiven"),D("DBWrongPassword"),D("DBNotReset"),(I=C||(C={})).Unknown="Unknown",I.LocationServicesDisabled="LocationServicesDisabled",I.LocationServicesUnauthorized="LocationServicesUnauthorized",I.BluetoothScanStartFailed="BluetoothScanStartFailed";class h extends Error{constructor(A,Q){let B="TransportError";super(A||B),this.name=B,this.message=A,this.stack=Error(A).stack,this.id=Q}}w("TransportError",A=>new h(A.message,A.id));let k={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};function K(A){let Q=Object.keys(k).find(Q=>k[Q]===A)||"UNKNOWN_ERROR",B=function(A){switch(A){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=A&&A<=28671)return"Internal error, please report"}(A)||Q,C=A.toString(16),I=`Ledger device: ${B} (0x${C})`;if(A===k.LOCKED_DEVICE)throw new c(I);this.name="TransportStatusError",this.message=I,this.stack=Error(I).stack,this.statusCode=A,this.statusText=Q}K.prototype=Error(),w("TransportStatusError",A=>new K(A.statusCode))},65597:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return AS}});var C,I=B(97790),E=B(9341),g=B(75102),w=function(A,Q){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)};function D(A,Q){function B(){this.constructor=A}w(A,Q),A.prototype=null===Q?Object.create(Q):(B.prototype=Q.prototype,new B)}function c(A){return"function"==typeof A}var M=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,M=value},get useDeprecatedSynchronousErrorHandling(){return M}};function y(A){setTimeout(function(){throw A},0)}var n={closed:!0,next:function(A){},error:function(A){if(s.useDeprecatedSynchronousErrorHandling)throw A;y(A)},complete:function(){}},h=Array.isArray||function(A){return A&&"number"==typeof A.length};function k(A){return null!==A&&"object"==typeof A}var K=function(){function A(A){return Error.call(this),this.message=A?A.length+" errors occurred during unsubscription:\n"+A.map(function(A,Q){return Q+1+") "+A.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=A,this}return A.prototype=Object.create(Error.prototype),A}(),t=function(){var A;function Q(A){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,A&&(this._ctorUnsubscribe=!0,this._unsubscribe=A)}return Q.prototype.unsubscribe=function(){if(!this.closed){var A,B=this._parentOrParents,C=this._ctorUnsubscribe,I=this._unsubscribe,E=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,B instanceof Q)B.remove(this);else if(null!==B)for(var g=0;g{let C=(function(A,Q){let B=[];for(let C=0,I=Q(0);CB-(0===A?5:3)).map((A,B)=>{let C=e.alloc(0===B?5:3);return C.writeUInt8(5,0),C.writeUInt16BE(B,1),0===B&&C.writeUInt16BE(Q.length,3),e.concat([C,A])});return new a(Q=>{let B=!1;return(function(){var Q,I,E,g;return Q=this,I=void 0,E=void 0,g=function*(){for(let Q of C){if(B)return;yield A(Q)}},new(E||(E=Promise))(function(A,B){function C(A){try{D(g.next(A))}catch(A){B(A)}}function w(A){try{D(g.throw(A))}catch(A){B(A)}}function D(Q){var B;Q.done?A(Q.value):((B=Q.value)instanceof E?B:new E(function(A){A(B)})).then(C,w)}D((g=g.apply(Q,I||[])).next())})})().then(()=>{B=!0,Q.complete()},A=>{B=!0,(0,N.c)("ble-error","sendAPDU failure "+String(A)),Q.error(A)}),()=>{B||((0,N.c)("ble-verbose","sendAPDU interruption"),B=!0)}})};var S=B(48834).lW;let F=A=>a.create(Q=>{let B=0,C=0,I=S.alloc(0),g=A.subscribe({complete:()=>{Q.error(new E.qX),g.unsubscribe()},error:A=>{(0,N.c)("ble-error","in receiveAPDU "+String(A)),Q.error(A),g.unsubscribe()},next:A=>{let w=A.readUInt8(0),D=A.readUInt16BE(1),c=A.slice(3);if(5!==w){Q.error(new E.PS("Invalid tag "+w.toString(16),"InvalidTag"));return}if(B!==D){Q.error(new E.PS("BLE: Invalid sequence number. discontinued chunk. Received "+D+" but expected "+B,"InvalidSequence"));return}if(0===D&&(C=c.readUInt16BE(0),c=c.slice(2)),B++,(I=S.concat([I,c])).length>C){Q.error(new E.PS("BLE: received too much data. discontinued chunk. Received "+I.length+" but expected "+C,"BLETooMuchData"));return}I.length===C&&(Q.next(I),Q.complete(),g.unsubscribe())}});return()=>{g.unsubscribe()}});function l(A,Q){return function(B){if("function"!=typeof A)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return B.lift(new Y(A,Q))}}var Y=function(){function A(A,Q){this.project=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new H(A,this.project,this.thisArg))},A}(),H=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.project=B,I.count=0,I.thisArg=C||I,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.project.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}this.destination.next(Q)},Q}(i),f=function(A){return function(Q){for(var B=0,C=A.length;B0?this._next(A.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},Q}(T);function W(){for(var A,Q,B=[],C=0;C1&&"number"==typeof B[B.length-1]&&(I=B.pop())):"number"==typeof g&&(I=B.pop()),null===E&&1===B.length&&B[0]instanceof a)?B[0]:(void 0===(A=I)&&(A=Number.POSITIVE_INFINITY),function A(Q,B,C){return(void 0===C&&(C=Number.POSITIVE_INFINITY),"function"==typeof B)?function(I){return I.pipe(A(function(A,C){return m(Q(A,C)).pipe(l(function(Q,I){return B(A,Q,C,I)}))},C))}:("number"==typeof B&&(C=B),function(A){return A.lift(new P(Q,C))})}(r,A))((Q=E)?b(B,Q):new a(f(B)))}var z=new a(function(A){return A.complete()});function x(){}var V=function(){function A(A,Q,B){this.nextOrObserver=A,this.error=Q,this.complete=B}return A.prototype.call=function(A,Q){return Q.subscribe(new v(A,this.nextOrObserver,this.error,this.complete))},A}(),v=function(A){function Q(Q,B,C,I){var E=A.call(this,Q)||this;return E._tapNext=x,E._tapError=x,E._tapComplete=x,E._tapError=C||x,E._tapComplete=I||x,c(B)?(E._context=E,E._tapNext=B):B&&(E._context=B,E._tapNext=B.next||x,E._tapError=B.error||x,E._tapComplete=B.complete||x),E}return D(Q,A),Q.prototype._next=function(A){try{this._tapNext.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.next(A)},Q.prototype._error=function(A){try{this._tapError.call(this._context,A)}catch(A){this.destination.error(A);return}this.destination.error(A)},Q.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(A){this.destination.error(A);return}return this.destination.complete()},Q}(i),X=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}(),q=function(A){function Q(Q,B){var C=A.call(this)||this;return C.subject=Q,C.subscriber=B,C.closed=!1,C}return D(Q,A),Q.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this.subject,Q=A.observers;if(this.subject=null,Q&&0!==Q.length&&!A.isStopped&&!A.closed){var B=Q.indexOf(this.subscriber);-1!==B&&Q.splice(B,1)}}},Q}(t),_=function(A){function Q(Q){var B=A.call(this,Q)||this;return B.destination=Q,B}return D(Q,A),Q}(i),$=function(A){function Q(){var Q=A.call(this)||this;return Q.observers=[],Q.closed=!1,Q.isStopped=!1,Q.hasError=!1,Q.thrownError=null,Q}return D(Q,A),Q.prototype[L]=function(){return new _(this)},Q.prototype.lift=function(A){var Q=new AA(this,this);return Q.operator=A,Q},Q.prototype.next=function(A){if(this.closed)throw new X;if(!this.isStopped)for(var Q=this.observers,B=Q.length,C=Q.slice(),I=0;I1)){this.connection=null;return}var B=this.connection,C=A._connection;this.connection=null,C&&(!B||C===B)&&C.unsubscribe()},Q}(i),AI={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(C=function(A){function Q(Q,B){var C=A.call(this)||this;return C.source=Q,C.subjectFactory=B,C._refCount=0,C._isComplete=!1,C}return D(Q,A),Q.prototype._subscribe=function(A){return this.getSubject().subscribe(A)},Q.prototype.getSubject=function(){var A=this._subject;return(!A||A.isStopped)&&(this._subject=this.subjectFactory()),this._subject},Q.prototype.connect=function(){var A=this._connection;return!A&&(this._isComplete=!1,(A=this._connection=new t).add(this.source.subscribe(new AE(this.getSubject(),this))),A.closed&&(this._connection=null,A=t.EMPTY)),A},Q.prototype.refCount=function(){return AQ()(this)},Q}(a).prototype)._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}},AE=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.connectable=B,C}return D(Q,A),Q.prototype._error=function(Q){this._unsubscribe(),A.prototype._error.call(this,Q)},Q.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),A.prototype._complete.call(this)},Q.prototype._unsubscribe=function(){var A=this.connectable;if(A){this.connectable=null;var Q=A._connection;A._refCount=0,A._subject=null,A._connection=null,Q&&Q.unsubscribe()}},Q}(_);function Ag(){return new $}var Aw=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}(),AD=function(){function A(A,Q){this.predicate=A,this.thisArg=Q}return A.prototype.call=function(A,Q){return Q.subscribe(new Ac(A,this.predicate,this.thisArg))},A}(),Ac=function(A){function Q(Q,B,C){var I=A.call(this,Q)||this;return I.predicate=B,I.thisArg=C,I.count=0,I}return D(Q,A),Q.prototype._next=function(A){var Q;try{Q=this.predicate.call(this.thisArg,A,this.count++)}catch(A){this.destination.error(A);return}Q&&this.destination.next(A)},Q}(i),AM=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}(),As=function(){function A(A){if(this.total=A,this.total<0)throw new AM}return A.prototype.call=function(A,Q){return Q.subscribe(new Ay(A,this.total))},A}(),Ay=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.total=B,C.count=0,C}return D(Q,A),Q.prototype._next=function(A){var Q=this.total,B=++this.count;B<=Q&&(this.destination.next(A),B===Q&&(this.destination.complete(),this.unsubscribe()))},Q}(i),An=function(){function A(A){this.defaultValue=A}return A.prototype.call=function(A,Q){return Q.subscribe(new Ah(A,this.defaultValue))},A}(),Ah=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.defaultValue=B,C.isEmpty=!0,C}return D(Q,A),Q.prototype._next=function(A){this.isEmpty=!1,this.destination.next(A)},Q.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},Q}(i),Ak=function(){function A(A){this.errorFactory=A}return A.prototype.call=function(A,Q){return Q.subscribe(new AK(A,this.errorFactory))},A}(),AK=function(A){function Q(Q,B){var C=A.call(this,Q)||this;return C.errorFactory=B,C.hasValue=!1,C}return D(Q,A),Q.prototype._next=function(A){this.hasValue=!0,this.destination.next(A)},Q.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var A=void 0;try{A=this.errorFactory()}catch(Q){A=Q}this.destination.error(A)},Q}(i),At=function(){function A(){}return A.prototype.call=function(A,Q){return Q.subscribe(new AU(A))},A}(),AU=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return D(Q,A),Q.prototype._next=function(A){},Q}(i),AL=B(48834).lW;let Ai=A=>a.create(Q=>{function B(A){let B=A.target;B.value&&Q.next(AL.from(B.value.buffer))}return(0,N.c)("ble-verbose","start monitor "+A.uuid),A.startNotifications().then(()=>{A.addEventListener("characteristicvaluechanged",B)}),()=>{(0,N.c)("ble-verbose","end monitor "+A.uuid),A.stopNotifications()}});var AG=B(48834).lW,Ap=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let Ar=()=>{let{bluetooth:A}=navigator;if(void 0===A)throw Error("web bluetooth not supported");return A},Aa=()=>a.create(A=>{let Q=Ar(),B=Q=>{A.next(Q.value)};Q.addEventListener("availabilitychanged",B);let C=!1;return Q.getAvailability().then(Q=>{C||A.next(Q)}),()=>{C=!0,Q.removeEventListener("availabilitychanged",B)}}),Ao={},AN=()=>({filters:(0,g.RH)().map(A=>({services:[A]}))}),Ae=A=>Ap(void 0,void 0,void 0,function*(){if(!A.gatt)throw Error("bluetooth gatt not found");let[Q]=yield A.gatt.getPrimaryServices();if(!Q)throw Error("bluetooth service not found");let B=(0,g.R7)(Q.uuid);if(!B)throw Error("bluetooth service infos not found");return[Q,B]});class AJ extends I.ZP{static listen(A){let Q;return(0,N.c)("ble-verbose","listen..."),Ar().requestDevice(AN()).then(B=>{Q||(A.next({type:"add",descriptor:B}),A.complete())},Q=>{A.error(new E.FB(Q.message))}),{unsubscribe:function(){Q=!0}}}static open(A){return Ap(this,void 0,void 0,function*(){return function A(Q,B){return Ap(this,void 0,void 0,function*(){var C;let I;if("string"==typeof Q){if(Ao[Q])return(0,N.c)("ble-verbose","Transport in cache, using that."),Ao[Q];let A=Ar();I=yield A.requestDevice(AN())}else I=Q;I.gatt.connected||((0,N.c)("ble-verbose","not connected. connecting..."),yield I.gatt.connect());let[g,w]=yield Ae(I),{deviceModel:D,writeUuid:c,notifyUuid:M}=w,[s,y]=yield Promise.all([g.getCharacteristic(c),g.getCharacteristic(M)]),n=Ai(y).pipe((C=A=>{(0,N.c)("ble-frame","<= "+A.toString("hex"))},function(A){return A.lift(new V(C,void 0,void 0))}),function(A){return AQ()(function(A){var Q=Object.create(A,AI);return Q.source=A,Q.subjectFactory=Ag,Q}(A))}),h=n.subscribe(),k=new AJ(I,s,n,D);if(!I.gatt.connected)throw new E.qX;Ao[k.id]=k;let K=A=>{console.log("onDisconnect!",A),delete Ao[k.id],k.notYetDisconnected=!1,h.unsubscribe(),I.removeEventListener("gattserverdisconnected",K),(0,N.c)("ble-verbose",`BleTransport(${k.id}) disconnected`),k.emit("disconnect",A)};I.addEventListener("gattserverdisconnected",K);let t=Date.now();try{yield k.inferMTU()}finally{Date.now()-t<1e3&&(B=!1),B&&(yield I.gatt.disconnect(),yield new Promise(A=>setTimeout(A,4e3)))}return B?A(I,!1):k})}(A,!0)})}constructor(A,Q,B,C){super(),this.mtuSize=20,this.notYetDisconnected=!0,this.write=A=>Ap(this,void 0,void 0,function*(){(0,N.c)("ble-frame","=> "+A.toString("hex")),yield this.writeCharacteristic.writeValue(A)}),this.id=A.id,this.device=A,this.writeCharacteristic=Q,this.notifyObservable=B,this.deviceModel=C,(0,N.c)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}inferMTU(){return Ap(this,void 0,void 0,function*(){let A=23;if(yield this.exchangeAtomicImpl(()=>Ap(this,void 0,void 0,function*(){try{var Q;A=(yield W(this.notifyObservable.pipe(function(A,Q){var B=arguments.length>=2;return function(C){var I,E,g;return C.pipe(A?(I=function(Q,B){return A(Q,B,C)},function(A){return A.lift(new AD(I,void 0))}):r,function(A){return A.lift(new As(1))},B?(void 0===(E=Q)&&(E=null),function(A){return A.lift(new An(E))}):(g=function(){return new Aw},function(A){return A.lift(new Ak(g))}))}}(A=>8===A.readUInt8(0)),l(A=>A.readUInt8(5))),(Q=()=>m(this.write(AG.from([8,0,0,0,0]))),new a(function(A){var B;try{B=Q()}catch(Q){A.error(Q);return}return(B?m(B):z).subscribe(A)})).pipe(function(A){return A.lift(new At)})).toPromise())+3}catch(A){throw(0,N.c)("ble-error","inferMTU got "+String(A)),this.device.gatt.disconnect(),A}})),A>23){let Q=A-3;(0,N.c)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(Q)}`),this.mtuSize=Q}return this.mtuSize})}exchange(A){return Ap(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>Ap(this,void 0,void 0,function*(){try{let Q=A.toString("hex");(0,N.c)("apdu",`=> ${Q}`);let B=yield W(this.notifyObservable.pipe(F),J(this.write,A,this.mtuSize)).toPromise(),C=B.toString("hex");return(0,N.c)("apdu",`<= ${C}`),B}catch(A){throw(0,N.c)("ble-error","exchange got "+String(A)),this.notYetDisconnected&&this.device.gatt.disconnect(),A}}))})}setScrambleKey(){}close(){return Ap(this,void 0,void 0,function*(){this.exchangeBusyPromise&&(yield this.exchangeBusyPromise)})}}AJ.isSupported=()=>Promise.resolve().then(Ar).then(()=>!0,()=>!1),AJ.observeAvailability=A=>Aa().subscribe(A),AJ.list=()=>Promise.resolve([]),AJ.disconnect=A=>Ap(void 0,void 0,void 0,function*(){(0,N.c)("ble-verbose",`user disconnect(${A})`);let Q=Ao[A];Q&&Q.device.gatt.disconnect()});var AS=AJ},27748:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return t}});var C=B(97790),I=B(9341),E=B(48834).lW;let g={data:E.alloc(0),dataLength:0,sequence:0};var w=(A,Q)=>({makeBlocks(B){let C=E.concat([function(A){let Q=E.alloc(2);return Q.writeUInt16BE(A,0),Q}(B.length),B]),I=Q-5,g=Math.ceil(C.length/I);C=E.concat([C,E.alloc(g*I-C.length+1).fill(0)]);let w=[];for(let Q=0;Qw&&(C=C.slice(0,w)),{data:C,dataLength:w,sequence:D}},getReducedResult(A){if(A&&A.dataLength===A.data.length)return A.data}}),D=B(75102),c=B(91288),M=B(48834).lW,s=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};let y=[{vendorId:D.An}],n=()=>{let{hid:A}=navigator;if(!A)throw new I.PS("navigator.hid is not supported","HIDNotSupported");return A};function h(){return s(this,void 0,void 0,function*(){let A=yield n().requestDevice({filters:y});return Array.isArray(A)?A:[A]})}function k(){return s(this,void 0,void 0,function*(){return(yield n().getDevices()).filter(A=>A.vendorId===D.An)})}class K extends C.ZP{constructor(A){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(A=>{this.inputCallback=A}),this.onInputReport=A=>{let Q=M.from(A.data.buffer);this.inputCallback?(this.inputCallback(Q),this.inputCallback=null):this.inputs.push(Q)},this._disconnectEmitted=!1,this._emitDisconnect=A=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",A))},this.exchange=A=>s(this,void 0,void 0,function*(){return yield this.exchangeAtomicImpl(()=>s(this,void 0,void 0,function*(){let Q,B;let{channel:C,packetSize:I}=this;(0,c.c)("apdu","=> "+A.toString("hex"));let E=w(C,I),g=E.makeBlocks(A);for(let A=0;A{if(A&&A.message&&A.message.includes("write"))throw this._emitDisconnect(A),new I.vs(A.message);throw A})}),this.device=A,this.deviceModel="number"==typeof A.productId?(0,D.Ht)(A.productId):void 0,A.addEventListener("inputreport",this.onInputReport)}static request(){return s(this,void 0,void 0,function*(){let[A]=yield h();return K.open(A)})}static openConnected(){return s(this,void 0,void 0,function*(){let A=yield k();return 0===A.length?null:K.open(A[0])})}static open(A){return s(this,void 0,void 0,function*(){yield A.open();let Q=new K(A),B=C=>{A===C.device&&(n().removeEventListener("disconnect",B),Q._emitDisconnect(new I.qX))};return n().addEventListener("disconnect",B),Q})}close(){return s(this,void 0,void 0,function*(){yield this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),yield this.device.close()})}setScrambleKey(){}}K.isSupported=()=>Promise.resolve(!!(window.navigator&&window.navigator.hid)),K.list=k,K.listen=A=>{let Q=!1;return(function(){return s(this,void 0,void 0,function*(){let A=yield k();return A.length>0?A[0]:(yield h())[0]})})().then(B=>{if(B){if(!Q){let Q="number"==typeof B.productId?(0,D.Ht)(B.productId):void 0;A.next({type:"add",descriptor:B,deviceModel:Q}),A.complete()}}else A.error(new I.FB("Access denied to use Ledger device"))},Q=>{A.error(new I.FB(Q.message))}),{unsubscribe:function(){Q=!0}}};var t=K},97790:function(A,Q,B){"use strict";var C=B(22699),I=B.n(C),E=B(9341),g=B(48834).lW,w=function(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})};class D{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(I()),this.send=(A,Q,B,C,I=g.alloc(0),D=[E.WC.OK])=>w(this,void 0,void 0,function*(){if(I.length>=256)throw new E.PS("data.length exceed 256 bytes limit. Got: "+I.length,"DataLengthTooBig");let w=yield this.exchange(g.concat([g.from([A,Q,B,C]),g.from([I.length]),I])),c=w.readUInt16BE(w.length-2);if(!D.some(A=>A===c))throw new E.rZ(c);return w}),this.exchangeAtomicImpl=A=>w(this,void 0,void 0,function*(){let Q;if(this.exchangeBusyPromise)throw new E.wp("An action was already pending on the Ledger device. Please deny or reconnect.");let B=new Promise(A=>{Q=A});this.exchangeBusyPromise=B;let C=!1,I=setTimeout(()=>{C=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{let Q=yield A();return C&&this.emit("responsive"),Q}finally{clearTimeout(I),Q&&Q(),this.exchangeBusyPromise=null}}),this._appAPIlock=null}exchange(A){throw Error("exchange not implemented")}exchangeBulk(A,Q){let B=!1;return w(this,void 0,void 0,function*(){if(!B)for(let C of A){let A=yield this.exchange(C);if(B)return;let I=A.readUInt16BE(A.length-2);if(I!==E.WC.OK)throw new E.rZ(I);Q.next(A)}}).then(()=>!B&&Q.complete(),A=>!B&&Q.error(A)),{unsubscribe:()=>{B=!0}}}setScrambleKey(A){}close(){return Promise.resolve()}on(A,Q){this._events.on(A,Q)}off(A,Q){this._events.removeListener(A,Q)}emit(A,...Q){this._events.emit(A,...Q)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(A){this.exchangeTimeout=A}setExchangeUnresponsiveTimeout(A){this.unresponsiveTimeout=A}static create(A=3e3,Q){return new Promise((B,C)=>{let I=!1,g=this.listen({next:Q=>{I=!0,g&&g.unsubscribe(),w&&clearTimeout(w),this.open(Q.descriptor,A).then(B,C)},error:A=>{w&&clearTimeout(w),C(A)},complete:()=>{w&&clearTimeout(w),I||C(new E.PS(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),w=Q?setTimeout(()=>{g.unsubscribe(),C(new E.PS(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},Q):null})}decorateAppAPIMethods(A,Q,B){for(let C of Q)A[C]=this.decorateAppAPIMethod(C,A[C],A,B)}decorateAppAPIMethod(A,Q,B,C){return(...I)=>w(this,void 0,void 0,function*(){let{_appAPIlock:g}=this;if(g)return Promise.reject(new E.PS("Ledger Device is busy (lock "+g+")","TransportLocked"));try{return this._appAPIlock=A,this.setScrambleKey(C),yield Q.apply(B,I)}finally{this._appAPIlock=null}})}}D.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",D.ErrorMessage_NoDeviceFound="No Ledger device found",Q.ZP=D},91288:function(A,Q,B){"use strict";B.d(Q,{c:function(){return E}});var C=0,I=[],E=function(A,Q,B){var E={type:A,id:String(++C),date:new Date};Q&&(E.message=Q),B&&(E.data=B),function(A){for(var Q=0;Q0&&I[I.length-1])&&(6===E[0]||2===E[0])){g=0;continue}if(3===E[0]&&(!I||E[1]>I[0]&&E[1]2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');let Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return M(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);let B=0|h(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(R(A,Uint8Array)){let Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(R(A,ArrayBuffer)||A&&R(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(A,SharedArrayBuffer)||A&&R(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);let I=function(A){var Q;if(w.isBuffer(A)){let Q=0|n(A.length),B=g(Q);return 0===B.length||A.copy(B,0,0,Q),B}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function c(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function M(A){return c(A),g(A<0?0:0|n(A))}function s(A){let Q=A.length<0?0:0|n(A.length),B=g(Q);for(let C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function h(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||R(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;let I=!1;for(;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return f(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return d(A).length;default:if(I)return C?-1:f(A).length;Q=(""+Q).toLowerCase(),I=!0}}function k(A,Q,B){let I=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){let C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);let I="";for(let C=Q;C2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:U(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):U(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function U(A,Q,B,C,I){let E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function c(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){let C=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){let B=!0;for(let C=0;C239?4:Q>223?3:Q>191?2:1;if(I+g<=B){let B,C,w,D;switch(g){case 1:Q<128&&(E=Q);break;case 2:(192&(B=A[I+1]))==128&&(D=(31&Q)<<6|63&B)>127&&(E=D);break;case 3:B=A[I+1],C=A[I+2],(192&B)==128&&(192&C)==128&&(D=(15&Q)<<12|(63&B)<<6|63&C)>2047&&(D<55296||D>57343)&&(E=D);break;case 4:B=A[I+1],C=A[I+2],w=A[I+3],(192&B)==128&&(192&C)==128&&(192&w)==128&&(D=(15&Q)<<18|(63&B)<<12|(63&C)<<6|63&w)>65535&&D<1114112&&(E=D)}}null===E?(E=65533,g=1):E>65535&&(E-=65536,C.push(E>>>10&1023|55296),E=56320|1023&E),C.push(E),I+=g}return function(A){let Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);let B="",C=0;for(;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function p(A,Q,B,C,I){F(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E,E>>=8,A[B++]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,g>>=8,A[B++]=g,B}function r(A,Q,B,C,I){F(Q,C,I,A,B,7);let E=Number(Q&BigInt(4294967295));A[B+7]=E,E>>=8,A[B+6]=E,E>>=8,A[B+5]=E,E>>=8,A[B+4]=E;let g=Number(Q>>BigInt(32)&BigInt(4294967295));return A[B+3]=g,g>>=8,A[B+2]=g,g>>=8,A[B+1]=g,g>>=8,A[B]=g,B+8}function a(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function o(A,Q,B,C,E){return Q=+Q,B>>>=0,E||a(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function N(A,Q,B,C,E){return Q=+Q,B>>>=0,E||a(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.Buffer=w,Q.SlowBuffer=function(A){return+A!=A&&(A=0),w.alloc(+A)},Q.INSPECT_MAX_BYTES=50,Q.kMaxLength=2147483647,w.TYPED_ARRAY_SUPPORT=function(){try{let A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(c(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return M(A)},w.allocUnsafeSlow=function(A){return M(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),R(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;let B=A.length,C=Q.length;for(let I=0,E=Math.min(B,C);IC.length?(w.isBuffer(Q)||(Q=w.from(Q)),Q.copy(C,I)):Uint8Array.prototype.set.call(C,Q,I);else if(w.isBuffer(Q))Q.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=Q.length}return C},w.byteLength=h,w.prototype._isBuffer=!0,w.prototype.swap16=function(){let A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(R(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;let E=I-C,g=B-Q,D=Math.min(E,g),c=this.slice(C,I),M=A.slice(Q,B);for(let A=0;A>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let n=!1;for(;;)switch(C){case"hex":return function(A,Q,B,C){let I;B=Number(B)||0;let E=A.length-B;C?(C=Number(C))>E&&(C=E):C=E;let g=Q.length;for(C>g/2&&(C=g/2),I=0;I>8,I.push(B%256),I.push(C);return I}(A,this.length-M),this,M,s);default:if(n)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),n=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){let B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A+--Q],I=1;for(;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readBigUInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&Y(A,this.length-8);let C=Q+256*this[++A]+65536*this[++A]+16777216*this[++A],I=this[++A]+256*this[++A]+65536*this[++A]+16777216*B;return BigInt(C)+(BigInt(I)<>>=0,"offset");let Q=this[A],B=this[A+7];(void 0===Q||void 0===B)&&Y(A,this.length-8);let C=16777216*Q+65536*this[++A]+256*this[++A]+this[++A],I=16777216*this[++A]+65536*this[++A]+256*this[++A]+B;return(BigInt(C)<>>=0,Q>>>=0,B||i(A,Q,this.length);let C=this[A],I=1,E=0;for(;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);let C=Q,I=1,E=this[A+--C];for(;C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);let B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readBigInt64LE=b(function(A){l(A>>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&Y(A,this.length-8),(BigInt(this[A+4]+256*this[A+5]+65536*this[A+6]+(B<<24))<>>=0,"offset");let Q=this[A],B=this[A+7];return(void 0===Q||void 0===B)&&Y(A,this.length-8),(BigInt((Q<<24)+65536*this[++A]+256*this[++A]+this[++A])<>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=1,E=0;for(this[Q]=255&A;++E>>=0,B>>>=0,!C){let C=Math.pow(2,8*B)-1;G(this,A,Q,B,C,0)}let I=B-1,E=1;for(this[Q+I]=255&A;--I>=0&&(E*=256);)this[Q+I]=A/E&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigUInt64LE=b(function(A,Q=0){return p(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=b(function(A,Q=0){return r(this,A,Q,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=0,E=1,g=0;for(this[Q]=255&A;++I>0)-g&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){let C=Math.pow(2,8*B-1);G(this,A,Q,B,C-1,-C)}let I=B-1,E=1,g=0;for(this[Q+I]=255&A;--I>=0&&(E*=256);)A<0&&0===g&&0!==this[Q+I+1]&&(g=1),this[Q+I]=(A/E>>0)-g&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeBigInt64LE=b(function(A,Q=0){return p(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=b(function(A,Q=0){return r(this,A,Q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeFloatLE=function(A,Q,B){return o(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return o(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return N(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return N(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I=C+4;B-=3)Q=`_${A.slice(B-3,B)}${Q}`;return`${A.slice(0,B)}${Q}`}function F(A,Q,B,C,I,E){if(A>B||A3?0===Q||Q===BigInt(0)?`>= 0${I} and < 2${I} ** ${(E+1)*8}${I}`:`>= -(2${I} ** ${(E+1)*8-1}${I}) and < 2 ** ${(E+1)*8-1}${I}`:`>= ${Q}${I} and <= ${B}${I}`,new e.ERR_OUT_OF_RANGE("value",C,A)}l(I,"offset"),(void 0===C[I]||void 0===C[I+E])&&Y(I,C.length-(E+1))}function l(A,Q){if("number"!=typeof A)throw new e.ERR_INVALID_ARG_TYPE(Q,"number",A)}function Y(A,Q,B){if(Math.floor(A)!==A)throw l(A,B),new e.ERR_OUT_OF_RANGE(B||"offset","an integer",A);if(Q<0)throw new e.ERR_BUFFER_OUT_OF_BOUNDS;throw new e.ERR_OUT_OF_RANGE(B||"offset",`>= ${B?1:0} and <= ${Q}`,A)}J("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(A,Q){return`The "${A}" argument must be of type number. Received type ${typeof Q}`},TypeError),J("ERR_OUT_OF_RANGE",function(A,Q,B){let C=`The value of "${A}" is out of range.`,I=B;return Number.isInteger(B)&&Math.abs(B)>4294967296?I=S(String(B)):"bigint"==typeof B&&(I=String(B),(B>BigInt(2)**BigInt(32)||B<-(BigInt(2)**BigInt(32)))&&(I=S(I)),I+="n"),C+=` It must be ${Q}. Received ${I}`},RangeError);let H=/[^+/0-9A-Za-z-_]/g;function f(A,Q){let B;Q=Q||1/0;let C=A.length,I=null,E=[];for(let g=0;g55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function d(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function u(A,Q,B,C){let I;for(I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function R(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}let j=function(){let A="0123456789abcdef",Q=Array(256);for(let B=0;B<16;++B){let C=16*B;for(let I=0;I<16;++I)Q[C+I]=A[B]+A[I]}return Q}();function b(A){return"undefined"==typeof BigInt?m:A}function m(){throw Error("BigInt not supported")}},52180:function(A,Q){"use strict";var B,C=this&&this.__extends||(B=function(A,Q){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var B in Q)Q.hasOwnProperty(B)&&(A[B]=Q[B])})(A,Q)},function(A,Q){function C(){this.constructor=A}B(A,Q),A.prototype=null===Q?Object.create(Q):(C.prototype=Q.prototype,new C)});Object.defineProperty(Q,"__esModule",{value:!0});var I=function(){function A(A){void 0===A&&(A="="),this._paddingCharacter=A}return A.prototype.encodedLength=function(A){return this._paddingCharacter?(A+2)/3*4|0:(8*A+5)/6|0},A.prototype.encode=function(A){for(var Q="",B=0;B>>18&63)+this._encodeByte(C>>>12&63)+this._encodeByte(C>>>6&63)+this._encodeByte(C>>>0&63)}var I=A.length-B;if(I>0){var C=A[B]<<16|(2===I?A[B+1]<<8:0);Q+=this._encodeByte(C>>>18&63)+this._encodeByte(C>>>12&63),2===I?Q+=this._encodeByte(C>>>6&63):Q+=this._paddingCharacter||"",Q+=this._paddingCharacter||""}return Q},A.prototype.maxDecodedLength=function(A){return this._paddingCharacter?A/4*3|0:(6*A+7)/8|0},A.prototype.decodedLength=function(A){return this.maxDecodedLength(A.length-this._getPaddingLength(A))},A.prototype.decode=function(A){if(0===A.length)return new Uint8Array(0);for(var Q=this._getPaddingLength(A),B=A.length-Q,C=new Uint8Array(this.maxDecodedLength(B)),I=0,E=0,g=0,w=0,D=0,c=0,M=0;E>>4,C[I++]=D<<4|c>>>2,C[I++]=c<<6|M,g|=256&w,g|=256&D,g|=256&c,g|=256&M;if(E>>4,g|=256&w,g|=256&D),E>>2,g|=256&c),E>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-15)+(62-A>>>8&3))},A.prototype._decodeChar=function(A){return 256+((42-A&A-44)>>>8&-256+A-43+62)+((46-A&A-48)>>>8&-256+A-47+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},A.prototype._getPaddingLength=function(A){var Q=0;if(this._paddingCharacter){for(var B=A.length-1;B>=0&&A[B]===this._paddingCharacter;B--)Q++;if(A.length<4||Q>2)throw Error("Base64Coder: incorrect padding")}return Q},A}();Q.Coder=I;var E=new I;Q.encode=function(A){return E.encode(A)},Q.decode=function(A){return E.decode(A)};var g=function(A){function Q(){return null!==A&&A.apply(this,arguments)||this}return C(Q,A),Q.prototype._encodeByte=function(A){var Q=A;return String.fromCharCode(Q+=65+(25-A>>>8&6)+(51-A>>>8&-75)+(61-A>>>8&-13)+(62-A>>>8&49))},Q.prototype._decodeChar=function(A){return 256+((44-A&A-46)>>>8&-256+A-45+62)+((94-A&A-96)>>>8&-256+A-95+63)+((47-A&A-58)>>>8&-256+A-48+52)+((64-A&A-91)>>>8&-256+A-65+0)+((96-A&A-123)>>>8&-256+A-97+26)},Q}(I);Q.URLSafeCoder=g;var w=new g;Q.encodeURLSafe=function(A){return w.encode(A)},Q.decodeURLSafe=function(A){return w.decode(A)},Q.encodedLength=function(A){return E.encodedLength(A)},Q.maxDecodedLength=function(A){return E.maxDecodedLength(A)},Q.decodedLength=function(A){return E.decodedLength(A)}},99985:function(A,Q,B){"use strict";Q.Z=w;var C=g(B(13980)),I=g(B(2784)),E=g(B(23442));function g(A){return A&&A.__esModule?A:{default:A}}function w(A){var Q=A.captureDragArea,B=A.snapToPointer,C=A.children,g=A.dx,w=A.dy,D=A.height,c=A.onDragEnd,M=A.onDragMove,s=A.onDragStart,y=A.resetOnStart,n=A.width,h=A.x,k=A.y,K=A.isDragging,t=A.restrict,U=A.restrictToPath,L=(0,E.default)({resetOnStart:y,snapToPointer:void 0===B||B,onDragEnd:c,onDragMove:M,onDragStart:s,x:h,y:k,dx:g,dy:w,isDragging:K,restrict:t,restrictToPath:U});return I.default.createElement(I.default.Fragment,null,L.isDragging&&(void 0===Q||Q)&&I.default.createElement("rect",{width:n,height:D,onPointerDown:L.dragStart,onPointerMove:L.dragMove,onPointerUp:L.dragEnd,fill:"transparent"}),C(L))}w.propTypes={children:C.default.func.isRequired,width:C.default.number.isRequired,height:C.default.number.isRequired,captureDragArea:C.default.bool,isDragging:C.default.bool}},23442:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=void 0===A?{}:A,B=Q.resetOnStart,c=void 0!==B&&B,s=Q.snapToPointer,y=void 0===s||s,n=Q.onDragEnd,h=Q.onDragMove,k=Q.onDragStart,K=Q.x,t=Q.y,U=Q.dx,L=Q.dy,i=Q.isDragging,G=Q.restrict,p=void 0===G?{}:G,r=Q.restrictToPath,a=(0,C.useRef)({x:K,y:t,dx:U,dy:L}),o=(0,g.default)({x:K,y:t,dx:null!=U?U:0,dy:null!=L?L:0,isDragging:!1}),N=o[0],e=o[1],J=(0,C.useState)(new I.Point({x:0,y:0})),S=J[0],F=J[1];(0,C.useEffect)(function(){(a.current.x!==K||a.current.y!==t||a.current.dx!==U||a.current.dy!==L)&&(a.current={x:K,y:t,dx:U,dy:L},e(function(A){return M({},A,{x:K,y:t,dx:null!=U?U:0,dy:null!=L?L:0})}))}),(0,C.useEffect)(function(){void 0!==i&&N.isDragging!==i&&e(function(A){return M({},A,{isDragging:i})})},[N.isDragging,i,e]);var l=(0,D.default)(r),Y=(0,C.useCallback)(function(A){A.persist(),e(function(Q){var B=Q.x,C=Q.y,g=Q.dx,D=Q.dy,M=new I.Point({x:((void 0===B?0:B)||0)+g,y:((void 0===C?0:C)||0)+D}),s=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),n=y?s:M,h=(0,w.default)(n,l,p);return F((0,I.subtractPoints)(M,s)),{isDragging:!0,dx:c?0:Q.dx,dy:c?0:Q.dy,x:c?h.x:h.x-Q.dx,y:c?h.y:h.y-Q.dy}},k&&function(Q){k(M({},Q,{event:A}))})},[k,c,p,l,e,y]),H=(0,C.useCallback)(function(A){A.persist(),e(function(Q){if(!Q.isDragging)return Q;var B=Q.x,C=Q.y,g=(0,E.localPoint)(A)||new I.Point({x:0,y:0}),D=y?g:(0,I.sumPoints)(g,S),c=(0,w.default)(D,l,p);return M({},Q,{dx:c.x-(void 0===B?0:B),dy:c.y-(void 0===C?0:C)})},h&&function(Q){Q.isDragging&&h(M({},Q,{event:A}))})},[e,h,y,S,l,p]),f=(0,C.useCallback)(function(A){A.persist(),e(function(A){return M({},A,{isDragging:!1})},n&&function(Q){n(M({},Q,{event:A}))})},[n,e]);return M({},N,{dragEnd:f,dragMove:H,dragStart:Y})};var C=B(2784),I=B(61305),E=B(65319),g=c(B(37016)),w=c(B(60890)),D=c(B(32722));function c(A){return A&&A.__esModule?A:{default:A}}function M(){return(M=Object.assign?Object.assign.bind():function(A){for(var Q=1;QA.length)&&(Q=A.length);for(var B=0,C=Array(Q);B=A.length?{done:!0}:{done:!1,value:A[I++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Q);!(C=g()).done;){var w=C.value,D=Math.sqrt(Math.pow(w.x-A.x,2)+Math.pow(w.y-A.y,2));D0)?(0,I.default)(A,Q):{x:(0,C.default)(A.x,null!=(E=B.xMin)?E:-1/0,null!=(g=B.xMax)?g:1/0),y:(0,C.default)(A.y,null!=(w=B.yMin)?w:-1/0,null!=(D=B.yMax)?D:1/0)}};var C=E(B(30968)),I=E(B(98929));function E(A){return A&&A.__esModule?A:{default:A}}},32722:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){return(0,C.useMemo)(function(){if(!A)return[];var Q=A.getCTM()||new DOMMatrix;return function(A,Q,B){if(void 0===B&&(B=1),!A)return[];for(var C=[],I=A.getTotalLength(),E=0;E<=I;E+=B){var g=A.getPointAtLength(E).matrixTransform(Q);C.push(g)}return C}(A,Q)},[null==A?void 0:A.getTotalLength()])};var C=B(2784)},37016:function(A,Q,B){"use strict";Q.__esModule=!0,Q.default=function(A){var Q=(0,C.useState)(A),B=Q[0],I=Q[1],E=(0,C.useRef)(null),g=(0,C.useCallback)(function(A,Q){E.current=Q||null,I(A)},[I]);return(0,C.useLayoutEffect)(function(){E.current&&(E.current(B),E.current=null)},[B]),[B,g]};var C=B(2784)},65319:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{localPoint:function(){return C.Z},touchPoint:function(){return I.Z}});var C=B(91032),I=B(49833)},91032:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return E}});var C=B(49833),I=B(44321);function E(A,Q){if((0,I.kK)(A)&&Q)return(0,C.Z)(A,Q);if((0,I.cO)(A)){var B=A.target;if(B)return(0,C.Z)(B,A)}return null}},49833:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return w}});var C=B(19067),I=B(44321);function E(){return(E=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q0?{x:A.changedTouches[0].clientX,y:A.changedTouches[0].clientY}:E({},g);if((0,I.N5)(A))return{x:A.clientX,y:A.clientY};var Q=null==A?void 0:A.target,B=Q&&"getBoundingClientRect"in Q?Q.getBoundingClientRect():null;return B?{x:B.x+B.width/2,y:B.y+B.height/2}:E({},g)}(Q),w=(0,I.vZ)(A)?A.ownerSVGElement:A,D=(0,I.DY)(w)?w.getScreenCTM():null;if((0,I.r4)(w)&&D){var c=w.createSVGPoint();return c.x=B.x,c.y=B.y,c=c.matrixTransform(D.inverse()),new C.Z({x:c.x,y:c.y})}var M=A.getBoundingClientRect();return new C.Z({x:B.x-M.left-A.clientLeft,y:B.y-M.top-A.clientTop})}},44321:function(A,Q,B){"use strict";function C(A){return!!A&&A instanceof Element}function I(A){return!!A&&(A instanceof SVGElement||"ownerSVGElement"in A)}function E(A){return!!A&&"createSVGPoint"in A}function g(A){return!!A&&"getScreenCTM"in A}function w(A){return!!A&&"changedTouches"in A}function D(A){return!!A&&"clientX"in A}function c(A){return!!A&&(A instanceof Event||"nativeEvent"in A&&A.nativeEvent instanceof Event)}B.d(Q,{DY:function(){return g},N5:function(){return D},cO:function(){return c},kK:function(){return C},r4:function(){return E},vZ:function(){return I},z6:function(){return w}})},19067:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return C}});var C=function(){function A(A){var Q=A.x,B=A.y;this.x=0,this.y=0,this.x=void 0===Q?0:Q,this.y=void 0===B?0:B}var Q=A.prototype;return Q.value=function(){return{x:this.x,y:this.y}},Q.toArray=function(){return[this.x,this.y]},A}()},61305:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{Point:function(){return C.Z},subtractPoints:function(){return E},sumPoints:function(){return I}});var C=B(19067);function I(A,Q){return new C.Z({x:A.x+Q.x,y:A.y+Q.y})}function E(A,Q){return new C.Z({x:A.x-Q.x,y:A.y-Q.y})}},47440:function(A,Q,B){"use strict";Q.Z=function(A){var Q=A.from,B=void 0===Q?{x:0,y:0}:Q,g=A.to,D=void 0===g?{x:1,y:1}:g,c=A.fill,M=A.className,s=A.innerRef,y=function(A,Q){if(null==A)return{};var B,C,I={},E=Object.keys(A);for(C=0;C=0||(I[B]=A[B]);return I}(A,E),n=B.x===D.x||B.y===D.y;return C.default.createElement("line",w({ref:s,className:(0,I.default)("visx-line",M),x1:B.x,y1:B.y,x2:D.x,y2:D.y,fill:void 0===c?"transparent":c,shapeRendering:n?"crispEdges":"auto"},y))};var C=g(B(2784)),I=g(B(72779)),E=["from","to","fill","className","innerRef"];function g(A){return A&&A.__esModule?A:{default:A}}function w(){return(w=Object.assign?Object.assign.bind():function(A){for(var Q=1;Q=200&&A<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};E.forEach(["delete","get","head"],function(A){y.headers[A]={}}),E.forEach(["post","put","patch"],function(A){y.headers[A]=E.merge(M)}),A.exports=y},98560:function(A){"use strict";A.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(A){A.exports={version:"0.27.2"}},73644:function(A){"use strict";A.exports=function(A,Q){return function(){for(var B=Array(arguments.length),C=0;C=0)&&("set-cookie"===Q?g[Q]=(g[Q]?g[Q]:[]).concat([B]):g[Q]=g[Q]?g[Q]+", "+B:B)}),g}},10738:function(A){"use strict";A.exports=function(A){var Q=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return Q&&Q[1]||""}},70783:function(A){"use strict";A.exports=function(A){return function(Q){return A.apply(null,Q)}}},49027:function(A,Q,B){"use strict";var C=B(48834).lW,I=B(93044);A.exports=function(A,Q){Q=Q||new FormData;var B=[];function E(A){return null===A?"":I.isDate(A)?A.toISOString():I.isArrayBuffer(A)||I.isTypedArray(A)?"function"==typeof Blob?new Blob([A]):C.from(A):A}return!function A(C,g){if(I.isPlainObject(C)||I.isArray(C)){if(-1!==B.indexOf(C))throw Error("Circular reference detected in "+g);B.push(C),I.forEach(C,function(B,C){if(!I.isUndefined(B)){var w,D=g?g+"."+C:C;if(B&&!g&&"object"==typeof B){if(I.endsWith(C,"{}"))B=JSON.stringify(B);else if(I.endsWith(C,"[]")&&(w=I.toArray(B))){w.forEach(function(A){I.isUndefined(A)||Q.append(D,E(A))});return}}A(B,D)}}),B.pop()}else Q.append(g,E(C))}(A),Q}},17525:function(A,Q,B){"use strict";var C=B(29241).version,I=B(21218),E={};["object","boolean","number","function","string","symbol"].forEach(function(A,Q){E[A]=function(B){return typeof B===A||"a"+(Q<1?"n ":" ")+A}});var g={};E.transitional=function(A,Q,B){function E(A,Q){return"[Axios v"+C+"] Transitional option '"+A+"'"+Q+(B?". "+B:"")}return function(B,C,w){if(!1===A)throw new I(E(C," has been removed"+(Q?" in "+Q:"")),I.ERR_DEPRECATED);return Q&&!g[C]&&(g[C]=!0,console.warn(E(C," has been deprecated since v"+Q+" and will be removed in the near future"))),!A||A(B,C,w)}},A.exports={assertOptions:function(A,Q,B){if("object"!=typeof A)throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);for(var C=Object.keys(A),E=C.length;E-- >0;){var g=C[E],w=Q[g];if(w){var D=A[g],c=void 0===D||w(D,g,A);if(!0!==c)throw new I("option "+g+" must be "+c,I.ERR_BAD_OPTION_VALUE);continue}if(!0!==B)throw new I("Unknown option "+g,I.ERR_BAD_OPTION)}},validators:E}},93044:function(A,Q,B){"use strict";var C,I,E=B(73644),g=Object.prototype.toString,w=(C=Object.create(null),function(A){var Q=g.call(A);return C[Q]||(C[Q]=Q.slice(8,-1).toLowerCase())});function D(A){return A=A.toLowerCase(),function(Q){return w(Q)===A}}function c(A){return Array.isArray(A)}function M(A){return void 0===A}var s=D("ArrayBuffer");function y(A){return null!==A&&"object"==typeof A}function n(A){if("object"!==w(A))return!1;var Q=Object.getPrototypeOf(A);return null===Q||Q===Object.prototype}var h=D("Date"),k=D("File"),K=D("Blob"),t=D("FileList");function U(A){return"[object Function]"===g.call(A)}var L=D("URLSearchParams");function i(A,Q){if(null!=A){if("object"!=typeof A&&(A=[A]),c(A))for(var B=0,C=A.length;B0;)g[E=C[I]]||(Q[E]=A[E],g[E]=!0);A=Object.getPrototypeOf(A)}while(A&&(!B||B(A,Q))&&A!==Object.prototype);return Q},kindOf:w,kindOfTest:D,endsWith:function(A,Q,B){A=String(A),(void 0===B||B>A.length)&&(B=A.length),B-=Q.length;var C=A.indexOf(Q,B);return -1!==C&&C===B},toArray:function(A){if(!A)return null;var Q=A.length;if(M(Q))return null;for(var B=Array(Q);Q-- >0;)B[Q]=A[Q];return B},isTypedArray:G,isFileList:t}},82294:function(A){"use strict";function Q(A,Q,I){A instanceof RegExp&&(A=B(A,I)),Q instanceof RegExp&&(Q=B(Q,I));var E=C(A,Q,I);return E&&{start:E[0],end:E[1],pre:I.slice(0,E[0]),body:I.slice(E[0]+A.length,E[1]),post:I.slice(E[1]+Q.length)}}function B(A,Q){var B=Q.match(A);return B?B[0]:null}function C(A,Q,B){var C,I,E,g,w,D=B.indexOf(A),c=B.indexOf(Q,D+1),M=D;if(D>=0&&c>0){if(A===Q)return[D,c];for(C=[],E=B.length;M>=0&&!w;)M==D?(C.push(M),D=B.indexOf(A,M+1)):1==C.length?w=[C.pop(),c]:((I=C.pop())=0?D:c;C.length&&(w=[E,g])}return w}A.exports=Q,Q.range=C},95766:function(A,Q){"use strict";Q.byteLength=function(A){var Q=D(A),B=Q[0],C=Q[1];return(B+C)*3/4-C},Q.toByteArray=function(A){var Q,B,E=D(A),g=E[0],w=E[1],c=new I((g+w)*3/4-w),M=0,s=w>0?g-4:g;for(B=0;B>16&255,c[M++]=Q>>8&255,c[M++]=255&Q;return 2===w&&(Q=C[A.charCodeAt(B)]<<2|C[A.charCodeAt(B+1)]>>4,c[M++]=255&Q),1===w&&(Q=C[A.charCodeAt(B)]<<10|C[A.charCodeAt(B+1)]<<4|C[A.charCodeAt(B+2)]>>2,c[M++]=Q>>8&255,c[M++]=255&Q),c},Q.fromByteArray=function(A){for(var Q,C=A.length,I=C%3,E=[],g=0,w=C-I;g>18&63]+B[I>>12&63]+B[I>>6&63]+B[63&I]);return E.join("")}(A,g,g+16383>w?w:g+16383));return 1===I?E.push(B[(Q=A[C-1])>>2]+B[Q<<4&63]+"=="):2===I&&E.push(B[(Q=(A[C-2]<<8)+A[C-1])>>10]+B[Q>>4&63]+B[Q<<2&63]+"="),E.join("")};for(var B=[],C=[],I="undefined"!=typeof Uint8Array?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,w=E.length;g0)throw Error("Invalid string. Length must be a multiple of 4");var B=A.indexOf("=");-1===B&&(B=Q);var C=B===Q?0:4-B%4;return[B,C]}C["-".charCodeAt(0)]=62,C["_".charCodeAt(0)]=63},6391:function(A,Q,B){var C;!function(I){"use strict";var E,g=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,w=Math.ceil,D=Math.floor,c="[BigNumber Error] ",M=c+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function y(A){var Q=0|A;return A>0||A===Q?Q:Q-1}function n(A){for(var Q,B,C=1,I=A.length,E=A[0]+"";Cc^B?1:-1;for(g=0,w=(D=I.length)<(c=E.length)?D:c;gE[g]^B?1:-1;return D==c?0:D>c^B?1:-1}function k(A,Q,B,C){if(AB||A!==D(A))throw Error(c+(C||"Argument")+("number"==typeof A?AB?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function K(A){var Q=A.c.length-1;return y(A.e/14)==Q&&A.c[Q]%2!=0}function t(A,Q){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(Q<0?"e":"e+")+Q}function U(A,Q,B){var C,I;if(Q<0){for(I=B+".";++Q;I+=B);A=I+A}else if(C=A.length,++Q>C){for(I=B,Q-=C;--Q;I+=B);A+=I}else Ql?n.c=n.e=null:A.e=10;w/=10,E++);E>l?n.c=n.e=null:(n.e=E,n.c=[A]);return}y=String(A)}else{if(!g.test(y=String(A)))return r(n,y,c);n.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(E=y.indexOf("."))>-1&&(y=y.replace(".","")),(w=y.search(/e/i))>0?(E<0&&(E=w),E+=+y.slice(w+1),y=y.substring(0,w)):E<0&&(E=y.length)}else{if(k(Q,2,u.length,"Base"),10==Q&&R)return T(n=new j(A),N+n.e+1,e);if(y=String(A),c="number"==typeof A){if(0*A!=0)return r(n,y,c,Q);if(n.s=1/A<0?(y=y.slice(1),-1):1,j.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(M+A)}else n.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(B=u.slice(0,Q),E=w=0,s=y.length;wB.indexOf(C=y.charAt(w))){if("."==C){if(w>E){E=s;continue}}else if(!I&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){I=!0,w=-1,E=0;continue}return r(n,String(A),c,Q)}c=!1,(E=(y=p(y,Q,10,n.s)).indexOf("."))>-1?y=y.replace(".",""):E=y.length}for(w=0;48===y.charCodeAt(w);w++);for(s=y.length;48===y.charCodeAt(--s););if(y=y.slice(w,++s)){if(s-=w,c&&j.DEBUG&&s>15&&(A>9007199254740991||A!==D(A)))throw Error(M+n.s*A);if((E=E-w-1)>l)n.c=n.e=null;else if(E=S)?t(D,g):U(D,g,"0");else if(E=(A=T(new j(A),Q,B)).e,w=(D=n(A.c)).length,1==C||2==C&&(Q<=E||E<=J)){for(;ww){if(--Q>0)for(D+=".";Q--;D+="0");}else if((Q+=E-w)>0)for(E+1==w&&(D+=".");Q--;D+="0");return A.s<0&&I?"-"+D:D}function m(A,Q){for(var B,C=1,I=new j(A[0]);C=10;I/=10,C++);return(B=C+14*B-1)>l?A.c=A.e=null:B=10;c/=10,I++);if((E=Q-I)<0)E+=14,g=Q,n=(M=h[y=0])/s[I-g-1]%10|0;else if((y=w((E+1)/14))>=h.length){if(C){for(;h.length<=y;h.push(0));M=n=0,I=1,E%=14,g=E-14+1}else break A}else{for(I=1,M=c=h[y];c>=10;c/=10,I++);E%=14,n=(g=E-14+I)<0?0:M/s[I-g-1]%10|0}if(C=C||Q<0||null!=h[y+1]||(g<0?M:M%s[I-g-1]),C=B<4?(n||C)&&(0==B||B==(A.s<0?3:2)):n>5||5==n&&(4==B||C||6==B&&(E>0?g>0?M/s[I-g]:0:h[y-1])%10&1||B==(A.s<0?8:7)),Q<1||!h[0])return h.length=0,C?(Q-=A.e+1,h[0]=s[(14-Q%14)%14],A.e=-Q||0):h[0]=A.e=0,A;if(0==E?(h.length=y,c=1,y--):(h.length=y+1,c=s[14-E],h[y]=g>0?D(M/s[I-g]%s[g])*c:0),C)for(;;){if(0==y){for(E=1,g=h[0];g>=10;g/=10,E++);for(g=h[0]+=c,c=1;g>=10;g/=10,c++);E!=c&&(A.e++,1e14==h[0]&&(h[0]=1));break}if(h[y]+=c,1e14!=h[y])break;h[y--]=0,c=1}for(E=h.length;0===h[--E];h.pop());}A.e>l?A.c=A.e=null:A.e=S?t(Q,B):U(Q,B,"0"),A.s<0?"-"+Q:Q)}return j.clone=A,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(A){var Q,B;if(null!=A){if("object"==typeof A){if(A.hasOwnProperty(Q="DECIMAL_PLACES")&&(k(B=A[Q],0,1e9,Q),N=B),A.hasOwnProperty(Q="ROUNDING_MODE")&&(k(B=A[Q],0,8,Q),e=B),A.hasOwnProperty(Q="EXPONENTIAL_AT")&&((B=A[Q])&&B.pop?(k(B[0],-1e9,0,Q),k(B[1],0,1e9,Q),J=B[0],S=B[1]):(k(B,-1e9,1e9,Q),J=-(S=B<0?-B:B))),A.hasOwnProperty(Q="RANGE")){if((B=A[Q])&&B.pop)k(B[0],-1e9,-1,Q),k(B[1],1,1e9,Q),F=B[0],l=B[1];else if(k(B,-1e9,1e9,Q),B)F=-(l=B<0?-B:B);else throw Error(c+Q+" cannot be zero: "+B)}if(A.hasOwnProperty(Q="CRYPTO")){if(!!(B=A[Q])===B){if(B){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Y=B;else throw Y=!B,Error(c+"crypto unavailable")}else Y=B}else throw Error(c+Q+" not true or false: "+B)}if(A.hasOwnProperty(Q="MODULO_MODE")&&(k(B=A[Q],0,9,Q),H=B),A.hasOwnProperty(Q="POW_PRECISION")&&(k(B=A[Q],0,1e9,Q),f=B),A.hasOwnProperty(Q="FORMAT")){if("object"==typeof(B=A[Q]))d=B;else throw Error(c+Q+" not an object: "+B)}if(A.hasOwnProperty(Q="ALPHABET")){if("string"!=typeof(B=A[Q])||/^.?$|[+\-.\s]|(.).*\1/.test(B))throw Error(c+Q+" invalid: "+B);R="0123456789"==B.slice(0,10),u=B}}else throw Error(c+"Object expected: "+A)}return{DECIMAL_PLACES:N,ROUNDING_MODE:e,EXPONENTIAL_AT:[J,S],RANGE:[F,l],CRYPTO:Y,MODULO_MODE:H,POW_PRECISION:f,FORMAT:d,ALPHABET:u}},j.isBigNumber=function(A){if(!A||!0!==A._isBigNumber)return!1;if(!j.DEBUG)return!0;var Q,B,C=A.c,I=A.e,E=A.s;A:if("[object Array]"==({}).toString.call(C)){if((1===E||-1===E)&&I>=-1e9&&I<=1e9&&I===D(I)){if(0===C[0]){if(0===I&&1===C.length)return!0;break A}if((Q=(I+1)%14)<1&&(Q+=14),String(C[0]).length==Q){for(Q=0;Q=1e14||B!==D(B))break A;if(0!==B)return!0}}}else if(null===C&&null===I&&(null===E||1===E||-1===E))return!0;throw Error(c+"Invalid BigNumber: "+A)},j.maximum=j.max=function(){return m(arguments,a.lt)},j.minimum=j.min=function(){return m(arguments,a.gt)},j.random=(B=9007199254740992*Math.random()&2097151?function(){return D(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(A){var Q,C,I,E,g,M=0,y=[],n=new j(o);if(null==A?A=N:k(A,0,1e9),E=w(A/14),Y){if(crypto.getRandomValues){for(Q=crypto.getRandomValues(new Uint32Array(E*=2));M>>11))>=9e15?(C=crypto.getRandomValues(new Uint32Array(2)),Q[M]=C[0],Q[M+1]=C[1]):(y.push(g%1e14),M+=2);M=E/2}else if(crypto.randomBytes){for(Q=crypto.randomBytes(E*=7);M=9e15?crypto.randomBytes(7).copy(Q,M):(y.push(g%1e14),M+=7);M=E/7}else throw Y=!1,Error(c+"crypto unavailable")}if(!Y)for(;M=10;g/=10,M++);M<14&&(I-=14-M)}return n.e=I,n.c=y,n}),j.sum=function(){for(var A=1,Q=arguments,B=new j(Q[0]);AB-1&&(null==g[I+1]&&(g[I+1]=0),g[I+1]+=g[I]/B|0,g[I]%=B)}return g.reverse()}return function(B,C,I,E,g){var w,D,c,M,s,y,h,k,K=B.indexOf("."),t=N,L=e;for(K>=0&&(M=f,f=0,B=B.replace(".",""),y=(k=new j(C)).pow(B.length-K),f=M,k.c=Q(U(n(y.c),y.e,"0"),10,I,A),k.e=k.c.length),c=M=(h=Q(B,C,I,g?(w=u,A):(w=A,u))).length;0==h[--M];h.pop());if(!h[0])return w.charAt(0);if(K<0?--c:(y.c=h,y.e=c,y.s=E,h=(y=G(y,k,t,L,I)).c,s=y.r,c=y.e),K=h[D=c+t+1],M=I/2,s=s||D<0||null!=h[D+1],s=L<4?(null!=K||s)&&(0==L||L==(y.s<0?3:2)):K>M||K==M&&(4==L||s||6==L&&1&h[D-1]||L==(y.s<0?8:7)),D<1||!h[0])B=s?U(w.charAt(1),-t,w.charAt(0)):w.charAt(0);else{if(h.length=D,s)for(--I;++h[--D]>I;)h[D]=0,D||(++c,h=[1].concat(h));for(M=h.length;!h[--M];);for(K=0,B="";K<=M;B+=w.charAt(h[K++]));B=U(B,c,w.charAt(0))}return B}}(),G=function(){function A(A,Q,B){var C,I,E,g,w=0,D=A.length,c=Q%1e7,M=Q/1e7|0;for(A=A.slice();D--;)C=M*(E=A[D]%1e7)+(g=A[D]/1e7|0)*c,w=((I=c*E+C%1e7*1e7+w)/B|0)+(C/1e7|0)+M*g,A[D]=I%B;return w&&(A=[w].concat(A)),A}function Q(A,Q,B,C){var I,E;if(B!=C)E=B>C?1:-1;else for(I=E=0;IQ[I]?1:-1;break}return E}function B(A,Q,B,C){for(var I=0;B--;)A[B]-=I,I=A[B]1;A.splice(0,1));}return function(C,I,E,g,w){var c,M,s,n,h,k,K,t,U,L,i,G,p,r,a,o,N,e=C.s==I.s?1:-1,J=C.c,S=I.c;if(!J||!J[0]||!S||!S[0])return new j(C.s&&I.s&&(J?!S||J[0]!=S[0]:S)?J&&0==J[0]||!S?0*e:e/0:NaN);for(U=(t=new j(e)).c=[],e=E+(M=C.e-I.e)+1,w||(w=1e14,M=y(C.e/14)-y(I.e/14),e=e/14|0),s=0;S[s]==(J[s]||0);s++);if(S[s]>(J[s]||0)&&M--,e<0)U.push(1),n=!0;else{for(r=J.length,o=S.length,s=0,e+=2,(h=D(w/(S[0]+1)))>1&&(S=A(S,h,w),J=A(J,h,w),o=S.length,r=J.length),p=o,i=(L=J.slice(0,o)).length;i=w/2&&a++;do{if(h=0,(c=Q(S,L,o,i))<0){if(G=L[0],o!=i&&(G=G*w+(L[1]||0)),(h=D(G/a))>1)for(h>=w&&(h=w-1),K=(k=A(S,h,w)).length,i=L.length;1==Q(k,L,K,i);)h--,B(k,oQ(S,L,o,i);)h++,B(L,o=10;e/=10,s++);T(t,E+(t.e=s+14*M-1)+1,g,n)}else t.e=M,t.r=+n;return t}}(),C=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,E=/^\.([^.]+)$/,L=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(A,Q,B,g){var w,D=B?Q:Q.replace(i,"");if(L.test(D))A.s=isNaN(D)?null:D<0?-1:1;else{if(!B&&(D=D.replace(C,function(A,Q,B){return w="x"==(B=B.toLowerCase())?16:"b"==B?2:8,g&&g!=w?A:Q}),g&&(w=g,D=D.replace(I,"$1").replace(E,"0.$1")),Q!=D))return new j(D,w);if(j.DEBUG)throw Error(c+"Not a"+(g?" base "+g:"")+" number: "+Q);A.s=null}A.c=A.e=null},a.absoluteValue=a.abs=function(){var A=new j(this);return A.s<0&&(A.s=1),A},a.comparedTo=function(A,Q){return h(this,new j(A,Q))},a.decimalPlaces=a.dp=function(A,Q){var B,C,I;if(null!=A)return k(A,0,1e9),null==Q?Q=e:k(Q,0,8),T(new j(this),A+this.e+1,Q);if(!(B=this.c))return null;if(C=((I=B.length-1)-y(this.e/14))*14,I=B[I])for(;I%10==0;I/=10,C--);return C<0&&(C=0),C},a.dividedBy=a.div=function(A,Q){return G(this,new j(A,Q),N,e)},a.dividedToIntegerBy=a.idiv=function(A,Q){return G(this,new j(A,Q),0,1)},a.exponentiatedBy=a.pow=function(A,Q){var B,C,I,E,g,M,s,y,n,h=this;if((A=new j(A)).c&&!A.isInteger())throw Error(c+"Exponent not an integer: "+P(A));if(null!=Q&&(Q=new j(Q)),M=A.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!A.c||!A.c[0])return n=new j(Math.pow(+P(h),M?2-K(A):+P(A))),Q?n.mod(Q):n;if(s=A.s<0,Q){if(Q.c?!Q.c[0]:!Q.s)return new j(NaN);(C=!s&&h.isInteger()&&Q.isInteger())&&(h=h.mod(Q))}else{if(A.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||M&&h.c[1]>=24e7:h.c[0]<8e13||M&&h.c[0]<=9999975e7)))return E=h.s<0&&K(A)?-0:0,h.e>-1&&(E=1/E),new j(s?1/E:E);f&&(E=w(f/14+2))}for(M?(B=new j(.5),s&&(A.s=1),y=K(A)):y=(I=Math.abs(+P(A)))%2,n=new j(o);;){if(y){if(!(n=n.times(h)).c)break;E?n.c.length>E&&(n.c.length=E):C&&(n=n.mod(Q))}if(I){if(0===(I=D(I/2)))break;y=I%2}else if(T(A=A.times(B),A.e+1,1),A.e>14)y=K(A);else{if(0==(I=+P(A)))break;y=I%2}h=h.times(h),E?h.c&&h.c.length>E&&(h.c.length=E):C&&(h=h.mod(Q))}return C?n:(s&&(n=o.div(n)),Q?n.mod(Q):E?T(n,f,e,g):n)},a.integerValue=function(A){var Q=new j(this);return null==A?A=e:k(A,0,8),T(Q,Q.e+1,A)},a.isEqualTo=a.eq=function(A,Q){return 0===h(this,new j(A,Q))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(A,Q){return h(this,new j(A,Q))>0},a.isGreaterThanOrEqualTo=a.gte=function(A,Q){return 1===(Q=h(this,new j(A,Q)))||0===Q},a.isInteger=function(){return!!this.c&&y(this.e/14)>this.c.length-2},a.isLessThan=a.lt=function(A,Q){return 0>h(this,new j(A,Q))},a.isLessThanOrEqualTo=a.lte=function(A,Q){return -1===(Q=h(this,new j(A,Q)))||0===Q},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(A,Q){var B,C,I,E,g=this.s;if(Q=(A=new j(A,Q)).s,!g||!Q)return new j(NaN);if(g!=Q)return A.s=-Q,this.plus(A);var w=this.e/14,D=A.e/14,c=this.c,M=A.c;if(!w||!D){if(!c||!M)return c?(A.s=-Q,A):new j(M?this:NaN);if(!c[0]||!M[0])return M[0]?(A.s=-Q,A):new j(c[0]?this:3==e?-0:0)}if(w=y(w),D=y(D),c=c.slice(),g=w-D){for((E=g<0)?(g=-g,I=c):(D=w,I=M),I.reverse(),Q=g;Q--;I.push(0));I.reverse()}else for(C=(E=(g=c.length)<(Q=M.length))?g:Q,g=Q=0;Q0)for(;Q--;c[B++]=0);for(Q=1e14-1;C>g;){if(c[--C]=0;){for(B=0,n=t[I]%1e7,h=t[I]/1e7|0,E=I+(g=D);E>I;)w=h*(c=K[--g]%1e7)+(M=K[g]/1e7|0)*n,B=((c=n*c+w%1e7*1e7+k[E]+B)/1e14|0)+(w/1e7|0)+h*M,k[E--]=c%1e14;k[E]=B}return B?++C:k.splice(0,1),Z(A,k,C)},a.negated=function(){var A=new j(this);return A.s=-A.s||null,A},a.plus=function(A,Q){var B,C=this.s;if(Q=(A=new j(A,Q)).s,!C||!Q)return new j(NaN);if(C!=Q)return A.s=-Q,this.minus(A);var I=this.e/14,E=A.e/14,g=this.c,w=A.c;if(!I||!E){if(!g||!w)return new j(C/0);if(!g[0]||!w[0])return w[0]?A:new j(g[0]?this:0*C)}if(I=y(I),E=y(E),g=g.slice(),C=I-E){for(C>0?(E=I,B=w):(C=-C,B=g),B.reverse();C--;B.push(0));B.reverse()}for((C=g.length)-(Q=w.length)<0&&(B=w,w=g,g=B,Q=C),C=0;Q;)C=(g[--Q]=g[Q]+w[Q]+C)/1e14|0,g[Q]=1e14===g[Q]?0:g[Q]%1e14;return C&&(g=[C].concat(g),++E),Z(A,g,E)},a.precision=a.sd=function(A,Q){var B,C,I;if(null!=A&&!!A!==A)return k(A,1,1e9),null==Q?Q=e:k(Q,0,8),T(new j(this),A,Q);if(!(B=this.c))return null;if(C=14*(I=B.length-1)+1,I=B[I]){for(;I%10==0;I/=10,C--);for(I=B[0];I>=10;I/=10,C++);}return A&&this.e+1>C&&(C=this.e+1),C},a.shiftedBy=function(A){return k(A,-9007199254740991,9007199254740991),this.times("1e"+A)},a.squareRoot=a.sqrt=function(){var A,Q,B,C,I,E=this.c,g=this.s,w=this.e,D=N+4,c=new j("0.5");if(1!==g||!E||!E[0])return new j(!g||g<0&&(!E||E[0])?NaN:E?this:1/0);if(0==(g=Math.sqrt(+P(this)))||g==1/0?(((Q=n(E)).length+w)%2==0&&(Q+="0"),g=Math.sqrt(+Q),w=y((w+1)/2)-(w<0||w%2),B=new j(Q=g==1/0?"5e"+w:(Q=g.toExponential()).slice(0,Q.indexOf("e")+1)+w)):B=new j(g+""),B.c[0]){for((g=(w=B.e)+D)<3&&(g=0);;)if(I=B,B=c.times(I.plus(G(this,I,D,1))),n(I.c).slice(0,g)===(Q=n(B.c)).slice(0,g)){if(B.e0&&h>0){for(I=h%g||g,M=n.substr(0,I);I0&&(M+=D+n.slice(I)),y&&(M="-"+M)}C=s?M+(B.decimalSeparator||"")+((w=+B.fractionGroupSize)?s.replace(RegExp("\\d{"+w+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):s):M}return(B.prefix||"")+C+(B.suffix||"")},a.toFraction=function(A){var Q,B,C,I,E,g,w,D,M,y,h,k,K=this.c;if(null!=A&&(!(w=new j(A)).isInteger()&&(w.c||1!==w.s)||w.lt(o)))throw Error(c+"Argument "+(w.isInteger()?"out of range: ":"not an integer: ")+P(w));if(!K)return new j(this);for(Q=new j(o),M=B=new j(o),C=D=new j(o),k=n(K),E=Q.e=k.length-this.e-1,Q.c[0]=s[(g=E%14)<0?14+g:g],A=!A||w.comparedTo(Q)>0?E>0?Q:M:w,g=l,l=1/0,w=new j(k),D.c[0]=0;y=G(w,Q,0,1),1!=(I=B.plus(y.times(C))).comparedTo(A);)B=C,C=I,M=D.plus(y.times(I=M)),D=I,Q=w.minus(y.times(I=Q)),w=I;return I=G(A.minus(B),C,0,1),D=D.plus(I.times(M)),B=B.plus(I.times(C)),D.s=M.s=this.s,E*=2,h=1>G(M,C,E,e).minus(this).abs().comparedTo(G(D,B,E,e).minus(this).abs())?[M,C]:[D,B],l=g,h},a.toNumber=function(){return+P(this)},a.toPrecision=function(A,Q){return null!=A&&k(A,1,1e9),b(this,A,Q,2)},a.toString=function(A){var Q,B=this,C=B.s,I=B.e;return null===I?C?(Q="Infinity",C<0&&(Q="-"+Q)):Q="NaN":(null==A?Q=I<=J||I>=S?t(n(B.c),I):U(n(B.c),I,"0"):10===A&&R?Q=U(n((B=T(new j(B),N+I+1,e)).c),B.e,"0"):(k(A,2,u.length,"Base"),Q=p(U(n(B.c),I,"0"),10,A,C,!0)),C<0&&B.c[0]&&(Q="-"+Q)),Q},a.valueOf=a.toJSON=function(){return P(this)},a._isBigNumber=!0,null!=Q&&j.set(Q),j}()).default=E.BigNumber=E,void 0!==(C=(function(){return E}).call(Q,B,Q,A))&&(A.exports=C)}(0)},70651:function(A,Q,B){let C=B(7967);function I(A,Q,B){let C=A[Q]+A[B],I=A[Q+1]+A[B+1];C>=4294967296&&I++,A[Q]=C,A[Q+1]=I}function E(A,Q,B,C){let I=A[Q]+B;B<0&&(I+=4294967296);let E=A[Q+1]+C;I>=4294967296&&E++,A[Q]=I,A[Q+1]=E}function g(A,Q){return A[Q]^A[Q+1]<<8^A[Q+2]<<16^A[Q+3]<<24}function w(A,Q,B,C,g,w){let D=s[g],c=s[g+1],y=s[w],n=s[w+1];I(M,A,Q),E(M,A,D,c);let h=M[C]^M[A],k=M[C+1]^M[A+1];M[C]=k,M[C+1]=h,I(M,B,C),h=M[Q]^M[B],k=M[Q+1]^M[B+1],M[Q]=h>>>24^k<<8,M[Q+1]=k>>>24^h<<8,I(M,A,Q),E(M,A,y,n),h=M[C]^M[A],k=M[C+1]^M[A+1],M[C]=h>>>16^k<<16,M[C+1]=k>>>16^h<<16,I(M,B,C),h=M[Q]^M[B],k=M[Q+1]^M[B+1],M[Q]=k>>>31^h<<1,M[Q+1]=h>>>31^k<<1}let D=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=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(A){return 2*A})),M=new Uint32Array(32),s=new Uint32Array(32);function y(A,Q){let B=0;for(B=0;B<16;B++)M[B]=A.h[B],M[B+16]=D[B];for(M[24]=M[24]^A.t,M[25]=M[25]^A.t/4294967296,Q&&(M[28]=~M[28],M[29]=~M[29]),B=0;B<32;B++)s[B]=g(A.b,4*B);for(B=0;B<12;B++)w(0,8,16,24,c[16*B+0],c[16*B+1]),w(2,10,18,26,c[16*B+2],c[16*B+3]),w(4,12,20,28,c[16*B+4],c[16*B+5]),w(6,14,22,30,c[16*B+6],c[16*B+7]),w(0,10,20,30,c[16*B+8],c[16*B+9]),w(2,12,22,24,c[16*B+10],c[16*B+11]),w(4,14,16,26,c[16*B+12],c[16*B+13]),w(6,8,18,28,c[16*B+14],c[16*B+15]);for(B=0;B<16;B++)A.h[B]=A.h[B]^M[B]^M[B+16]}let n=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 h(A,Q,B,C){if(0===A||A>64)throw Error("Illegal output length, expected 0 < length <= 64");if(Q&&Q.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(B&&16!==B.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(C&&16!==C.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:A};n.fill(0),n[0]=A,Q&&(n[1]=Q.length),n[2]=1,n[3]=1,B&&n.set(B,32),C&&n.set(C,48);for(let A=0;A<16;A++)I.h[A]=D[A]^g(n,4*A);return Q&&(k(I,Q),I.c=128),I}function k(A,Q){for(let B=0;B>2]>>8*(3&B);return Q}function t(A,Q,B,I,E){B=B||64,A=C.normalizeInput(A),I&&(I=C.normalizeInput(I)),E&&(E=C.normalizeInput(E));let g=h(B,Q,I,E);return k(g,A),K(g)}A.exports={blake2b:t,blake2bHex:function(A,Q,B,I,E){let g=t(A,Q,B,I,E);return C.toHex(g)},blake2bInit:h,blake2bUpdate:k,blake2bFinal:K}},39962:function(A,Q,B){let C=B(7967);function I(A,Q,B,C,I,g){D[A]=D[A]+D[Q]+I,D[C]=E(D[C]^D[A],16),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],12),D[A]=D[A]+D[Q]+g,D[C]=E(D[C]^D[A],8),D[B]=D[B]+D[C],D[Q]=E(D[Q]^D[B],7)}function E(A,Q){return A>>>Q^A<<32-Q}let g=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),w=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]),D=new Uint32Array(16),c=new Uint32Array(16);function M(A,Q){let B=0;for(B=0;B<8;B++)D[B]=A.h[B],D[B+8]=g[B];for(D[12]^=A.t,D[13]^=A.t/4294967296,Q&&(D[14]=~D[14]),B=0;B<16;B++){var C,E;c[B]=(C=A.b)[E=4*B]^C[E+1]<<8^C[E+2]<<16^C[E+3]<<24}for(B=0;B<10;B++)I(0,4,8,12,c[w[16*B+0]],c[w[16*B+1]]),I(1,5,9,13,c[w[16*B+2]],c[w[16*B+3]]),I(2,6,10,14,c[w[16*B+4]],c[w[16*B+5]]),I(3,7,11,15,c[w[16*B+6]],c[w[16*B+7]]),I(0,5,10,15,c[w[16*B+8]],c[w[16*B+9]]),I(1,6,11,12,c[w[16*B+10]],c[w[16*B+11]]),I(2,7,8,13,c[w[16*B+12]],c[w[16*B+13]]),I(3,4,9,14,c[w[16*B+14]],c[w[16*B+15]]);for(B=0;B<8;B++)A.h[B]^=D[B]^D[B+8]}function s(A,Q){if(!(A>0&&A<=32))throw Error("Incorrect output length, should be in [1, 32]");let B=Q?Q.length:0;if(Q&&!(B>0&&B<=32))throw Error("Incorrect key length, should be in [1, 32]");let C={h:new Uint32Array(g),b:new Uint8Array(64),c:0,t:0,outlen:A};return C.h[0]^=16842752^B<<8^A,B>0&&(y(C,Q),C.c=64),C}function y(A,Q){for(let B=0;B>2]>>8*(3&B)&255;return Q}function h(A,Q,B){B=B||32,A=C.normalizeInput(A);let I=s(B,Q);return y(I,A),n(I)}A.exports={blake2s:h,blake2sHex:function(A,Q,B){let I=h(A,Q,B);return C.toHex(I)},blake2sInit:s,blake2sUpdate:y,blake2sFinal:n}},81395:function(A,Q,B){let C=B(70651),I=B(39962);A.exports={blake2b:C.blake2b,blake2bHex:C.blake2bHex,blake2bInit:C.blake2bInit,blake2bUpdate:C.blake2bUpdate,blake2bFinal:C.blake2bFinal,blake2s:I.blake2s,blake2sHex:I.blake2sHex,blake2sInit:I.blake2sInit,blake2sUpdate:I.blake2sUpdate,blake2sFinal:I.blake2sFinal}},7967:function(A){function Q(A){return(4294967296+A).toString(16).substring(1)}A.exports={normalizeInput:function(A){let Q;if(A instanceof Uint8Array)Q=A;else if("string"==typeof A)Q=new TextEncoder().encode(A);else throw Error("Input must be an string, Buffer or Uint8Array");return Q},toHex:function(A){return Array.prototype.map.call(A,function(A){return(A<16?"0":"")+A.toString(16)}).join("")},debugPrint:function(A,B,C){let I="\n"+A+" = ";for(let E=0;E2147483647)throw RangeError('The value "'+A+'" is invalid for option "size"');var Q=new Uint8Array(A);return Object.setPrototypeOf(Q,w.prototype),Q}function w(A,Q,B){if("number"==typeof A){if("string"==typeof Q)throw TypeError('The "string" argument must be of type string. Received type number');return M(A)}return D(A,Q,B)}function D(A,Q,B){if("string"==typeof A)return function(A,Q){if(("string"!=typeof Q||""===Q)&&(Q="utf8"),!w.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);var B=0|h(A,Q),C=g(B),I=C.write(A,Q);return I!==B&&(C=C.slice(0,I)),C}(A,Q);if(ArrayBuffer.isView(A))return function(A){if(S(A,Uint8Array)){var Q=new Uint8Array(A);return y(Q.buffer,Q.byteOffset,Q.byteLength)}return s(A)}(A);if(null==A)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(S(A,ArrayBuffer)||A&&S(A.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(S(A,SharedArrayBuffer)||A&&S(A.buffer,SharedArrayBuffer)))return y(A,Q,B);if("number"==typeof A)throw TypeError('The "value" argument must not be of type number. Received type number');var C=A.valueOf&&A.valueOf();if(null!=C&&C!==A)return w.from(C,Q,B);var I=function(A){if(w.isBuffer(A)){var Q,B=0|n(A.length),C=g(B);return 0===C.length||A.copy(C,0,0,B),C}return void 0!==A.length?"number"!=typeof A.length||(Q=A.length)!=Q?g(0):s(A):"Buffer"===A.type&&Array.isArray(A.data)?s(A.data):void 0}(A);if(I)return I;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return w.from(A[Symbol.toPrimitive]("string"),Q,B);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function c(A){if("number"!=typeof A)throw TypeError('"size" argument must be of type number');if(A<0)throw RangeError('The value "'+A+'" is invalid for option "size"')}function M(A){return c(A),g(A<0?0:0|n(A))}function s(A){for(var Q=A.length<0?0:0|n(A.length),B=g(Q),C=0;C=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|A}function h(A,Q){if(w.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||S(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);var B=A.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===B)return 0;for(var I=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return B;case"utf8":case"utf-8":return N(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*B;case"hex":return B>>>1;case"base64":return e(A).length;default:if(I)return C?-1:N(A).length;Q=(""+Q).toLowerCase(),I=!0}}function k(A,Q,B){var I,E,g=!1;if((void 0===Q||Q<0)&&(Q=0),Q>this.length||((void 0===B||B>this.length)&&(B=this.length),B<=0||(B>>>=0)<=(Q>>>=0)))return"";for(A||(A="utf8");;)switch(A){case"hex":return function(A,Q,B){var C=A.length;(!Q||Q<0)&&(Q=0),(!B||B<0||B>C)&&(B=C);for(var I="",E=Q;E2147483647?B=2147483647:B<-2147483648&&(B=-2147483648),(E=B=+B)!=E&&(B=I?0:A.length-1),B<0&&(B=A.length+B),B>=A.length){if(I)return -1;B=A.length-1}else if(B<0){if(!I)return -1;B=0}if("string"==typeof Q&&(Q=w.from(Q,C)),w.isBuffer(Q))return 0===Q.length?-1:U(A,Q,B,C,I);if("number"==typeof Q)return(Q&=255,"function"==typeof Uint8Array.prototype.indexOf)?I?Uint8Array.prototype.indexOf.call(A,Q,B):Uint8Array.prototype.lastIndexOf.call(A,Q,B):U(A,[Q],B,C,I);throw TypeError("val must be string, number or Buffer")}function U(A,Q,B,C,I){var E,g=1,w=A.length,D=Q.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(A.length<2||Q.length<2)return -1;g=2,w/=2,D/=2,B/=2}function c(A,Q){return 1===g?A[Q]:A.readUInt16BE(Q*g)}if(I){var M=-1;for(E=B;Ew&&(B=w-D),E=B;E>=0;E--){for(var s=!0,y=0;y239?4:c>223?3:c>191?2:1;if(I+s<=B)switch(s){case 1:c<128&&(M=c);break;case 2:(192&(E=A[I+1]))==128&&(D=(31&c)<<6|63&E)>127&&(M=D);break;case 3:E=A[I+1],g=A[I+2],(192&E)==128&&(192&g)==128&&(D=(15&c)<<12|(63&E)<<6|63&g)>2047&&(D<55296||D>57343)&&(M=D);break;case 4:E=A[I+1],g=A[I+2],w=A[I+3],(192&E)==128&&(192&g)==128&&(192&w)==128&&(D=(15&c)<<18|(63&E)<<12|(63&g)<<6|63&w)>65535&&D<1114112&&(M=D)}null===M?(M=65533,s=1):M>65535&&(M-=65536,C.push(M>>>10&1023|55296),M=56320|1023&M),C.push(M),I+=s}return function(A){var Q=A.length;if(Q<=4096)return String.fromCharCode.apply(String,A);for(var B="",C=0;CB)throw RangeError("Trying to access beyond buffer length")}function G(A,Q,B,C,I,E){if(!w.isBuffer(A))throw TypeError('"buffer" argument must be a Buffer instance');if(Q>I||QA.length)throw RangeError("Index out of range")}function p(A,Q,B,C,I,E){if(B+C>A.length||B<0)throw RangeError("Index out of range")}function r(A,Q,B,C,E){return Q=+Q,B>>>=0,E||p(A,Q,B,4,34028234663852886e22,-34028234663852886e22),I.write(A,Q,B,C,23,4),B+4}function a(A,Q,B,C,E){return Q=+Q,B>>>=0,E||p(A,Q,B,8,17976931348623157e292,-17976931348623157e292),I.write(A,Q,B,C,52,8),B+8}Q.lW=w,Q.h2=50,w.TYPED_ARRAY_SUPPORT=function(){try{var A=new Uint8Array(1),Q={foo:function(){return 42}};return Object.setPrototypeOf(Q,Uint8Array.prototype),Object.setPrototypeOf(A,Q),42===A.foo()}catch(A){return!1}}(),w.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(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(A,Q,B){return D(A,Q,B)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(A,Q,B){return(c(A),A<=0)?g(A):void 0!==Q?"string"==typeof B?g(A).fill(Q,B):g(A).fill(Q):g(A)},w.allocUnsafe=function(A){return M(A)},w.allocUnsafeSlow=function(A){return M(A)},w.isBuffer=function(A){return null!=A&&!0===A._isBuffer&&A!==w.prototype},w.compare=function(A,Q){if(S(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),S(Q,Uint8Array)&&(Q=w.from(Q,Q.offset,Q.byteLength)),!w.isBuffer(A)||!w.isBuffer(Q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===Q)return 0;for(var B=A.length,C=Q.length,I=0,E=Math.min(B,C);IC.length?w.from(E).copy(C,I):Uint8Array.prototype.set.call(C,E,I);else if(w.isBuffer(E))E.copy(C,I);else throw TypeError('"list" argument must be an Array of Buffers');I+=E.length}return C},w.byteLength=h,w.prototype._isBuffer=!0,w.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;QB&&(A+=" ... "),""},E&&(w.prototype[E]=w.prototype.inspect),w.prototype.compare=function(A,Q,B,C,I){if(S(A,Uint8Array)&&(A=w.from(A,A.offset,A.byteLength)),!w.isBuffer(A))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===Q&&(Q=0),void 0===B&&(B=A?A.length:0),void 0===C&&(C=0),void 0===I&&(I=this.length),Q<0||B>A.length||C<0||I>this.length)throw RangeError("out of range index");if(C>=I&&Q>=B)return 0;if(C>=I)return -1;if(Q>=B)return 1;if(Q>>>=0,B>>>=0,C>>>=0,I>>>=0,this===A)return 0;for(var E=I-C,g=B-Q,D=Math.min(E,g),c=this.slice(C,I),M=A.slice(Q,B),s=0;s>>=0,isFinite(B)?(B>>>=0,void 0===C&&(C="utf8")):(C=B,B=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var I,E,g,w,D,c,M,s,y=this.length-Q;if((void 0===B||B>y)&&(B=y),A.length>0&&(B<0||Q<0)||Q>this.length)throw RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var n=!1;;)switch(C){case"hex":return function(A,Q,B,C){B=Number(B)||0;var I=A.length-B;C?(C=Number(C))>I&&(C=I):C=I;var E=Q.length;C>E/2&&(C=E/2);for(var g=0;g>8,I.push(B%256),I.push(C);return I}(A,this.length-M),this,M,s);default:if(n)throw TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),n=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(A,Q){var B=this.length;A=~~A,Q=void 0===Q?B:~~Q,A<0?(A+=B)<0&&(A=0):A>B&&(A=B),Q<0?(Q+=B)<0&&(Q=0):Q>B&&(Q=B),Q>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A+--Q],I=1;Q>0&&(I*=256);)C+=this[A+--Q]*I;return C},w.prototype.readUint8=w.prototype.readUInt8=function(A,Q){return A>>>=0,Q||i(A,1,this.length),this[A]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]|this[A+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(A,Q){return A>>>=0,Q||i(A,2,this.length),this[A]<<8|this[A+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},w.prototype.readIntLE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=this[A],I=1,E=0;++E=(I*=128)&&(C-=Math.pow(2,8*Q)),C},w.prototype.readIntBE=function(A,Q,B){A>>>=0,Q>>>=0,B||i(A,Q,this.length);for(var C=Q,I=1,E=this[A+--C];C>0&&(I*=256);)E+=this[A+--C]*I;return E>=(I*=128)&&(E-=Math.pow(2,8*Q)),E},w.prototype.readInt8=function(A,Q){return(A>>>=0,Q||i(A,1,this.length),128&this[A])?-((255-this[A]+1)*1):this[A]},w.prototype.readInt16LE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A]|this[A+1]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt16BE=function(A,Q){A>>>=0,Q||i(A,2,this.length);var B=this[A+1]|this[A]<<8;return 32768&B?4294901760|B:B},w.prototype.readInt32LE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},w.prototype.readInt32BE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},w.prototype.readFloatLE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!0,23,4)},w.prototype.readFloatBE=function(A,Q){return A>>>=0,Q||i(A,4,this.length),I.read(this,A,!1,23,4)},w.prototype.readDoubleLE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!0,52,8)},w.prototype.readDoubleBE=function(A,Q){return A>>>=0,Q||i(A,8,this.length),I.read(this,A,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=1,g=0;for(this[Q]=255&A;++g>>=0,B>>>=0,!C){var I=Math.pow(2,8*B)-1;G(this,A,Q,B,I,0)}var E=B-1,g=1;for(this[Q+E]=255&A;--E>=0&&(g*=256);)this[Q+E]=A/g&255;return Q+B},w.prototype.writeUint8=w.prototype.writeUInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,255,0),this[Q]=255&A,Q+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,65535,0),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q+3]=A>>>24,this[Q+2]=A>>>16,this[Q+1]=A>>>8,this[Q]=255&A,Q+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,4294967295,0),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeIntLE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=0,g=1,w=0;for(this[Q]=255&A;++E>0)-w&255;return Q+B},w.prototype.writeIntBE=function(A,Q,B,C){if(A=+A,Q>>>=0,!C){var I=Math.pow(2,8*B-1);G(this,A,Q,B,I-1,-I)}var E=B-1,g=1,w=0;for(this[Q+E]=255&A;--E>=0&&(g*=256);)A<0&&0===w&&0!==this[Q+E+1]&&(w=1),this[Q+E]=(A/g>>0)-w&255;return Q+B},w.prototype.writeInt8=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,1,127,-128),A<0&&(A=255+A+1),this[Q]=255&A,Q+1},w.prototype.writeInt16LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=255&A,this[Q+1]=A>>>8,Q+2},w.prototype.writeInt16BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,2,32767,-32768),this[Q]=A>>>8,this[Q+1]=255&A,Q+2},w.prototype.writeInt32LE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),this[Q]=255&A,this[Q+1]=A>>>8,this[Q+2]=A>>>16,this[Q+3]=A>>>24,Q+4},w.prototype.writeInt32BE=function(A,Q,B){return A=+A,Q>>>=0,B||G(this,A,Q,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[Q]=A>>>24,this[Q+1]=A>>>16,this[Q+2]=A>>>8,this[Q+3]=255&A,Q+4},w.prototype.writeFloatLE=function(A,Q,B){return r(this,A,Q,!0,B)},w.prototype.writeFloatBE=function(A,Q,B){return r(this,A,Q,!1,B)},w.prototype.writeDoubleLE=function(A,Q,B){return a(this,A,Q,!0,B)},w.prototype.writeDoubleBE=function(A,Q,B){return a(this,A,Q,!1,B)},w.prototype.copy=function(A,Q,B,C){if(!w.isBuffer(A))throw TypeError("argument should be a Buffer");if(B||(B=0),C||0===C||(C=this.length),Q>=A.length&&(Q=A.length),Q||(Q=0),C>0&&C=this.length)throw RangeError("Index out of range");if(C<0)throw RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),A.length-Q>>=0,B=void 0===B?this.length:B>>>0,A||(A=0),"number"==typeof A)for(I=Q;I55295&&B<57344){if(!I){if(B>56319||g+1===C){(Q-=3)>-1&&E.push(239,191,189);continue}I=B;continue}if(B<56320){(Q-=3)>-1&&E.push(239,191,189),I=B;continue}B=(I-55296<<10|B-56320)+65536}else I&&(Q-=3)>-1&&E.push(239,191,189);if(I=null,B<128){if((Q-=1)<0)break;E.push(B)}else if(B<2048){if((Q-=2)<0)break;E.push(B>>6|192,63&B|128)}else if(B<65536){if((Q-=3)<0)break;E.push(B>>12|224,B>>6&63|128,63&B|128)}else if(B<1114112){if((Q-=4)<0)break;E.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}else throw Error("Invalid code point")}return E}function e(A){return C.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(o,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function J(A,Q,B,C){for(var I=0;I=Q.length)&&!(I>=A.length);++I)Q[I+B]=A[I];return I}function S(A,Q){return A instanceof Q||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===Q.name}var F=function(){for(var A="0123456789abcdef",Q=Array(256),B=0;B<16;++B)for(var C=16*B,I=0;I<16;++I)Q[C+I]=A[B]+A[I];return Q}()},72779:function(A,Q){var B;!function(){"use strict";var C={}.hasOwnProperty;function I(){for(var A=[],Q=0;Q0&&g.length>I&&!g.warned){g.warned=!0;var I,E,g,c=Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(Q)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=A,c.type=Q,c.count=g.length,console&&console.warn&&console.warn(c)}return A}function M(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(A,Q,B){var C={fired:!1,wrapFn:void 0,target:A,type:Q,listener:B},I=M.bind(C);return I.listener=B,C.wrapFn=I,I}function y(A,Q,B){var C=A._events;if(void 0===C)return[];var I=C[Q];return void 0===I?[]:"function"==typeof I?B?[I.listener||I]:[I]:B?function(A){for(var Q=Array(A.length),B=0;B0&&(g=Q[0]),g instanceof Error)throw g;var g,w=Error("Unhandled error."+(g?" ("+g.message+")":""));throw w.context=g,w}var D=E[A];if(void 0===D)return!1;if("function"==typeof D)C(D,this,Q);else for(var c=D.length,M=h(D,c),B=0;B=0;E--)if(B[E]===Q||B[E].listener===Q){g=B[E].listener,I=E;break}if(I<0)return this;0===I?B.shift():function(A,Q){for(;Q+1=0;C--)this.removeListener(A,Q[C]);return this},E.prototype.listeners=function(A){return y(this,A,!0)},E.prototype.rawListeners=function(A){return y(this,A,!1)},E.listenerCount=function(A,Q){return"function"==typeof A.listenerCount?A.listenerCount(Q):n.call(A,Q)},E.prototype.listenerCount=n,E.prototype.eventNames=function(){return this._eventsCount>0?Q(this._events):[]}},73463:function(A,Q,B){"use strict";var C=B(73887),I={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},E={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},w={};function D(A){return C.isMemo(A)?g:w[A.$$typeof]||I}w[C.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w[C.Memo]=g;var c=Object.defineProperty,M=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,n=Object.getPrototypeOf,h=Object.prototype;A.exports=function A(Q,B,C){if("string"!=typeof B){if(h){var I=n(B);I&&I!==h&&A(Q,I,C)}var g=M(B);s&&(g=g.concat(s(B)));for(var w=D(Q),k=D(B),K=0;K>1,M=-7,s=B?I-1:0,y=B?-1:1,n=A[Q+s];for(s+=y,E=n&(1<<-M)-1,n>>=-M,M+=w;M>0;E=256*E+A[Q+s],s+=y,M-=8);for(g=E&(1<<-M)-1,E>>=-M,M+=C;M>0;g=256*g+A[Q+s],s+=y,M-=8);if(0===E)E=1-c;else{if(E===D)return g?NaN:1/0*(n?-1:1);g+=Math.pow(2,C),E-=c}return(n?-1:1)*g*Math.pow(2,E-C)},Q.write=function(A,Q,B,C,I,E){var g,w,D,c=8*E-I-1,M=(1<>1,y=23===I?5960464477539062e-23:0,n=C?0:E-1,h=C?1:-1,k=Q<0||0===Q&&1/Q<0?1:0;for(isNaN(Q=Math.abs(Q))||Q===1/0?(w=isNaN(Q)?1:0,g=M):(g=Math.floor(Math.log(Q)/Math.LN2),Q*(D=Math.pow(2,-g))<1&&(g--,D*=2),g+s>=1?Q+=y/D:Q+=y*Math.pow(2,1-s),Q*D>=2&&(g++,D/=2),g+s>=M?(w=0,g=M):g+s>=1?(w=(Q*D-1)*Math.pow(2,I),g+=s):(w=Q*Math.pow(2,s-1)*Math.pow(2,I),g=0));I>=8;A[B+n]=255&w,n+=h,w/=256,I-=8);for(g=g<0;A[B+n]=255&g,n+=h,g/=256,c-=8);A[B+n-h]|=128*k}},39515:function(A,Q,B){var C=B(38761)(B(37772),"DataView");A.exports=C},89612:function(A,Q,B){var C=B(52118),I=B(96909),E=B(98138),g=B(4174),w=B(7942);function D(A){var Q=-1,B=null==A?0:A.length;for(this.clear();++QI?0:I+Q),(B=B>I?I:B)<0&&(B+=I),I=Q>B?0:B-Q>>>0,Q>>>=0;for(var E=Array(I);++C=I?A:C(A,Q,B)}},24019:function(A,Q,B){var C=B(37772)["__core-js_shared__"];A.exports=C},55463:function(A){A.exports=function(A){return function(Q,B,C){for(var I=-1,E=Object(Q),g=C(Q),w=g.length;w--;){var D=g[A?w:++I];if(!1===B(E[D],D,E))break}return Q}}},83126:function(A,Q,B){var C=B(23895),I=B(33880),E=B(8435),g=B(66188);A.exports=function(A){return function(Q){var B=I(Q=g(Q))?E(Q):void 0,w=B?B[0]:Q.charAt(0),D=B?C(B,1).join(""):Q.slice(1);return w[A]()+D}}},34311:function(A,Q,B){var C=B(81207),I=B(97329),E=B(11618),g=RegExp("['’]","g");A.exports=function(A){return function(Q){return C(E(I(Q).replace(g,"")),A,"")}}},61655:function(A,Q,B){var C=B(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"});A.exports=C},83043:function(A,Q,B){var C=B(38761),I=function(){try{var A=C(Object,"defineProperty");return A({},"",{}),A}catch(A){}}();A.exports=I},74871:function(A,Q,B){var C=B(45386),I=B(87064),E=B(59950);A.exports=function(A,Q,B,g,w,D){var c=1&B,M=A.length,s=Q.length;if(M!=s&&!(c&&s>M))return!1;var y=D.get(A),n=D.get(Q);if(y&&n)return y==Q&&n==A;var h=-1,k=!0,K=2&B?new C:void 0;for(D.set(A,Q),D.set(Q,A);++h-1&&A%1==0&&A-1}},94769:function(A,Q,B){var C=B(22218);A.exports=function(A,Q){var B=this.__data__,I=C(B,A);return I<0?(++this.size,B.push([A,Q])):B[I][1]=Q,this}},92411:function(A,Q,B){var C=B(89612),I=B(80235),E=B(10326);A.exports=function(){this.size=0,this.__data__={hash:new C,map:new(E||I),string:new C}}},36417:function(A,Q,B){var C=B(27937);A.exports=function(A){var Q=C(this,A).delete(A);return this.size-=Q?1:0,Q}},86928:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).get(A)}},79493:function(A,Q,B){var C=B(27937);A.exports=function(A){return C(this,A).has(A)}},24150:function(A,Q,B){var C=B(27937);A.exports=function(A,Q){var B=C(this,A),I=B.size;return B.set(A,Q),this.size+=B.size==I?0:1,this}},75179:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A,C){B[++Q]=[C,A]}),B}},73477:function(A){A.exports=function(A,Q){return function(B){return null!=B&&B[A]===Q&&(void 0!==Q||A in Object(B))}}},77777:function(A,Q,B){var C=B(30733);A.exports=function(A){var Q=C(A,function(A){return 500===B.size&&B.clear(),A}),B=Q.cache;return Q}},99191:function(A,Q,B){var C=B(38761)(Object,"create");A.exports=C},54248:function(A,Q,B){var C=B(60241)(Object.keys,Object);A.exports=C},4146:function(A,Q,B){A=B.nmd(A);var C=B(51242),I=Q&&!Q.nodeType&&Q,E=I&&A&&!A.nodeType&&A,g=E&&E.exports===I&&C.process,w=function(){try{var A=E&&E.require&&E.require("util").types;if(A)return A;return g&&g.binding&&g.binding("util")}catch(A){}}();A.exports=w},37157:function(A){var Q=Object.prototype.toString;A.exports=function(A){return Q.call(A)}},60241:function(A){A.exports=function(A,Q){return function(B){return A(Q(B))}}},37772:function(A,Q,B){var C=B(51242),I="object"==typeof self&&self&&self.Object===Object&&self,E=C||I||Function("return this")();A.exports=E},52842:function(A){A.exports=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this}},52482:function(A){A.exports=function(A){return this.__data__.has(A)}},16909:function(A){A.exports=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A){B[++Q]=A}),B}},15243:function(A,Q,B){var C=B(80235);A.exports=function(){this.__data__=new C,this.size=0}},72858:function(A){A.exports=function(A){var Q=this.__data__,B=Q.delete(A);return this.size=Q.size,B}},4417:function(A){A.exports=function(A){return this.__data__.get(A)}},8605:function(A){A.exports=function(A){return this.__data__.has(A)}},71418:function(A,Q,B){var C=B(80235),I=B(10326),E=B(96738);A.exports=function(A,Q){var B=this.__data__;if(B instanceof C){var g=B.__data__;if(!I||g.length<199)return g.push([A,Q]),this.size=++B.size,this;B=this.__data__=new E(g)}return B.set(A,Q),this.size=B.size,this}},8435:function(A,Q,B){var C=B(50217),I=B(33880),E=B(63344);A.exports=function(A){return I(A)?E(A):C(A)}},54452:function(A,Q,B){var C=B(77777),I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,g=C(function(A){var Q=[];return 46===A.charCodeAt(0)&&Q.push(""),A.replace(I,function(A,B,C,I){Q.push(C?I.replace(E,"$1"):B||A)}),Q});A.exports=g},33812:function(A,Q,B){var C=B(4795),I=1/0;A.exports=function(A){if("string"==typeof A||C(A))return A;var Q=A+"";return"0"==Q&&1/A==-I?"-0":Q}},87035:function(A){var Q=Function.prototype.toString;A.exports=function(A){if(null!=A){try{return Q.call(A)}catch(A){}try{return A+""}catch(A){}}return""}},63344:function(A){var Q="\ud800-\udfff",B="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",C="\ud83c[\udffb-\udfff]",I="[^"+Q+"]",E="(?:\ud83c[\udde6-\uddff]){2}",g="[\ud800-\udbff][\udc00-\udfff]",w="(?:"+B+"|"+C+")?",D="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[I,E,g].join("|")+")"+D+w+")*",M=RegExp(C+"(?="+C+")|(?:"+[I+B+"?",B,E,g,"["+Q+"]"].join("|")+")"+(D+w+c),"g");A.exports=function(A){return A.match(M)||[]}},75304:function(A){var Q="\ud800-\udfff",B="\\u2700-\\u27bf",C="a-z\\xdf-\\xf6\\xf8-\\xff",I="A-Z\\xc0-\\xd6\\xd8-\\xde",E="\\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",g="['’]",w="["+E+"]",D="["+C+"]",c="[^"+Q+E+"\\d+"+B+C+I+"]",M="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",y="["+I+"]",n="(?:"+D+"|"+c+")",h="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",K="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",t="[\\ufe0e\\ufe0f]?",U="(?:\\u200d(?:"+["[^"+Q+"]",M,s].join("|")+")"+t+K+")*",L="(?:"+["["+B+"]",M,s].join("|")+")"+(t+K+U),i=RegExp([y+"?"+D+"+"+h+"(?="+[w,y,"$"].join("|")+")","(?:"+y+"|"+c+")+"+k+"(?="+[w,y+n,"$"].join("|")+")",y+"?"+n+"+"+h,y+"+"+k,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",L].join("|"),"g");A.exports=function(A){return A.match(i)||[]}},96009:function(A,Q,B){var C=B(82108),I=B(34311)(function(A,Q,B){return Q=Q.toLowerCase(),A+(B?C(Q):Q)});A.exports=I},82108:function(A,Q,B){var C=B(66188),I=B(23779);A.exports=function(A){return I(C(A).toLowerCase())}},97329:function(A,Q,B){var C=B(61655),I=B(66188),E=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");A.exports=function(A){return(A=I(A))&&A.replace(E,C).replace(g,"")}},41225:function(A){A.exports=function(A,Q){return A===Q||A!=A&&Q!=Q}},72579:function(A,Q,B){var C=B(13324);A.exports=function(A,Q,B){var I=null==A?void 0:C(A,Q);return void 0===I?B:I}},93352:function(A,Q,B){var C=B(32726),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},95041:function(A,Q,B){var C=B(20187),I=B(1369);A.exports=function(A,Q){return null!=A&&I(A,Q,C)}},23059:function(A){A.exports=function(A){return A}},79631:function(A,Q,B){var C=B(15183),I=B(15125),E=Object.prototype,g=E.hasOwnProperty,w=E.propertyIsEnumerable,D=C(function(){return arguments}())?C:function(A){return I(A)&&g.call(A,"callee")&&!w.call(A,"callee")};A.exports=D},86152:function(A){var Q=Array.isArray;A.exports=Q},67878:function(A,Q,B){var C=B(61049),I=B(61158);A.exports=function(A){return null!=A&&I(A.length)&&!C(A)}},73226:function(A,Q,B){A=B.nmd(A);var C=B(37772),I=B(36330),E=Q&&!Q.nodeType&&Q,g=E&&A&&!A.nodeType&&A,w=g&&g.exports===E?C.Buffer:void 0,D=w?w.isBuffer:void 0;A.exports=D||I},61049:function(A,Q,B){var C=B(53366),I=B(29259);A.exports=function(A){if(!I(A))return!1;var Q=C(A);return"[object Function]"==Q||"[object GeneratorFunction]"==Q||"[object AsyncFunction]"==Q||"[object Proxy]"==Q}},61158:function(A){A.exports=function(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991}},29259:function(A){A.exports=function(A){var Q=typeof A;return null!=A&&("object"==Q||"function"==Q)}},15125:function(A){A.exports=function(A){return null!=A&&"object"==typeof A}},4795:function(A,Q,B){var C=B(53366),I=B(15125);A.exports=function(A){return"symbol"==typeof A||I(A)&&"[object Symbol]"==C(A)}},77598:function(A,Q,B){var C=B(35522),I=B(47826),E=B(4146),g=E&&E.isTypedArray,w=g?I(g):C;A.exports=w},90249:function(A,Q,B){var C=B(1634),I=B(86411),E=B(67878);A.exports=function(A){return E(A)?C(A):I(A)}},19950:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,Q(A,I,E),A)}),B}},34519:function(A,Q,B){var C=B(13940),I=B(26548),E=B(68286);A.exports=function(A,Q){var B={};return Q=E(Q,3),I(A,function(A,I,E){C(B,I,Q(A,I,E))}),B}},30733:function(A,Q,B){var C=B(96738);function I(A,Q){if("function"!=typeof A||null!=Q&&"function"!=typeof Q)throw TypeError("Expected a function");var B=function(){var C=arguments,I=Q?Q.apply(this,C):C[0],E=B.cache;if(E.has(I))return E.get(I);var g=A.apply(this,C);return B.cache=E.set(I,g)||E,g};return B.cache=new(I.Cache||C),B}I.Cache=C,A.exports=I},65798:function(A,Q,B){var C=B(20256),I=B(82952),E=B(21401),g=B(33812);A.exports=function(A){return E(A)?C(g(A)):I(A)}},57370:function(A,Q,B){var C=B(34311)(function(A,Q,B){return A+(B?"_":"")+Q.toLowerCase()});A.exports=C},30981:function(A){A.exports=function(){return[]}},36330:function(A){A.exports=function(){return!1}},66188:function(A,Q,B){var C=B(1054);A.exports=function(A){return null==A?"":C(A)}},23779:function(A,Q,B){var C=B(83126)("toUpperCase");A.exports=C},11618:function(A,Q,B){var C=B(45981),I=B(83559),E=B(66188),g=B(75304);A.exports=function(A,Q,B){return(A=E(A),void 0===(Q=B?void 0:Q))?I(A)?g(A):C(A):A.match(Q)||[]}},77105:function(A,Q,B){"use strict";let C=B(8006),I=Symbol("max"),E=Symbol("length"),g=Symbol("lengthCalculator"),w=Symbol("allowStale"),D=Symbol("maxAge"),c=Symbol("dispose"),M=Symbol("noDisposeOnSet"),s=Symbol("lruList"),y=Symbol("cache"),n=Symbol("updateAgeOnGet"),h=()=>1;class k{constructor(A){if("number"==typeof A&&(A={max:A}),A||(A={}),A.max&&("number"!=typeof A.max||A.max<0))throw TypeError("max must be a non-negative number");this[I]=A.max||1/0;let Q=A.length||h;if(this[g]="function"!=typeof Q?h:Q,this[w]=A.stale||!1,A.maxAge&&"number"!=typeof A.maxAge)throw TypeError("maxAge must be a number");this[D]=A.maxAge||0,this[c]=A.dispose,this[M]=A.noDisposeOnSet||!1,this[n]=A.updateAgeOnGet||!1,this.reset()}set max(A){if("number"!=typeof A||A<0)throw TypeError("max must be a non-negative number");this[I]=A||1/0,U(this)}get max(){return this[I]}set allowStale(A){this[w]=!!A}get allowStale(){return this[w]}set maxAge(A){if("number"!=typeof A)throw TypeError("maxAge must be a non-negative number");this[D]=A,U(this)}get maxAge(){return this[D]}set lengthCalculator(A){"function"!=typeof A&&(A=h),A!==this[g]&&(this[g]=A,this[E]=0,this[s].forEach(A=>{A.length=this[g](A.value,A.key),this[E]+=A.length})),U(this)}get lengthCalculator(){return this[g]}get length(){return this[E]}get itemCount(){return this[s].length}rforEach(A,Q){Q=Q||this;for(let B=this[s].tail;null!==B;){let C=B.prev;G(this,A,B,Q),B=C}}forEach(A,Q){Q=Q||this;for(let B=this[s].head;null!==B;){let C=B.next;G(this,A,B,Q),B=C}}keys(){return this[s].toArray().map(A=>A.key)}values(){return this[s].toArray().map(A=>A.value)}reset(){this[c]&&this[s]&&this[s].length&&this[s].forEach(A=>this[c](A.key,A.value)),this[y]=new Map,this[s]=new C,this[E]=0}dump(){return this[s].map(A=>!t(this,A)&&{k:A.key,v:A.value,e:A.now+(A.maxAge||0)}).toArray().filter(A=>A)}dumpLru(){return this[s]}set(A,Q,B){if((B=B||this[D])&&"number"!=typeof B)throw TypeError("maxAge must be a number");let C=B?Date.now():0,w=this[g](Q,A);if(this[y].has(A)){if(w>this[I])return L(this,this[y].get(A)),!1;let g=this[y].get(A).value;return this[c]&&!this[M]&&this[c](A,g.value),g.now=C,g.maxAge=B,g.value=Q,this[E]+=w-g.length,g.length=w,this.get(A),U(this),!0}let n=new i(A,Q,w,C,B);return n.length>this[I]?(this[c]&&this[c](A,Q),!1):(this[E]+=n.length,this[s].unshift(n),this[y].set(A,this[s].head),U(this),!0)}has(A){return!!this[y].has(A)&&!t(this,this[y].get(A).value)}get(A){return K(this,A,!0)}peek(A){return K(this,A,!1)}pop(){let A=this[s].tail;return A?(L(this,A),A.value):null}del(A){L(this,this[y].get(A))}load(A){this.reset();let Q=Date.now();for(let B=A.length-1;B>=0;B--){let C=A[B],I=C.e||0;if(0===I)this.set(C.k,C.v);else{let A=I-Q;A>0&&this.set(C.k,C.v,A)}}}prune(){this[y].forEach((A,Q)=>K(this,Q,!1))}}let K=(A,Q,B)=>{let C=A[y].get(Q);if(C){let Q=C.value;if(t(A,Q)){if(L(A,C),!A[w])return}else B&&(A[n]&&(C.value.now=Date.now()),A[s].unshiftNode(C));return Q.value}},t=(A,Q)=>{if(!Q||!Q.maxAge&&!A[D])return!1;let B=Date.now()-Q.now;return Q.maxAge?B>Q.maxAge:A[D]&&B>A[D]},U=A=>{if(A[E]>A[I])for(let Q=A[s].tail;A[E]>A[I]&&null!==Q;){let B=Q.prev;L(A,Q),Q=B}},L=(A,Q)=>{if(Q){let B=Q.value;A[c]&&A[c](B.key,B.value),A[E]-=B.length,A[y].delete(B.key),A[s].removeNode(Q)}};class i{constructor(A,Q,B,C,I){this.key=A,this.value=Q,this.length=B,this.now=C,this.maxAge=I||0}}let G=(A,Q,B,C)=>{let I=B.value;t(A,I)&&(L(A,B),A[w]||(I=void 0)),I&&Q.call(C,I.value,I.key,A)};A.exports=k},53207:function(A,Q,B){var C=B(96570);C.prototype.formulaEval=function(){"use strict";for(var A,Q,B,C=[],I=this.value,E=0;E"+Q.value+""+I[E].show+""+A.value+"",type:10}):C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+""+A.value+"",type:1})):2===I[E].type||9===I[E].type?(A=C.pop(),Q=C.pop(),C.push({value:(1!=Q.type?"(":"")+Q.value+(1!=Q.type?")":"")+I[E].show+(1!=A.type?"(":"")+A.value+(1!=A.type?")":""),type:I[E].type})):12===I[E].type&&(A=C.pop(),Q=C.pop(),B=C.pop(),C.push({value:I[E].show+"("+B.value+","+Q.value+","+A.value+")",type:12}));return C[0].value},A.exports=C},66655:function(A,Q,B){"use strict";var C=B(72346);function I(A,Q){for(var B=0;Bh.length-2?h.length-1:A.length-D;B>0;B--)if(void 0!==h[B])for(I=0;I0&&aB)w.push(A);else{for(;B>=I&&!M||M&&I1)throw new C.Exception("Uncaught Syntax error");return E[0].value>1e15?"Infinity":parseFloat(E[0].value.toFixed(15))},C.eval=function(A,Q,B){return void 0===Q?this.lex(A).toPostfix().postfixEval():void 0!==B?this.lex(A,Q).toPostfix().postfixEval(B):void 0!==Q.length?this.lex(A,Q).toPostfix().postfixEval():this.lex(A).toPostfix().postfixEval(Q)},A.exports=C},93542:function(A,Q,B){"use strict";var C,I;A.exports=(null==(C=B.g.process)?void 0:C.env)&&"object"==typeof(null==(I=B.g.process)?void 0:I.env)?B.g.process:B(42351)},86570:function(A,Q,B){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return B(39173)}])},5834:function(A,Q,B){"use strict";B.d(Q,{u:function(){return w}});var C=B(52322),I=B(83448),E=B(68382),g=B(64245);function w(){let{openDialog:A}=(0,g.Rh)();return(0,C.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,C.jsx)(D,{title:E.z.walletAddNew.title,description:E.z.walletAddNew.description,onSelect:()=>A("walletAddNew")}),(0,C.jsx)(D,{title:E.z.walletAddRecover.title,description:E.z.walletAddRecover.description,onSelect:()=>A("walletAddRecover")}),(0,C.jsx)(D,{title:E.z.walletAddWatch.title,description:E.z.walletAddWatch.description,onSelect:()=>A("walletAddWatch")}),(0,C.jsx)(D,{title:E.z.walletAddLedger.title,description:E.z.walletAddLedger.description,onSelect:()=>A("walletAddLedger")})]})}function D(A){let{title:Q,description:B,disabled:E,onSelect:g}=A;return(0,C.jsx)(I.Wh3,{onClick:g,disabled:E,children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 text-start",children:[(0,C.jsx)(I.X6q,{size:"20",children:Q}),(0,C.jsx)(I.nvN,{size:"14",color:"subtle",children:B})]})})}},75061:function(A,Q,B){"use strict";B.d(Q,{g:function(){return w}});var C=B(52322),I=B(83448),E=B(57165),g=B(64245);function w(A){let{wallet:{id:Q,metadata:B,state:w,actions:D},...c}=A,{openDialog:M}=(0,g.Rh)();return(0,C.jsxs)(I.h_2,{...c,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),"seed"===B.type?"unlocked"===w.status?(0,C.jsxs)(I.Xiv,{"aria-label":"Wallet context menu",onClick:A=>A.stopPropagation(),onSelect:()=>D.lock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Lur,{})}),"Lock wallet"]}):(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>D.unlock(),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.VmF,{})}),"Unlock wallet"]}):null,(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("walletUpdate",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.dr6,{})}),"Edit wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("walletRemove",{walletId:Q}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.Jrl,{})}),"Delete wallet"]}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("walletsRescan"),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(E.vs4,{})}),"Rescan blockchain"]})]})}},4300:function(A,Q,B){"use strict";B.d(Q,{_:function(){return I},h:function(){return E}});var C=B(27050);let I={home:"/",wallet:{base:"/wallets/",view:"/wallets/[id]",addresses:"/wallets/[id]/addresses"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},E=C.cz},99634:function(A,Q,B){"use strict";B.d(Q,{h:function(){return C}});let C=(0,B(88464).XB)(15)},68382:function(A,Q,B){"use strict";B.d(Q,{_:function(){return w},z:function(){return g}});var C=B(52322),I=B(83448),E=B(57165);let g={walletAddNew:{title:"Create a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Generate a new wallet seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddRecover:{title:"Recover a wallet",description:(0,C.jsxs)(C.Fragment,{children:["Restore a wallet from seed. The seed will never be sent to"," ",(0,C.jsx)(I.EKh,{children:"walletd"}),", transactions are signed in the browser."]})},walletAddWatch:{title:"Add a watch-only wallet",description:(0,C.jsx)(C.Fragment,{children:"Create a watch-only wallet that tracks a set of addresses."})},walletAddLedger:{title:"Add a Ledger hardware wallet",description:(0,C.jsx)(C.Fragment,{children:"Add a Ledger hardware wallet. Transactions are signed with your hardware device."})}},w={seed:{title:"Seed-based wallet",icon:(0,C.jsx)(E.sZp,{})},watch:{title:"Watch-only wallet",icon:(0,C.jsx)(E.xVB,{})},ledger:{title:"Ledger hardware wallet",icon:(0,C.jsx)(E._Gh,{})}}},61708:function(A,Q,B){"use strict";B.d(Q,{p:function(){return g}});var C=B(83448),I=B(2784),E=B(64245);function g(A){let{walletId:Q,response:B,filters:g}=A,{openDialog:w}=(0,E.Rh)(),D=(0,I.useMemo)(()=>{if(B.data)return B.data.map(A=>{let{address:B,description:C,metadata:I,spendPolicy:E}=A;return{id:B,address:B,description:C,spendPolicy:E,metadata:I||{},walletId:Q,onClick:()=>w("addressUpdate",{walletId:Q,address:B}),raw:A}})},[B.data,w,Q]),c=(0,C.LNN)({datasetPage:D,isValidating:B.isValidating,error:B.error,filters:g}),M=(D||[]).reduce((A,Q)=>{let{metadata:B}=Q;return B.index>A?B.index:A},-1);return{dataset:D,datasetState:c,error:B.error,lastIndex:M,filters:g}}},18291:function(A,Q,B){"use strict";B.d(Q,{OZ:function(){return U},Jz:function(){return t}});var C=B(52322),I=B(83448),E=B(28135),g=B(2784),w=B(47706),D=B(57165),c=B(64245);function M(A){let{address:{walletId:Q,id:B,metadata:g},...w}=A,{openDialog:M}=(0,c.Rh)(),s=(0,E.XF)();return(0,C.jsxs)(I.h_2,{...w,children:[(0,C.jsx)(I.Juw,{children:"Actions"}),(0,C.jsxs)(I.Xiv,{onClick:A=>A.stopPropagation(),onSelect:()=>M("confirm",{title:void 0!==g.index?"Remove address ".concat(g.index):"Remove address",action:"Remove",variant:"red",body:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(I.nvN,{size:"14",children:"Are you sure you would like to remove the following address?"}),(0,C.jsxs)(I.nvN,{size:"14",font:"mono",children:[(0,I.I13)(B).slice(0,40),"..."]})]}),onConfirm:async()=>{let A=await s.delete({params:{id:Q,addr:B}});A.error?(0,I.OHV)({title:"Error deleting address",body:A.error}):(0,I.OPV)({title:void 0!==g.index?"Address ".concat(g.index," removed"):"Address removed"})}}),children:[(0,C.jsx)(I.KpP,{children:(0,C.jsx)(D.Jrl,{})}),"Remove address"]})]})}let s=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(M,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},address:Q})}},{id:"address",label:"address",category:"general",fixed:!0,render:A=>{let{data:{address:Q,description:B},context:E}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.XxW,{maxLength:40,value:Q,type:"address",siascanUrl:E.siascanUrl}),B&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:B})}),children:(0,C.jsx)(I.nvN,{size:"12",children:B.split("\n")[0]})})]})}},{id:"index",label:"index",category:"general",render:A=>{let{data:{metadata:Q}}=A;return void 0===Q.index?null:(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(I.xvT,{children:Q.index.toLocaleString()})})}}];var y=B(5632),n=B(66510),h=B(99634),k=B(61708);let K=(0,g.createContext)({}),t=()=>(0,g.useContext)(K);function U(A){let{children:Q}=A,B=function(){let A=(0,y.useRouter)().query.id,{limit:Q,offset:B}=(0,I.It_)(50),C=(0,E.bd)({disabled:!A,params:{id:A},config:{swr:{refreshInterval:h.h}}}),{filters:D,setFilter:c,removeFilter:M,removeLastFilter:K,resetFilters:t}=(0,I.Wdu)(),{dataset:U,datasetState:L,lastIndex:i}=(0,k.p)({walletId:A,response:C,filters:D}),{configurableColumns:G,visibleColumnIds:p,visibleColumns:r,sortableColumns:a,toggleColumnVisibility:o,setColumnsVisible:N,setColumnsHidden:e,toggleSort:J,setSortDirection:S,setSortField:F,sortField:l,sortDirection:Y,resetDefaultColumnVisibility:H}=(0,I.oy6)("walletd/v0/addresses",{columns:s,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),{datasetFiltered:f,datasetPage:d}=(0,I._4u)({dataset:U,filters:D,sortField:l,sortDirection:Y,offset:B,limit:Q}),u=(0,n.B)(),R=(0,g.useMemo)(()=>({siascanUrl:u}),[u]);return{datasetState:L,error:C.error,datasetTotal:(null==U?void 0:U.length)||0,datasetFilteredTotal:(null==f?void 0:f.length)||0,datasetPageTotal:(null==d?void 0:d.length)||0,visibleColumns:r,dataset:U,datasetPage:d,offset:B,limit:Q,cellContext:R,lastIndex:i,configurableColumns:G,visibleColumnIds:p,sortableColumns:a,toggleColumnVisibility:o,setColumnsVisible:N,setColumnsHidden:e,toggleSort:J,setSortDirection:S,setSortField:F,sortField:l,filters:D,setFilter:c,removeFilter:M,removeLastFilter:K,resetFilters:t,sortDirection:Y,resetDefaultColumnVisibility:H}}();return(0,C.jsx)(K.Provider,{value:B,children:Q})}},47706:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","address","index"],I="index",E=[{id:"address",label:"address",category:"general"},{id:"index",label:"index",category:"general"}]},64245:function(A,Q,B){"use strict";B.d(Q,{Tu:function(){return AT},xQ:function(){return AP},Rh:function(){return AZ}});var C=B(52322),I=B(2784),E=B(83448),g=B(28135),w=B(5834);function D(A){let{open:Q,trigger:B,onOpenChange:I}=A;return(0,C.jsx)(E.VqE,{title:"Add Wallet",trigger:B,open:Q,onOpenChange:I,contentVariants:{className:"max-w-[600px]"},children:(0,C.jsx)(w.u,{})})}var c=B(57165),M=B(63955),s=B(54525),y=B(68382),n=B(81395);function h(A){let{copySeed:Q,children:B,icon:I,description:g}=A;return(0,C.jsxs)("div",{className:"",children:[B,(0,C.jsx)(E.s_4,{className:"mt-2",children:(0,C.jsxs)("div",{className:"flex gap-6 items-center py-4 px-4",children:[(0,C.jsx)("div",{className:"flex",children:I}),(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:g}),Q&&(0,C.jsx)(E.zxk,{onClick:Q,children:"Copy Seed to Clipboard"})]})]})})]})}var k=B(36331);let K={name:"",description:"",mnemonic:"",hasCopied:!1};function t(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),t=(0,g.lT)(),U=(0,M.cI)({mode:"all",defaultValues:K}),L=U.watch("mnemonic"),i=(0,I.useCallback)(()=>{(0,E.vQq)(L,"seed"),U.setValue("hasCopied",!0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),U.clearErrors(["mnemonic"])},[L,U]),G=(0,I.useCallback)(async()=>{let{phrase:A}=(0,k.K)().wallet.generateSeedPhrase();U.setValue("hasCopied",!1),U.setValue("mnemonic",A),U.clearErrors(["hasCopied","mnemonic"])},[U]);(0,I.useEffect)(()=>{B&&G()},[B]);let{dataset:p}=(0,s.r)(),r=function(A){let{walletNames:Q,copySeed:B}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",onClick:A=>{A.currentTarget.select(),B()},readOnly:!0,placeholder:"",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,k.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},copied:(A,Q)=>Q.hasCopied||"Copy seed to continue"}}},hasCopied:{type:"boolean",title:"",validation:{}}}}({walletNames:(null==p?void 0:p.map(A=>A.name))||[],copySeed:i}),a=(0,I.useCallback)(async A=>{let Q=A.mnemonic.trim(),B=(0,n.blake2bHex)(Q),C=await t.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:B}}});C.error?(0,E.OHV)({title:"Error creating wallet",body:C.error}):(D("walletAddressesGenerate",{walletId:C.data.id}),U.reset(K))},[U,D,t]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddNew.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:U.handleSubmit(a),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:U,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddNew.description}),(0,C.jsx)(E.yEL,{name:"name",form:U,fields:r}),(0,C.jsx)(E.Bau,{name:"description",form:U,fields:r}),(0,C.jsx)(h,{icon:(0,C.jsx)(c.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"This is the wallet's seed mnemonic. Make sure to save it somewhere secure."}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(E.Bau,{form:U,fields:r,name:"mnemonic"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:G,children:[(0,C.jsx)(c.nt4,{}),"Regenerate"]}),(0,C.jsxs)(E.zxk,{className:"flex-1",onClick:i,children:[(0,C.jsx)(c.olJ,{}),"Copy to clipboard"]})]})]})})]})})}var U=B(6391),L=B.n(U);function i(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:I}=A;return{type:B,title:"Seed",actions:(0,C.jsx)("div",{className:"flex gap-1",children:(0,C.jsx)(E.zxk,{tip:"password"===B?"Show seed":"Hide seed",tabIndex:-1,variant:"ghost",icon:"hover",onClick:()=>I("password"===B?"text":"password"),children:"password"===B?(0,C.jsx)(c.pHg,{}):(0,C.jsx)(c.xVB,{})})}),placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,k.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"},match:A=>(0,n.blake2bHex)(A)===Q||"seed phrase does not match"}}}}var G=B(40361);function p(A){let{walletId:Q,name:B,form:I,fields:g,actionText:w}=A,{dataset:D,walletAutoLockEnabled:M,walletAutoLockTimeout:y}=(0,s.r)(),n=null==D?void 0:D.find(A=>A.id===Q),k=null==n?void 0:n.state.mnemonic,K=(0,G.l)(y),t=w?" and ".concat(w):"";return k?(0,C.jsx)(h,{icon:(0,C.jsx)(c.R$y,{}),description:M?(0,C.jsxs)(C.Fragment,{children:["The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ",K.amount," ",K.units,", manually locked, or the app is closed."]}):(0,C.jsx)(C.Fragment,{children:"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed."})}):(0,C.jsx)(h,{icon:(0,C.jsx)(c.R$y,{}),description:M?(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet",t,". The wallet will stay unlocked until it is inactive for"," ",K.amount," ",K.units,", manually locked, or the app is closed."]}):(0,C.jsxs)(C.Fragment,{children:["Enter your seed mnemonic to unlock the wallet and",t,". The wallet will stay unlocked until it is manually locked or the app is closed."]}),children:(0,C.jsx)(E.yEL,{form:I,fields:g,name:B})})}var r=B(99634),a=B(61708);let o=[];function N(A){let{id:Q}=A,B=(0,g.bd)({disabled:!Q,params:{id:Q},config:{swr:{refreshInterval:r.h}}}),{dataset:C,datasetState:I,lastIndex:E}=(0,a.p)({walletId:Q,response:B,filters:o});return{datasetState:I,error:B.error,datasetTotal:(null==C?void 0:C.length)||0,dataset:C,lastIndex:E}}function e(A){let{label:Q,description:B}=A;return(0,C.jsx)(E.bZj,{className:"!p-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(c.qdM,{})}),(0,C.jsx)(E.xvT,{weight:"medium",children:Q})]}),(0,C.jsx)(E.xvT,{size:"14",color:"subtle",children:B})]})})}function J(){return{shouldRescan:{type:"boolean",title:"Enable",validation:{}},rescanStartHeight:{type:"number",decimalsLimit:0,title:"Start height",validation:{}}}}function S(){let{rescanStartHeight:A}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{shouldRescan:!1,rescanStartHeight:new(L())(A||0)}}function F(A){let{form:Q,fields:B}=A,I=Q.watch("shouldRescan");return(0,C.jsxs)("div",{className:"flex flex-col gap-1 pt-4",children:[(0,C.jsx)(E.Z0O,{className:"w-full my-2"}),(0,C.jsx)(E.__J,{color:"contrast",className:"pb-2",size:"16",children:"Advanced"}),(0,C.jsx)("div",{className:"flex flex-col gap-2",children:(0,C.jsx)(E.__J,{color:"contrast",children:"Rescan"})}),(0,C.jsxs)("div",{className:"flex justify-start gap-3",children:[(0,C.jsx)(E.QBj,{form:Q,fields:B,name:"shouldRescan"}),I&&(0,C.jsx)(E.jIp,{form:Q,fields:B,name:"rescanStartHeight"})]}),I&&(0,C.jsx)(E.xvT,{size:"14",color:"subtle",children:"Rescan the blockchain from the specified start height to find any missing transaction activity across all wallets."}),I&&(0,C.jsxs)("div",{className:"pt-2 flex flex-col gap-2",children:[(0,C.jsx)(l,{}),(0,C.jsx)(Y,{})]})]})}function l(){return(0,C.jsx)(e,{label:"Warning",description:(0,C.jsx)(C.Fragment,{children:"Only rescan the blockchain if you have added addresses with past transactions activity. Rescanning the blockchain is a very expensive operation and can take a long time."})})}function Y(){return(0,C.jsx)(e,{label:"Warning",description:(0,C.jsx)(C.Fragment,{children:"For start height, select the highest block height possible, but one that you are sure is before the first transaction activity for the addresses you have added."})})}function H(){let A=(0,g.Ap)();return async Q=>{if(Q.shouldRescan){let B=await A.post({payload:Q.rescanStartHeight?Q.rescanStartHeight.toNumber():0});B.error?(0,E.OHV)({title:"Error rescanning the blockchain",body:B.error}):(0,E.OPV)({title:"Rescanning the blockchain",body:"The blockchain is being rescanned for relevant wallet events."})}}}var f=B(16211),d=B(88464);function u(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c}=Q||{},{lastIndex:y}=N({id:c}),{dataset:n,cacheWalletMnemonic:h}=(0,s.r)(),K=null==n?void 0:n.find(A=>A.id===c),t=y+1,U=function(A){let{nextIndex:Q,currentHeight:B}=A;return{mnemonic:"",index:new(L())(Q),count:new(L())(1),...S({rescanStartHeight:B})}}({nextIndex:t,currentHeight:(0,f.n)().nodeBlockHeight}),[G,r]=(0,I.useState)("password"),a=(0,M.cI)({mode:"all",defaultValues:U});(0,I.useEffect)(()=>{a.formState.isSubmitting||a.setValue("index",new(L())(t))},[t]);let{handleOpenChange:o,closeAndReset:e}=(0,E.t0Y)({form:a,onOpenChange:D,defaultValues:U}),l=a.watch("mnemonic"),Y=a.watch("index"),u=a.watch("count"),R=a.watch("shouldRescan"),j=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B}),index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"10",validation:{required:"required",max:1e3}},...J()}}({mnemonicHash:null==K?void 0:K.metadata.mnemonicHash,mnemonicFieldType:G,setMnemonicFieldType:r}),b=(0,g.yi)(),m=(0,I.useCallback)(async(A,Q,B)=>{function C(A,Q,B){(0,E.OHV)({title:"Error generating addresses",body:Q>0?"".concat(Q+1,"/").concat(A," addresses were generated and saved. Batch failed on with: ").concat(B):B})}for(let I=Q;I{await m(K.state.mnemonic||l,Y.toNumber(),u.toNumber()),Z(A)},[m,l,Y,u,K,Z]);return(0,C.jsxs)(E.VqE,{title:"Wallet ".concat(null==K?void 0:K.name,": generate addresses"),trigger:B,open:w,onOpenChange:o,contentVariants:{className:"w-[500px]"},onSubmit:a.handleSubmit(T),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(E.ZqQ,{form:a,size:"medium",variant:R?"red":"accent",children:["Generate addresses",R?" and rescan":""]})}),children:[(0,C.jsx)(p,{walletId:c,name:"mnemonic",form:a,fields:j,actionText:"generate addresses"}),(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:a,fields:j,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:a,fields:j,name:"count"})})]}),(0,C.jsx)(F,{form:a,fields:j})]})}var R=B(5632),j=B(4300);let b={name:""};function m(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,c=(0,R.useRouter)(),{walletId:y}=Q||{},{closeDialog:n}=AZ(),{dataset:h}=(0,s.r)(),k=null==h?void 0:h.find(A=>A.id===y),K=(0,g.OZ)(),t=(0,M.cI)({mode:"all",defaultValues:b}),U=(0,I.useCallback)(async()=>{let A=await K.delete({params:{id:y}});A.error?(0,E.OHV)({title:"Error removing wallet",body:A.error}):((0,E.OPV)({title:"Wallet permanently removed"}),t.reset(),n(),c.push(j._.home))},[t,y,K,n,c]),L=(0,I.useMemo)(()=>{var A;return{name:{type:"text",title:"Name",placeholder:A=null==k?void 0:k.name,validation:{required:"required",validate:{equals:Q=>Q===A||"name does not match"}}}}},[k]),i=(0,E.WsO)(L);return(0,C.jsx)(E.VqE,{title:"Remove wallet",trigger:B,open:w,onOpenChange:A=>{A||t.reset(b),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:t.handleSubmit(U,i),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the wallet"," ",(0,C.jsx)(E.EKh,{children:null==k?void 0:k.name}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the wallet name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"name",form:t,fields:L}),(0,C.jsx)(E.ZqQ,{variant:"red",form:t,children:"Remove"})]})})}function Z(A){let{trigger:Q,open:B,onOpenChange:w,params:D}=A,{walletId:c,address:s}=D||{},{openDialog:y}=AZ(),{dataset:n,datasetState:h}=N({id:c}),k=null==n?void 0:n.find(A=>A.id===s),K=(0,g.yi)(),t=function(A){let{description:Q}=A;return{description:Q||""}}({description:null==k?void 0:k.description}),U=(0,M.cI)({mode:"all",defaultValues:t}),{handleOpenChange:L,closeAndReset:i}=(0,E.t0Y)({form:U,onOpenChange:w,defaultValues:t,initKey:[D,"loaded"===h]}),G=(0,I.useCallback)(async A=>{let Q=await K.put({params:{id:c},payload:{...k.raw,address:s,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating address",body:Q.error}):i()},[c,s,K,k,i]);return(0,C.jsx)(E.VqE,{title:(0,E.$Gg)(s,20),trigger:Q,open:B,onOpenChange:L,contentVariants:{className:"w-[400px]"},onSubmit:U.handleSubmit(G),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{onClick:()=>y("addressRemove",{walletId:c,address:s}),children:"Remove address"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"small",form:U,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.hKn,{address:(null==k?void 0:k.address)||""}),(0,C.jsx)(E.Bau,{name:"description",form:U,fields:{description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}})]})})}let T={name:"",description:""};function P(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c}=Q||{},{dataset:y}=(0,s.r)(),n=null==y?void 0:y.find(A=>A.id===c),h=(0,g.SK)(),k=n?{name:n.name,description:n.description}:T,K=(0,M.cI)({mode:"all",defaultValues:k}),{handleOpenChange:t,closeAndReset:U}=(0,E.t0Y)({form:K,onOpenChange:D,defaultValues:k}),L=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(0,I.useMemo)(()=>(null==y?void 0:y.reduce((A,Q)=>Q.name!==(null==n?void 0:n.name)?A.concat(Q.name):A,[]))||[],[y,n])}),i=(0,I.useCallback)(async A=>{let Q=await h.post({params:{id:c},payload:{...n.raw,name:A.name,description:A.description}});Q.error?(0,E.OHV)({title:"Error updating wallet",body:Q.error}):U()},[c,h,n,U]);return(0,C.jsx)(E.VqE,{title:"".concat(null==n?void 0:n.name),trigger:B,open:w,onOpenChange:t,contentVariants:{className:"w-[400px]"},onSubmit:K.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:K,children:"Save changes"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.__J,{children:"Type"}),(0,C.jsx)("div",{children:(0,C.jsx)(E.Cts,{children:null==n?void 0:n.metadata.type})})]}),(0,C.jsx)(E.yEL,{name:"name",form:K,fields:L}),(0,C.jsx)(E.Bau,{name:"description",form:K,fields:L})]})})}var O=B(79381),W=B(71508),z=B(65597),x=B(27748);async function V(){return(await Promise.all([z.Z.isSupported().then(async A=>{let Q=await v();return A&&!Q?"Bluetooth":null}),x.Z.isSupported().then(A=>A?"HID":null)])).filter(A=>A)}async function v(){return navigator.brave&&await navigator.brave.isBrave()}function X(A){let{title:Q,details:B,actions:I,shouldVerify:g}=A,{device:w,disconnect:D}=(0,W.c)();return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[g?(0,C.jsxs)(C.Fragment,{children:[!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),!!(null==w?void 0:w.publicKey0)&&(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]})]}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}),(null==w?void 0:w.type)==="Bluetooth"&&(0,C.jsx)(E.ua7,{content:"Bluetooth",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(c.Ya6,{})})}),(null==w?void 0:w.type)==="USB"&&(0,C.jsx)(E.ua7,{content:"USB",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(c.Fhn,{size:16})})}),(null==w?void 0:w.type)==="HID"&&(0,C.jsx)(E.ua7,{content:"HID",children:(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",children:(0,C.jsx)(c.Pj_,{size:16})})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[I,!!w&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(c.PcV,{})})]})]}),B]})})}let q={transportType:""};function _(A){var Q;let{shouldVerify:B}=A,{device:g,connect:w,verify:D,setError:s,waitingForUser:y}=(0,W.c)(),n=(0,M.cI)({mode:"all",defaultValues:q}),h=n.watch("transportType"),k=!!(null==g?void 0:g.publicKey0),K=(0,O.ZP)("deviceConnect/supportedTransports",()=>V(),{revalidateOnFocus:!1});(0,I.useEffect)(()=>{K.data&&(n.setValue("transportType",K.data[0]),0===K.data.length&&s(Error("This browser does not support connecting to Ledger devices, please use a different browser.")))},[K.data]);let t=function(A){let{supportedTransports:Q}=A;return{transportType:{type:"select",title:"Transport",placeholder:"Select a transport",options:Q.map(A=>({value:A,label:A})),validation:{required:!0}}}}({supportedTransports:K.data||[]}),U=(0,I.useCallback)(async()=>{h&&w(h)},[w,h]),L=(0,I.useCallback)(async()=>{h&&await D()},[D,h]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:g?B?k?(0,C.jsx)(X,{shouldVerify:B,title:g.transport.deviceModel.productName,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:g.publicKey0,label:"public key 0",color:"subtle",maxLength:30})})}):(0,C.jsx)(X,{shouldVerify:B,title:g.transport.deviceModel.productName,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(E.zxk,{variant:"accent",onClick:L,children:[(0,C.jsx)(c.j7C,{}),"Verify"]})}),details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve public key verification on device."})]}):(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",children:"Unlock device, open the Sia app, and make sure Ledger Live is closed. Then start wallet verification to continue."})})}):(0,C.jsx)(X,{shouldVerify:B,title:g.transport.deviceModel.productName}):(0,C.jsx)(X,{shouldVerify:B,title:"Connect Ledger...",actions:(null===(Q=K.data)||void 0===Q?void 0:Q.length)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.WyV,{name:"transportType",form:n,fields:t,group:!1}),(0,C.jsx)(E.zxk,{size:"small",onClick:U,children:"Connect"})]}):null,details:y?(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm in browser and on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})]}):(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect your Ledger device. Make sure you unlock your Ledger and open the Sia App before trying to connect."})})})}let $={name:"",description:"",ledgerConnectedAndVerified:!1};function AA(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),c=(0,g.lT)(),n=(0,M.cI)({mode:"all",defaultValues:$}),{device:h,disconnect:K,error:t}=(0,W.c)();(0,I.useEffect)(()=>{B&&K()},[B]),(0,I.useEffect)(()=>{h&&h.publicKey0?n.setValue("ledgerConnectedAndVerified",!0):n.setValue("ledgerConnectedAndVerified",!1)},[n,h]),(0,I.useEffect)(()=>{t?n.setError("ledgerConnectedAndVerified",{message:t.message}):n.clearErrors("ledgerConnectedAndVerified")},[n,t]);let{dataset:U}=(0,s.r)(),L=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},ledgerConnectedAndVerified:{type:"boolean",title:"",validation:{validate:{ledgerConnectedAndVerified:A=>A||"Ledger must be connected, unlocked, and verified"}}}}}({walletNames:(null==U?void 0:U.map(A=>A.name))||[]}),i=(0,g.yi)(),G=(0,I.useCallback)(async(A,Q)=>{let{unlockConditions:B,address:C}=Q;if((await i.put({params:{id:A},payload:{address:C,description:"",metadata:{index:0,unlockConditions:B}}})).error){(0,E.OHV)({title:"Error saving address"});return}},[i]),p=(0,I.useCallback)(async A=>{if(!A.ledgerConnectedAndVerified||!h.publicKey0||!h.address0)return;let Q={type:"ledger",publicKey0:h.publicKey0,address0:h.address0},B=await c.post({payload:{name:A.name,description:A.description,metadata:Q}});if(B.error)(0,E.OHV)({title:"Error saving wallet",body:B.error});else{let A=(0,k.K)().wallet.standardUnlockConditions(h.publicKey0);A.error||G(B.data.id,{unlockConditions:A.unlockConditions,address:h.address0}),D("walletLedgerAddressGenerate",{walletId:B.data.id,walletJustCreated:!0}),n.reset($)}},[n,D,c,h,G]);return n.register("ledgerConnectedAndVerified",L.ledgerConnectedAndVerified.validation),(0,C.jsx)(E.VqE,{title:y.z.walletAddLedger.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:n.handleSubmit(p),controls:(0,C.jsxs)("div",{className:"flex gap-2 pb-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:n,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddLedger.description}),(0,C.jsx)(E.yEL,{name:"name",form:n,fields:L}),(0,C.jsx)(E.Bau,{name:"description",form:n,fields:L}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnectedAndVerified"}),(0,C.jsx)(E.cp7,{name:"ledgerConnectedAndVerified",form:n}),(0,C.jsx)(_,{shouldVerify:!0})]})]})})}let AQ={name:"",description:"",mnemonic:""};function AB(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),K=(0,M.cI)({mode:"all",defaultValues:AQ}),{dataset:t}=(0,s.r)(),U=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}},mnemonic:{type:"text",title:"Seed",placeholder:"island submit vague scrub exhibit cherry front spoon crop debate filter virus",validation:{required:"required",validate:{valid:A=>{let{error:Q}=(0,k.K)().wallet.keyPairFromSeedPhrase(A,0);return!Q||"seed should be 12 word BIP39 mnemonic"}}}}}}({walletNames:(null==t?void 0:t.map(A=>A.name))||[]}),L=(0,g.lT)(),i=(0,I.useCallback)(async A=>{let Q=A.mnemonic.trim(),B=(0,n.blake2bHex)(Q),C=await L.post({payload:{name:A.name,description:A.description,metadata:{type:"seed",mnemonicHash:B}}});C.error?(0,E.OHV)({title:"Error adding wallet",body:C.error}):(D("walletAddressesGenerate",{walletId:C.data.id}),K.reset(AQ))},[K,D,L]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddRecover.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:K.handleSubmit(i),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:K,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddRecover.description}),(0,C.jsx)(E.yEL,{name:"name",form:K,fields:U}),(0,C.jsx)(E.Bau,{name:"description",form:K,fields:U}),(0,C.jsx)(h,{icon:(0,C.jsx)(c.fwm,{}),description:(0,C.jsx)(C.Fragment,{children:"Enter the seed mnemonic for the wallet you are recovering."}),children:(0,C.jsx)(E.Bau,{form:K,fields:U,name:"mnemonic"})})]})})}let AC={name:"",description:""};function AI(A){let{trigger:Q,open:B,onOpenChange:w}=A,{openDialog:D}=AZ(),c=(0,g.lT)(),n=(0,M.cI)({mode:"all",defaultValues:AC}),{dataset:h}=(0,s.r)(),k=function(A){let{walletNames:Q}=A;return{name:{type:"text",title:"Name",placeholder:"name",validation:{validate:{unique:A=>!Q.includes(A)||"name is already in use"},required:"required",maxLength:30}},description:{type:"text",title:"Description",placeholder:"Optional description or notes about the wallet.",validation:{maxLength:200}}}}({walletNames:(null==h?void 0:h.map(A=>A.name))||[]}),K=(0,I.useCallback)(async A=>{let Q=await c.post({payload:{name:A.name,description:A.description,metadata:{type:"watch"}}});Q.error?(0,E.OHV)({title:"Error adding wallet",body:Q.error}):(D("walletAddressesAdd",{walletId:Q.data.id}),n.reset(AC))},[n,D,c]);return(0,C.jsx)(E.VqE,{title:y.z.walletAddWatch.title,trigger:Q,open:B,onOpenChange:w,contentVariants:{className:"w-[400px]"},onSubmit:n.handleSubmit(K),controls:(0,C.jsxs)("div",{className:"flex gap-2 px-1",children:[(0,C.jsx)(E.zxk,{size:"medium",onClick:()=>{D("walletAddType")},children:"back"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsx)(E.ZqQ,{size:"medium",form:n,children:"Add wallet"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4 mb-2",children:[(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:y.z.walletAddWatch.description}),(0,C.jsx)(E.yEL,{name:"name",form:n,fields:k}),(0,C.jsx)(E.Bau,{name:"description",form:n,fields:k})]})})}var AE=B(49058);let Ag={addresses:"",...S()};function Aw(A){return(0,AE.Z)(A.trim().split(/[^0-9a-fA-F]+/).map(A=>A).filter(A=>!!A))}function AD(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c}=Q||{},{dataset:y}=(0,s.r)(),n=null==y?void 0:y.find(A=>A.id===c),h=(0,M.cI)({mode:"all",defaultValues:Ag}),{handleOpenChange:k,closeAndReset:K}=(0,E.t0Y)({form:h,onOpenChange:D,defaultValues:Ag}),t={addresses:{type:"text",title:"Addresses",placeholder:"91acbc0feb9e20d538db1f8a509d508362d1b1f3d725d9b6639306531d770c1ef9eb637b4903\nb58849e347356878bb0098908191550ff3e46cc35ed166d0c571fe184d2f17b835747991c266\nb811a04859809fe081884c10d50ca069f1429112ba4a8dc9181c95de41f7eca01416923daa6d\n03442c5643c1deb15c60104ca6ad80fa9563c67c8334f0bbe968b01cb9b8f81c8103a7a202c0\n",validation:{required:"required",validate:{valid:A=>{let Q=Aw(A||"");for(let A=0;A{let Q=Aw(A),B=Q.length,C=0;for(let A=0;A{let Q=await L(A.addresses);if(Q.error){1===Q.total?(0,E.OHV)({title:"Error saving address",body:Q.error}):(0,E.OHV)({title:"Error saving addresses",body:Q.successful>0?"".concat(Q.successful," of ").concat(Q.total," addresses were saved."):""});return}(0,E.OPV)({title:"Added ".concat((0,d._6)(1,"address","addresses"))}),i(A),K()},[L,K,i]),p=h.watch("addresses"),r=h.watch("shouldRescan"),a=Aw(p).length;return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==n?void 0:n.name,": add addresses"),trigger:B,open:w,onOpenChange:k,contentVariants:{className:"w-[500px]"},onSubmit:h.handleSubmit(G),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(E.ZqQ,{form:h,variant:r?"red":"accent",size:"medium",children:["Add ",(0,d._6)(a,"address","addresses"),r?" and rescan":""]})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Enter multiple addresses separated by spaces or commas."}),(0,C.jsx)(E.Bau,{form:h,fields:t,name:"addresses"}),(0,C.jsx)(F,{form:h,fields:t})]})})}let Ac={address:""};function AM(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c,address:s}=Q||{},{closeDialog:y}=AZ(),n=(0,g.XF)(),h=(0,M.cI)({defaultValues:Ac}),k=(0,I.useCallback)(async()=>{let A=await n.delete({params:{id:c,addr:s}});A.error?(0,E.OHV)({title:"Error removing address",body:A.error}):((0,E.OPV)({title:"Address permanently removed"}),h.reset(),y())},[h,c,s,n,y]),K=(0,I.useMemo)(()=>({address:{type:"text",title:"Address",placeholder:s,validation:{required:"required",validate:{equals:A=>(0,E.I13)(A)===(0,E.I13)(s)||"address does not match"}}}}),[s]),t=(0,E.WsO)(K);return(0,C.jsx)(E.VqE,{title:"Remove address",trigger:B,open:w,onOpenChange:A=>{A||h.reset(Ac),D(A)},contentVariants:{className:"w-[400px]"},onSubmit:h.handleSubmit(k,t),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.nvN,{size:"14",children:["Are you sure you would like to permanently remove the address"," ",(0,C.jsxs)(E.EKh,{children:[(0,E.I13)(s).slice(0,12),"..."]}),"?"]}),(0,C.jsx)(E.nvN,{size:"14",children:"Enter the address name to confirm the removal."}),(0,C.jsx)(E.yEL,{name:"address",form:h,fields:K}),(0,C.jsx)(E.ZqQ,{variant:"red",form:h,children:"Remove"})]})})}let As="e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",Ay=(0,d.qN)(.00393),An={receiveAddress:"",changeAddress:"",claimAddress:"",customChangeAddress:!1,customClaimAddress:!1,mode:"siacoin",siacoin:void 0,siafund:void 0,includeFee:!1};function Ah(A){let{balanceSc:Q,balanceSf:B,onComplete:g,defaultChangeAddress:w,defaultClaimAddress:D}=A,s=(0,M.cI)({mode:"all",defaultValues:An}),y=function(A){let{balanceSc:Q,balanceSf:B,fee:I}=A;return{receiveAddress:{type:"text",title:"Recipient address",placeholder:As,validation:{validate:{required:A=>!!A||"required",valid:A=>(0,d.At)(A)||"invalid address"}}},mode:{type:"select",title:"Action",options:[{value:"siacoin",label:"Send siacoins"},{value:"siafund",label:"Send siafunds"}],validation:{required:"required"}},siacoin:{type:"siacoin",title:"Siacoin",placeholder:"100",validation:{validate:{required:(A,Q)=>"siacoin"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siacoin"!==Q.mode||!new(L())(A||0).isZero()||"must be greater than zero",balance:(A,B)=>"siacoin"!==B.mode||Q.gte((0,d.qN)(A||0).plus(I))||"not enough funds in wallet"}}},siafund:{type:"number",title:"Siafunds",decimalsLimit:0,placeholder:"100",validation:{validate:{required:(A,Q)=>"siafund"!==Q.mode||!!A||"required",gtz:(A,Q)=>"siafund"!==Q.mode||(null==A?void 0:A.gt(0))||"must be greater than zero",balance:(A,C)=>"siafund"!==C.mode||(null==Q?void 0:Q.gte(I))&&(null==B?void 0:B.gte(A))||"not enough funds in wallet"}}},customChangeAddress:{type:"boolean",title:"Custom change adress",validation:{}},customClaimAddress:{type:"boolean",title:"Custom claim adress",validation:{}},changeAddress:{type:"text",title:"Change address",placeholder:As,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address where any change from the transaction will be sent. If a custom change address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>!Q.customChangeAddress||!!A||"required",valid:(A,Q)=>!Q.customChangeAddress||(0,d.At)(A)||"invalid address"}}},claimAddress:{type:"text",title:"Claim address",placeholder:As,actions:(0,C.jsx)(E.ua7,{content:(0,C.jsx)(C.Fragment,{children:"The address that will receive any unclaimed siacoin earnings from the siafund. If a custom claim address is not specified it is automatically set to the wallet's address 0."}),children:(0,C.jsx)(E.xvT,{color:"subtle",className:"cursor-pointer",children:(0,C.jsx)(c.RdX,{className:"scale-75"})})}),validation:{validate:{required:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||!!A||"required"},valid:(A,Q)=>{let B="siafund"!==Q.mode,C=!Q.customChangeAddress;return B||C||(0,d.At)(A)||"invalid address"}}}},includeFee:{type:"boolean",title:"",validation:{}}}}({balanceSc:Q,balanceSf:B,fee:Ay}),n=(0,I.useCallback)(async A=>{let Q=new(L())(A.siacoin||0),B=new(L())(A.siafund||0),C=A.includeFee?(0,d.qN)(Q).minus(Ay):(0,d.qN)(Q),I=B.toNumber();g({receiveAddress:A.receiveAddress,changeAddress:A.customChangeAddress?A.changeAddress:w,claimAddress:A.customClaimAddress?A.claimAddress:D,fee:Ay,mode:A.mode,siacoin:C,siafund:I})},[g,w,D]),h=(0,I.useMemo)(()=>s.handleSubmit(n),[s,n]),k=s.watch("siacoin"),K=s.watch("mode"),t=s.watch("customChangeAddress"),U=s.watch("customClaimAddress"),i=s.watch("includeFee"),G=(0,d.qN)(k||0),p=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[B.gt(0)&&(0,C.jsx)(E.WyV,{size:"medium",form:s,fields:y,name:"mode"}),(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"receiveAddress",autoComplete:"off"}),(0,C.jsxs)("div",{className:"flex gap-2",children:[(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customChangeAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom change address"}),y.changeAddress.actions]})}),"siafund"===K&&(0,C.jsx)(E.QBj,{size:"small",form:s,fields:y,name:"customClaimAddress",group:!1,children:(0,C.jsxs)("div",{className:"flex items-center gap-px",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",weight:"medium",size:"14",ellipsis:!0,children:"custom claim address"}),y.claimAddress.actions]})})]}),t&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"changeAddress",autoComplete:"off"}),"siafund"===K&&U&&(0,C.jsx)(E.yEL,{size:"medium",form:s,fields:y,name:"claimAddress",autoComplete:"off"}),"siacoin"===K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(E.qGu,{size:"medium",form:s,fields:y,name:"siacoin"}),(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsxs)(E.QBj,{size:"small",form:s,fields:y,name:"includeFee",children:[(0,C.jsx)(E.xvT,{children:"Include fee"}),(0,C.jsx)(E.Yqd,{children:"Include or exclude the network fee from the above transaction value."})]}),(0,C.jsx)("div",{className:"flex flex-1"})]})]}):(0,C.jsx)(E.jIp,{size:"medium",form:s,fields:y,name:"siafund"}),(0,C.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:Ay,variant:"value",dynamicUnits:!1})})]}),"siacoin"===K&&(0,C.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:i?G:G.plus(Ay),variant:"value",dynamicUnits:!1})})]})]})]});return{form:s,el:p,handleSubmit:h,reset:()=>s.reset(An)}}function Ak(A){let{params:{receiveAddress:Q,changeAddress:B,claimAddress:I,mode:g,siacoin:w,siafund:D,fee:c},transactionId:M}=A,s=w.plus(c);return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Recipient address"}),(0,C.jsx)(E.XxW,{value:Q,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Change address"}),(0,C.jsx)(E.XxW,{value:B,type:"address"})]}),"siafund"===g&&(0,C.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Claim address"}),(0,C.jsx)(E.XxW,{value:I,type:"address"})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:"siacoin"===g?(0,C.jsx)(E.YKL,{size:"14",value:w,variant:"value",dynamicUnits:!1}):(0,C.jsx)(E.Sby,{size:"14",value:D,variant:"value"})})]}),(0,C.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:c,variant:"value",dynamicUnits:!1})})]}),"siacoin"===g&&(0,C.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,C.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,C.jsx)(E.YKL,{size:"14",value:s,variant:"value",dynamicUnits:!1})})]}),M&&(0,C.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,C.jsx)(E.xvT,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,C.jsx)(E.XxW,{value:M,type:"transaction"})]})]})}function AK(A){let{transaction:Q,toSign:B,addresses:C,siacoinOutputs:I,siafundOutputs:g}=A;if(!C)return{error:"No addresses"};if(!I)return{error:"No outputs"};for(let A of B){let B=(0,E.I13)(A),{address:w,siacoinUtxo:D,siafundUtxo:c,siacoinInput:M,siafundInput:s,error:y}=At({toSignId:B,addresses:C,siacoinOutputs:I,siafundOutputs:g,transaction:Q});if(y)return{error:y};D&&(M.unlockConditions=w.metadata.unlockConditions),c&&(s.unlockConditions=w.metadata.unlockConditions),Q.signatures||(Q.signatures=[]),Q.signatures.push({parentID:B,publicKeyIndex:0,timelock:0,coveredFields:{wholeTransaction:!0}})}return{}}function At(A){var Q,B;let{toSignId:C,transaction:I,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A,c=(0,E.I13)(C),M=function(A){let{id:Q,addresses:B,siacoinOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siacoinOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:c,addresses:g,siacoinOutputs:w});if(!M.error){let A=null===(Q=I.siacoinInputs)||void 0===Q?void 0:Q.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(M.utxo.id));return A?{address:M.address,siacoinUtxo:M.utxo,siacoinInput:A}:{error:"Missing input"}}let s=function(A){let{id:Q,addresses:B,siafundOutputs:C}=A,I=(0,E.I13)(Q),g=null==C?void 0:C.find(A=>(0,E.I13)(A.id)===I);if(!g)return{error:"Missing utxo"};let w=null==B?void 0:B.find(A=>(0,E.I13)(A.address)===(0,E.I13)(g.siafundOutput.address));return w?w.metadata?void 0===w.metadata.index?{error:"Missing address index"}:w.metadata.unlockConditions.publicKeys[0]?{utxo:g,address:w}:{error:"Missing address public key"}:{error:"Missing address metadata"}:{error:"Missing address"}}({id:c,addresses:g,siafundOutputs:D});if(!s.error){let A=null===(B=I.siafundInputs)||void 0===B?void 0:B.find(A=>(0,E.I13)(A.parentID)===(0,E.I13)(s.utxo.id));return A?{address:s.address,siafundUtxo:s.utxo,siafundInput:A}:{error:"Missing input"}}return s.error&&"Missing utxo"!==s.error?{error:s.error}:{error:M.error}}function AU(A){let{cancel:Q}=A,B=(0,g.ys)();return(0,I.useCallback)(async A=>{let{signedTransaction:C}=A;if(!C)return{error:"No signed transaction"};let I=await B.post({payload:{transactions:[C],v2transactions:[]}});return I.error?(Q(C),{error:I.error}):{}},[Q,B])}function AL(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.zQ)();return(0,I.useCallback)(async A=>{var C,I;let g=(null===(C=A.siacoinInputs)||void 0===C?void 0:C.map(A=>A.parentID))||[],w=(null===(I=A.siafundInputs)||void 0===I?void 0:I.map(A=>A.parentID))||[],D=await B.post({params:{id:Q},payload:{siacoinOutputs:g,siafundOutputs:w}});D.error&&(0,E.OHV)({title:"Error canceling transaction",body:D.error})},[Q,B])}function Ai(){let{wallet:A}=(0,s.r)(),Q=null==A?void 0:A.id,B=(0,g.sv)(),C=(0,g.bW)();return(0,I.useCallback)(async A=>{let{receiveAddress:I,changeAddress:E,claimAddress:g,mode:w,siacoin:D,siafund:c,fee:M}=A;if(!I||!E||!g)return{error:"No addresses"};if("siacoin"===w){let A=await B.post({params:{id:Q},payload:{amount:D.plus(M).toString(),changeAddress:E,transaction:{minerFees:[M.toString()],siacoinOutputs:[{value:D.toString(),address:I}]}}});return A.error?{error:A.error}:{fundedTransaction:A.data.transaction,toSign:A.data.toSign}}if("siafund"===w){let A=[],w=await C.post({params:{id:Q},payload:{amount:c,changeAddress:E,claimAddress:g,transaction:{minerFees:[M.toString()],siafundOutputs:[{value:c,address:I}]}}});return w.error?{error:w.error}:(A.push(...w.data.toSign),(w=await B.post({params:{id:Q},payload:{amount:M.toString(),changeAddress:E,transaction:w.data.transaction}})).error)?{error:w.error}:(A.push(...w.data.toSign),{fundedTransaction:w.data.transaction,toSign:A})}},[B,C,Q])}let AG={mnemonic:""};function Ap(A){let{params:Q,transactionId:B}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(Ak,{params:Q,transactionId:B}),(0,C.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(c.Z$8,{})}),(0,C.jsx)(E.xvT,{children:"Transaction successfully broadcast."})]})]})}function Ar(A){let{trigger:Q,open:B,onOpenChange:I,sendParams:g,signedTxnId:w,step:D,send:c,compose:M,setStep:s,controls:y}=A;return(0,C.jsx)(E.VqE,{trigger:Q,open:B,onOpenChange:A=>{A||(M.reset(),c.reset(),s("compose")),I(A)},title:"Send",onSubmit:y?y.handleSubmit:void 0,controls:(null==y?void 0:y.form)&&(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.ZqQ,{form:y.form,children:y.submitLabel})}),contentVariants:{className:"w-[450px]"},children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(E.tIK,{onChange:A=>{s(A)},activeStep:D,steps:[{id:"compose",label:"Compose"},{id:"send",label:"Sign & Send"},{id:"done",label:"Complete"}]}),(0,C.jsx)(E.Z0O,{className:"w-full mt-4"}),"compose"===D&&M.el,"send"===D&&c.el,"done"===D&&(0,C.jsx)(Ap,{params:g,transactionId:w})]})})}let Aa={receiveAddress:"",changeAddress:"",claimAddress:"",mode:"siacoin",siacoin:new(L())(0),siafund:0,fee:new(L())(0)};function Ao(A){var Q,B;let{params:w,trigger:D,open:c,onOpenChange:y}=A,{walletId:n}=w||{},h=(0,g.tM)({disabled:!n,params:{id:n}}),{dataset:K}=N({id:n}),t=(0,I.useMemo)(()=>{var A;return new(L())((null===(A=h.data)||void 0===A?void 0:A.siacoins)||0)},[h.data]),U=(0,I.useMemo)(()=>{var A;return new(L())((null===(A=h.data)||void 0===A?void 0:A.siafunds)||0)},[h.data]),[G,r]=(0,I.useState)("compose"),[a,o]=(0,I.useState)(),[e,J]=(0,I.useState)(Aa),S=Ah({balanceSc:t,balanceSf:U,defaultChangeAddress:null==K?void 0:null===(Q=K[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==K?void 0:null===(B=K[0])||void 0===B?void 0:B.address,onComplete:A=>{J(Q=>({...Q,...A})),r("send")}}),F=function(A){let{walletId:Q,params:B,onConfirm:w}=A,D=function(){let{wallet:A,cacheWalletMnemonic:Q}=(0,s.r)(),B=null==A?void 0:A.id,C=(0,g.jL)({disabled:!B,params:{id:B}}),E=(0,g.cd)({disabled:!B,params:{id:B}}),{dataset:w}=N({id:B}),D=(0,g.ek)(),c=(0,g.gM)(),M=Ai(),y=AL(),n=AU({cancel:y});return(0,I.useCallback)(async A=>{let{mnemonic:I,params:g}=A;if(!w)return{error:"No addresses found"};let{fundedTransaction:s,toSign:h,error:K}=await M(g);if(K)return{fundedTransaction:s,error:K};let{signedTransaction:t,error:U}=function(A){let{mnemonic:Q,transaction:B,toSign:C,consensusState:I,consensusNetwork:E,addresses:g,siacoinOutputs:w,siafundOutputs:D}=A;if(!I)return{error:"No consensus state"};if(!g)return{error:"No addresses"};if(!w)return{error:"No outputs"};let{error:c}=AK({toSign:C,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(c)return{error:c};for(let[A,c]of C.entries()){let{address:C,error:M}=At({toSignId:c,transaction:B,addresses:g,siacoinOutputs:w,siafundOutputs:D});if(M)return{error:M};let s=(0,k.K)().wallet.keyPairFromSeedPhrase(Q,C.metadata.index);if(s.error)return{error:s.error};let{signature:y,error:n}=(0,k.K)().wallet.signTransactionV1(I,E,B,A,s.privateKey);if(n)return{error:n};B.signatures[A].signature=y}return{signedTransaction:B}}({mnemonic:I,transaction:s,toSign:h,consensusState:D.data,consensusNetwork:c.data,addresses:w,siacoinOutputs:C.data,siafundOutputs:E.data});return U?(y(s),{error:U}):(Q(B,I),n({signedTransaction:t}))},[y,w,M,B,D.data,c.data,C.data,E.data,Q,n])}(),{isSeedCached:c}=function(A){let{dataset:Q}=(0,s.r)(),B=null==Q?void 0:Q.find(Q=>Q.id===A),C=null==B?void 0:B.state.mnemonic;return{cachedMnemonic:C,isSeedCached:!!C}}(Q),{dataset:y}=(0,s.r)(),n=null==y?void 0:y.find(A=>A.id===Q),h=null==n?void 0:n.metadata.mnemonicHash,K=(0,M.cI)({mode:"all",defaultValues:AG}),[t,U]=(0,I.useState)("password"),L=(0,I.useMemo)(()=>(function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C,isSeedCached:I}=A;return{mnemonic:I?{title:"Seed",type:"text",validation:{}}:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}})({mnemonicFieldType:t,setMnemonicFieldType:U,mnemonicHash:h,isSeedCached:c}),[t,U,h,c]),G=(0,I.useCallback)(async A=>{let{error:Q}=await D({mnemonic:n.state.mnemonic||A.mnemonic,params:B});if(Q){(0,E.OHV)({title:Q});return}w({})},[D,B,w,n]),r=(0,E.WsO)(L),a=(0,I.useMemo)(()=>K.handleSubmit(G,r),[K,G,r]),o=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsx)(p,{walletId:Q,name:"mnemonic",form:K,fields:L,actionText:"complete the transaction"}),(0,C.jsx)(Ak,{params:B})]});return{form:K,el:o,handleSubmit:a,reset:()=>K.reset(AG)}}({walletId:n,params:e,onConfirm:A=>{let{transactionId:Q}=A;o(Q),r("done")}}),l=(0,I.useMemo)(()=>"compose"===G?{submitLabel:"Generate transaction",form:S.form,handleSubmit:S.handleSubmit,reset:S.reset}:"send"===G?{submitLabel:"Sign and broadcast transaction",form:F.form,handleSubmit:F.handleSubmit,reset:F.reset}:void 0,[G,S,F]);return(0,C.jsx)(Ar,{trigger:D,open:c,onOpenChange:A=>{A||(S.reset(),F.reset(),r("compose")),y(A)},controls:l,compose:S,send:F,sendParams:e,signedTxnId:a,step:G,setStep:r})}function AN(A){let{title:Q,isSigned:B,isConnected:I,details:g,actions:w}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):I?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsx)("div",{className:"flex gap-1 justify-between items-center",children:w})]}),g]})})}function Ae(A){let{waitingForUser:Q,isConnected:B,isSigned:I,sign:g}=A;return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:I?(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction"}):B&&Q?(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve signature on device."})]})}):B?(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction",actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:g,children:"Sign"})})}):(0,C.jsx)(AN,{isConnected:B,isSigned:I,title:"Transaction",details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"Connect device to start signing."})})})})}var AJ=B(48834).lW;async function AS(A){let{device:Q,transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g}=A;if(!I)return{error:"No addresses"};if(!E)return{error:"No outputs"};let{error:w}=AK({transaction:B,toSign:C,addresses:I,siacoinOutputs:E,siafundOutputs:g});if(w)return{error:w};for(let[A,w]of C.entries()){let C=At({toSignId:w,addresses:I,siacoinOutputs:E,siafundOutputs:g,transaction:B});if(C.error)return{error:C.error};let D=await AF({device:Q,transaction:B,signatureIndex:A,keyIndex:C.address.metadata.index});if(D.error)return{error:D.error}}return{transaction:B}}async function AF(A){let Q,{device:B,transaction:C,signatureIndex:I,keyIndex:E}=A,{encodedTransaction:g,error:w}=(0,k.K)().wallet.encodeTransaction(C);if(w)return{error:w};let D=AJ.from(g,"utf-8"),c=0>function(A,Q){let B=/[^0-9.]/gi,C=A.replace(B,"").split("."),I=Q.replace(B,"").split("."),E=Math.max(C.length,I.length);for(let A=0;AB)return 1}return 0}(await B.sia.getVersion(),"0.4.5");try{Q=c?await B.sia.signTransactionV044(D,I,E):await B.sia.signTransaction(D,I,E,0)}catch(A){return{error:A.message}}return C.signatures[I].signature=Q,{transaction:C}}let Al={isConnected:!1,isSigned:!1};function AY(A){var Q,B;let{params:w,trigger:D,open:c,onOpenChange:y}=A,{walletId:n}=w||{},[h,k]=(0,I.useState)("compose"),[K,t]=(0,I.useState)(),[U,i]=(0,I.useState)(Aa),G=(0,g.tM)({disabled:!n,params:{id:n}}),{dataset:p}=N({id:n}),r=Ah({balanceSc:(0,I.useMemo)(()=>{var A;return new(L())((null===(A=G.data)||void 0===A?void 0:A.siacoins)||0)},[G.data]),balanceSf:(0,I.useMemo)(()=>{var A;return new(L())((null===(A=G.data)||void 0===A?void 0:A.siafunds)||0)},[G.data]),defaultChangeAddress:null==p?void 0:null===(Q=p[0])||void 0===Q?void 0:Q.address,defaultClaimAddress:null==p?void 0:null===(B=p[0])||void 0===B?void 0:B.address,onComplete:A=>{i(Q=>({...Q,...A})),k("send")}}),a=function(A){let{params:Q,step:B,onConfirm:w}=A,D=(0,M.cI)({mode:"all",defaultValues:Al}),c=D.watch("isConnected"),y=D.watch("isSigned"),{device:n,error:h}=(0,W.c)(),k=AL(),K=function(A){let{cancel:Q}=A,{wallet:B}=(0,s.r)(),C=null==B?void 0:B.id,E=(0,g.jL)({disabled:!C,params:{id:C}}),w=(0,g.cd)({disabled:!C,params:{id:C}}),{dataset:D}=N({id:C}),{device:c}=(0,W.c)();return(0,I.useCallback)(async A=>{let{fundedTransaction:B,toSign:C}=A;if(!c||!B)return;let I=await AS({device:c,transaction:B,toSign:C,addresses:D,siacoinOutputs:E.data,siafundOutputs:w.data});return I.error?(Q(B),{error:I.error}):{signedTransaction:I.transaction}},[c,D,E.data,w.data,Q])}({cancel:k}),t=AU({cancel:k}),U=function(A){let{fund:Q,cancel:B,sign:C}=A;return(0,I.useCallback)(async A=>{let{fundedTransaction:I,toSign:E,error:g}=await Q(A);if(g)return{fundedTransaction:I,error:g};let{signedTransaction:w,error:D}=await C({fundedTransaction:I,toSign:E});return D?(B(I),{fundedTransaction:I,error:D}):{signedTransaction:w}},[Q,C,B])}({cancel:k,fund:Ai(),sign:K}),[L,i]=(0,I.useState)(!1),[G,p]=(0,I.useState)();(0,I.useEffect)(()=>{"compose"===B&&p(void 0)},[B]),(0,I.useEffect)(()=>{n?D.setValue("isConnected",!0):(i(!1),D.setValue("isConnected",!1))},[D,n]),(0,I.useEffect)(()=>{h?D.setError("isConnected",{message:h.message}):D.clearErrors("isConnected")},[D,h]),(0,I.useEffect)(()=>{G||D.setValue("isSigned",!1)},[D,G]);let r=(0,I.useMemo)(()=>({isConnected:{type:"boolean",title:"",validation:{validate:{isConnected:A=>A||"Ledger must be connected"}}},isSigned:{type:"boolean",title:"",validation:{validate:{isSigned:A=>A||"Transaction must be signed"}}}}),[]),a=(0,I.useCallback)(async A=>{if(!A.isConnected)return;let{error:Q}=await t({signedTransaction:G});if(Q){(0,E.OHV)({title:Q});return}w({})},[t,G,w]),o=(0,E.WsO)(r),e=(0,I.useMemo)(()=>D.handleSubmit(a,o),[D,a,o]),J=(0,I.useCallback)(async()=>{i(!0);let{signedTransaction:A,error:B}=await U(Q);B?(0,E.OHV)({title:B}):(p(A),D.setValue("isSigned",!0)),i(!1)},[D,U,Q]),S=(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"isConnected"}),(0,C.jsx)(E.cp7,{name:"isConnected",form:D}),(0,C.jsx)(_,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Signature",name:"isSigned"}),(0,C.jsx)(E.cp7,{name:"isSigned",form:D}),(0,C.jsx)(Ae,{waitingForUser:L,isConnected:c,isSigned:y,sign:J})]})]}),(0,C.jsx)(Ak,{params:Q})]});return{form:D,el:S,handleSubmit:e,cancel:()=>{G&&k(G)},reset:()=>D.reset(Al)}}({walletId:n,step:h,params:U,onConfirm:A=>{let{transactionId:Q}=A;t(Q),k("done")}}),o=(0,I.useMemo)(()=>"compose"===h?{submitLabel:"Generate transaction",form:r.form,handleSubmit:r.handleSubmit,reset:r.reset}:"send"===h?{submitLabel:"Sign and broadcast transaction",form:a.form,handleSubmit:a.handleSubmit,reset:a.reset}:void 0,[h,r,a]);return(0,C.jsx)(Ar,{trigger:D,open:c,onOpenChange:A=>{A||(r.reset(),a.reset(),k("compose")),y(A)},controls:o,compose:r,send:a,sendParams:U,signedTxnId:K,step:h,setStep:k})}function AH(A){let{params:Q,trigger:B,open:g,onOpenChange:w}=A,{walletId:D}=Q||{},{dataset:c,cacheWalletMnemonic:y}=(0,s.r)(),n=null==c?void 0:c.find(A=>A.id===D),h={mnemonic:""},[k,K]=(0,I.useState)("password"),t=(0,M.cI)({mode:"all",defaultValues:h}),{handleOpenChange:U,closeAndReset:L}=(0,E.t0Y)({form:t,onOpenChange:w,defaultValues:h}),G=function(A){let{mnemonicHash:Q,mnemonicFieldType:B,setMnemonicFieldType:C}=A;return{mnemonic:i({mnemonicHash:Q,setMnemonicFieldType:C,mnemonicFieldType:B})}}({mnemonicHash:null==n?void 0:n.metadata.mnemonicHash,mnemonicFieldType:k,setMnemonicFieldType:K}),r=(0,I.useCallback)(A=>{y(D,A.mnemonic),L()},[D,y,L]),a=(0,E.WsO)(G);return(0,C.jsx)(E.VqE,{title:"Unlock wallet: ".concat(null==n?void 0:n.name),trigger:B,open:g,onOpenChange:U,contentVariants:{className:"w-[500px]"},onSubmit:t.handleSubmit(r,a),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:t,variant:"accent",size:"medium",children:"Continue"})}),children:(0,C.jsx)(p,{walletId:null==n?void 0:n.id,form:t,fields:G,name:"mnemonic"})})}function Af(A){let{open:Q,onOpenChange:B}=A,{walletAutoLockTimeout:I,setWalletAutoLockTimeout:g,setWalletAutoLockEnabled:w,walletAutoLockEnabled:D}=(0,s.r)();return(0,C.jsx)(E.DLL,{open:Q,onOpenChange:B,securityEl:(0,C.jsx)(E.bZj,{children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,C.jsx)(E.xvT,{children:(0,C.jsx)(c.RdX,{})}),(0,C.jsx)(E.X6q,{size:"20",className:"flex-1",children:"Lock wallets"}),(0,C.jsx)(E.rsf,{size:"medium",checked:D,onCheckedChange:A=>w(A)}),(0,C.jsxs)(E.PhF,{disabled:!D,value:String(I),onChange:A=>{g(Number(A.currentTarget.value))},children:[(0,C.jsx)(E.Wxm,{value:(0,d.sW)(5),children:"5 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(10),children:"10 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(20),children:"20 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(30),children:"30 minutes"}),(0,C.jsx)(E.Wxm,{value:(0,d.sW)(60),children:"1 hour"})]})]}),(0,C.jsx)(E.nvN,{size:"14",children:"Automatically lock each wallet after a certain period of inactivity."})]})})})}function Ad(A){let{title:Q,isNew:B,address:I,details:g,actions:w,remove:D}=A;return(0,C.jsx)(E.s_4,{className:"mt-1 pl-3 pr-2 py-2",children:(0,C.jsxs)("div",{className:"flex flex-col",children:[(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[(0,C.jsxs)("div",{className:"flex items-center",children:[I?B?(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-green-500 border border-green-400"})]}):(0,C.jsx)("div",{className:"relative w-2 h-2 mr-2",children:(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-gray-1000 border border-gray-900"})}):(0,C.jsxs)("div",{className:"relative w-2 h-2 mr-2",children:[(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-400 animate-pingslow"}),(0,C.jsx)("div",{className:"absolute w-2 h-2 rounded-full bg-amber-500 border border-amber-400"})]}),(0,C.jsx)(E.xvT,{weight:"semibold",size:"16",className:"ml-1",children:Q})]}),(0,C.jsxs)("div",{className:"flex gap-1 justify-between items-center",children:[w,B&&(0,C.jsx)(E.zxk,{variant:"ghost",onClick:D,children:(0,C.jsx)(c.PcV,{})})]})]}),g]})})}function Au(A){let{index:Q,address:B,isNew:g,setAddress:w,remove:D}=A,{device:c,error:M,setError:s}=(0,W.c)(),[y,n]=(0,I.useState)(!1),h=(0,I.useCallback)(async()=>{if(c){if(M){(0,E.OHV)({title:"Error connecting to Ledger",body:M.message});return}try{n(!0);let A=await c.sia.verifyStandardAddress(Q);w({index:Q,address:A.address,publicKey:A.publicKey})}catch(A){s(A),console.log(A)}n(!1)}},[Q,c,M,s,w]);return(0,C.jsx)("div",{className:"flex flex-col gap-1",children:B?(0,C.jsx)(Ad,{title:"Address ".concat(Q),isNew:g,remove:D,address:B,details:(0,C.jsx)("div",{className:"flex flex-col gap-1",children:(0,C.jsx)(E.XxW,{value:B,label:"public key 0",color:"subtle",maxLength:30})})}):y?(0,C.jsx)(Ad,{title:"Address ".concat(Q),isNew:g,remove:D,details:(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.xvT,{children:"Please confirm on device..."}),(0,C.jsx)(E.nvN,{size:"14",color:"subtle",children:"To continue, approve address generation on device."})]})}):(0,C.jsx)(Ad,{title:"Address ".concat(Q),isNew:g,remove:D,actions:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(E.zxk,{size:"small",onClick:h,children:"Generate"})})})})}function AR(A){return{isNew:!0,address:"",publicKey:"",index:A}}function Aj(A){let{params:Q,trigger:B,open:w,onOpenChange:D}=A,{walletId:c,walletJustCreated:y}=Q||{},{dataset:n,lastIndex:h,datasetTotal:K}=N({id:c}),t=(0,f.n)(),{dataset:U}=(0,s.r)(),i=null==U?void 0:U.find(A=>A.id===c),G=h+1,p=function(A){let{nextIndex:Q,rescanStartHeight:B}=A;return{ledgerConnected:!1,index:new(L())(Q),count:new(L())(1),...S({rescanStartHeight:B})}}({nextIndex:G,rescanStartHeight:t.nodeBlockHeight}),r=(0,M.cI)({mode:"all",defaultValues:p}),{disconnect:a,error:o}=(0,W.c)();(0,I.useEffect)(()=>{!y&&w&&a()},[w]),(0,I.useEffect)(()=>{r.formState.isSubmitting||r.setValue("index",new(L())(G))},[G]);let e=r.watch("index"),l=r.watch("count"),Y=r.watch("shouldRescan"),u={ledgerConnected:{type:"boolean",title:"",validation:{validate:{ledgerConnected:A=>A||"Ledger must be connected"}}},index:{type:"number",title:"Start index",decimalsLimit:0,placeholder:"0",validation:{required:"required"}},count:{type:"number",title:"Number of addresses",decimalsLimit:0,placeholder:"1",validation:{required:"required",max:1e3}},...J()},R=(0,g.yi)();(0,I.useEffect)(()=>{o?r.setError("ledgerConnected",{message:o.message}):r.clearErrors("ledgerConnected")},[r,o]);let[j,b]=(0,I.useState)({});(0,I.useEffect)(()=>{w&&y&&b({0:AR(0)})},[w]);let m=(0,I.useCallback)(()=>{if(!e||!l)return;let A={...j};for(let Q=e.toNumber();Q{b(Q=>{let B={...Q};return delete B[A],B})},[]),T=(0,I.useCallback)(A=>{let{index:Q,address:B,publicKey:C}=A;b(A=>{let I={...A};return I[Q]={...I[Q],address:B,publicKey:C},I})},[b]),P=(0,I.useMemo)(()=>{let A={};for(let[Q,{address:B,publicKey:C}]of Object.entries(j)){let I=null==n?void 0:n.find(A=>A.metadata.index===Number(Q));A[Q]={isNew:!I,index:Number(Q),address:(null==I?void 0:I.address)||B,publicKey:(null==I?void 0:I.metadata.unlockConditions.publicKeys[0])||C}}return A},[n,j]),O=(0,I.useMemo)(()=>Object.entries(P).filter(A=>{let[Q,B]=A;return B.isNew&&B.address}).map(A=>{let[Q,B]=A;return B}),[P]),z=(0,I.useCallback)(async()=>{let A=O.length;function Q(A,Q,B){(0,E.OHV)({title:"Error generating addresses",body:Q>0?"".concat(Q+1,"/").concat(A," addresses were generated and saved. Batch failed on with: ").concat(B):B})}for(let[B,{address:C,publicKey:I,index:E}]of O.entries()){let g=(0,k.K)().wallet.standardUnlockConditions(I);if(g.error){Q(A,B,g.error);return}let w={index:E,unlockConditions:g.unlockConditions},D=await R.put({params:{id:c},payload:{address:C,description:"",metadata:w}});if(D.error){Q(A,B,D.error);return}}(0,E.OPV)({title:"Added ".concat((0,d._6)(A,"address","addresses"))})},[R,c,O]),{handleOpenChange:x,closeAndReset:V}=(0,E.t0Y)({form:r,onOpenChange:A=>{b({}),D(A)},defaultValues:p}),v=H(),X=(0,I.useCallback)(async A=>{O.length>0&&await z(),await v(A),V()},[O,z,V,v]);return(0,C.jsx)(E.VqE,{title:"Wallet ".concat(null==i?void 0:i.name,": generate addresses"),trigger:B,open:w,onOpenChange:x,contentVariants:{className:"w-[500px]"},onSubmit:r.handleSubmit(X),controls:(0,C.jsxs)("div",{className:"flex gap-1 justify-end",children:[(0,C.jsx)(E.zxk,{size:"medium",variant:"gray",onClick:V,children:"Close"}),(O.length>0||Y)&&(0,C.jsx)(E.ZqQ,{form:r,size:"medium",variant:Y?"red":"accent",children:O.length>0?"Save ".concat((0,d._6)(O.length,"address","addresses")).concat(Y?" and rescan":""):"Rescan"})]}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,C.jsxs)(E.xvT,{children:["Wallet currently has ",(0,d._6)(K,"address","addresses")," ","with a highest index of ",h,". Select a start index and the number of sequential addresses you would like to generate."]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(E.Qyk,{title:"Device",name:"ledgerConnected"}),(0,C.jsx)(E.cp7,{name:"ledgerConnected",form:r}),(0,C.jsx)(_,{})]}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsxs)("div",{className:"flex gap-2 w-full pt-3 items-end",children:[(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:r,fields:u,name:"index"})}),(0,C.jsx)("div",{className:"flex-1",children:(0,C.jsx)(E.jIp,{form:r,fields:u,name:"count"})}),(0,C.jsx)(E.zxk,{onClick:m,children:"Add"})]}),(0,C.jsx)("div",{className:"flex flex-col gap-1",children:Object.entries(P).map(A=>{let[Q,{address:B,isNew:I}]=A;return(0,C.jsx)(Au,{isNew:I,address:B,setAddress:T,index:Number(Q),remove:()=>Z(Number(Q))},Q)})})]}),(0,C.jsx)(F,{form:r,fields:u})]})})}function Ab(A){let{trigger:Q,open:B,onOpenChange:g}=A,w=function(A){let{rescanStartHeight:Q}=A;return{...S({rescanStartHeight:Q}),shouldRescan:!0}}({rescanStartHeight:(0,f.n)().nodeBlockHeight}),D=(0,M.cI)({mode:"all",defaultValues:w}),{handleOpenChange:c,closeAndReset:s}=(0,E.t0Y)({form:D,onOpenChange:g,defaultValues:w}),y={...J()},n=H(),h=(0,I.useCallback)(async A=>{n(A),s()},[s,n]);return(0,C.jsx)(E.VqE,{title:"Rescan the blockchain",trigger:Q,open:B,onOpenChange:c,contentVariants:{className:"w-[500px]"},onSubmit:D.handleSubmit(h),controls:(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsx)(E.ZqQ,{form:D,variant:"red",size:"medium",children:"Rescan"})}),children:(0,C.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,C.jsx)(E.nvN,{size:"14",children:"Rescan the blockchain from the specified start height to find any missing transaction activity across all wallets."}),(0,C.jsx)("div",{className:"w-[100px]",children:(0,C.jsx)(E.jIp,{form:D,fields:y,name:"rescanStartHeight"})}),(0,C.jsxs)("div",{className:"pt-2 flex flex-col gap-2",children:[(0,C.jsx)(l,{}),(0,C.jsx)(Y,{})]})]})})}let Am=(0,I.createContext)({}),AZ=()=>(0,I.useContext)(Am);function AT(A){let{children:Q}=A,B=function(){let[A,Q]=(0,I.useState)(),[B,C]=(0,I.useState)({}),E=(0,I.useCallback)((A,B)=>{C(Q=>({...Q,[A]:B})),Q(A)},[C,Q]),g=(0,I.useCallback)(()=>{C(Q=>({...Q,[A]:void 0})),Q(void 0)},[Q,C,A]),w=(0,I.useCallback)(A=>{A||g()},[g]);return{dialog:A,params:B,openDialog:E,confirm,closeDialog:g,onOpenChange:w}}();return(0,C.jsx)(Am.Provider,{value:B,children:Q})}function AP(){let{openDialog:A,onOpenChange:Q,closeDialog:B,dialog:I,params:w}=AZ(),c=(0,g.Wl)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Af,{open:"settings"===I,onOpenChange:Q}),(0,C.jsx)(D,{open:"walletAddType"===I,params:w.walletAddType,onOpenChange:Q=>Q?A(I,w.walletAddType):B()}),(0,C.jsx)(t,{open:"walletAddNew"===I,params:w.walletAddNew,onOpenChange:Q=>Q?A(I,w.walletAddNew):B()}),(0,C.jsx)(AB,{open:"walletAddRecover"===I,params:w.walletAddRecover,onOpenChange:Q=>Q?A(I,w.walletAddRecover):B()}),(0,C.jsx)(AA,{open:"walletAddLedger"===I,params:w.walletAddLedger,onOpenChange:Q=>Q?A(I,w.walletAddLedger):B()}),(0,C.jsx)(AI,{open:"walletAddWatch"===I,params:w.walletAddWatch,onOpenChange:Q=>Q?A(I,w.walletAddWatch):B()}),(0,C.jsx)(u,{open:"walletAddressesGenerate"===I,params:w.walletAddressesGenerate,onOpenChange:Q=>Q?A(I,w.walletAddressesGenerate):B()}),(0,C.jsx)(Aj,{open:"walletLedgerAddressGenerate"===I,params:w.walletLedgerAddressGenerate,onOpenChange:Q=>Q?A(I,w.walletLedgerAddressGenerate):B()}),(0,C.jsx)(AD,{open:"walletAddressesAdd"===I,params:w.walletAddressesAdd,onOpenChange:Q=>Q?A(I,w.walletAddressesAdd):B()}),(0,C.jsx)(m,{open:"walletRemove"===I,params:w.walletRemove,onOpenChange:Q=>Q?A(I,w.walletRemove):B()}),(0,C.jsx)(P,{open:"walletUpdate"===I,params:w.walletUpdate,onOpenChange:Q=>Q?A(I,w.walletUpdate):B()}),(0,C.jsx)(AH,{open:"walletUnlock"===I,params:w.walletUnlock,onOpenChange:Q=>Q?A(I,w.walletUnlock):B()}),(0,C.jsx)(Ab,{open:"walletsRescan"===I,params:w.walletsRescan,onOpenChange:Q=>Q?A(I,w.walletsRescan):B()}),(0,C.jsx)(Z,{open:"addressUpdate"===I,params:w.addressUpdate,onOpenChange:Q=>Q?A(I,w.addressUpdate):B()}),(0,C.jsx)(AM,{open:"addressRemove"===I,params:w.addressRemove,onOpenChange:Q=>Q?A(I,w.addressRemove):B()}),(0,C.jsx)(E.D_D,{open:"connectPeer"===I,params:w.connectPeer,connect:A=>c.post({payload:A}),onOpenChange:Q=>Q?A(I,w.connectPeer):B()}),(0,C.jsx)(Ao,{open:"walletSendSeed"===I,params:w.walletSendSeed,onOpenChange:Q=>Q?A(I,w.walletSendSeed):B()}),(0,C.jsx)(AY,{open:"walletSendLedger"===I,params:w.walletSendLedger,onOpenChange:Q=>Q?A(I,w.walletSendLedger):B()}),(0,C.jsx)(E.QHy,{open:"confirm"===I,params:w.confirm,onOpenChange:Q=>Q?A(I,w.confirm):B()})]})}},94589:function(A,Q,B){"use strict";B.d(Q,{Yl:function(){return U},hI:function(){return t}});var C=B(52322),I=B(83448),E=B(28135),g=B(88464),w=B(2784);let D=["transactionId","type","height","timestamp","amount","fee"],c=[];var M=B(57165);let s=[{id:"transactionId",label:"transaction ID",category:"general",render:A=>{let{data:{id:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"transaction ID",type:"transaction",siascanUrl:B.siascanUrl}):null}},{id:"type",label:"type",category:"general",fixed:!0,render:A=>{let{data:{txType:Q}}=A;return(0,C.jsx)(I.Cts,{size:"small",children:(0,g.pX)(Q)})}},{id:"height",label:"height",category:"general",contentClassName:"justify-end",render:A=>{let{data:{height:Q,pending:B,maturityHeight:E,isMature:g}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):Q?Q&&E&&E>Q?(0,C.jsx)(I.ua7,{content:g?"The maturity height has been reached.":"The maturity height has not been reached, therefore the output is still locked.",children:(0,C.jsxs)("div",{className:"flex flex-col gap-[5px]",children:[(0,C.jsx)("div",{className:"flex justify-end",children:(0,C.jsxs)(I.xvT,{size:"12",font:"mono",ellipsis:!0,color:g?"green":"red",className:"flex gap-1 items-center",children:[g?(0,C.jsx)(M.VmF,{}):(0,C.jsx)(M.Lur,{}),E.toLocaleString()]})}),(0,C.jsxs)("div",{className:"flex justify-between items-end gap-1",children:[(0,C.jsx)("div",{className:"pl-[8px] pb-[6px]",children:(0,C.jsx)("div",{className:"border-l border-b border-gray-800 dark:border-graydark-800 h-[20px] w-[7px]"})}),(0,C.jsx)(I.xvT,{size:"12",font:"mono",color:"subtle",ellipsis:!0,children:Q.toLocaleString()})]})]})}):(0,C.jsx)(I.xvT,{size:"12",font:"mono",ellipsis:!0,children:Q.toLocaleString()}):null}},{id:"timestamp",label:"timestamp",category:"general",contentClassName:"justify-end",render:A=>{let{data:{timestamp:Q,pending:B}}=A;return B?(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,C.jsx)(I.xgg,{})}):(0,C.jsx)(I.xvT,{size:"12",ellipsis:!0,children:(0,g.rN)(Q,{timeStyle:"short"})})}},{id:"amount",label:"amount",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{amountSc:Q,amountSf:B}}=A;return Q?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[!Q.isZero()&&(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",value:Q}),!!B&&(0,C.jsx)(I.Sby,{size:"12",value:B})]}):null}},{id:"fee",label:"fee",category:"general",contentClassName:"w-[120px] justify-end",render:A=>{let{data:{fee:Q}}=A;return Q?(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:Q}):null}},{id:"contractId",label:"contract ID",category:"general",render:A=>{let{data:{contractId:Q},context:B}=A;return Q?(0,C.jsx)(I.XxW,{size:"12",value:Q,label:"contract ID",siascanUrl:B.siascanUrl}):null}}];var y=B(5632),n=B(66510),h=B(99634),k=B(16211);let K=(0,w.createContext)({}),t=()=>(0,w.useContext)(K);function U(A){let{children:Q}=A,B=function(){let A=(0,y.useRouter)().query.id,{limit:Q,offset:B}=(0,I.It_)(100),{filters:C,setFilter:M,removeFilter:K,removeLastFilter:t,resetFilters:U}=(0,I.Uu5)(),L=(0,E.wh)({disabled:!A,params:{id:A},config:{swr:{refreshInterval:h.h}}}),i=(0,E.sG)({disabled:!A,params:{limit:Q,offset:B,id:A},config:{swr:{refreshInterval:h.h}}}),G=(0,k.n)(),p=(0,w.useMemo)(()=>{if(!i.data||!L.data)return;let A=L.data.map(A=>{let Q=(0,g.Jz)(A),B=(0,g.T6)(A),C=(0,g.hq)(A);return{id:A.id,timestamp:0,pending:!0,type:A.type,txType:(0,g.uC)(A),isMature:!1,amountSc:Q,amountSf:B,fee:C}}),Q=i.data.map(A=>{let Q=(0,g.Jz)(A),B=(0,g.T6)(A),C=(0,g.hq)(A),I=(0,g.hR)(A),E=A.maturityHeight<=G.nodeBlockHeight;return{id:A.id,type:A.type,txType:(0,g.uC)(A),timestamp:new Date(A.timestamp).getTime(),maturityHeight:A.maturityHeight,isMature:E,height:A.index.height,pending:!1,amountSc:Q,amountSf:B,fee:C,contractId:I}});return 0===B?[...A.reverse(),...Q]:[...Q]},[i.data,L.data,G.nodeBlockHeight,B]),{configurableColumns:r,visibleColumnIds:a,visibleColumns:o,sortableColumns:N,toggleColumnVisibility:e,setColumnsVisible:J,setColumnsHidden:S,toggleSort:F,setSortDirection:l,setSortField:Y,sortField:H,sortDirection:f,resetDefaultColumnVisibility:d}=(0,I.oy6)("walletd/v0/events",{columns:s,columnsDefaultVisible:D,sortOptions:c,defaultSortField:"id"}),u=i.isValidating||L.isValidating,R=i.error||L.error,j=(0,I.LNN)({datasetPage:p,isValidating:u,error:R,filters:C,offset:B}),b=(0,n.B)(),m=(0,w.useMemo)(()=>({siascanUrl:b}),[b]);return{datasetState:j,error:i.error,datasetPageTotal:(null==p?void 0:p.length)||0,visibleColumns:o,datasetPage:p,cellContext:m,configurableColumns:r,visibleColumnIds:a,sortableColumns:N,toggleColumnVisibility:e,setColumnsVisible:J,setColumnsHidden:S,toggleSort:F,setSortDirection:l,setSortField:Y,sortField:H,sortDirection:f,resetDefaultColumnVisibility:d,filters:C,setFilter:M,removeFilter:K,removeLastFilter:t,resetFilters:U,offset:B,limit:Q}}();return(0,C.jsx)(K.Provider,{value:B,children:Q})}},71508:function(A,Q,B){"use strict";B.d(Q,{c:function(){return M},d:function(){return s}});var C=B(52322),I=B(65597),E=B(27748),g=B(35415),w=B.n(g),D=B(2784);let c=(0,D.createContext)({}),M=()=>(0,D.useContext)(c);function s(A){let{children:Q}=A,B=function(){let[A,Q]=(0,D.useState)(!1),[B,C]=(0,D.useState)(),[g,c]=(0,D.useState)(),M=(0,D.useCallback)(()=>{if(B){try{B.sia.close(),c(void 0)}catch(A){console.log(A)}C(void 0)}},[B]),s=(0,D.useCallback)(async A=>{let B=null;Q(!0);try{switch(A){case"HID":(B=await E.Z.openConnected())||(B=await E.Z.create());break;case"Bluetooth":B=await I.Z.create();break;default:throw Error("Unsupported transport method: ".concat(A))}if(B){c(void 0);let I=new(w())(B);C({type:A,sia:I,transport:B}),Q(!1)}}catch(A){c(A),Q(!1)}},[]),y=(0,D.useCallback)(async()=>{if(!B){c(Error("No device connected"));return}Q(!0);try{let A=await B.sia.verifyPublicKey(0);return c(void 0),C(Q=>({...Q,publicKey0:A.publicKey,address0:A.address})),Q(!1),A}catch(A){Q(!1),c(A)}},[B]);return(0,D.useEffect)(()=>{if(!(null==B?void 0:B.transport))return;let A=setInterval(async()=>{(null==B?void 0:B.transport._disconnectEmitted)&&C(void 0)},2e3);return()=>clearInterval(A)},[null==B?void 0:B.transport]),{connect:s,verify:y,disconnect:M,device:B,error:g,setError:c,waitingForUser:A}}();return(0,C.jsx)(c.Provider,{value:B,children:Q})}},54525:function(A,Q,B){"use strict";B.d(Q,{k:function(){return o},r:function(){return a}});var C=B(52322),I=B(83448),E=B(28135),g=B(2784),w=B(18700),D=B(57165),c=B(88464),M=B(40361),s=B(68382),y=B(6391),n=B.n(y),h=B(75061);let k=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:A=>{let{data:Q}=A;return(0,C.jsx)(h.g,{trigger:(0,C.jsx)(I.zxk,{variant:"ghost",icon:"hover",children:(0,C.jsx)(D.EMN,{})}),contentProps:{align:"start"},wallet:Q})}},{id:"details",label:"name",category:"general",fixed:!0,render:A=>{let{data:{id:Q,name:B,description:E}}=A;return(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsx)(I.xvT,{weight:"bold",ellipsis:!0,children:B||Q}),E&&(0,C.jsx)(I.ua7,{content:(0,C.jsx)("pre",{children:(0,C.jsx)(I.nvN,{size:"12",className:"w-full whitespace-pre-wrap",children:E})}),children:(0,C.jsx)(I.nvN,{size:"12",children:E.split("\n")[0]})})]})}},{id:"balance",label:"balance",category:"general",contentClassName:"justify-end",render:function(A){let{data:{id:Q}}=A,B=(0,E.tM)({params:{id:Q}});return B.data?(0,C.jsxs)("div",{className:"flex flex-col gap-2 items-end",children:[(0,C.jsx)(I.ho9,{displayBoth:!0,size:"12",variant:"value",value:new(n())(B.data.siacoins)}),!!B.data.siafunds&&(0,C.jsx)(I.Sby,{size:"12",variant:"value",value:B.data.siafunds})]}):null}},{id:"type",label:"type",category:"general",render:A=>{var Q,B;let{data:{metadata:{type:E}}}=A;return(0,C.jsx)(I.ua7,{content:null===(Q=s._[E])||void 0===Q?void 0:Q.title,children:(0,C.jsxs)(I.Cts,{interactive:!1,className:"flex gap-0.5 items-center",children:[(0,C.jsx)(I.xvT,{color:"subtle",className:"scale-75 relative top-px",children:null===(B=s._[E])||void 0===B?void 0:B.icon}),E]})})}},{id:"status",label:"status",category:"general",render:A=>{let{data:Q,context:{walletAutoLockEnabled:B,walletAutoLockTimeout:E}}=A,{type:g}=Q.metadata,{status:w,activityAt:c}=Q.state,{unlock:s,lock:y}=Q.actions;if("seed"===g){let A=new Date().getTime()-c,Q=(0,M.l)(Math.max(E-A,0)),g=B?"The wallet is currently unlocked. The wallet will stay unlocked until it is inactive for ".concat(Q.amount.toFixed(0)," more ").concat(Q.units,", manually locked, or the app is closed."):"The wallet is currently unlocked. The wallet will stay unlocked until it is manually locked or the app is closed.";return(0,C.jsx)(I.zxk,{tip:"unlocked"===w?g:"The wallet is currently locked.",color:"unlocked"===w?"contrast":"verySubtle",variant:"ghost",onClick:A=>{A.stopPropagation(),"unlocked"===w?y():s()},children:"unlocked"===w?(0,C.jsx)(D.VmF,{}):(0,C.jsx)(D.Lur,{})})}return null}},{id:"createdAt",label:"created on",category:"general",render:A=>{let{data:{createdAt:Q}}=A;return Q?(0,C.jsx)(I.xvT,{size:"12",children:(0,c.rN)(Q,{dateStyle:"medium"})}):null}}];var K=B(5632),t=B(4300),U=B(27429),L=B(92762),i=B(64245),G=B(36219),p=B(99634);let r=(0,g.createContext)({}),a=()=>(0,g.useContext)(r);function o(A){let{children:Q}=A,B=function(){let A=(0,E.rB)({config:{swr:{refreshInterval:p.h}}}),Q=(0,K.useRouter)(),{limit:B,offset:C}=(0,I.It_)(50),{openDialog:D}=(0,i.Rh)(),{setOnLockCallback:M}=(0,G.Hv)(),{mnemonicCache:s,walletActivityAt:y,cacheWalletMnemonic:n,cachedMnemonicCount:h,lockAllWallets:r,walletAutoLockTimeout:a,setWalletAutoLockTimeout:o,setWalletAutoLockEnabled:N,walletAutoLockEnabled:e}=function(){let[A,Q]=(0,L.Z)("v0/wallets/walletAutoLockEnabled",{defaultValue:!0}),[B,C]=(0,L.Z)("v0/wallets/walletAutoLockTimeout",{defaultValue:(0,c.sW)(5)}),[I,E]=(0,g.useState)({}),[w,D]=(0,g.useState)({}),M=(0,g.useMemo)(()=>Object.keys(w).length,[w]),s=(0,g.useCallback)(A=>{E(Q=>({...Q,[A]:new Date().getTime()}))},[E]),y=(0,g.useCallback)((A,Q)=>{D(B=>({...B,[A]:Q})),Q&&s(A)},[D,s]),n=(0,g.useCallback)(()=>{if(!A)return;let Q=new Date().getTime()-B;for(let[A,B]of Object.entries(w))B&&(I[A]||0){D({})},[D]),k=(0,K.useRouter)(),i=(0,g.useCallback)(()=>{k.pathname.startsWith(t._.wallet.base)&&s(k.query.id)},[k,s]);return(0,U.Yp)({onAction:i,throttle:5e3,eventsThrottle:5e3}),(0,g.useEffect)(()=>{if(!A)return;let Q=setInterval(()=>{n()},5e3);return()=>{clearInterval(Q)}},[A]),{walletActivityAt:I,updateWalletActivityAt:s,mnemonicCache:w,cacheWalletMnemonic:y,lockAllWallets:h,cachedMnemonicCount:M,walletAutoLockTimeout:B,setWalletAutoLockTimeout:C,setWalletAutoLockEnabled:Q,walletAutoLockEnabled:A}}();(0,g.useEffect)(()=>{M("wallets",()=>{r()})},[]);let J=(0,g.useMemo)(()=>{if(A.data)return A.data.map(A=>{let{id:B,name:C,description:I,dateCreated:E,lastUpdated:g,metadata:w}=A;return{id:B,name:C,description:I,createdAt:new Date(E).getTime()||0,updatedAt:new Date(g).getTime()||0,metadata:w||{},raw:A,state:{mnemonic:s[B],status:s[B]?"unlocked":"locked",activityAt:y[B]},actions:{unlock:()=>D("walletUnlock",{walletId:B}),lock:()=>n(B,void 0)},onClick:()=>Q.push({pathname:t._.wallet.view,query:{id:B}})}})},[Q,A.data,s,y,D,n]),S=null==J?void 0:J.find(A=>A.id===Q.query.id),{filters:F,setFilter:l,removeFilter:Y,removeLastFilter:H,resetFilters:f}=(0,I.Wdu)(),{configurableColumns:d,visibleColumnIds:u,visibleColumns:R,sortableColumns:j,toggleColumnVisibility:b,setColumnsVisible:m,setColumnsHidden:Z,toggleSort:T,setSortDirection:P,setSortField:O,sortField:W,sortDirection:z,resetDefaultColumnVisibility:x}=(0,I.oy6)("walletd/v0/wallets",{columns:k,columnsDefaultVisible:w.gd,sortOptions:w.Fo,defaultSortField:w.nw}),{datasetFiltered:V,datasetPage:v}=(0,I._4u)({dataset:J,filters:F,sortField:W,sortDirection:z,offset:C,limit:B}),X=(0,I.LNN)({datasetPage:V,isValidating:A.isValidating,error:A.error,filters:F}),q=(0,g.useMemo)(()=>({walletAutoLockTimeout:a,walletAutoLockEnabled:e}),[e,a]);return{datasetState:X,error:A.error,datasetTotal:(null==J?void 0:J.length)||0,datasetFilteredTotal:(null==V?void 0:V.length)||0,datasetPageTotal:(null==V?void 0:V.length)||0,unlockedCount:h,visibleColumns:R,datasetPage:v,dataset:J,context:q,wallet:S,limit:B,offset:C,configurableColumns:d,visibleColumnIds:u,sortableColumns:j,toggleColumnVisibility:b,setColumnsVisible:m,setColumnsHidden:Z,toggleSort:T,setSortDirection:P,setSortField:O,sortField:W,filters:F,setFilter:l,removeFilter:Y,removeLastFilter:H,resetFilters:f,sortDirection:z,resetDefaultColumnVisibility:x,cacheWalletMnemonic:n,lockAllWallets:r,walletAutoLockTimeout:a,setWalletAutoLockTimeout:o,setWalletAutoLockEnabled:N,walletAutoLockEnabled:e}}();return(0,C.jsx)(r.Provider,{value:B,children:Q})}},18700:function(A,Q,B){"use strict";B.d(Q,{Fo:function(){return E},gd:function(){return C},nw:function(){return I}});let C=["actions","details","balance","type","status","createdAt"],I="name",E=[{id:"name",label:"name",category:"general"},{id:"type",label:"type",category:"general"},{id:"status",label:"status",category:"general"},{id:"createdAt",label:"created on",category:"general"}]},66510:function(A,Q,B){"use strict";B.d(Q,{B:function(){return E}});var C=B(83448),I=B(28135);function E(){var A;return(null===(A=(0,I.gM)().data)||void 0===A?void 0:A.name)==="zen"?C.nNd.explore.testnetZen:C.nNd.explore.mainnet}},16211:function(A,Q,B){"use strict";B.d(Q,{n:function(){return g}});var C=B(88464),I=B(36219),E=B(28135);function g(){var A;let{isUnlockedAndAuthedRoute:Q}=(0,I.Hv)(),B=(0,E.XC)({config:{swr:{refreshInterval:1e4}}}),C=(0,E.ek)({config:{swr:{refreshInterval:A=>w(A)?6e4:1e4}}}),g=(0,E.nH)(),D=B.data?null===(A=B.data)||void 0===A?void 0:A.height:0,c=Q&&D&&g?Number((100*Math.min(D/g,1)).toFixed(1)):0;return{isSynced:w(C.data),nodeBlockHeight:D,estimatedBlockHeight:g,syncPercent:c,moreThan100BlocksToSync:!!D&&!!g&&g-D>100,firstTimeSyncing:!!D&&!!g&&g-D>5e4}}function w(A){return!!A&&function(A){if(!A||!A.length)return!1;let Q=A[0],B=Date.now()-(0,C.yt)(2);return new Date(Q).getTime()>B}(A.prevTimestamps)}},40361:function(A,Q,B){"use strict";function C(A){return!A||A<1e3?{amount:0,units:"seconds"}:(A/=1e3)<60?{amount:Math.floor(100*A)/100,units:"seconds"}:{amount:Math.floor(A/60*100)/100,units:"minutes"}}B.d(Q,{l:function(){return C}})},39173:function(A,Q,B){"use strict";B.r(Q),B.d(Q,{default:function(){return AC}});var C=B(52322);B(21962);var I=B(83448),E=B(64245),g=B(2784),w=B(54525),D=B(18291),c=B(94589),M=B(71508),s=B(36331);let y=(0,g.createContext)({});function n(A){let{children:Q}=A,B=((0,g.useEffect)(()=>{(async()=>{await (0,s.x)()})()},[]),{});return(0,C.jsx)(y.Provider,{value:B,children:Q})}var h=B(28135),k=B(16211),K=B(70095),t=B(49435),U=B(4895);function L(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A);return Q.setHours(0,0,0,0),Q}var i=B(54042);function G(A){if(null===A||!0===A||!1===A)return NaN;var Q=Number(A);return isNaN(Q)?Q:Q<0?Math.ceil(Q):Math.floor(Q)}function p(A,Q){return(0,U.Z)(2,arguments),function(A,Q){return(0,U.Z)(2,arguments),new Date((0,t.Z)(A).getTime()+G(Q))}(A,-G(Q))}function r(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A),B=Q.getUTCDay();return Q.setUTCDate(Q.getUTCDate()-((B<1?7:0)+B-1)),Q.setUTCHours(0,0,0,0),Q}function a(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A),B=Q.getUTCFullYear(),C=new Date(0);C.setUTCFullYear(B+1,0,4),C.setUTCHours(0,0,0,0);var I=r(C),E=new Date(0);E.setUTCFullYear(B,0,4),E.setUTCHours(0,0,0,0);var g=r(E);return Q.getTime()>=I.getTime()?B+1:Q.getTime()>=g.getTime()?B:B-1}function o(A,Q){(0,U.Z)(1,arguments);var B=Q||{},C=B.locale,I=C&&C.options&&C.options.weekStartsOn,E=null==I?0:G(I),g=null==B.weekStartsOn?E:G(B.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=(0,t.Z)(A),D=w.getUTCDay();return w.setUTCDate(w.getUTCDate()-((D=1&&D<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(C+1,0,D),c.setUTCHours(0,0,0,0);var M=o(c,Q),s=new Date(0);s.setUTCFullYear(C,0,D),s.setUTCHours(0,0,0,0);var y=o(s,Q);return B.getTime()>=M.getTime()?C+1:B.getTime()>=y.getTime()?C:C-1}function e(A,Q){for(var B=Math.abs(A).toString();B.length0?B:1-B;return e("yy"===Q?C%100:C,Q.length)},M:function(A,Q){var B=A.getUTCMonth();return"M"===Q?String(B+1):e(B+1,2)},d:function(A,Q){return e(A.getUTCDate(),Q.length)},h:function(A,Q){return e(A.getUTCHours()%12||12,Q.length)},H:function(A,Q){return e(A.getUTCHours(),Q.length)},m:function(A,Q){return e(A.getUTCMinutes(),Q.length)},s:function(A,Q){return e(A.getUTCSeconds(),Q.length)},S:function(A,Q){var B=Q.length;return e(Math.floor(A.getUTCMilliseconds()*Math.pow(10,B-3)),Q.length)}},S={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function F(A,Q){var B=A>0?"-":"+",C=Math.abs(A),I=Math.floor(C/60),E=C%60;return 0===E?B+String(I):B+String(I)+(Q||"")+e(E,2)}function l(A,Q){return A%60==0?(A>0?"-":"+")+e(Math.abs(A)/60,2):Y(A,Q)}function Y(A,Q){var B=Math.abs(A);return(A>0?"-":"+")+e(Math.floor(B/60),2)+(Q||"")+e(B%60,2)}var H={G:function(A,Q,B){var C=A.getUTCFullYear()>0?1:0;switch(Q){case"G":case"GG":case"GGG":return B.era(C,{width:"abbreviated"});case"GGGGG":return B.era(C,{width:"narrow"});default:return B.era(C,{width:"wide"})}},y:function(A,Q,B){if("yo"===Q){var C=A.getUTCFullYear();return B.ordinalNumber(C>0?C:1-C,{unit:"year"})}return J.y(A,Q)},Y:function(A,Q,B,C){var I=N(A,C),E=I>0?I:1-I;return"YY"===Q?e(E%100,2):"Yo"===Q?B.ordinalNumber(E,{unit:"year"}):e(E,Q.length)},R:function(A,Q){return e(a(A),Q.length)},u:function(A,Q){return e(A.getUTCFullYear(),Q.length)},Q:function(A,Q,B){var C=Math.ceil((A.getUTCMonth()+1)/3);switch(Q){case"Q":return String(C);case"QQ":return e(C,2);case"Qo":return B.ordinalNumber(C,{unit:"quarter"});case"QQQ":return B.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return B.quarter(C,{width:"narrow",context:"formatting"});default:return B.quarter(C,{width:"wide",context:"formatting"})}},q:function(A,Q,B){var C=Math.ceil((A.getUTCMonth()+1)/3);switch(Q){case"q":return String(C);case"qq":return e(C,2);case"qo":return B.ordinalNumber(C,{unit:"quarter"});case"qqq":return B.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return B.quarter(C,{width:"narrow",context:"standalone"});default:return B.quarter(C,{width:"wide",context:"standalone"})}},M:function(A,Q,B){var C=A.getUTCMonth();switch(Q){case"M":case"MM":return J.M(A,Q);case"Mo":return B.ordinalNumber(C+1,{unit:"month"});case"MMM":return B.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return B.month(C,{width:"narrow",context:"formatting"});default:return B.month(C,{width:"wide",context:"formatting"})}},L:function(A,Q,B){var C=A.getUTCMonth();switch(Q){case"L":return String(C+1);case"LL":return e(C+1,2);case"Lo":return B.ordinalNumber(C+1,{unit:"month"});case"LLL":return B.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return B.month(C,{width:"narrow",context:"standalone"});default:return B.month(C,{width:"wide",context:"standalone"})}},w:function(A,Q,B,C){var I=function(A,Q){(0,U.Z)(1,arguments);var B=(0,t.Z)(A);return Math.round((o(B,Q).getTime()-(function(A,Q){(0,U.Z)(1,arguments);var B=Q||{},C=B.locale,I=C&&C.options&&C.options.firstWeekContainsDate,E=null==I?1:G(I),g=null==B.firstWeekContainsDate?E:G(B.firstWeekContainsDate),w=N(A,Q),D=new Date(0);return D.setUTCFullYear(w,0,g),D.setUTCHours(0,0,0,0),o(D,Q)})(B,Q).getTime())/6048e5)+1}(A,C);return"wo"===Q?B.ordinalNumber(I,{unit:"week"}):e(I,Q.length)},I:function(A,Q,B){var C=function(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A);return Math.round((r(Q).getTime()-(function(A){(0,U.Z)(1,arguments);var Q=a(A),B=new Date(0);return B.setUTCFullYear(Q,0,4),B.setUTCHours(0,0,0,0),r(B)})(Q).getTime())/6048e5)+1}(A);return"Io"===Q?B.ordinalNumber(C,{unit:"week"}):e(C,Q.length)},d:function(A,Q,B){return"do"===Q?B.ordinalNumber(A.getUTCDate(),{unit:"date"}):J.d(A,Q)},D:function(A,Q,B){var C=function(A){(0,U.Z)(1,arguments);var Q=(0,t.Z)(A),B=Q.getTime();return Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0),Math.floor((B-Q.getTime())/864e5)+1}(A);return"Do"===Q?B.ordinalNumber(C,{unit:"dayOfYear"}):e(C,Q.length)},E:function(A,Q,B){var C=A.getUTCDay();switch(Q){case"E":case"EE":case"EEE":return B.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return B.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return B.day(C,{width:"short",context:"formatting"});default:return B.day(C,{width:"wide",context:"formatting"})}},e:function(A,Q,B,C){var I=A.getUTCDay(),E=(I-C.weekStartsOn+8)%7||7;switch(Q){case"e":return String(E);case"ee":return e(E,2);case"eo":return B.ordinalNumber(E,{unit:"day"});case"eee":return B.day(I,{width:"abbreviated",context:"formatting"});case"eeeee":return B.day(I,{width:"narrow",context:"formatting"});case"eeeeee":return B.day(I,{width:"short",context:"formatting"});default:return B.day(I,{width:"wide",context:"formatting"})}},c:function(A,Q,B,C){var I=A.getUTCDay(),E=(I-C.weekStartsOn+8)%7||7;switch(Q){case"c":return String(E);case"cc":return e(E,Q.length);case"co":return B.ordinalNumber(E,{unit:"day"});case"ccc":return B.day(I,{width:"abbreviated",context:"standalone"});case"ccccc":return B.day(I,{width:"narrow",context:"standalone"});case"cccccc":return B.day(I,{width:"short",context:"standalone"});default:return B.day(I,{width:"wide",context:"standalone"})}},i:function(A,Q,B){var C=A.getUTCDay(),I=0===C?7:C;switch(Q){case"i":return String(I);case"ii":return e(I,Q.length);case"io":return B.ordinalNumber(I,{unit:"day"});case"iii":return B.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return B.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return B.day(C,{width:"short",context:"formatting"});default:return B.day(C,{width:"wide",context:"formatting"})}},a:function(A,Q,B){var C=A.getUTCHours()/12>=1?"pm":"am";switch(Q){case"a":case"aa":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(A,Q,B){var C,I=A.getUTCHours();switch(C=12===I?S.noon:0===I?S.midnight:I/12>=1?"pm":"am",Q){case"b":case"bb":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(A,Q,B){var C,I=A.getUTCHours();switch(C=I>=17?S.evening:I>=12?S.afternoon:I>=4?S.morning:S.night,Q){case"B":case"BB":case"BBB":return B.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return B.dayPeriod(C,{width:"narrow",context:"formatting"});default:return B.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(A,Q,B){if("ho"===Q){var C=A.getUTCHours()%12;return 0===C&&(C=12),B.ordinalNumber(C,{unit:"hour"})}return J.h(A,Q)},H:function(A,Q,B){return"Ho"===Q?B.ordinalNumber(A.getUTCHours(),{unit:"hour"}):J.H(A,Q)},K:function(A,Q,B){var C=A.getUTCHours()%12;return"Ko"===Q?B.ordinalNumber(C,{unit:"hour"}):e(C,Q.length)},k:function(A,Q,B){var C=A.getUTCHours();return(0===C&&(C=24),"ko"===Q)?B.ordinalNumber(C,{unit:"hour"}):e(C,Q.length)},m:function(A,Q,B){return"mo"===Q?B.ordinalNumber(A.getUTCMinutes(),{unit:"minute"}):J.m(A,Q)},s:function(A,Q,B){return"so"===Q?B.ordinalNumber(A.getUTCSeconds(),{unit:"second"}):J.s(A,Q)},S:function(A,Q){return J.S(A,Q)},X:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();if(0===I)return"Z";switch(Q){case"X":return l(I);case"XXXX":case"XX":return Y(I);default:return Y(I,":")}},x:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"x":return l(I);case"xxxx":case"xx":return Y(I);default:return Y(I,":")}},O:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"O":case"OO":case"OOO":return"GMT"+F(I,":");default:return"GMT"+Y(I,":")}},z:function(A,Q,B,C){var I=(C._originalDate||A).getTimezoneOffset();switch(Q){case"z":case"zz":case"zzz":return"GMT"+F(I,":");default:return"GMT"+Y(I,":")}},t:function(A,Q,B,C){return e(Math.floor((C._originalDate||A).getTime()/1e3),Q.length)},T:function(A,Q,B,C){return e((C._originalDate||A).getTime(),Q.length)}};function f(A,Q){switch(A){case"P":return Q.date({width:"short"});case"PP":return Q.date({width:"medium"});case"PPP":return Q.date({width:"long"});default:return Q.date({width:"full"})}}function d(A,Q){switch(A){case"p":return Q.time({width:"short"});case"pp":return Q.time({width:"medium"});case"ppp":return Q.time({width:"long"});default:return Q.time({width:"full"})}}var u={p:d,P:function(A,Q){var B,C=A.match(/(P+)(p+)?/)||[],I=C[1],E=C[2];if(!E)return f(A,Q);switch(I){case"P":B=Q.dateTime({width:"short"});break;case"PP":B=Q.dateTime({width:"medium"});break;case"PPP":B=Q.dateTime({width:"long"});break;default:B=Q.dateTime({width:"full"})}return B.replace("{{date}}",f(I,Q)).replace("{{time}}",d(E,Q))}},R=["D","DD"],j=["YY","YYYY"];function b(A,Q,B){if("YYYY"===A)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(Q,"`) for formatting years to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("YY"===A)throw RangeError("Use `yy` instead of `YY` (in `".concat(Q,"`) for formatting years to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("D"===A)throw RangeError("Use `d` instead of `D` (in `".concat(Q,"`) for formatting days of the month to the input `").concat(B,"`; see: https://git.io/fxCyr"));if("DD"===A)throw RangeError("Use `dd` instead of `DD` (in `".concat(Q,"`) for formatting days of the month to the input `").concat(B,"`; see: https://git.io/fxCyr"))}var m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,P=/''/g,O=/[a-zA-Z]/,W=B(99634),z=B(88464),x=B(36219),V=B(27050);function v(){var A;let Q=(0,k.n)(),B=(0,h.R2)({config:{swr:{refreshInterval:A=>{var B;return(null==A?void 0:null===(B=A.index)||void 0===B?void 0:B.height){C&&!Q&&B(A=>A.startsWith(V.Xf)),I(Q)},[Q])}({isScanning:w}),B.data&&w)?(0,C.jsx)("div",{"data-testid":"rescanStatusPanel",className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,C.jsxs)(I.s_4,{className:"px-2 py-2 w-[400px] overflow-hidden",children:[(0,C.jsx)(I.xvT,{weight:"medium",className:"pb-2",children:"Rescanning the blockchain"}),(0,C.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,C.jsx)(I.kod,{variant:"accent",value:B.data.index.height,max:Q.nodeBlockHeight}),(0,C.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,C.jsx)(I.xvT,{color:"verySubtle",size:"12",ellipsis:!0,children:B.data.error?"Stopped":"Scanning..."}),(0,C.jsx)(I.xvT,{color:"verySubtle",size:"12",noWrap:!0,children:"".concat(B.data.index.height.toLocaleString()," / ").concat(Q.nodeBlockHeight.toLocaleString())})]})]}),(0,C.jsx)(I.Z0O,{className:"w-full mt-2 mb-1"}),(0,C.jsxs)("div",{className:"flex justify-between items-center",children:[B.data.error&&(0,C.jsx)(I.xvT,{color:"red",size:"12",children:"Error rescanning the blockchain"}),(0,C.jsx)("div",{className:"flex-1"}),(0,C.jsxs)(I.xvT,{color:"subtle",size:"12",children:["Started"," ",function(A,Q,B){(0,U.Z)(2,arguments);var C,I=(0,t.Z)(A),E=(0,t.Z)(Q),g=B||{},w=g.locale,D=void 0===w?i.Z:w,c=g.weekStartsOn,M=void 0===c?0:c;if(!D.localize)throw RangeError("locale must contain localize property");if(!D.formatLong)throw RangeError("locale must contain formatLong property");if(!D.formatRelative)throw RangeError("locale must contain formatRelative property");var s=function(A,Q){(0,U.Z)(2,arguments);var B=L(A),C=L(Q);return Math.round((B.getTime()-(0,K.Z)(B)-(C.getTime()-(0,K.Z)(C)))/864e5)}(I,E);if(isNaN(s))throw RangeError("Invalid time value");C=s<-6?"other":s<-1?"lastWeek":s<0?"yesterday":s<1?"today":s<2?"tomorrow":s<7?"nextWeek":"other";var y=p(I,(0,K.Z)(I)),n=p(E,(0,K.Z)(E));return function(A,Q,B){(0,U.Z)(2,arguments);var C=String(Q),I=B||{},E=I.locale||i.Z,g=E.options&&E.options.firstWeekContainsDate,w=null==g?1:G(g),D=null==I.firstWeekContainsDate?w:G(I.firstWeekContainsDate);if(!(D>=1&&D<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=E.options&&E.options.weekStartsOn,M=null==c?0:G(c),s=null==I.weekStartsOn?M:G(I.weekStartsOn);if(!(s>=0&&s<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw RangeError("locale must contain localize property");if(!E.formatLong)throw RangeError("locale must contain formatLong property");var y=(0,t.Z)(A);if(!function(A){return(0,U.Z)(1,arguments),(!!function(A){return(0,U.Z)(1,arguments),A instanceof Date||"object"==typeof A&&"[object Date]"===Object.prototype.toString.call(A)}(A)||"number"==typeof A)&&!isNaN(Number((0,t.Z)(A)))}(y))throw RangeError("Invalid time value");var n=(0,K.Z)(y),h=p(y,n),k={firstWeekContainsDate:D,weekStartsOn:s,locale:E,_originalDate:y};return C.match(Z).map(function(A){var Q=A[0];return"p"===Q||"P"===Q?(0,u[Q])(A,E.formatLong,k):A}).join("").match(m).map(function(B){if("''"===B)return"'";var C=B[0];if("'"===C)return B.match(T)[1].replace(P,"'");var g=H[C];if(g)return I.useAdditionalWeekYearTokens||-1===j.indexOf(B)||b(B,Q,A),I.useAdditionalDayOfYearTokens||-1===R.indexOf(B)||b(B,Q,A),g(h,B,E.localize,k);if(C.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return B}).join("")}(I,D.formatRelative(C,y,n,{locale:D,weekStartsOn:M}),{locale:D,weekStartsOn:M})}(new Date(B.data.startTime),new Date)]})]}),B.data.error&&(0,C.jsx)("div",{className:"flex flex-col gap-1 overflow-hidden pt-1",children:(0,C.jsx)(I.xvT,{color:"contrast",size:"12",children:B.data.error})})]})}):null}function X(A){let{children:Q}=A;return(0,C.jsx)(n,{children:(0,C.jsx)(E.Tu,{children:(0,C.jsx)(M.d,{children:(0,C.jsx)(w.k,{children:(0,C.jsx)(D.OZ,{children:(0,C.jsxs)(c.Yl,{children:[(0,C.jsx)(E.xQ,{}),(0,C.jsx)(v,{}),Q]})})})})})})}var q=B(4300),_=B(29773),$=B.n(_),AA=B(17282),AQ=B.n(AA);let AB=(0,B(82851).cx)($().variable,AQ().variable);function AC(A){return(0,C.jsx)(I.PD$,{className:AB,fallback:A.pageProps.fallback,passwordProtectRequestHooks:!0,lockRoutes:q._,children:(0,C.jsx)(X,{children:(0,C.jsx)(AI,{...A})})})}function AI(A){let{Component:Q,pageProps:B}=A,I=Q.Layout,E=Q.useLayoutProps(),{fallback:g,...w}=B;return(0,C.jsx)(I,{...E,children:(0,C.jsx)(Q,{...w})})}},83448:function(A,Q,B){"use strict";let C,I,E,g,w;B.d(Q,{bZj:function(){return cs},tU3:function(){return lX},zXq:function(){return YS},juT:function(){return lP},Cts:function(){return cY},WVB:function(){return Kk},zxk:function(){return cD},EKh:function(){return cf},QHy:function(){return dg},HfT:function(){return dc},ncR:function(){return ST},VqE:function(){return yS},h_2:function(){return Ki},Xiv:function(){return KG},Juw:function(){return Kp},KpP:function(){return Kr},ubH:function(){return lR},cp7:function(){return SO},Qyk:function(){return SP},jIp:function(){return ds},WyV:function(){return dy},qGu:function(){return Yl},QBj:function(){return YF},yEL:function(){return l7},Bau:function(){return dn},ZqQ:function(){return Sx},X6q:function(){return Ke},Yqd:function(){return UC},__J:function(){return Ku},rUS:function(){return Kb},Qjf:function(){return Km},xgg:function(){return eW},kFS:function(){return KK},FzK:function(){return dE},Clw:function(){return Kh},PD$:function(){return dK},Wxm:function(){return Uw},uDJ:function(){return ll},wFK:function(){return lY},s_4:function(){return Cg},nvN:function(){return CI},u5Q:function(){return f9},j4H:function(){return UI},J2e:function(){return ts},kod:function(){return tl},tIK:function(){return YY},PhF:function(){return Ug},Wh3:function(){return U5},Z0O:function(){return Kc},DLL:function(){return f5},KJW:function(){return lz},rsf:function(){return UF},D_D:function(){return Yu},iA_:function(){return lF},t6k:function(){return dM},xvT:function(){return CC},ua7:function(){return cg},XxW:function(){return SB},YKL:function(){return SE},ho9:function(){return SD},Sby:function(){return SI},hKn:function(){return f8},vQq:function(){return J7},I13:function(){return SQ},OHV:function(){return J5},OPV:function(){return J2},$Gg:function(){return SA},_4u:function(){return de},Wdu:function(){return dN},LNN:function(){return lq},t0Y:function(){return YH},WsO:function(){return l6},It_:function(){return dS},Uu5:function(){return dJ},oy6:function(){return dr},nNd:function(){return f3}});var D,c,M,s,y,n,h,k,K,t,U,L,i,G,p,r,a,o,N,e,J,S,F,l,Y,H,f,d,u,R,j,b,m,Z,T,P,O,W,z,x,V,v,X,q,_,$,AA,AQ,AB,AC,AI,AE,Ag,Aw,AD,Ac,AM,As,Ay,An={};B.r(An),B.d(An,{useDropzone:function(){return GL}});var Ah=B(52322),Ak=B(2784),AK=B.t(Ak,2);function At(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}function AU(...A){return Ak.useCallback(At(...A),A)}var AL=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A,I=Ak.Children.toArray(B),E=I.find(Ap);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:Ak.Children.count(A)>1?Ak.Children.only(null):Ak.isValidElement(A)?A.props.children:null);return(0,Ah.jsx)(Ai,{...C,ref:Q,children:Ak.isValidElement(A)?Ak.cloneElement(A,void 0,B):null})}return(0,Ah.jsx)(Ai,{...C,ref:Q,children:B})});AL.displayName="Slot";var Ai=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A;if(Ak.isValidElement(B)){let A,I;let E=(A=Object.getOwnPropertyDescriptor(B.props,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.ref:(A=Object.getOwnPropertyDescriptor(B,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.props.ref:B.props.ref||B.ref;return Ak.cloneElement(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?I&&E?B[C]=(...A)=>{E(...A),I(...A)}:I&&(B[C]=I):"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:Q?At(Q,E):E})}return Ak.Children.count(B)>1?Ak.Children.only(null):null});Ai.displayName="SlotClone";var AG=({children:A})=>(0,Ah.jsx)(Ah.Fragment,{children:A});function Ap(A){return Ak.isValidElement(A)&&A.type===AG}function Ar(A){let Q=Ak.useRef(A);return Ak.useEffect(()=>{Q.current=A}),Ak.useMemo(()=>(...A)=>Q.current?.(...A),[])}function Aa({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=Ak.useState(A),[C]=B,I=Ak.useRef(C),E=Ar(Q);return Ak.useEffect(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=Ar(B);return[g,Ak.useCallback(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}var Ao=B(28316),AN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=Ak.forwardRef((A,B)=>{let{asChild:C,...I}=A,E=C?AL:Q;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Ah.jsx)(E,{...I,ref:B})});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{});function Ae(A){let Q=Ak.useRef(A);return Ak.useEffect(()=>{Q.current=A}),Ak.useMemo(()=>(...A)=>Q.current?.(...A),[])}var AJ=globalThis?.document?Ak.useLayoutEffect:()=>{};function AS(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}var AF=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A,I=Ak.Children.toArray(B),E=I.find(AH);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:Ak.Children.count(A)>1?Ak.Children.only(null):Ak.isValidElement(A)?A.props.children:null);return(0,Ah.jsx)(Al,{...C,ref:Q,children:Ak.isValidElement(A)?Ak.cloneElement(A,void 0,B):null})}return(0,Ah.jsx)(Al,{...C,ref:Q,children:B})});AF.displayName="Slot";var Al=Ak.forwardRef((A,Q)=>{let{children:B,...C}=A;if(Ak.isValidElement(B)){let A,I;let E=(A=Object.getOwnPropertyDescriptor(B.props,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.ref:(A=Object.getOwnPropertyDescriptor(B,"ref")?.get)&&"isReactWarning"in A&&A.isReactWarning?B.props.ref:B.props.ref||B.ref;return Ak.cloneElement(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?I&&E?B[C]=(...A)=>{E(...A),I(...A)}:I&&(B[C]=I):"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:Q?AS(Q,E):E})}return Ak.Children.count(B)>1?Ak.Children.only(null):null});Al.displayName="SlotClone";var AY=({children:A})=>(0,Ah.jsx)(Ah.Fragment,{children:A});function AH(A){return Ak.isValidElement(A)&&A.type===AY}var Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=Ak.forwardRef((A,B)=>{let{asChild:C,...I}=A,E=C?AF:Q;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Ah.jsx)(E,{...I,ref:B})});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{}),Ad=globalThis?.document?Ak.useLayoutEffect:()=>{},Au=A=>{let Q,B;let{present:C,children:I}=A,E=function(A){var Q,B;let[C,I]=Ak.useState(),E=Ak.useRef({}),g=Ak.useRef(A),w=Ak.useRef("none"),[D,c]=(Q=A?"mounted":"unmounted",B={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},Ak.useReducer((A,Q)=>B[A][Q]??A,Q));return Ak.useEffect(()=>{let A=AR(E.current);w.current="mounted"===D?A:"none"},[D]),Ad(()=>{let Q=E.current,B=g.current;if(B!==A){let C=w.current,I=AR(Q);A?c("MOUNT"):"none"===I||Q?.display==="none"?c("UNMOUNT"):B&&C!==I?c("ANIMATION_OUT"):c("UNMOUNT"),g.current=A}},[A,c]),Ad(()=>{if(C){let A;let Q=C.ownerDocument.defaultView??window,B=B=>{let I=AR(E.current).includes(B.animationName);if(B.target===C&&I&&(c("ANIMATION_END"),!g.current)){let B=C.style.animationFillMode;C.style.animationFillMode="forwards",A=Q.setTimeout(()=>{"forwards"===C.style.animationFillMode&&(C.style.animationFillMode=B)})}},I=A=>{A.target===C&&(w.current=AR(E.current))};return C.addEventListener("animationstart",I),C.addEventListener("animationcancel",B),C.addEventListener("animationend",B),()=>{Q.clearTimeout(A),C.removeEventListener("animationstart",I),C.removeEventListener("animationcancel",B),C.removeEventListener("animationend",B)}}c("ANIMATION_END")},[C,c]),{isPresent:["mounted","unmountSuspended"].includes(D),ref:Ak.useCallback(A=>{A&&(E.current=getComputedStyle(A)),I(A)},[])}}(C),g="function"==typeof I?I({present:E.isPresent}):Ak.Children.only(I),w=function(...A){return Ak.useCallback(function(...A){return Q=>A.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}(...A),A)}(E.ref,(Q=Object.getOwnPropertyDescriptor(g.props,"ref")?.get)&&"isReactWarning"in Q&&Q.isReactWarning?g.ref:(Q=Object.getOwnPropertyDescriptor(g,"ref")?.get)&&"isReactWarning"in Q&&Q.isReactWarning?g.props.ref:g.props.ref||g.ref);return"function"==typeof I||E.isPresent?Ak.cloneElement(g,{ref:w}):null};function AR(A){return A?.animationName||"none"}Au.displayName="Presence";var Aj=globalThis?.document?Ak.useLayoutEffect:()=>{},Ab=AK["useId".toString()]||(()=>void 0),Am=0;function AZ(A){let[Q,B]=Ak.useState(Ab());return Aj(()=>{A||B(A=>A??String(Am++))},[A]),A||(Q?`radix-${Q}`:"")}var AT="Collapsible",[AP,AO]=function(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>Ak.createContext(A));return function(B){let C=B?.[A]||Q;return Ak.useMemo(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=Ak.createContext(C),E=B.length;B=[...B,C];let g=Q=>{let{scope:B,children:C,...g}=Q,w=B?.[A]?.[E]||I,D=Ak.useMemo(()=>g,Object.values(g));return(0,Ah.jsx)(w.Provider,{value:D,children:C})};return g.displayName=Q+"Provider",[g,function(B,g){let w=g?.[A]?.[E]||I,D=Ak.useContext(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return Ak.useMemo(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}(AT),[AW,Az]=AP(AT),Ax=Ak.forwardRef((A,Q)=>{let{__scopeCollapsible:B,open:C,defaultOpen:I,disabled:E,onOpenChange:g,...w}=A,[D=!1,c]=function({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=Ak.useState(A),[C]=B,I=Ak.useRef(C),E=Ae(Q);return Ak.useEffect(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=Ae(B);return[g,Ak.useCallback(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}({prop:C,defaultProp:I,onChange:g});return(0,Ah.jsx)(AW,{scope:B,disabled:E,contentId:AZ(),open:D,onOpenToggle:Ak.useCallback(()=>c(A=>!A),[c]),children:(0,Ah.jsx)(Af.div,{"data-state":A$(D),"data-disabled":E?"":void 0,...w,ref:Q})})});Ax.displayName=AT;var AV="CollapsibleTrigger",Av=Ak.forwardRef((A,Q)=>{let{__scopeCollapsible:B,...C}=A,I=Az(AV,B);return(0,Ah.jsx)(Af.button,{type:"button","aria-controls":I.contentId,"aria-expanded":I.open||!1,"data-state":A$(I.open),"data-disabled":I.disabled?"":void 0,disabled:I.disabled,...C,ref:Q,onClick:function(A,Q,{checkForDefaultPrevented:B=!0}={}){return function(C){if(A?.(C),!1===B||!C.defaultPrevented)return Q?.(C)}}(A.onClick,I.onOpenToggle)})});Av.displayName=AV;var AX="CollapsibleContent",Aq=Ak.forwardRef((A,Q)=>{let{forceMount:B,...C}=A,I=Az(AX,A.__scopeCollapsible);return(0,Ah.jsx)(Au,{present:B||I.open,children:({present:A})=>(0,Ah.jsx)(A_,{...C,ref:Q,present:A})})});Aq.displayName=AX;var A_=Ak.forwardRef((A,Q)=>{let{__scopeCollapsible:B,present:C,children:I,...E}=A,g=Az(AX,B),[w,D]=Ak.useState(C),c=Ak.useRef(null),M=function(...A){return Ak.useCallback(AS(...A),A)}(Q,c),s=Ak.useRef(0),y=s.current,n=Ak.useRef(0),h=n.current,k=g.open||w,K=Ak.useRef(k),t=Ak.useRef();return Ak.useEffect(()=>{let A=requestAnimationFrame(()=>K.current=!1);return()=>cancelAnimationFrame(A)},[]),AJ(()=>{let A=c.current;if(A){t.current=t.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";let Q=A.getBoundingClientRect();s.current=Q.height,n.current=Q.width,K.current||(A.style.transitionDuration=t.current.transitionDuration,A.style.animationName=t.current.animationName),D(C)}},[g.open,C]),(0,Ah.jsx)(Af.div,{"data-state":A$(g.open),"data-disabled":g.disabled?"":void 0,id:g.contentId,hidden:!k,...E,ref:M,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...A.style},children:k&&I})});function A$(A){return A?"open":"closed"}var A0=Ak.createContext(void 0),A8="Accordion",A3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A1,A4,A2]=function(A){let Q=A+"CollectionProvider",[B,C]=function(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>Ak.createContext(A));return function(B){let C=B?.[A]||Q;return Ak.useMemo(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=Ak.createContext(C),E=B.length;function g(Q){let{scope:B,children:C,...g}=Q,w=B?.[A][E]||I,D=Ak.useMemo(()=>g,Object.values(g));return(0,Ah.jsx)(w.Provider,{value:D,children:C})}return B=[...B,C],g.displayName=Q+"Provider",[g,function(B,g){let w=g?.[A][E]||I,D=Ak.useContext(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return Ak.useMemo(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}(Q),[I,E]=B(Q,{collectionRef:{current:null},itemMap:new Map}),g=A=>{let{scope:Q,children:B}=A,C=Ak.useRef(null),E=Ak.useRef(new Map).current;return(0,Ah.jsx)(I,{scope:Q,itemMap:E,collectionRef:C,children:B})};g.displayName=Q;let w=A+"CollectionSlot",D=Ak.forwardRef((A,Q)=>{let{scope:B,children:C}=A,I=AU(Q,E(w,B).collectionRef);return(0,Ah.jsx)(AL,{ref:I,children:C})});D.displayName=w;let c=A+"CollectionItemSlot",M="data-radix-collection-item",s=Ak.forwardRef((A,Q)=>{let{scope:B,children:C,...I}=A,g=Ak.useRef(null),w=AU(Q,g),D=E(c,B);return Ak.useEffect(()=>(D.itemMap.set(g,{ref:g,...I}),()=>void D.itemMap.delete(g))),(0,Ah.jsx)(AL,{[M]:"",ref:w,children:C})});return s.displayName=c,[{Provider:g,Slot:D,ItemSlot:s},function(Q){let B=E(A+"CollectionConsumer",Q);return Ak.useCallback(()=>{let A=B.collectionRef.current;if(!A)return[];let Q=Array.from(A.querySelectorAll(`[${M}]`));return Array.from(B.itemMap.values()).sort((A,B)=>Q.indexOf(A.ref.current)-Q.indexOf(B.ref.current))},[B.collectionRef,B.itemMap])},C]}(A8),[A5,A9]=function(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>Ak.createContext(A));return function(B){let C=B?.[A]||Q;return Ak.useMemo(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=Ak.createContext(C),E=B.length;B=[...B,C];let g=Q=>{let{scope:B,children:C,...g}=Q,w=B?.[A]?.[E]||I,D=Ak.useMemo(()=>g,Object.values(g));return(0,Ah.jsx)(w.Provider,{value:D,children:C})};return g.displayName=Q+"Provider",[g,function(B,g){let w=g?.[A]?.[E]||I,D=Ak.useContext(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return Ak.useMemo(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}(A8,[A2,AO]),A6=AO();Ak.forwardRef((A,Q)=>{let{type:B,...C}=A;return(0,Ah.jsx)(A1.Provider,{scope:A.__scopeAccordion,children:"multiple"===B?(0,Ah.jsx)(QI,{...C,ref:Q}):(0,Ah.jsx)(QC,{...C,ref:Q})})}).displayName=A8;var[A7,QA]=A5(A8),[QQ,QB]=A5(A8,{collapsible:!1}),QC=Ak.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},collapsible:E=!1,...g}=A,[w,D]=Aa({prop:B,defaultProp:C,onChange:I});return(0,Ah.jsx)(A7,{scope:A.__scopeAccordion,value:w?[w]:[],onItemOpen:D,onItemClose:Ak.useCallback(()=>E&&D(""),[E,D]),children:(0,Ah.jsx)(QQ,{scope:A.__scopeAccordion,collapsible:E,children:(0,Ah.jsx)(Qw,{...g,ref:Q})})})}),QI=Ak.forwardRef((A,Q)=>{let{value:B,defaultValue:C,onValueChange:I=()=>{},...E}=A,[g=[],w]=Aa({prop:B,defaultProp:C,onChange:I}),D=Ak.useCallback(A=>w((Q=[])=>[...Q,A]),[w]),c=Ak.useCallback(A=>w((Q=[])=>Q.filter(Q=>Q!==A)),[w]);return(0,Ah.jsx)(A7,{scope:A.__scopeAccordion,value:g,onItemOpen:D,onItemClose:c,children:(0,Ah.jsx)(QQ,{scope:A.__scopeAccordion,collapsible:!0,children:(0,Ah.jsx)(Qw,{...E,ref:Q})})})}),[QE,Qg]=A5(A8),Qw=Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,disabled:C,dir:I,orientation:E="vertical",...g}=A,w=AU(Ak.useRef(null),Q),D=A4(B),c="ltr"===function(A){let Q=Ak.useContext(A0);return A||Q||"ltr"}(I),M=function(A,Q,{checkForDefaultPrevented:B=!0}={}){return function(C){if(A?.(C),!1===B||!C.defaultPrevented)return Q?.(C)}}(A.onKeyDown,A=>{if(!A3.includes(A.key))return;let Q=A.target,B=D().filter(A=>!A.ref.current?.disabled),C=B.findIndex(A=>A.ref.current===Q),I=B.length;if(-1===C)return;A.preventDefault();let g=C,w=I-1,M=()=>{(g=C+1)>w&&(g=0)},s=()=>{(g=C-1)<0&&(g=w)};switch(A.key){case"Home":g=0;break;case"End":g=w;break;case"ArrowRight":"horizontal"===E&&(c?M():s());break;case"ArrowDown":"vertical"===E&&M();break;case"ArrowLeft":"horizontal"===E&&(c?s():M());break;case"ArrowUp":"vertical"===E&&s()}let y=g%I;B[y].ref.current?.focus()});return(0,Ah.jsx)(QE,{scope:B,disabled:C,direction:I,orientation:E,children:(0,Ah.jsx)(A1.Slot,{scope:B,children:(0,Ah.jsx)(AN.div,{...g,"data-orientation":E,ref:w,onKeyDown:C?void 0:M})})})}),QD="AccordionItem",[Qc,QM]=A5(QD);Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,value:C,...I}=A,E=Qg(QD,B),g=QA(QD,B),w=A6(B),D=AZ(),c=C&&g.value.includes(C)||!1,M=E.disabled||A.disabled;return(0,Ah.jsx)(Qc,{scope:B,open:c,disabled:M,triggerId:D,children:(0,Ah.jsx)(Ax,{"data-orientation":E.orientation,"data-state":Qh(c),...w,...I,ref:Q,disabled:M,open:c,onOpenChange:A=>{A?g.onItemOpen(C):g.onItemClose(C)}})})}).displayName=QD;var Qs="AccordionHeader";Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,...C}=A,I=Qg(A8,B),E=QM(Qs,B);return(0,Ah.jsx)(AN.h3,{"data-orientation":I.orientation,"data-state":Qh(E.open),"data-disabled":E.disabled?"":void 0,...C,ref:Q})}).displayName=Qs;var Qy="AccordionTrigger";Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,...C}=A,I=Qg(A8,B),E=QM(Qy,B),g=QB(Qy,B),w=A6(B);return(0,Ah.jsx)(A1.ItemSlot,{scope:B,children:(0,Ah.jsx)(Av,{"aria-disabled":E.open&&!g.collapsible||void 0,"data-orientation":I.orientation,id:E.triggerId,...w,...C,ref:Q})})}).displayName=Qy;var Qn="AccordionContent";function Qh(A){return A?"open":"closed"}Ak.forwardRef((A,Q)=>{let{__scopeAccordion:B,...C}=A,I=Qg(A8,B),E=QM(Qn,B),g=A6(B);return(0,Ah.jsx)(Aq,{role:"region","aria-labelledby":E.triggerId,"data-orientation":I.orientation,...g,...C,ref:Q,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...A.style}})}).displayName=Qn;var Qk=B(82851);function QK(){return(QK=Object.assign?Object.assign.bind():function(A){for(var Q=1;QA.forEach(A=>{"function"==typeof A?A(Q):null!=A&&(A.current=Q)})}function QL(...A){return(0,Ak.useCallback)(QU(...A),A)}function Qi(A,Q=[]){let B=[],C=()=>{let Q=B.map(A=>(0,Ak.createContext)(A));return function(B){let C=(null==B?void 0:B[A])||Q;return(0,Ak.useMemo)(()=>({[`__scope${A}`]:{...B,[A]:C}}),[B,C])}};return C.scopeName=A,[function(Q,C){let I=(0,Ak.createContext)(C),E=B.length;function g(Q){let{scope:B,children:C,...g}=Q,w=(null==B?void 0:B[A][E])||I,D=(0,Ak.useMemo)(()=>g,Object.values(g));return(0,Ak.createElement)(w.Provider,{value:D},C)}return B=[...B,C],g.displayName=Q+"Provider",[g,function(B,g){let w=(null==g?void 0:g[A][E])||I,D=(0,Ak.useContext)(w);if(D)return D;if(void 0!==C)return C;throw Error(`\`${B}\` must be used within \`${Q}\``)}]},function(...A){let Q=A[0];if(1===A.length)return Q;let B=()=>{let B=A.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){let C=B.reduce((Q,{useScope:B,scopeName:C})=>{let I=B(A)[`__scope${C}`];return{...Q,...I}},{});return(0,Ak.useMemo)(()=>({[`__scope${Q.scopeName}`]:C}),[C])}};return B.scopeName=Q.scopeName,B}(C,...Q)]}let QG=(0,Ak.forwardRef)((A,Q)=>{let{children:B,...C}=A,I=Ak.Children.toArray(B),E=I.find(Qa);if(E){let A=E.props.children,B=I.map(Q=>Q!==E?Q:Ak.Children.count(A)>1?Ak.Children.only(null):(0,Ak.isValidElement)(A)?A.props.children:null);return(0,Ak.createElement)(Qp,QK({},C,{ref:Q}),(0,Ak.isValidElement)(A)?(0,Ak.cloneElement)(A,void 0,B):null)}return(0,Ak.createElement)(Qp,QK({},C,{ref:Q}),B)});QG.displayName="Slot";let Qp=(0,Ak.forwardRef)((A,Q)=>{let{children:B,...C}=A;return(0,Ak.isValidElement)(B)?(0,Ak.cloneElement)(B,{...function(A,Q){let B={...Q};for(let C in Q){let I=A[C],E=Q[C];/^on[A-Z]/.test(C)?B[C]=(...A)=>{null==E||E(...A),null==I||I(...A)}:"style"===C?B[C]={...I,...E}:"className"===C&&(B[C]=[I,E].filter(Boolean).join(" "))}return{...A,...B}}(C,B.props),ref:QU(Q,B.ref)}):Ak.Children.count(B)>1?Ak.Children.only(null):null});Qp.displayName="SlotClone";let Qr=({children:A})=>(0,Ak.createElement)(Ak.Fragment,null,A);function Qa(A){return(0,Ak.isValidElement)(A)&&A.type===Qr}let Qo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((A,Q)=>{let B=(0,Ak.forwardRef)((A,B)=>{let{asChild:C,...I}=A,E=C?QG:Q;return(0,Ak.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Ak.createElement)(E,QK({},I,{ref:B}))});return B.displayName=`Primitive.${Q}`,{...A,[Q]:B}},{});function QN(A){let Q=(0,Ak.useRef)(A);return(0,Ak.useEffect)(()=>{Q.current=A}),(0,Ak.useMemo)(()=>(...A)=>{var B;return null===(B=Q.current)||void 0===B?void 0:B.call(Q,...A)},[])}let Qe="dismissableLayer.update",QJ=(0,Ak.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QS=(0,Ak.forwardRef)((A,Q)=>{let{disableOutsidePointerEvents:B=!1,onEscapeKeyDown:I,onPointerDownOutside:E,onFocusOutside:g,onInteractOutside:w,onDismiss:D,...c}=A,M=(0,Ak.useContext)(QJ),[s,y]=(0,Ak.useState)(null),[,n]=(0,Ak.useState)({}),h=QL(Q,A=>y(A)),k=Array.from(M.layers),[K]=[...M.layersWithOutsidePointerEventsDisabled].slice(-1),t=k.indexOf(K),U=s?k.indexOf(s):-1,L=M.layersWithOutsidePointerEventsDisabled.size>0,i=U>=t,G=function(A){let Q=QN(A),B=(0,Ak.useRef)(!1),C=(0,Ak.useRef)(()=>{});return(0,Ak.useEffect)(()=>{let A=A=>{if(A.target&&!B.current){let B={originalEvent:A};function I(){Ql("dismissableLayer.pointerDownOutside",Q,B,{discrete:!0})}"touch"===A.pointerType?(document.removeEventListener("click",C.current),C.current=I,document.addEventListener("click",C.current,{once:!0})):I()}B.current=!1},I=window.setTimeout(()=>{document.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(I),document.removeEventListener("pointerdown",A),document.removeEventListener("click",C.current)}},[Q]),{onPointerDownCapture:()=>B.current=!0}}(A=>{let Q=A.target,B=[...M.branches].some(A=>A.contains(Q));!i||B||(null==E||E(A),null==w||w(A),A.defaultPrevented||null==D||D())}),p=function(A){let Q=QN(A),B=(0,Ak.useRef)(!1);return(0,Ak.useEffect)(()=>{let A=A=>{A.target&&!B.current&&Ql("dismissableLayer.focusOutside",Q,{originalEvent:A},{discrete:!1})};return document.addEventListener("focusin",A),()=>document.removeEventListener("focusin",A)},[Q]),{onFocusCapture:()=>B.current=!0,onBlurCapture:()=>B.current=!1}}(A=>{let Q=A.target;[...M.branches].some(A=>A.contains(Q))||(null==g||g(A),null==w||w(A),A.defaultPrevented||null==D||D())});return!function(A){let Q=QN(A);(0,Ak.useEffect)(()=>{let A=A=>{"Escape"===A.key&&Q(A)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[Q])}(A=>{U!==M.layers.size-1||(null==I||I(A),!A.defaultPrevented&&D&&(A.preventDefault(),D()))}),(0,Ak.useEffect)(()=>{if(s)return B&&(0===M.layersWithOutsidePointerEventsDisabled.size&&(C=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),M.layersWithOutsidePointerEventsDisabled.add(s)),M.layers.add(s),QF(),()=>{B&&1===M.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=C)}},[s,B,M]),(0,Ak.useEffect)(()=>()=>{s&&(M.layers.delete(s),M.layersWithOutsidePointerEventsDisabled.delete(s),QF())},[s,M]),(0,Ak.useEffect)(()=>{let A=()=>n({});return document.addEventListener(Qe,A),()=>document.removeEventListener(Qe,A)},[]),(0,Ak.createElement)(Qo.div,QK({},c,{ref:h,style:{pointerEvents:L?i?"auto":"none":void 0,...A.style},onFocusCapture:Qt(A.onFocusCapture,p.onFocusCapture),onBlurCapture:Qt(A.onBlurCapture,p.onBlurCapture),onPointerDownCapture:Qt(A.onPointerDownCapture,G.onPointerDownCapture)}))});function QF(){let A=new CustomEvent(Qe);document.dispatchEvent(A)}function Ql(A,Q,B,{discrete:C}){let I=B.originalEvent.target,E=new CustomEvent(A,{bubbles:!1,cancelable:!0,detail:B});(Q&&I.addEventListener(A,Q,{once:!0}),C)?I&&(0,Ao.flushSync)(()=>I.dispatchEvent(E)):I.dispatchEvent(E)}let QY=(null==globalThis?void 0:globalThis.document)?Ak.useLayoutEffect:()=>{},QH=AK["useId".toString()]||(()=>void 0),Qf=0;function Qd(A){return A.split("-")[0]}function Qu(A){return A.split("-")[1]}function QR(A){return["top","bottom"].includes(Qd(A))?"x":"y"}function Qj(A){return"y"===A?"height":"width"}function Qb(A,Q,B){let C,{reference:I,floating:E}=A,g=I.x+I.width/2-E.width/2,w=I.y+I.height/2-E.height/2,D=QR(Q),c=Qj(D),M=I[c]/2-E[c]/2,s="x"===D;switch(Qd(Q)){case"top":C={x:g,y:I.y-E.height};break;case"bottom":C={x:g,y:I.y+I.height};break;case"right":C={x:I.x+I.width,y:w};break;case"left":C={x:I.x-E.width,y:w};break;default:C={x:I.x,y:I.y}}switch(Qu(Q)){case"start":C[D]-=M*(B&&s?-1:1);break;case"end":C[D]+=M*(B&&s?-1:1)}return C}let Qm=async(A,Q,B)=>{let{placement:C="bottom",strategy:I="absolute",middleware:E=[],platform:g}=B,w=await (null==g.isRTL?void 0:g.isRTL(Q)),D=await g.getElementRects({reference:A,floating:Q,strategy:I}),{x:c,y:M}=Qb(D,C,w),s=C,y={},n=0;for(let B=0;B({name:"arrow",options:A,async fn(Q){let{element:B,padding:C=0}=null!=A?A:{},{x:I,y:E,placement:g,rects:w,platform:D}=Q;if(null==B)return{};let c=QZ(C),M={x:I,y:E},s=QR(g),y=Qu(g),n=Qj(s),h=await D.getDimensions(B),k="y"===s?"top":"left",K="y"===s?"bottom":"right",t=w.reference[n]+w.reference[s]-M[s]-w.floating[n],U=M[s]-w.reference[s],L=await (null==D.getOffsetParent?void 0:D.getOffsetParent(B)),i=L?"y"===s?L.clientHeight||0:L.clientWidth||0:0;0===i&&(i=w.floating[n]);let G=c[k],p=i-h[n]-c[K],r=i/2-h[n]/2+(t/2-U/2),a=QW(G,QO(r,p)),o=("start"===y?c[k]:c[K])>0&&r!==a&&w.reference[n]<=w.floating[n];return{[s]:M[s]-(o?rQx[A])}let Qv={start:"end",end:"start"};function QX(A){return A.replace(/start|end/g,A=>Qv[A])}let Qq=["top","right","bottom","left"];function Q_(A,Q){return{top:A.top-Q.height,right:A.right-Q.width,bottom:A.bottom-Q.height,left:A.left-Q.width}}function Q$(A){return Qq.some(Q=>A[Q]>=0)}Qq.reduce((A,Q)=>A.concat(Q,Q+"-start",Q+"-end"),[]);let Q0=function(A){let{strategy:Q="referenceHidden",...B}=void 0===A?{}:A;return{name:"hide",async fn(A){let{rects:C}=A;switch(Q){case"referenceHidden":{let Q=Q_(await QP(A,{...B,elementContext:"reference"}),C.reference);return{data:{referenceHiddenOffsets:Q,referenceHidden:Q$(Q)}}}case"escaped":{let Q=Q_(await QP(A,{...B,altBoundary:!0}),C.floating);return{data:{escapedOffsets:Q,escaped:Q$(Q)}}}default:return{}}}}};function Q8(A){return"x"===A?"y":"x"}function Q3(A){return A&&A.document&&A.location&&A.alert&&A.setInterval}function Q1(A){if(null==A)return window;if(!Q3(A)){let Q=A.ownerDocument;return Q&&Q.defaultView||window}return A}function Q4(A){return Q1(A).getComputedStyle(A)}function Q2(A){return Q3(A)?"":A?(A.nodeName||"").toLowerCase():""}function Q5(){let A=navigator.userAgentData;return null!=A&&A.brands?A.brands.map(A=>A.brand+"/"+A.version).join(" "):navigator.userAgent}function Q9(A){return A instanceof Q1(A).HTMLElement}function Q6(A){return A instanceof Q1(A).Element}function Q7(A){return"undefined"!=typeof ShadowRoot&&(A instanceof Q1(A).ShadowRoot||A instanceof ShadowRoot)}function BA(A){let{overflow:Q,overflowX:B,overflowY:C}=Q4(A);return/auto|scroll|overlay|hidden/.test(Q+C+B)}function BQ(A){let Q=/firefox/i.test(Q5()),B=Q4(A);return"none"!==B.transform||"none"!==B.perspective||"paint"===B.contain||["transform","perspective"].includes(B.willChange)||Q&&"filter"===B.willChange||Q&&!!B.filter&&"none"!==B.filter}function BB(){return!/^((?!chrome|android).)*safari/i.test(Q5())}let BC=Math.min,BI=Math.max,BE=Math.round;function Bg(A,Q,B){var C,I,E,g;void 0===Q&&(Q=!1),void 0===B&&(B=!1);let w=A.getBoundingClientRect(),D=1,c=1;Q&&Q9(A)&&(D=A.offsetWidth>0&&BE(w.width)/A.offsetWidth||1,c=A.offsetHeight>0&&BE(w.height)/A.offsetHeight||1);let M=Q6(A)?Q1(A):window,s=!BB()&&B,y=(w.left+(s&&null!=(C=null==(I=M.visualViewport)?void 0:I.offsetLeft)?C:0))/D,n=(w.top+(s&&null!=(E=null==(g=M.visualViewport)?void 0:g.offsetTop)?E:0))/c,h=w.width/D,k=w.height/c;return{width:h,height:k,top:n,right:y+h,bottom:n+k,left:y,x:y,y:n}}function Bw(A){return((A instanceof Q1(A).Node?A.ownerDocument:A.document)||window.document).documentElement}function BD(A){return Q6(A)?{scrollLeft:A.scrollLeft,scrollTop:A.scrollTop}:{scrollLeft:A.pageXOffset,scrollTop:A.pageYOffset}}function Bc(A){return Bg(Bw(A)).left+BD(A).scrollLeft}function BM(A){return"html"===Q2(A)?A:A.assignedSlot||A.parentNode||(Q7(A)?A.host:null)||Bw(A)}function Bs(A){return Q9(A)&&"fixed"!==getComputedStyle(A).position?A.offsetParent:null}function By(A){let Q=Q1(A),B=Bs(A);for(;B&&["table","td","th"].includes(Q2(B))&&"static"===getComputedStyle(B).position;)B=Bs(B);return B&&("html"===Q2(B)||"body"===Q2(B)&&"static"===getComputedStyle(B).position&&!BQ(B))?Q:B||function(A){let Q=BM(A);for(Q7(Q)&&(Q=Q.host);Q9(Q)&&!["html","body"].includes(Q2(Q));){if(BQ(Q))return Q;Q=Q.parentNode}return null}(A)||Q}function Bn(A){if(Q9(A))return{width:A.offsetWidth,height:A.offsetHeight};let Q=Bg(A);return{width:Q.width,height:Q.height}}function Bh(A,Q){var B;void 0===Q&&(Q=[]);let C=function A(Q){let B=BM(Q);return["html","body","#document"].includes(Q2(B))?Q.ownerDocument.body:Q9(B)&&BA(B)?B:A(B)}(A),I=C===(null==(B=A.ownerDocument)?void 0:B.body),E=Q1(C),g=I?[E].concat(E.visualViewport||[],BA(C)?C:[]):C,w=Q.concat(g);return I?w:w.concat(Bh(g))}function Bk(A,Q,B){return"viewport"===Q?QT(function(A,Q){let B=Q1(A),C=Bw(A),I=B.visualViewport,E=C.clientWidth,g=C.clientHeight,w=0,D=0;if(I){E=I.width,g=I.height;let A=BB();(A||!A&&"fixed"===Q)&&(w=I.offsetLeft,D=I.offsetTop)}return{width:E,height:g,x:w,y:D}}(A,B)):Q6(Q)?function(A,Q){let B=Bg(A,!1,"fixed"===Q),C=B.top+A.clientTop,I=B.left+A.clientLeft;return{top:C,left:I,x:I,y:C,right:I+A.clientWidth,bottom:C+A.clientHeight,width:A.clientWidth,height:A.clientHeight}}(Q,B):QT(function(A){var Q;let B=Bw(A),C=BD(A),I=null==(Q=A.ownerDocument)?void 0:Q.body,E=BI(B.scrollWidth,B.clientWidth,I?I.scrollWidth:0,I?I.clientWidth:0),g=BI(B.scrollHeight,B.clientHeight,I?I.scrollHeight:0,I?I.clientHeight:0),w=-C.scrollLeft+Bc(A),D=-C.scrollTop;return"rtl"===Q4(I||B).direction&&(w+=BI(B.clientWidth,I?I.clientWidth:0)-E),{width:E,height:g,x:w,y:D}}(Bw(A)))}let BK={getClippingRect:function(A){let{element:Q,boundary:B,rootBoundary:C,strategy:I}=A,E=[..."clippingAncestors"===B?function(A){let Q=Bh(A),B=["absolute","fixed"].includes(Q4(A).position)&&Q9(A)?By(A):A;return Q6(B)?Q.filter(A=>Q6(A)&&function(A,Q){let B=null==Q.getRootNode?void 0:Q.getRootNode();if(A.contains(Q))return!0;if(B&&Q7(B)){let B=Q;do{if(B&&A===B)return!0;B=B.parentNode||B.host}while(B)}return!1}(A,B)&&"body"!==Q2(A)):[]}(Q):[].concat(B),C],g=E[0],w=E.reduce((A,B)=>{let C=Bk(Q,B,I);return A.top=BI(C.top,A.top),A.right=BC(C.right,A.right),A.bottom=BC(C.bottom,A.bottom),A.left=BI(C.left,A.left),A},Bk(Q,g,I));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(A){let{rect:Q,offsetParent:B,strategy:C}=A,I=Q9(B),E=Bw(B);if(B===E)return Q;let g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if((I||!I&&"fixed"!==C)&&(("body"!==Q2(B)||BA(E))&&(g=BD(B)),Q9(B))){let A=Bg(B,!0);w.x=A.x+B.clientLeft,w.y=A.y+B.clientTop}return{...Q,x:Q.x-g.scrollLeft+w.x,y:Q.y-g.scrollTop+w.y}},isElement:Q6,getDimensions:Bn,getOffsetParent:By,getDocumentElement:Bw,getElementRects:A=>{let{reference:Q,floating:B,strategy:C}=A;return{reference:function(A,Q,B){let C=Q9(Q),I=Bw(Q),E=Bg(A,C&&function(A){let Q=Bg(A);return BE(Q.width)!==A.offsetWidth||BE(Q.height)!==A.offsetHeight}(Q),"fixed"===B),g={scrollLeft:0,scrollTop:0},w={x:0,y:0};if(C||!C&&"fixed"!==B){if(("body"!==Q2(Q)||BA(I))&&(g=BD(Q)),Q9(Q)){let A=Bg(Q,!0);w.x=A.x+Q.clientLeft,w.y=A.y+Q.clientTop}else I&&(w.x=Bc(I))}return{x:E.left+g.scrollLeft-w.x,y:E.top+g.scrollTop-w.y,width:E.width,height:E.height}}(Q,By(B),C),floating:{...Bn(B),x:0,y:0}}},getClientRects:A=>Array.from(A.getClientRects()),isRTL:A=>"rtl"===Q4(A).direction};function Bt(A,Q,B,C){void 0===C&&(C={});let{ancestorScroll:I=!0,ancestorResize:E=!0,elementResize:g=!0,animationFrame:w=!1}=C,D=I&&!w,c=E&&!w,M=D||c?[...Q6(A)?Bh(A):[],...Bh(Q)]:[];M.forEach(A=>{D&&A.addEventListener("scroll",B,{passive:!0}),c&&A.addEventListener("resize",B)});let s,y=null;if(g){let C=!0;y=new ResizeObserver(()=>{C||B(),C=!1}),Q6(A)&&!w&&y.observe(A),y.observe(Q)}let n=w?Bg(A):null;return w&&function Q(){let C=Bg(A);n&&(C.x!==n.x||C.y!==n.y||C.width!==n.width||C.height!==n.height)&&B(),n=C,s=requestAnimationFrame(Q)}(),B(),()=>{var A;M.forEach(A=>{D&&A.removeEventListener("scroll",B),c&&A.removeEventListener("resize",B)}),null==(A=y)||A.disconnect(),y=null,w&&cancelAnimationFrame(s)}}let BU=(A,Q,B)=>Qm(A,Q,{platform:BK,...B});var BL="undefined"!=typeof document?Ak.useLayoutEffect:Ak.useEffect;let Bi=A=>{let{element:Q,padding:B}=A;return{name:"arrow",options:A,fn(A){if(Object.prototype.hasOwnProperty.call(Q,"current")){if(null!=Q.current)return Qz({element:Q.current,padding:B}).fn(A)}else if(Q)return Qz({element:Q,padding:B}).fn(A);return{}}}},BG=(0,Ak.forwardRef)((A,Q)=>{let{children:B,width:C=10,height:I=5,...E}=A;return(0,Ak.createElement)(Qo.svg,QK({},E,{ref:Q,width:C,height:I,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),A.asChild?B:(0,Ak.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),Bp="Popper",[Br,Ba]=Qi(Bp),[Bo,BN]=Br(Bp),Be=(0,Ak.forwardRef)((A,Q)=>{let{__scopePopper:B,virtualRef:C,...I}=A,E=BN("PopperAnchor",B),g=(0,Ak.useRef)(null),w=QL(Q,g);return(0,Ak.useEffect)(()=>{E.onAnchorChange((null==C?void 0:C.current)||g.current)}),C?null:(0,Ak.createElement)(Qo.div,QK({},I,{ref:w}))}),BJ="PopperContent",[BS,BF]=Br(BJ),[Bl,BY]=Br(BJ,{hasParent:!1,positionUpdateFns:new Set}),BH=(0,Ak.forwardRef)((A,Q)=>{var B,C,I,E,g,w,D,c,M,s,y,n;let{__scopePopper:h,side:k="bottom",sideOffset:K=0,align:t="center",alignOffset:U=0,arrowPadding:L=0,collisionBoundary:i=[],collisionPadding:G=0,sticky:p="partial",hideWhenDetached:r=!1,avoidCollisions:a=!0,...o}=A,N=BN(BJ,h),[e,J]=(0,Ak.useState)(null),S=QL(Q,A=>J(A)),[F,l]=(0,Ak.useState)(null),Y=function(A){let[Q,B]=(0,Ak.useState)(void 0);return QY(()=>{if(A){B({width:A.offsetWidth,height:A.offsetHeight});let Q=new ResizeObserver(Q=>{let C,I;if(!Array.isArray(Q)||!Q.length)return;let E=Q[0];if("borderBoxSize"in E){let A=E.borderBoxSize,Q=Array.isArray(A)?A[0]:A;C=Q.inlineSize,I=Q.blockSize}else C=A.offsetWidth,I=A.offsetHeight;B({width:C,height:I})});return Q.observe(A,{box:"border-box"}),()=>Q.unobserve(A)}B(void 0)},[A]),Q}(F),H=null!==(B=null==Y?void 0:Y.width)&&void 0!==B?B:0,f=null!==(C=null==Y?void 0:Y.height)&&void 0!==C?C:0,d="number"==typeof G?G:{top:0,right:0,bottom:0,left:0,...G},u=Array.isArray(i)?i:[i],R=u.length>0,j={padding:d,boundary:u.filter(Bu),altBoundary:R},{reference:b,floating:m,strategy:Z,x:T,y:P,placement:O,middlewareData:W,update:z}=function(A){let{middleware:Q,placement:B="bottom",strategy:C="absolute",whileElementsMounted:I}=void 0===A?{}:A,E=Ak.useRef(null),g=Ak.useRef(null),w=function(A){let Q=Ak.useRef(A);return BL(()=>{Q.current=A}),Q}(I),D=Ak.useRef(null),[c,M]=Ak.useState({x:null,y:null,strategy:C,placement:B,middlewareData:{}}),[s,y]=Ak.useState(Q);!function A(Q,B){let C,I,E;if(Q===B)return!0;if(typeof Q!=typeof B)return!1;if("function"==typeof Q&&Q.toString()===B.toString())return!0;if(Q&&B&&"object"==typeof Q){if(Array.isArray(Q)){if((C=Q.length)!=B.length)return!1;for(I=C;0!=I--;)if(!A(Q[I],B[I]))return!1;return!0}if((C=(E=Object.keys(Q)).length)!==Object.keys(B).length)return!1;for(I=C;0!=I--;)if(!Object.prototype.hasOwnProperty.call(B,E[I]))return!1;for(I=C;0!=I--;){let C=E[I];if(("_owner"!==C||!Q.$$typeof)&&!A(Q[C],B[C]))return!1}return!0}return Q!=Q&&B!=B}(null==s?void 0:s.map(A=>{let{options:Q}=A;return Q}),null==Q?void 0:Q.map(A=>{let{options:Q}=A;return Q}))&&y(Q);let n=Ak.useCallback(()=>{E.current&&g.current&&BU(E.current,g.current,{middleware:s,placement:B,strategy:C}).then(A=>{h.current&&Ao.flushSync(()=>{M(A)})})},[s,B,C]);BL(()=>{h.current&&n()},[n]);let h=Ak.useRef(!1);BL(()=>(h.current=!0,()=>{h.current=!1}),[]);let k=Ak.useCallback(()=>{if("function"==typeof D.current&&(D.current(),D.current=null),E.current&&g.current){if(w.current){let A=w.current(E.current,g.current,n);D.current=A}else n()}},[n,w]),K=Ak.useCallback(A=>{E.current=A,k()},[k]),t=Ak.useCallback(A=>{g.current=A,k()},[k]),U=Ak.useMemo(()=>({reference:E,floating:g}),[]);return Ak.useMemo(()=>({...c,update:n,refs:U,reference:K,floating:t}),[c,n,U,K,t])}({strategy:"fixed",placement:k+("center"!==t?"-"+t:""),whileElementsMounted:Bt,middleware:[{name:"offset",options:M={mainAxis:K+f,alignmentAxis:U},async fn(A){let{x:Q,y:B}=A,C=await async function(A,Q){let{placement:B,platform:C,elements:I}=A,E=await (null==C.isRTL?void 0:C.isRTL(I.floating)),g=Qd(B),w=Qu(B),D="x"===QR(B),c=["left","top"].includes(g)?-1:1,M=E&&D?-1:1,s="function"==typeof Q?Q(A):Q,{mainAxis:y,crossAxis:n,alignmentAxis:h}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return w&&"number"==typeof h&&(n="end"===w?-1*h:h),D?{x:n*M,y:y*c}:{x:y*c,y:n*M}}(A,M);return{x:Q+C.x,y:B+C.y,data:C}}},a?{name:"shift",options:y={mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(void 0===s&&(s={}),{options:s,fn(A){let{x:Q,y:B,placement:C,rects:I,middlewareData:E}=A,{offset:g=0,mainAxis:w=!0,crossAxis:D=!0}=s,c={x:Q,y:B},M=QR(C),y=Q8(M),n=c[M],h=c[y],k="function"==typeof g?g({...I,placement:C}):g,K="number"==typeof k?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(w){let A="y"===M?"height":"width",Q=I.reference[M]-I.floating[A]+K.mainAxis,B=I.reference[M]+I.reference[A]-K.mainAxis;nB&&(n=B)}if(D){var t,U,L,i;let A="y"===M?"width":"height",Q=["top","left"].includes(Qd(C)),B=I.reference[y]-I.floating[A]+(Q&&null!=(t=null==(U=E.offset)?void 0:U[y])?t:0)+(Q?0:K.crossAxis),g=I.reference[y]+I.reference[A]+(Q?0:null!=(L=null==(i=E.offset)?void 0:i[y])?L:0)-(Q?K.crossAxis:0);hg&&(h=g)}return{[M]:n,[y]:h}}}):void 0,...j},async fn(A){let{x:Q,y:B,placement:C}=A,{mainAxis:I=!0,crossAxis:E=!1,limiter:g={fn:A=>{let{x:Q,y:B}=A;return{x:Q,y:B}}},...w}=y,D={x:Q,y:B},c=await QP(A,w),M=QR(Qd(C)),s=Q8(M),n=D[M],h=D[s];if(I){let A="y"===M?"bottom":"right";n=QW(n+c["y"===M?"top":"left"],QO(n,n-c[A]))}if(E){let A="y"===s?"bottom":"right";h=QW(h+c["y"===s?"top":"left"],QO(h,h-c[A]))}let k=g.fn({...A,[M]:n,[s]:h});return{...k,data:{x:k.x-Q,y:k.y-B}}}}:void 0,F?Bi({element:F,padding:L}):void 0,a?{name:"flip",options:n={...j},async fn(A){var Q,B,C,I;let{placement:E,middlewareData:g,rects:w,initialPlacement:D,platform:c,elements:M}=A,{mainAxis:s=!0,crossAxis:y=!0,fallbackPlacements:h,fallbackStrategy:k="bestFit",flipAlignment:K=!0,...t}=n,U=Qd(E),L=h||(U!==D&&K?function(A){let Q=QV(A);return[QX(A),Q,QX(Q)]}(D):[QV(D)]),i=[D,...L],G=await QP(A,t),p=[],r=(null==(Q=g.flip)?void 0:Q.overflows)||[];if(s&&p.push(G[U]),y){let{main:A,cross:Q}=function(A,Q,B){void 0===B&&(B=!1);let C=Qu(A),I=QR(A),E=Qj(I),g="x"===I?C===(B?"end":"start")?"right":"left":"start"===C?"bottom":"top";return Q.reference[E]>Q.floating[E]&&(g=QV(g)),{main:g,cross:QV(g)}}(E,w,await (null==c.isRTL?void 0:c.isRTL(M.floating)));p.push(G[A],G[Q])}if(r=[...r,{placement:E,overflows:p}],!p.every(A=>A<=0)){let A=(null!=(B=null==(C=g.flip)?void 0:C.index)?B:0)+1,Q=i[A];if(Q)return{data:{index:A,overflows:r},reset:{placement:Q}};let w="bottom";switch(k){case"bestFit":{let A=null==(I=r.map(A=>[A,A.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((A,Q)=>A[1]-Q[1])[0])?void 0:I[0].placement;A&&(w=A);break}case"initialPlacement":w=D}if(E!==w)return{reset:{placement:w}}}return{}}}:void 0,BR({arrowWidth:H,arrowHeight:f}),r?Q0({strategy:"referenceHidden"}):void 0].filter(Bd)});QY(()=>{b(N.anchor)},[b,N.anchor]);let x=null!==T&&null!==P,[V,v]=Bj(O),X=null===(I=W.arrow)||void 0===I?void 0:I.x,q=null===(E=W.arrow)||void 0===E?void 0:E.y,_=(null===(g=W.arrow)||void 0===g?void 0:g.centerOffset)!==0,[$,AA]=(0,Ak.useState)();QY(()=>{e&&AA(window.getComputedStyle(e).zIndex)},[e]);let{hasParent:AQ,positionUpdateFns:AB}=BY(BJ,h),AC=!AQ;(0,Ak.useLayoutEffect)(()=>{if(!AC)return AB.add(z),()=>{AB.delete(z)}},[AC,AB,z]),(0,Ak.useLayoutEffect)(()=>{AC&&x&&Array.from(AB).reverse().forEach(A=>requestAnimationFrame(A))},[AC,x,AB]);let AI={"data-side":V,"data-align":v,...o,ref:S,style:{...o.style,animation:x?void 0:"none",opacity:null!==(w=W.hide)&&void 0!==w&&w.referenceHidden?0:void 0}};return(0,Ak.createElement)("div",{ref:m,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:x?`translate3d(${Math.round(T)}px, ${Math.round(P)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[null===(D=W.transformOrigin)||void 0===D?void 0:D.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")}},(0,Ak.createElement)(BS,{scope:h,placedSide:V,onArrowChange:l,arrowX:X,arrowY:q,shouldHideArrow:_},AC?(0,Ak.createElement)(Bl,{scope:h,hasParent:!0,positionUpdateFns:AB},(0,Ak.createElement)(Qo.div,AI)):(0,Ak.createElement)(Qo.div,AI)))}),Bf={top:"bottom",right:"left",bottom:"top",left:"right"};function Bd(A){return void 0!==A}function Bu(A){return null!==A}let BR=A=>({name:"transformOrigin",options:A,fn(Q){var B,C,I,E,g;let{placement:w,rects:D,middlewareData:c}=Q,M=(null===(B=c.arrow)||void 0===B?void 0:B.centerOffset)!==0,s=M?0:A.arrowWidth,y=M?0:A.arrowHeight,[n,h]=Bj(w),k={start:"0%",center:"50%",end:"100%"}[h],K=(null!==(C=null===(I=c.arrow)||void 0===I?void 0:I.x)&&void 0!==C?C:0)+s/2,t=(null!==(E=null===(g=c.arrow)||void 0===g?void 0:g.y)&&void 0!==E?E:0)+y/2,U="",L="";return"bottom"===n?(U=M?k:`${K}px`,L=`${-y}px`):"top"===n?(U=M?k:`${K}px`,L=`${D.floating.height+y}px`):"right"===n?(U=`${-y}px`,L=M?k:`${t}px`):"left"===n&&(U=`${D.floating.width+y}px`,L=M?k:`${t}px`),{data:{x:U,y:L}}}});function Bj(A){let[Q,B="center"]=A.split("-");return[Q,B]}let Bb=A=>{let{__scopePopper:Q,children:B}=A,[C,I]=(0,Ak.useState)(null);return(0,Ak.createElement)(Bo,{scope:Q,anchor:C,onAnchorChange:I},B)},Bm=(0,Ak.forwardRef)((A,Q)=>{var B;let{container:C=null==globalThis?void 0:null===(B=globalThis.document)||void 0===B?void 0:B.body,...I}=A;return C?Ao.createPortal((0,Ak.createElement)(Qo.div,QK({},I,{ref:Q})),C):null}),BZ=A=>{let{present:Q,children:B}=A,C=function(A){var Q,B;let[C,I]=(0,Ak.useState)(),E=(0,Ak.useRef)({}),g=(0,Ak.useRef)(A),w=(0,Ak.useRef)("none"),[D,c]=(Q=A?"mounted":"unmounted",B={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,Ak.useReducer)((A,Q)=>{let C=B[A][Q];return null!=C?C:A},Q));return(0,Ak.useEffect)(()=>{let A=BT(E.current);w.current="mounted"===D?A:"none"},[D]),QY(()=>{let Q=E.current,B=g.current;if(B!==A){let C=w.current,I=BT(Q);A?c("MOUNT"):"none"===I||(null==Q?void 0:Q.display)==="none"?c("UNMOUNT"):B&&C!==I?c("ANIMATION_OUT"):c("UNMOUNT"),g.current=A}},[A,c]),QY(()=>{if(C){let A=A=>{let Q=BT(E.current).includes(A.animationName);A.target===C&&Q&&(0,Ao.flushSync)(()=>c("ANIMATION_END"))},Q=A=>{A.target===C&&(w.current=BT(E.current))};return C.addEventListener("animationstart",Q),C.addEventListener("animationcancel",A),C.addEventListener("animationend",A),()=>{C.removeEventListener("animationstart",Q),C.removeEventListener("animationcancel",A),C.removeEventListener("animationend",A)}}c("ANIMATION_END")},[C,c]),{isPresent:["mounted","unmountSuspended"].includes(D),ref:(0,Ak.useCallback)(A=>{A&&(E.current=getComputedStyle(A)),I(A)},[])}}(Q),I="function"==typeof B?B({present:C.isPresent}):Ak.Children.only(B),E=QL(C.ref,I.ref);return"function"==typeof B||C.isPresent?(0,Ak.cloneElement)(I,{ref:E}):null};function BT(A){return(null==A?void 0:A.animationName)||"none"}BZ.displayName="Presence";let BP=(0,Ak.forwardRef)((A,Q)=>(0,Ak.createElement)(Qo.span,QK({},A,{ref:Q,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",...A.style}}))),[BO,BW]=Qi("Tooltip",[Ba]),Bz=Ba(),Bx="tooltip.open",[BV,Bv]=BO("TooltipProvider"),BX="Tooltip",[Bq,B_]=BO(BX),B$="TooltipTrigger",B0=(0,Ak.forwardRef)((A,Q)=>{let{__scopeTooltip:B,...C}=A,I=B_(B$,B),E=Bv(B$,B),g=Bz(B),w=QL(Q,(0,Ak.useRef)(null),I.onTriggerChange),D=(0,Ak.useRef)(!1),c=(0,Ak.useRef)(!1),M=(0,Ak.useCallback)(()=>D.current=!1,[]);return(0,Ak.useEffect)(()=>()=>document.removeEventListener("pointerup",M),[M]),(0,Ak.createElement)(Be,QK({asChild:!0},g),(0,Ak.createElement)(Qo.button,QK({"aria-describedby":I.open?I.contentId:void 0,"data-state":I.stateAttribute},C,{ref:w,onPointerMove:Qt(A.onPointerMove,A=>{"touch"===A.pointerType||c.current||E.isPointerInTransitRef.current||(I.onTriggerEnter(),c.current=!0)}),onPointerLeave:Qt(A.onPointerLeave,()=>{I.onTriggerLeave(),c.current=!1}),onPointerDown:Qt(A.onPointerDown,()=>{D.current=!0,document.addEventListener("pointerup",M,{once:!0})}),onFocus:Qt(A.onFocus,()=>{D.current||I.onOpen()}),onBlur:Qt(A.onBlur,I.onClose),onClick:Qt(A.onClick,A=>{0===A.detail&&I.onClose()})})))}),B8="TooltipPortal",[B3,B1]=BO(B8,{forceMount:void 0}),B4="TooltipContent",B2=(0,Ak.forwardRef)((A,Q)=>{let B=B1(B4,A.__scopeTooltip),{forceMount:C=B.forceMount,side:I="top",...E}=A,g=B_(B4,A.__scopeTooltip);return(0,Ak.createElement)(BZ,{present:C||g.open},g.disableHoverableContent?(0,Ak.createElement)(B7,QK({side:I},E,{ref:Q})):(0,Ak.createElement)(B5,QK({side:I},E,{ref:Q})))}),B5=(0,Ak.forwardRef)((A,Q)=>{let B=B_(B4,A.__scopeTooltip),C=Bv(B4,A.__scopeTooltip),I=(0,Ak.useRef)(null),E=QL(Q,I),[g,w]=(0,Ak.useState)(null),{trigger:D,onClose:c}=B,M=I.current,{onPointerInTransitChange:s}=C,y=(0,Ak.useCallback)(()=>{w(null),s(!1)},[s]),n=(0,Ak.useCallback)((A,Q)=>{let B=A.currentTarget,C=function(A,Q){let B=Math.abs(Q.top-A.y),C=Math.abs(Q.bottom-A.y),I=Math.abs(Q.right-A.x),E=Math.abs(Q.left-A.x);switch(Math.min(B,C,I,E)){case E:return"left";case I:return"right";case B:return"top";case C:return"bottom";default:return null}}({x:A.clientX,y:A.clientY},B.getBoundingClientRect()),I="right"===C||"bottom"===C?-5:5;w(function(A){let Q=A.slice();return Q.sort((A,Q)=>A.xQ.x?1:A.yQ.y?1:0),function(A){if(A.length<=1)return A.slice();let Q=[];for(let B=0;B=2;){let A=Q[Q.length-1],B=Q[Q.length-2];if((A.x-B.x)*(C.y-B.y)>=(A.y-B.y)*(C.x-B.x))Q.pop();else break}Q.push(C)}Q.pop();let B=[];for(let Q=A.length-1;Q>=0;Q--){let C=A[Q];for(;B.length>=2;){let A=B[B.length-1],Q=B[B.length-2];if((A.x-Q.x)*(C.y-Q.y)>=(A.y-Q.y)*(C.x-Q.x))B.pop();else break}B.push(C)}return(B.pop(),1===Q.length&&1===B.length&&Q[0].x===B[0].x&&Q[0].y===B[0].y)?Q:Q.concat(B)}(Q)}(["right"===C||"left"===C?{x:A.clientX+I,y:A.clientY}:{x:A.clientX,y:A.clientY+I},...function(A){let{top:Q,right:B,bottom:C,left:I}=A;return[{x:I,y:Q},{x:B,y:Q},{x:B,y:C},{x:I,y:C}]}(Q.getBoundingClientRect())])),s(!0)},[s]);return(0,Ak.useEffect)(()=>()=>y(),[y]),(0,Ak.useEffect)(()=>{if(D&&M){let A=A=>n(A,M),Q=A=>n(A,D);return D.addEventListener("pointerleave",A),M.addEventListener("pointerleave",Q),()=>{D.removeEventListener("pointerleave",A),M.removeEventListener("pointerleave",Q)}}},[D,M,n,y]),(0,Ak.useEffect)(()=>{if(g){let A=A=>{let Q=A.target,B={x:A.clientX,y:A.clientY},C=(null==D?void 0:D.contains(Q))||(null==M?void 0:M.contains(Q)),I=!function(A,Q){let{x:B,y:C}=A,I=!1;for(let A=0,E=Q.length-1;AC!=c>C&&B<(D-g)*(C-w)/(c-w)+g&&(I=!I)}return I}(B,g);C?y():I&&(y(),c())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[D,M,g,c,y]),(0,Ak.createElement)(B7,QK({},A,{ref:E}))}),[B9,B6]=BO(BX,{isInside:!1}),B7=(0,Ak.forwardRef)((A,Q)=>{let{__scopeTooltip:B,children:C,"aria-label":I,onEscapeKeyDown:E,onPointerDownOutside:g,...w}=A,D=B_(B4,B),c=Bz(B),{onClose:M}=D;return(0,Ak.useEffect)(()=>(document.addEventListener(Bx,M),()=>document.removeEventListener(Bx,M)),[M]),(0,Ak.useEffect)(()=>{if(D.trigger){let A=A=>{let Q=A.target;null!=Q&&Q.contains(D.trigger)&&M()};return window.addEventListener("scroll",A,{capture:!0}),()=>window.removeEventListener("scroll",A,{capture:!0})}},[D.trigger,M]),(0,Ak.createElement)(QS,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:E,onPointerDownOutside:g,onFocusOutside:A=>A.preventDefault(),onDismiss:M},(0,Ak.createElement)(BH,QK({"data-state":D.stateAttribute},c,w,{ref:Q,style:{...w.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,Ak.createElement)(Qr,null,C),(0,Ak.createElement)(B9,{scope:B,isInside:!0},(0,Ak.createElement)(BP,{id:D.contentId,role:"tooltip"},I||C))))}),CA=A=>{let{__scopeTooltip:Q,children:B,open:C,defaultOpen:I=!1,onOpenChange:E,disableHoverableContent:g,delayDuration:w}=A,D=Bv(BX,A.__scopeTooltip),c=Bz(Q),[M,s]=(0,Ak.useState)(null),y=function(A){let[Q,B]=Ak.useState(QH());return QY(()=>{B(A=>null!=A?A:String(Qf++))},[void 0]),Q?`radix-${Q}`:""}(),n=(0,Ak.useRef)(0),h=null!=g?g:D.disableHoverableContent,k=null!=w?w:D.delayDuration,K=(0,Ak.useRef)(!1),[t=!1,U]=function({prop:A,defaultProp:Q,onChange:B=()=>{}}){let[C,I]=function({defaultProp:A,onChange:Q}){let B=(0,Ak.useState)(A),[C]=B,I=(0,Ak.useRef)(C),E=QN(Q);return(0,Ak.useEffect)(()=>{I.current!==C&&(E(C),I.current=C)},[C,I,E]),B}({defaultProp:Q,onChange:B}),E=void 0!==A,g=E?A:C,w=QN(B);return[g,(0,Ak.useCallback)(Q=>{if(E){let B="function"==typeof Q?Q(A):Q;B!==A&&w(B)}else I(Q)},[E,A,I,w])]}({prop:C,defaultProp:I,onChange:A=>{A?(D.onOpen(),document.dispatchEvent(new CustomEvent(Bx))):D.onClose(),null==E||E(A)}}),L=(0,Ak.useMemo)(()=>t?K.current?"delayed-open":"instant-open":"closed",[t]),i=(0,Ak.useCallback)(()=>{window.clearTimeout(n.current),K.current=!1,U(!0)},[U]),G=(0,Ak.useCallback)(()=>{window.clearTimeout(n.current),U(!1)},[U]),p=(0,Ak.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(()=>{K.current=!0,U(!0)},k)},[k,U]);return(0,Ak.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,Ak.createElement)(Bb,c,(0,Ak.createElement)(Bq,{scope:Q,contentId:y,open:t,stateAttribute:L,trigger:M,onTriggerChange:s,onTriggerEnter:(0,Ak.useCallback)(()=>{D.isOpenDelayed?p():i()},[D.isOpenDelayed,p,i]),onTriggerLeave:(0,Ak.useCallback)(()=>{h?G():window.clearTimeout(n.current)},[G,h]),onOpen:i,onClose:G,disableHoverableContent:h},B))},CQ=A=>{let{__scopeTooltip:Q,forceMount:B,children:C,container:I}=A,E=B_(B8,Q);return(0,Ak.createElement)(B3,{scope:Q,forceMount:B},(0,Ak.createElement)(BZ,{present:B||E.open},(0,Ak.createElement)(Bm,{asChild:!0,container:I},C)))},CB=(0,Qk.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"}}),CC=Ak.forwardRef((A,Q)=>{let{tag:B="span",className:C,font:I,color:E,weight:g,size:w,scaleSize:D,noWrap:c,underline:M,ellipsis:s,wrapEllipsis:y,...n}=A;return(0,Ah.jsx)(B,{ref:Q,className:(0,Qk.cx)(C,CB({font:I,color:E,weight:g,size:w,scaleSize:D,underline:M,noWrap:c,ellipsis:s,wrapEllipsis:y})),...n})}),CI=Ak.forwardRef((A,Q)=>{let{size:B="18",...C}=A;return(0,Ah.jsx)(CC,{tag:"p",...C,ref:Q,weight:"regular",scaleSize:B,color:"subtle",className:(0,Qk.cx)("leading-relaxed md:leading-relaxed",A.className)})}),CE=(0,Qk.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"}}),Cg=Ak.forwardRef((A,Q)=>{let{className:B,color:C,...I}=A;return(0,Ah.jsx)("div",{ref:Q,className:CE({className:B,color:C}),...I})});var Cw=B(93542);let CD=(void 0===Cw||Cw.env,"production"),Cc=1/60*1e3,CM="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Cs="undefined"!=typeof window?A=>window.requestAnimationFrame(A):A=>setTimeout(()=>A(CM()),Cc),Cy=!0,Cn=!1,Ch=!1,Ck={delta:0,timestamp:0},CK=["read","update","preRender","render","postRender"],Ct=CK.reduce((A,Q)=>(A[Q]=function(A){let Q=[],B=[],C=0,I=!1,E=!1,g=new WeakSet,w={schedule:(A,E=!1,w=!1)=>{let D=w&&I,c=D?Q:B;return E&&g.add(A),-1===c.indexOf(A)&&(c.push(A),D&&I&&(C=Q.length)),A},cancel:A=>{let Q=B.indexOf(A);-1!==Q&&B.splice(Q,1),g.delete(A)},process:D=>{if(I){E=!0;return}if(I=!0,[Q,B]=[B,Q],B.length=0,C=Q.length)for(let B=0;BCn=!0),A),{}),CU=CK.reduce((A,Q)=>{let B=Ct[Q];return A[Q]=(A,Q=!1,C=!1)=>(Cn||Cr(),B.schedule(A,Q,C)),A},{}),CL=CK.reduce((A,Q)=>(A[Q]=Ct[Q].cancel,A),{}),Ci=CK.reduce((A,Q)=>(A[Q]=()=>Ct[Q].process(Ck),A),{}),CG=A=>Ct[A].process(Ck),Cp=A=>{Cn=!1,Ck.delta=Cy?Cc:Math.max(Math.min(A-Ck.timestamp,40),1),Ck.timestamp=A,Ch=!0,CK.forEach(CG),Ch=!1,Cn&&(Cy=!1,Cs(Cp))},Cr=()=>{Cn=!0,Cy=!0,Ch||Cs(Cp)},Ca=()=>Ck,Co="undefined"!=typeof document,CN=Co?Ak.useLayoutEffect:Ak.useEffect;function Ce(){let A=(0,Ak.useRef)(!1);return CN(()=>(A.current=!0,()=>{A.current=!1}),[]),A}let CJ=(0,Ak.createContext)(null);function CS(A){let Q=(0,Ak.useRef)(null);return null===Q.current&&(Q.current=A()),Q.current}class CF extends Ak.Component{getSnapshotBeforeUpdate(A){let Q=this.props.childRef.current;if(Q&&A.isPresent&&!this.props.isPresent){let A=this.props.sizeRef.current;A.height=Q.offsetHeight||0,A.width=Q.offsetWidth||0,A.top=Q.offsetTop,A.left=Q.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Cl({children:A,isPresent:Q}){let B=(0,Ak.useId)(),C=(0,Ak.useRef)(null),I=(0,Ak.useRef)({width:0,height:0,top:0,left:0});return(0,Ak.useInsertionEffect)(()=>{let{width:A,height:E,top:g,left:w}=I.current;if(Q||!C.current||!A||!E)return;C.current.dataset.motionPopId=B;let D=document.createElement("style");return document.head.appendChild(D),D.sheet&&D.sheet.insertRule(` [data-motion-pop-id="${B}"] { position: absolute !important; width: ${A}px !important; @@ -208,7 +208,7 @@ to { > * { pointer-events: auto; } -`,J3=({reverseOrder:A,position:Q="top-center",toastOptions:B,gutter:C,children:I,containerStyle:E,containerClassName:g})=>{let{toasts:w,handlers:D}=JY(B);return Ak.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...E},className:g,onMouseEnter:D.startPause,onMouseLeave:D.endPause},w.map(B=>{let E=B.position||Q,g=J0(E,D.calculateOffset(B,{reverseOrder:A,gutter:C,defaultPosition:Q}));return Ak.createElement(J$,{id:B.id,key:B.id,onHeightUpdate:D.updateHeight,className:B.visible?J8:"",style:g},"custom"===B.type?Jk(B.message,B):I?I(B):Ak.createElement(J_,{toast:B,position:E}))}))};function J1(A){let{icon:Q,title:B,body:C,toastId:I}=A;return(0,Ah.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,Ah.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[Q&&(0,Ah.jsx)(CC,{className:"flex items-center",color:"subtle",children:Q}),(0,Ah.jsx)(cg,{content:B,children:(0,Ah.jsx)(CC,{ellipsis:!0,className:"flex-1",children:B})}),(0,Ah.jsx)("div",{className:"flex items-center pl-1",children:(0,Ah.jsx)(cD,{icon:"hover",size:"none",onClick:A=>{JS.dismiss(I)},children:(0,Ah.jsx)(cc.PcV,{})})})]}),C&&(0,Ah.jsx)("div",{className:"pb-1",children:(0,Ah.jsx)(yN,{children:(0,Ah.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,Ah.jsx)(CC,{color:"subtle",size:"14",children:C})})})})]})}let J4=A=>{let{title:Q,body:B,icon:C,options:I={}}=A;JS(A=>(0,Ah.jsx)(J1,{toastId:A.id,title:Q,body:B,icon:C}),J9(I))};function J2(A){let{title:Q,body:B,options:C}=A;J4({title:Q,body:B,icon:(0,Ah.jsx)(cc.yar,{className:"text-green-600"}),options:C})}function J5(A){let{title:Q,body:B,options:C}=A;J4({title:Q,body:B,icon:(0,Ah.jsx)(cc.T80,{className:"text-red-600"}),options:C})}function J9(){let{className:A,...Q}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,Qk.cx)(CE(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",A),success:{icon:(0,Ah.jsx)("div",{className:"!flex-none w-5",children:(0,Ah.jsx)(cc.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,Ah.jsx)("div",{className:"!flex-none w-5",children:(0,Ah.jsx)(cc.Jsc,{className:"w-5 text-red-600"})})},...Q}}function J6(){return(0,Ah.jsx)(J3,{toastOptions:J9(),containerStyle:{zIndex:20}})}let J7=(A,Q)=>{var B;J4({title:Q?"Copied ".concat(Q," to clipboard"):"Copied to clipboard",icon:(0,Ah.jsx)(cc.vtB,{})}),B=()=>e0?(eV("Using `navigator.clipboard.writeText()`."),e0(A).catch(e9)):e8.resolve(e9(A)),new e8((A,Q)=>{try{A(B())}catch(A){Q(A)}})};function SA(A,Q){let B=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return A?Q&&A.length>Q?"".concat(A.slice(0,Q)).concat(B?"...":""):"".concat(A.slice(0,Q)):""}function SQ(A){return(A||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"").replace(/^bid:/,"")}function SB(A){let{testId:Q,value:B,displayValue:C,type:I,label:E,href:g,maxLength:w,size:D,scaleSize:c,weight:M,font:s,color:y="contrast",className:n,siascanUrl:h,contextMenu:k}=A,K=E||(0,ed.uV)(I),t=w||(0,ed.uF)(I),U=SQ(B),L=C||I&&(0,ed.Lu)(I,U,t)||(0,ed.mj)(U,t);return(0,Ah.jsxs)("div",{"data-testid":Q,className:(0,Qk.cx)("flex items-center",n),children:[g?(0,Ah.jsx)(Kb,{href:g,underline:"hover",size:D,scaleSize:c,color:y,weight:M,font:s,ellipsis:!0,children:L}):(0,Ah.jsx)(CC,{size:D,scaleSize:c,color:y,weight:M,font:s,ellipsis:!0,children:L}),(0,Ah.jsx)("div",{className:"ml-1 flex items-center",children:k||(0,Ah.jsx)(SC,{cleanValue:U,label:K,size:D,siascanUrl:h,type:I})})]})}function SC(A){let{size:Q,cleanValue:B,label:C,siascanUrl:I,type:E}=A;return(0,Ah.jsxs)(Ki,{trigger:(0,Ah.jsx)(cD,{size:"none",variant:"ghost",children:(0,Ah.jsx)(cc.EMN,{className:"10"===Q?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,Ah.jsxs)(KG,{onSelect:A=>{J7(B,C)},onClick:A=>{A.stopPropagation()},children:[(0,Ah.jsx)(Kr,{children:(0,Ah.jsx)(cc.olJ,{})}),"Copy to clipboard"]}),I&&E&&(0,ed.Lg)(E)&&(0,Ah.jsx)(Kb,{target:"_blank",href:(0,ed.jH)(I,E,B),className:"block w-full",underline:"none",children:(0,Ah.jsxs)(KG,{onClick:A=>{A.stopPropagation()},children:[(0,Ah.jsx)(Kr,{children:(0,Ah.jsx)(cc.V8Q,{})}),"View on Siascan"]})})]})}function SI(A){let{value:Q,size:B,scaleSize:C,tooltip:I="",variant:E="change"}=A,g=(0,ed.yF)(String(Q),{units:"SF"});return(0,Ah.jsx)(cg,{content:(I?"".concat(I," "):"")+g,children:(0,Ah.jsxs)(CC,{size:B,scaleSize:C,weight:"medium",font:"mono",color:"change"===E?Q>0?"green":Q<0?"red":"subtle":"contrast",children:["change"===E&&Q>0?"+":"",g]})})}function SE(A){let{testId:Q,value:B,size:C,scaleSize:I,tooltip:E="",tipSide:g,font:w="mono",variant:D="change",color:c,fixed:M=3,dynamicUnits:s=!0,hastingUnits:y=!0,extendedSuffix:n,showTooltip:h=!0}=A,k=B.isGreaterThan(0)?"+":B.isLessThan(0)?"-":"",K=c||("change"===D?B.isGreaterThan(0)?"green":B.isLessThan(0)?"red":"subtle":"contrast"),t=(0,Ah.jsxs)(CC,{"data-testid":Q,size:C,scaleSize:I,weight:"medium",font:w,ellipsis:!0,color:K,children:["change"===D?"".concat(k).concat((0,ed.Vz)(B.absoluteValue(),{fixed:M,dynamicUnits:s})):(0,ed.Vz)(B,{fixed:M,dynamicUnits:s,hastingUnits:y}),n||""]});return h?(0,Ah.jsx)(cg,{content:(E?"".concat(E," "):"")+(0,ed.Vz)(B,{fixed:16,dynamicUnits:!1}),side:g,children:t}):t}function Sg(A){let{sc:Q,size:B,scaleSize:C,color:I,tooltip:E="",variant:g="change",fixed:w,font:D="mono",fixedTip:c=20,showTooltip:M=!0,tipSide:s,extendedSuffix:y}=A,{rate:n,currency:h}=(0,UQ.Nz)(),k=Q.isZero()?"":Q.isGreaterThan(0)&&"change"===g?"+":Q.isLessThan(0)?"-":"",K=I||("change"===g?Q.isGreaterThan(0)?"green":Q.isLessThan(0)?"red":"subtle":"contrast");if(!n||!h)return null;let t=n.times(Q).div(1e24),U=void 0!==w?w:h.fixed,L=(0,Ah.jsx)(CC,{size:B,scaleSize:C,weight:"medium",font:D,ellipsis:!0,color:K,children:"".concat(k).concat(h.prefix).concat(Sw(t.absoluteValue(),U)).concat(y||"")});return M?(0,Ah.jsx)(cg,{side:s,content:(E?"".concat(E," "):"")+"".concat(k).concat(h.prefix).concat(Sw(t.absoluteValue(),c)).concat(y||""),children:L}):L}function Sw(A,Q){let[B,C]=A.toFixed(Q).split("."),I=new Intl.NumberFormat().format(parseInt(B));return C?"".concat(I).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(C):I}function SD(A){let{value:Q,size:B,scaleSize:C,tooltip:I="",variant:E="change",fixed:g=3,fixedFiat:w,fixedTipFiat:D,font:c="mono",tipSide:M,dynamicUnits:s=!0,hastingUnits:y=!0,extendedSuffix:n,showTooltip:h=!0,displayBoth:k=!1,displayBothDirection:K="column"}=A,{settings:{currencyDisplay:t}}=(0,UQ.Hv)(),{rate:U}=(0,UQ.Nz)(),L=(0,Ak.useMemo)(()=>(0,Ah.jsx)(SE,{value:Q,size:B,color:k&&"row"===K&&"bothPreferFiat"===t?"subtle":void 0,scaleSize:C,tooltip:I,variant:E,fixed:g,font:c,dynamicUnits:s,hastingUnits:y,extendedSuffix:n,showTooltip:h,tipSide:M}),[Q,B,C,I,E,g,c,s,y,n,h,M,t,k,K]),i=(0,Ak.useMemo)(()=>(0,Ah.jsx)(Sg,{sc:Q,size:B,color:k&&"row"===K&&"bothPreferSc"===t?"subtle":void 0,scaleSize:C,tooltip:I,variant:E,fixed:w,fixedTip:D,font:c,dynamicUnits:s,hastingUnits:y,extendedSuffix:n,showTooltip:h,tipSide:M}),[Q,B,C,I,E,c,w,D,s,y,n,h,M,t,k,K]);return"sc"!==t&&U?"fiat"===t?i:"bothPreferSc"===t?k?(0,Ah.jsxs)("div",{className:"column"===K?"flex flex-col items-end":"flex gap-1",children:[L,i]}):L:"bothPreferFiat"===t?k?(0,Ah.jsxs)("div",{className:"column"===K?"flex flex-col items-end":"flex gap-1",children:[i,L]}):i:L:L}var Sc=B(84712),SM=B(45036),Ss=1/0,Sy=function(A){var Q,B=(Q=A)?(Q=NI(Q))===Ss||Q===-Ss?(Q<0?-1:1)*17976931348623157e292:Q==Q?Q:0:0===Q?Q:0,C=B%1;return B==B?C?B-C:B:0},Sn=Math.min,Sh=function(A,Q){if((A=Sy(A))<1||A>9007199254740991)return[];var B,C=4294967295,I=Sn(A,4294967295);Q="function"==typeof(B=Q)?B:SM.Z,A-=4294967295;for(var E=(0,Sc.Z)(I,Q);++C(0,Ah.jsxs)("div",{className:(0,Qk.cx)("relative flex gap-4 p-3.5",(0,Qk.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,Ah.jsx)(Uc,{className:"w-[60px] h-[50px]"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,Ah.jsx)(Uc,{className:"w-[90%] h-[20px]"}),(0,Ah.jsx)(Uc,{className:"w-[140px] h-[14px]"})]})]},A))})}var SK=B(49435),St=B(4895);function SU(A,Q){(0,St.Z)(2,arguments);var B=(0,SK.Z)(A),C=(0,SK.Z)(Q),I=B.getTime()-C.getTime();return I<0?-1:I>0?1:I}var SL={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(A){return A<0?Math.ceil(A):Math.floor(A)}},Si=B(54042),SG=B(70095),Sp=function(A,Q,B){var C=-1,I=A.length;Q<0&&(Q=-Q>I?0:I+Q),(B=B>I?I:B)<0&&(B+=I),I=Q>B?0:B-Q>>>0,Q>>>=0;for(var E=Array(I);++C=C?A:Sp(A,Q,B)},Sa=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),So=function(A){return Sa.test(A)},SN="\ud800-\udfff",Se="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",SJ="\ud83c[\udffb-\udfff]",SS="[^"+SN+"]",SF="(?:\ud83c[\udde6-\uddff]){2}",Sl="[\ud800-\udbff][\udc00-\udfff]",SY="(?:"+Se+"|"+SJ+")?",SH="[\\ufe0e\\ufe0f]?",Sf="(?:\\u200d(?:"+[SS,SF,Sl].join("|")+")"+SH+SY+")*",Sd=RegExp(SJ+"(?="+SJ+")|(?:"+[SS+Se+"?",Se,SF,Sl,"["+SN+"]"].join("|")+")"+(SH+SY+Sf),"g"),Su=B(45543),SR=function(A){var Q,B=So(A=(0,Su.Z)(A))?So(Q=A)?Q.match(Sd)||[]:Q.split(""):void 0,C=B?B[0]:A.charAt(0),I=B?Sr(B,1).join(""):A.slice(1);return C.toUpperCase()+I};function Sj(A){let{type:Q,label:B,initials:C,href:I,src:E,shape:g}=A,w=(0,Ah.jsx)(cF,{interactive:!!I,fallback:C||Q&&(Q||B||"").split(" ").map(A=>A.charAt(0).toUpperCase).join(""),src:E,shape:g||(Q&&"address"!==Q&&"block"!==Q?"circle":"square")}),D=I&&(0,Ah.jsx)(Kb,{href:I,underline:"none","data-testid":"entity-link",children:w})||w;return Q?(0,Ah.jsx)(cg,{content:B||(0,ed.jF)(Q),children:(0,Ah.jsx)("div",{className:"",children:D})}):D}function Sb(A){let{label:Q,type:B,avatar:C,avatarShape:I,initials:E,href:g,onClick:w,children:D}=A;return(0,Ah.jsxs)("div",{className:(0,Qk.cx)("flex gap-4 p-4",(0,Qk.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:w,children:[(0,Ah.jsx)(Sj,{label:Q,type:B,shape:I,src:C,initials:E||(B||Q||"").split(" ").map(A=>A.charAt(0).toUpperCase()).join(""),href:g}),D]})}function Sm(A){let Q=A.sc,B=A.sf,C=A.hash&&(0,Ah.jsx)(SB,{value:A.hash,type:A.type,label:A.label,siascanUrl:A.siascanUrl,href:A.href,color:"subtle"}),I=A.label||"transaction"===A.type&&A.txType&&(0,ed.pX)(A.txType)||(0,ed.jF)(A.type),E=!function(A){if(!A)return!1;try{return new URL(A),!0}catch(A){return!1}}(I)?SR(I):I;return(0,Ah.jsx)(Sb,{...A,children:(0,Ah.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[A.height&&A.blockHref&&(0,Ah.jsx)(CC,{color:"subtle",weight:"semibold",children:(0,Ah.jsx)(Kb,{href:A.blockHref,underline:"none",children:(0,ed.yF)(A.height)})}),E?(0,Ah.jsx)(cg,{content:E,children:(0,Ah.jsx)(CC,{ellipsis:!0,weight:"medium",children:E})}):(0,Ah.jsx)(CC,{ellipsis:!0,weight:"medium",children:C})]}),(0,Ah.jsx)("div",{className:"flex-1"}),(0,Ah.jsxs)("div",{className:"flex items-center",children:[!!Q&&(0,Ah.jsx)(SD,{variant:A.scVariant,value:Q}),!!B&&(0,Ah.jsx)(SI,{variant:A.sfVariant,value:B})]})]}),(0,Ah.jsxs)("div",{className:"flex justify-between w-full",children:[(0,Ah.jsx)("div",{className:"flex gap-1",children:!!E&&C}),(0,Ah.jsxs)("div",{className:"flex gap-1 items-center",children:[A.unconfirmed?(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsx)(CC,{color:"verySubtle",children:"unconfirmed"}),A.timestamp?(0,Ah.jsx)(CC,{color:"verySubtle",children:(0,Ah.jsx)(cc.Bpb,{className:"scale-50"})}):null]}):null,A.timestamp&&(0,Ah.jsx)(CC,{color:"subtle",children:function(A,Q){var B,C,I,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,St.Z)(2,arguments);var g=E.locale||Si.Z;if(!g.formatDistance)throw RangeError("locale must contain formatDistance property");var w=SU(A,Q);if(isNaN(w))throw RangeError("Invalid time value");var D=function(A,Q){if(null==A)throw TypeError("assign requires that input parameter not be null or undefined");for(var B in Q=Q||{})Object.prototype.hasOwnProperty.call(Q,B)&&(A[B]=Q[B]);return A}({},E);D.addSuffix=!!E.addSuffix,D.comparison=w,w>0?(B=(0,SK.Z)(Q),C=(0,SK.Z)(A)):(B=(0,SK.Z)(A),C=(0,SK.Z)(Q));var c=function(A,Q,B){(0,St.Z)(2,arguments);var C,I=function(A,Q){return(0,St.Z)(2,arguments),(0,SK.Z)(A).getTime()-(0,SK.Z)(Q).getTime()}(A,Q)/1e3;return((C=null==B?void 0:B.roundingMethod)?SL[C]:SL.trunc)(I)}(C,B),M=Math.round((c-((0,SG.Z)(C)-(0,SG.Z)(B))/1e3)/60);if(M<2){if(E.includeSeconds){if(c<5)return g.formatDistance("lessThanXSeconds",5,D);if(c<10)return g.formatDistance("lessThanXSeconds",10,D);if(c<20)return g.formatDistance("lessThanXSeconds",20,D);if(c<40)return g.formatDistance("halfAMinute",null,D);else if(c<60)return g.formatDistance("lessThanXMinutes",1,D);else return g.formatDistance("xMinutes",1,D)}return 0===M?g.formatDistance("lessThanXMinutes",1,D):g.formatDistance("xMinutes",M,D)}if(M<45)return g.formatDistance("xMinutes",M,D);if(M<90)return g.formatDistance("aboutXHours",1,D);if(M<1440)return g.formatDistance("aboutXHours",Math.round(M/60),D);if(M<2520)return g.formatDistance("xDays",1,D);if(M<43200)return g.formatDistance("xDays",Math.round(M/1440),D);if(M<86400)return I=Math.round(M/43200),g.formatDistance("aboutXMonths",I,D);if((I=function(A,Q){(0,St.Z)(2,arguments);var B,C=(0,SK.Z)(A),I=(0,SK.Z)(Q),E=SU(C,I),g=Math.abs(function(A,Q){(0,St.Z)(2,arguments);var B=(0,SK.Z)(A),C=(0,SK.Z)(Q);return 12*(B.getFullYear()-C.getFullYear())+(B.getMonth()-C.getMonth())}(C,I));if(g<1)B=0;else{1===C.getMonth()&&C.getDate()>27&&C.setDate(30),C.setMonth(C.getMonth()-E*g);var w=SU(C,I)===-E;(function(A){(0,St.Z)(1,arguments);var Q=(0,SK.Z)(A);return(function(A){(0,St.Z)(1,arguments);var Q=(0,SK.Z)(A);return Q.setHours(23,59,59,999),Q})(Q).getTime()===(function(A){(0,St.Z)(1,arguments);var Q=(0,SK.Z)(A),B=Q.getMonth();return Q.setFullYear(Q.getFullYear(),B+1,0),Q.setHours(23,59,59,999),Q})(Q).getTime()})((0,SK.Z)(A))&&1===g&&1===SU(A,I)&&(w=!1),B=E*(g-Number(w))}return 0===B?0:B}(C,B))<12)return g.formatDistance("xMonths",Math.round(M/43200),D);var s=I%12,y=Math.floor(I/12);return s<3?g.formatDistance("aboutXYears",y,D):s<9?g.formatDistance("overXYears",y,D):g.formatDistance("almostXYears",y+1,D)}(new Date(A.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function SZ(A){let{title:Q,actions:B,dataset:C,isLoading:I,emptyState:E,emptyMessage:g,skeletonCount:w=10,children:D}=A,c=Q||B,M="emptyState";return!I||(null==C?void 0:C.length)||D||(M="skeleton"),((null==C?void 0:C.length)||D)&&(M="currentData"),(0,Ah.jsx)(Cg,{children:(0,Ah.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[c&&(0,Ah.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[Q&&(0,Ah.jsx)(Ke,{size:"20",font:"mono",ellipsis:!0,children:Q}),(0,Ah.jsx)("div",{className:"flex-1"}),B]}),(0,Ah.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===M&&(E||(0,Ah.jsx)("div",{className:(0,Qk.cx)("flex items-center justify-center h-[84px]",(0,Qk.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,Ah.jsx)(CC,{size:"18",color:"subtle",children:g||"No results"})})),"currentData"===M&&(D||(null==C?void 0:C.map((A,Q)=>(0,Ah.jsx)(Sm,{...A},A.hash||A.label||Q)))),"skeleton"===M&&(0,Ah.jsx)(Sk,{skeletonCount:w})]})]})})}function ST(A){let{label:Q,entityType:B,entityValue:C,actions:I,href:E,value:g,extendedSuffix:w,hash:D,sc:c,scFixed:M=2,sf:s,comment:y,commentTip:n,scaleSize:h="40",isLoading:k,onClick:K}=A,t=(0,Ah.jsx)(CC,{color:"subtle",size:"12",className:"h-6",children:y});return(0,Ah.jsx)(Cg,{children:(0,Ah.jsx)("div",{className:(0,Qk.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",K?"cursor-pointer":""),onClick:K,children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,Ah.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,Ah.jsx)(CC,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof Q?SR(Q):Q}),I]}),(0,Ah.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[k?(0,Ah.jsx)(Uc,{className:"h-12 w-[150px]"}):(0,Ah.jsxs)(Ah.Fragment,{children:[void 0!==c&&(0,Ah.jsx)(SD,{extendedSuffix:w,scaleSize:h,variant:"value",value:c,fixed:M}),void 0!==s&&(0,Ah.jsx)(SI,{scaleSize:h,variant:"value",value:s}),B&&(C?(0,Ah.jsx)(SB,{scaleSize:h,label:(0,ed.jF)(B),href:E,value:C,displayValue:"block"===B&&C?Number(C).toLocaleString():C,className:"relative top-0.5"}):(0,Ah.jsx)(CC,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),D&&(0,Ah.jsx)(SB,{scaleSize:h,label:"hash",value:D}),void 0!==g&&(0,Ah.jsx)(CC,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:g})]}),t?(0,Ah.jsx)("div",{className:"mt-1",children:k?(0,Ah.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,Ah.jsx)(Uc,{className:"h-4 w-[100px]"})}):n?(0,Ah.jsx)(cg,{content:n,children:t}):t}):null]})]})})})}function SP(A){let{title:Q,actions:B,name:C}=A;return(0,Ah.jsxs)("div",{className:"flex gap-0.5 items-center",children:[Q?(0,Ah.jsx)(Ku,{htmlFor:C,noWrap:!0,children:Q}):null,B]})}function SO(A){var Q;let{form:B,name:C}=A,I=B.formState.errors[C],E=null===(Q=B.formState.errors[C])||void 0===Q?void 0:Q.message;return I?(0,Ah.jsx)(CC,{size:"14",color:"red",children:E}):null}function SW(A){let{form:Q,title:B,actions:C,name:I,className:E,wrap:g}=A,w=Q.formState.errors[I];return B||w?(0,Ah.jsxs)("div",{className:(0,Qk.cx)("flex justify-between items-center gap-x-4 overflow-hidden",g?"flex-wrap":"",E),children:[(0,Ah.jsx)(SP,{name:I,title:B,actions:C}),(0,Ah.jsx)(SO,{form:Q,name:I})]}):null}function Sz(A){let{children:Q,...B}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ah.jsx)(SW,{...B}),Q]})}function Sx(A){let{form:Q,size:B="medium",variant:C="accent",className:I,children:E}=A;return(0,Ah.jsx)(cD,{className:I,size:B,variant:C,state:Q.formState.isSubmitting?"waiting":void 0,type:"submit",children:Q.formState.isSubmitting?(0,Ah.jsx)(eW,{}):E})}let SV="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Sv(A){let Q=Object.prototype.toString.call(A);return"[object Window]"===Q||"[object global]"===Q}function SX(A){return"nodeType"in A}function Sq(A){var Q,B;return A?Sv(A)?A:SX(A)&&null!=(Q=null==(B=A.ownerDocument)?void 0:B.defaultView)?Q:window:window}function S_(A){let{Document:Q}=Sq(A);return A instanceof Q}function S$(A){return!Sv(A)&&A instanceof Sq(A).HTMLElement}function S0(A){return A instanceof Sq(A).SVGElement}function S8(A){return A?Sv(A)?A.document:SX(A)?S_(A)?A:S$(A)||S0(A)?A.ownerDocument:document:document:document}let S3=SV?Ak.useLayoutEffect:Ak.useEffect;function S1(A){let Q=(0,Ak.useRef)(A);return S3(()=>{Q.current=A}),(0,Ak.useCallback)(function(){for(var A=arguments.length,B=Array(A),C=0;C{B.current!==A&&(B.current=A)},Q),B}function S2(A,Q){let B=(0,Ak.useRef)();return(0,Ak.useMemo)(()=>{let Q=A(B.current);return B.current=Q,Q},[...Q])}function S5(A){let Q=S1(A),B=(0,Ak.useRef)(null),C=(0,Ak.useCallback)(A=>{A!==B.current&&(null==Q||Q(A,B.current)),B.current=A},[]);return[B,C]}function S9(A){let Q=(0,Ak.useRef)();return(0,Ak.useEffect)(()=>{Q.current=A},[A]),Q.current}let S6={};function S7(A,Q){return(0,Ak.useMemo)(()=>{if(Q)return Q;let B=null==S6[A]?0:S6[A]+1;return S6[A]=B,A+"-"+B},[A,Q])}function FA(A){return function(Q){for(var B=arguments.length,C=Array(B>1?B-1:0),I=1;I{for(let[C,I]of Object.entries(B)){let B=Q[C];null!=B&&(Q[C]=B+A*I)}return Q},{...Q})}}let FQ=FA(1),FB=FA(-1);function FC(A){if(!A)return!1;let{KeyboardEvent:Q}=Sq(A.target);return Q&&A instanceof Q}function FI(A){if(function(A){if(!A)return!1;let{TouchEvent:Q}=Sq(A.target);return Q&&A instanceof Q}(A)){if(A.touches&&A.touches.length){let{clientX:Q,clientY:B}=A.touches[0];return{x:Q,y:B}}if(A.changedTouches&&A.changedTouches.length){let{clientX:Q,clientY:B}=A.changedTouches[0];return{x:Q,y:B}}}return"clientX"in A&&"clientY"in A?{x:A.clientX,y:A.clientY}:null}let FE=Object.freeze({Translate:{toString(A){if(!A)return;let{x:Q,y:B}=A;return"translate3d("+(Q?Math.round(Q):0)+"px, "+(B?Math.round(B):0)+"px, 0)"}},Scale:{toString(A){if(!A)return;let{scaleX:Q,scaleY:B}=A;return"scaleX("+Q+") scaleY("+B+")"}},Transform:{toString(A){if(A)return[FE.Translate.toString(A),FE.Scale.toString(A)].join(" ")}},Transition:{toString(A){let{property:Q,duration:B,easing:C}=A;return Q+" "+B+"ms "+C}}}),Fg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",Fw={display:"none"};function FD(A){let{id:Q,value:B}=A;return Ak.createElement("div",{id:Q,style:Fw},B)}function Fc(A){let{id:Q,announcement:B,ariaLiveType:C="assertive"}=A;return Ak.createElement("div",{id:Q,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":C,"aria-atomic":!0},B)}let FM=(0,Ak.createContext)(null),Fs={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 "},Fy={onDragStart(A){let{active:Q}=A;return"Picked up draggable item "+Q.id+"."},onDragOver(A){let{active:Q,over:B}=A;return B?"Draggable item "+Q.id+" was moved over droppable area "+B.id+".":"Draggable item "+Q.id+" is no longer over a droppable area."},onDragEnd(A){let{active:Q,over:B}=A;return B?"Draggable item "+Q.id+" was dropped over droppable area "+B.id:"Draggable item "+Q.id+" was dropped."},onDragCancel(A){let{active:Q}=A;return"Dragging was cancelled. Draggable item "+Q.id+" was dropped."}};function Fn(A){let{announcements:Q=Fy,container:B,hiddenTextDescribedById:C,screenReaderInstructions:I=Fs}=A,{announce:E,announcement:g}=function(){let[A,Q]=(0,Ak.useState)("");return{announce:(0,Ak.useCallback)(A=>{null!=A&&Q(A)},[]),announcement:A}}(),w=S7("DndLiveRegion"),[D,c]=(0,Ak.useState)(!1);if((0,Ak.useEffect)(()=>{c(!0)},[]),!function(A){let Q=(0,Ak.useContext)(FM);(0,Ak.useEffect)(()=>{if(!Q)throw Error("useDndMonitor must be used within a children of ");return Q(A)},[A,Q])}((0,Ak.useMemo)(()=>({onDragStart(A){let{active:B}=A;E(Q.onDragStart({active:B}))},onDragMove(A){let{active:B,over:C}=A;Q.onDragMove&&E(Q.onDragMove({active:B,over:C}))},onDragOver(A){let{active:B,over:C}=A;E(Q.onDragOver({active:B,over:C}))},onDragEnd(A){let{active:B,over:C}=A;E(Q.onDragEnd({active:B,over:C}))},onDragCancel(A){let{active:B,over:C}=A;E(Q.onDragCancel({active:B,over:C}))}}),[E,Q])),!D)return null;let M=Ak.createElement(Ak.Fragment,null,Ak.createElement(FD,{id:C,value:I.draggable}),Ak.createElement(Fc,{id:w,announcement:g}));return B?(0,Ao.createPortal)(M,B):M}function Fh(){}function Fk(A,Q){return(0,Ak.useMemo)(()=>({sensor:A,options:null!=Q?Q:{}}),[A,Q])}(o=AQ||(AQ={})).DragStart="dragStart",o.DragMove="dragMove",o.DragEnd="dragEnd",o.DragCancel="dragCancel",o.DragOver="dragOver",o.RegisterDroppable="registerDroppable",o.SetDroppableDisabled="setDroppableDisabled",o.UnregisterDroppable="unregisterDroppable";let FK=Object.freeze({x:0,y:0});function Ft(A,Q){let{data:{value:B}}=A,{data:{value:C}}=Q;return C-B}let FU=A=>{let{collisionRect:Q,droppableRects:B,droppableContainers:C}=A,I=[];for(let A of C){let{id:C}=A,E=B.get(C);if(E){let B=function(A,Q){let B=Math.max(Q.top,A.top),C=Math.max(Q.left,A.left),I=Math.min(Q.left+Q.width,A.left+A.width),E=Math.min(Q.top+Q.height,A.top+A.height);if(C0&&I.push({id:C,data:{droppableContainer:A,value:B}})}}return I.sort(Ft)};function FL(A,Q){return A&&Q?{x:A.left-Q.left,y:A.top-Q.top}:FK}let Fi=function(A){for(var Q=arguments.length,B=Array(Q>1?Q-1:0),C=1;C({...A,top:A.top+1*Q.y,bottom:A.bottom+1*Q.y,left:A.left+1*Q.x,right:A.right+1*Q.x}),{...A})};function FG(A){if(A.startsWith("matrix3d(")){let Q=A.slice(9,-1).split(/, /);return{x:+Q[12],y:+Q[13],scaleX:+Q[0],scaleY:+Q[5]}}if(A.startsWith("matrix(")){let Q=A.slice(7,-1).split(/, /);return{x:+Q[4],y:+Q[5],scaleX:+Q[0],scaleY:+Q[3]}}return null}let Fp={ignoreTransform:!1};function Fr(A,Q){void 0===Q&&(Q=Fp);let B=A.getBoundingClientRect();if(Q.ignoreTransform){let{transform:Q,transformOrigin:C}=Sq(A).getComputedStyle(A);Q&&(B=function(A,Q,B){let C=FG(Q);if(!C)return A;let{scaleX:I,scaleY:E,x:g,y:w}=C,D=A.left-g-(1-I)*parseFloat(B),c=A.top-w-(1-E)*parseFloat(B.slice(B.indexOf(" ")+1)),M=I?A.width/I:A.width,s=E?A.height/E:A.height;return{width:M,height:s,top:c,right:D+M,bottom:c+s,left:D}}(B,Q,C))}let{top:C,left:I,width:E,height:g,bottom:w,right:D}=B;return{top:C,left:I,width:E,height:g,bottom:w,right:D}}function Fa(A){return Fr(A,{ignoreTransform:!0})}function Fo(A,Q){let B=[];return A?function C(I){var E;if(null!=Q&&B.length>=Q||!I)return B;if(S_(I)&&null!=I.scrollingElement&&!B.includes(I.scrollingElement))return B.push(I.scrollingElement),B;if(!S$(I)||S0(I)||B.includes(I))return B;let g=Sq(A).getComputedStyle(I);return(I!==A&&function(A,Q){void 0===Q&&(Q=Sq(A).getComputedStyle(A));let B=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(A=>{let C=Q[A];return"string"==typeof C&&B.test(C)})}(I,g)&&B.push(I),void 0===(E=g)&&(E=Sq(I).getComputedStyle(I)),"fixed"===E.position)?B:C(I.parentNode)}(A):B}function FN(A){let[Q]=Fo(A,1);return null!=Q?Q:null}function Fe(A){return SV&&A?Sv(A)?A:SX(A)?S_(A)||A===S8(A).scrollingElement?window:S$(A)?A:null:null:null}function FJ(A){return Sv(A)?A.scrollX:A.scrollLeft}function FS(A){return Sv(A)?A.scrollY:A.scrollTop}function FF(A){return{x:FJ(A),y:FS(A)}}function Fl(A){return!!SV&&!!A&&A===document.scrollingElement}function FY(A){let Q={x:0,y:0},B=Fl(A)?{height:window.innerHeight,width:window.innerWidth}:{height:A.clientHeight,width:A.clientWidth},C={x:A.scrollWidth-B.width,y:A.scrollHeight-B.height},I=A.scrollTop<=Q.y;return{isTop:I,isLeft:A.scrollLeft<=Q.x,isBottom:A.scrollTop>=C.y,isRight:A.scrollLeft>=C.x,maxScroll:C,minScroll:Q}}(N=AB||(AB={}))[N.Forward=1]="Forward",N[N.Backward=-1]="Backward";let FH={x:.2,y:.2};function Ff(A){return A.reduce((A,Q)=>FQ(A,FF(Q)),FK)}function Fd(A,Q){if(void 0===Q&&(Q=Fr),!A)return;let{top:B,left:C,bottom:I,right:E}=Q(A);FN(A)&&(I<=0||E<=0||B>=window.innerHeight||C>=window.innerWidth)&&A.scrollIntoView({block:"center",inline:"center"})}let Fu=[["x",["left","right"],function(A){return A.reduce((A,Q)=>A+FJ(Q),0)}],["y",["top","bottom"],function(A){return A.reduce((A,Q)=>A+FS(Q),0)}]];class FR{constructor(A,Q){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 B=Fo(Q),C=Ff(B);for(let[Q,I,E]of(this.rect={...A},this.width=A.width,this.height=A.height,Fu))for(let A of I)Object.defineProperty(this,A,{get:()=>{let I=E(B),g=C[Q]-I;return this.rect[A]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Fj{constructor(A){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(A=>{var Q;return null==(Q=this.target)?void 0:Q.removeEventListener(...A)})},this.target=A}add(A,Q,B){var C;null==(C=this.target)||C.addEventListener(A,Q,B),this.listeners.push([A,Q,B])}}function Fb(A,Q){let B=Math.abs(A.x),C=Math.abs(A.y);return"number"==typeof Q?Math.sqrt(B**2+C**2)>Q:"x"in Q&&"y"in Q?B>Q.x&&C>Q.y:"x"in Q?B>Q.x:"y"in Q&&C>Q.y}function Fm(A){A.preventDefault()}function FZ(A){A.stopPropagation()}(e=AC||(AC={})).Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange",(J=AI||(AI={})).Space="Space",J.Down="ArrowDown",J.Right="ArrowRight",J.Left="ArrowLeft",J.Up="ArrowUp",J.Esc="Escape",J.Enter="Enter";let FT={start:[AI.Space,AI.Enter],cancel:[AI.Esc],end:[AI.Space,AI.Enter]},FP=(A,Q)=>{let{currentCoordinates:B}=Q;switch(A.code){case AI.Right:return{...B,x:B.x+25};case AI.Left:return{...B,x:B.x-25};case AI.Down:return{...B,y:B.y+25};case AI.Up:return{...B,y:B.y-25}}};class FO{constructor(A){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=A;let{event:{target:Q}}=A;this.props=A,this.listeners=new Fj(S8(Q)),this.windowListeners=new Fj(Sq(Q)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(AC.Resize,this.handleCancel),this.windowListeners.add(AC.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(AC.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:A,onStart:Q}=this.props,B=A.node.current;B&&Fd(B),Q(FK)}handleKeyDown(A){if(FC(A)){let{active:Q,context:B,options:C}=this.props,{keyboardCodes:I=FT,coordinateGetter:E=FP,scrollBehavior:g="smooth"}=C,{code:w}=A;if(I.end.includes(w)){this.handleEnd(A);return}if(I.cancel.includes(w)){this.handleCancel(A);return}let{collisionRect:D}=B.current,c=D?{x:D.left,y:D.top}:FK;this.referenceCoordinates||(this.referenceCoordinates=c);let M=E(A,{active:Q,context:B.current,currentCoordinates:c});if(M){let Q=FB(M,c),C={x:0,y:0},{scrollableAncestors:I}=B.current;for(let B of I){let I=A.code,{isTop:E,isRight:w,isLeft:D,isBottom:c,maxScroll:s,minScroll:y}=FY(B),n=function(A){if(A===document.scrollingElement){let{innerWidth:A,innerHeight:Q}=window;return{top:0,left:0,right:A,bottom:Q,width:A,height:Q}}let{top:Q,left:B,right:C,bottom:I}=A.getBoundingClientRect();return{top:Q,left:B,right:C,bottom:I,width:A.clientWidth,height:A.clientHeight}}(B),h={x:Math.min(I===AI.Right?n.right-n.width/2:n.right,Math.max(I===AI.Right?n.left:n.left+n.width/2,M.x)),y:Math.min(I===AI.Down?n.bottom-n.height/2:n.bottom,Math.max(I===AI.Down?n.top:n.top+n.height/2,M.y))},k=I===AI.Right&&!w||I===AI.Left&&!D,K=I===AI.Down&&!c||I===AI.Up&&!E;if(k&&h.x!==M.x){let A=B.scrollLeft+Q.x,E=I===AI.Right&&A<=s.x||I===AI.Left&&A>=y.x;if(E&&!Q.y){B.scrollTo({left:A,behavior:g});return}E?C.x=B.scrollLeft-A:C.x=I===AI.Right?B.scrollLeft-s.x:B.scrollLeft-y.x,C.x&&B.scrollBy({left:-C.x,behavior:g});break}if(K&&h.y!==M.y){let A=B.scrollTop+Q.y,E=I===AI.Down&&A<=s.y||I===AI.Up&&A>=y.y;if(E&&!Q.x){B.scrollTo({top:A,behavior:g});return}E?C.y=B.scrollTop-A:C.y=I===AI.Down?B.scrollTop-s.y:B.scrollTop-y.y,C.y&&B.scrollBy({top:-C.y,behavior:g});break}}this.handleMove(A,FQ(FB(M,this.referenceCoordinates),C))}}}handleMove(A,Q){let{onMove:B}=this.props;A.preventDefault(),B(Q)}handleEnd(A){let{onEnd:Q}=this.props;A.preventDefault(),this.detach(),Q()}handleCancel(A){let{onCancel:Q}=this.props;A.preventDefault(),this.detach(),Q()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function FW(A){return!!(A&&"distance"in A)}function Fz(A){return!!(A&&"delay"in A)}FO.activators=[{eventName:"onKeyDown",handler:(A,Q,B)=>{let{keyboardCodes:C=FT,onActivation:I}=Q,{active:E}=B,{code:g}=A.nativeEvent;if(C.start.includes(g)){let Q=E.activatorNode.current;return(!Q||A.target===Q)&&(A.preventDefault(),null==I||I({event:A.nativeEvent}),!0)}return!1}}];class Fx{constructor(A,Q,B){var C;void 0===B&&(B=function(A){let{EventTarget:Q}=Sq(A);return A instanceof Q?A:S8(A)}(A.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=A,this.events=Q;let{event:I}=A,{target:E}=I;this.props=A,this.events=Q,this.document=S8(E),this.documentListeners=new Fj(this.document),this.listeners=new Fj(B),this.windowListeners=new Fj(Sq(E)),this.initialCoordinates=null!=(C=FI(I))?C:FK,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:A,props:{options:{activationConstraint:Q,bypassActivationConstraint:B}}}=this;if(this.listeners.add(A.move.name,this.handleMove,{passive:!1}),this.listeners.add(A.end.name,this.handleEnd),this.windowListeners.add(AC.Resize,this.handleCancel),this.windowListeners.add(AC.DragStart,Fm),this.windowListeners.add(AC.VisibilityChange,this.handleCancel),this.windowListeners.add(AC.ContextMenu,Fm),this.documentListeners.add(AC.Keydown,this.handleKeydown),Q){if(null!=B&&B({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Fz(Q)){this.timeoutId=setTimeout(this.handleStart,Q.delay);return}if(FW(Q))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:A}=this,{onStart:Q}=this.props;A&&(this.activated=!0,this.documentListeners.add(AC.Click,FZ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(AC.SelectionChange,this.removeTextSelection),Q(A))}handleMove(A){var Q;let{activated:B,initialCoordinates:C,props:I}=this,{onMove:E,options:{activationConstraint:g}}=I;if(!C)return;let w=null!=(Q=FI(A))?Q:FK,D=FB(C,w);if(!B&&g){if(FW(g)){if(null!=g.tolerance&&Fb(D,g.tolerance))return this.handleCancel();if(Fb(D,g.distance))return this.handleStart()}return Fz(g)&&Fb(D,g.tolerance)?this.handleCancel():void 0}A.cancelable&&A.preventDefault(),E(w)}handleEnd(){let{onEnd:A}=this.props;this.detach(),A()}handleCancel(){let{onCancel:A}=this.props;this.detach(),A()}handleKeydown(A){A.code===AI.Esc&&this.handleCancel()}removeTextSelection(){var A;null==(A=this.document.getSelection())||A.removeAllRanges()}}let FV={move:{name:"pointermove"},end:{name:"pointerup"}};class Fv extends Fx{constructor(A){let{event:Q}=A;super(A,FV,S8(Q.target))}}Fv.activators=[{eventName:"onPointerDown",handler:(A,Q)=>{let{nativeEvent:B}=A,{onActivation:C}=Q;return!!B.isPrimary&&0===B.button&&(null==C||C({event:B}),!0)}}];let FX={move:{name:"mousemove"},end:{name:"mouseup"}};(S=AE||(AE={}))[S.RightClick=2]="RightClick";class Fq extends Fx{constructor(A){super(A,FX,S8(A.event.target))}}Fq.activators=[{eventName:"onMouseDown",handler:(A,Q)=>{let{nativeEvent:B}=A,{onActivation:C}=Q;return B.button!==AE.RightClick&&(null==C||C({event:B}),!0)}}];let F_={move:{name:"touchmove"},end:{name:"touchend"}};class F$ extends Fx{constructor(A){super(A,F_)}static setup(){return window.addEventListener(F_.move.name,A,{capture:!1,passive:!1}),function(){window.removeEventListener(F_.move.name,A)};function A(){}}}F$.activators=[{eventName:"onTouchStart",handler:(A,Q)=>{let{nativeEvent:B}=A,{onActivation:C}=Q,{touches:I}=B;return!(I.length>1)&&(null==C||C({event:B}),!0)}}],(F=Ag||(Ag={}))[F.Pointer=0]="Pointer",F[F.DraggableRect=1]="DraggableRect",(l=Aw||(Aw={}))[l.TreeOrder=0]="TreeOrder",l[l.ReversedTreeOrder=1]="ReversedTreeOrder";let F0={x:{[AB.Backward]:!1,[AB.Forward]:!1},y:{[AB.Backward]:!1,[AB.Forward]:!1}};(Y=AD||(AD={}))[Y.Always=0]="Always",Y[Y.BeforeDragging=1]="BeforeDragging",Y[Y.WhileDragging=2]="WhileDragging",(Ac||(Ac={})).Optimized="optimized";let F8=new Map;function F3(A,Q){return S2(B=>A?B||("function"==typeof Q?Q(A):A):null,[Q,A])}function F1(A){let{callback:Q,disabled:B}=A,C=S1(Q),I=(0,Ak.useMemo)(()=>{if(B||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:A}=window;return new A(C)},[B]);return(0,Ak.useEffect)(()=>()=>null==I?void 0:I.disconnect(),[I]),I}function F4(A){return new FR(Fr(A),A)}function F2(A,Q,B){void 0===Q&&(Q=F4);let[C,I]=(0,Ak.useReducer)(function(C){if(!A)return null;if(!1===A.isConnected){var I;return null!=(I=null!=C?C:B)?I:null}let E=Q(A);return JSON.stringify(C)===JSON.stringify(E)?C:E},null),E=function(A){let{callback:Q,disabled:B}=A,C=S1(Q),I=(0,Ak.useMemo)(()=>{if(B||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:A}=window;return new A(C)},[C,B]);return(0,Ak.useEffect)(()=>()=>null==I?void 0:I.disconnect(),[I]),I}({callback(Q){if(A)for(let B of Q){let{type:Q,target:C}=B;if("childList"===Q&&C instanceof HTMLElement&&C.contains(A)){I();break}}}}),g=F1({callback:I});return S3(()=>{I(),A?(null==g||g.observe(A),null==E||E.observe(document.body,{childList:!0,subtree:!0})):(null==g||g.disconnect(),null==E||E.disconnect())},[A]),C}let F5=[];function F9(A,Q){void 0===Q&&(Q=[]);let B=(0,Ak.useRef)(null);return(0,Ak.useEffect)(()=>{B.current=null},Q),(0,Ak.useEffect)(()=>{let Q=A!==FK;Q&&!B.current&&(B.current=A),!Q&&B.current&&(B.current=null)},[A]),B.current?FB(A,B.current):FK}function F6(A){return(0,Ak.useMemo)(()=>A?function(A){let Q=A.innerWidth,B=A.innerHeight;return{top:0,left:0,right:Q,bottom:B,width:Q,height:B}}(A):null,[A])}let F7=[];function lA(A){if(!A)return null;if(A.children.length>1)return A;let Q=A.children[0];return S$(Q)?Q:A}let lQ=[{sensor:Fv,options:{}},{sensor:FO,options:{}}],lB={current:{}},lC={draggable:{measure:Fa},droppable:{measure:Fa,strategy:AD.WhileDragging,frequency:Ac.Optimized},dragOverlay:{measure:Fr}};class lI extends Map{get(A){var Q;return null!=A&&null!=(Q=super.get(A))?Q:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(A=>{let{disabled:Q}=A;return!Q})}getNodeFor(A){var Q,B;return null!=(Q=null==(B=this.get(A))?void 0:B.node.current)?Q:void 0}}let lE={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new lI,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Fh},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:lC,measureDroppableContainers:Fh,windowRect:null,measuringScheduled:!1},lg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Fh,draggableNodes:new Map,over:null,measureDroppableContainers:Fh},lw=(0,Ak.createContext)(lg),lD=(0,Ak.createContext)(lE);function lc(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new lI}}}function lM(A,Q){switch(Q.type){case AQ.DragStart:return{...A,draggable:{...A.draggable,initialCoordinates:Q.initialCoordinates,active:Q.active}};case AQ.DragMove:if(!A.draggable.active)return A;return{...A,draggable:{...A.draggable,translate:{x:Q.coordinates.x-A.draggable.initialCoordinates.x,y:Q.coordinates.y-A.draggable.initialCoordinates.y}}};case AQ.DragEnd:case AQ.DragCancel:return{...A,draggable:{...A.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case AQ.RegisterDroppable:{let{element:B}=Q,{id:C}=B,I=new lI(A.droppable.containers);return I.set(C,B),{...A,droppable:{...A.droppable,containers:I}}}case AQ.SetDroppableDisabled:{let{id:B,key:C,disabled:I}=Q,E=A.droppable.containers.get(B);if(!E||C!==E.key)return A;let g=new lI(A.droppable.containers);return g.set(B,{...E,disabled:I}),{...A,droppable:{...A.droppable,containers:g}}}case AQ.UnregisterDroppable:{let{id:B,key:C}=Q,I=A.droppable.containers.get(B);if(!I||C!==I.key)return A;let E=new lI(A.droppable.containers);return E.delete(B),{...A,droppable:{...A.droppable,containers:E}}}default:return A}}function ls(A){let{disabled:Q}=A,{active:B,activatorEvent:C,draggableNodes:I}=(0,Ak.useContext)(lw),E=S9(C),g=S9(null==B?void 0:B.id);return(0,Ak.useEffect)(()=>{if(!Q&&!C&&E&&null!=g){if(!FC(E)||document.activeElement===E.target)return;let A=I.get(g);if(!A)return;let{activatorNode:Q,node:B}=A;(Q.current||B.current)&&requestAnimationFrame(()=>{for(let A of[Q.current,B.current]){if(!A)continue;let Q=A.matches(Fg)?A:A.querySelector(Fg);if(Q){Q.focus();break}}})}},[C,Q,I,g,E]),null}function ly(A,Q){let{transform:B,...C}=Q;return null!=A&&A.length?A.reduce((A,Q)=>Q({transform:A,...C}),B):B}let ln=(0,Ak.createContext)({...FK,scaleX:1,scaleY:1});(H=AM||(AM={}))[H.Uninitialized=0]="Uninitialized",H[H.Initializing=1]="Initializing",H[H.Initialized=2]="Initialized";let lh=(0,Ak.memo)(function(A){var Q,B,C,I,E,g;let{id:w,accessibility:D,autoScroll:c=!0,children:M,sensors:s=lQ,collisionDetection:y=FU,measuring:n,modifiers:h,...k}=A,[K,t]=(0,Ak.useReducer)(lM,void 0,lc),[U,L]=function(){let[A]=(0,Ak.useState)(()=>new Set),Q=(0,Ak.useCallback)(Q=>(A.add(Q),()=>A.delete(Q)),[A]);return[(0,Ak.useCallback)(Q=>{let{type:B,event:C}=Q;A.forEach(A=>{var Q;return null==(Q=A[B])?void 0:Q.call(A,C)})},[A]),Q]}(),[i,G]=(0,Ak.useState)(AM.Uninitialized),p=i===AM.Initialized,{draggable:{active:r,nodes:a,translate:o},droppable:{containers:N}}=K,e=r?a.get(r):null,J=(0,Ak.useRef)({initial:null,translated:null}),S=(0,Ak.useMemo)(()=>{var A;return null!=r?{id:r,data:null!=(A=null==e?void 0:e.data)?A:lB,rect:J}:null},[r,e]),F=(0,Ak.useRef)(null),[l,Y]=(0,Ak.useState)(null),[H,f]=(0,Ak.useState)(null),d=S4(k,Object.values(k)),u=S7("DndDescribedBy",w),R=(0,Ak.useMemo)(()=>N.getEnabled(),[N]),j=(0,Ak.useMemo)(()=>({draggable:{...lC.draggable,...null==n?void 0:n.draggable},droppable:{...lC.droppable,...null==n?void 0:n.droppable},dragOverlay:{...lC.dragOverlay,...null==n?void 0:n.dragOverlay}}),[null==n?void 0:n.draggable,null==n?void 0:n.droppable,null==n?void 0:n.dragOverlay]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:Z}=function(A,Q){let{dragging:B,dependencies:C,config:I}=Q,[E,g]=(0,Ak.useState)(null),{frequency:w,measure:D,strategy:c}=I,M=(0,Ak.useRef)(A),s=function(){switch(c){case AD.Always:return!1;case AD.BeforeDragging:return B;default:return!B}}(),y=S4(s),n=(0,Ak.useCallback)(function(A){void 0===A&&(A=[]),y.current||g(Q=>null===Q?A:Q.concat(A.filter(A=>!Q.includes(A))))},[y]),h=(0,Ak.useRef)(null),k=S2(Q=>{if(s&&!B)return F8;if(!Q||Q===F8||M.current!==A||null!=E){let Q=new Map;for(let B of A){if(!B)continue;if(E&&E.length>0&&!E.includes(B.id)&&B.rect.current){Q.set(B.id,B.rect.current);continue}let A=B.node.current,C=A?new FR(D(A),A):null;B.rect.current=C,C&&Q.set(B.id,C)}return Q}return Q},[A,E,B,s,D]);return(0,Ak.useEffect)(()=>{M.current=A},[A]),(0,Ak.useEffect)(()=>{s||n()},[B,s]),(0,Ak.useEffect)(()=>{E&&E.length>0&&g(null)},[JSON.stringify(E)]),(0,Ak.useEffect)(()=>{s||"number"!=typeof w||null!==h.current||(h.current=setTimeout(()=>{n(),h.current=null},w))},[w,s,n,...C]),{droppableRects:k,measureDroppableContainers:n,measuringScheduled:null!=E}}(R,{dragging:p,dependencies:[o.x,o.y],config:j.droppable}),T=function(A,Q){let B=null!==Q?A.get(Q):void 0,C=B?B.node.current:null;return S2(A=>{var B;return null===Q?null:null!=(B=null!=C?C:A)?B:null},[C,Q])}(a,r),P=(0,Ak.useMemo)(()=>H?FI(H):null,[H]),O=function(){let A=(null==l?void 0:l.autoScrollEnabled)===!1,Q="object"==typeof c?!1===c.enabled:!1===c,B=p&&!A&&!Q;return"object"==typeof c?{...c,enabled:B}:{enabled:B}}(),W=F3(T,j.draggable.measure);!function(A){let{activeNode:Q,measure:B,initialRect:C,config:I=!0}=A,E=(0,Ak.useRef)(!1),{x:g,y:w}="boolean"==typeof I?{x:I,y:I}:I;S3(()=>{if(!g&&!w||!Q){E.current=!1;return}if(E.current||!C)return;let A=null==Q?void 0:Q.node.current;if(!A||!1===A.isConnected)return;let I=FL(B(A),C);if(g||(I.x=0),w||(I.y=0),E.current=!0,Math.abs(I.x)>0||Math.abs(I.y)>0){let Q=FN(A);Q&&Q.scrollBy({top:I.y,left:I.x})}},[Q,g,w,C,B])}({activeNode:r?a.get(r):null,config:O.layoutShiftCompensation,initialRect:W,measure:j.draggable.measure});let z=F2(T,j.draggable.measure,W),x=F2(T?T.parentElement:null),V=(0,Ak.useRef)({activatorEvent:null,active:null,activeNode:T,collisionRect:null,collisions:null,droppableRects:b,draggableNodes:a,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),v=N.getNodeFor(null==(Q=V.current.over)?void 0:Q.id),X=function(A){let{measure:Q}=A,[B,C]=(0,Ak.useState)(null),I=F1({callback:(0,Ak.useCallback)(A=>{for(let{target:B}of A)if(S$(B)){C(A=>{let C=Q(B);return A?{...A,width:C.width,height:C.height}:C});break}},[Q])}),[E,g]=S5((0,Ak.useCallback)(A=>{let B=lA(A);null==I||I.disconnect(),B&&(null==I||I.observe(B)),C(B?Q(B):null)},[Q,I]));return(0,Ak.useMemo)(()=>({nodeRef:E,rect:B,setRef:g}),[B,E,g])}({measure:j.dragOverlay.measure}),q=null!=(B=X.nodeRef.current)?B:T,_=p?null!=(C=X.rect)?C:z:null,$=!!(X.nodeRef.current&&X.rect),AA=function(A){let Q=F3(A);return FL(A,Q)}($?null:z),AC=F6(q?Sq(q):null),AI=function(A){let Q=(0,Ak.useRef)(A),B=S2(B=>A?B&&B!==F5&&A&&Q.current&&A.parentNode===Q.current.parentNode?B:Fo(A):F5,[A]);return(0,Ak.useEffect)(()=>{Q.current=A},[A]),B}(p?null!=v?v:T:null),AE=function(A,Q){void 0===Q&&(Q=Fr);let[B]=A,C=F6(B?Sq(B):null),[I,E]=(0,Ak.useReducer)(function(){return A.length?A.map(A=>Fl(A)?C:new FR(Q(A),A)):F7},F7),g=F1({callback:E});return A.length>0&&I===F7&&E(),S3(()=>{A.length?A.forEach(A=>null==g?void 0:g.observe(A)):(null==g||g.disconnect(),E())},[A]),I}(AI),Ac=ly(h,{transform:{x:o.x-AA.x,y:o.y-AA.y,scaleX:1,scaleY:1},activatorEvent:H,active:S,activeNodeRect:z,containerNodeRect:x,draggingNodeRect:_,over:V.current.over,overlayNodeRect:X.rect,scrollableAncestors:AI,scrollableAncestorRects:AE,windowRect:AC}),As=P?FQ(P,o):null,Ay=function(A){let[Q,B]=(0,Ak.useState)(null),C=(0,Ak.useRef)(A),I=(0,Ak.useCallback)(A=>{let Q=Fe(A.target);Q&&B(A=>A?(A.set(Q,FF(Q)),new Map(A)):null)},[]);return(0,Ak.useEffect)(()=>{let Q=C.current;if(A!==Q){E(Q);let g=A.map(A=>{let Q=Fe(A);return Q?(Q.addEventListener("scroll",I,{passive:!0}),[Q,FF(Q)]):null}).filter(A=>null!=A);B(g.length?new Map(g):null),C.current=A}return()=>{E(A),E(Q)};function E(A){A.forEach(A=>{let Q=Fe(A);null==Q||Q.removeEventListener("scroll",I)})}},[I,A]),(0,Ak.useMemo)(()=>A.length?Q?Array.from(Q.values()).reduce((A,Q)=>FQ(A,Q),FK):Ff(A):FK,[A,Q])}(AI),An=F9(Ay),Ah=F9(Ay,[z]),AK=FQ(Ac,An),At=_?Fi(_,Ac):null,AU=S&&At?y({active:S,collisionRect:At,droppableRects:b,droppableContainers:R,pointerCoordinates:As}):null,AL=function(A,Q){if(!A||0===A.length)return null;let[B]=A;return B.id}(AU,0),[Ai,AG]=(0,Ak.useState)(null),Ap=(E=$?Ac:FQ(Ac,Ah),g=null!=(I=null==Ai?void 0:Ai.rect)?I:null,{...E,scaleX:g&&z?g.width/z.width:1,scaleY:g&&z?g.height/z.height:1}),Ar=(0,Ak.useCallback)((A,Q)=>{let{sensor:B,options:C}=Q;if(null==F.current)return;let I=a.get(F.current);if(!I)return;let E=A.nativeEvent,g=new B({active:F.current,activeNode:I,event:E,options:C,context:V,onStart(A){let Q=F.current;if(null==Q)return;let B=a.get(Q);if(!B)return;let{onDragStart:C}=d.current,I={active:{id:Q,data:B.data,rect:J}};(0,Ao.unstable_batchedUpdates)(()=>{null==C||C(I),G(AM.Initializing),t({type:AQ.DragStart,initialCoordinates:A,active:Q}),U({type:"onDragStart",event:I})})},onMove(A){t({type:AQ.DragMove,coordinates:A})},onEnd:w(AQ.DragEnd),onCancel:w(AQ.DragCancel)});function w(A){return async function(){let{active:Q,collisions:B,over:C,scrollAdjustedTranslate:I}=V.current,g=null;if(Q&&I){let{cancelDrop:w}=d.current;g={activatorEvent:E,active:Q,collisions:B,delta:I,over:C},A===AQ.DragEnd&&"function"==typeof w&&await Promise.resolve(w(g))&&(A=AQ.DragCancel)}F.current=null,(0,Ao.unstable_batchedUpdates)(()=>{t({type:A}),G(AM.Uninitialized),AG(null),Y(null),f(null);let Q=A===AQ.DragEnd?"onDragEnd":"onDragCancel";if(g){let A=d.current[Q];null==A||A(g),U({type:Q,event:g})}})}}(0,Ao.unstable_batchedUpdates)(()=>{Y(g),f(A.nativeEvent)})},[a]),Aa=(0,Ak.useCallback)((A,Q)=>(B,C)=>{let I=B.nativeEvent,E=a.get(C);null!==F.current||!E||I.dndKit||I.defaultPrevented||!0!==A(B,Q.options,{active:E})||(I.dndKit={capturedBy:Q.sensor},F.current=C,Ar(B,Q))},[a,Ar]),AN=(0,Ak.useMemo)(()=>s.reduce((A,Q)=>{let{sensor:B}=Q;return[...A,...B.activators.map(A=>({eventName:A.eventName,handler:Aa(A.handler,Q)}))]},[]),[s,Aa]);(0,Ak.useEffect)(()=>{if(!SV)return;let A=s.map(A=>{let{sensor:Q}=A;return null==Q.setup?void 0:Q.setup()});return()=>{for(let Q of A)null==Q||Q()}},s.map(A=>{let{sensor:Q}=A;return Q})),S3(()=>{z&&i===AM.Initializing&&G(AM.Initialized)},[z,i]),(0,Ak.useEffect)(()=>{let{onDragMove:A}=d.current,{active:Q,activatorEvent:B,collisions:C,over:I}=V.current;if(!Q||!B)return;let E={active:Q,activatorEvent:B,collisions:C,delta:{x:AK.x,y:AK.y},over:I};(0,Ao.unstable_batchedUpdates)(()=>{null==A||A(E),U({type:"onDragMove",event:E})})},[AK.x,AK.y]),(0,Ak.useEffect)(()=>{let{active:A,activatorEvent:Q,collisions:B,droppableContainers:C,scrollAdjustedTranslate:I}=V.current;if(!A||null==F.current||!Q||!I)return;let{onDragOver:E}=d.current,g=C.get(AL),w=g&&g.rect.current?{id:g.id,rect:g.rect.current,data:g.data,disabled:g.disabled}:null,D={active:A,activatorEvent:Q,collisions:B,delta:{x:I.x,y:I.y},over:w};(0,Ao.unstable_batchedUpdates)(()=>{AG(w),null==E||E(D),U({type:"onDragOver",event:D})})},[AL]),S3(()=>{V.current={activatorEvent:H,active:S,activeNode:T,collisionRect:At,collisions:AU,droppableRects:b,draggableNodes:a,draggingNode:q,draggingNodeRect:_,droppableContainers:N,over:Ai,scrollableAncestors:AI,scrollAdjustedTranslate:AK},J.current={initial:_,translated:At}},[S,T,AU,At,a,q,_,b,N,Ai,AI,AK]),function(A){let{acceleration:Q,activator:B=Ag.Pointer,canScroll:C,draggingRect:I,enabled:E,interval:g=5,order:w=Aw.TreeOrder,pointerCoordinates:D,scrollableAncestors:c,scrollableAncestorRects:M,delta:s,threshold:y}=A,n=function(A){let{delta:Q,disabled:B}=A,C=S9(Q);return S2(A=>{if(B||!C||!A)return F0;let I={x:Math.sign(Q.x-C.x),y:Math.sign(Q.y-C.y)};return{x:{[AB.Backward]:A.x[AB.Backward]||-1===I.x,[AB.Forward]:A.x[AB.Forward]||1===I.x},y:{[AB.Backward]:A.y[AB.Backward]||-1===I.y,[AB.Forward]:A.y[AB.Forward]||1===I.y}}},[B,Q,C])}({delta:s,disabled:!E}),[h,k]=function(){let A=(0,Ak.useRef)(null);return[(0,Ak.useCallback)((Q,B)=>{A.current=setInterval(Q,B)},[]),(0,Ak.useCallback)(()=>{null!==A.current&&(clearInterval(A.current),A.current=null)},[])]}(),K=(0,Ak.useRef)({x:0,y:0}),t=(0,Ak.useRef)({x:0,y:0}),U=(0,Ak.useMemo)(()=>{switch(B){case Ag.Pointer:return D?{top:D.y,bottom:D.y,left:D.x,right:D.x}:null;case Ag.DraggableRect:return I}},[B,I,D]),L=(0,Ak.useRef)(null),i=(0,Ak.useCallback)(()=>{let A=L.current;if(!A)return;let Q=K.current.x*t.current.x,B=K.current.y*t.current.y;A.scrollBy(Q,B)},[]),G=(0,Ak.useMemo)(()=>w===Aw.TreeOrder?[...c].reverse():c,[w,c]);(0,Ak.useEffect)(()=>{if(!E||!c.length||!U){k();return}for(let A of G){if((null==C?void 0:C(A))===!1)continue;let B=M[c.indexOf(A)];if(!B)continue;let{direction:I,speed:E}=function(A,Q,B,C,I){let{top:E,left:g,right:w,bottom:D}=B;void 0===C&&(C=10),void 0===I&&(I=FH);let{isTop:c,isBottom:M,isLeft:s,isRight:y}=FY(A),n={x:0,y:0},h={x:0,y:0},k={height:Q.height*I.y,width:Q.width*I.x};return!c&&E<=Q.top+k.height?(n.y=AB.Backward,h.y=C*Math.abs((Q.top+k.height-E)/k.height)):!M&&D>=Q.bottom-k.height&&(n.y=AB.Forward,h.y=C*Math.abs((Q.bottom-k.height-D)/k.height)),!y&&w>=Q.right-k.width?(n.x=AB.Forward,h.x=C*Math.abs((Q.right-k.width-w)/k.width)):!s&&g<=Q.left+k.width&&(n.x=AB.Backward,h.x=C*Math.abs((Q.left+k.width-g)/k.width)),{direction:n,speed:h}}(A,B,U,Q,y);for(let A of["x","y"])n[A][I[A]]||(E[A]=0,I[A]=0);if(E.x>0||E.y>0){k(),L.current=A,h(i,g),K.current=E,t.current=I;return}}K.current={x:0,y:0},t.current={x:0,y:0},k()},[Q,i,C,k,E,g,JSON.stringify(U),JSON.stringify(n),h,c,G,M,JSON.stringify(y)])}({...O,delta:o,draggingRect:At,pointerCoordinates:As,scrollableAncestors:AI,scrollableAncestorRects:AE});let Ae=(0,Ak.useMemo)(()=>({active:S,activeNode:T,activeNodeRect:z,activatorEvent:H,collisions:AU,containerNodeRect:x,dragOverlay:X,draggableNodes:a,droppableContainers:N,droppableRects:b,over:Ai,measureDroppableContainers:m,scrollableAncestors:AI,scrollableAncestorRects:AE,measuringConfiguration:j,measuringScheduled:Z,windowRect:AC}),[S,T,z,H,AU,x,X,a,N,b,Ai,m,AI,AE,j,Z,AC]),AJ=(0,Ak.useMemo)(()=>({activatorEvent:H,activators:AN,active:S,activeNodeRect:z,ariaDescribedById:{draggable:u},dispatch:t,draggableNodes:a,over:Ai,measureDroppableContainers:m}),[H,AN,S,z,t,u,a,Ai,m]);return Ak.createElement(FM.Provider,{value:L},Ak.createElement(lw.Provider,{value:AJ},Ak.createElement(lD.Provider,{value:Ae},Ak.createElement(ln.Provider,{value:Ap},M)),Ak.createElement(ls,{disabled:(null==D?void 0:D.restoreFocus)===!1})),Ak.createElement(Fn,{...D,hiddenTextDescribedById:u}))}),lk=(0,Ak.createContext)(null),lK="button",lt={timeout:25};function lU(A){let{animation:Q,children:B}=A,[C,I]=(0,Ak.useState)(null),[E,g]=(0,Ak.useState)(null),w=S9(B);return B||C||!w||I(w),S3(()=>{if(!E)return;let A=null==C?void 0:C.key,B=null==C?void 0:C.props.id;if(null==A||null==B){I(null);return}Promise.resolve(Q(B,E)).then(()=>{I(null)})},[Q,C,E]),Ak.createElement(Ak.Fragment,null,B,C?(0,Ak.cloneElement)(C,{ref:g}):null)}let lL={x:0,y:0,scaleX:1,scaleY:1};function li(A){let{children:Q}=A;return Ak.createElement(lw.Provider,{value:lg},Ak.createElement(ln.Provider,{value:lL},Q))}let lG={position:"fixed",touchAction:"none"},lp=A=>FC(A)?"transform 250ms ease":void 0,lr=(0,Ak.forwardRef)((A,Q)=>{let{as:B,activatorEvent:C,adjustScale:I,children:E,className:g,rect:w,style:D,transform:c,transition:M=lp}=A;if(!w)return null;let s=I?c:{...c,scaleX:1,scaleY:1},y={...lG,width:w.width,height:w.height,top:w.top,left:w.left,transform:FE.Transform.toString(s),transformOrigin:I&&C?function(A,Q){let B=FI(A);if(!B)return"0 0";let C={x:(B.x-Q.left)/Q.width*100,y:(B.y-Q.top)/Q.height*100};return C.x+"% "+C.y+"%"}(C,w):void 0,transition:"function"==typeof M?M(C):M,...D};return Ak.createElement(B,{className:g,style:y,ref:Q},E)}),la={duration:250,easing:"ease",keyframes:A=>{let{transform:{initial:Q,final:B}}=A;return[{transform:FE.Transform.toString(Q)},{transform:FE.Transform.toString(B)}]},sideEffects:(g={styles:{active:{opacity:"0"}}},A=>{let{active:Q,dragOverlay:B}=A,C={},{styles:I,className:E}=g;if(null!=I&&I.active)for(let[A,B]of Object.entries(I.active))void 0!==B&&(C[A]=Q.node.style.getPropertyValue(A),Q.node.style.setProperty(A,B));if(null!=I&&I.dragOverlay)for(let[A,Q]of Object.entries(I.dragOverlay))void 0!==Q&&B.node.style.setProperty(A,Q);return null!=E&&E.active&&Q.node.classList.add(E.active),null!=E&&E.dragOverlay&&B.node.classList.add(E.dragOverlay),function(){for(let[A,B]of Object.entries(C))Q.node.style.setProperty(A,B);null!=E&&E.active&&Q.node.classList.remove(E.active)}})},lo=0,lN=Ak.memo(A=>{var Q;let{adjustScale:B=!1,children:C,dropAnimation:I,style:E,transition:g,modifiers:w,wrapperElement:D="div",className:c,zIndex:M=999}=A,{activatorEvent:s,active:y,activeNodeRect:n,containerNodeRect:h,draggableNodes:k,droppableContainers:K,dragOverlay:t,over:U,measuringConfiguration:L,scrollableAncestors:i,scrollableAncestorRects:G,windowRect:p}=(0,Ak.useContext)(lD),r=(0,Ak.useContext)(ln),a=(Q=null==y?void 0:y.id,(0,Ak.useMemo)(()=>{if(null!=Q)return++lo},[Q])),o=ly(w,{activatorEvent:s,active:y,activeNodeRect:n,containerNodeRect:h,draggingNodeRect:t.rect,over:U,overlayNodeRect:t.rect,scrollableAncestors:i,scrollableAncestorRects:G,transform:r,windowRect:p}),N=F3(n),e=function(A){let{config:Q,draggableNodes:B,droppableContainers:C,measuringConfiguration:I}=A;return S1((A,E)=>{if(null===Q)return;let g=B.get(A);if(!g)return;let w=g.node.current;if(!w)return;let D=lA(E);if(!D)return;let{transform:c}=Sq(E).getComputedStyle(E),M=FG(c);if(!M)return;let s="function"==typeof Q?Q:function(A){let{duration:Q,easing:B,sideEffects:C,keyframes:I}={...la,...A};return A=>{let{active:E,dragOverlay:g,transform:w,...D}=A;if(!Q)return;let c={x:g.rect.left-E.rect.left,y:g.rect.top-E.rect.top},M={scaleX:1!==w.scaleX?E.rect.width*w.scaleX/g.rect.width:1,scaleY:1!==w.scaleY?E.rect.height*w.scaleY/g.rect.height:1},s={x:w.x-c.x,y:w.y-c.y,...M},y=I({...D,active:E,dragOverlay:g,transform:{initial:w,final:s}}),[n]=y,h=y[y.length-1];if(JSON.stringify(n)===JSON.stringify(h))return;let k=null==C?void 0:C({active:E,dragOverlay:g,...D}),K=g.node.animate(y,{duration:Q,easing:B,fill:"forwards"});return new Promise(A=>{K.onfinish=()=>{null==k||k(),A()}})}}(Q);return Fd(w,I.draggable.measure),s({active:{id:A,data:g.data,node:w,rect:I.draggable.measure(w)},draggableNodes:B,dragOverlay:{node:E,rect:I.dragOverlay.measure(D)},droppableContainers:C,measuringConfiguration:I,transform:M})})}({config:I,draggableNodes:k,droppableContainers:K,measuringConfiguration:L}),J=N?t.setRef:void 0;return Ak.createElement(li,null,Ak.createElement(lU,{animation:e},y&&a?Ak.createElement(lr,{key:a,id:y.id,ref:J,as:D,activatorEvent:s,adjustScale:B,className:c,transition:g,rect:N,style:{zIndex:M,...E},transform:o},C):null))});function le(){return(0,Ak.forwardRef)((A,Q)=>{let{data:B,style:C,attributes:I,listeners:E,context:g,columns:w,rowSize:D="default",focusId:c,focusColor:M="default",getCellClassNames:s,getContentClassNames:y,className:n}=A;return(0,Ah.jsx)("tr",{ref:Q,...I,...E,style:C,id:B.id,"data-testid":B.id,onClick:B.onClick,className:(0,Qk.cx)("border-b",B.isSelected?["bg-blue-400 border-blue-500/30","dark:bg-blue-600/50 dark:border-blue-600/20"]:"border-gray-200/50 dark:border-graydark-100",B.onClick?"cursor-pointer":"",B.className,n),children:w.map((A,Q)=>{let{id:C,render:I,contentClassName:E,cellClassName:w,rowCellClassName:n,rowContentClassName:h}=A;return(0,Ah.jsx)("td",{"data-testid":C,className:(0,Qk.cx)(s(Q,(0,Qk.cx)(w,n),!1),c&&c===B.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===M?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===M?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===M?"!shadow-red-500 dark:!shadow-red-400":"","amber"===M?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===M?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,Ah.jsx)("div",{className:(0,Qk.cx)(y(Q,(0,Qk.cx)(E,h)),"dense"===D?"h-[50px]":"default"===D?"h-[100px]":""),children:(0,Ah.jsx)(I,{data:B,context:g})})},"".concat(C,"/").concat(B.id))})},B.id)})}function lJ(A){let{data:Q,context:B,columns:C,rowSize:I="default",focusId:E,focusColor:g="default",getCellClassNames:w,getContentClassNames:D}=A,{attributes:c,listeners:M,setNodeRef:s,transform:y}=function(A){let{id:Q,data:B,disabled:C=!1,attributes:I}=A,E=S7("Droppable"),{activators:g,activatorEvent:w,active:D,activeNodeRect:c,ariaDescribedById:M,draggableNodes:s,over:y}=(0,Ak.useContext)(lw),{role:n=lK,roleDescription:h="draggable",tabIndex:k=0}=null!=I?I:{},K=(null==D?void 0:D.id)===Q,t=(0,Ak.useContext)(K?ln:lk),[U,L]=S5(),[i,G]=S5(),p=(0,Ak.useMemo)(()=>g.reduce((A,B)=>{let{eventName:C,handler:I}=B;return A[C]=A=>{I(A,Q)},A},{}),[g,Q]),r=S4(B);return S3(()=>(s.set(Q,{id:Q,key:E,node:U,activatorNode:i,data:r}),()=>{let A=s.get(Q);A&&A.key===E&&s.delete(Q)}),[s,Q]),{active:D,activatorEvent:w,activeNodeRect:c,attributes:(0,Ak.useMemo)(()=>({role:n,tabIndex:k,"aria-disabled":C,"aria-pressed":!!K&&n===lK||void 0,"aria-roledescription":h,"aria-describedby":M.draggable}),[C,n,k,K,h,M.draggable]),isDragging:K,listeners:C?void 0:p,node:U,over:y,setNodeRef:L,setActivatorNodeRef:G,transform:t}}({id:Q.id}),n=y?{transform:"translate3d(".concat(y.x,"px, ").concat(y.y,"px, 0)")}:void 0,h=(0,Ak.useMemo)(()=>le(),[]);return(0,Ah.jsx)(h,{ref:s,style:n,attributes:c,listeners:M,data:Q,context:B,columns:C,rowSize:I,focusId:E,focusColor:g,getCellClassNames:w,getContentClassNames:D})}function lS(A){let{data:Q,context:B,columns:C,rowSize:I="default",focusId:E,focusColor:g="default",getCellClassNames:w,getContentClassNames:D}=A,{isOver:c,setNodeRef:M}=function(A){let{data:Q,disabled:B=!1,id:C,resizeObserverConfig:I}=A,E=S7("Droppable"),{active:g,dispatch:w,over:D,measureDroppableContainers:c}=(0,Ak.useContext)(lw),M=(0,Ak.useRef)({disabled:B}),s=(0,Ak.useRef)(!1),y=(0,Ak.useRef)(null),n=(0,Ak.useRef)(null),{disabled:h,updateMeasurementsFor:k,timeout:K}={...lt,...I},t=S4(null!=k?k:C),U=F1({callback:(0,Ak.useCallback)(()=>{if(!s.current){s.current=!0;return}null!=n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{c(Array.isArray(t.current)?t.current:[t.current]),n.current=null},K)},[K]),disabled:h||!g}),[L,i]=S5((0,Ak.useCallback)((A,Q)=>{U&&(Q&&(U.unobserve(Q),s.current=!1),A&&U.observe(A))},[U])),G=S4(Q);return(0,Ak.useEffect)(()=>{U&&L.current&&(U.disconnect(),s.current=!1,U.observe(L.current))},[L,U]),S3(()=>(w({type:AQ.RegisterDroppable,element:{id:C,key:E,disabled:B,node:L,rect:y,data:G}}),()=>w({type:AQ.UnregisterDroppable,key:E,id:C})),[C]),(0,Ak.useEffect)(()=>{B!==M.current.disabled&&(w({type:AQ.SetDroppableDisabled,id:C,key:E,disabled:B}),M.current.disabled=B)},[C,E,B,w]),{active:g,rect:y,isOver:(null==D?void 0:D.id)===C,node:L,over:D,setNodeRef:i}}({id:Q.id}),s=(0,Ak.useMemo)(()=>le(),[]);return(0,Ah.jsx)(s,{ref:M,className:c?"bg-blue-200/20 dark:bg-blue-300/20":"",data:Q,context:B,columns:C,rowSize:I,focusId:E,focusColor:g,getCellClassNames:w,getContentClassNames:D})}function lF(A){let{columns:Q,data:B,context:C={},sortField:I,sortDirection:E,sortableColumns:g,toggleSort:w,rowSize:D="default",pageSize:c,isLoading:M,emptyState:s,focusId:y,focusColor:n="default",onDragStart:h,onDragOver:k,onDragMove:K,onDragEnd:t,onDragCancel:U,draggingDatums:L,draggingMultipleLabel:i=A=>"Move selection (".concat(A,")"),testId:G}=A,p="emptyState";!M||(null==B?void 0:B.length)||(p="skeleton"),(null==B?void 0:B.length)&&(p="currentData");let r=(0,Ak.useCallback)((A,B,C)=>(0,Qk.cx)(0===A?"pl-6":"pl-4",A===Q.length-1?"pr-6":"pr-4",C?[0===A?"rounded-tl-lg":"",A===Q.length-1?"rounded-tr-lg":""]:"",B),[Q]),a=(0,Ak.useCallback)((A,Q)=>(0,Qk.cx)("flex items-center",Q),[]),o=(0,Ak.useMemo)(()=>le(),[]),N=function(){for(var A=arguments.length,Q=Array(A),B=0;B[...Q].filter(A=>null!=A),[...Q])}(Fk(Fq,{activationConstraint:{distance:10}}),Fk(F$,{activationConstraint:{delay:250,tolerance:5}})),e=(0,Ak.useMemo)(()=>Q.some(A=>{let{summary:Q}=A;return Q&&Q({context:C})}),[Q,C]);return(0,Ah.jsxs)(lh,{sensors:N,onDragStart:h,onDragOver:k,onDragMove:K,onDragEnd:t,onDragCancel:U,children:[(0,Ah.jsx)(lN,{children:L?1===L.length?(0,Ah.jsx)(Cg,{className:"inline-block",children:(0,Ah.jsx)("table",{children:(0,Ah.jsx)("tbody",{children:(0,Ah.jsx)(o,{className:"pointer-events-none",data:L[0],context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},L[0].id)})})}):(0,Ah.jsx)(Cg,{className:"inline-block py-2 px-4",children:(0,Ah.jsx)(CC,{children:i(L.length)})}):null}),(0,Ah.jsxs)(Cg,{children:[(0,Ah.jsxs)("table",{"data-testid":G,onMouseDown:A=>{A.shiftKey&&A.preventDefault()},"data-loading":"skeleton"===p,className:"relative z-10 table-auto border-collapse w-full",children:[(0,Ah.jsxs)("thead",{className:(0,Qk.cx)("sticky -top-px z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,Ah.jsx)("tr",{children:Q.map((A,Q)=>{let{id:B,icon:D,heading:c,label:M,tip:s,cellClassName:y,contentClassName:n}=A,h=(null==g?void 0:g.includes(B))&&!!w,k=I===B;return(0,Ah.jsx)("th",{"data-testid":B,className:(0,Qk.cx)(r(Q,y,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,Ah.jsx)("div",{className:"overflow-hidden py-3",children:(0,Ah.jsxs)("div",{onClick:()=>{h&&w(B)},className:(0,Qk.cx)(a(Q,n),h?"cursor-pointer":""),children:[c?(0,Ah.jsx)(c,{context:C}):null,(0,Ah.jsx)(cg,{content:s,children:(0,Ah.jsxs)(CC,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[D?(0,Ah.jsx)("div",{children:D}):null,(0,Ah.jsx)(CC,{ellipsis:!0,size:"12",weight:"medium",children:M})]})}),k&&(0,Ah.jsx)(CC,{color:"contrast",children:"asc"===E?(0,Ah.jsx)(cc.MR9,{className:"scale-75"}):(0,Ah.jsx)(cc.cRw,{className:"scale-75"})}),h&&!k&&(0,Ah.jsx)(CC,{color:"verySubtle",children:(0,Ah.jsx)(cc.MR9,{className:"scale-75"})})]})})},B)})}),e&&(0,Ah.jsx)("tr",{children:Q.map((A,Q)=>{let{id:B,cellClassName:I,contentClassName:E,summary:g}=A;return(0,Ah.jsx)("th",{"data-testid":B,className:(0,Qk.cx)(r(Q,I,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,Ah.jsx)("div",{className:"overflow-hidden py-3",children:(0,Ah.jsx)("div",{className:(0,Qk.cx)(a(Q,E)),children:g&&(0,Ah.jsx)(g,{context:C})})})},B)})})]}),(0,Ah.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===p&&(null==B?void 0:B.map(A=>(null==L?void 0:L.find(Q=>Q.id===A.id))?null:A.isDraggable?(0,Ah.jsx)(lJ,{data:A,context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},A.id):A.isDroppable?(0,Ah.jsx)(lS,{data:A,context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},A.id):(0,Ah.jsx)(o,{data:A,context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},A.id))),"skeleton"===p&&Sh(c).map(A=>(0,Ah.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:Q.map((A,Q)=>{let{id:B,contentClassName:C,cellClassName:I}=A;return(0,Ah.jsx)("td",{className:r(Q,I,!1),children:(0,Ah.jsx)("div",{className:(0,Qk.cx)(a(Q,C),"dense"===D?"h-[50px]":"h-[100px]")})},"".concat(Q,"/").concat(B))})},A))]})]}),"emptyState"===p&&s]})]})}function ll(A){let{offset:Q,limit:B,pageTotal:C,isLoading:I}=A,E=(0,Ka.j0)();return(0,Ah.jsxs)(cu,{children:[(0,Ah.jsx)(cD,{icon:"contrast",disabled:Q<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>E.push({query:{...E.query,offset:0}}),children:(0,Ah.jsx)("div",{className:"flex scale-[0.65]",children:(0,Ah.jsx)(cc.XJM,{})})}),(0,Ah.jsx)(cD,{icon:"contrast",disabled:Q<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>E.push({query:{...E.query,offset:Math.max(Q-B,0)}}),children:(0,Ah.jsx)(cc.bdU,{})}),I?(0,Ah.jsx)(cD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,Ah.jsx)(eW,{className:"px-2"})}):C?(0,Ah.jsxs)(cD,{className:"rounded-none px-3",state:"waiting",children:[Q+1," - ",Math.min(Q+B,Q+C)]}):(0,Ah.jsx)(cD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,Ah.jsx)(cD,{icon:"contrast",disabled:!(C>=B),size:"small",variant:"gray",className:"rounded-none",onClick:()=>E.push({query:{...E.query,offset:Q+B}}),children:(0,Ah.jsx)(cc.VUy,{})})]})}function lY(A){let{title:Q,nav:B,stats:C,actions:I,after:E}=A;return(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsxs)("div",{"data-testid":"navbar",className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[Q?"string"==typeof Q?(0,Ah.jsx)(CC,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:Q}):Q:null,(0,Ah.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,Ah.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:B}),(0,Ah.jsx)("div",{className:"flex gap-2 items-center h-full",children:I})]})]}),C&&(0,Ah.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:C}),E]})}let lH=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:f}:f).src;function lf(A){let{children:Q}=A;return(0,Ah.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,Ah.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,Ah.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(lH,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,Ah.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),Q]})}function ld(A){let{appName:Q,title:B,children:C}=A,I=B?"".concat(Q," - ").concat(B):Q;return(0,Ah.jsxs)(Ka.Fb,{children:[(0,Ah.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,Ah.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,Ah.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,Ah.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,Ah.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,Ah.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,Ah.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,Ah.jsx)("meta",{name:"theme-color",content:"#ffffff"}),C,(0,Ah.jsx)("title",{children:I})]})}function lu(A){let{appName:Q,title:B,children:C}=A;return(0,Ah.jsxs)("div",{className:"h-screen",children:[(0,Ah.jsx)(ld,{appName:Q,title:B}),C]})}function lR(A){let{appName:Q,title:B,children:C,filters:I,actions:E}=A;return(0,Ah.jsxs)(lu,{appName:Q,title:B,children:[(0,Ah.jsx)(lf,{}),(0,Ah.jsx)("div",{className:"flex h-full",children:(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(lY,{nav:I,actions:E}),(0,Ah.jsx)("div",{className:"flex-1",children:(0,Ah.jsx)(cj,{className:"h-full",children:C})})]})})]})}function lj(A){let{side:Q,balanceSc:B,children:C}=A;return B?(0,Ah.jsx)(cg,{side:Q,content:(0,Ah.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"spendable"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.spendable})})]}),B.immature&&(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"immature"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All confirmed but still locked outputs."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.unconfirmed})})]})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"confirmed"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All confirmed outputs."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.confirmed})})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"unconfirmed"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.unconfirmed})})]})]}),children:(0,Ah.jsx)("div",{children:C})}):null}function lb(A){let{balanceSc:Q,isSynced:B,syncingMessage:C}=A;if(!Q)return null;let I=(0,Ah.jsx)(SD,{showTooltip:!1,value:Q.spendable.plus(Q.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return B?(0,Ah.jsx)(lj,{side:"right",balanceSc:Q,children:I}):(0,Ah.jsx)(cg,{side:"right",content:C||"Blockchain is syncing, balance may be incorrect.",children:(0,Ah.jsx)("div",{children:I})})}function lm(A){let{title:Q,children:B,route:C,onClick:I}=A,E=(0,Ka.jD)(),g=C&&("/"===C?E===C:null==E?void 0:E.startsWith(C));return C?(0,Ah.jsx)(Kb,{href:C,className:"no-underline",children:(0,Ah.jsx)(cg,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:Q,children:(0,Ah.jsx)(cD,{"aria-label":Q,icon:"contrast",size:"none",variant:"state","data-state":g?"open":"closed",onClick:I,children:B})})}):(0,Ah.jsx)(cg,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:Q,children:(0,Ah.jsx)(cD,{"aria-label":Q,icon:"contrast",size:"none",variant:"state","data-state":g?"open":"closed",onClick:I,children:B})})}function lZ(A){let{walletBalanceSc:Q,isSynced:B,routes:C}=A;return(0,Ah.jsx)(lm,{title:"Wallet",route:C.wallet.view,children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,Ah.jsx)(cc.oaN,{}),B&&Q&&(0,Ah.jsx)(lb,{isSynced:B,balanceSc:Q})]})})}function lT(A){let{routes:Q,profile:B,isSynced:C,showWallet:I=!0,walletBalanceSc:E,lock:g,openSettings:w,children:D}=A;return(0,Ah.jsx)(Cg,{"data-testid":"sidenav",className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,Ah.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,Ah.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:B||(0,Ah.jsx)(KZ,{size:30})}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,Ah.jsx)("div",{className:"flex flex-col gap-6 items-center",children:D}),(0,Ah.jsx)("div",{className:"flex-1"}),(0,Ah.jsx)(Kc,{className:"w-full"}),I&&(0,Ah.jsx)(lZ,{routes:Q,isSynced:C,walletBalanceSc:E}),(0,Ah.jsx)(lm,{title:"Blockchain node",route:Q.node.index,children:(0,Ah.jsx)(cc.kBK,{})}),(0,Ah.jsx)(lm,{title:"App preferences",onClick:()=>w(),children:(0,Ah.jsx)(cc.UG6,{})}),(0,Ah.jsx)(lm,{title:"Lock app",onClick:g,children:(0,Ah.jsx)(cc.mBM,{})})]})]})})}var lP=B(27429);function lO(A){let{appName:Q,title:B,navTitle:C,profile:I,size:E="4",banner:g,nav:w,actions:D,stats:c,after:M,dockedControls:s,children:y,sidenav:n,connectivityRoute:h,isSynced:k,showWallet:K,walletBalanceSc:t,routes:U,scroll:L=!0,openSettings:i}=A,{lock:G,settings:p}=(0,UQ.Hv)();return!function(A){let{lock:Q,route:B,routes:C}=A,{isConnected:I,isValidating:E}=function(A){let{route:Q}=A,B=(0,UQ.Nf)({route:Q,config:{swr:{refreshInterval:3e4}}});return{isConnected:!B.error,isValidating:B.isValidating}}({route:B}),{settings:g}=(0,UQ.Hv)(),w=(0,Ka.j0)();(0,Ak.useEffect)(()=>{if(E)return;let A=!w.asPath.startsWith(C.login),B=!g.password||!I;if(A&&B){Q();return}},[w,g.password,I,E])}({lock:G,route:h,routes:U}),!function(A){let{enabled:Q,lock:B,lockTimeout:C}=A,I=(0,Ak.useCallback)(()=>{B()},[B]);(0,lP.Yp)({disabled:!Q,onIdle:I,timeout:C,throttle:5e3,eventsThrottle:5e3})}({enabled:!!p.autoLock,lockTimeout:p.autoLockTimeout,lock:G}),(0,Ah.jsxs)(lu,{appName:Q,title:B,children:[(0,Ah.jsx)(lf,{}),(0,Ah.jsxs)("div",{className:"flex flex-col h-full w-full",children:[g,(0,Ah.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,Ah.jsx)(lT,{routes:U,profile:I,openSettings:i,lock:G,showWallet:K,walletBalanceSc:t,isSynced:k,children:n}),(0,Ah.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,Ah.jsx)(lY,{title:void 0===C?B:C,nav:w,actions:D,stats:c,after:M}),L?(0,Ah.jsx)(yN,{className:"z-0",children:(0,Ah.jsx)(cj,{size:E,pad:!1,children:(0,Ah.jsx)("div",{className:"flex flex-col gap-5",children:y})})}):(0,Ah.jsx)(cj,{size:E,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:y}),(0,Ah.jsx)("div",{className:"z-20 fixed bottom-5 left-0 right-0 flex justify-center dark pointer-events-none",children:s})]})]})]})]})}function lW(A,Q,B,C){let[I,E]=(0,Ak.useState)();return(0,Ak.useEffect)(()=>{!Q&&A&&E(A.length)},[Q,A,E]),(0,Ak.useMemo)(()=>B?"error":void 0===I||I>0&&!A?"loading":0===I?0===C.length?"noneYet":"noneMatchingFilters":void 0,[A,I,B,C])}var lz=B(89644),lx=B.n(lz),lV=B(63955),lv=B(25079),lX=B(40871),lq=B(95849),l_=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A){B[++Q]=[A,A]}),B},l$=B(91139),l0=(d=l$.Z,function(A){var Q,B=(0,lX.Z)(A);return"[object Map]"==B?(0,lq.Z)(A):"[object Set]"==B?l_(A):(Q=d(A),(0,lv.Z)(Q,function(Q){return[Q,A[Q]]}))});function l8(A){let{form:Q,field:B,name:C}=A,I=Q.watch(C),E=Q.formState.touchedFields[C]&&!!Q.formState.errors[C],{ref:g,onChange:w}=Q.register(C,B.validation),D=(0,Ak.useCallback)(A=>{var C;w(A),null===(C=B.trigger)||void 0===C||C.forEach(A=>Q.trigger(A))},[w,Q,B]),c=(0,Ak.useCallback)(()=>{var A;Q.trigger(C),null===(A=B.trigger)||void 0===A||A.forEach(A=>Q.trigger(A))},[Q,B,C]),M=(0,Ak.useCallback)((A,I)=>{var E;Q.setValue(C,A,"boolean"==typeof I?I?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:I),null===(E=B.trigger)||void 0===E||E.forEach(A=>Q.trigger(A))},[C,Q,B]);return{ref:g,name:C,value:I,error:E,onBlur:c,onChange:D,setValue:M}}function l3(A){return(0,Ak.useCallback)(Q=>{J5({title:"Error",body:l0(Q).map(Q=>{let[B,C]=Q;return"".concat(A[B].title||B,": ").concat(null==C?void 0:C.message)}).join(", ")})},[A])}function l1(A){let{name:Q,form:B,fields:C,size:I="small",autoComplete:E,spellCheck:g,state:w=!0,group:D=!0,type:c}=A,M=C[Q],{ref:s,onChange:y,onBlur:n,error:h}=l8({name:Q,form:B,field:M}),k=(0,Ah.jsx)(td,{ref:s,name:Q,placeholder:M.placeholder,size:I,autoComplete:void 0!==E?E:M.autoComplete,type:c||M.type,readOnly:M.readOnly,spellCheck:g,onClick:M.onClick,state:w?h?"invalid":B.formState.dirtyFields[Q]?"valid":"default":"default",onChange:y,onBlur:n});return D?(0,Ah.jsx)(Sz,{title:M.title,actions:M.actions,name:Q,form:B,children:k}):k}var l4=B(38714),l2=B(19678),l5=B(48465),l9=B(52059),l6=l2.Z?l2.Z.isConcatSpreadable:void 0,l7=function(A){return(0,l9.Z)(A)||(0,l5.Z)(A)||!!(l6&&A&&A[l6])},YA=function A(Q,B,C,I,E){var g=-1,w=Q.length;for(C||(C=l7),E||(E=[]);++g0&&C(D)?B>1?A(D,B-1,C,I,E):(0,l4.Z)(E,D):I||(E[E.length]=D)}return E},YQ=B(5489),YB=B(27491),YC=B(14735),YI=B(18226),YE=function(A,Q){var B=-1,C=(0,YI.Z)(A)?Array(A.length):[];return(0,YC.Z)(A,function(A,I,E){C[++B]=Q(A,I,E)}),C},Yg=function(A,Q){var B=A.length;for(A.sort(Q);B--;)A[B]=A[B].value;return A},Yw=B(9769),YD=function(A,Q){if(A!==Q){var B=void 0!==A,C=null===A,I=A==A,E=(0,o6.Z)(A),g=void 0!==Q,w=null===Q,D=Q==Q,c=(0,o6.Z)(Q);if(!w&&!c&&!E&&A>Q||E&&g&&D&&!w&&!c||C&&g&&D||!B&&D||!I)return 1;if(!C&&!E&&!c&&A=w)return D;return D*("desc"==B[C]?-1:1)}}return A.index-Q.index},YM=function(A,Q,B){Q=Q.length?(0,lv.Z)(Q,function(A){return(0,l9.Z)(A)?function(Q){return(0,YQ.Z)(Q,1===A.length?A[0]:A)}:A}):[SM.Z];var C=-1;return Q=(0,lv.Z)(Q,(0,Yw.Z)(YB.Z)),Yg(YE(A,function(A,B,I){return{criteria:(0,lv.Z)(Q,function(Q){return Q(A)}),index:++C,value:A}}),function(A,Q){return Yc(A,Q,B)})},Ys=function(A,Q,B){switch(B.length){case 0:return A.call(Q);case 1:return A.call(Q,B[0]);case 2:return A.call(Q,B[0],B[1]);case 3:return A.call(Q,B[0],B[1],B[2])}return A.apply(Q,B)},Yy=Math.max,Yn=B(54756),Yh=Yn.Z?function(A,Q){return(0,Yn.Z)(A,"toString",{configurable:!0,enumerable:!1,value:function(){return Q},writable:!0})}:SM.Z,Yk=Date.now,YK=(u=0,R=0,function(){var A=Yk(),Q=16-(A-R);if(R=A,Q>0){if(++u>=800)return arguments[0]}else u=0;return Yh.apply(void 0,arguments)}),Yt=function(A,Q){var B,C;return YK((B=Q,C=SM.Z,B=Yy(void 0===B?A.length-1:B,0),function(){for(var Q=arguments,I=-1,E=Yy(Q.length-B,0),g=Array(E);++I1&&Yi(A,Q[0],Q[1])?Q=[]:B>2&&Yi(Q[0],Q[1],Q[2])&&(Q=[Q[0]]),YM(A,YA(Q,1),[])});async function Yp(A){let{api:Q,route:B,password:C}=A;try{return await lx().get("".concat(Q,"/api").concat(B),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(C))},timeout:1e4}),{}}catch(B){let A=B.code,Q=B.response;if((null==Q?void 0:Q.status)===504)return{error:"Error, check that daemon is running"};if((null==Q?void 0:Q.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===A)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function Yr(A){let{appName:Q,route:B,routes:C}=A,I=(0,Ka.j0)(),{settings:E,setRequestSettings:g}=(0,UQ.Hv)(),{loginWithCustomApi:w}=E,D=(0,Ak.useMemo)(()=>({api:E.api,password:""}),[E.api]),c=(0,lV.cI)({mode:"onBlur",defaultValues:D});(0,Ak.useEffect)(()=>{c.clearErrors()},[w]);let M=(0,Ak.useCallback)(async A=>{let Q="";if(w){let B=new URL(A.api);Q="".concat(B.protocol,"//").concat(B.host)}let{error:M}=await Yp({api:Q,route:B,password:A.password});M?c.setError("password",{message:M}):(g({api:Q,password:A.password,recentApis:{...E.recentApis,[Q]:{lastUsed:new Date().getTime()}}}),I.push(I.query.prev?decodeURIComponent(I.query.prev):C.home),c.reset(D))},[w,c,I,C,E,g,D,B]),s=function(A){let{loginWithCustomApi:Q}=A;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:A=>!Q||!!A||"API is required",url:A=>{try{let Q=new URL(A);return!!Q.protocol&&!!Q.host||"invalid API URL"}catch(A){return"invalid API URL"}},https:A=>{let Q="https:"===window.location.protocol;return!Q||Q&&A.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({loginWithCustomApi:w}),y=l3(s),n=c.formState.errors.api||c.formState.errors.password,h=YG(Object.entries(E.recentApis),A=>{let[Q,{lastUsed:B}]=A;return-B}).map(A=>{let[Q]=A;return Q});return(0,Ah.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,Ah.jsx)(Cg,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,Ah.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,Ah.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ah.jsx)(CC,{font:"mono",weight:"bold",size:"20",children:Q}),(0,Ah.jsx)(Ki,{label:"login settings",trigger:(0,Ah.jsx)(cD,{icon:"hover",variant:"ghost",children:(0,Ah.jsx)(cc.shL,{})}),children:(0,Ah.jsx)(KG,{onSelect:()=>g({loginWithCustomApi:!w}),children:w?"Hide custom API":"Show custom API"})})]}),(0,Ah.jsx)(Kc,{className:"w-full mt-2 mb-3"}),(0,Ah.jsx)("form",{onSubmit:c.handleSubmit(M,y),children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-1.5",children:[w?(0,Ah.jsxs)(cu,{children:[(0,Ah.jsx)(l1,{name:"api",form:c,fields:s,group:!1}),h.length>1&&(0,Ah.jsx)(Ki,{trigger:(0,Ah.jsx)(cD,{type:"button",children:(0,Ah.jsx)(cc.wGX,{})}),children:h.map(A=>(0,Ah.jsx)(KG,{onSelect:()=>c.setValue("api",A),children:A},A))})]}):null,(0,Ah.jsx)(l1,{name:"password",form:c,fields:s,group:!1}),n&&(0,Ah.jsx)(CC,{size:"14",color:"red",children:n.message}),(0,Ah.jsx)(Sx,{size:"small",form:c,children:"Unlock"})]})})]})})})}function Ya(A){let{name:Q,form:B,fields:C,size:I="medium",group:E=!0,before:g,children:w}=A,D=C[Q],{setValue:c,onBlur:M,value:s,error:y}=l8({name:Q,field:D,form:B}),n=(0,Ah.jsxs)("div",{className:"flex gap-1 items-center",children:[g,(0,Ah.jsx)(UF,{"aria-label":Q,name:Q,size:I,checked:s,state:y?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onCheckedChange:A=>{c(A,!0)},onBlur:M}),w]});return E?(0,Ah.jsx)(Sz,{title:D.title,name:Q,form:B,className:"pb-[1.5px]",children:n}):n}function Yo(A){let{name:Q,form:B,fields:C,size:I="small",group:E=!0}=A,g=C[Q],{placeholder:w,average:D,suggestion:c,units:M,decimalsLimitSc:s=6,decimalsLimitFiat:y=6}=g,{setValue:n,onBlur:h,value:k,error:K}=l8({name:Q,field:g,form:B}),t=(0,Ak.useMemo)(()=>w?new(t6())(w):c&&"boolean"!=typeof c?new(t6())(c):D&&"boolean"!=typeof D?new(t6())(D):void 0,[w,c,D]),U=(0,Ah.jsx)(UB,{name:Q,size:I,sc:k,units:M,decimalsLimitSc:s,decimalsLimitFiat:y,readOnly:g.readOnly,error:K,changed:B.formState.dirtyFields[Q],placeholder:t,onChange:A=>{n(A,!0)},onBlur:h});return E?(0,Ah.jsx)(Sz,{title:g.title,name:Q,form:B,children:U}):U}function YN(A){let{activeStep:Q,steps:B,onChange:C}=A,I=B.findIndex(A=>A.id===Q),E=B.length-1;return(0,Ah.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,Ah.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,Ah.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(I/E*100,"%")}}),B.map((A,B)=>{let{id:g,label:w}=A,D=Q===g,c=I>=B,M=B===E,s=0===B,y=c&&I!==E;return(0,Ah.jsxs)("div",{className:(0,Qk.cx)("absolute h-2 w-2 -top-0.5",y?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(B/E*100,"% - ").concat(M?8:s?0:4,"px)")},onClick:()=>{y&&C(g)},children:[(0,Ah.jsx)(CC,{color:D?"contrast":"verySubtle",className:(0,Qk.cx)("absolute top-[-30px]",s?"left-0":"",M?"right-0":"",s||M?"":"-translate-x-1/2"),noWrap:!0,children:w}),(0,Ah.jsx)("div",{className:(0,Qk.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",c?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",c?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),D&&(0,Ah.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},g)})]})}function Ye(A){let{form:Q,onOpenChange:B,defaultValues:C,initKey:I}=A,E=(0,Ak.useCallback)(()=>{Q.reset(C)},[Q,C]),g=(0,Ak.useCallback)(()=>{B(!1),Q.reset(C)},[Q,B,C]),w=(0,Ak.useCallback)(A=>{A?(B(!0),setTimeout(()=>{E()},0)):g()},[g,E,B]),D=function(A){let[Q,B]=(0,Ak.useState)(A);return(0,Ak.useEffect)(()=>{if(!A||!A.length)return;let C=!1;for(let B=0;B{D&&D.length&&D.every(A=>!!A)&&E()},[D]),{reset:E,closeAndReset:g,handleOpenChange:w}}new(t6())(0);let YJ={address:""},YS={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function YF(A){let{trigger:Q,open:B,connect:C,onOpenChange:I}=A,E=(0,lV.cI)({mode:"all",defaultValues:YJ}),{handleOpenChange:g,closeAndReset:w}=Ye({form:E,onOpenChange:I,defaultValues:YJ}),D=(0,Ak.useCallback)(async A=>{let Q=await C(A.address);Q.error?J5({title:Q.error}):(J2({title:"Connected to peer"}),w())},[w,C]);return(0,Ah.jsx)(yS,{trigger:Q,title:"Connect peer",description:"Connect to a peer by IP address.",open:B,onOpenChange:g,contentVariants:{className:"w-[400px]"},onSubmit:E.handleSubmit(D),controls:(0,Ah.jsx)("div",{className:"px-1",children:(0,Ah.jsx)(Sx,{form:E,size:"medium",className:"w-full",children:"Connect"})}),children:(0,Ah.jsx)("div",{className:"flex flex-col gap-4",children:(0,Ah.jsx)(l1,{form:E,fields:YS,name:"address",size:"medium"})})})}var Yl=B(78435),YY=B.n(Yl),YH=function(A){var Q;return!!A&&"object"==typeof A&&"[object RegExp]"!==(Q=Object.prototype.toString.call(A))&&"[object Date]"!==Q&&A.$$typeof!==Yf},Yf="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Yd(A,Q){return!1!==Q.clone&&Q.isMergeableObject(A)?YR(Array.isArray(A)?[]:{},A,Q):A}function Yu(A,Q,B){return A.concat(Q).map(function(A){return Yd(A,B)})}function YR(A,Q,B){(B=B||{}).arrayMerge=B.arrayMerge||Yu,B.isMergeableObject=B.isMergeableObject||YH;var C,I,E=Array.isArray(Q);return E!==Array.isArray(A)?Yd(Q,B):E?B.arrayMerge(A,Q,B):(I={},(C=B).isMergeableObject(A)&&Object.keys(A).forEach(function(Q){I[Q]=Yd(A[Q],C)}),Object.keys(Q).forEach(function(B){C.isMergeableObject(Q[B])&&A[B]?I[B]=YR(A[B],Q[B],C):I[B]=Yd(Q[B],C)}),I)}YR.all=function(A,Q){if(!Array.isArray(A))throw Error("first argument should be an array");return A.reduce(function(A,B){return YR(A,B,Q)},{})};var Yj=B(23782),Yb=function(A,Q){for(var B=-1,C=null==A?0:A.length;++B=0||(I[B]=A[B]);return I}function Hl(A){if(void 0===A)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return A}B(73463);var HY=function(A){return Array.isArray(A)&&0===A.length};function HH(A,Q,B,C){void 0===C&&(C=0);for(var I=He(Q);A&&C=0?[]:{}}}return(0===E?A:I)[g[E]]===B?A:(void 0===B?delete I[g[E]]:I[g[E]]=B,0===E&&void 0===B&&delete C[g[E]],C)}var Hd=(0,Ak.createContext)(void 0);Hd.displayName="FormikContext",Hd.Provider,Hd.Consumer,"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Ak.useLayoutEffect:Ak.useEffect,(0,Ak.forwardRef)(function(A,Q){var B,C=A.action,I=HF(A,["action"]),E=((B=(0,Ak.useContext)(Hd))||HJ(!1),B),g=E.handleReset,w=E.handleSubmit;return(0,Ak.createElement)("form",Object.assign({onSubmit:w,ref:Q,onReset:g,action:null!=C?C:"#"},I))}).displayName="Form";var Hu=function(A,Q,B){var C=Hm(A),I=C[Q];return C.splice(Q,1),C.splice(B,0,I),C},HR=function(A,Q,B){var C=Hm(A),I=C[Q];return C[Q]=C[B],C[B]=I,C},Hj=function(A,Q,B){var C=Hm(A);return C.splice(Q,0,B),C},Hb=function(A,Q,B){var C=Hm(A);return C[Q]=B,C},Hm=function(A){if(!A)return[];if(Array.isArray(A))return[].concat(A);var Q=Object.keys(A).map(function(A){return parseInt(A)}).reduce(function(A,Q){return Q>A?Q:A},0);return Array.from(HS({},A,{length:Q+1}))};(function(A){function Q(Q){var B;return(B=A.call(this,Q)||this).updateArrayField=function(A,Q,C){var I=B.props,E=I.name;(0,I.formik.setFormikState)(function(B){var I=Hf(B.values,E,A(HH(B.values,E))),g=C?("function"==typeof C?C:A)(HH(B.errors,E)):void 0,w=Q?("function"==typeof Q?Q:A)(HH(B.touched,E)):void 0;return HY(g)&&(g=void 0),HY(w)&&(w=void 0),HS({},B,{values:I,errors:C?Hf(B.errors,E,g):B.errors,touched:Q?Hf(B.touched,E,w):B.touched})})},B.push=function(A){return B.updateArrayField(function(Q){return[].concat(Hm(Q),[Hr(A,5)])},!1,!1)},B.handlePush=function(A){return function(){return B.push(A)}},B.swap=function(A,Q){return B.updateArrayField(function(B){return HR(B,A,Q)},!0,!0)},B.handleSwap=function(A,Q){return function(){return B.swap(A,Q)}},B.move=function(A,Q){return B.updateArrayField(function(B){return Hu(B,A,Q)},!0,!0)},B.handleMove=function(A,Q){return function(){return B.move(A,Q)}},B.insert=function(A,Q){return B.updateArrayField(function(B){return Hj(B,A,Q)},function(Q){return Hj(Q,A,null)},function(Q){return Hj(Q,A,null)})},B.handleInsert=function(A,Q){return function(){return B.insert(A,Q)}},B.replace=function(A,Q){return B.updateArrayField(function(B){return Hb(B,A,Q)},!1,!1)},B.handleReplace=function(A,Q){return function(){return B.replace(A,Q)}},B.unshift=function(A){var Q=-1;return B.updateArrayField(function(B){var C=B?[A].concat(B):[A];return Q<0&&(Q=C.length),C},function(A){var B=A?[null].concat(A):[null];return Q<0&&(Q=B.length),B},function(A){var B=A?[null].concat(A):[null];return Q<0&&(Q=B.length),B}),Q},B.handleUnshift=function(A){return function(){return B.unshift(A)}},B.handleRemove=function(A){return function(){return B.remove(A)}},B.handlePop=function(){return function(){return B.pop()}},B.remove=B.remove.bind(Hl(B)),B.pop=B.pop.bind(Hl(B)),B}Q.prototype=Object.create(A.prototype),Q.prototype.constructor=Q,Q.__proto__=A;var B=Q.prototype;return B.componentDidUpdate=function(A){this.props.validateOnChange&&this.props.formik.validateOnChange&&!YY()(HH(A.formik.values,A.name),HH(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},B.remove=function(A){var Q;return this.updateArrayField(function(B){var C=B?Hm(B):[];return Q||(Q=C[A]),"function"==typeof C.splice&&C.splice(A,1),C},!0,!0),Q},B.pop=function(){var A;return this.updateArrayField(function(Q){return A||(A=Q&&Q.pop&&Q.pop()),Q},!0,!0),A},B.render=function(){var A={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},Q=this.props,B=Q.component,C=Q.render,I=Q.children,E=Q.name,g=HF(Q.formik,["validate","validationSchema"]),w=HS({},A,{form:g,name:E});return B?(0,Ak.createElement)(B,w):C?C(w):I?"function"==typeof I?I(w):0===Ak.Children.count(I)?null:Ak.Children.only(I):null},Q})(Ak.Component).defaultProps={validateOnChange:!0};try{As=Map}catch(A){}try{Ay=Set}catch(A){}function HZ(A){return function A(Q,B,C){if(!Q||"object"!=typeof Q||"function"==typeof Q)return Q;if(Q.nodeType&&"cloneNode"in Q)return Q.cloneNode(!0);if(Q instanceof Date)return new Date(Q.getTime());if(Q instanceof RegExp)return new RegExp(Q);if(Array.isArray(Q))return Q.map(HZ);if(As&&Q instanceof As)return new Map(Array.from(Q.entries()));if(Ay&&Q instanceof Ay)return new Set(Array.from(Q.values()));if(Q instanceof Object){B.push(Q);var I=Object.create(Q);for(var E in C.push(I),Q){var g=B.findIndex(function(A){return A===Q[E]});I[E]=g>-1?C[g]:A(Q[E],B,C)}return I}return Q}(A,[],[])}let HT=Object.prototype.toString,HP=Error.prototype.toString,HO=RegExp.prototype.toString,HW="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Hz=/^Symbol\((.*)\)(.*)$/;function Hx(A,Q=!1){if(null==A||!0===A||!1===A)return""+A;let B=typeof A;if("number"===B)return A!=+A?"NaN":0===A&&1/A<0?"-0":""+A;if("string"===B)return Q?`"${A}"`:A;if("function"===B)return"[Function "+(A.name||"anonymous")+"]";if("symbol"===B)return HW.call(A).replace(Hz,"Symbol($1)");let C=HT.call(A).slice(8,-1);return"Date"===C?isNaN(A.getTime())?""+A:A.toISOString(A):"Error"===C||A instanceof Error?"["+HP.call(A)+"]":"RegExp"===C?HO.call(A):null}function HV(A,Q){let B=Hx(A,Q);return null!==B?B:JSON.stringify(A,function(A,B){let C=Hx(this[A],Q);return null!==C?C:B},2)}let Hv={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:A,type:Q,value:B,originalValue:C})=>{let I=null!=C&&C!==B,E=`${A} must be a \`${Q}\` type, but the final value was: \`${HV(B,!0)}\``+(I?` (cast from the value \`${HV(C,!0)}\`).`:".");return null===B&&(E+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),E},defined:"${path} must be defined"},HX={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"},Hq={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"},H_={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},H$={isValue:"${path} field must be ${value}"},H0={noUnknown:"${path} field has unspecified keys: ${unknown}"},H8={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:Hv,string:HX,number:Hq,date:H_,object:H0,array:H8,boolean:H$});var H3=B(93352),H1=B.n(H3),H4=A=>A&&A.__isYupSchema__;class H2{constructor(A,Q){if(this.fn=void 0,this.refs=A,this.refs=A,"function"==typeof Q){this.fn=Q;return}if(!H1()(Q,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!Q.then&&!Q.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:B,then:C,otherwise:I}=Q,E="function"==typeof B?B:(...A)=>A.every(A=>A===B);this.fn=function(...A){let Q=A.pop(),B=A.pop(),g=E(...A)?C:I;if(g)return"function"==typeof g?g(B):B.concat(g.resolve(Q))}}resolve(A,Q){let B=this.refs.map(A=>A.getValue(null==Q?void 0:Q.value,null==Q?void 0:Q.parent,null==Q?void 0:Q.context)),C=this.fn.apply(A,B.concat(A,Q));if(void 0===C||C===A)return A;if(!H4(C))throw TypeError("conditions must return a schema object");return C.resolve(Q)}}function H5(A){return null==A?[]:[].concat(A)}function H9(){return(H9=Object.assign||function(A){for(var Q=1;QHV(Q[B])):"function"==typeof A?A(Q):A}static isError(A){return A&&"ValidationError"===A.name}constructor(A,Q,B,C){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=Q,this.path=B,this.type=C,this.errors=[],this.inner=[],H5(A).forEach(A=>{H7.isError(A)?(this.errors.push(...A.errors),this.inner=this.inner.concat(A.inner.length?A.inner:A)):this.errors.push(A)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,H7)}}let fA=A=>{let Q=!1;return(...B)=>{Q||(Q=!0,A(...B))}};function fQ(A,Q){let{endEarly:B,tests:C,args:I,value:E,errors:g,sort:w,path:D}=A,c=fA(Q),M=C.length,s=[];if(g=g||[],!M)return g.length?c(new H7(g,E,D)):c(null,E);for(let A=0;A=0||(I[B]=A[B]);return I}(Q,["value","path","label","options","originalValue","sync"]),{name:s,test:y,params:n,message:h}=A,{parent:k,context:K}=w;function t(A){return fg.isRef(A)?A.getValue(I,k,K):A}function U(A={}){let Q=fC()(fw({value:I,originalValue:D,label:g,path:A.path||E},n,A.params),t),B=new H7(H7.formatError(A.message||h,Q),I,Q.path,A.type||s);return B.params=Q,B}let L=fw({path:E,parent:k,type:s,createError:U,resolve:t,options:w,originalValue:D},M);if(!c){try{Promise.resolve(y.call(L,I,L)).then(A=>{H7.isError(A)?B(A):A?B(null,A):B(U())}).catch(B)}catch(A){B(A)}return}try{var i;if(C=y.call(L,I,L),"function"==typeof(null==(i=C)?void 0:i.then))throw Error(`Validation test of type: "${L.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(A){B(A);return}H7.isError(C)?B(C):C?B(null,C):B(U())}return Q.OPTIONS=A,Q}fg.prototype.__isYupRef=!0;let fc=A=>A.substr(0,A.length-1).substr(1);class fM{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 A=[];for(let Q of this.list)A.push(Q);for(let[,Q]of this.refs)A.push(Q.describe());return A}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(A){return this.toArray().reduce((Q,B)=>Q.concat(fg.isRef(B)?A(B):B),[])}add(A){fg.isRef(A)?this.refs.set(A.key,A):this.list.add(A)}delete(A){fg.isRef(A)?this.refs.delete(A.key):this.list.delete(A)}clone(){let A=new fM;return A.list=new Set(this.list),A.refs=new Map(this.refs),A}merge(A,Q){let B=this.clone();return A.list.forEach(A=>B.add(A)),A.refs.forEach(A=>B.add(A)),Q.list.forEach(A=>B.delete(A)),Q.refs.forEach(A=>B.delete(A)),B}}function fy(){return(fy=Object.assign||function(A){for(var Q=1;Q{this.typeError(Hv.notType)}),this.type=(null==A?void 0:A.type)||"mixed",this.spec=fy({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==A?void 0:A.spec)}get _type(){return this.type}_typeCheck(A){return!0}clone(A){if(this._mutate)return A&&Object.assign(this.spec,A),this;let Q=Object.create(Object.getPrototypeOf(this));return Q.type=this.type,Q._typeError=this._typeError,Q._whitelistError=this._whitelistError,Q._blacklistError=this._blacklistError,Q._whitelist=this._whitelist.clone(),Q._blacklist=this._blacklist.clone(),Q.exclusiveTests=fy({},this.exclusiveTests),Q.deps=[...this.deps],Q.conditions=[...this.conditions],Q.tests=[...this.tests],Q.transforms=[...this.transforms],Q.spec=HZ(fy({},this.spec,A)),Q}label(A){let Q=this.clone();return Q.spec.label=A,Q}meta(...A){if(0===A.length)return this.spec.meta;let Q=this.clone();return Q.spec.meta=Object.assign(Q.spec.meta||{},A[0]),Q}withMutation(A){let Q=this._mutate;this._mutate=!0;let B=A(this);return this._mutate=Q,B}concat(A){if(!A||A===this)return this;if(A.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${A.type}`);let Q=A.clone(),B=fy({},this.spec,Q.spec);return Q.spec=B,Q._typeError||(Q._typeError=this._typeError),Q._whitelistError||(Q._whitelistError=this._whitelistError),Q._blacklistError||(Q._blacklistError=this._blacklistError),Q._whitelist=this._whitelist.merge(A._whitelist,A._blacklist),Q._blacklist=this._blacklist.merge(A._blacklist,A._whitelist),Q.tests=this.tests,Q.exclusiveTests=this.exclusiveTests,Q.withMutation(Q=>{A.tests.forEach(A=>{Q.test(A.OPTIONS)})}),Q.transforms=[...this.transforms,...Q.transforms],Q}isType(A){return!!this.spec.nullable&&null===A||this._typeCheck(A)}resolve(A){let Q=this;if(Q.conditions.length){let B=Q.conditions;(Q=Q.clone()).conditions=[],Q=(Q=B.reduce((Q,B)=>B.resolve(Q,A),Q)).resolve(A)}return Q}cast(A,Q={}){let B=this.resolve(fy({value:A},Q)),C=B._cast(A,Q);if(void 0!==A&&!1!==Q.assert&&!0!==B.isType(C)){let I=HV(A),E=HV(C);throw TypeError(`The value of ${Q.path||"field"} could not be cast to a value that satisfies the schema type: "${B._type}". +`,J3=({reverseOrder:A,position:Q="top-center",toastOptions:B,gutter:C,children:I,containerStyle:E,containerClassName:g})=>{let{toasts:w,handlers:D}=JY(B);return Ak.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...E},className:g,onMouseEnter:D.startPause,onMouseLeave:D.endPause},w.map(B=>{let E=B.position||Q,g=J0(E,D.calculateOffset(B,{reverseOrder:A,gutter:C,defaultPosition:Q}));return Ak.createElement(J$,{id:B.id,key:B.id,onHeightUpdate:D.updateHeight,className:B.visible?J8:"",style:g},"custom"===B.type?Jk(B.message,B):I?I(B):Ak.createElement(J_,{toast:B,position:E}))}))};function J1(A){let{icon:Q,title:B,body:C,toastId:I}=A;return(0,Ah.jsxs)("div",{"data-testid":"toasts",className:"flex flex-col overflow-hidden",children:[(0,Ah.jsxs)("div",{className:"flex items-center gap-2 pt-1.5 pb-1 px-1 overflow-hidden",children:[Q&&(0,Ah.jsx)(CC,{className:"flex items-center",color:"subtle",children:Q}),(0,Ah.jsx)(cg,{content:B,children:(0,Ah.jsx)(CC,{ellipsis:!0,className:"flex-1",children:B})}),(0,Ah.jsx)("div",{className:"flex items-center pl-1",children:(0,Ah.jsx)(cD,{icon:"hover",size:"none",onClick:A=>{JS.dismiss(I)},children:(0,Ah.jsx)(cc.PcV,{})})})]}),C&&(0,Ah.jsx)("div",{className:"pb-1",children:(0,Ah.jsx)(yN,{children:(0,Ah.jsx)("div",{className:"max-w-sm px-1 max-h-20",children:(0,Ah.jsx)(CC,{color:"subtle",size:"14",children:C})})})})]})}let J4=A=>{let{title:Q,body:B,icon:C,options:I={}}=A;JS(A=>(0,Ah.jsx)(J1,{toastId:A.id,title:Q,body:B,icon:C}),J9(I))};function J2(A){let{title:Q,body:B,options:C}=A;J4({title:Q,body:B,icon:(0,Ah.jsx)(cc.yar,{className:"text-green-600"}),options:C})}function J5(A){let{title:Q,body:B,options:C}=A;J4({title:Q,body:B,icon:(0,Ah.jsx)(cc.T80,{className:"text-red-600"}),options:C})}function J9(){let{className:A,...Q}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,Qk.cx)(CE(),"overflow-hidden","!max-w-[800px]","[&>div]:overflow-hidden","!p-0","z-50",A),success:{icon:(0,Ah.jsx)("div",{className:"!flex-none w-5",children:(0,Ah.jsx)(cc.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,Ah.jsx)("div",{className:"!flex-none w-5",children:(0,Ah.jsx)(cc.Jsc,{className:"w-5 text-red-600"})})},...Q}}function J6(){return(0,Ah.jsx)(J3,{toastOptions:J9(),containerStyle:{zIndex:20}})}let J7=(A,Q)=>{var B;J4({title:Q?"Copied ".concat(Q," to clipboard"):"Copied to clipboard",icon:(0,Ah.jsx)(cc.vtB,{})}),B=()=>e0?(eV("Using `navigator.clipboard.writeText()`."),e0(A).catch(e9)):e8.resolve(e9(A)),new e8((A,Q)=>{try{A(B())}catch(A){Q(A)}})};function SA(A,Q){let B=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return A?Q&&A.length>Q?"".concat(A.slice(0,Q)).concat(B?"...":""):"".concat(A.slice(0,Q)):""}function SQ(A){return(A||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^sfoid:/,"").replace(/^key:/,"").replace(/^bid:/,"")}function SB(A){let{testId:Q,value:B,displayValue:C,type:I,label:E,href:g,maxLength:w,size:D,scaleSize:c,weight:M,font:s,color:y="contrast",className:n,siascanUrl:h,contextMenu:k}=A,K=E||(0,ed.uV)(I),t=w||(0,ed.uF)(I),U=SQ(B),L=C||I&&(0,ed.Lu)(I,U,t)||(0,ed.mj)(U,t);return(0,Ah.jsxs)("div",{"data-testid":Q,className:(0,Qk.cx)("flex items-center",n),children:[g?(0,Ah.jsx)(Kb,{href:g,underline:"hover",size:D,scaleSize:c,color:y,weight:M,font:s,ellipsis:!0,children:L}):(0,Ah.jsx)(CC,{size:D,scaleSize:c,color:y,weight:M,font:s,ellipsis:!0,children:L}),(0,Ah.jsx)("div",{className:"ml-1 flex items-center",children:k||(0,Ah.jsx)(SC,{cleanValue:U,label:K,size:D,siascanUrl:h,type:I})})]})}function SC(A){let{size:Q,cleanValue:B,label:C,siascanUrl:I,type:E}=A;return(0,Ah.jsxs)(Ki,{trigger:(0,Ah.jsx)(cD,{size:"none",variant:"ghost",children:(0,Ah.jsx)(cc.EMN,{className:"10"===Q?"scale-75":"scale-90"})}),contentProps:{align:"end"},children:[(0,Ah.jsxs)(KG,{onSelect:A=>{J7(B,C)},onClick:A=>{A.stopPropagation()},children:[(0,Ah.jsx)(Kr,{children:(0,Ah.jsx)(cc.olJ,{})}),"Copy to clipboard"]}),I&&E&&(0,ed.Lg)(E)&&(0,Ah.jsx)(Kb,{target:"_blank",href:(0,ed.jH)(I,E,B),className:"block w-full",underline:"none",children:(0,Ah.jsxs)(KG,{onClick:A=>{A.stopPropagation()},children:[(0,Ah.jsx)(Kr,{children:(0,Ah.jsx)(cc.V8Q,{})}),"View on Siascan"]})})]})}function SI(A){let{value:Q,size:B,scaleSize:C,tooltip:I="",variant:E="change"}=A,g=(0,ed.yF)(String(Q),{units:"SF"});return(0,Ah.jsx)(cg,{content:(I?"".concat(I," "):"")+g,children:(0,Ah.jsxs)(CC,{size:B,scaleSize:C,weight:"medium",font:"mono",color:"change"===E?Q>0?"green":Q<0?"red":"subtle":"contrast",children:["change"===E&&Q>0?"+":"",g]})})}function SE(A){let{testId:Q,value:B,size:C,scaleSize:I,tooltip:E="",tipSide:g,font:w="mono",variant:D="change",color:c,fixed:M=3,dynamicUnits:s=!0,hastingUnits:y=!0,extendedSuffix:n,showTooltip:h=!0}=A,k=B.isGreaterThan(0)?"+":B.isLessThan(0)?"-":"",K=c||("change"===D?B.isGreaterThan(0)?"green":B.isLessThan(0)?"red":"subtle":"contrast"),t=(0,Ah.jsxs)(CC,{"data-testid":Q,size:C,scaleSize:I,weight:"medium",font:w,ellipsis:!0,color:K,children:["change"===D?"".concat(k).concat((0,ed.Vz)(B.absoluteValue(),{fixed:M,dynamicUnits:s})):(0,ed.Vz)(B,{fixed:M,dynamicUnits:s,hastingUnits:y}),n||""]});return h?(0,Ah.jsx)(cg,{content:(E?"".concat(E," "):"")+(0,ed.Vz)(B,{fixed:16,dynamicUnits:!1}),side:g,children:t}):t}function Sg(A){let{sc:Q,size:B,scaleSize:C,color:I,tooltip:E="",variant:g="change",fixed:w,font:D="mono",fixedTip:c=20,showTooltip:M=!0,tipSide:s,extendedSuffix:y}=A,{rate:n,currency:h}=(0,UQ.Nz)(),k=Q.isZero()?"":Q.isGreaterThan(0)&&"change"===g?"+":Q.isLessThan(0)?"-":"",K=I||("change"===g?Q.isGreaterThan(0)?"green":Q.isLessThan(0)?"red":"subtle":"contrast");if(!n||!h)return null;let t=n.times(Q).div(1e24),U=void 0!==w?w:h.fixed,L=(0,Ah.jsx)(CC,{size:B,scaleSize:C,weight:"medium",font:D,ellipsis:!0,color:K,children:"".concat(k).concat(h.prefix).concat(Sw(t.absoluteValue(),U)).concat(y||"")});return M?(0,Ah.jsx)(cg,{side:s,content:(E?"".concat(E," "):"")+"".concat(k).concat(h.prefix).concat(Sw(t.absoluteValue(),c)).concat(y||""),children:L}):L}function Sw(A,Q){let[B,C]=A.toFixed(Q).split("."),I=new Intl.NumberFormat().format(parseInt(B));return C?"".concat(I).concat(Intl.NumberFormat().format(1.1).charAt(1)).concat(C):I}function SD(A){let{value:Q,size:B,scaleSize:C,tooltip:I="",variant:E="change",fixed:g=3,fixedFiat:w,fixedTipFiat:D,font:c="mono",tipSide:M,dynamicUnits:s=!0,hastingUnits:y=!0,extendedSuffix:n,showTooltip:h=!0,displayBoth:k=!1,displayBothDirection:K="column"}=A,{settings:{currencyDisplay:t}}=(0,UQ.Hv)(),{rate:U}=(0,UQ.Nz)(),L=(0,Ak.useMemo)(()=>(0,Ah.jsx)(SE,{value:Q,size:B,color:k&&"row"===K&&"bothPreferFiat"===t?"subtle":void 0,scaleSize:C,tooltip:I,variant:E,fixed:g,font:c,dynamicUnits:s,hastingUnits:y,extendedSuffix:n,showTooltip:h,tipSide:M}),[Q,B,C,I,E,g,c,s,y,n,h,M,t,k,K]),i=(0,Ak.useMemo)(()=>(0,Ah.jsx)(Sg,{sc:Q,size:B,color:k&&"row"===K&&"bothPreferSc"===t?"subtle":void 0,scaleSize:C,tooltip:I,variant:E,fixed:w,fixedTip:D,font:c,dynamicUnits:s,hastingUnits:y,extendedSuffix:n,showTooltip:h,tipSide:M}),[Q,B,C,I,E,c,w,D,s,y,n,h,M,t,k,K]);return"sc"!==t&&U?"fiat"===t?i:"bothPreferSc"===t?k?(0,Ah.jsxs)("div",{className:"column"===K?"flex flex-col items-end":"flex gap-1",children:[L,i]}):L:"bothPreferFiat"===t?k?(0,Ah.jsxs)("div",{className:"column"===K?"flex flex-col items-end":"flex gap-1",children:[i,L]}):i:L:L}var Sc=B(84712),SM=B(45036),Ss=1/0,Sy=function(A){var Q,B=(Q=A)?(Q=NI(Q))===Ss||Q===-Ss?(Q<0?-1:1)*17976931348623157e292:Q==Q?Q:0:0===Q?Q:0,C=B%1;return B==B?C?B-C:B:0},Sn=Math.min,Sh=function(A,Q){if((A=Sy(A))<1||A>9007199254740991)return[];var B,C=4294967295,I=Sn(A,4294967295);Q="function"==typeof(B=Q)?B:SM.Z,A-=4294967295;for(var E=(0,Sc.Z)(I,Q);++C(0,Ah.jsxs)("div",{className:(0,Qk.cx)("relative flex gap-4 p-3.5",(0,Qk.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,Ah.jsx)(Uc,{className:"w-[60px] h-[50px]"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,Ah.jsx)(Uc,{className:"w-[90%] h-[20px]"}),(0,Ah.jsx)(Uc,{className:"w-[140px] h-[14px]"})]})]},A))})}var SK=B(49435),St=B(4895);function SU(A,Q){(0,St.Z)(2,arguments);var B=(0,SK.Z)(A),C=(0,SK.Z)(Q),I=B.getTime()-C.getTime();return I<0?-1:I>0?1:I}var SL={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(A){return A<0?Math.ceil(A):Math.floor(A)}},Si=B(54042),SG=B(70095),Sp=function(A,Q,B){var C=-1,I=A.length;Q<0&&(Q=-Q>I?0:I+Q),(B=B>I?I:B)<0&&(B+=I),I=Q>B?0:B-Q>>>0,Q>>>=0;for(var E=Array(I);++C=C?A:Sp(A,Q,B)},Sa=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),So=function(A){return Sa.test(A)},SN="\ud800-\udfff",Se="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",SJ="\ud83c[\udffb-\udfff]",SS="[^"+SN+"]",SF="(?:\ud83c[\udde6-\uddff]){2}",Sl="[\ud800-\udbff][\udc00-\udfff]",SY="(?:"+Se+"|"+SJ+")?",SH="[\\ufe0e\\ufe0f]?",Sf="(?:\\u200d(?:"+[SS,SF,Sl].join("|")+")"+SH+SY+")*",Sd=RegExp(SJ+"(?="+SJ+")|(?:"+[SS+Se+"?",Se,SF,Sl,"["+SN+"]"].join("|")+")"+(SH+SY+Sf),"g"),Su=B(45543),SR=function(A){var Q,B=So(A=(0,Su.Z)(A))?So(Q=A)?Q.match(Sd)||[]:Q.split(""):void 0,C=B?B[0]:A.charAt(0),I=B?Sr(B,1).join(""):A.slice(1);return C.toUpperCase()+I};function Sj(A){let{type:Q,label:B,initials:C,href:I,src:E,shape:g}=A,w=(0,Ah.jsx)(cF,{interactive:!!I,fallback:C||Q&&(Q||B||"").split(" ").map(A=>A.charAt(0).toUpperCase).join(""),src:E,shape:g||(Q&&"address"!==Q&&"block"!==Q?"circle":"square")}),D=I&&(0,Ah.jsx)(Kb,{href:I,underline:"none","data-testid":"entity-link",children:w})||w;return Q?(0,Ah.jsx)(cg,{content:B||(0,ed.jF)(Q),children:(0,Ah.jsx)("div",{className:"",children:D})}):D}function Sb(A){let{label:Q,type:B,avatar:C,avatarShape:I,initials:E,href:g,onClick:w,children:D}=A;return(0,Ah.jsxs)("div",{className:(0,Qk.cx)("flex gap-4 p-4",(0,Qk.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:w,children:[(0,Ah.jsx)(Sj,{label:Q,type:B,shape:I,src:C,initials:E||(B||Q||"").split(" ").map(A=>A.charAt(0).toUpperCase()).join(""),href:g}),D]})}function Sm(A){let Q=A.sc,B=A.sf,C=A.hash&&(0,Ah.jsx)(SB,{value:A.hash,type:A.type,label:A.label,siascanUrl:A.siascanUrl,href:A.href,color:"subtle"}),I=A.label||"transaction"===A.type&&A.txType&&(0,ed.pX)(A.txType)||(0,ed.jF)(A.type),E=!function(A){if(!A)return!1;try{return new URL(A),!0}catch(A){return!1}}(I)?SR(I):I;return(0,Ah.jsx)(Sb,{...A,children:(0,Ah.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full min-w-0",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center min-w-0",children:[A.height&&A.blockHref&&(0,Ah.jsx)(CC,{color:"subtle",weight:"semibold",children:(0,Ah.jsx)(Kb,{href:A.blockHref,underline:"none",children:(0,ed.yF)(A.height)})}),E?(0,Ah.jsx)(cg,{content:E,children:(0,Ah.jsx)(CC,{ellipsis:!0,weight:"medium",children:E})}):(0,Ah.jsx)(CC,{ellipsis:!0,weight:"medium",children:C})]}),(0,Ah.jsx)("div",{className:"flex-1"}),(0,Ah.jsxs)("div",{className:"flex items-center",children:[!!Q&&(0,Ah.jsx)(SD,{variant:A.scVariant,value:Q}),!!B&&(0,Ah.jsx)(SI,{variant:A.sfVariant,value:B})]})]}),(0,Ah.jsxs)("div",{className:"flex justify-between w-full",children:[(0,Ah.jsx)("div",{className:"flex gap-1",children:!!E&&C}),(0,Ah.jsxs)("div",{className:"flex gap-1 items-center",children:[A.unconfirmed?(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsx)(CC,{color:"verySubtle",children:"unconfirmed"}),A.timestamp?(0,Ah.jsx)(CC,{color:"verySubtle",children:(0,Ah.jsx)(cc.Bpb,{className:"scale-50"})}):null]}):null,A.timestamp&&(0,Ah.jsx)(CC,{color:"subtle",children:function(A,Q){var B,C,I,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,St.Z)(2,arguments);var g=E.locale||Si.Z;if(!g.formatDistance)throw RangeError("locale must contain formatDistance property");var w=SU(A,Q);if(isNaN(w))throw RangeError("Invalid time value");var D=function(A,Q){if(null==A)throw TypeError("assign requires that input parameter not be null or undefined");for(var B in Q=Q||{})Object.prototype.hasOwnProperty.call(Q,B)&&(A[B]=Q[B]);return A}({},E);D.addSuffix=!!E.addSuffix,D.comparison=w,w>0?(B=(0,SK.Z)(Q),C=(0,SK.Z)(A)):(B=(0,SK.Z)(A),C=(0,SK.Z)(Q));var c=function(A,Q,B){(0,St.Z)(2,arguments);var C,I=function(A,Q){return(0,St.Z)(2,arguments),(0,SK.Z)(A).getTime()-(0,SK.Z)(Q).getTime()}(A,Q)/1e3;return((C=null==B?void 0:B.roundingMethod)?SL[C]:SL.trunc)(I)}(C,B),M=Math.round((c-((0,SG.Z)(C)-(0,SG.Z)(B))/1e3)/60);if(M<2){if(E.includeSeconds){if(c<5)return g.formatDistance("lessThanXSeconds",5,D);if(c<10)return g.formatDistance("lessThanXSeconds",10,D);if(c<20)return g.formatDistance("lessThanXSeconds",20,D);if(c<40)return g.formatDistance("halfAMinute",null,D);else if(c<60)return g.formatDistance("lessThanXMinutes",1,D);else return g.formatDistance("xMinutes",1,D)}return 0===M?g.formatDistance("lessThanXMinutes",1,D):g.formatDistance("xMinutes",M,D)}if(M<45)return g.formatDistance("xMinutes",M,D);if(M<90)return g.formatDistance("aboutXHours",1,D);if(M<1440)return g.formatDistance("aboutXHours",Math.round(M/60),D);if(M<2520)return g.formatDistance("xDays",1,D);if(M<43200)return g.formatDistance("xDays",Math.round(M/1440),D);if(M<86400)return I=Math.round(M/43200),g.formatDistance("aboutXMonths",I,D);if((I=function(A,Q){(0,St.Z)(2,arguments);var B,C=(0,SK.Z)(A),I=(0,SK.Z)(Q),E=SU(C,I),g=Math.abs(function(A,Q){(0,St.Z)(2,arguments);var B=(0,SK.Z)(A),C=(0,SK.Z)(Q);return 12*(B.getFullYear()-C.getFullYear())+(B.getMonth()-C.getMonth())}(C,I));if(g<1)B=0;else{1===C.getMonth()&&C.getDate()>27&&C.setDate(30),C.setMonth(C.getMonth()-E*g);var w=SU(C,I)===-E;(function(A){(0,St.Z)(1,arguments);var Q=(0,SK.Z)(A);return(function(A){(0,St.Z)(1,arguments);var Q=(0,SK.Z)(A);return Q.setHours(23,59,59,999),Q})(Q).getTime()===(function(A){(0,St.Z)(1,arguments);var Q=(0,SK.Z)(A),B=Q.getMonth();return Q.setFullYear(Q.getFullYear(),B+1,0),Q.setHours(23,59,59,999),Q})(Q).getTime()})((0,SK.Z)(A))&&1===g&&1===SU(A,I)&&(w=!1),B=E*(g-Number(w))}return 0===B?0:B}(C,B))<12)return g.formatDistance("xMonths",Math.round(M/43200),D);var s=I%12,y=Math.floor(I/12);return s<3?g.formatDistance("aboutXYears",y,D):s<9?g.formatDistance("overXYears",y,D):g.formatDistance("almostXYears",y+1,D)}(new Date(A.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function SZ(A){let{title:Q,actions:B,dataset:C,isLoading:I,emptyState:E,emptyMessage:g,skeletonCount:w=10,children:D}=A,c=Q||B,M="emptyState";return!I||(null==C?void 0:C.length)||D||(M="skeleton"),((null==C?void 0:C.length)||D)&&(M="currentData"),(0,Ah.jsx)(Cg,{children:(0,Ah.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[c&&(0,Ah.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[Q&&(0,Ah.jsx)(Ke,{size:"20",font:"mono",ellipsis:!0,children:Q}),(0,Ah.jsx)("div",{className:"flex-1"}),B]}),(0,Ah.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:["emptyState"===M&&(E||(0,Ah.jsx)("div",{className:(0,Qk.cx)("flex items-center justify-center h-[84px]",(0,Qk.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,Ah.jsx)(CC,{size:"18",color:"subtle",children:g||"No results"})})),"currentData"===M&&(D||(null==C?void 0:C.map((A,Q)=>(0,Ah.jsx)(Sm,{...A},A.hash||A.label||Q)))),"skeleton"===M&&(0,Ah.jsx)(Sk,{skeletonCount:w})]})]})})}function ST(A){let{label:Q,entityType:B,entityValue:C,actions:I,href:E,value:g,extendedSuffix:w,hash:D,sc:c,scFixed:M=2,sf:s,comment:y,commentTip:n,scaleSize:h="40",isLoading:k,onClick:K}=A,t=(0,Ah.jsx)(CC,{color:"subtle",size:"12",className:"h-6",children:y});return(0,Ah.jsx)(Cg,{children:(0,Ah.jsx)("div",{className:(0,Qk.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",K?"cursor-pointer":""),onClick:K,children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,Ah.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,Ah.jsx)(CC,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof Q?SR(Q):Q}),I]}),(0,Ah.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[k?(0,Ah.jsx)(Uc,{className:"h-12 w-[150px]"}):(0,Ah.jsxs)(Ah.Fragment,{children:[void 0!==c&&(0,Ah.jsx)(SD,{extendedSuffix:w,scaleSize:h,variant:"value",value:c,fixed:M}),void 0!==s&&(0,Ah.jsx)(SI,{scaleSize:h,variant:"value",value:s}),B&&(C?(0,Ah.jsx)(SB,{scaleSize:h,label:(0,ed.jF)(B),href:E,value:C,displayValue:"block"===B&&C?Number(C).toLocaleString():C,className:"relative top-0.5"}):(0,Ah.jsx)(CC,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),D&&(0,Ah.jsx)(SB,{scaleSize:h,label:"hash",value:D}),void 0!==g&&(0,Ah.jsx)(CC,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:g})]}),t?(0,Ah.jsx)("div",{className:"mt-1",children:k?(0,Ah.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,Ah.jsx)(Uc,{className:"h-4 w-[100px]"})}):n?(0,Ah.jsx)(cg,{content:n,children:t}):t}):null]})]})})})}function SP(A){let{title:Q,actions:B,name:C}=A;return(0,Ah.jsxs)("div",{className:"flex gap-0.5 items-center",children:[Q?(0,Ah.jsx)(Ku,{htmlFor:C,noWrap:!0,children:Q}):null,B]})}function SO(A){var Q;let{form:B,name:C}=A,I=B.formState.errors[C],E=null===(Q=B.formState.errors[C])||void 0===Q?void 0:Q.message;return I?(0,Ah.jsx)(CC,{size:"14",color:"red",children:E}):null}function SW(A){let{form:Q,title:B,actions:C,name:I,className:E,wrap:g}=A,w=Q.formState.errors[I];return B||w?(0,Ah.jsxs)("div",{className:(0,Qk.cx)("flex justify-between items-center gap-x-4 overflow-hidden",g?"flex-wrap":"",E),children:[(0,Ah.jsx)(SP,{name:I,title:B,actions:C}),(0,Ah.jsx)(SO,{form:Q,name:I})]}):null}function Sz(A){let{children:Q,...B}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ah.jsx)(SW,{...B}),Q]})}function Sx(A){let{form:Q,size:B="medium",variant:C="accent",className:I,children:E}=A;return(0,Ah.jsx)(cD,{className:I,size:B,variant:C,state:Q.formState.isSubmitting?"waiting":void 0,type:"submit",children:Q.formState.isSubmitting?(0,Ah.jsx)(eW,{}):E})}let SV="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Sv(A){let Q=Object.prototype.toString.call(A);return"[object Window]"===Q||"[object global]"===Q}function SX(A){return"nodeType"in A}function Sq(A){var Q,B;return A?Sv(A)?A:SX(A)&&null!=(Q=null==(B=A.ownerDocument)?void 0:B.defaultView)?Q:window:window}function S_(A){let{Document:Q}=Sq(A);return A instanceof Q}function S$(A){return!Sv(A)&&A instanceof Sq(A).HTMLElement}function S0(A){return A instanceof Sq(A).SVGElement}function S8(A){return A?Sv(A)?A.document:SX(A)?S_(A)?A:S$(A)||S0(A)?A.ownerDocument:document:document:document}let S3=SV?Ak.useLayoutEffect:Ak.useEffect;function S1(A){let Q=(0,Ak.useRef)(A);return S3(()=>{Q.current=A}),(0,Ak.useCallback)(function(){for(var A=arguments.length,B=Array(A),C=0;C{B.current!==A&&(B.current=A)},Q),B}function S2(A,Q){let B=(0,Ak.useRef)();return(0,Ak.useMemo)(()=>{let Q=A(B.current);return B.current=Q,Q},[...Q])}function S5(A){let Q=S1(A),B=(0,Ak.useRef)(null),C=(0,Ak.useCallback)(A=>{A!==B.current&&(null==Q||Q(A,B.current)),B.current=A},[]);return[B,C]}function S9(A){let Q=(0,Ak.useRef)();return(0,Ak.useEffect)(()=>{Q.current=A},[A]),Q.current}let S6={};function S7(A,Q){return(0,Ak.useMemo)(()=>{if(Q)return Q;let B=null==S6[A]?0:S6[A]+1;return S6[A]=B,A+"-"+B},[A,Q])}function FA(A){return function(Q){for(var B=arguments.length,C=Array(B>1?B-1:0),I=1;I{for(let[C,I]of Object.entries(B)){let B=Q[C];null!=B&&(Q[C]=B+A*I)}return Q},{...Q})}}let FQ=FA(1),FB=FA(-1);function FC(A){if(!A)return!1;let{KeyboardEvent:Q}=Sq(A.target);return Q&&A instanceof Q}function FI(A){if(function(A){if(!A)return!1;let{TouchEvent:Q}=Sq(A.target);return Q&&A instanceof Q}(A)){if(A.touches&&A.touches.length){let{clientX:Q,clientY:B}=A.touches[0];return{x:Q,y:B}}if(A.changedTouches&&A.changedTouches.length){let{clientX:Q,clientY:B}=A.changedTouches[0];return{x:Q,y:B}}}return"clientX"in A&&"clientY"in A?{x:A.clientX,y:A.clientY}:null}let FE=Object.freeze({Translate:{toString(A){if(!A)return;let{x:Q,y:B}=A;return"translate3d("+(Q?Math.round(Q):0)+"px, "+(B?Math.round(B):0)+"px, 0)"}},Scale:{toString(A){if(!A)return;let{scaleX:Q,scaleY:B}=A;return"scaleX("+Q+") scaleY("+B+")"}},Transform:{toString(A){if(A)return[FE.Translate.toString(A),FE.Scale.toString(A)].join(" ")}},Transition:{toString(A){let{property:Q,duration:B,easing:C}=A;return Q+" "+B+"ms "+C}}}),Fg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]",Fw={display:"none"};function FD(A){let{id:Q,value:B}=A;return Ak.createElement("div",{id:Q,style:Fw},B)}function Fc(A){let{id:Q,announcement:B,ariaLiveType:C="assertive"}=A;return Ak.createElement("div",{id:Q,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":C,"aria-atomic":!0},B)}let FM=(0,Ak.createContext)(null),Fs={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 "},Fy={onDragStart(A){let{active:Q}=A;return"Picked up draggable item "+Q.id+"."},onDragOver(A){let{active:Q,over:B}=A;return B?"Draggable item "+Q.id+" was moved over droppable area "+B.id+".":"Draggable item "+Q.id+" is no longer over a droppable area."},onDragEnd(A){let{active:Q,over:B}=A;return B?"Draggable item "+Q.id+" was dropped over droppable area "+B.id:"Draggable item "+Q.id+" was dropped."},onDragCancel(A){let{active:Q}=A;return"Dragging was cancelled. Draggable item "+Q.id+" was dropped."}};function Fn(A){let{announcements:Q=Fy,container:B,hiddenTextDescribedById:C,screenReaderInstructions:I=Fs}=A,{announce:E,announcement:g}=function(){let[A,Q]=(0,Ak.useState)("");return{announce:(0,Ak.useCallback)(A=>{null!=A&&Q(A)},[]),announcement:A}}(),w=S7("DndLiveRegion"),[D,c]=(0,Ak.useState)(!1);if((0,Ak.useEffect)(()=>{c(!0)},[]),!function(A){let Q=(0,Ak.useContext)(FM);(0,Ak.useEffect)(()=>{if(!Q)throw Error("useDndMonitor must be used within a children of ");return Q(A)},[A,Q])}((0,Ak.useMemo)(()=>({onDragStart(A){let{active:B}=A;E(Q.onDragStart({active:B}))},onDragMove(A){let{active:B,over:C}=A;Q.onDragMove&&E(Q.onDragMove({active:B,over:C}))},onDragOver(A){let{active:B,over:C}=A;E(Q.onDragOver({active:B,over:C}))},onDragEnd(A){let{active:B,over:C}=A;E(Q.onDragEnd({active:B,over:C}))},onDragCancel(A){let{active:B,over:C}=A;E(Q.onDragCancel({active:B,over:C}))}}),[E,Q])),!D)return null;let M=Ak.createElement(Ak.Fragment,null,Ak.createElement(FD,{id:C,value:I.draggable}),Ak.createElement(Fc,{id:w,announcement:g}));return B?(0,Ao.createPortal)(M,B):M}function Fh(){}function Fk(A,Q){return(0,Ak.useMemo)(()=>({sensor:A,options:null!=Q?Q:{}}),[A,Q])}(o=AQ||(AQ={})).DragStart="dragStart",o.DragMove="dragMove",o.DragEnd="dragEnd",o.DragCancel="dragCancel",o.DragOver="dragOver",o.RegisterDroppable="registerDroppable",o.SetDroppableDisabled="setDroppableDisabled",o.UnregisterDroppable="unregisterDroppable";let FK=Object.freeze({x:0,y:0});function Ft(A,Q){let{data:{value:B}}=A,{data:{value:C}}=Q;return C-B}let FU=A=>{let{collisionRect:Q,droppableRects:B,droppableContainers:C}=A,I=[];for(let A of C){let{id:C}=A,E=B.get(C);if(E){let B=function(A,Q){let B=Math.max(Q.top,A.top),C=Math.max(Q.left,A.left),I=Math.min(Q.left+Q.width,A.left+A.width),E=Math.min(Q.top+Q.height,A.top+A.height);if(C0&&I.push({id:C,data:{droppableContainer:A,value:B}})}}return I.sort(Ft)};function FL(A,Q){return A&&Q?{x:A.left-Q.left,y:A.top-Q.top}:FK}let Fi=function(A){for(var Q=arguments.length,B=Array(Q>1?Q-1:0),C=1;C({...A,top:A.top+1*Q.y,bottom:A.bottom+1*Q.y,left:A.left+1*Q.x,right:A.right+1*Q.x}),{...A})};function FG(A){if(A.startsWith("matrix3d(")){let Q=A.slice(9,-1).split(/, /);return{x:+Q[12],y:+Q[13],scaleX:+Q[0],scaleY:+Q[5]}}if(A.startsWith("matrix(")){let Q=A.slice(7,-1).split(/, /);return{x:+Q[4],y:+Q[5],scaleX:+Q[0],scaleY:+Q[3]}}return null}let Fp={ignoreTransform:!1};function Fr(A,Q){void 0===Q&&(Q=Fp);let B=A.getBoundingClientRect();if(Q.ignoreTransform){let{transform:Q,transformOrigin:C}=Sq(A).getComputedStyle(A);Q&&(B=function(A,Q,B){let C=FG(Q);if(!C)return A;let{scaleX:I,scaleY:E,x:g,y:w}=C,D=A.left-g-(1-I)*parseFloat(B),c=A.top-w-(1-E)*parseFloat(B.slice(B.indexOf(" ")+1)),M=I?A.width/I:A.width,s=E?A.height/E:A.height;return{width:M,height:s,top:c,right:D+M,bottom:c+s,left:D}}(B,Q,C))}let{top:C,left:I,width:E,height:g,bottom:w,right:D}=B;return{top:C,left:I,width:E,height:g,bottom:w,right:D}}function Fa(A){return Fr(A,{ignoreTransform:!0})}function Fo(A,Q){let B=[];return A?function C(I){var E;if(null!=Q&&B.length>=Q||!I)return B;if(S_(I)&&null!=I.scrollingElement&&!B.includes(I.scrollingElement))return B.push(I.scrollingElement),B;if(!S$(I)||S0(I)||B.includes(I))return B;let g=Sq(A).getComputedStyle(I);return(I!==A&&function(A,Q){void 0===Q&&(Q=Sq(A).getComputedStyle(A));let B=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(A=>{let C=Q[A];return"string"==typeof C&&B.test(C)})}(I,g)&&B.push(I),void 0===(E=g)&&(E=Sq(I).getComputedStyle(I)),"fixed"===E.position)?B:C(I.parentNode)}(A):B}function FN(A){let[Q]=Fo(A,1);return null!=Q?Q:null}function Fe(A){return SV&&A?Sv(A)?A:SX(A)?S_(A)||A===S8(A).scrollingElement?window:S$(A)?A:null:null:null}function FJ(A){return Sv(A)?A.scrollX:A.scrollLeft}function FS(A){return Sv(A)?A.scrollY:A.scrollTop}function FF(A){return{x:FJ(A),y:FS(A)}}function Fl(A){return!!SV&&!!A&&A===document.scrollingElement}function FY(A){let Q={x:0,y:0},B=Fl(A)?{height:window.innerHeight,width:window.innerWidth}:{height:A.clientHeight,width:A.clientWidth},C={x:A.scrollWidth-B.width,y:A.scrollHeight-B.height},I=A.scrollTop<=Q.y;return{isTop:I,isLeft:A.scrollLeft<=Q.x,isBottom:A.scrollTop>=C.y,isRight:A.scrollLeft>=C.x,maxScroll:C,minScroll:Q}}(N=AB||(AB={}))[N.Forward=1]="Forward",N[N.Backward=-1]="Backward";let FH={x:.2,y:.2};function Ff(A){return A.reduce((A,Q)=>FQ(A,FF(Q)),FK)}function Fd(A,Q){if(void 0===Q&&(Q=Fr),!A)return;let{top:B,left:C,bottom:I,right:E}=Q(A);FN(A)&&(I<=0||E<=0||B>=window.innerHeight||C>=window.innerWidth)&&A.scrollIntoView({block:"center",inline:"center"})}let Fu=[["x",["left","right"],function(A){return A.reduce((A,Q)=>A+FJ(Q),0)}],["y",["top","bottom"],function(A){return A.reduce((A,Q)=>A+FS(Q),0)}]];class FR{constructor(A,Q){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 B=Fo(Q),C=Ff(B);for(let[Q,I,E]of(this.rect={...A},this.width=A.width,this.height=A.height,Fu))for(let A of I)Object.defineProperty(this,A,{get:()=>{let I=E(B),g=C[Q]-I;return this.rect[A]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Fj{constructor(A){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(A=>{var Q;return null==(Q=this.target)?void 0:Q.removeEventListener(...A)})},this.target=A}add(A,Q,B){var C;null==(C=this.target)||C.addEventListener(A,Q,B),this.listeners.push([A,Q,B])}}function Fb(A,Q){let B=Math.abs(A.x),C=Math.abs(A.y);return"number"==typeof Q?Math.sqrt(B**2+C**2)>Q:"x"in Q&&"y"in Q?B>Q.x&&C>Q.y:"x"in Q?B>Q.x:"y"in Q&&C>Q.y}function Fm(A){A.preventDefault()}function FZ(A){A.stopPropagation()}(e=AC||(AC={})).Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange",(J=AI||(AI={})).Space="Space",J.Down="ArrowDown",J.Right="ArrowRight",J.Left="ArrowLeft",J.Up="ArrowUp",J.Esc="Escape",J.Enter="Enter";let FT={start:[AI.Space,AI.Enter],cancel:[AI.Esc],end:[AI.Space,AI.Enter]},FP=(A,Q)=>{let{currentCoordinates:B}=Q;switch(A.code){case AI.Right:return{...B,x:B.x+25};case AI.Left:return{...B,x:B.x-25};case AI.Down:return{...B,y:B.y+25};case AI.Up:return{...B,y:B.y-25}}};class FO{constructor(A){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=A;let{event:{target:Q}}=A;this.props=A,this.listeners=new Fj(S8(Q)),this.windowListeners=new Fj(Sq(Q)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(AC.Resize,this.handleCancel),this.windowListeners.add(AC.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(AC.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:A,onStart:Q}=this.props,B=A.node.current;B&&Fd(B),Q(FK)}handleKeyDown(A){if(FC(A)){let{active:Q,context:B,options:C}=this.props,{keyboardCodes:I=FT,coordinateGetter:E=FP,scrollBehavior:g="smooth"}=C,{code:w}=A;if(I.end.includes(w)){this.handleEnd(A);return}if(I.cancel.includes(w)){this.handleCancel(A);return}let{collisionRect:D}=B.current,c=D?{x:D.left,y:D.top}:FK;this.referenceCoordinates||(this.referenceCoordinates=c);let M=E(A,{active:Q,context:B.current,currentCoordinates:c});if(M){let Q=FB(M,c),C={x:0,y:0},{scrollableAncestors:I}=B.current;for(let B of I){let I=A.code,{isTop:E,isRight:w,isLeft:D,isBottom:c,maxScroll:s,minScroll:y}=FY(B),n=function(A){if(A===document.scrollingElement){let{innerWidth:A,innerHeight:Q}=window;return{top:0,left:0,right:A,bottom:Q,width:A,height:Q}}let{top:Q,left:B,right:C,bottom:I}=A.getBoundingClientRect();return{top:Q,left:B,right:C,bottom:I,width:A.clientWidth,height:A.clientHeight}}(B),h={x:Math.min(I===AI.Right?n.right-n.width/2:n.right,Math.max(I===AI.Right?n.left:n.left+n.width/2,M.x)),y:Math.min(I===AI.Down?n.bottom-n.height/2:n.bottom,Math.max(I===AI.Down?n.top:n.top+n.height/2,M.y))},k=I===AI.Right&&!w||I===AI.Left&&!D,K=I===AI.Down&&!c||I===AI.Up&&!E;if(k&&h.x!==M.x){let A=B.scrollLeft+Q.x,E=I===AI.Right&&A<=s.x||I===AI.Left&&A>=y.x;if(E&&!Q.y){B.scrollTo({left:A,behavior:g});return}E?C.x=B.scrollLeft-A:C.x=I===AI.Right?B.scrollLeft-s.x:B.scrollLeft-y.x,C.x&&B.scrollBy({left:-C.x,behavior:g});break}if(K&&h.y!==M.y){let A=B.scrollTop+Q.y,E=I===AI.Down&&A<=s.y||I===AI.Up&&A>=y.y;if(E&&!Q.x){B.scrollTo({top:A,behavior:g});return}E?C.y=B.scrollTop-A:C.y=I===AI.Down?B.scrollTop-s.y:B.scrollTop-y.y,C.y&&B.scrollBy({top:-C.y,behavior:g});break}}this.handleMove(A,FQ(FB(M,this.referenceCoordinates),C))}}}handleMove(A,Q){let{onMove:B}=this.props;A.preventDefault(),B(Q)}handleEnd(A){let{onEnd:Q}=this.props;A.preventDefault(),this.detach(),Q()}handleCancel(A){let{onCancel:Q}=this.props;A.preventDefault(),this.detach(),Q()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function FW(A){return!!(A&&"distance"in A)}function Fz(A){return!!(A&&"delay"in A)}FO.activators=[{eventName:"onKeyDown",handler:(A,Q,B)=>{let{keyboardCodes:C=FT,onActivation:I}=Q,{active:E}=B,{code:g}=A.nativeEvent;if(C.start.includes(g)){let Q=E.activatorNode.current;return(!Q||A.target===Q)&&(A.preventDefault(),null==I||I({event:A.nativeEvent}),!0)}return!1}}];class Fx{constructor(A,Q,B){var C;void 0===B&&(B=function(A){let{EventTarget:Q}=Sq(A);return A instanceof Q?A:S8(A)}(A.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=A,this.events=Q;let{event:I}=A,{target:E}=I;this.props=A,this.events=Q,this.document=S8(E),this.documentListeners=new Fj(this.document),this.listeners=new Fj(B),this.windowListeners=new Fj(Sq(E)),this.initialCoordinates=null!=(C=FI(I))?C:FK,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:A,props:{options:{activationConstraint:Q,bypassActivationConstraint:B}}}=this;if(this.listeners.add(A.move.name,this.handleMove,{passive:!1}),this.listeners.add(A.end.name,this.handleEnd),this.windowListeners.add(AC.Resize,this.handleCancel),this.windowListeners.add(AC.DragStart,Fm),this.windowListeners.add(AC.VisibilityChange,this.handleCancel),this.windowListeners.add(AC.ContextMenu,Fm),this.documentListeners.add(AC.Keydown,this.handleKeydown),Q){if(null!=B&&B({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Fz(Q)){this.timeoutId=setTimeout(this.handleStart,Q.delay);return}if(FW(Q))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:A}=this,{onStart:Q}=this.props;A&&(this.activated=!0,this.documentListeners.add(AC.Click,FZ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(AC.SelectionChange,this.removeTextSelection),Q(A))}handleMove(A){var Q;let{activated:B,initialCoordinates:C,props:I}=this,{onMove:E,options:{activationConstraint:g}}=I;if(!C)return;let w=null!=(Q=FI(A))?Q:FK,D=FB(C,w);if(!B&&g){if(FW(g)){if(null!=g.tolerance&&Fb(D,g.tolerance))return this.handleCancel();if(Fb(D,g.distance))return this.handleStart()}return Fz(g)&&Fb(D,g.tolerance)?this.handleCancel():void 0}A.cancelable&&A.preventDefault(),E(w)}handleEnd(){let{onEnd:A}=this.props;this.detach(),A()}handleCancel(){let{onCancel:A}=this.props;this.detach(),A()}handleKeydown(A){A.code===AI.Esc&&this.handleCancel()}removeTextSelection(){var A;null==(A=this.document.getSelection())||A.removeAllRanges()}}let FV={move:{name:"pointermove"},end:{name:"pointerup"}};class Fv extends Fx{constructor(A){let{event:Q}=A;super(A,FV,S8(Q.target))}}Fv.activators=[{eventName:"onPointerDown",handler:(A,Q)=>{let{nativeEvent:B}=A,{onActivation:C}=Q;return!!B.isPrimary&&0===B.button&&(null==C||C({event:B}),!0)}}];let FX={move:{name:"mousemove"},end:{name:"mouseup"}};(S=AE||(AE={}))[S.RightClick=2]="RightClick";class Fq extends Fx{constructor(A){super(A,FX,S8(A.event.target))}}Fq.activators=[{eventName:"onMouseDown",handler:(A,Q)=>{let{nativeEvent:B}=A,{onActivation:C}=Q;return B.button!==AE.RightClick&&(null==C||C({event:B}),!0)}}];let F_={move:{name:"touchmove"},end:{name:"touchend"}};class F$ extends Fx{constructor(A){super(A,F_)}static setup(){return window.addEventListener(F_.move.name,A,{capture:!1,passive:!1}),function(){window.removeEventListener(F_.move.name,A)};function A(){}}}F$.activators=[{eventName:"onTouchStart",handler:(A,Q)=>{let{nativeEvent:B}=A,{onActivation:C}=Q,{touches:I}=B;return!(I.length>1)&&(null==C||C({event:B}),!0)}}],(F=Ag||(Ag={}))[F.Pointer=0]="Pointer",F[F.DraggableRect=1]="DraggableRect",(l=Aw||(Aw={}))[l.TreeOrder=0]="TreeOrder",l[l.ReversedTreeOrder=1]="ReversedTreeOrder";let F0={x:{[AB.Backward]:!1,[AB.Forward]:!1},y:{[AB.Backward]:!1,[AB.Forward]:!1}};(Y=AD||(AD={}))[Y.Always=0]="Always",Y[Y.BeforeDragging=1]="BeforeDragging",Y[Y.WhileDragging=2]="WhileDragging",(Ac||(Ac={})).Optimized="optimized";let F8=new Map;function F3(A,Q){return S2(B=>A?B||("function"==typeof Q?Q(A):A):null,[Q,A])}function F1(A){let{callback:Q,disabled:B}=A,C=S1(Q),I=(0,Ak.useMemo)(()=>{if(B||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:A}=window;return new A(C)},[B]);return(0,Ak.useEffect)(()=>()=>null==I?void 0:I.disconnect(),[I]),I}function F4(A){return new FR(Fr(A),A)}function F2(A,Q,B){void 0===Q&&(Q=F4);let[C,I]=(0,Ak.useReducer)(function(C){if(!A)return null;if(!1===A.isConnected){var I;return null!=(I=null!=C?C:B)?I:null}let E=Q(A);return JSON.stringify(C)===JSON.stringify(E)?C:E},null),E=function(A){let{callback:Q,disabled:B}=A,C=S1(Q),I=(0,Ak.useMemo)(()=>{if(B||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:A}=window;return new A(C)},[C,B]);return(0,Ak.useEffect)(()=>()=>null==I?void 0:I.disconnect(),[I]),I}({callback(Q){if(A)for(let B of Q){let{type:Q,target:C}=B;if("childList"===Q&&C instanceof HTMLElement&&C.contains(A)){I();break}}}}),g=F1({callback:I});return S3(()=>{I(),A?(null==g||g.observe(A),null==E||E.observe(document.body,{childList:!0,subtree:!0})):(null==g||g.disconnect(),null==E||E.disconnect())},[A]),C}let F5=[];function F9(A,Q){void 0===Q&&(Q=[]);let B=(0,Ak.useRef)(null);return(0,Ak.useEffect)(()=>{B.current=null},Q),(0,Ak.useEffect)(()=>{let Q=A!==FK;Q&&!B.current&&(B.current=A),!Q&&B.current&&(B.current=null)},[A]),B.current?FB(A,B.current):FK}function F6(A){return(0,Ak.useMemo)(()=>A?function(A){let Q=A.innerWidth,B=A.innerHeight;return{top:0,left:0,right:Q,bottom:B,width:Q,height:B}}(A):null,[A])}let F7=[];function lA(A){if(!A)return null;if(A.children.length>1)return A;let Q=A.children[0];return S$(Q)?Q:A}let lQ=[{sensor:Fv,options:{}},{sensor:FO,options:{}}],lB={current:{}},lC={draggable:{measure:Fa},droppable:{measure:Fa,strategy:AD.WhileDragging,frequency:Ac.Optimized},dragOverlay:{measure:Fr}};class lI extends Map{get(A){var Q;return null!=A&&null!=(Q=super.get(A))?Q:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(A=>{let{disabled:Q}=A;return!Q})}getNodeFor(A){var Q,B;return null!=(Q=null==(B=this.get(A))?void 0:B.node.current)?Q:void 0}}let lE={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new lI,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Fh},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:lC,measureDroppableContainers:Fh,windowRect:null,measuringScheduled:!1},lg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Fh,draggableNodes:new Map,over:null,measureDroppableContainers:Fh},lw=(0,Ak.createContext)(lg),lD=(0,Ak.createContext)(lE);function lc(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new lI}}}function lM(A,Q){switch(Q.type){case AQ.DragStart:return{...A,draggable:{...A.draggable,initialCoordinates:Q.initialCoordinates,active:Q.active}};case AQ.DragMove:if(!A.draggable.active)return A;return{...A,draggable:{...A.draggable,translate:{x:Q.coordinates.x-A.draggable.initialCoordinates.x,y:Q.coordinates.y-A.draggable.initialCoordinates.y}}};case AQ.DragEnd:case AQ.DragCancel:return{...A,draggable:{...A.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case AQ.RegisterDroppable:{let{element:B}=Q,{id:C}=B,I=new lI(A.droppable.containers);return I.set(C,B),{...A,droppable:{...A.droppable,containers:I}}}case AQ.SetDroppableDisabled:{let{id:B,key:C,disabled:I}=Q,E=A.droppable.containers.get(B);if(!E||C!==E.key)return A;let g=new lI(A.droppable.containers);return g.set(B,{...E,disabled:I}),{...A,droppable:{...A.droppable,containers:g}}}case AQ.UnregisterDroppable:{let{id:B,key:C}=Q,I=A.droppable.containers.get(B);if(!I||C!==I.key)return A;let E=new lI(A.droppable.containers);return E.delete(B),{...A,droppable:{...A.droppable,containers:E}}}default:return A}}function ls(A){let{disabled:Q}=A,{active:B,activatorEvent:C,draggableNodes:I}=(0,Ak.useContext)(lw),E=S9(C),g=S9(null==B?void 0:B.id);return(0,Ak.useEffect)(()=>{if(!Q&&!C&&E&&null!=g){if(!FC(E)||document.activeElement===E.target)return;let A=I.get(g);if(!A)return;let{activatorNode:Q,node:B}=A;(Q.current||B.current)&&requestAnimationFrame(()=>{for(let A of[Q.current,B.current]){if(!A)continue;let Q=A.matches(Fg)?A:A.querySelector(Fg);if(Q){Q.focus();break}}})}},[C,Q,I,g,E]),null}function ly(A,Q){let{transform:B,...C}=Q;return null!=A&&A.length?A.reduce((A,Q)=>Q({transform:A,...C}),B):B}let ln=(0,Ak.createContext)({...FK,scaleX:1,scaleY:1});(H=AM||(AM={}))[H.Uninitialized=0]="Uninitialized",H[H.Initializing=1]="Initializing",H[H.Initialized=2]="Initialized";let lh=(0,Ak.memo)(function(A){var Q,B,C,I,E,g;let{id:w,accessibility:D,autoScroll:c=!0,children:M,sensors:s=lQ,collisionDetection:y=FU,measuring:n,modifiers:h,...k}=A,[K,t]=(0,Ak.useReducer)(lM,void 0,lc),[U,L]=function(){let[A]=(0,Ak.useState)(()=>new Set),Q=(0,Ak.useCallback)(Q=>(A.add(Q),()=>A.delete(Q)),[A]);return[(0,Ak.useCallback)(Q=>{let{type:B,event:C}=Q;A.forEach(A=>{var Q;return null==(Q=A[B])?void 0:Q.call(A,C)})},[A]),Q]}(),[i,G]=(0,Ak.useState)(AM.Uninitialized),p=i===AM.Initialized,{draggable:{active:r,nodes:a,translate:o},droppable:{containers:N}}=K,e=r?a.get(r):null,J=(0,Ak.useRef)({initial:null,translated:null}),S=(0,Ak.useMemo)(()=>{var A;return null!=r?{id:r,data:null!=(A=null==e?void 0:e.data)?A:lB,rect:J}:null},[r,e]),F=(0,Ak.useRef)(null),[l,Y]=(0,Ak.useState)(null),[H,f]=(0,Ak.useState)(null),d=S4(k,Object.values(k)),u=S7("DndDescribedBy",w),R=(0,Ak.useMemo)(()=>N.getEnabled(),[N]),j=(0,Ak.useMemo)(()=>({draggable:{...lC.draggable,...null==n?void 0:n.draggable},droppable:{...lC.droppable,...null==n?void 0:n.droppable},dragOverlay:{...lC.dragOverlay,...null==n?void 0:n.dragOverlay}}),[null==n?void 0:n.draggable,null==n?void 0:n.droppable,null==n?void 0:n.dragOverlay]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:Z}=function(A,Q){let{dragging:B,dependencies:C,config:I}=Q,[E,g]=(0,Ak.useState)(null),{frequency:w,measure:D,strategy:c}=I,M=(0,Ak.useRef)(A),s=function(){switch(c){case AD.Always:return!1;case AD.BeforeDragging:return B;default:return!B}}(),y=S4(s),n=(0,Ak.useCallback)(function(A){void 0===A&&(A=[]),y.current||g(Q=>null===Q?A:Q.concat(A.filter(A=>!Q.includes(A))))},[y]),h=(0,Ak.useRef)(null),k=S2(Q=>{if(s&&!B)return F8;if(!Q||Q===F8||M.current!==A||null!=E){let Q=new Map;for(let B of A){if(!B)continue;if(E&&E.length>0&&!E.includes(B.id)&&B.rect.current){Q.set(B.id,B.rect.current);continue}let A=B.node.current,C=A?new FR(D(A),A):null;B.rect.current=C,C&&Q.set(B.id,C)}return Q}return Q},[A,E,B,s,D]);return(0,Ak.useEffect)(()=>{M.current=A},[A]),(0,Ak.useEffect)(()=>{s||n()},[B,s]),(0,Ak.useEffect)(()=>{E&&E.length>0&&g(null)},[JSON.stringify(E)]),(0,Ak.useEffect)(()=>{s||"number"!=typeof w||null!==h.current||(h.current=setTimeout(()=>{n(),h.current=null},w))},[w,s,n,...C]),{droppableRects:k,measureDroppableContainers:n,measuringScheduled:null!=E}}(R,{dragging:p,dependencies:[o.x,o.y],config:j.droppable}),T=function(A,Q){let B=null!==Q?A.get(Q):void 0,C=B?B.node.current:null;return S2(A=>{var B;return null===Q?null:null!=(B=null!=C?C:A)?B:null},[C,Q])}(a,r),P=(0,Ak.useMemo)(()=>H?FI(H):null,[H]),O=function(){let A=(null==l?void 0:l.autoScrollEnabled)===!1,Q="object"==typeof c?!1===c.enabled:!1===c,B=p&&!A&&!Q;return"object"==typeof c?{...c,enabled:B}:{enabled:B}}(),W=F3(T,j.draggable.measure);!function(A){let{activeNode:Q,measure:B,initialRect:C,config:I=!0}=A,E=(0,Ak.useRef)(!1),{x:g,y:w}="boolean"==typeof I?{x:I,y:I}:I;S3(()=>{if(!g&&!w||!Q){E.current=!1;return}if(E.current||!C)return;let A=null==Q?void 0:Q.node.current;if(!A||!1===A.isConnected)return;let I=FL(B(A),C);if(g||(I.x=0),w||(I.y=0),E.current=!0,Math.abs(I.x)>0||Math.abs(I.y)>0){let Q=FN(A);Q&&Q.scrollBy({top:I.y,left:I.x})}},[Q,g,w,C,B])}({activeNode:r?a.get(r):null,config:O.layoutShiftCompensation,initialRect:W,measure:j.draggable.measure});let z=F2(T,j.draggable.measure,W),x=F2(T?T.parentElement:null),V=(0,Ak.useRef)({activatorEvent:null,active:null,activeNode:T,collisionRect:null,collisions:null,droppableRects:b,draggableNodes:a,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),v=N.getNodeFor(null==(Q=V.current.over)?void 0:Q.id),X=function(A){let{measure:Q}=A,[B,C]=(0,Ak.useState)(null),I=F1({callback:(0,Ak.useCallback)(A=>{for(let{target:B}of A)if(S$(B)){C(A=>{let C=Q(B);return A?{...A,width:C.width,height:C.height}:C});break}},[Q])}),[E,g]=S5((0,Ak.useCallback)(A=>{let B=lA(A);null==I||I.disconnect(),B&&(null==I||I.observe(B)),C(B?Q(B):null)},[Q,I]));return(0,Ak.useMemo)(()=>({nodeRef:E,rect:B,setRef:g}),[B,E,g])}({measure:j.dragOverlay.measure}),q=null!=(B=X.nodeRef.current)?B:T,_=p?null!=(C=X.rect)?C:z:null,$=!!(X.nodeRef.current&&X.rect),AA=function(A){let Q=F3(A);return FL(A,Q)}($?null:z),AC=F6(q?Sq(q):null),AI=function(A){let Q=(0,Ak.useRef)(A),B=S2(B=>A?B&&B!==F5&&A&&Q.current&&A.parentNode===Q.current.parentNode?B:Fo(A):F5,[A]);return(0,Ak.useEffect)(()=>{Q.current=A},[A]),B}(p?null!=v?v:T:null),AE=function(A,Q){void 0===Q&&(Q=Fr);let[B]=A,C=F6(B?Sq(B):null),[I,E]=(0,Ak.useReducer)(function(){return A.length?A.map(A=>Fl(A)?C:new FR(Q(A),A)):F7},F7),g=F1({callback:E});return A.length>0&&I===F7&&E(),S3(()=>{A.length?A.forEach(A=>null==g?void 0:g.observe(A)):(null==g||g.disconnect(),E())},[A]),I}(AI),Ac=ly(h,{transform:{x:o.x-AA.x,y:o.y-AA.y,scaleX:1,scaleY:1},activatorEvent:H,active:S,activeNodeRect:z,containerNodeRect:x,draggingNodeRect:_,over:V.current.over,overlayNodeRect:X.rect,scrollableAncestors:AI,scrollableAncestorRects:AE,windowRect:AC}),As=P?FQ(P,o):null,Ay=function(A){let[Q,B]=(0,Ak.useState)(null),C=(0,Ak.useRef)(A),I=(0,Ak.useCallback)(A=>{let Q=Fe(A.target);Q&&B(A=>A?(A.set(Q,FF(Q)),new Map(A)):null)},[]);return(0,Ak.useEffect)(()=>{let Q=C.current;if(A!==Q){E(Q);let g=A.map(A=>{let Q=Fe(A);return Q?(Q.addEventListener("scroll",I,{passive:!0}),[Q,FF(Q)]):null}).filter(A=>null!=A);B(g.length?new Map(g):null),C.current=A}return()=>{E(A),E(Q)};function E(A){A.forEach(A=>{let Q=Fe(A);null==Q||Q.removeEventListener("scroll",I)})}},[I,A]),(0,Ak.useMemo)(()=>A.length?Q?Array.from(Q.values()).reduce((A,Q)=>FQ(A,Q),FK):Ff(A):FK,[A,Q])}(AI),An=F9(Ay),Ah=F9(Ay,[z]),AK=FQ(Ac,An),At=_?Fi(_,Ac):null,AU=S&&At?y({active:S,collisionRect:At,droppableRects:b,droppableContainers:R,pointerCoordinates:As}):null,AL=function(A,Q){if(!A||0===A.length)return null;let[B]=A;return B.id}(AU,0),[Ai,AG]=(0,Ak.useState)(null),Ap=(E=$?Ac:FQ(Ac,Ah),g=null!=(I=null==Ai?void 0:Ai.rect)?I:null,{...E,scaleX:g&&z?g.width/z.width:1,scaleY:g&&z?g.height/z.height:1}),Ar=(0,Ak.useCallback)((A,Q)=>{let{sensor:B,options:C}=Q;if(null==F.current)return;let I=a.get(F.current);if(!I)return;let E=A.nativeEvent,g=new B({active:F.current,activeNode:I,event:E,options:C,context:V,onStart(A){let Q=F.current;if(null==Q)return;let B=a.get(Q);if(!B)return;let{onDragStart:C}=d.current,I={active:{id:Q,data:B.data,rect:J}};(0,Ao.unstable_batchedUpdates)(()=>{null==C||C(I),G(AM.Initializing),t({type:AQ.DragStart,initialCoordinates:A,active:Q}),U({type:"onDragStart",event:I})})},onMove(A){t({type:AQ.DragMove,coordinates:A})},onEnd:w(AQ.DragEnd),onCancel:w(AQ.DragCancel)});function w(A){return async function(){let{active:Q,collisions:B,over:C,scrollAdjustedTranslate:I}=V.current,g=null;if(Q&&I){let{cancelDrop:w}=d.current;g={activatorEvent:E,active:Q,collisions:B,delta:I,over:C},A===AQ.DragEnd&&"function"==typeof w&&await Promise.resolve(w(g))&&(A=AQ.DragCancel)}F.current=null,(0,Ao.unstable_batchedUpdates)(()=>{t({type:A}),G(AM.Uninitialized),AG(null),Y(null),f(null);let Q=A===AQ.DragEnd?"onDragEnd":"onDragCancel";if(g){let A=d.current[Q];null==A||A(g),U({type:Q,event:g})}})}}(0,Ao.unstable_batchedUpdates)(()=>{Y(g),f(A.nativeEvent)})},[a]),Aa=(0,Ak.useCallback)((A,Q)=>(B,C)=>{let I=B.nativeEvent,E=a.get(C);null!==F.current||!E||I.dndKit||I.defaultPrevented||!0!==A(B,Q.options,{active:E})||(I.dndKit={capturedBy:Q.sensor},F.current=C,Ar(B,Q))},[a,Ar]),AN=(0,Ak.useMemo)(()=>s.reduce((A,Q)=>{let{sensor:B}=Q;return[...A,...B.activators.map(A=>({eventName:A.eventName,handler:Aa(A.handler,Q)}))]},[]),[s,Aa]);(0,Ak.useEffect)(()=>{if(!SV)return;let A=s.map(A=>{let{sensor:Q}=A;return null==Q.setup?void 0:Q.setup()});return()=>{for(let Q of A)null==Q||Q()}},s.map(A=>{let{sensor:Q}=A;return Q})),S3(()=>{z&&i===AM.Initializing&&G(AM.Initialized)},[z,i]),(0,Ak.useEffect)(()=>{let{onDragMove:A}=d.current,{active:Q,activatorEvent:B,collisions:C,over:I}=V.current;if(!Q||!B)return;let E={active:Q,activatorEvent:B,collisions:C,delta:{x:AK.x,y:AK.y},over:I};(0,Ao.unstable_batchedUpdates)(()=>{null==A||A(E),U({type:"onDragMove",event:E})})},[AK.x,AK.y]),(0,Ak.useEffect)(()=>{let{active:A,activatorEvent:Q,collisions:B,droppableContainers:C,scrollAdjustedTranslate:I}=V.current;if(!A||null==F.current||!Q||!I)return;let{onDragOver:E}=d.current,g=C.get(AL),w=g&&g.rect.current?{id:g.id,rect:g.rect.current,data:g.data,disabled:g.disabled}:null,D={active:A,activatorEvent:Q,collisions:B,delta:{x:I.x,y:I.y},over:w};(0,Ao.unstable_batchedUpdates)(()=>{AG(w),null==E||E(D),U({type:"onDragOver",event:D})})},[AL]),S3(()=>{V.current={activatorEvent:H,active:S,activeNode:T,collisionRect:At,collisions:AU,droppableRects:b,draggableNodes:a,draggingNode:q,draggingNodeRect:_,droppableContainers:N,over:Ai,scrollableAncestors:AI,scrollAdjustedTranslate:AK},J.current={initial:_,translated:At}},[S,T,AU,At,a,q,_,b,N,Ai,AI,AK]),function(A){let{acceleration:Q,activator:B=Ag.Pointer,canScroll:C,draggingRect:I,enabled:E,interval:g=5,order:w=Aw.TreeOrder,pointerCoordinates:D,scrollableAncestors:c,scrollableAncestorRects:M,delta:s,threshold:y}=A,n=function(A){let{delta:Q,disabled:B}=A,C=S9(Q);return S2(A=>{if(B||!C||!A)return F0;let I={x:Math.sign(Q.x-C.x),y:Math.sign(Q.y-C.y)};return{x:{[AB.Backward]:A.x[AB.Backward]||-1===I.x,[AB.Forward]:A.x[AB.Forward]||1===I.x},y:{[AB.Backward]:A.y[AB.Backward]||-1===I.y,[AB.Forward]:A.y[AB.Forward]||1===I.y}}},[B,Q,C])}({delta:s,disabled:!E}),[h,k]=function(){let A=(0,Ak.useRef)(null);return[(0,Ak.useCallback)((Q,B)=>{A.current=setInterval(Q,B)},[]),(0,Ak.useCallback)(()=>{null!==A.current&&(clearInterval(A.current),A.current=null)},[])]}(),K=(0,Ak.useRef)({x:0,y:0}),t=(0,Ak.useRef)({x:0,y:0}),U=(0,Ak.useMemo)(()=>{switch(B){case Ag.Pointer:return D?{top:D.y,bottom:D.y,left:D.x,right:D.x}:null;case Ag.DraggableRect:return I}},[B,I,D]),L=(0,Ak.useRef)(null),i=(0,Ak.useCallback)(()=>{let A=L.current;if(!A)return;let Q=K.current.x*t.current.x,B=K.current.y*t.current.y;A.scrollBy(Q,B)},[]),G=(0,Ak.useMemo)(()=>w===Aw.TreeOrder?[...c].reverse():c,[w,c]);(0,Ak.useEffect)(()=>{if(!E||!c.length||!U){k();return}for(let A of G){if((null==C?void 0:C(A))===!1)continue;let B=M[c.indexOf(A)];if(!B)continue;let{direction:I,speed:E}=function(A,Q,B,C,I){let{top:E,left:g,right:w,bottom:D}=B;void 0===C&&(C=10),void 0===I&&(I=FH);let{isTop:c,isBottom:M,isLeft:s,isRight:y}=FY(A),n={x:0,y:0},h={x:0,y:0},k={height:Q.height*I.y,width:Q.width*I.x};return!c&&E<=Q.top+k.height?(n.y=AB.Backward,h.y=C*Math.abs((Q.top+k.height-E)/k.height)):!M&&D>=Q.bottom-k.height&&(n.y=AB.Forward,h.y=C*Math.abs((Q.bottom-k.height-D)/k.height)),!y&&w>=Q.right-k.width?(n.x=AB.Forward,h.x=C*Math.abs((Q.right-k.width-w)/k.width)):!s&&g<=Q.left+k.width&&(n.x=AB.Backward,h.x=C*Math.abs((Q.left+k.width-g)/k.width)),{direction:n,speed:h}}(A,B,U,Q,y);for(let A of["x","y"])n[A][I[A]]||(E[A]=0,I[A]=0);if(E.x>0||E.y>0){k(),L.current=A,h(i,g),K.current=E,t.current=I;return}}K.current={x:0,y:0},t.current={x:0,y:0},k()},[Q,i,C,k,E,g,JSON.stringify(U),JSON.stringify(n),h,c,G,M,JSON.stringify(y)])}({...O,delta:o,draggingRect:At,pointerCoordinates:As,scrollableAncestors:AI,scrollableAncestorRects:AE});let Ae=(0,Ak.useMemo)(()=>({active:S,activeNode:T,activeNodeRect:z,activatorEvent:H,collisions:AU,containerNodeRect:x,dragOverlay:X,draggableNodes:a,droppableContainers:N,droppableRects:b,over:Ai,measureDroppableContainers:m,scrollableAncestors:AI,scrollableAncestorRects:AE,measuringConfiguration:j,measuringScheduled:Z,windowRect:AC}),[S,T,z,H,AU,x,X,a,N,b,Ai,m,AI,AE,j,Z,AC]),AJ=(0,Ak.useMemo)(()=>({activatorEvent:H,activators:AN,active:S,activeNodeRect:z,ariaDescribedById:{draggable:u},dispatch:t,draggableNodes:a,over:Ai,measureDroppableContainers:m}),[H,AN,S,z,t,u,a,Ai,m]);return Ak.createElement(FM.Provider,{value:L},Ak.createElement(lw.Provider,{value:AJ},Ak.createElement(lD.Provider,{value:Ae},Ak.createElement(ln.Provider,{value:Ap},M)),Ak.createElement(ls,{disabled:(null==D?void 0:D.restoreFocus)===!1})),Ak.createElement(Fn,{...D,hiddenTextDescribedById:u}))}),lk=(0,Ak.createContext)(null),lK="button",lt={timeout:25};function lU(A){let{animation:Q,children:B}=A,[C,I]=(0,Ak.useState)(null),[E,g]=(0,Ak.useState)(null),w=S9(B);return B||C||!w||I(w),S3(()=>{if(!E)return;let A=null==C?void 0:C.key,B=null==C?void 0:C.props.id;if(null==A||null==B){I(null);return}Promise.resolve(Q(B,E)).then(()=>{I(null)})},[Q,C,E]),Ak.createElement(Ak.Fragment,null,B,C?(0,Ak.cloneElement)(C,{ref:g}):null)}let lL={x:0,y:0,scaleX:1,scaleY:1};function li(A){let{children:Q}=A;return Ak.createElement(lw.Provider,{value:lg},Ak.createElement(ln.Provider,{value:lL},Q))}let lG={position:"fixed",touchAction:"none"},lp=A=>FC(A)?"transform 250ms ease":void 0,lr=(0,Ak.forwardRef)((A,Q)=>{let{as:B,activatorEvent:C,adjustScale:I,children:E,className:g,rect:w,style:D,transform:c,transition:M=lp}=A;if(!w)return null;let s=I?c:{...c,scaleX:1,scaleY:1},y={...lG,width:w.width,height:w.height,top:w.top,left:w.left,transform:FE.Transform.toString(s),transformOrigin:I&&C?function(A,Q){let B=FI(A);if(!B)return"0 0";let C={x:(B.x-Q.left)/Q.width*100,y:(B.y-Q.top)/Q.height*100};return C.x+"% "+C.y+"%"}(C,w):void 0,transition:"function"==typeof M?M(C):M,...D};return Ak.createElement(B,{className:g,style:y,ref:Q},E)}),la={duration:250,easing:"ease",keyframes:A=>{let{transform:{initial:Q,final:B}}=A;return[{transform:FE.Transform.toString(Q)},{transform:FE.Transform.toString(B)}]},sideEffects:(g={styles:{active:{opacity:"0"}}},A=>{let{active:Q,dragOverlay:B}=A,C={},{styles:I,className:E}=g;if(null!=I&&I.active)for(let[A,B]of Object.entries(I.active))void 0!==B&&(C[A]=Q.node.style.getPropertyValue(A),Q.node.style.setProperty(A,B));if(null!=I&&I.dragOverlay)for(let[A,Q]of Object.entries(I.dragOverlay))void 0!==Q&&B.node.style.setProperty(A,Q);return null!=E&&E.active&&Q.node.classList.add(E.active),null!=E&&E.dragOverlay&&B.node.classList.add(E.dragOverlay),function(){for(let[A,B]of Object.entries(C))Q.node.style.setProperty(A,B);null!=E&&E.active&&Q.node.classList.remove(E.active)}})},lo=0,lN=Ak.memo(A=>{var Q;let{adjustScale:B=!1,children:C,dropAnimation:I,style:E,transition:g,modifiers:w,wrapperElement:D="div",className:c,zIndex:M=999}=A,{activatorEvent:s,active:y,activeNodeRect:n,containerNodeRect:h,draggableNodes:k,droppableContainers:K,dragOverlay:t,over:U,measuringConfiguration:L,scrollableAncestors:i,scrollableAncestorRects:G,windowRect:p}=(0,Ak.useContext)(lD),r=(0,Ak.useContext)(ln),a=(Q=null==y?void 0:y.id,(0,Ak.useMemo)(()=>{if(null!=Q)return++lo},[Q])),o=ly(w,{activatorEvent:s,active:y,activeNodeRect:n,containerNodeRect:h,draggingNodeRect:t.rect,over:U,overlayNodeRect:t.rect,scrollableAncestors:i,scrollableAncestorRects:G,transform:r,windowRect:p}),N=F3(n),e=function(A){let{config:Q,draggableNodes:B,droppableContainers:C,measuringConfiguration:I}=A;return S1((A,E)=>{if(null===Q)return;let g=B.get(A);if(!g)return;let w=g.node.current;if(!w)return;let D=lA(E);if(!D)return;let{transform:c}=Sq(E).getComputedStyle(E),M=FG(c);if(!M)return;let s="function"==typeof Q?Q:function(A){let{duration:Q,easing:B,sideEffects:C,keyframes:I}={...la,...A};return A=>{let{active:E,dragOverlay:g,transform:w,...D}=A;if(!Q)return;let c={x:g.rect.left-E.rect.left,y:g.rect.top-E.rect.top},M={scaleX:1!==w.scaleX?E.rect.width*w.scaleX/g.rect.width:1,scaleY:1!==w.scaleY?E.rect.height*w.scaleY/g.rect.height:1},s={x:w.x-c.x,y:w.y-c.y,...M},y=I({...D,active:E,dragOverlay:g,transform:{initial:w,final:s}}),[n]=y,h=y[y.length-1];if(JSON.stringify(n)===JSON.stringify(h))return;let k=null==C?void 0:C({active:E,dragOverlay:g,...D}),K=g.node.animate(y,{duration:Q,easing:B,fill:"forwards"});return new Promise(A=>{K.onfinish=()=>{null==k||k(),A()}})}}(Q);return Fd(w,I.draggable.measure),s({active:{id:A,data:g.data,node:w,rect:I.draggable.measure(w)},draggableNodes:B,dragOverlay:{node:E,rect:I.dragOverlay.measure(D)},droppableContainers:C,measuringConfiguration:I,transform:M})})}({config:I,draggableNodes:k,droppableContainers:K,measuringConfiguration:L}),J=N?t.setRef:void 0;return Ak.createElement(li,null,Ak.createElement(lU,{animation:e},y&&a?Ak.createElement(lr,{key:a,id:y.id,ref:J,as:D,activatorEvent:s,adjustScale:B,className:c,transition:g,rect:N,style:{zIndex:M,...E},transform:o},C):null))});function le(){return(0,Ak.forwardRef)((A,Q)=>{let{data:B,style:C,attributes:I,listeners:E,context:g,columns:w,rowSize:D="default",focusId:c,focusColor:M="default",getCellClassNames:s,getContentClassNames:y,className:n}=A;return(0,Ah.jsx)("tr",{ref:Q,...I,...E,style:C,id:B.id,"data-testid":B.id,onClick:B.onClick,className:(0,Qk.cx)("border-b",B.isSelected?["bg-blue-400 border-blue-500/30","dark:bg-blue-600/50 dark:border-blue-600/20"]:"border-gray-200/50 dark:border-graydark-100",B.onClick?"cursor-pointer":"",B.className,n),children:w.map((A,Q)=>{let{id:C,render:I,contentClassName:E,cellClassName:w,rowCellClassName:n,rowContentClassName:h}=A;return(0,Ah.jsx)("td",{"data-testid":C,className:(0,Qk.cx)(s(Q,(0,Qk.cx)(w,n),!1),c&&c===B.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===M?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===M?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===M?"!shadow-red-500 dark:!shadow-red-400":"","amber"===M?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===M?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,Ah.jsx)("div",{className:(0,Qk.cx)(y(Q,(0,Qk.cx)(E,h)),"dense"===D?"h-[50px]":"default"===D?"h-[100px]":""),children:(0,Ah.jsx)(I,{data:B,context:g})})},"".concat(C,"/").concat(B.id))})},B.id)})}function lJ(A){let{data:Q,context:B,columns:C,rowSize:I="default",focusId:E,focusColor:g="default",getCellClassNames:w,getContentClassNames:D}=A,{attributes:c,listeners:M,setNodeRef:s,transform:y}=function(A){let{id:Q,data:B,disabled:C=!1,attributes:I}=A,E=S7("Droppable"),{activators:g,activatorEvent:w,active:D,activeNodeRect:c,ariaDescribedById:M,draggableNodes:s,over:y}=(0,Ak.useContext)(lw),{role:n=lK,roleDescription:h="draggable",tabIndex:k=0}=null!=I?I:{},K=(null==D?void 0:D.id)===Q,t=(0,Ak.useContext)(K?ln:lk),[U,L]=S5(),[i,G]=S5(),p=(0,Ak.useMemo)(()=>g.reduce((A,B)=>{let{eventName:C,handler:I}=B;return A[C]=A=>{I(A,Q)},A},{}),[g,Q]),r=S4(B);return S3(()=>(s.set(Q,{id:Q,key:E,node:U,activatorNode:i,data:r}),()=>{let A=s.get(Q);A&&A.key===E&&s.delete(Q)}),[s,Q]),{active:D,activatorEvent:w,activeNodeRect:c,attributes:(0,Ak.useMemo)(()=>({role:n,tabIndex:k,"aria-disabled":C,"aria-pressed":!!K&&n===lK||void 0,"aria-roledescription":h,"aria-describedby":M.draggable}),[C,n,k,K,h,M.draggable]),isDragging:K,listeners:C?void 0:p,node:U,over:y,setNodeRef:L,setActivatorNodeRef:G,transform:t}}({id:Q.id}),n=y?{transform:"translate3d(".concat(y.x,"px, ").concat(y.y,"px, 0)")}:void 0,h=(0,Ak.useMemo)(()=>le(),[]);return(0,Ah.jsx)(h,{ref:s,style:n,attributes:c,listeners:M,data:Q,context:B,columns:C,rowSize:I,focusId:E,focusColor:g,getCellClassNames:w,getContentClassNames:D})}function lS(A){let{data:Q,context:B,columns:C,rowSize:I="default",focusId:E,focusColor:g="default",getCellClassNames:w,getContentClassNames:D}=A,{isOver:c,setNodeRef:M}=function(A){let{data:Q,disabled:B=!1,id:C,resizeObserverConfig:I}=A,E=S7("Droppable"),{active:g,dispatch:w,over:D,measureDroppableContainers:c}=(0,Ak.useContext)(lw),M=(0,Ak.useRef)({disabled:B}),s=(0,Ak.useRef)(!1),y=(0,Ak.useRef)(null),n=(0,Ak.useRef)(null),{disabled:h,updateMeasurementsFor:k,timeout:K}={...lt,...I},t=S4(null!=k?k:C),U=F1({callback:(0,Ak.useCallback)(()=>{if(!s.current){s.current=!0;return}null!=n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{c(Array.isArray(t.current)?t.current:[t.current]),n.current=null},K)},[K]),disabled:h||!g}),[L,i]=S5((0,Ak.useCallback)((A,Q)=>{U&&(Q&&(U.unobserve(Q),s.current=!1),A&&U.observe(A))},[U])),G=S4(Q);return(0,Ak.useEffect)(()=>{U&&L.current&&(U.disconnect(),s.current=!1,U.observe(L.current))},[L,U]),S3(()=>(w({type:AQ.RegisterDroppable,element:{id:C,key:E,disabled:B,node:L,rect:y,data:G}}),()=>w({type:AQ.UnregisterDroppable,key:E,id:C})),[C]),(0,Ak.useEffect)(()=>{B!==M.current.disabled&&(w({type:AQ.SetDroppableDisabled,id:C,key:E,disabled:B}),M.current.disabled=B)},[C,E,B,w]),{active:g,rect:y,isOver:(null==D?void 0:D.id)===C,node:L,over:D,setNodeRef:i}}({id:Q.id}),s=(0,Ak.useMemo)(()=>le(),[]);return(0,Ah.jsx)(s,{ref:M,className:c?"bg-blue-200/20 dark:bg-blue-300/20":"",data:Q,context:B,columns:C,rowSize:I,focusId:E,focusColor:g,getCellClassNames:w,getContentClassNames:D})}function lF(A){let{columns:Q,data:B,context:C={},sortField:I,sortDirection:E,sortableColumns:g,toggleSort:w,rowSize:D="default",pageSize:c,isLoading:M,emptyState:s,focusId:y,focusColor:n="default",onDragStart:h,onDragOver:k,onDragMove:K,onDragEnd:t,onDragCancel:U,draggingDatums:L,draggingMultipleLabel:i=A=>"Move selection (".concat(A,")"),testId:G}=A,p="emptyState";!M||(null==B?void 0:B.length)||(p="skeleton"),(null==B?void 0:B.length)&&(p="currentData");let r=(0,Ak.useCallback)((A,B,C)=>(0,Qk.cx)(0===A?"pl-6":"pl-4",A===Q.length-1?"pr-6":"pr-4",C?[0===A?"rounded-tl-lg":"",A===Q.length-1?"rounded-tr-lg":""]:"",B),[Q]),a=(0,Ak.useCallback)((A,Q)=>(0,Qk.cx)("flex items-center",Q),[]),o=(0,Ak.useMemo)(()=>le(),[]),N=function(){for(var A=arguments.length,Q=Array(A),B=0;B[...Q].filter(A=>null!=A),[...Q])}(Fk(Fq,{activationConstraint:{distance:10}}),Fk(F$,{activationConstraint:{delay:250,tolerance:5}})),e=(0,Ak.useMemo)(()=>Q.some(A=>{let{summary:Q}=A;return Q&&Q({context:C})}),[Q,C]);return(0,Ah.jsxs)(lh,{sensors:N,onDragStart:h,onDragOver:k,onDragMove:K,onDragEnd:t,onDragCancel:U,children:[(0,Ah.jsx)(lN,{children:L?1===L.length?(0,Ah.jsx)(Cg,{className:"inline-block",children:(0,Ah.jsx)("table",{children:(0,Ah.jsx)("tbody",{children:(0,Ah.jsx)(o,{className:"pointer-events-none",data:L[0],context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},L[0].id)})})}):(0,Ah.jsx)(Cg,{className:"inline-block py-2 px-4",children:(0,Ah.jsx)(CC,{children:i(L.length)})}):null}),(0,Ah.jsxs)(Cg,{children:[(0,Ah.jsxs)("table",{"data-testid":G,onMouseDown:A=>{A.shiftKey&&A.preventDefault()},"data-loading":"skeleton"===p,className:"relative z-10 table-auto border-collapse w-full",children:[(0,Ah.jsxs)("thead",{className:(0,Qk.cx)("sticky -top-px z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:[(0,Ah.jsx)("tr",{children:Q.map((A,Q)=>{let{id:B,icon:D,heading:c,label:M,tip:s,cellClassName:y,contentClassName:n}=A,h=(null==g?void 0:g.includes(B))&&!!w,k=I===B;return(0,Ah.jsx)("th",{"data-testid":B,className:(0,Qk.cx)(r(Q,y,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,Ah.jsx)("div",{className:"overflow-hidden py-3",children:(0,Ah.jsxs)("div",{onClick:()=>{h&&w(B)},className:(0,Qk.cx)(a(Q,n),h?"cursor-pointer":""),children:[c?(0,Ah.jsx)(c,{context:C}):null,(0,Ah.jsx)(cg,{content:s,children:(0,Ah.jsxs)(CC,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[D?(0,Ah.jsx)("div",{children:D}):null,(0,Ah.jsx)(CC,{ellipsis:!0,size:"12",weight:"medium",children:M})]})}),k&&(0,Ah.jsx)(CC,{color:"contrast",children:"asc"===E?(0,Ah.jsx)(cc.MR9,{className:"scale-75"}):(0,Ah.jsx)(cc.cRw,{className:"scale-75"})}),h&&!k&&(0,Ah.jsx)(CC,{color:"verySubtle",children:(0,Ah.jsx)(cc.MR9,{className:"scale-75"})})]})})},B)})}),e&&(0,Ah.jsx)("tr",{children:Q.map((A,Q)=>{let{id:B,cellClassName:I,contentClassName:E,summary:g}=A;return(0,Ah.jsx)("th",{"data-testid":B,className:(0,Qk.cx)(r(Q,I,!1),"border-b border-gray-400 dark:border-graydark-400","relative -top-px"),children:(0,Ah.jsx)("div",{className:"overflow-hidden py-3",children:(0,Ah.jsx)("div",{className:(0,Qk.cx)(a(Q,E)),children:g&&(0,Ah.jsx)(g,{context:C})})})},B)})})]}),(0,Ah.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:["currentData"===p&&(null==B?void 0:B.map(A=>(null==L?void 0:L.find(Q=>Q.id===A.id))?null:A.isDraggable?(0,Ah.jsx)(lJ,{data:A,context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},A.id):A.isDroppable?(0,Ah.jsx)(lS,{data:A,context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},A.id):(0,Ah.jsx)(o,{data:A,context:C,columns:Q,rowSize:D,focusId:y,focusColor:n,getCellClassNames:r,getContentClassNames:a},A.id))),"skeleton"===p&&Sh(c).map(A=>(0,Ah.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:Q.map((A,Q)=>{let{id:B,contentClassName:C,cellClassName:I}=A;return(0,Ah.jsx)("td",{className:r(Q,I,!1),children:(0,Ah.jsx)("div",{className:(0,Qk.cx)(a(Q,C),"dense"===D?"h-[50px]":"h-[100px]")})},"".concat(Q,"/").concat(B))})},A))]})]}),"emptyState"===p&&s]})]})}function ll(A){let{offset:Q,limit:B,total:C,isLoading:I}=A,E=(0,Ka.j0)();return(0,Ah.jsxs)(cu,{children:[(0,Ah.jsx)(cD,{"aria-label":"go to first page",icon:"contrast",disabled:Q<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>E.push({query:{...E.query,offset:0}}),children:(0,Ah.jsx)("div",{className:"flex scale-[0.65]",children:(0,Ah.jsx)(cc.XJM,{})})}),(0,Ah.jsx)(cD,{"aria-label":"go to previous page",icon:"contrast",disabled:Q<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>E.push({query:{...E.query,offset:Math.max(Q-B,0)}}),children:(0,Ah.jsx)(cc.bdU,{})}),(0,Ah.jsx)(cD,{state:"waiting",className:"rounded-none px-3",children:C>0?"".concat(Q+1," - ").concat(Math.min(Q+B,C)," of ").concat(C?C.toLocaleString():""):I?(0,Ah.jsx)(eW,{className:"px-2"}):"No results"}),(0,Ah.jsx)(cD,{"aria-label":"go to next page",icon:"contrast",disabled:Q+B>=C,size:"small",variant:"gray",className:"rounded-none",onClick:()=>E.push({query:{...E.query,offset:Math.min(Q+B,C)}}),children:(0,Ah.jsx)(cc.VUy,{})}),(0,Ah.jsx)(cD,{"aria-label":"go to last page",icon:"contrast",disabled:Q+B>=C,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>E.push({query:{...E.query,offset:Math.floor(C/B)*B}}),children:(0,Ah.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,Ah.jsx)(cc.RRj,{})})})]})}function lY(A){let{offset:Q,limit:B,pageTotal:C,isLoading:I}=A,E=(0,Ka.j0)();return(0,Ah.jsxs)(cu,{children:[(0,Ah.jsx)(cD,{"aria-label":"go to first page",icon:"contrast",disabled:Q<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>E.push({query:{...E.query,offset:0}}),children:(0,Ah.jsx)("div",{className:"flex scale-[0.65]",children:(0,Ah.jsx)(cc.XJM,{})})}),(0,Ah.jsx)(cD,{"aria-label":"go to previous page",icon:"contrast",disabled:Q<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>E.push({query:{...E.query,offset:Math.max(Q-B,0)}}),children:(0,Ah.jsx)(cc.bdU,{})}),I?(0,Ah.jsx)(cD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,Ah.jsx)(eW,{className:"px-2"})}):C?(0,Ah.jsxs)(cD,{className:"rounded-none px-3",state:"waiting",children:[Q+1," - ",Math.min(Q+B,Q+C)]}):(0,Ah.jsx)(cD,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,Ah.jsx)(cD,{"aria-label":"go to next page",icon:"contrast",disabled:!(C>=B),size:"small",variant:"gray",className:"rounded-none",onClick:()=>E.push({query:{...E.query,offset:Q+B}}),children:(0,Ah.jsx)(cc.VUy,{})})]})}function lH(){return(0,Ah.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.Hb6,{className:"scale-[200%]"})}),(0,Ah.jsx)(CC,{color:"subtle",className:"text-center max-w-[500px]",children:"No data matching filters."})]})}function lf(){return(0,Ah.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.NZ7,{className:"scale-[200%]"})}),(0,Ah.jsx)(CC,{color:"subtle",className:"text-center max-w-[500px]",children:"There is no data yet."})]})}function ld(A){let{error:Q}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.Ckx,{className:"scale-[200%]"})}),(0,Ah.jsx)(CC,{color:"subtle",className:"text-center max-w-[500px]",children:"Error loading data. Please try again later."})]})}function lu(){let A=(0,Ka.j0)(),Q=(0,Ak.useCallback)(()=>{A.push({query:{...A.query,offset:0,marker:void 0}})},[A]);return(0,Ah.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.UJc,{className:"scale-[200%]"})}),(0,Ah.jsx)(CC,{color:"subtle",className:"text-center max-w-[500px]",children:"No data on this page, reset pagination to continue."}),(0,Ah.jsx)(cD,{onClick:Q,children:"Back to first page"})]})}function lR(A){let{datasetState:Q,noneOnPage:B,noneMatching:C,noneYet:I,error:E}=A;return"noneOnPage"===Q?B||(0,Ah.jsx)(lu,{}):"noneMatchingFilters"===Q?C||(0,Ah.jsx)(lH,{}):"noneYet"===Q?I||(0,Ah.jsx)(lf,{}):"error"===Q?E||(0,Ah.jsx)(ld,{}):null}function lj(A){let{title:Q,nav:B,stats:C,actions:I,after:E}=A;return(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsxs)("div",{"data-testid":"navbar",className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[Q?"string"==typeof Q?(0,Ah.jsx)(CC,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:Q}):Q:null,(0,Ah.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,Ah.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 px-1 -mx-1 overflow-x-hidden",children:B}),(0,Ah.jsx)("div",{className:"flex gap-2 items-center h-full",children:I})]})]}),C&&(0,Ah.jsx)("div",{className:"flex items-center gap-2 px-6 py-2 h-14 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:C}),E]})}let lb=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAGsH//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABcQAQADAAAAAAAAAAAAAAAAAAEAITH/2gAIAQEAAT8hGsn/2gAMAwEAAgADAAAAEAP/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAYEAACAwAAAAAAAAAAAAAAAAAAAREhkf/aAAgBAQABPxB8K6f/2Q==",blurWidth:3,blurHeight:8})?{src:f}:f).src;function lm(A){let{children:Q}=A;return(0,Ah.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,Ah.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,Ah.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(lb,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,Ah.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),Q]})}function lZ(A){let{appName:Q,title:B,children:C}=A,I=B?"".concat(Q," - ").concat(B):Q;return(0,Ah.jsxs)(Ka.Fb,{children:[(0,Ah.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,Ah.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,Ah.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,Ah.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,Ah.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,Ah.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,Ah.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,Ah.jsx)("meta",{name:"theme-color",content:"#ffffff"}),C,(0,Ah.jsx)("title",{children:I})]})}function lT(A){let{appName:Q,title:B,children:C}=A;return(0,Ah.jsxs)("div",{className:"h-screen",children:[(0,Ah.jsx)(lZ,{appName:Q,title:B}),C]})}function lP(A){let{appName:Q,title:B,children:C,filters:I,actions:E}=A;return(0,Ah.jsxs)(lT,{appName:Q,title:B,children:[(0,Ah.jsx)(lm,{}),(0,Ah.jsx)("div",{className:"flex h-full",children:(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(lj,{nav:I,actions:E}),(0,Ah.jsx)("div",{className:"flex-1",children:(0,Ah.jsx)(cj,{className:"h-full",children:C})})]})})]})}function lO(A){let{side:Q,balanceSc:B,children:C}=A;return B?(0,Ah.jsx)(cg,{side:Q,content:(0,Ah.jsxs)("div",{className:"flex flex-col justify-center gap-2",children:[(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"spendable"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.spendable})})]}),B.immature&&(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"immature"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All confirmed but still locked outputs."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.unconfirmed})})]})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"confirmed"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All confirmed outputs."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.confirmed})})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,Ah.jsx)(CC,{size:"12",children:"unconfirmed"}),(0,Ah.jsx)(CC,{size:"12",color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,Ah.jsx)("div",{className:"flex justify-end",children:(0,Ah.jsx)(SD,{size:"12",displayBoth:!0,variant:"value",value:B.unconfirmed})})]})]}),children:(0,Ah.jsx)("div",{children:C})}):null}function lW(A){let{balanceSc:Q,isSynced:B,syncingMessage:C}=A;if(!Q)return null;let I=(0,Ah.jsx)(SD,{showTooltip:!1,value:Q.spendable.plus(Q.unconfirmed),variant:"value",size:"12",fixed:0,fixedFiat:0});return B?(0,Ah.jsx)(lO,{side:"right",balanceSc:Q,children:I}):(0,Ah.jsx)(cg,{side:"right",content:C||"Blockchain is syncing, balance may be incorrect.",children:(0,Ah.jsx)("div",{children:I})})}function lz(A){let{title:Q,children:B,route:C,onClick:I}=A,E=(0,Ka.jD)(),g=C&&("/"===C?E===C:null==E?void 0:E.startsWith(C));return C?(0,Ah.jsx)(Kb,{href:C,className:"no-underline",children:(0,Ah.jsx)(cg,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:Q,children:(0,Ah.jsx)(cD,{"aria-label":Q,icon:"contrast",size:"none",variant:"state","data-state":g?"open":"closed",onClick:I,children:B})})}):(0,Ah.jsx)(cg,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:Q,children:(0,Ah.jsx)(cD,{"aria-label":Q,icon:"contrast",size:"none",variant:"state","data-state":g?"open":"closed",onClick:I,children:B})})}function lx(A){let{walletBalanceSc:Q,isSynced:B,routes:C}=A;return(0,Ah.jsx)(lz,{title:"Wallet",route:C.wallet.view,children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,Ah.jsx)(cc.oaN,{}),B&&Q&&(0,Ah.jsx)(lW,{isSynced:B,balanceSc:Q})]})})}function lV(A){let{routes:Q,profile:B,isSynced:C,showWallet:I=!0,walletBalanceSc:E,lock:g,openSettings:w,children:D}=A;return(0,Ah.jsx)(Cg,{"data-testid":"sidenav",className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,Ah.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,Ah.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:B||(0,Ah.jsx)(KZ,{size:30})}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,Ah.jsx)("div",{className:"flex flex-col gap-6 items-center",children:D}),(0,Ah.jsx)("div",{className:"flex-1"}),(0,Ah.jsx)(Kc,{className:"w-full"}),I&&(0,Ah.jsx)(lx,{routes:Q,isSynced:C,walletBalanceSc:E}),(0,Ah.jsx)(lz,{title:"Blockchain node",route:Q.node.index,children:(0,Ah.jsx)(cc.kBK,{})}),(0,Ah.jsx)(lz,{title:"App preferences",onClick:()=>w(),children:(0,Ah.jsx)(cc.UG6,{})}),(0,Ah.jsx)(lz,{title:"Lock app",onClick:g,children:(0,Ah.jsx)(cc.mBM,{})})]})]})})}var lv=B(27429);function lX(A){let{appName:Q,title:B,navTitle:C,profile:I,size:E="4",banner:g,nav:w,actions:D,stats:c,after:M,dockedControls:s,children:y,sidenav:n,connectivityRoute:h,isSynced:k,showWallet:K,walletBalanceSc:t,routes:U,scroll:L=!0,openSettings:i}=A,{lock:G,settings:p}=(0,UQ.Hv)();return!function(A){let{lock:Q,route:B,routes:C}=A,{isConnected:I,isValidating:E}=function(A){let{route:Q}=A,B=(0,UQ.Nf)({route:Q,config:{swr:{refreshInterval:3e4}}});return{isConnected:!B.error,isValidating:B.isValidating}}({route:B}),{settings:g}=(0,UQ.Hv)(),w=(0,Ka.j0)();(0,Ak.useEffect)(()=>{if(E)return;let A=!w.asPath.startsWith(C.login),B=!g.password||!I;if(A&&B){Q();return}},[w,g.password,I,E])}({lock:G,route:h,routes:U}),!function(A){let{enabled:Q,lock:B,lockTimeout:C}=A,I=(0,Ak.useCallback)(()=>{B()},[B]);(0,lv.Yp)({disabled:!Q,onIdle:I,timeout:C,throttle:5e3,eventsThrottle:5e3})}({enabled:!!p.autoLock,lockTimeout:p.autoLockTimeout,lock:G}),(0,Ah.jsxs)(lT,{appName:Q,title:B,children:[(0,Ah.jsx)(lm,{}),(0,Ah.jsxs)("div",{className:"flex flex-col h-full w-full",children:[g,(0,Ah.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,Ah.jsx)(lV,{routes:U,profile:I,openSettings:i,lock:G,showWallet:K,walletBalanceSc:t,isSynced:k,children:n}),(0,Ah.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,Ah.jsx)(lj,{title:void 0===C?B:C,nav:w,actions:D,stats:c,after:M}),L?(0,Ah.jsx)(yN,{className:"z-0",children:(0,Ah.jsx)(cj,{size:E,pad:!1,children:(0,Ah.jsx)("div",{className:"flex flex-col gap-5",children:y})})}):(0,Ah.jsx)(cj,{size:E,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:y}),(0,Ah.jsx)("div",{className:"z-20 fixed bottom-5 left-0 right-0 flex justify-center dark pointer-events-none",children:s})]})]})]})]})}function lq(A){let{datasetPage:Q,isValidating:B,error:C,filters:I,offset:E,marker:g}=A,w=function(A){let{offset:Q,marker:B}=A;if(void 0!==B){if(B)return!1;if(null===B)return!0}return void 0===Q||!(Q>0)}({offset:E,marker:g}),[D,c]=(0,Ak.useState)();return(0,Ak.useEffect)(()=>{!B&&Q&&c(Q.length)},[B,Q,c]),(0,Ak.useMemo)(()=>C?"error":void 0===D||D>0&&!Q?"loading":0===D?w?I&&0!==I.length?"noneMatchingFilters":"noneYet":"noneOnPage":"loaded",[Q,D,C,I,w])}var l_=B(89644),l$=B.n(l_),l0=B(63955),l8=B(25079),l3=B(40871),l1=B(95849),l4=function(A){var Q=-1,B=Array(A.size);return A.forEach(function(A){B[++Q]=[A,A]}),B},l2=B(91139),l5=(d=l2.Z,function(A){var Q,B=(0,l3.Z)(A);return"[object Map]"==B?(0,l1.Z)(A):"[object Set]"==B?l4(A):(Q=d(A),(0,l8.Z)(Q,function(Q){return[Q,A[Q]]}))});function l9(A){let{form:Q,field:B,name:C}=A,I=Q.watch(C),E=Q.formState.touchedFields[C]&&!!Q.formState.errors[C],{ref:g,onChange:w}=Q.register(C,B.validation),D=(0,Ak.useCallback)(A=>{var C;w(A),null===(C=B.trigger)||void 0===C||C.forEach(A=>Q.trigger(A))},[w,Q,B]),c=(0,Ak.useCallback)(()=>{var A;Q.trigger(C),null===(A=B.trigger)||void 0===A||A.forEach(A=>Q.trigger(A))},[Q,B,C]),M=(0,Ak.useCallback)((A,I)=>{var E;Q.setValue(C,A,"boolean"==typeof I?I?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:I),null===(E=B.trigger)||void 0===E||E.forEach(A=>Q.trigger(A))},[C,Q,B]);return{ref:g,name:C,value:I,error:E,onBlur:c,onChange:D,setValue:M}}function l6(A){return(0,Ak.useCallback)(Q=>{J5({title:"Error",body:l5(Q).map(Q=>{let[B,C]=Q;return"".concat(A[B].title||B,": ").concat(null==C?void 0:C.message)}).join(", ")})},[A])}function l7(A){let{name:Q,form:B,fields:C,size:I="small",autoComplete:E,spellCheck:g,state:w=!0,group:D=!0,type:c}=A,M=C[Q],{ref:s,onChange:y,onBlur:n,error:h}=l9({name:Q,form:B,field:M}),k=(0,Ah.jsx)(td,{ref:s,name:Q,placeholder:M.placeholder,size:I,autoComplete:void 0!==E?E:M.autoComplete,type:c||M.type,readOnly:M.readOnly,spellCheck:g,onClick:M.onClick,state:w?h?"invalid":B.formState.dirtyFields[Q]?"valid":"default":"default",onChange:y,onBlur:n});return D?(0,Ah.jsx)(Sz,{title:M.title,actions:M.actions,name:Q,form:B,children:k}):k}var YA=B(38714),YQ=B(19678),YB=B(48465),YC=B(52059),YI=YQ.Z?YQ.Z.isConcatSpreadable:void 0,YE=function(A){return(0,YC.Z)(A)||(0,YB.Z)(A)||!!(YI&&A&&A[YI])},Yg=function A(Q,B,C,I,E){var g=-1,w=Q.length;for(C||(C=YE),E||(E=[]);++g0&&C(D)?B>1?A(D,B-1,C,I,E):(0,YA.Z)(E,D):I||(E[E.length]=D)}return E},Yw=B(5489),YD=B(27491),Yc=B(14735),YM=B(18226),Ys=function(A,Q){var B=-1,C=(0,YM.Z)(A)?Array(A.length):[];return(0,Yc.Z)(A,function(A,I,E){C[++B]=Q(A,I,E)}),C},Yy=function(A,Q){var B=A.length;for(A.sort(Q);B--;)A[B]=A[B].value;return A},Yn=B(9769),Yh=function(A,Q){if(A!==Q){var B=void 0!==A,C=null===A,I=A==A,E=(0,o6.Z)(A),g=void 0!==Q,w=null===Q,D=Q==Q,c=(0,o6.Z)(Q);if(!w&&!c&&!E&&A>Q||E&&g&&D&&!w&&!c||C&&g&&D||!B&&D||!I)return 1;if(!C&&!E&&!c&&A=w)return D;return D*("desc"==B[C]?-1:1)}}return A.index-Q.index},YK=function(A,Q,B){Q=Q.length?(0,l8.Z)(Q,function(A){return(0,YC.Z)(A)?function(Q){return(0,Yw.Z)(Q,1===A.length?A[0]:A)}:A}):[SM.Z];var C=-1;return Q=(0,l8.Z)(Q,(0,Yn.Z)(YD.Z)),Yy(Ys(A,function(A,B,I){return{criteria:(0,l8.Z)(Q,function(Q){return Q(A)}),index:++C,value:A}}),function(A,Q){return Yk(A,Q,B)})},Yt=function(A,Q,B){switch(B.length){case 0:return A.call(Q);case 1:return A.call(Q,B[0]);case 2:return A.call(Q,B[0],B[1]);case 3:return A.call(Q,B[0],B[1],B[2])}return A.apply(Q,B)},YU=Math.max,YL=B(54756),Yi=YL.Z?function(A,Q){return(0,YL.Z)(A,"toString",{configurable:!0,enumerable:!1,value:function(){return Q},writable:!0})}:SM.Z,YG=Date.now,Yp=(u=0,R=0,function(){var A=YG(),Q=16-(A-R);if(R=A,Q>0){if(++u>=800)return arguments[0]}else u=0;return Yi.apply(void 0,arguments)}),Yr=function(A,Q){var B,C;return Yp((B=Q,C=SM.Z,B=YU(void 0===B?A.length-1:B,0),function(){for(var Q=arguments,I=-1,E=YU(Q.length-B,0),g=Array(E);++I1&&YN(A,Q[0],Q[1])?Q=[]:B>2&&YN(Q[0],Q[1],Q[2])&&(Q=[Q[0]]),YK(A,Yg(Q,1),[])});async function YJ(A){let{api:Q,route:B,password:C}=A;try{return await l$().get("".concat(Q,"/api").concat(B),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(C))},timeout:1e4}),{}}catch(B){let A=B.code,Q=B.response;if((null==Q?void 0:Q.status)===504)return{error:"Error, check that daemon is running"};if((null==Q?void 0:Q.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===A)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function YS(A){let{appName:Q,route:B,routes:C}=A,I=(0,Ka.j0)(),{settings:E,setRequestSettings:g}=(0,UQ.Hv)(),{loginWithCustomApi:w}=E,D=(0,Ak.useMemo)(()=>({api:E.api,password:""}),[E.api]),c=(0,l0.cI)({mode:"onBlur",defaultValues:D});(0,Ak.useEffect)(()=>{c.clearErrors()},[w]);let M=(0,Ak.useCallback)(async A=>{let Q="";if(w){let B=new URL(A.api);Q="".concat(B.protocol,"//").concat(B.host)}let{error:M}=await YJ({api:Q,route:B,password:A.password});M?c.setError("password",{message:M}):(g({api:Q,password:A.password,recentApis:{...E.recentApis,[Q]:{lastUsed:new Date().getTime()}}}),I.push(I.query.prev?decodeURIComponent(I.query.prev):C.home),c.reset(D))},[w,c,I,C,E,g,D,B]),s=function(A){let{loginWithCustomApi:Q}=A;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:A=>!Q||!!A||"API is required",url:A=>{try{let Q=new URL(A);return!!Q.protocol&&!!Q.host||"invalid API URL"}catch(A){return"invalid API URL"}},https:A=>{let Q="https:"===window.location.protocol;return!Q||Q&&A.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({loginWithCustomApi:w}),y=l6(s),n=c.formState.errors.api||c.formState.errors.password,h=Ye(Object.entries(E.recentApis),A=>{let[Q,{lastUsed:B}]=A;return-B}).map(A=>{let[Q]=A;return Q});return(0,Ah.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,Ah.jsx)(Cg,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,Ah.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,Ah.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ah.jsx)(CC,{font:"mono",weight:"bold",size:"20",children:Q}),(0,Ah.jsx)(Ki,{label:"login settings",trigger:(0,Ah.jsx)(cD,{icon:"hover",variant:"ghost",children:(0,Ah.jsx)(cc.shL,{})}),children:(0,Ah.jsx)(KG,{onSelect:()=>g({loginWithCustomApi:!w}),children:w?"Hide custom API":"Show custom API"})})]}),(0,Ah.jsx)(Kc,{className:"w-full mt-2 mb-3"}),(0,Ah.jsx)("form",{onSubmit:c.handleSubmit(M,y),children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-1.5",children:[w?(0,Ah.jsxs)(cu,{children:[(0,Ah.jsx)(l7,{name:"api",form:c,fields:s,group:!1}),h.length>1&&(0,Ah.jsx)(Ki,{trigger:(0,Ah.jsx)(cD,{type:"button",children:(0,Ah.jsx)(cc.wGX,{})}),children:h.map(A=>(0,Ah.jsx)(KG,{onSelect:()=>c.setValue("api",A),children:A},A))})]}):null,(0,Ah.jsx)(l7,{name:"password",form:c,fields:s,group:!1}),n&&(0,Ah.jsx)(CC,{size:"14",color:"red",children:n.message}),(0,Ah.jsx)(Sx,{size:"small",form:c,children:"Unlock"})]})})]})})})}function YF(A){let{name:Q,form:B,fields:C,size:I="medium",group:E=!0,before:g,children:w}=A,D=C[Q],{setValue:c,onBlur:M,value:s,error:y}=l9({name:Q,field:D,form:B}),n=(0,Ah.jsxs)("div",{className:"flex gap-1 items-center",children:[g,(0,Ah.jsx)(UF,{"aria-label":Q,name:Q,size:I,checked:s,state:y?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onCheckedChange:A=>{c(A,!0)},onBlur:M}),w]});return E?(0,Ah.jsx)(Sz,{title:D.title,name:Q,form:B,className:"pb-[1.5px]",children:n}):n}function Yl(A){let{name:Q,form:B,fields:C,size:I="small",group:E=!0}=A,g=C[Q],{placeholder:w,average:D,suggestion:c,units:M,decimalsLimitSc:s=6,decimalsLimitFiat:y=6,showFiat:n}=g,{setValue:h,onBlur:k,value:K,error:t}=l9({name:Q,field:g,form:B}),U=(0,Ak.useMemo)(()=>w?new(t6())(w):c&&"boolean"!=typeof c?new(t6())(c):D&&"boolean"!=typeof D?new(t6())(D):void 0,[w,c,D]),L=(0,Ah.jsx)(UB,{name:Q,size:I,sc:K,units:M,showFiat:n,decimalsLimitSc:s,decimalsLimitFiat:y,readOnly:g.readOnly,error:t,changed:B.formState.dirtyFields[Q],placeholder:U,onChange:A=>{h(A,!0)},onBlur:k});return E?(0,Ah.jsx)(Sz,{title:g.title,name:Q,form:B,children:L}):L}function YY(A){let{activeStep:Q,steps:B,onChange:C}=A,I=B.findIndex(A=>A.id===Q),E=B.length-1;return(0,Ah.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,Ah.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,Ah.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(I/E*100,"%")}}),B.map((A,B)=>{let{id:g,label:w}=A,D=Q===g,c=I>=B,M=B===E,s=0===B,y=c&&I!==E;return(0,Ah.jsxs)("div",{className:(0,Qk.cx)("absolute h-2 w-2 -top-0.5",y?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(B/E*100,"% - ").concat(M?8:s?0:4,"px)")},onClick:()=>{y&&C(g)},children:[(0,Ah.jsx)(CC,{color:D?"contrast":"verySubtle",className:(0,Qk.cx)("absolute top-[-30px]",s?"left-0":"",M?"right-0":"",s||M?"":"-translate-x-1/2"),noWrap:!0,children:w}),(0,Ah.jsx)("div",{className:(0,Qk.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",c?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",c?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),D&&(0,Ah.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},g)})]})}function YH(A){let{form:Q,onOpenChange:B,defaultValues:C,initKey:I}=A,E=(0,Ak.useCallback)(()=>{Q.reset(C)},[Q,C]),g=(0,Ak.useCallback)(()=>{B(!1),Q.reset(C)},[Q,B,C]),w=(0,Ak.useCallback)(A=>{A?(B(!0),setTimeout(()=>{E()},0)):g()},[g,E,B]),D=function(A){let[Q,B]=(0,Ak.useState)(A);return(0,Ak.useEffect)(()=>{if(!A||!A.length)return;let C=!1;for(let B=0;B{D&&D.length&&D.every(A=>!!A)&&E()},[D]),{reset:E,closeAndReset:g,handleOpenChange:w}}new(t6())(0);let Yf={address:""},Yd={address:{type:"text",title:"Address",placeholder:"host.acme.com:9981 or 127.0.0.1:9981",autoComplete:"off",validation:{required:"required"}}};function Yu(A){let{trigger:Q,open:B,connect:C,onOpenChange:I}=A,E=(0,l0.cI)({mode:"all",defaultValues:Yf}),{handleOpenChange:g,closeAndReset:w}=YH({form:E,onOpenChange:I,defaultValues:Yf}),D=(0,Ak.useCallback)(async A=>{let Q=await C(A.address);Q.error?J5({title:Q.error}):(J2({title:"Connected to peer"}),w())},[w,C]);return(0,Ah.jsx)(yS,{trigger:Q,title:"Connect peer",description:"Connect to a peer by IP address.",open:B,onOpenChange:g,contentVariants:{className:"w-[400px]"},onSubmit:E.handleSubmit(D),controls:(0,Ah.jsx)("div",{className:"px-1",children:(0,Ah.jsx)(Sx,{form:E,size:"medium",className:"w-full",children:"Connect"})}),children:(0,Ah.jsx)("div",{className:"flex flex-col gap-4",children:(0,Ah.jsx)(l7,{form:E,fields:Yd,name:"address",size:"medium"})})})}var YR=B(78435),Yj=B.n(YR),Yb=function(A){var Q;return!!A&&"object"==typeof A&&"[object RegExp]"!==(Q=Object.prototype.toString.call(A))&&"[object Date]"!==Q&&A.$$typeof!==Ym},Ym="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function YZ(A,Q){return!1!==Q.clone&&Q.isMergeableObject(A)?YP(Array.isArray(A)?[]:{},A,Q):A}function YT(A,Q,B){return A.concat(Q).map(function(A){return YZ(A,B)})}function YP(A,Q,B){(B=B||{}).arrayMerge=B.arrayMerge||YT,B.isMergeableObject=B.isMergeableObject||Yb;var C,I,E=Array.isArray(Q);return E!==Array.isArray(A)?YZ(Q,B):E?B.arrayMerge(A,Q,B):(I={},(C=B).isMergeableObject(A)&&Object.keys(A).forEach(function(Q){I[Q]=YZ(A[Q],C)}),Object.keys(Q).forEach(function(B){C.isMergeableObject(Q[B])&&A[B]?I[B]=YP(A[B],Q[B],C):I[B]=YZ(Q[B],C)}),I)}YP.all=function(A,Q){if(!Array.isArray(A))throw Error("first argument should be an array");return A.reduce(function(A,B){return YP(A,B,Q)},{})};var YO=B(23782),YW=function(A,Q){for(var B=-1,C=null==A?0:A.length;++B=0||(I[B]=A[B]);return I}function HR(A){if(void 0===A)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return A}B(73463);var Hj=function(A){return Array.isArray(A)&&0===A.length};function Hb(A,Q,B,C){void 0===C&&(C=0);for(var I=HH(Q);A&&C=0?[]:{}}}return(0===E?A:I)[g[E]]===B?A:(void 0===B?delete I[g[E]]:I[g[E]]=B,0===E&&void 0===B&&delete C[g[E]],C)}var HZ=(0,Ak.createContext)(void 0);HZ.displayName="FormikContext",HZ.Provider,HZ.Consumer,"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Ak.useLayoutEffect:Ak.useEffect,(0,Ak.forwardRef)(function(A,Q){var B,C=A.action,I=Hu(A,["action"]),E=((B=(0,Ak.useContext)(HZ))||Hf(!1),B),g=E.handleReset,w=E.handleSubmit;return(0,Ak.createElement)("form",Object.assign({onSubmit:w,ref:Q,onReset:g,action:null!=C?C:"#"},I))}).displayName="Form";var HT=function(A,Q,B){var C=Hz(A),I=C[Q];return C.splice(Q,1),C.splice(B,0,I),C},HP=function(A,Q,B){var C=Hz(A),I=C[Q];return C[Q]=C[B],C[B]=I,C},HO=function(A,Q,B){var C=Hz(A);return C.splice(Q,0,B),C},HW=function(A,Q,B){var C=Hz(A);return C[Q]=B,C},Hz=function(A){if(!A)return[];if(Array.isArray(A))return[].concat(A);var Q=Object.keys(A).map(function(A){return parseInt(A)}).reduce(function(A,Q){return Q>A?Q:A},0);return Array.from(Hd({},A,{length:Q+1}))};(function(A){function Q(Q){var B;return(B=A.call(this,Q)||this).updateArrayField=function(A,Q,C){var I=B.props,E=I.name;(0,I.formik.setFormikState)(function(B){var I=Hm(B.values,E,A(Hb(B.values,E))),g=C?("function"==typeof C?C:A)(Hb(B.errors,E)):void 0,w=Q?("function"==typeof Q?Q:A)(Hb(B.touched,E)):void 0;return Hj(g)&&(g=void 0),Hj(w)&&(w=void 0),Hd({},B,{values:I,errors:C?Hm(B.errors,E,g):B.errors,touched:Q?Hm(B.touched,E,w):B.touched})})},B.push=function(A){return B.updateArrayField(function(Q){return[].concat(Hz(Q),[HS(A,5)])},!1,!1)},B.handlePush=function(A){return function(){return B.push(A)}},B.swap=function(A,Q){return B.updateArrayField(function(B){return HP(B,A,Q)},!0,!0)},B.handleSwap=function(A,Q){return function(){return B.swap(A,Q)}},B.move=function(A,Q){return B.updateArrayField(function(B){return HT(B,A,Q)},!0,!0)},B.handleMove=function(A,Q){return function(){return B.move(A,Q)}},B.insert=function(A,Q){return B.updateArrayField(function(B){return HO(B,A,Q)},function(Q){return HO(Q,A,null)},function(Q){return HO(Q,A,null)})},B.handleInsert=function(A,Q){return function(){return B.insert(A,Q)}},B.replace=function(A,Q){return B.updateArrayField(function(B){return HW(B,A,Q)},!1,!1)},B.handleReplace=function(A,Q){return function(){return B.replace(A,Q)}},B.unshift=function(A){var Q=-1;return B.updateArrayField(function(B){var C=B?[A].concat(B):[A];return Q<0&&(Q=C.length),C},function(A){var B=A?[null].concat(A):[null];return Q<0&&(Q=B.length),B},function(A){var B=A?[null].concat(A):[null];return Q<0&&(Q=B.length),B}),Q},B.handleUnshift=function(A){return function(){return B.unshift(A)}},B.handleRemove=function(A){return function(){return B.remove(A)}},B.handlePop=function(){return function(){return B.pop()}},B.remove=B.remove.bind(HR(B)),B.pop=B.pop.bind(HR(B)),B}Q.prototype=Object.create(A.prototype),Q.prototype.constructor=Q,Q.__proto__=A;var B=Q.prototype;return B.componentDidUpdate=function(A){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Yj()(Hb(A.formik.values,A.name),Hb(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},B.remove=function(A){var Q;return this.updateArrayField(function(B){var C=B?Hz(B):[];return Q||(Q=C[A]),"function"==typeof C.splice&&C.splice(A,1),C},!0,!0),Q},B.pop=function(){var A;return this.updateArrayField(function(Q){return A||(A=Q&&Q.pop&&Q.pop()),Q},!0,!0),A},B.render=function(){var A={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},Q=this.props,B=Q.component,C=Q.render,I=Q.children,E=Q.name,g=Hu(Q.formik,["validate","validationSchema"]),w=Hd({},A,{form:g,name:E});return B?(0,Ak.createElement)(B,w):C?C(w):I?"function"==typeof I?I(w):0===Ak.Children.count(I)?null:Ak.Children.only(I):null},Q})(Ak.Component).defaultProps={validateOnChange:!0};try{As=Map}catch(A){}try{Ay=Set}catch(A){}function Hx(A){return function A(Q,B,C){if(!Q||"object"!=typeof Q||"function"==typeof Q)return Q;if(Q.nodeType&&"cloneNode"in Q)return Q.cloneNode(!0);if(Q instanceof Date)return new Date(Q.getTime());if(Q instanceof RegExp)return new RegExp(Q);if(Array.isArray(Q))return Q.map(Hx);if(As&&Q instanceof As)return new Map(Array.from(Q.entries()));if(Ay&&Q instanceof Ay)return new Set(Array.from(Q.values()));if(Q instanceof Object){B.push(Q);var I=Object.create(Q);for(var E in C.push(I),Q){var g=B.findIndex(function(A){return A===Q[E]});I[E]=g>-1?C[g]:A(Q[E],B,C)}return I}return Q}(A,[],[])}let HV=Object.prototype.toString,Hv=Error.prototype.toString,HX=RegExp.prototype.toString,Hq="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",H_=/^Symbol\((.*)\)(.*)$/;function H$(A,Q=!1){if(null==A||!0===A||!1===A)return""+A;let B=typeof A;if("number"===B)return A!=+A?"NaN":0===A&&1/A<0?"-0":""+A;if("string"===B)return Q?`"${A}"`:A;if("function"===B)return"[Function "+(A.name||"anonymous")+"]";if("symbol"===B)return Hq.call(A).replace(H_,"Symbol($1)");let C=HV.call(A).slice(8,-1);return"Date"===C?isNaN(A.getTime())?""+A:A.toISOString(A):"Error"===C||A instanceof Error?"["+Hv.call(A)+"]":"RegExp"===C?HX.call(A):null}function H0(A,Q){let B=H$(A,Q);return null!==B?B:JSON.stringify(A,function(A,B){let C=H$(this[A],Q);return null!==C?C:B},2)}let H8={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:A,type:Q,value:B,originalValue:C})=>{let I=null!=C&&C!==B,E=`${A} must be a \`${Q}\` type, but the final value was: \`${H0(B,!0)}\``+(I?` (cast from the value \`${H0(C,!0)}\`).`:".");return null===B&&(E+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),E},defined:"${path} must be defined"},H3={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"},H1={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"},H4={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},H2={isValue:"${path} field must be ${value}"},H5={noUnknown:"${path} field has unspecified keys: ${unknown}"},H9={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:H8,string:H3,number:H1,date:H4,object:H5,array:H9,boolean:H2});var H6=B(93352),H7=B.n(H6),fA=A=>A&&A.__isYupSchema__;class fQ{constructor(A,Q){if(this.fn=void 0,this.refs=A,this.refs=A,"function"==typeof Q){this.fn=Q;return}if(!H7()(Q,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!Q.then&&!Q.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:B,then:C,otherwise:I}=Q,E="function"==typeof B?B:(...A)=>A.every(A=>A===B);this.fn=function(...A){let Q=A.pop(),B=A.pop(),g=E(...A)?C:I;if(g)return"function"==typeof g?g(B):B.concat(g.resolve(Q))}}resolve(A,Q){let B=this.refs.map(A=>A.getValue(null==Q?void 0:Q.value,null==Q?void 0:Q.parent,null==Q?void 0:Q.context)),C=this.fn.apply(A,B.concat(A,Q));if(void 0===C||C===A)return A;if(!fA(C))throw TypeError("conditions must return a schema object");return C.resolve(Q)}}function fB(A){return null==A?[]:[].concat(A)}function fC(){return(fC=Object.assign||function(A){for(var Q=1;QH0(Q[B])):"function"==typeof A?A(Q):A}static isError(A){return A&&"ValidationError"===A.name}constructor(A,Q,B,C){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=Q,this.path=B,this.type=C,this.errors=[],this.inner=[],fB(A).forEach(A=>{fE.isError(A)?(this.errors.push(...A.errors),this.inner=this.inner.concat(A.inner.length?A.inner:A)):this.errors.push(A)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,fE)}}let fg=A=>{let Q=!1;return(...B)=>{Q||(Q=!0,A(...B))}};function fw(A,Q){let{endEarly:B,tests:C,args:I,value:E,errors:g,sort:w,path:D}=A,c=fg(Q),M=C.length,s=[];if(g=g||[],!M)return g.length?c(new fE(g,E,D)):c(null,E);for(let A=0;A=0||(I[B]=A[B]);return I}(Q,["value","path","label","options","originalValue","sync"]),{name:s,test:y,params:n,message:h}=A,{parent:k,context:K}=w;function t(A){return fn.isRef(A)?A.getValue(I,k,K):A}function U(A={}){let Q=fc()(fh({value:I,originalValue:D,label:g,path:A.path||E},n,A.params),t),B=new fE(fE.formatError(A.message||h,Q),I,Q.path,A.type||s);return B.params=Q,B}let L=fh({path:E,parent:k,type:s,createError:U,resolve:t,options:w,originalValue:D},M);if(!c){try{Promise.resolve(y.call(L,I,L)).then(A=>{fE.isError(A)?B(A):A?B(null,A):B(U())}).catch(B)}catch(A){B(A)}return}try{var i;if(C=y.call(L,I,L),"function"==typeof(null==(i=C)?void 0:i.then))throw Error(`Validation test of type: "${L.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(A){B(A);return}fE.isError(C)?B(C):C?B(null,C):B(U())}return Q.OPTIONS=A,Q}fn.prototype.__isYupRef=!0;let fK=A=>A.substr(0,A.length-1).substr(1);class ft{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 A=[];for(let Q of this.list)A.push(Q);for(let[,Q]of this.refs)A.push(Q.describe());return A}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(A){return this.toArray().reduce((Q,B)=>Q.concat(fn.isRef(B)?A(B):B),[])}add(A){fn.isRef(A)?this.refs.set(A.key,A):this.list.add(A)}delete(A){fn.isRef(A)?this.refs.delete(A.key):this.list.delete(A)}clone(){let A=new ft;return A.list=new Set(this.list),A.refs=new Map(this.refs),A}merge(A,Q){let B=this.clone();return A.list.forEach(A=>B.add(A)),A.refs.forEach(A=>B.add(A)),Q.list.forEach(A=>B.delete(A)),Q.refs.forEach(A=>B.delete(A)),B}}function fU(){return(fU=Object.assign||function(A){for(var Q=1;Q{this.typeError(H8.notType)}),this.type=(null==A?void 0:A.type)||"mixed",this.spec=fU({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==A?void 0:A.spec)}get _type(){return this.type}_typeCheck(A){return!0}clone(A){if(this._mutate)return A&&Object.assign(this.spec,A),this;let Q=Object.create(Object.getPrototypeOf(this));return Q.type=this.type,Q._typeError=this._typeError,Q._whitelistError=this._whitelistError,Q._blacklistError=this._blacklistError,Q._whitelist=this._whitelist.clone(),Q._blacklist=this._blacklist.clone(),Q.exclusiveTests=fU({},this.exclusiveTests),Q.deps=[...this.deps],Q.conditions=[...this.conditions],Q.tests=[...this.tests],Q.transforms=[...this.transforms],Q.spec=Hx(fU({},this.spec,A)),Q}label(A){let Q=this.clone();return Q.spec.label=A,Q}meta(...A){if(0===A.length)return this.spec.meta;let Q=this.clone();return Q.spec.meta=Object.assign(Q.spec.meta||{},A[0]),Q}withMutation(A){let Q=this._mutate;this._mutate=!0;let B=A(this);return this._mutate=Q,B}concat(A){if(!A||A===this)return this;if(A.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${A.type}`);let Q=A.clone(),B=fU({},this.spec,Q.spec);return Q.spec=B,Q._typeError||(Q._typeError=this._typeError),Q._whitelistError||(Q._whitelistError=this._whitelistError),Q._blacklistError||(Q._blacklistError=this._blacklistError),Q._whitelist=this._whitelist.merge(A._whitelist,A._blacklist),Q._blacklist=this._blacklist.merge(A._blacklist,A._whitelist),Q.tests=this.tests,Q.exclusiveTests=this.exclusiveTests,Q.withMutation(Q=>{A.tests.forEach(A=>{Q.test(A.OPTIONS)})}),Q.transforms=[...this.transforms,...Q.transforms],Q}isType(A){return!!this.spec.nullable&&null===A||this._typeCheck(A)}resolve(A){let Q=this;if(Q.conditions.length){let B=Q.conditions;(Q=Q.clone()).conditions=[],Q=(Q=B.reduce((Q,B)=>B.resolve(Q,A),Q)).resolve(A)}return Q}cast(A,Q={}){let B=this.resolve(fU({value:A},Q)),C=B._cast(A,Q);if(void 0!==A&&!1!==Q.assert&&!0!==B.isType(C)){let I=H0(A),E=H0(C);throw TypeError(`The value of ${Q.path||"field"} could not be cast to a value that satisfies the schema type: "${B._type}". attempted value: ${I} -`+(E!==I?`result of cast: ${E}`:""))}return C}_cast(A,Q){let B=void 0===A?A:this.transforms.reduce((Q,B)=>B.call(this,Q,A,this),A);return void 0===B&&(B=this.getDefault()),B}_validate(A,Q={},B){let{sync:C,path:I,from:E=[],originalValue:g=A,strict:w=this.spec.strict,abortEarly:D=this.spec.abortEarly}=Q,c=A;w||(c=this._cast(c,fy({assert:!1},Q)));let M={value:c,path:I,options:Q,originalValue:g,schema:this,label:this.spec.label,sync:C,from:E},s=[];this._typeError&&s.push(this._typeError);let y=[];this._whitelistError&&y.push(this._whitelistError),this._blacklistError&&y.push(this._blacklistError),fQ({args:M,value:c,path:I,sync:C,tests:s,endEarly:D},A=>{if(A)return void B(A,c);fQ({tests:this.tests.concat(y),args:M,path:I,sync:C,value:c,endEarly:D},B)})}validate(A,Q,B){let C=this.resolve(fy({},Q,{value:A}));return"function"==typeof B?C._validate(A,Q,B):new Promise((B,I)=>C._validate(A,Q,(A,Q)=>{A?I(A):B(Q)}))}validateSync(A,Q){let B;return this.resolve(fy({},Q,{value:A}))._validate(A,fy({},Q,{sync:!0}),(A,Q)=>{if(A)throw A;B=Q}),B}isValid(A,Q){return this.validate(A,Q).then(()=>!0,A=>{if(H7.isError(A))return!1;throw A})}isValidSync(A,Q){try{return this.validateSync(A,Q),!0}catch(A){if(H7.isError(A))return!1;throw A}}_getDefault(){let A=this.spec.default;return null==A?A:"function"==typeof A?A.call(this):HZ(A)}getDefault(A){return this.resolve(A||{})._getDefault()}default(A){return 0==arguments.length?this._getDefault():this.clone({default:A})}strict(A=!0){let Q=this.clone();return Q.spec.strict=A,Q}_isPresent(A){return null!=A}defined(A=Hv.defined){return this.test({message:A,name:"defined",exclusive:!0,test:A=>void 0!==A})}required(A=Hv.required){return this.clone({presence:"required"}).withMutation(Q=>Q.test({message:A,name:"required",exclusive:!0,test(A){return this.schema._isPresent(A)}}))}notRequired(){let A=this.clone({presence:"optional"});return A.tests=A.tests.filter(A=>"required"!==A.OPTIONS.name),A}nullable(A=!0){return this.clone({nullable:!1!==A})}transform(A){let Q=this.clone();return Q.transforms.push(A),Q}test(...A){let Q;if(void 0===(Q=1===A.length?"function"==typeof A[0]?{test:A[0]}:A[0]:2===A.length?{name:A[0],test:A[1]}:{name:A[0],message:A[1],test:A[2]}).message&&(Q.message=Hv.default),"function"!=typeof Q.test)throw TypeError("`test` is a required parameters");let B=this.clone(),C=fD(Q),I=Q.exclusive||Q.name&&!0===B.exclusiveTests[Q.name];if(Q.exclusive&&!Q.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return Q.name&&(B.exclusiveTests[Q.name]=!!Q.exclusive),B.tests=B.tests.filter(A=>A.OPTIONS.name!==Q.name||!I&&A.OPTIONS.test!==C.OPTIONS.test),B.tests.push(C),B}when(A,Q){Array.isArray(A)||"string"==typeof A||(Q=A,A=".");let B=this.clone(),C=H5(A).map(A=>new fg(A));return C.forEach(A=>{A.isSibling&&B.deps.push(A.key)}),B.conditions.push(new H2(C,Q)),B}typeError(A){let Q=this.clone();return Q._typeError=fD({message:A,name:"typeError",test(A){return!!(void 0===A||this.schema.isType(A))||this.createError({params:{type:this.schema._type}})}}),Q}oneOf(A,Q=Hv.oneOf){let B=this.clone();return A.forEach(A=>{B._whitelist.add(A),B._blacklist.delete(A)}),B._whitelistError=fD({message:Q,name:"oneOf",test(A){if(void 0===A)return!0;let Q=this.schema._whitelist,B=Q.resolveAll(this.resolve);return!!B.includes(A)||this.createError({params:{values:Q.toArray().join(", "),resolved:B}})}}),B}notOneOf(A,Q=Hv.notOneOf){let B=this.clone();return A.forEach(A=>{B._blacklist.add(A),B._whitelist.delete(A)}),B._blacklistError=fD({message:Q,name:"notOneOf",test(A){let Q=this.schema._blacklist,B=Q.resolveAll(this.resolve);return!B.includes(A)||this.createError({params:{values:Q.toArray().join(", "),resolved:B}})}}),B}strip(A=!0){let Q=this.clone();return Q.spec.strip=A,Q}describe(){let A=this.clone(),{label:Q,meta:B}=A.spec;return{meta:B,label:Q,type:A.type,oneOf:A._whitelist.describe(),notOneOf:A._blacklist.describe(),tests:A.tests.map(A=>({name:A.OPTIONS.name,params:A.OPTIONS.params})).filter((A,Q,B)=>B.findIndex(Q=>Q.name===A.name)===Q)}}}for(let A of(fn.prototype.__isYupSchema__=!0,["validate","validateSync"]))fn.prototype[`${A}At`]=function(Q,B,C={}){let{parent:I,parentPath:E,schema:g}=function(A,Q,B,C=B){let I,E,g;return Q?((0,fI.forEach)(Q,(w,D,c)=>{let M=D?fc(w):w;if((A=A.resolve({context:C,parent:I,value:B})).innerType){let C=c?parseInt(M,10):0;if(B&&C>=B.length)throw Error(`Yup.reach cannot resolve an array item at index: ${w}, in the path: ${Q}. because there is no value at that index. `);I=B,B=B&&B[C],A=A.innerType}if(!c){if(!A.fields||!A.fields[M])throw Error(`The schema does not contain the path: ${Q}. (failed at: ${g} which is a type: "${A._type}")`);I=B,B=B&&B[M],A=A.fields[M]}E=M,g=D?"["+w+"]":"."+w}),{schema:A,parent:I,parentPath:E}):{parent:I,parentPath:Q,schema:A}}(this,Q,B,C.context);return g[A](I&&I[E],fy({},C,{parent:I,path:Q}))};for(let A of["equals","is"])fn.prototype[A]=fn.prototype.oneOf;for(let A of["not","nope"])fn.prototype[A]=fn.prototype.notOneOf;fn.prototype.optional=fn.prototype.notRequired,fn.prototype;var fh=A=>null==A;class fk extends fn{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(A){if(!this.isType(A)){if(/^(true|1)$/i.test(String(A)))return!0;if(/^(false|0)$/i.test(String(A)))return!1}return A})})}_typeCheck(A){return A instanceof Boolean&&(A=A.valueOf()),"boolean"==typeof A}isTrue(A=H$.isValue){return this.test({message:A,name:"is-value",exclusive:!0,params:{value:"true"},test:A=>fh(A)||!0===A})}isFalse(A=H$.isValue){return this.test({message:A,name:"is-value",exclusive:!0,params:{value:"false"},test:A=>fh(A)||!1===A})}}fk.prototype;let fK=/^((([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,ft=/^((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,fU=/^(?:[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,fL=A=>fh(A)||A===A.trim(),fi=({}).toString();function fG(){return new fp}class fp extends fn{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(A){if(this.isType(A)||Array.isArray(A))return A;let Q=null!=A&&A.toString?A.toString():A;return Q===fi?A:Q})})}_typeCheck(A){return A instanceof String&&(A=A.valueOf()),"string"==typeof A}_isPresent(A){return super._isPresent(A)&&!!A.length}length(A,Q=HX.length){return this.test({message:Q,name:"length",exclusive:!0,params:{length:A},test(Q){return fh(Q)||Q.length===this.resolve(A)}})}min(A,Q=HX.min){return this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(Q){return fh(Q)||Q.length>=this.resolve(A)}})}max(A,Q=HX.max){return this.test({name:"max",exclusive:!0,message:Q,params:{max:A},test(Q){return fh(Q)||Q.length<=this.resolve(A)}})}matches(A,Q){let B,C,I=!1;return Q&&("object"==typeof Q?{excludeEmptyString:I=!1,message:B,name:C}=Q:B=Q),this.test({name:C||"matches",message:B||HX.matches,params:{regex:A},test:Q=>fh(Q)||""===Q&&I||-1!==Q.search(A)})}email(A=HX.email){return this.matches(fK,{name:"email",message:A,excludeEmptyString:!0})}url(A=HX.url){return this.matches(ft,{name:"url",message:A,excludeEmptyString:!0})}uuid(A=HX.uuid){return this.matches(fU,{name:"uuid",message:A,excludeEmptyString:!1})}ensure(){return this.default("").transform(A=>null===A?"":A)}trim(A=HX.trim){return this.transform(A=>null!=A?A.trim():A).test({message:A,name:"trim",test:fL})}lowercase(A=HX.lowercase){return this.transform(A=>fh(A)?A:A.toLowerCase()).test({message:A,name:"string_case",exclusive:!0,test:A=>fh(A)||A===A.toLowerCase()})}uppercase(A=HX.uppercase){return this.transform(A=>fh(A)?A:A.toUpperCase()).test({message:A,name:"string_case",exclusive:!0,test:A=>fh(A)||A===A.toUpperCase()})}}fG.prototype=fp.prototype;let fr=A=>A!=+A;function fa(){return new fo}class fo extends fn{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(A){let Q=A;if("string"==typeof Q){if(""===(Q=Q.replace(/\s/g,"")))return NaN;Q=+Q}return this.isType(Q)?Q:parseFloat(Q)})})}_typeCheck(A){return A instanceof Number&&(A=A.valueOf()),"number"==typeof A&&!fr(A)}min(A,Q=Hq.min){return this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(Q){return fh(Q)||Q>=this.resolve(A)}})}max(A,Q=Hq.max){return this.test({message:Q,name:"max",exclusive:!0,params:{max:A},test(Q){return fh(Q)||Q<=this.resolve(A)}})}lessThan(A,Q=Hq.lessThan){return this.test({message:Q,name:"max",exclusive:!0,params:{less:A},test(Q){return fh(Q)||Qthis.resolve(A)}})}positive(A=Hq.positive){return this.moreThan(0,A)}negative(A=Hq.negative){return this.lessThan(0,A)}integer(A=Hq.integer){return this.test({name:"integer",message:A,test:A=>fh(A)||Number.isInteger(A)})}truncate(){return this.transform(A=>fh(A)?A:0|A)}round(A){var Q;let B=["ceil","floor","round","trunc"];if("trunc"===(A=(null==(Q=A)?void 0:Q.toLowerCase())||"round"))return this.truncate();if(-1===B.indexOf(A.toLowerCase()))throw TypeError("Only valid options for round() are: "+B.join(", "));return this.transform(Q=>fh(Q)?Q:Math[A](Q))}}fa.prototype=fo.prototype;var fN=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let fe=new Date(""),fJ=A=>"[object Date]"===Object.prototype.toString.call(A);function fS(){return new fF}class fF extends fn{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(A){return this.isType(A)?A:isNaN(A=function(A){var Q,B,C=[1,4,5,6,7,10,11],I=0;if(B=fN.exec(A)){for(var E,g=0;E=C[g];++g)B[E]=+B[E]||0;B[2]=(+B[2]||1)-1,B[3]=+B[3]||1,B[7]=B[7]?String(B[7]).substr(0,3):0,(void 0===B[8]||""===B[8])&&(void 0===B[9]||""===B[9])?Q=+new Date(B[1],B[2],B[3],B[4],B[5],B[6],B[7]):("Z"!==B[8]&&void 0!==B[9]&&(I=60*B[10]+B[11],"+"===B[9]&&(I=0-I)),Q=Date.UTC(B[1],B[2],B[3],B[4],B[5]+I,B[6],B[7]))}else Q=Date.parse?Date.parse(A):NaN;return Q}(A))?fe:new Date(A)})})}_typeCheck(A){return fJ(A)&&!isNaN(A.getTime())}prepareParam(A,Q){let B;if(fg.isRef(A))B=A;else{let C=this.cast(A);if(!this._typeCheck(C))throw TypeError(`\`${Q}\` must be a Date or a value that can be \`cast()\` to a Date`);B=C}return B}min(A,Q=H_.min){let B=this.prepareParam(A,"min");return this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(A){return fh(A)||A>=this.resolve(B)}})}max(A,Q=H_.max){let B=this.prepareParam(A,"max");return this.test({message:Q,name:"max",exclusive:!0,params:{max:A},test(A){return fh(A)||A<=this.resolve(B)}})}}fF.INVALID_DATE=fe,fS.prototype=fF.prototype,fS.INVALID_DATE=fe;var fl=B(57370),fY=B.n(fl),fH=B(96009),ff=B.n(fH),fd=B(19950),fu=B.n(fd),fR=B(95159),fj=B.n(fR);function fb(A,Q){let B=1/0;return A.some((A,C)=>{var I;if((null==(I=Q.path)?void 0:I.indexOf(A))!==-1)return B=C,!0}),B}function fm(A){return(Q,B)=>fb(A,Q)-fb(A,B)}function fZ(){return(fZ=Object.assign||function(A){for(var Q=1;Q"[object Object]"===Object.prototype.toString.call(A),fP=fm([]);class fO extends fn{constructor(A){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=fP,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(A){if("string"==typeof A)try{A=JSON.parse(A)}catch(Q){A=null}return this.isType(A)?A:null}),A&&this.shape(A)})}_typeCheck(A){return fT(A)||"function"==typeof A}_cast(A,Q={}){var B;let C=super._cast(A,Q);if(void 0===C)return this.getDefault();if(!this._typeCheck(C))return C;let I=this.fields,E=null!=(B=Q.stripUnknown)?B:this.spec.noUnknown,g=this._nodes.concat(Object.keys(C).filter(A=>-1===this._nodes.indexOf(A))),w={},D=fZ({},Q,{parent:w,__validating:Q.__validating||!1}),c=!1;for(let A of g){let B=I[A],g=H1()(C,A);if(B){let I;let E=C[A];D.path=(Q.path?`${Q.path}.`:"")+A;let g="spec"in(B=B.resolve({value:E,context:Q.context,parent:w}))?B.spec:void 0,M=null==g?void 0:g.strict;if(null==g?void 0:g.strip){c=c||A in C;continue}void 0!==(I=Q.__validating&&M?C[A]:B.cast(C[A],D))&&(w[A]=I)}else g&&!E&&(w[A]=C[A]);w[A]!==C[A]&&(c=!0)}return c?w:C}_validate(A,Q={},B){let C=[],{sync:I,from:E=[],originalValue:g=A,abortEarly:w=this.spec.abortEarly,recursive:D=this.spec.recursive}=Q;E=[{schema:this,value:g},...E],Q.__validating=!0,Q.originalValue=g,Q.from=E,super._validate(A,Q,(A,c)=>{if(A){if(!H7.isError(A)||w)return void B(A,c);C.push(A)}if(!D||!fT(c)){B(C[0]||null,c);return}g=g||c,fQ({sync:I,tests:this._nodes.map(A=>(B,C)=>{let I=-1===A.indexOf(".")?(Q.path?`${Q.path}.`:"")+A:`${Q.path||""}["${A}"]`,w=this.fields[A];if(w&&"validate"in w){w.validate(c[A],fZ({},Q,{path:I,from:E,strict:!0,parent:c,originalValue:g[A]}),C);return}C(null)}),value:c,errors:C,endEarly:w,sort:this._sortErrors,path:Q.path},B)})}clone(A){let Q=super.clone(A);return Q.fields=fZ({},this.fields),Q._nodes=this._nodes,Q._excludedEdges=this._excludedEdges,Q._sortErrors=this._sortErrors,Q}concat(A){let Q=super.concat(A),B=Q.fields;for(let[A,Q]of Object.entries(this.fields)){let C=B[A];void 0===C?B[A]=Q:C instanceof fn&&Q instanceof fn&&(B[A]=Q.concat(C))}return Q.withMutation(()=>Q.shape(B,this._excludedEdges))}getDefaultFromShape(){let A={};return this._nodes.forEach(Q=>{let B=this.fields[Q];A[Q]="default"in B?B.getDefault():void 0}),A}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(A,Q=[]){let B=this.clone(),C=Object.assign(B.fields,A);return B.fields=C,B._sortErrors=fm(Object.keys(C)),Q.length&&(Array.isArray(Q[0])||(Q=[Q]),B._excludedEdges=[...B._excludedEdges,...Q]),B._nodes=function(A,Q=[]){let B=[],C=new Set,I=new Set(Q.map(([A,Q])=>`${A}-${Q}`));function E(A,Q){let E=(0,fI.split)(A)[0];C.add(E),I.has(`${Q}-${E}`)||B.push([Q,E])}for(let Q in A)if(H1()(A,Q)){let B=A[Q];C.add(Q),fg.isRef(B)&&B.isSibling?E(B.path,Q):H4(B)&&"deps"in B&&B.deps.forEach(A=>E(A,Q))}return fj().array(Array.from(C),B).reverse()}(C,B._excludedEdges),B}pick(A){let Q={};for(let B of A)this.fields[B]&&(Q[B]=this.fields[B]);return this.clone().withMutation(A=>(A.fields={},A.shape(Q)))}omit(A){let Q=this.clone(),B=Q.fields;for(let C of(Q.fields={},A))delete B[C];return Q.withMutation(()=>Q.shape(B))}from(A,Q,B){let C=(0,fI.getter)(A,!0);return this.transform(I=>{if(null==I)return I;let E=I;return H1()(I,A)&&(E=fZ({},I),B||delete E[A],E[Q]=C(I)),E})}noUnknown(A=!0,Q=H0.noUnknown){"string"==typeof A&&(Q=A,A=!0);let B=this.test({name:"noUnknown",exclusive:!0,message:Q,test(Q){let B;if(null==Q)return!0;let C=(B=Object.keys(this.schema.fields),Object.keys(Q).filter(A=>-1===B.indexOf(A)));return!A||0===C.length||this.createError({params:{unknown:C.join(", ")}})}});return B.spec.noUnknown=A,B}unknown(A=!0,Q=H0.noUnknown){return this.noUnknown(!A,Q)}transformKeys(A){return this.transform(Q=>Q&&fu()(Q,(Q,B)=>A(B)))}camelCase(){return this.transformKeys(ff())}snakeCase(){return this.transformKeys(fY())}constantCase(){return this.transformKeys(A=>fY()(A).toUpperCase())}describe(){let A=super.describe();return A.fields=fC()(this.fields,A=>A.describe()),A}}function fW(A){return new fO(A)}function fz(){return(fz=Object.assign||function(A){for(var Q=1;Q{this.transform(function(A){if("string"==typeof A)try{A=JSON.parse(A)}catch(Q){A=null}return this.isType(A)?A:null})})}_typeCheck(A){return Array.isArray(A)}get _subType(){return this.innerType}_cast(A,Q){let B=super._cast(A,Q);if(!this._typeCheck(B)||!this.innerType)return B;let C=!1,I=B.map((A,B)=>{let I=this.innerType.cast(A,fz({},Q,{path:`${Q.path||""}[${B}]`}));return I!==A&&(C=!0),I});return C?I:B}_validate(A,Q={},B){var C,I;let E=[],g=Q.sync,w=Q.path,D=this.innerType,c=null!=(C=Q.abortEarly)?C:this.spec.abortEarly,M=null!=(I=Q.recursive)?I:this.spec.recursive,s=null!=Q.originalValue?Q.originalValue:A;super._validate(A,Q,(A,C)=>{if(A){if(!H7.isError(A)||c)return void B(A,C);E.push(A)}if(!M||!D||!this._typeCheck(C)){B(E[0]||null,C);return}s=s||C;let I=Array(C.length);for(let A=0;AD.validate(B,g,Q)}fQ({sync:g,path:w,value:C,errors:E,endEarly:c,tests:I},B)})}clone(A){let Q=super.clone(A);return Q.innerType=this.innerType,Q}concat(A){let Q=super.concat(A);return Q.innerType=this.innerType,A.innerType&&(Q.innerType=Q.innerType?Q.innerType.concat(A.innerType):A.innerType),Q}of(A){let Q=this.clone();if(!H4(A))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+HV(A));return Q.innerType=A,Q}length(A,Q=H8.length){return this.test({message:Q,name:"length",exclusive:!0,params:{length:A},test(Q){return fh(Q)||Q.length===this.resolve(A)}})}min(A,Q){return Q=Q||H8.min,this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(Q){return fh(Q)||Q.length>=this.resolve(A)}})}max(A,Q){return Q=Q||H8.max,this.test({message:Q,name:"max",exclusive:!0,params:{max:A},test(Q){return fh(Q)||Q.length<=this.resolve(A)}})}ensure(){return this.default(()=>[]).transform((A,Q)=>this._typeCheck(A)?A:null==Q?[]:[].concat(Q))}compact(A){let Q=A?(Q,B,C)=>!A(Q,B,C):A=>!!A;return this.transform(A=>null!=A?A.filter(Q):A)}describe(){let A=super.describe();return this.innerType&&(A.innerType=this.innerType.describe()),A}nullable(A=!0){return super.nullable(A)}defined(){return super.defined()}required(A){return super.required(A)}}fx.prototype,fW().shape({address:fG().required("Required"),description:fG().required("Required"),index:fa().integer().required("Required")});var fV=B(38001);function fv(A){let{title:Q,description:B,address:C}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[Q&&(0,Ah.jsx)(Ke,{size:"20",font:"mono",children:Q}),B&&(0,Ah.jsx)(CC,{children:B}),(0,Ah.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,Ah.jsx)("div",{className:"absolute",children:(0,Ah.jsx)(fV.Z,{size:200,value:C})})}),(0,Ah.jsx)(SB,{type:"address",value:C})]})}let fX={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 fq(){let{settings:A,setCurrency:Q,currencyOptions:B}=(0,UQ.Hv)();return(0,Ah.jsx)(Ug,{"aria-label":"currency fiat",name:"currencyFiat",disabled:!A.siaCentral,value:A.currency.id,onChange:A=>Q(A.currentTarget.value),children:B.map(A=>{let{id:Q,label:B}=A;return(0,Ah.jsx)(Uw,{value:Q,children:B},Q)})})}let f_=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function f$(){let{settings:A,setExternalDataSettings:Q}=(0,UQ.Hv)();return(0,Ah.jsx)(Ug,{"aria-label":"currency display",name:"currencyDisplay",disabled:!A.siaCentral,value:A.currencyDisplay,onChange:A=>Q({currencyDisplay:A.currentTarget.value}),children:f_.map(A=>{let{id:Q,label:B}=A;return(0,Ah.jsx)(Uw,{value:Q,children:B},Q)})})}function f0(A){let{open:Q,onOpenChange:B,securityEl:C,showGpuSetting:I}=A,{settings:E,setRequestSettings:g,setExternalDataSettings:w,daemonExplorer:D,gpu:c}=(0,UQ.Hv)();return(0,Ah.jsx)(yS,{open:Q,title:"App preferences",onOpenChange:B,contentVariants:{className:"w-[450px]"},children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,Ah.jsx)("div",{className:"flex flex-col gap-4",children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Display"}),(0,Ah.jsx)(CI,{size:"14",children:"Configure visual and locale display preferences."}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Currency display"}),(0,Ah.jsx)(f$,{})]}),(0,Ah.jsx)(CI,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires a third-party API enabled under Privacy."})]})}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Fiat"}),(0,Ah.jsx)(fq,{})]}),(0,Ah.jsx)(CI,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires a third-party API enabled under Privacy."})]})}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Theme"}),(0,Ah.jsx)(id,{})]}),(0,Ah.jsx)(CI,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),I&&(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"GPU"}),(0,Ah.jsx)(UF,{disabled:!c.canGpuRender,checked:c.canGpuRender&&c.isGpuEnabled,onCheckedChange:c.setIsGpuEnabled,size:"medium"})]}),(0,Ah.jsxs)(CI,{size:"14",children:["Enable features that require a GPU."," ",c.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Security"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CI,{size:"14",children:"Configure security preferences."}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Lock app"}),(0,Ah.jsx)(UF,{size:"medium",checked:E.autoLock,onCheckedChange:A=>g({autoLock:A})}),(0,Ah.jsxs)(Ug,{disabled:!E.autoLock,value:String(E.autoLockTimeout),onChange:A=>{g({autoLockTimeout:Number(A.currentTarget.value)})},children:[(0,Ah.jsx)(Uw,{value:(0,ed.sW)(5),children:"5 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(10),children:"10 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(20),children:"20 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(30),children:"30 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(60),children:"1 hour"})]})]}),(0,Ah.jsx)(CI,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),C]})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Privacy"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CI,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. Third-party APIs are optional and can be toggled on or off."}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Sia Central"}),(0,Ah.jsx)(UF,{size:"medium",checked:E.siaCentral,onCheckedChange:A=>w({siaCentral:A})})]}),(0,Ah.jsx)(CI,{size:"14",children:"The app fetches network average prices and host geolocation from the Sia Central API."})]})}),D.isSupported?(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-1 items-center justify-between",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Explorer"})]}),(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[D.api?(0,Ah.jsx)(SB,{maxLength:30,value:D.api||"https://api.siascan.com"}):(0,Ah.jsx)(CC,{size:"14",weight:"medium",color:"subtle",children:"Not configured"}),(0,Ah.jsx)(UF,{size:"medium",disabled:!0,checked:D.enabled,onCheckedChange:A=>w({siaCentral:A})})]})]}),(0,Ah.jsx)(CI,{size:"14",children:"The app fetches Siacoin exchange rates from the configured explorer API. This API is configured and enabled in the daemon's startup configuration."})]})}):(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Siascan"}),(0,Ah.jsx)(UF,{size:"medium",checked:E.siascan,onCheckedChange:A=>w({siascan:A})})]}),(0,Ah.jsx)(CI,{size:"14",children:"The app fetches Siacoin exchange rates from the Siascan API."})]})})]})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Help"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CI,{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,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)(Kb,{href:fX.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.lq1,{}),"Website"]}),(0,Ah.jsxs)(Kb,{href:fX.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.RdX,{}),"Docs"]}),(0,Ah.jsxs)(Kb,{href:fX.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.Sfn,{}),"About"]}),(0,Ah.jsxs)(Kb,{href:fX.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.b47,{}),"Discord"]})]})]})]})]})})}function f8(A){let{peers:Q,isLoading:B,connectPeer:C}=A;return(0,Ah.jsx)(SZ,{title:"Peers",actions:(0,Ah.jsx)(cD,{onClick:C,children:"Connect"}),isLoading:B,dataset:(null==Q?void 0:Q.map(A=>({type:"ip",hash:A})))||[]})}var f3=B(36446),f1=B(61613),f4=B(20465),f2=B(22407),f5=function(A,Q,B,C){var I=-1,E=f1.Z,g=!0,w=A.length,D=[],c=Q.length;if(!w)return D;B&&(Q=(0,lv.Z)(Q,(0,Yw.Z)(B))),C?(E=f4.Z,g=!1):Q.length>=200&&(E=f2.Z,g=!1,Q=new f3.Z(Q));Q:for(;++I{A.stopPropagation(),I(B)},children:(0,Ah.jsx)(cc.xVB,{})}),(0,Ah.jsx)(cD,{icon:w?"contrast":"hover",tip:"".concat(Q,": hide all"),variant:"ghost",onClick:A=>{A.stopPropagation(),E(B)},children:(0,Ah.jsx)(cc.pHg,{})})]})]})}function dA(A){let{open:Q,params:B,trigger:C,onOpenChange:I}=A,{body:E,title:g,variant:w,action:D,onConfirm:c}=B||{},M=(0,lV.cI)(),s=(0,Ak.useCallback)(()=>{c&&c(),I(!1)},[c,I]);return(0,Ah.jsx)(yS,{title:g,trigger:C,open:Q,onOpenChange:I,contentVariants:{className:"w-[400px]"},children:(0,Ah.jsx)("form",{onSubmit:M.handleSubmit(s),children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[E,(0,Ah.jsx)("div",{className:"flex gap-1 justify-end",children:(0,Ah.jsx)(Sx,{variant:w,form:M,size:"small",children:D})})]})})})}function dQ(A){let{name:Q,peerCount:B,isSynced:C,nodeBlockHeight:I,connectPeer:E}=A;return(0,Ah.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ah.jsx)(CC,{font:"mono",weight:"bold",size:"20",children:Q}),(0,Ah.jsxs)("div",{className:"flex items-center",children:[B?(0,Ah.jsxs)(cD,{className:"relative left-2 only:left-0",variant:"ghost",onClick:E,tip:"".concat(B," connected peers"),children:[(0,Ah.jsx)(CC,{color:"subtle",children:B.toLocaleString()}),(0,Ah.jsx)(cc.RK4,{})]}):null,I&&C?(0,Ah.jsx)(cg,{content:"Blockchain is synced",children:(0,Ah.jsx)("div",{className:"relative left-2",children:(0,Ah.jsxs)(cD,{variant:"ghost",state:"waiting",children:[(0,Ah.jsx)(CC,{color:"subtle",children:I.toLocaleString()}),(0,Ah.jsx)(CC,{color:"green",children:(0,Ah.jsx)(cc.Y3p,{})})]})})}):null]})]})}function dB(A){let{nodeBlockHeight:Q,networkBlockHeight:B,moreThan100BlocksToSync:C,percent:I}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,Ah.jsx)(tl,{variant:"accent",value:Q&&B?Q:0,max:B||1,className:""}),(0,Ah.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,Ah.jsx)(CC,{color:"subtle",size:"10",children:"Syncing..."}),Q&&B?C?(0,Ah.jsx)(CC,{color:"subtle",size:"10",children:"".concat(Q.toLocaleString()," / ").concat(B.toLocaleString()," (").concat(I,"%)")}):(0,Ah.jsx)(CC,{color:"subtle",size:"10",children:"(".concat(I,"%)")}):null]})]})}function dC(A){let{name:Q,peerCount:B,connectPeer:C,isSynced:I,syncPercent:E,nodeBlockHeight:g,estimatedBlockHeight:w,firstTimeSyncing:D,moreThan100BlocksToSync:c,children:M}=A;return(0,Ah.jsx)(U2,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,Ah.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[I||100===E||0===E?null:(0,Ah.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,Ah.jsxs)(CC,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[E,"%"]})}),(0,Ah.jsx)(KZ,{size:30})]}),children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,Ah.jsx)(dQ,{nodeBlockHeight:g,isSynced:I,name:Q,peerCount:B,connectPeer:C}),I?(0,Ah.jsx)(Kc,{className:"w-full mb-0.5"}):(0,Ah.jsx)(dB,{percent:E,nodeBlockHeight:g,networkBlockHeight:w,moreThan100BlocksToSync:c}),D&&(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsx)(CC,{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,Ah.jsx)(Kc,{className:"w-full mb-1"})]}),M]})})}function dI(A){let{testnetName:Q}=A;return(0,Ah.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,Ah.jsx)(CC,{color:"lo",children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsxs)(CC,{size:"14",color:"lo",children:["You are on the ",Q," testnet."]})]})}function dE(A){let{name:Q,form:B,fields:C,size:I="small",group:E=!0}=A,g=C[Q],{placeholder:w,average:D,suggestion:c,units:M,decimalsLimit:s=2,disableGroupSeparators:y,autoComplete:n,prefix:h}=g,{setValue:k,onBlur:K,error:t,value:U}=l8({form:B,field:g,name:Q}),L=(0,Ak.useMemo)(()=>w?new(t6())(w):c&&"boolean"!=typeof c?new(t6())(c):D&&"boolean"!=typeof D?new(t6())(D):void 0,[w,c,D]),i=(0,Ah.jsx)(UA,{prefix:h,name:Q,value:U,units:M,size:I,decimalsLimit:s,disableGroupSeparators:y,autoComplete:n,placeholder:L?new(t6())(L):void 0,state:t?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onChange:A=>{k(void 0!==A?new(t6())(A):void 0,!0)},onBlur:K});return E?(0,Ah.jsx)(Sz,{title:g.title,name:Q,form:B,wrap:!0,children:i}):i}function dg(A){let{name:Q,form:B,fields:C,size:I="small",group:E=!0}=A,g=C[Q],{options:w}=g,{ref:D,onChange:c,onBlur:M,error:s}=l8({name:Q,form:B,field:g}),y=(0,Ah.jsx)(Ug,{ref:D,name:Q,size:I,state:s?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onChange:c,onBlur:M,children:null==w?void 0:w.map(A=>(0,Ah.jsx)(Uw,{value:A.value,children:A.label},A.value))});return E?(0,Ah.jsx)(Sz,{title:g.title,name:Q,form:B,children:y}):y}function dw(A){let{name:Q,form:B,fields:C,group:I=!0}=A,E=C[Q],{placeholder:g}=E,{ref:w,onChange:D,onBlur:c,error:M}=l8({name:Q,form:B,field:E}),s=(0,Ah.jsx)(tH,{ref:w,name:Q,placeholder:g,readOnly:E.readOnly,onClick:E.onClick,state:M?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onChange:D,onBlur:c});return I?(0,Ah.jsx)(Sz,{title:E.title,actions:E.actions,name:Q,form:B,children:s}):s}cc.lg1,cc.eHR,cc.I$H,cc.KiD,cc.P5r,cc.CCF,cc.w9S,cc.EL$,cc.aPl,cc.wEY,cc.EOT,cc.kSc,cc.W$S,cc.lJ7,cc.ORH,cc.ka0,cc.BdP,cc.d19,cc.Mes,cc.VUg,cc.U_S,cc.T85;let dD=A=>{let{__scopeTooltip:Q,delayDuration:B=700,skipDelayDuration:C=300,disableHoverableContent:I=!1,children:E}=A,[g,w]=(0,Ak.useState)(!0),D=(0,Ak.useRef)(!1),c=(0,Ak.useRef)(0);return(0,Ak.useEffect)(()=>{let A=c.current;return()=>window.clearTimeout(A)},[]),(0,Ak.createElement)(BV,{scope:Q,isOpenDelayed:g,delayDuration:B,onOpen:(0,Ak.useCallback)(()=>{window.clearTimeout(c.current),w(!1)},[]),onClose:(0,Ak.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>w(!0),C)},[C]),isPointerInTransitRef:D,onPointerInTransitChange:(0,Ak.useCallback)(A=>{D.current=A},[]),disableHoverableContent:I},E)};function dc(A){let{children:Q}=A,[B,C]=(0,Ak.useState)(!1);return(0,Ak.useEffect)(()=>{C(!0)},[]),(0,Ah.jsx)("div",{children:B?Q:null})}function dM(A){let{className:Q,daemonExplorerInfoRoute:B,passwordProtectRequestHooks:C,fallback:I,children:E,lockRoutes:g}=A;return(0,Ah.jsx)(dc,{children:(0,Ah.jsx)(UQ.kl,{fallback:I,children:(0,Ah.jsx)(L3,{attribute:"class",children:(0,Ah.jsx)(dD,{children:(0,Ah.jsx)(UQ.bW,{lockRoutes:g,daemonExplorerInfoRoute:B,passwordProtectRequestHooks:C,children:(0,Ah.jsxs)("div",{id:"root",className:Q,children:[(0,Ah.jsx)(J6,{}),E]})})})})})})}var ds=B(49058),dy=Math.min,dn=function(A,Q,B){for(var C=B?f4.Z:f1.Z,I=A[0].length,E=A.length,g=E,w=Array(E),D=1/0,c=[];g--;){var M=A[g];g&&Q&&(M=(0,lv.Z)(M,(0,Yw.Z)(Q))),D=dy(M.length,D),w[g]=!B&&(Q||I>=120&&M.length>=120)?new f3.Z(g&&M):void 0}M=A[0];var s=-1,y=w[0];Q:for(;++s{D(Q=>Q.includes(A)?Q.filter(Q=>Q!==A):Q.concat(A))},[D]),M=(0,Ak.useCallback)(A=>{D(Q=>(0,ds.Z)([...Q,...A]))},[D]),s=(0,Ak.useCallback)(A=>{D(Q=>f6(Q,A))},[D]),y=(0,Ak.useCallback)(()=>{D(C)},[D,C]),n=(0,Ak.useMemo)(()=>B.filter(A=>{let Q=null==g?void 0:g.includes(A.category||"");return!A.fixed&&!Q}),[B,g]),h=(0,Ak.useMemo)(()=>B.filter(A=>{let Q=A.fixed||w.includes(A.id),B=null==g?void 0:g.includes(A.category||"");return Q&&!B}).map(A=>A.id),[B,w,g]),{sortField:k,sortDirection:K,setSortField:t,setSortDirection:U,toggleSort:L}=function(A,Q){let{defaultSortField:B,sortOptions:C,enabledColumns:I}=Q,[E,g]=(0,dK.Z)("".concat(A,"/sortField"),{defaultValue:B}),[w,D]=(0,dK.Z)("".concat(A,"/sortDirection"),{defaultValue:"desc"});return{toggleSort:(0,Ak.useCallback)(A=>{if(E!==A){g(A),D("asc");return}D(A=>"desc"===A?"asc":"desc")},[E,g,D]),setSortDirection:D,setSortField:g,sortableColumns:(0,Ak.useMemo)(()=>C?dk(C.map(A=>A.id),I):[],[C,I]),sortField:E,sortDirection:w}}(A,{defaultSortField:I,sortOptions:E,enabledColumns:h}),i=(0,Ak.useMemo)(()=>E?dk(E.map(A=>A.id),h):[],[E,h]);return{configurableColumns:n,enabledColumns:h,toggleColumnVisibility:c,toggleSort:L,setSortDirection:U,setSortField:t,sortableColumns:i,sortField:k,setColumnsVisible:M,setColumnsHidden:s,sortDirection:K,resetDefaultColumnVisibility:y}}function dL(){let A=(0,Ka.xj)(),Q=(0,Ka.jD)(),B=(0,Ka.lr)();return(0,Ak.useCallback)(()=>{if(!A||!Q)return;let C=new URLSearchParams(B),I=C.toString();C.delete("limit"),C.delete("offset"),C.delete("marker");let E=C.toString(),g=I?"".concat(Q,"?").concat(I):Q,w=E?"".concat(Q,"?").concat(E):Q;w!==g&&A.replace(w)},[A,B,Q])}function di(){let[A,Q]=(0,Ak.useState)([]),B=dL(),C=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A.id).concat(A)),B()},[Q,B]),I=(0,Ak.useCallback)(()=>{Q([]),B()},[Q,B]),E=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A)),B()},[Q,B]),g=(0,Ak.useCallback)(()=>{A.length&&(Q(A=>A.slice(0,-1)),B())},[Q,A,B]);return{filters:A,setFilter:C,removeFilter:E,removeLastFilter:g,resetFilters:I}}function dG(A){let{dataset:Q,filters:B,sortField:C,sortDirection:I}=A;return(0,Ak.useMemo)(()=>{if(!Q)return;let A=Object.entries(B).map(A=>{let[Q,B]=A;return B}),E=A.length?Q.filter(Q=>{for(let B of A)if(!B.fn(Q))return!1;return!0}):Q;return[...E=E.sort((A,Q)=>{let B=A[C],E=Q[C];return"desc"===I?void 0===B?1:void 0===E?-1:B instanceof t6()&&E instanceof t6()?B.lte(E)?1:-1:B<=E?1:-1:void 0===B?-1:void 0===E?1:B instanceof t6()&&E instanceof t6()?B.gte(E)?1:-1:B>=E?1:-1})]},[Q,B,C,I])}function dp(){let[A,Q]=(0,Ak.useState)([]),B=dL(),C=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A.id).concat(A)),B()},[Q,B]),I=(0,Ak.useCallback)(()=>{Q([]),B()},[Q,B]),E=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A)),B()},[Q,B]),g=(0,Ak.useCallback)(()=>{A.length&&(Q(A=>A.slice(0,-1)),B())},[A,Q,B]);return{filters:A,setFilter:C,removeFilter:E,removeLastFilter:g,resetFilters:I}}(()=>{let A=0,Q=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(A+=1,`u${Q()}${A}`)})()},76221:function(A,Q,B){"use strict";B.d(Q,{Ee:function(){return D.a},Fb:function(){return g.a},j0:function(){return M.useRouter},jD:function(){return c.usePathname},lr:function(){return c.useSearchParams},rU:function(){return I.a},xj:function(){return c.useRouter}});var C=B(39097),I=B.n(C),E=B(97729),g=B.n(E),w=B(96577),D=B.n(w),c=B(82876),M=B(5632)},36219:function(A,Q,B){"use strict";B.d(Q,{bW:function(){return v},kl:function(){return AC},gw:function(){return g},Nz:function(){return AB},Hv:function(){return x},iv:function(){return q},Nf:function(){return X},Tu:function(){return N},mw:function(){return J},V1:function(){return S}});var C={};B.r(C),B.d(C,{getGPUTier:function(){return b}});var I=B(79381);function E(A,Q,B){return[A,"".concat(Q).concat((null==B?void 0:B.payload)?JSON.stringify(B.payload):"")]}function g(A){return new Promise(Q=>setTimeout(Q,A))}var w=B(89644),D=B.n(w),c=B(2784);function M(A){return{...A,config:{...null==A?void 0:A.config}}}function s(A){return{...A,config:{...null==A?void 0:A.config}}}function y(A,Q,B){return(null==B?void 0:B.api)||(null==Q?void 0:Q.api)||A.api}function n(A,Q,B){var C,I;let E=function(A,Q,B){var C,I,E,g;let w={"Content-Type":"application/json",...null===(I=Q.config)||void 0===I?void 0:null===(C=I.axios)||void 0===C?void 0:C.headers,...null==B?void 0:null===(g=B.config)||void 0===g?void 0:null===(E=g.axios)||void 0===E?void 0:E.headers},D=y(A,Q,B);return A.api===D&&A.password&&(w.Authorization="Basic "+btoa(":".concat(A.password))),w}(A,Q,B);return{responseType:"json",...null===(C=Q.config)||void 0===C?void 0:C.axios,...null==B?void 0:null===(I=B.config)||void 0===I?void 0:I.axios,headers:E}}function h(A,Q,B,C){let I=(null==B?void 0:B.params)||{};C&&C.params&&(I={...I,...C.params}),Q=function(A,Q){if(A&&Q)for(let B of Object.keys(Q)){let C=String(Q[B]);A.includes(":".concat(B))?A=A.replace(":".concat(B),C):A.includes("?")?A+="&".concat(B,"=").concat(encodeURIComponent(C)):A+="?".concat(B,"=").concat(encodeURIComponent(C))}return A}(Q,I);let E=y(A,B,C);return E===A.api?"".concat(E,"/api").concat(Q):"".concat(E).concat(Q)}function k(A,Q,B,C){let I=y(A,B,C);return I===A.api?Q[1].replace("".concat(I,"/api"),""):Q[1].replace(I,"")}var K=B(52322);let t=(0,c.createContext)({}),U=()=>(0,c.useContext)(t);function L(A){let{children:Q}=A,B=function(){let[A,Q]=(0,c.useState)({}),B=(0,c.useCallback)((A,B)=>{Q(Q=>({...Q,[A]:{key:A,...B}}))},[Q]);return{setWorkflow:B,removeWorkflow:(0,c.useCallback)(A=>{Q(Q=>(delete Q[A],{...Q}))},[Q]),resetWorkflows:(0,c.useCallback)(()=>{Q({})},[Q]),workflows:(0,c.useMemo)(()=>Object.entries(A).map(A=>A[1]),[A])}}();return(0,K.jsx)(t.Provider,{value:B,children:Q})}var i=B(76221),G=B(92762);let p={api:"",loginWithCustomApi:!1,password:void 0,recentApis:{},autoLock:!1,autoLockTimeout:6e5},r=(0,c.createContext)({}),a=()=>(0,c.useContext)(r);function o(A){let{children:Q,...B}=A,C=function(A){let{passwordProtectRequestHooks:Q,lockRoutes:B,defaultSettings:C}=A,E=(0,c.useMemo)(()=>({...p,...C}),[C]),[g,w]=(0,G.Z)("v1/requestConfig",{defaultValue:E});(0,c.useEffect)(()=>{w(A=>({...E,...A}))},[]);let D=(0,c.useMemo)(()=>({...E,...g}),[g,E]),{resetWorkflows:M}=U(),s=(0,c.useCallback)(A=>{w(Q=>({...Q,...A}))},[w]),y=(0,i.xj)(),n=(0,i.jD)(),[h,k]=(0,c.useState)({}),K=(0,c.useCallback)((A,Q)=>{k(B=>({...B,[A]:Q}))},[k]),t=(0,c.useCallback)(()=>{for(let[A,Q]of(B&&y.push("".concat(B.login,"?prev=").concat([B.login].includes(n)?B.home:n)),s({password:""}),M(),(0,I.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(h)))Q&&Q()},[y,B,s,M,h,n]),L=function(A){let Q=(0,i.jD)();return![A.login].includes(Q)}({login:(null==B?void 0:B.login)||"/login"}),r=(0,c.useMemo)(()=>!!D.password,[D]);return{requestSettings:D,setRequestSettings:s,lock:t,isUnlockedAndAuthedRoute:r&&L,passwordProtectRequestHooks:Q,setOnLockCallback:K}}(B);return(0,K.jsx)(r.Provider,{value:C,children:Q})}function N(A){let{requestSettings:Q}=a(),{mutate:B}=(0,I.kY)();return(0,c.useMemo)(()=>function(C,I,E){return e(B,Q,A,void 0,C,I,E)},[B,Q,A])}function e(A,Q,B,C,I,E,g){return A(A=>!!A&&"string"!=typeof A&&2===A.length&&I(k(Q,A,B,C)),E||(A=>A),g)}function J(A,Q){let{setWorkflow:B,removeWorkflow:C}=U(),{mutate:g}=(0,I.kY)(),{requestSettings:w}=a(),c=M(A);return{post:async A=>{let I=s(A);try{let M;let s=n(w,c,I),y=h(w,c.route,c,I);if(!y)throw Error("No route");"payload"in I&&(M=I.payload);let K=E("post",y,A),t=k(w,K,A,I),U=K.join("");B(U,{route:t,payload:M});let L=await D().post(y,M,s);return Q&&await Q(function(Q){let B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A=>A,C=arguments.length>2?arguments[2]:void 0;return e(g,w,A,I,Q,B,C)},I,L),C(U),{status:L.status,data:L.data,headers:L.headers}}catch(A){var M,y;return{status:null===(M=A.response)||void 0===M?void 0:M.status,error:(null===(y=A.response)||void 0===y?void 0:y.data)||A.message}}}}}function S(A,Q){let{mutate:B}=(0,I.kY)(),{requestSettings:C}=a(),{setWorkflow:g,removeWorkflow:w}=U(),c=M(A);return{put:async A=>{let I=s(A);try{let M;let s=n(C,c,I),y=h(C,c.route,c,I);if(!y)throw Error("No route");"payload"in I&&(M=I.payload);let K=E("put",y,A),t=k(C,K,A,I),U=K.join("");g(U,{route:t,payload:M});let L=await D().put(y,M,s);return Q&&await Q(function(Q){let E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A=>A,g=arguments.length>2?arguments[2]:void 0;return e(B,C,A,I,Q,E,g)},I,L),w(U),{status:L.status,data:L.data,headers:L.headers}}catch(A){var M,y;return{status:null===(M=A.response)||void 0===M?void 0:M.status,error:(null===(y=A.response)||void 0===y?void 0:y.data)||A.message}}}}}function F(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})}let l=["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 Y(A){return A=A.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 H="undefined"==typeof window,f=(()=>{if(H)return;let{userAgent:A,platform:Q,maxTouchPoints:B}=window.navigator,C=/(iphone|ipod|ipad)/i.test(A),I="iPad"===Q||"MacIntel"===Q&&B>0&&!window.MSStream;return{isIpad:I,isMobile:/android/i.test(A)||C||I,isSafari12:/Version\/12.+Safari/.test(A)}})();class d extends Error{constructor(A){super(A),Object.setPrototypeOf(this,new.target.prototype)}}let u=[],R=[];function j(A){return null!=A}let b=({mobileTiers:A=[0,15,30,60],desktopTiers:Q=[0,15,30,60],override:B={},glContext:C,failIfMajorPerformanceCaveat:I=!1,benchmarksURL:E="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>F(void 0,void 0,void 0,function*(){let g={};if(H)return{tier:0,type:"SSR"};let{isIpad:w=!!(null==f?void 0:f.isIpad),isMobile:D=!!(null==f?void 0:f.isMobile),screenSize:c=window.screen,loadBenchmarks:M=A=>F(void 0,void 0,void 0,function*(){let Q=yield fetch(`${E}/${A}`).then(A=>A.json());if(4>parseInt(Q.shift().split(".")[0],10))throw new d("Detect GPU benchmark data is out of date. Please update to version 4x");return Q})}=B,{renderer:s}=B,y=(A,Q,B,C,I)=>({device:I,fps:C,gpu:B,isMobile:D,tier:A,type:Q}),n,h="";if(s)n=[s=Y(s)];else{var k;let A=C||function(A,Q=!1){let B={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:Q,powerPreference:"high-performance",stencil:!1};A&&delete B.powerPreference;let C=window.document.createElement("canvas"),I=C.getContext("webgl",B)||C.getContext("experimental-webgl",B);return null!=I?I:void 0}(null==f?void 0:f.isSafari12,I);if(!A)return y(0,"WEBGL_UNSUPPORTED");let Q=A.getExtension("WEBGL_debug_renderer_info");if(Q&&(s=A.getParameter(Q.UNMASKED_RENDERER_WEBGL)),!s)return y(1,"FALLBACK");h=s,n="apple gpu"===(k=s=Y(s))?function(A,Q,B){let C;if(!B)return[Q];let I=function(A){let Q=A.createShader(35633),B=A.createShader(35632),C=A.createProgram();if(!(B&&Q&&C))return;A.shaderSource(Q,"\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 "),A.shaderSource(B,"\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 "),A.compileShader(Q),A.compileShader(B),A.attachShader(C,Q),A.attachShader(C,B),A.linkProgram(C),A.detachShader(C,Q),A.detachShader(C,B),A.deleteShader(Q),A.deleteShader(B),A.useProgram(C);let I=A.createBuffer();A.bindBuffer(34962,I),A.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let E=A.getAttribLocation(C,"aPosition");A.vertexAttribPointer(E,3,5126,!1,0,0),A.enableVertexAttribArray(E),A.clearColor(1,1,1,1),A.clear(16384),A.viewport(0,0,1,1),A.drawArrays(4,0,3);let g=new Uint8Array(4);return A.readPixels(0,0,1,1,6408,5121,g),A.deleteProgram(C),A.deleteBuffer(I),g.join("")}(A),E="801621810",g="8016218135",w="80162181161",D=(null==f?void 0:f.isIpad)?[["a7",w,12],["a8",g,15],["a8x",g,15],["a9",g,15],["a9x",g,15],["a10",g,15],["a10x",g,15],["a12",E,15],["a12x",E,15],["a12z",E,15],["a14",E,15],["m1",E,15]]:[["a7",w,12],["a8",g,12],["a9",g,15],["a10",g,15],["a11",E,15],["a12",E,15],["a13",E,15],["a14",E,15]];return"80162181255"===I?C=D.filter(([,,A])=>A>=14):(C=D.filter(([,A])=>A===I)).length||(C=D),C.map(([A])=>`apple ${A} gpu`)}(A,k,D):[k]}let K=(yield Promise.all(n.map(function(A){var Q;return F(this,void 0,void 0,function*(){let B;let C=(A=>{for(let Q of D?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(A.includes(Q))return Q})(A);if(!C)return;let I=`${D?"m":"d"}-${C}${w?"-ipad":""}.json`,E=g[I]=null!==(Q=g[I])&&void 0!==Q?Q:M(I);try{B=yield E}catch(A){if(A instanceof d)throw A;return}let s=function(A){var Q;let B=(A=A.replace(/\([^)]+\)/,"")).match(/\d+/)||A.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(Q=null==B?void 0:B.join("").replace(/\W|amd/g,""))&&void 0!==Q?Q:""}(A),y=B.filter(([,A])=>A===s);y.length||(y=B.filter(([Q])=>Q.includes(A)));let n=y.length;if(0===n)return;let h=A.split(/[.,()\[\]/\s]/g).sort().filter((A,Q,B)=>0===Q||A!==B[Q-1]).join(" "),k,[K,,,,t]=n>1?y.map(A=>[A,function(A,Q){if(A===Q)return 0;let B=A;A.length>Q.length&&(A=Q,Q=B);let C=A.length,I=Q.length;for(;C>0&&A.charCodeAt(~-C)===Q.charCodeAt(~-I);)C--,I--;let E,g=0;for(;gc?D>c?c+1:D:D>w?w+1:D;return c}(h,A[2])]).sort(([,A],[,Q])=>A-Q)[0][0]:y[0],U=Number.MAX_VALUE,{devicePixelRatio:L}=window,i=c.width*L*c.height*L;for(let A of t){let[Q,B]=A,C=Math.abs(i-Q*B);CA===B?Q-C:A-B);if(!K.length){let A=l.find(A=>s.includes(A));return A?y(0,"BLOCKLISTED",A):y(1,"FALLBACK",`${s} (${h})`)}let[,t,U,L]=K[0];if(-1===t)return y(0,"BLOCKLISTED",U,t,L);let i=D?A:Q,G=0;for(let A=0;A=i[A]&&(G=A);return y(G,"BENCHMARK",U,t,L)}),{getGPUTier:m}=C,Z=[{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}],T={siaCentral:!0,siascan:!0,currency:Z[0],currencyDisplay:"bothPreferSc"},P=(0,c.createContext)({}),O=()=>(0,c.useContext)(P);function W(A){let{children:Q,...B}=A,C=function(A){let{daemonExplorerInfoRoute:Q,defaultSettings:B}=A,C=(0,c.useMemo)(()=>({...T,...B}),[B]),[I,E]=(0,G.Z)("v1/externalData",{defaultValue:C});(0,c.useEffect)(()=>{E(A=>({...C,...A}))},[]);let g=(0,c.useMemo)(()=>({...C,...I}),[I,C]),w=(0,c.useCallback)(A=>{E(Q=>({...Q,...A}))},[E]),D=(0,c.useCallback)(A=>{let Q=Z.find(Q=>Q.id===A);Q&&w({currency:Q})},[w]);return{externalDataSettings:g,setExternalDataSettings:w,setCurrency:D,currencyOptions:Z,daemonExplorer:function(A){var Q;let{route:B,config:C,disabled:I}=A,E=X({disabled:!B||I,route:B||"",config:{...C,swr:{...null==C?void 0:C.swr,revalidateOnFocus:!1}}}),{url:g,enabled:w}=(null===(Q=E.data)||void 0===Q?void 0:Q.explorer)||{},D=(0,c.useMemo)(()=>{if(g)try{let{origin:A}=new URL(g);return A}catch(A){console.error(A)}},[g]);return(0,c.useMemo)(()=>({isSupported:!!E.data,enabled:!!w&&!!D,api:D,isValidating:E.isValidating,isLoading:E.isLoading}),[w,D,E.isValidating,E.isLoading,E.data])}({route:Q})}}(B);return(0,K.jsx)(P.Provider,{value:C,children:Q})}let z=(0,c.createContext)({}),x=()=>(0,c.useContext)(z);function V(A){let{children:Q}=A,B=function(){let{requestSettings:A,setRequestSettings:Q,lock:B,isUnlockedAndAuthedRoute:C,setOnLockCallback:I}=a(),{externalDataSettings:E,setExternalDataSettings:g,setCurrency:w,currencyOptions:D,daemonExplorer:M}=O(),s=function(){let A=function(){var A,Q;let B=null===(A=(Q=window).matchMedia)||void 0===A?void 0:A.call(Q,"(prefers-reduced-motion: reduce)");return!B||!!B.matches}(),[Q,B]=(0,c.useState)(!1),[C,I]=(0,c.useState)(!1),[{isGpuEnabled:E,hasUserSet:g},w]=(0,G.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!A,hasUserSet:!1}}),D=(0,c.useCallback)(function(A){let Q=!(arguments.length>1)||void 0===arguments[1]||arguments[1];w(B=>({...B,isGpuEnabled:A,hasUserSet:Q}))},[w]),M=(0,c.useCallback)(async()=>{let A=!1;{let Q=await m();console.log("GPU",Q),A=Q.tier>0,!g&&Q.tier<2&&D(!1,!1)}I(A),B(!0)},[I,D,g]);return(0,c.useEffect)(()=>{M()},[]),{hasCheckedGpu:Q,canGpuRender:C,isGpuEnabled:E,shouldRender:C&&E,setCanGpuRender:I,setIsGpuEnabled:D}}();return{settings:(0,c.useMemo)(()=>({...A,...E}),[A,E]),requestSettings:A,externalDataSettings:E,setRequestSettings:Q,setExternalDataSettings:g,siascan:E.siascan,siaCentral:E.siaCentral,gpu:s,lock:B,isUnlockedAndAuthedRoute:C,setOnLockCallback:I,setCurrency:w,currencyOptions:D,daemonExplorer:M}}();return(0,K.jsx)(z.Provider,{value:B,children:Q})}function v(A){let{children:Q,...B}=A;return(0,K.jsx)(o,{...B,children:(0,K.jsx)(W,{...B,children:(0,K.jsx)(V,{...B,children:Q})})})}function X(A){var Q,B,C;let g=(0,c.useMemo)(()=>({...A,config:{...null==A?void 0:A.config}}),[A]),{requestSettings:w,passwordProtectRequestHooks:M}=a(),s=h(w,g.route,g,void 0);return(0,I.ZP)((B=E("get",s),C=g.disabled||M&&!w.password,!B||C?null:B),async()=>{if(!g.route)throw Error("No route");let A=n(w,g,void 0);if(!s)throw Error("No route");try{return(await D().get(s,A)).data}catch(Q){let A=Error(Q.response.data);throw A.status=Q.response.status||500,A}},null===(Q=g.config)||void 0===Q?void 0:Q.swr)}function q(A,Q){let{mutate:B}=(0,I.kY)(),{requestSettings:C}=a(),{setWorkflow:g,removeWorkflow:w}=U(),c=M(A);return{delete:async A=>{let I=s(A);try{let M=n(C,c,I),s=h(C,c.route,c,I);if(!s)throw Error("No route");let y=E("delete",s),K=k(C,y,A,I),t=y.join("");g(t,{route:K});let U=await D().delete(s,M);return Q&&await Q(function(Q){let E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A=>A,g=arguments.length>2?arguments[2]:void 0;return e(B,C,A,I,Q,E,g)},I,U),w(t),{status:U.status,data:U.data,headers:U.headers}}catch(A){var M,y;return{status:null===(M=A.response)||void 0===M?void 0:M.status,error:(null===(y=A.response)||void 0===y?void 0:y.data)||A.message}}}}}var _=B(6391),$=B.n(_),AA=B(88464);let AQ={revalidateOnFocus:!1,refreshInterval:(0,AA.sW)(5),dedupingInterval:(0,AA.sW)(5)};function AB(){let{config:A,disabled:Q}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{settings:B}=x();return function(A){let{currency:Q,config:B,disabled:C}=A,{daemonExplorer:I}=x(),E=function(A){let{currency:Q,config:B,disabled:C}=A,{daemonExplorer:{enabled:I,api:E},currencyOptions:g}=x(),w=X({params:{currency:Q},disabled:!I||C||!Q,api:E,route:"/exchange-rate/siacoin/:currency",config:{...B,swr:{...AQ,...null==B?void 0:B.swr}}});return(0,c.useMemo)(()=>({rate:w.data?new($())(w.data):void 0,error:w.error,isValidating:w.isValidating,isLoading:w.isLoading,currency:g.find(A=>A.id===Q)}),[w.data,w.error,w.isValidating,w.isLoading,g,Q])}({currency:Q,config:B,disabled:!I.enabled||C}),g=function(A){let{currency:Q,config:B,disabled:C}=A,{settings:I,currencyOptions:E}=x(),g=X({params:{currency:Q},api:"https://api.siascan.com",route:"/exchange-rate/siacoin/:currency",config:{...B,swr:{...AQ,...null==B?void 0:B.swr}},disabled:!I.siascan||!Q||C});return(0,c.useMemo)(()=>({rate:g.data?new($())(g.data):void 0,error:g.error,isValidating:g.isValidating,isLoading:g.isLoading,currency:E.find(A=>A.id===Q)}),[g.data,g.error,g.isValidating,g.isLoading,E,Q])}({currency:Q,config:B,disabled:I.enabled||C});return I.enabled?E:g}({currency:B.currency.id,config:A,disabled:Q})}function AC(A){let{fallback:Q,cacheProvider:B,children:C}=A;return(0,K.jsx)(L,{children:(0,K.jsx)(I.J$,{value:{fallback:Q||{},provider:B},children:C})})}},57165:function(A,Q,B){"use strict";function C(A,Q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);Q&&(C=C.filter(function(Q){return Object.getOwnPropertyDescriptor(A,Q).enumerable})),B.push.apply(B,C)}return B}function I(A){for(var Q=1;Q=0||(I[B]=A[B]);return I}(A,Q);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(A);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(A,B)&&(I[B]=A[B])}return I}B.d(Q,{aXP:function(){return Qr},eHR:function(){return QS},xHM:function(){return QF},rW0:function(){return Ql},osk:function(){return QY},JaG:function(){return QH},Ya6:function(){return Qd},EMN:function(){return QZ},bdU:function(){return QT},VUy:function(){return QP},Cp0:function(){return QO},Mes:function(){return QW},Y3p:function(){return Q1},Z$8:function(){return Q3},tEK:function(){return Q2},yar:function(){return Q4},cRw:function(){return Q5},MR9:function(){return Q9},PcV:function(){return Q7},QN4:function(){return Q6},Jsc:function(){return BQ},T80:function(){return BA},wEY:function(){return BE},olJ:function(){return Bw},vtB:function(){return Bg},KiD:function(){return Bc},Jrl:function(){return By},aPl:function(){return Bn},kBK:function(){return CO},Bpb:function(){return Bk},dr6:function(){return BL},d19:function(){return Bi},w9S:function(){return BG},Hb6:function(){return Ba},CCF:function(){return Bo},UG6:function(){return CW},lq1:function(){return Be},Pj_:function(){return CV},K2o:function(){return CP},EL$:function(){return BS},BdP:function(){return Bf},P5r:function(){return Bd},RdX:function(){return Bu},U_S:function(){return BR},V8Q:function(){return BT},POp:function(){return BP},kSc:function(){return BO},e_k:function(){return BW},mBM:function(){return CT},Lur:function(){return Bv},b47:function(){return BX},Sfn:function(){return Bq},W$S:function(){return B1},T85:function(){return B4},Ckx:function(){return B2},EOT:function(){return B9},fDA:function(){return B5},RK4:function(){return B7},XJM:function(){return CC},j7C:function(){return CE},ka0:function(){return CI},VUg:function(){return Cc},wGX:function(){return CM},nt4:function(){return Cs},Wet:function(){return Cn},vs4:function(){return CU},$Iz:function(){return CL},fwm:function(){return CX},shL:function(){return Ci},hiv:function(){return CG},sZp:function(){return Cr},lJ7:function(){return Cz},ORH:function(){return Ce},VmF:function(){return CJ},_Gh:function(){return CS},Fhn:function(){return Cx},R$y:function(){return Cv},xVB:function(){return Cf},pHg:function(){return Cd},I$H:function(){return Cu},oaN:function(){return CZ},qdM:function(){return CR},lg1:function(){return Cb}});var g,w,D,c,M,s,y,n,h,k,K,t,U,L,i,G,p,r,a,o,N,e,J,S,F,l,Y,H,f,d,u,R,j,b,m,Z,T,P,O,W,z,x,V,v,X,q,_,$,AA,AQ,AB,AC,AI,AE,Ag,Aw,AD,Ac,AM,As,Ay,An,Ah,Ak,AK,At,AU,AL,Ai,AG,Ap,Ar,Aa,Ao,AN,Ae,AJ,AS,AF,Al,AY,AH,Af,Ad,Au,AR,Aj,Ab,Am,AZ,AT,AP,AO,AW,Az,Ax,AV,Av,AX,Aq,A_,A$,A0,A8,A3,A1,A4,A2,A5,A9,A6,A7,QA,QQ,QB,QC,QI,QE,Qg,Qw,QD,Qc=["width","height","viewBox"],QM=["tabindex"],Qs={focusable:"false",preserveAspectRatio:"xMidYMid meet"},Qy=B(13980),Qn=B.n(Qy),Qh=B(2784);function Qk(A,Q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);Q&&(C=C.filter(function(Q){return Object.getOwnPropertyDescriptor(A,Q).enumerable})),B.push.apply(B,C)}return B}function QK(A){for(var Q=1;Q=0||(I[B]=A[B]);return I}(A,Q);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(A);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(A,B)&&(I[B]=A[B])}return I}var QL=["className","children","tabIndex"],Qi=["tabindex"],QG=Qh.forwardRef(function(A,Q){var B=A.className,C=A.children,g=A.tabIndex,w=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Q=A.width,B=A.height,C=A.viewBox,g=void 0===C?"0 0 ".concat(Q," ").concat(B):C,w=E(A,Qc),D=w.tabindex,c=E(w,QM),M=I(I(I({},Qs),c),{},{width:Q,height:B,viewBox:g});return M["aria-label"]||M["aria-labelledby"]||M.title?(M.role="img",null!=D&&(M.focusable="true",M.tabindex=D)):M["aria-hidden"]=!0,M}(QK(QK({},QU(A,QL)),{},{tabindex:g})),D=w.tabindex,c=QU(w,Qi);return B&&(c.className=B),null!=D&&(c.tabIndex=D),Q&&(c.ref=Q),Qh.createElement("svg",c,C)});QG.displayName="Icon",QG.propTypes={"aria-hidden":Qn().string,"aria-label":Qn().string,"aria-labelledby":Qn().string,children:Qn().node,className:Qn().string,height:Qn().oneOfType([Qn().number,Qn().string]),preserveAspectRatio:Qn().string,tabIndex:Qn().string,viewBox:Qn().string,width:Qn().oneOfType([Qn().number,Qn().string]),xmlns:Qn().string},QG.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var Qp=["children"],Qr=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qp);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),g||(g=Qh.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"})),B)}),Qa=["children"],Qo=["children"],QN=["children"],Qe=["children"],QJ=["children"],QS=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qa);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),w||(w=Qh.createElement("path",{d:"M14 19H18V21H14z"})),D||(D=Qh.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),B)}),QF=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qo);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),c||(c=Qh.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"})),B)}),Ql=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,QN);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),M||(M=Qh.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"})),B)}),QY=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qe);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),s||(s=Qh.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"})),B)}),QH=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,QJ);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),y||(y=Qh.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),n||(n=Qh.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),h||(h=Qh.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),k||(k=Qh.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),K||(K=Qh.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),t||(t=Qh.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),U||(U=Qh.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),L||(L=Qh.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),i||(i=Qh.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"})),B)}),Qf=["children"],Qd=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qf);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),G||(G=Qh.createElement("path",{d:"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z"})),B)}),Qu=["children"],QR=["children"],Qj=["children"],Qb=["children"],Qm=["children"],QZ=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qu);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),p||(p=Qh.createElement("path",{d:"M24 12L16 22 8 12z"})),B)}),QT=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,QR);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),r||(r=Qh.createElement("path",{d:"M20 24L10 16 20 8z"})),B)}),QP=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qj);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),a||(a=Qh.createElement("path",{d:"M12 8L22 16 12 24z"})),B)}),QO=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qb);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),o||(o=Qh.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),B)}),QW=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qm);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),N||(N=Qh.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"})),B)}),Qz=["children"],Qx=["children"],QV=["children"],Qv=["children"],QX=["children"],Qq=["children"],Q_=["children"],Q$=["children"],Q0=["children"],Q8=["children"],Q3=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qz);return Qh.createElement(QG,Qt({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),e||(e=Qh.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"})),J||(J=Qh.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"})),B)}),Q1=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qx);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),S||(S=Qh.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=Qh.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"})),B)}),Q4=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,QV);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),l||(l=Qh.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=Qh.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"})),B)}),Q2=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qv);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),H||(H=Qh.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),f||(f=Qh.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"})),B)}),Q5=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,QX);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),d||(d=Qh.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),B)}),Q9=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Qq);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),u||(u=Qh.createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),B)}),Q6=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Q_);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),R||(R=Qh.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"})),B)}),Q7=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Q$);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),j||(j=Qh.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"})),B)}),BA=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Q0);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),b||(b=Qh.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"})),m||(m=Qh.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"})),B)}),BQ=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Q8);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Z||(Z=Qh.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"})),T||(T=Qh.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"})),B)}),BB=["children"],BC=["children"],BI=["children"],BE=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BB);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),P||(P=Qh.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"})),O||(O=Qh.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),B)}),Bg=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BC);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),W||(W=Qh.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"})),z||(z=Qh.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),B)}),Bw=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BI);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),x||(x=Qh.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"})),V||(V=Qh.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),B)}),BD=["children"],Bc=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BD);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),v||(v=Qh.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"})),X||(X=Qh.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"})),B)}),BM=["children"],Bs=["children"],By=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BM);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),q||(q=Qh.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),_||(_=Qh.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),B)}),Bn=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bs);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),$||($=Qh.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),AA||(AA=Qh.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),B)}),Bh=["children"],Bk=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bh);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AQ||(AQ=Qh.createElement("circle",{cx:"16",cy:"16",r:"8"})),B)}),BK=["children"],Bt=["children"],BU=["children"],BL=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BK);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AB||(AB=Qh.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"})),B)}),Bi=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bt);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AC||(AC=Qh.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"})),AI||(AI=Qh.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),AE||(AE=Qh.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),B)}),BG=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BU);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ag||(Ag=Qh.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"})),B)}),Bp=["children"],Br=["children"],Ba=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bp);return Qh.createElement(QG,Qt({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Aw||(Aw=Qh.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"})),B)}),Bo=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Br);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AD||(AD=Qh.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"})),B)}),BN=["children"],Be=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BN);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ac||(Ac=Qh.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"})),AM||(AM=Qh.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"})),B)}),BJ=["children"],BS=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BJ);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),As||(As=Qh.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"})),B)}),BF=["children"],Bl=["children"],BY=["children"],BH=["children"],Bf=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BF);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ay||(Ay=Qh.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"})),B)}),Bd=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bl);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),An||(An=Qh.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"})),B)}),Bu=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BY);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ah||(Ah=Qh.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"})),Ak||(Ak=Qh.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"})),B)}),BR=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BH);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AK||(AK=Qh.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"})),B)}),Bj=["children"],Bb=["children"],Bm=["children"],BZ=["children"],BT=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bj);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),At||(At=Qh.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"})),AU||(AU=Qh.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),B)}),BP=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bb);return Qh.createElement(QG,Qt({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AL||(AL=Qh.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"})),Ai||(Ai=Qh.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"})),B)}),BO=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bm);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AG||(AG=Qh.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"})),B)}),BW=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BZ);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ap||(Ap=Qh.createElement("path",{d:"M16 22H30V24H16zM16 8H30V10H16zM8 12L8 4 6 4 6 5 4 5 4 7 6 7 6 12 4 12 4 14 6 14 8 14 10 14 10 12 8 12zM10 28H4V24a2 2 0 012-2H8V20H4V18H8a2 2 0 012 2v2a2 2 0 01-2 2H6v2h4z"})),B)}),Bz=["children"],Bx=["children"],BV=["children"],Bv=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bz);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ar||(Ar=Qh.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"})),B)}),BX=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Bx);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Aa||(Aa=Qh.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"})),Ao||(Ao=Qh.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"})),B)}),Bq=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,BV);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AN||(AN=Qh.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"})),B)}),B_=["children"],B$=["children"],B0=["children"],B8=["children"],B3=["children"],B1=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,B_);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ae||(Ae=Qh.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"})),AJ||(AJ=Qh.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"})),B)}),B4=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,B$);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AS||(AS=Qh.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"})),B)}),B2=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,B0);return Qh.createElement(QG,Qt({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AF||(AF=Qh.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"})),Al||(Al=Qh.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"})),B)}),B5=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,B8);return Qh.createElement(QG,Qt({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AY||(AY=Qh.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"})),AH||(AH=Qh.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"})),B)}),B9=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,B3);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Af||(Af=Qh.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"})),Ad||(Ad=Qh.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"})),B)}),B6=["children"],B7=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,B6);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Au||(Au=Qh.createElement("circle",{cx:"21",cy:"26",r:"2"})),AR||(AR=Qh.createElement("circle",{cx:"21",cy:"6",r:"2"})),Aj||(Aj=Qh.createElement("circle",{cx:"4",cy:"16",r:"2"})),Ab||(Ab=Qh.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"})),B)}),CA=["children"],CQ=["children"],CB=["children"],CC=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CA);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Am||(Am=Qh.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),B)}),CI=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CQ);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AZ||(AZ=Qh.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"})),AT||(AT=Qh.createElement("circle",{cx:"22",cy:"10",r:"2"})),B)}),CE=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CB);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AP||(AP=Qh.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"})),AO||(AO=Qh.createElement("circle",{cx:"22",cy:"10",r:"2"})),B)}),Cg=["children"],Cw=["children"],CD=["children"],Cc=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Cg);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AW||(AW=Qh.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"})),Az||(Az=Qh.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"})),B)}),CM=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Cw);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ax||(Ax=Qh.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),AV||(AV=Qh.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"})),B)}),Cs=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CD);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Av||(Av=Qh.createElement("path",{d:"M4,8c-1.2,0-2,0.8-2,2c0,1.2,0.8,2,2,2h3v1H4c-1.7,0-3-1.2-3-3c0-1.7,1.3-3,3-3l9.1,0l-2-2l0.7-0.7 L15,7.5l-3.2,3.2L11.1,10l2-2L4,8z"})),B)}),Cy=["children"],Cn=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Cy);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AX||(AX=Qh.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"})),B)}),Ch=["children"],Ck=["children"],CK=["children"],Ct=["children"],CU=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Ch);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Aq||(Aq=Qh.createElement("path",{d:"M21,29H5a2,2,0,0,1-2-2V5A2,2,0,0,1,5,3H21V5H5V27H21Z"})),A_||(A_=Qh.createElement("path",{d:"M15 9H17V23H15zM27 9H29V23H27zM21 9H23V23H21z"})),B)}),CL=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Ck);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A$||(A$=Qh.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"})),B)}),Ci=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CK);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A0||(A0=Qh.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"})),A8||(A8=Qh.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"})),B)}),CG=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Ct);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A3||(A3=Qh.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"})),B)}),Cp=["children"],Cr=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Cp);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A1||(A1=Qh.createElement("path",{d:"M25,2A11.01,11.01,0,0,0,14.7549,9.0244,6.9939,6.9939,0,0,0,9,6H6V9a7.0078,7.0078,0,0,0,7,7h1v9.0493a9.9229,9.9229,0,0,0-6.071,2.8794l1.414,1.4141a8,8,0,0,1,12.3086,1.2134l1.6616-1.1128A9.98,9.98,0,0,0,16,25.062V16h1A11.0125,11.0125,0,0,0,28,5V2ZM13,14A5.0057,5.0057,0,0,1,8,9V8H9a5.0054,5.0054,0,0,1,5,5v1ZM26,5a9.01,9.01,0,0,1-9,9H16V13a9.01,9.01,0,0,1,9-9h1Z"})),B)}),Ca=["children"],Co=["children"],CN=["children"],Ce=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Ca);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A4||(A4=Qh.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)"})),B)}),CJ=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Co);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A2||(A2=Qh.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),B)}),CS=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CN);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A5||(A5=Qh.createElement("path",{d:"M24,15V6a2,2,0,0,0-2-2H10A2,2,0,0,0,8,6v9a2,2,0,0,0-2,2V28H8V17H24V28h2V17A2,2,0,0,0,24,15ZM10,6H22v9H10Z"})),A9||(A9=Qh.createElement("path",{d:"M12 10H15V12H12zM17 10H20V12H17z"})),B)}),CF=["children"],Cl=["children"],CY=["children"],CH=["children"],Cf=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CF);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A6||(A6=Qh.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"})),A7||(A7=Qh.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"})),B)}),Cd=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Cl);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QA||(QA=Qh.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"})),QQ||(QQ=Qh.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"})),B)}),Cu=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CY);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QB||(QB=Qh.createElement("path",{d:"M22 17H24V19H22z"})),QC||(QC=Qh.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"})),B)}),CR=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,CH);return Qh.createElement(QG,Qt({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QI||(QI=Qh.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"})),QE||(QE=Qh.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"})),B)}),Cj=["children"],Cb=Qh.forwardRef(function(A,Q){var B=A.children,C=QU(A,Cj);return Qh.createElement(QG,Qt({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Qg||(Qg=Qh.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"})),Qw||(Qw=Qh.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"})),QD||(QD=Qh.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"})),B)}),Cm=B(52322);function CZ(A){let{size:Q=24,className:B}=A;return(0,Cm.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:Q,width:Q,className:B,fill:"currentColor",viewBox:"0 0 512 512",children:(0,Cm.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 CT(A){let{size:Q=24}=A;return(0,Cm.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 448 512",children:(0,Cm.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 CP(A){let{size:Q=24}=A;return(0,Cm.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 576 512",children:(0,Cm.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function CO(A){let{size:Q=24}=A;return(0,Cm.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 448 512",children:(0,Cm.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 CW(A){let{size:Q=24}=A;return(0,Cm.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:Q,height:Q,fill:"currentColor",children:(0,Cm.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 Cz(A){let{size:Q=24}=A;return(0,Cm.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,Cm.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,Cm.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,Cm.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,Cm.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,Cm.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function Cx(A){let{size:Q=24}=A;return(0,Cm.jsx)("svg",{width:Q,height:Q,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,Cm.jsx)("path",{d:"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"})})}function CV(A){let{size:Q=24}=A;return(0,Cm.jsx)("svg",{width:Q,height:Q,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,Cm.jsx)("path",{d:"M192 64C86 64 0 150 0 256S86 448 192 448H448c106 0 192-86 192-192s-86-192-192-192H192zM496 168a40 40 0 1 1 0 80 40 40 0 1 1 0-80zM392 304a40 40 0 1 1 80 0 40 40 0 1 1 -80 0zM168 200c0-13.3 10.7-24 24-24s24 10.7 24 24v32h32c13.3 0 24 10.7 24 24s-10.7 24-24 24H216v32c0 13.3-10.7 24-24 24s-24-10.7-24-24V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h32V200z"})})}function Cv(){return(0,Cm.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,Cm.jsxs)("g",{fill:"#32d66a",stroke:"none",children:[(0,Cm.jsx)("path",{d:"M14,19H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,Cm.jsx)("path",{d:"M14,27H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,Cm.jsx)("path",{d:"M30,11H2a1,1,0,0,0,0,2H30a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,Cm.jsx)("path",{d:"M2,5H30a1,1,0,0,0,0-2H2A1,1,0,0,0,2,5Z",fill:"#32d66a"}),(0,Cm.jsx)("path",{d:"M25,17a7,7,0,1,0,7,7A7.008,7.008,0,0,0,25,17Zm-.293,9.707a1,1,0,0,1-1.414,0L20.586,24,22,22.586l2,2,4-4L29.414,22Z"})]})})}function CX(){return(0,Cm.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,Cm.jsxs)("g",{fill:"#32d66a",stroke:"#32d66a",strokeLinecap:"square",strokeWidth:"2",children:[(0,Cm.jsx)("path",{d:"M25,1,12.784,13.154a8.572,8.572,0,1,0,6.061,6.061L21,17V13h4V9h3l3-3V1Z",fill:"none",stroke:"#32d66a"}),(0,Cm.jsx)("circle",{cx:"10",cy:"22",fill:"none",r:"3"})]})})}},88464:function(A,Q,B){"use strict";B.d(Q,{Jz:function(){return e},T6:function(){return J},Nr:function(){return U},mj:function(){return u},Lg:function(){return f},Lu:function(){return R},uF:function(){return H},jH:function(){return d},uV:function(){return Y},jF:function(){return F},hR:function(){return o},hq:function(){return a},uC:function(){return N},Tc:function(){return i},du:function(){return G},pX:function(){return r},yt:function(){return t},rN:function(){return y},yF:function(){return s},Vz:function(){return D},ES:function(){return c},bc:function(){return M},At:function(){return k},sW:function(){return K},_6:function(){return j},XB:function(){return L},qN:function(){return g}});var C=B(6391),I=B.n(C);C.BigNumber.config({EXPONENTIAL_AT:1e9}),C.BigNumber.config({DECIMAL_PLACES:30});let E=new C.BigNumber("10").exponentiatedBy(24);function g(A){return new C.BigNumber(new C.BigNumber(A).times(E).toFixed(0))}let w={fixed:3,dynamicUnits:!0,hastingUnits:!1};function D(A,Q){let{fixed:B,dynamicUnits:I,hastingUnits:g}={...w,...Q},D=new C.BigNumber(1e12),c=new C.BigNumber(1e3),M=new C.BigNumber(A),s=new C.BigNumber(A).abs(),y=M.isNegative()?"-":"";if(!I)return"".concat(y).concat(new C.BigNumber(s).dividedBy(E).toFormat(B)," SC");if(s.dividedBy(D).isLessThan(1))return g?"".concat(y).concat(s," H"):"".concat(y,"0 SC");let n=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let A=0;AA.multipliedBy(c),new C.BigNumber(1)),I=s.dividedBy(D.multipliedBy(Q));if(I.isLessThan(c)||A===n.length-1)return"".concat(y).concat(I.toFormat(B)," ").concat(n[A])}return""}function c(A){return A.toLocaleString()+" SF"}function M(A,Q){let{format:B="abbreviated"}=Q||{},C="abbreviated"===B;if(A<1e3)return"".concat(A.toFixed(0)).concat(C?"ms":" milliseconds");let I=A/1e3;if(I<60)return"".concat(I.toFixed(0)).concat(C?"s":" seconds");let E=I/60;if(E<60)return"".concat(E.toFixed(0)).concat(C?"m":" minutes");let g=E/60;return g<24?"".concat(g.toFixed(0)).concat(C?"h":" hours"):"".concat((g/24).toFixed(0)).concat(C?"d":" days")}function s(A,Q){let{fixed:B=0,units:C="",abbreviated:E=!1}=Q||{},g=new(I())(A||0);if(E){let A=g.toNumber();if(A<1e3)return g.toString();let Q=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],I=Math.floor(Math.log10(A)/Math.log10(1e3)),E=A/Math.pow(1e3,I);return"".concat(E.toFixed(B)).concat(Q[I]?" ".concat(Q[I]):"").concat(C?" ".concat(C):"")}return"".concat(g.toFormat(B)).concat(C?" ".concat(C):"")}function y(A,Q){let B;return B=navigator.language,new Intl.DateTimeFormat(B,{dateStyle:"short",...Q}).format(new Date(A))}var n=B(81395),h=B(22814);function k(A){return 76===A.length&&function(A){var Q;let B=function(A){let Q=[];for(let B=0;B0?"storageProof":B.fileContracts&&B.fileContracts.length>0&&B.fileContractRevisions&&B.fileContractRevisions.length>0?"contractRenewal":B.fileContractRevisions&&B.fileContractRevisions.length>0?"contractRevision":B.fileContracts&&B.fileContracts.length>0?"contractFormation":B.arbitraryData&&B.arbitraryData.length>0&&0===atob(B.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":B.siafundOutputs&&B.siafundOutputs.length>0?"siafund":B.siacoinOutputs&&B.siacoinOutputs.length>0?"siacoin":"unknown"}return"v2Transaction"===Q?function(A){var Q;if(A.fileContractResolutions&&A.fileContractResolutions.length>0)return({expiration:"contractExpiration",finalization:"contractFinalization",renewal:"contractRenewal","storage proof":"storageProof"})[A.fileContractResolutions[0].resolution.type];if(A.fileContractRevisions&&A.fileContractRevisions.length>0)return"contractRevision";if(A.fileContracts&&A.fileContracts.length>0)return"contractFormation";let B=null===(Q=A.attestations)||void 0===Q?void 0:Q.filter(A=>"HostAnnouncement"===A.key);return B&&B.length>0?"hostAnnouncement":A.siafundOutputs&&A.siafundOutputs.length>0?"siafund":A.siacoinOutputs&&A.siacoinOutputs.length>0?"siacoin":"unknown"}(A.data):"v1ContractResolution"===Q||"v2ContractResolution"===Q?"contractPayout":"miner"===Q?"minerPayout":"foundation"===Q?"foundationSubsidy":Q}function e(A){return"v2Transaction"===A.type?(A.data.siacoinOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q.plus(B.value):Q,new(I())(0)).minus((A.data.siacoinInputs||[]).reduce((Q,B)=>A.relevant.includes(B.parent.siacoinOutput.address)?Q.plus(B.parent.siacoinOutput.value):Q,new(I())(0))):"v1Transaction"===A.type?(A.data.transaction.siacoinOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q.plus(B.value):Q,new(I())(0)).minus((A.data.spentSiacoinElements||[]).reduce((Q,B)=>A.relevant.includes(B.siacoinOutput.address)?Q.plus(B.siacoinOutput.value):Q,new(I())(0))):new(I())(A.data.siacoinElement.siacoinOutput.value)}function J(A){return"v2Transaction"===A.type?(A.data.siafundOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q+B.value:Q,0)-(A.data.siafundInputs||[]).reduce((Q,B)=>A.relevant.includes(B.parent.siafundOutput.address)?Q+B.parent.siafundOutput.value:Q,0):"v1Transaction"===A.type?(A.data.transaction.siafundOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q+B.value:Q,0)-(A.data.spentSiafundElements||[]).reduce((Q,B)=>A.relevant.includes(B.siafundOutput.address)?Q+B.siafundOutput.value:Q,0):void 0}let S={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function F(A){return A?S[A]:void 0}let l={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 Y(A){return A?l[A]:void 0}function H(A){return A&&["ip","hostIp"].includes(A)?20:12}function f(A){return A&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(A)}function d(A,Q,B){switch(Q){case"hostIp":case"hostPublicKey":return"".concat(A,"/host/").concat(B);case"contract":return"".concat(A,"/contract/").concat(B);case"transaction":return"".concat(A,"/tx/").concat(B);case"address":return"".concat(A,"/address/").concat(B);case"block":return"".concat(A,"/block/").concat(B);default:return""}}function u(A,Q){return"".concat(null==A?void 0:A.slice(0,Q)).concat(((null==A?void 0:A.length)||0)>Q?"...":"")}function R(A,Q,B){if("blockHash"===A){let A=B/2;return Q.slice(0,Math.floor(A))+"..."+Q.slice(Q.length-Math.ceil(A))}return u(Q,B)}function j(A,Q,B){let C="1 ".concat(Q),I="".concat(Q,"s"),E="";"string"==typeof B&&(I=B),"object"==typeof B&&(B.plural&&(I=B.plural),B.customZero&&(E=B.customZero));let g="".concat(A.toLocaleString()," ").concat(I);return 0===A?E||g:1===A?C:g}},28135:function(A,Q,B){"use strict";B.d(Q,{gM:function(){return M},XC:function(){return D},ek:function(){return c},nH:function(){return s},OH:function(){return w},Ap:function(){return K},R2:function(){return t},Wl:function(){return n},cQ:function(){return y},ys:function(){return k},QL:function(){return h},lT:function(){return L},yi:function(){return r},XF:function(){return a},bd:function(){return p},tM:function(){return o},OZ:function(){return G},sG:function(){return N},wh:function(){return e},sv:function(){return F},bW:function(){return l},jL:function(){return J},cd:function(){return S},zQ:function(){return Y},SK:function(){return i},rB:function(){return U}});var C=B(79381),I=B(36219),E=B(88464),g=B(27050);function w(A){return(0,I.Nf)({...A,route:g.mV})}function D(A){return(0,I.Nf)({...A,route:g.z2})}function c(A){return(0,I.Nf)({...A,route:g.KR})}function M(A){return(0,I.Nf)({...A,route:g.fw})}function s(){let A=M({config:{swr:{revalidateOnFocus:!1}}});return(0,C.ZP)(A,()=>{var Q;return(null===(Q=A.data)||void 0===Q?void 0:Q.name)==="zen"?(0,E.du)():(0,E.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function y(A){return(0,I.Nf)({...A,route:g.cz})}function n(A){return(0,I.mw)({...A,route:g.c8},async A=>{A(A=>A===g.cz)})}function h(A){return(0,I.Nf)({...A,route:g.PH})}function k(A){return(0,I.mw)({...A,route:g.As},async A=>{await (0,I.gw)(2e3),A(A=>A.startsWith(g.PH)||A.startsWith(g.Xf))})}function K(A){return(0,I.mw)({...A,route:g.rB},async A=>{(async()=>{await A(A=>A.startsWith(g.rB)),await (0,I.gw)(1e3),await A(A=>A.startsWith(g.rB))})()})}function t(A){return(0,I.Nf)({...A,route:g.rB})}function U(A){return(0,I.Nf)({...A,route:g.Xf})}function L(A){return(0,I.mw)({...A,route:g.Xf},async A=>{A(A=>A.startsWith(g.Xf))})}function i(A){return(0,I.mw)({...A,route:g.k_},async A=>{A(A=>A.startsWith(g.Xf))})}function G(A){return(0,I.iv)({...A,route:g.k_},async(A,Q)=>{A(A=>A.startsWith(g.Xf))})}function p(A){return(0,I.Nf)({...A,route:g.o1})}function r(A){return(0,I.V1)({...A,route:g.o1},async(A,Q)=>{A(A=>A.startsWith(g.k_.replace(":id",Q.params.id)))})}function a(A){return(0,I.iv)({...A,route:g.PN},async(A,Q)=>{A(A=>A.startsWith(g.o1.replace(":id",Q.params.id)))})}function o(A){return(0,I.Nf)({...A,route:g.G7})}function N(A){return(0,I.Nf)({...A,route:g.Xp})}function e(A){return(0,I.Nf)({...A,route:g.q6})}function J(A){return(0,I.Nf)({...A,route:g.q1})}function S(A){return(0,I.Nf)({...A,route:g.Hf})}function F(A){return(0,I.mw)({...A,route:g.YN})}function l(A){return(0,I.mw)({...A,route:g.LZ})}function Y(A){return(0,I.mw)({...A,route:g.K})}},27050:function(A,Q,B){"use strict";B.d(Q,{As:function(){return M},G7:function(){return K},Hf:function(){return i},K:function(){return r},KR:function(){return E},LZ:function(){return p},PH:function(){return c},PN:function(){return k},Xf:function(){return y},Xp:function(){return t},YN:function(){return G},c8:function(){return D},cz:function(){return w},fw:function(){return g},k_:function(){return n},mV:function(){return C},o1:function(){return h},q1:function(){return L},q6:function(){return U},rB:function(){return s},z2:function(){return I}});let C="/state",I="/consensus/tip",E="/consensus/tipstate",g="/consensus/network",w="/syncer/peers",D="/syncer/connect",c="/txpool/transactions",M="/txpool/broadcast",s="/rescan",y="/wallets",n="/wallets/:id",h="/wallets/:id/addresses",k="/wallets/:id/addresses/:addr",K="/wallets/:id/balance",t="/wallets/:id/events",U="/wallets/:id/events/unconfirmed",L="/wallets/:id/outputs/siacoin",i="/wallets/:id/outputs/siafund",G="/wallets/:id/fund",p="/wallets/:id/fundsf",r="/wallets/:id/release"},70095:function(A,Q,B){"use strict";function C(A){var Q=new Date(Date.UTC(A.getFullYear(),A.getMonth(),A.getDate(),A.getHours(),A.getMinutes(),A.getSeconds(),A.getMilliseconds()));return Q.setUTCFullYear(A.getFullYear()),A.getTime()-Q.getTime()}B.d(Q,{Z:function(){return C}})},4895:function(A,Q,B){"use strict";function C(A,Q){if(Q.length1?"s":"")+" required, but only "+Q.length+" present")}B.d(Q,{Z:function(){return C}})},54042:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return M}});var C,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 E(A){return function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},B=Q.width?String(Q.width):A.defaultWidth;return A.formats[B]||A.formats[A.defaultWidth]}}var g={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({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:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},w={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function D(A){return function(Q,B){var C,I=B||{};if("formatting"===(I.context?String(I.context):"standalone")&&A.formattingValues){var E=A.defaultFormattingWidth||A.defaultWidth,g=I.width?String(I.width):E;C=A.formattingValues[g]||A.formattingValues[E]}else{var w=A.defaultWidth,D=I.width?String(I.width):A.defaultWidth;C=A.values[D]||A.values[w]}return C[A.argumentCallback?A.argumentCallback(Q):Q]}}function c(A){return function(Q){var B,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=C.width,E=I&&A.matchPatterns[I]||A.matchPatterns[A.defaultMatchWidth],g=Q.match(E);if(!g)return null;var w=g[0],D=I&&A.parsePatterns[I]||A.parsePatterns[A.defaultParseWidth],c=Array.isArray(D)?function(A,Q){for(var B=0;B0?"in "+C:C+" ago":C},formatLong:g,formatRelative:function(A,Q,B,C){return w[A]},localize:{ordinalNumber:function(A,Q){var B=Number(A),C=B%100;if(C>20||C<10)switch(C%10){case 1:return B+"st";case 2:return B+"nd";case 3:return B+"rd"}return B+"th"},era:D({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:D({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(A){return A-1}}),month:D({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:D({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:D({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:(C={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(A){return parseInt(A,10)}},function(A){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},B=A.match(C.matchPattern);if(!B)return null;var I=B[0],E=A.match(C.parsePattern);if(!E)return null;var g=C.valueCallback?C.valueCallback(E[0]):E[0];return{value:g=Q.valueCallback?Q.valueCallback(g):g,rest:A.slice(I.length)}}),era:c({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:c({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(A){return A+1}}),month:c({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:c({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:c({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}}},49435:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return I}});var C=B(4895);function I(A){(0,C.Z)(1,arguments);var Q=Object.prototype.toString.call(A);return A instanceof Date||"object"==typeof A&&"[object Date]"===Q?new Date(A.getTime()):"number"==typeof A||"[object Number]"===Q?new Date(A):(("string"==typeof A||"[object String]"===Q)&&"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))}},74669:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"actionAsyncStorage",{enumerable:!0,get:function(){return C}});let C=(0,B(80465).createAsyncLocalStorage)();("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},4437:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"actionAsyncStorage",{enumerable:!0,get:function(){return C.actionAsyncStorage}});let C=B(74669);("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},80465:function(A,Q){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"createAsyncLocalStorage",{enumerable:!0,get:function(){return E}});let B=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class C{disable(){throw B}getStore(){}run(){throw B}exit(){throw B}enterWith(){throw B}}let I=globalThis.AsyncLocalStorage;function E(){return I?new I:new C}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},42642:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ReadonlyURLSearchParams:function(){return D.ReadonlyURLSearchParams},RedirectType:function(){return D.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return D.notFound},permanentRedirect:function(){return D.permanentRedirect},redirect:function(){return D.redirect},useParams:function(){return n},usePathname:function(){return s},useRouter:function(){return y},useSearchParams:function(){return M},useSelectedLayoutSegment:function(){return k},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let C=B(2784),I=B(47640),E=B(30154),g=B(30454),w=B(70166),D=B(32374),c=B(33843);function M(){let A=(0,C.useContext)(E.SearchParamsContext);return(0,C.useMemo)(()=>A?new D.ReadonlyURLSearchParams(A):null,[A])}function s(){return(0,C.useContext)(E.PathnameContext)}function y(){let A=(0,C.useContext)(I.AppRouterContext);if(null===A)throw Error("invariant expected app router to be mounted");return A}function n(){return(0,C.useContext)(E.PathParamsContext)}function h(A){void 0===A&&(A="children");let Q=(0,C.useContext)(I.LayoutRouterContext);return Q?function A(Q,B,C,I){let E;if(void 0===C&&(C=!0),void 0===I&&(I=[]),C)E=Q[1][B];else{var D;let A=Q[1];E=null!=(D=A.children)?D:Object.values(A)[0]}if(!E)return I;let c=E[0],M=(0,g.getSegmentValue)(c);return!M||M.startsWith(w.PAGE_SEGMENT_KEY)?I:(I.push(M),A(E,B,!1,I))}(Q.tree,A):null}function k(A){void 0===A&&(A="children");let Q=h(A);if(!Q||0===Q.length)return null;let B="children"===A?Q[0]:Q[Q.length-1];return B===w.DEFAULT_SEGMENT_KEY?null:B}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},32374:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ReadonlyURLSearchParams:function(){return g},RedirectType:function(){return C.RedirectType},notFound:function(){return I.notFound},permanentRedirect:function(){return C.permanentRedirect},redirect:function(){return C.redirect}});let C=B(23825),I=B(17356);class E extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class g extends URLSearchParams{append(){throw new E}delete(){throw new E}set(){throw new E}sort(){throw new E}}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},17356:function(A,Q){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{isNotFoundError:function(){return I},notFound:function(){return C}});let B="NEXT_NOT_FOUND";function C(){let A=Error(B);throw A.digest=B,A}function I(A){return"object"==typeof A&&null!==A&&"digest"in A&&A.digest===B}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},19228:function(A,Q){"use strict";var B,C;Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"RedirectStatusCode",{enumerable:!0,get:function(){return B}}),(C=B||(B={}))[C.SeeOther=303]="SeeOther",C[C.TemporaryRedirect=307]="TemporaryRedirect",C[C.PermanentRedirect=308]="PermanentRedirect",("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},23825:function(A,Q,B){"use strict";var C,I;Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{RedirectType:function(){return C},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return k},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return n},isRedirectError:function(){return y},permanentRedirect:function(){return s},redirect:function(){return M}});let E=B(98512),g=B(4437),w=B(19228),D="NEXT_REDIRECT";function c(A,Q,B){void 0===B&&(B=w.RedirectStatusCode.TemporaryRedirect);let C=Error(D);C.digest=D+";"+Q+";"+A+";"+B+";";let I=E.requestAsyncStorage.getStore();return I&&(C.mutableCookies=I.mutableCookies),C}function M(A,Q){void 0===Q&&(Q="replace");let B=g.actionAsyncStorage.getStore();throw c(A,Q,(null==B?void 0:B.isAction)?w.RedirectStatusCode.SeeOther:w.RedirectStatusCode.TemporaryRedirect)}function s(A,Q){void 0===Q&&(Q="replace");let B=g.actionAsyncStorage.getStore();throw c(A,Q,(null==B?void 0:B.isAction)?w.RedirectStatusCode.SeeOther:w.RedirectStatusCode.PermanentRedirect)}function y(A){if("object"!=typeof A||null===A||!("digest"in A)||"string"!=typeof A.digest)return!1;let[Q,B,C,I]=A.digest.split(";",4),E=Number(I);return Q===D&&("replace"===B||"push"===B)&&"string"==typeof C&&!isNaN(E)&&E in w.RedirectStatusCode}function n(A){return y(A)?A.digest.split(";",3)[2]:null}function h(A){if(!y(A))throw Error("Not a redirect error");return A.digest.split(";",2)[1]}function k(A){if(!y(A))throw Error("Not a redirect error");return Number(A.digest.split(";",4)[3])}(I=C||(C={})).push="push",I.replace="replace",("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},12516:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"requestAsyncStorage",{enumerable:!0,get:function(){return C}});let C=(0,B(80465).createAsyncLocalStorage)();("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},98512:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{getExpectedRequestStore:function(){return I},requestAsyncStorage:function(){return C.requestAsyncStorage}});let C=B(12516);function I(A){let Q=C.requestAsyncStorage.getStore();if(Q)return Q;throw Error("`"+A+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},30454:function(A,Q){"use strict";function B(A){return Array.isArray(A)?A[1]:A}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getSegmentValue",{enumerable:!0,get:function(){return B}}),("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},19745:function(A,Q){"use strict";var B,C,I,E;Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ACTION_FAST_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return w},ACTION_PREFETCH:function(){return M},ACTION_REFRESH:function(){return g},ACTION_RESTORE:function(){return D},ACTION_SERVER_ACTION:function(){return y},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return C},PrefetchKind:function(){return B},isThenable:function(){return n}});let g="refresh",w="navigate",D="restore",c="server-patch",M="prefetch",s="fast-refresh",y="server-action";function n(A){return A&&("object"==typeof A||"function"==typeof A)&&"function"==typeof A.then}(I=B||(B={})).AUTO="auto",I.FULL="full",I.TEMPORARY="temporary",(E=C||(C={})).fresh="fresh",E.reusable="reusable",E.expired="expired",E.stale="stale",("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},12394:function(A,Q,B){"use strict";function C(A,Q,B,C){return!1}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getDomainLocale",{enumerable:!0,get:function(){return C}}),B(14079),("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},22657:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"Image",{enumerable:!0,get:function(){return L}});let C=B(43219),I=B(16794),E=B(52322),g=I._(B(2784)),w=C._(B(28316)),D=C._(B(68792)),c=B(25123),M=B(96648),s=B(41897);B(71388);let y=B(24698),n=C._(B(59553)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function k(A,Q,B,C,I,E,g){let w=null==A?void 0:A.src;A&&A["data-loaded-src"]!==w&&(A["data-loaded-src"]=w,("decode"in A?A.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(A.parentElement&&A.isConnected){if("empty"!==Q&&I(!0),null==B?void 0:B.current){let Q=new Event("load");Object.defineProperty(Q,"target",{writable:!1,value:A});let C=!1,I=!1;B.current({...Q,nativeEvent:Q,currentTarget:A,target:A,isDefaultPrevented:()=>C,isPropagationStopped:()=>I,persist:()=>{},preventDefault:()=>{C=!0,Q.preventDefault()},stopPropagation:()=>{I=!0,Q.stopPropagation()}})}(null==C?void 0:C.current)&&C.current(A)}}))}function K(A){return g.use?{fetchPriority:A}:{fetchpriority:A}}let t=(0,g.forwardRef)((A,Q)=>{let{src:B,srcSet:C,sizes:I,height:w,width:D,decoding:c,className:M,style:s,fetchPriority:y,placeholder:n,loading:h,unoptimized:t,fill:U,onLoadRef:L,onLoadingCompleteRef:i,setBlurComplete:G,setShowAltText:p,sizesInput:r,onLoad:a,onError:o,...N}=A;return(0,E.jsx)("img",{...N,...K(y),loading:h,width:D,height:w,decoding:c,"data-nimg":U?"fill":"1",className:M,style:s,sizes:I,srcSet:C,src:B,ref:(0,g.useCallback)(A=>{Q&&("function"==typeof Q?Q(A):"object"==typeof Q&&(Q.current=A)),A&&(o&&(A.src=A.src),A.complete&&k(A,n,L,i,G,t,r))},[B,n,L,i,G,o,t,r,Q]),onLoad:A=>{k(A.currentTarget,n,L,i,G,t,r)},onError:A=>{p(!0),"empty"!==n&&G(!0),o&&o(A)}})});function U(A){let{isAppRouter:Q,imgAttributes:B}=A,C={as:"image",imageSrcSet:B.srcSet,imageSizes:B.sizes,crossOrigin:B.crossOrigin,referrerPolicy:B.referrerPolicy,...K(B.fetchPriority)};return Q&&w.default.preload?(w.default.preload(B.src,C),null):(0,E.jsx)(D.default,{children:(0,E.jsx)("link",{rel:"preload",href:B.srcSet?void 0:B.src,...C},"__nimg-"+B.src+B.srcSet+B.sizes)})}let L=(0,g.forwardRef)((A,Q)=>{let B=(0,g.useContext)(y.RouterContext),C=(0,g.useContext)(s.ImageConfigContext),I=(0,g.useMemo)(()=>{let A=h||C||M.imageConfigDefault,Q=[...A.deviceSizes,...A.imageSizes].sort((A,Q)=>A-Q),B=A.deviceSizes.sort((A,Q)=>A-Q);return{...A,allSizes:Q,deviceSizes:B}},[C]),{onLoad:w,onLoadingComplete:D}=A,k=(0,g.useRef)(w);(0,g.useEffect)(()=>{k.current=w},[w]);let K=(0,g.useRef)(D);(0,g.useEffect)(()=>{K.current=D},[D]);let[L,i]=(0,g.useState)(!1),[G,p]=(0,g.useState)(!1),{props:r,meta:a}=(0,c.getImgProps)(A,{defaultLoader:n.default,imgConf:I,blurComplete:L,showAltText:G});return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(t,{...r,unoptimized:a.unoptimized,placeholder:a.placeholder,fill:a.fill,onLoadRef:k,onLoadingCompleteRef:K,setBlurComplete:i,setShowAltText:p,sizesInput:A.sizes,ref:Q}),a.priority?(0,E.jsx)(U,{isAppRouter:!B,imgAttributes:r}):null]})});("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},14470:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"default",{enumerable:!0,get:function(){return i}});let C=B(43219),I=B(52322),E=C._(B(2784)),g=B(40706),w=B(90345),D=B(8985),c=B(70286),M=B(95549),s=B(24698),y=B(47640),n=B(34407),h=B(12394),k=B(70558),K=B(19745),t=new Set;function U(A,Q,B,C,I,E){if(E||(0,w.isLocalURL)(Q)){if(!C.bypassPrefetchedCheck){let I=Q+"%"+B+"%"+(void 0!==C.locale?C.locale:"locale"in A?A.locale:void 0);if(t.has(I))return;t.add(I)}(async()=>E?A.prefetch(Q,I):A.prefetch(Q,B,C))().catch(A=>{})}}function L(A){return"string"==typeof A?A:(0,D.formatUrl)(A)}let i=E.default.forwardRef(function(A,Q){let B,C;let{href:D,as:t,children:i,prefetch:G=null,passHref:p,replace:r,shallow:a,scroll:o,locale:N,onClick:e,onMouseEnter:J,onTouchStart:S,legacyBehavior:F=!1,...l}=A;B=i,F&&("string"==typeof B||"number"==typeof B)&&(B=(0,I.jsx)("a",{children:B}));let Y=E.default.useContext(s.RouterContext),H=E.default.useContext(y.AppRouterContext),f=null!=Y?Y:H,d=!Y,u=!1!==G,R=null===G?K.PrefetchKind.AUTO:K.PrefetchKind.FULL,{href:j,as:b}=E.default.useMemo(()=>{if(!Y){let A=L(D);return{href:A,as:t?L(t):A}}let[A,Q]=(0,g.resolveHref)(Y,D,!0);return{href:A,as:t?(0,g.resolveHref)(Y,t):Q||A}},[Y,D,t]),m=E.default.useRef(j),Z=E.default.useRef(b);F&&(C=E.default.Children.only(B));let T=F?C&&"object"==typeof C&&C.ref:Q,[P,O,W]=(0,n.useIntersection)({rootMargin:"200px"}),z=E.default.useCallback(A=>{(Z.current!==b||m.current!==j)&&(W(),Z.current=b,m.current=j),P(A),T&&("function"==typeof T?T(A):"object"==typeof T&&(T.current=A))},[b,T,j,W,P]);E.default.useEffect(()=>{f&&O&&u&&U(f,j,b,{locale:N},{kind:R},d)},[b,j,O,N,u,null==Y?void 0:Y.locale,f,d,R]);let x={ref:z,onClick(A){F||"function"!=typeof e||e(A),F&&C.props&&"function"==typeof C.props.onClick&&C.props.onClick(A),f&&!A.defaultPrevented&&function(A,Q,B,C,I,g,D,c,M){let{nodeName:s}=A.currentTarget;if("A"===s.toUpperCase()&&(function(A){let Q=A.currentTarget.getAttribute("target");return Q&&"_self"!==Q||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||A.nativeEvent&&2===A.nativeEvent.which}(A)||!M&&!(0,w.isLocalURL)(B)))return;A.preventDefault();let y=()=>{let A=null==D||D;"beforePopState"in Q?Q[I?"replace":"push"](B,C,{shallow:g,locale:c,scroll:A}):Q[I?"replace":"push"](C||B,{scroll:A})};M?E.default.startTransition(y):y()}(A,f,j,b,r,a,o,N,d)},onMouseEnter(A){F||"function"!=typeof J||J(A),F&&C.props&&"function"==typeof C.props.onMouseEnter&&C.props.onMouseEnter(A),f&&(u||!d)&&U(f,j,b,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:R},d)},onTouchStart:function(A){F||"function"!=typeof S||S(A),F&&C.props&&"function"==typeof C.props.onTouchStart&&C.props.onTouchStart(A),f&&(u||!d)&&U(f,j,b,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:R},d)}};if((0,c.isAbsoluteUrl)(b))x.href=b;else if(!F||p||"a"===C.type&&!("href"in C.props)){let A=void 0!==N?N:null==Y?void 0:Y.locale,Q=(null==Y?void 0:Y.isLocaleDomain)&&(0,h.getDomainLocale)(b,A,null==Y?void 0:Y.locales,null==Y?void 0:Y.domainLocales);x.href=Q||(0,k.addBasePath)((0,M.addLocale)(b,A,null==Y?void 0:Y.defaultLocale))}return F?E.default.cloneElement(C,x):(0,I.jsx)("a",{...l,...x,children:B})});("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},34407:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"useIntersection",{enumerable:!0,get:function(){return D}});let C=B(2784),I=B(41346),E="function"==typeof IntersectionObserver,g=new Map,w=[];function D(A){let{rootRef:Q,rootMargin:B,disabled:D}=A,c=D||!E,[M,s]=(0,C.useState)(!1),y=(0,C.useRef)(null),n=(0,C.useCallback)(A=>{y.current=A},[]);return(0,C.useEffect)(()=>{if(E){if(c||M)return;let A=y.current;if(A&&A.tagName)return function(A,Q,B){let{id:C,observer:I,elements:E}=function(A){let Q;let B={root:A.root||null,margin:A.rootMargin||""},C=w.find(A=>A.root===B.root&&A.margin===B.margin);if(C&&(Q=g.get(C)))return Q;let I=new Map;return Q={id:B,observer:new IntersectionObserver(A=>{A.forEach(A=>{let Q=I.get(A.target),B=A.isIntersecting||A.intersectionRatio>0;Q&&B&&Q(B)})},A),elements:I},w.push(B),g.set(B,Q),Q}(B);return E.set(A,Q),I.observe(A),function(){if(E.delete(A),I.unobserve(A),0===E.size){I.disconnect(),g.delete(C);let A=w.findIndex(A=>A.root===C.root&&A.margin===C.margin);A>-1&&w.splice(A,1)}}}(A,A=>A&&s(A),{root:null==Q?void 0:Q.current,rootMargin:B})}else if(!M){let A=(0,I.requestIdleCallback)(()=>s(!0));return()=>(0,I.cancelIdleCallback)(A)}},[c,B,Q,M,y.current]),[n,M,(0,C.useCallback)(()=>{s(!1)},[])]}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},25123:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getImgProps",{enumerable:!0,get:function(){return w}}),B(71388);let C=B(74999),I=B(96648);function E(A){return void 0!==A.default}function g(A){return void 0===A?A:"number"==typeof A?Number.isFinite(A)?A:NaN:"string"==typeof A&&/^[0-9]+$/.test(A)?parseInt(A,10):NaN}function w(A,Q){var B;let w,D,c,{src:M,sizes:s,unoptimized:y=!1,priority:n=!1,loading:h,className:k,quality:K,width:t,height:U,fill:L=!1,style:i,overrideSrc:G,onLoad:p,onLoadingComplete:r,placeholder:a="empty",blurDataURL:o,fetchPriority:N,layout:e,objectFit:J,objectPosition:S,lazyBoundary:F,lazyRoot:l,...Y}=A,{imgConf:H,showAltText:f,blurComplete:d,defaultLoader:u}=Q,R=H||I.imageConfigDefault;if("allSizes"in R)w=R;else{let A=[...R.deviceSizes,...R.imageSizes].sort((A,Q)=>A-Q),Q=R.deviceSizes.sort((A,Q)=>A-Q);w={...R,allSizes:A,deviceSizes:Q}}if(void 0===u)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let j=Y.loader||u;delete Y.loader,delete Y.srcSet;let b="__next_img_default"in j;if(b){if("custom"===w.loader)throw Error('Image with src "'+M+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let A=j;j=Q=>{let{config:B,...C}=Q;return A(C)}}if(e){"fill"===e&&(L=!0);let A={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[e];A&&(i={...i,...A});let Q={responsive:"100vw",fill:"100vw"}[e];Q&&!s&&(s=Q)}let m="",Z=g(t),T=g(U);if("object"==typeof(B=M)&&(E(B)||void 0!==B.src)){let A=E(M)?M.default:M;if(!A.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(A));if(!A.height||!A.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(A));if(D=A.blurWidth,c=A.blurHeight,o=o||A.blurDataURL,m=A.src,!L){if(Z||T){if(Z&&!T){let Q=Z/A.width;T=Math.round(A.height*Q)}else if(!Z&&T){let Q=T/A.height;Z=Math.round(A.width*Q)}}else Z=A.width,T=A.height}}let P=!n&&("lazy"===h||void 0===h);(!(M="string"==typeof M?M:m)||M.startsWith("data:")||M.startsWith("blob:"))&&(y=!0,P=!1),w.unoptimized&&(y=!0),b&&M.endsWith(".svg")&&!w.dangerouslyAllowSVG&&(y=!0),n&&(N="high");let O=g(K),W=Object.assign(L?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:J,objectPosition:S}:{},f?{}:{color:"transparent"},i),z=d||"empty"===a?null:"blur"===a?'url("data:image/svg+xml;charset=utf-8,'+(0,C.getImageBlurSvg)({widthInt:Z,heightInt:T,blurWidth:D,blurHeight:c,blurDataURL:o||"",objectFit:W.objectFit})+'")':'url("'+a+'")',x=z?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:z}:{},V=function(A){let{config:Q,src:B,unoptimized:C,width:I,quality:E,sizes:g,loader:w}=A;if(C)return{src:B,srcSet:void 0,sizes:void 0};let{widths:D,kind:c}=function(A,Q,B){let{deviceSizes:C,allSizes:I}=A;if(B){let A=/(^|\s)(1?\d?\d)vw/g,Q=[];for(let C;C=A.exec(B);C)Q.push(parseInt(C[2]));if(Q.length){let A=.01*Math.min(...Q);return{widths:I.filter(Q=>Q>=C[0]*A),kind:"w"}}return{widths:I,kind:"w"}}return"number"!=typeof Q?{widths:C,kind:"w"}:{widths:[...new Set([Q,2*Q].map(A=>I.find(Q=>Q>=A)||I[I.length-1]))],kind:"x"}}(Q,I,g),M=D.length-1;return{sizes:g||"w"!==c?g:"100vw",srcSet:D.map((A,C)=>w({config:Q,src:B,quality:E,width:A})+" "+("w"===c?A:C+1)+c).join(", "),src:w({config:Q,src:B,quality:E,width:D[M]})}}({config:w,src:M,unoptimized:y,width:Z,quality:O,sizes:s,loader:j});return{props:{...Y,loading:P?"lazy":h,fetchPriority:N,width:Z,height:T,decoding:"async",className:k,style:{...W,...x},sizes:V.sizes,srcSet:V.srcSet,src:G||V.src},meta:{unoptimized:y,priority:n,placeholder:a,fill:L}}}},74999:function(A,Q){"use strict";function B(A){let{widthInt:Q,heightInt:B,blurWidth:C,blurHeight:I,blurDataURL:E,objectFit:g}=A,w=C?40*C:Q,D=I?40*I:B,c=w&&D?"viewBox='0 0 "+w+" "+D+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%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='"+(c?"none":"contain"===g?"xMidYMid":"cover"===g?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+E+"'/%3E%3C/svg%3E"}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getImageBlurSvg",{enumerable:!0,get:function(){return B}})},5329:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{default:function(){return D},getImageProps:function(){return w}});let C=B(43219),I=B(25123),E=B(22657),g=C._(B(59553));function w(A){let{props:Q}=(0,I.getImgProps)(A,{defaultLoader:g.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[A,B]of Object.entries(Q))void 0===B&&delete Q[A];return{props:Q}}let D=E.Image},59553:function(A,Q){"use strict";function B(A){let{config:Q,src:B,width:C,quality:I}=A;return Q.path+"?url="+encodeURIComponent(B)+"&w="+C+"&q="+(I||75)}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"default",{enumerable:!0,get:function(){return C}}),B.__next_img_default=!0;let C=B},33843:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ServerInsertedHTMLContext:function(){return I},useServerInsertedHTML:function(){return E}});let C=B(16794)._(B(2784)),I=C.default.createContext(null);function E(A){let Q=(0,C.useContext)(I);Q&&Q(A)}},21962:function(){},17282:function(A){A.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},29773:function(A){A.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(A){!function(){var Q={229:function(A){var Q,B,C,I=A.exports={};function E(){throw Error("setTimeout has not been defined")}function g(){throw Error("clearTimeout has not been defined")}function w(A){if(Q===setTimeout)return setTimeout(A,0);if((Q===E||!Q)&&setTimeout)return Q=setTimeout,setTimeout(A,0);try{return Q(A,0)}catch(B){try{return Q.call(null,A,0)}catch(B){return Q.call(this,A,0)}}}!function(){try{Q="function"==typeof setTimeout?setTimeout:E}catch(A){Q=E}try{B="function"==typeof clearTimeout?clearTimeout:g}catch(A){B=g}}();var D=[],c=!1,M=-1;function s(){c&&C&&(c=!1,C.length?D=C.concat(D):M=-1,D.length&&y())}function y(){if(!c){var A=w(s);c=!0;for(var Q=D.length;Q;){for(C=D,D=[];++M1)for(var B=1;B=this._maxSize&&this.clear(),!(A in this._values)&&this._size++,this._values[A]=Q};var B=/[^.^\]^[]+|(?=\[\]|\.\.)/g,C=/^\d+$/,I=/^\d/,E=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,g=/^\s*(['"]?)(.*?)(\1)\s*$/,w=new Q(512),D=new Q(512),c=new Q(512);function M(A){return w.get(A)||w.set(A,s(A).map(function(A){return A.replace(g,"$2")}))}function s(A){return A.match(B)||[""]}function y(A){return"string"==typeof A&&A&&-1!==["'",'"'].indexOf(A.charAt(0))}A.exports={Cache:Q,split:s,normalizePath:M,setter:function(A){var Q=M(A);return D.get(A)||D.set(A,function(A,B){for(var C=0,I=Q.length,E=A;C>>7-A%8&1)==1},put:function(A,Q){for(var B=0;B>>Q-B-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(A){var Q=Math.floor(this.length/8);this.buffer.length<=Q&&this.buffer.push(0),A&&(this.buffer[Q]|=128>>>this.length%8),this.length++}},A.exports=Q},81432:function(A){A.exports={L:1,M:0,Q:3,H:2}},84695:function(A,Q,B){var C=B(35856);function I(A,Q){if(void 0==A.length)throw Error(A.length+"/"+Q);for(var B=0;B=7&&this.setupTypeNumber(A),null==this.dataCache&&(this.dataCache=D.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,Q)},c.setupPositionProbePattern=function(A,Q){for(var B=-1;B<=7;B++)if(!(A+B<=-1)&&!(this.moduleCount<=A+B))for(var C=-1;C<=7;C++)Q+C<=-1||this.moduleCount<=Q+C||(0<=B&&B<=6&&(0==C||6==C)||0<=C&&C<=6&&(0==B||6==B)||2<=B&&B<=4&&2<=C&&C<=4?this.modules[A+B][Q+C]=!0:this.modules[A+B][Q+C]=!1)},c.getBestMaskPattern=function(){for(var A=0,Q=0,B=0;B<8;B++){this.makeImpl(!0,B);var C=g.getLostPoint(this);(0==B||A>C)&&(A=C,Q=B)}return Q},c.createMovieClip=function(A,Q,B){var C=A.createEmptyMovieClip(Q,B);this.make();for(var I=0;I>B&1)==1;this.modules[Math.floor(B/3)][B%3+this.moduleCount-8-3]=C}for(var B=0;B<18;B++){var C=!A&&(Q>>B&1)==1;this.modules[B%3+this.moduleCount-8-3][Math.floor(B/3)]=C}},c.setupTypeInfo=function(A,Q){for(var B=this.errorCorrectLevel<<3|Q,C=g.getBCHTypeInfo(B),I=0;I<15;I++){var E=!A&&(C>>I&1)==1;I<6?this.modules[I][8]=E:I<8?this.modules[I+1][8]=E:this.modules[this.moduleCount-15+I][8]=E}for(var I=0;I<15;I++){var E=!A&&(C>>I&1)==1;I<8?this.modules[8][this.moduleCount-I-1]=E:I<9?this.modules[8][15-I-1+1]=E:this.modules[8][15-I-1]=E}this.modules[this.moduleCount-8][8]=!A},c.mapData=function(A,Q){for(var B=-1,C=this.moduleCount-1,I=7,E=0,w=this.moduleCount-1;w>0;w-=2)for(6==w&&w--;;){for(var D=0;D<2;D++)if(null==this.modules[C][w-D]){var c=!1;E>>I&1)==1),g.getMask(Q,C,w-D)&&(c=!c),this.modules[C][w-D]=c,-1==--I&&(E++,I=7)}if((C+=B)<0||this.moduleCount<=C){C-=B,B=-B;break}}},D.PAD0=236,D.PAD1=17,D.createData=function(A,Q,B){for(var C=I.getRSBlocks(A,Q),w=new E,c=0;c8*s)throw Error("code length overflow. ("+w.getLengthInBits()+">"+8*s+")");for(w.getLengthInBits()+4<=8*s&&w.put(0,4);w.getLengthInBits()%8!=0;)w.putBit(!1);for(;!(w.getLengthInBits()>=8*s)&&(w.put(D.PAD0,8),!(w.getLengthInBits()>=8*s));)w.put(D.PAD1,8);return D.createBytes(w,C)},D.createBytes=function(A,Q){for(var B=0,C=0,I=0,E=Array(Q.length),D=Array(Q.length),c=0;c=0?h.get(k):0}}for(var K=0,y=0;y=256;)A-=255;return Q.EXP_TABLE[A]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},B=0;B<8;B++)Q.EXP_TABLE[B]=1<=0;)Q^=w.G15<=0;)Q^=w.G18<>>=1;return Q},getPatternPosition:function(A){return w.PATTERN_POSITION_TABLE[A-1]},getMask:function(A,Q,B){switch(A){case g.PATTERN000:return(Q+B)%2==0;case g.PATTERN001:return Q%2==0;case g.PATTERN010:return B%3==0;case g.PATTERN011:return(Q+B)%3==0;case g.PATTERN100:return(Math.floor(Q/2)+Math.floor(B/3))%2==0;case g.PATTERN101:return Q*B%2+Q*B%3==0;case g.PATTERN110:return(Q*B%2+Q*B%3)%2==0;case g.PATTERN111:return(Q*B%3+(Q+B)%2)%2==0;default:throw Error("bad maskPattern:"+A)}},getErrorCorrectPolynomial:function(A){for(var Q=new I([1],0),B=0;B5&&(B+=3+E-5)}for(var C=0;C{var C,I;C=A,I=function(A){var Q,B=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,C=new WeakMap,I=(Q=function(A,Q){return C.set(A,Q),Q},function(A){var I=C.get(A),E=void 0===I?A.size:I<1073741824?I+1:0;if(!A.has(E))return Q(A,E);if(A.size<536870912){for(;A.has(E);)E=Math.floor(1073741824*Math.random());return Q(A,E)}if(A.size>B)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;A.has(E);)E=Math.floor(Math.random()*B);return Q(A,E)});A.addUniqueNumber=function(A){var Q=I(A);return A.add(Q),Q},A.generateUniqueNumber=I},"object"==typeof A&&"u">typeof Q?I(A):"function"==typeof define&&B.amdO?define(["exports"],I):I((C="u">typeof globalThis?globalThis:C||self).fastUniqueNumbers={})},()=>(I||C((I={exports:{}}).exports,I),I.exports));s.Component;var L=(w=null!=(E=U())?y(K(E)):{},((A,Q,B,C)=>{if(Q&&"object"==typeof Q||"function"==typeof Q)for(let I of k(Q))t.call(A,I)||I===B||n(A,I,{get:()=>Q[I],enumerable:!(C=h(Q,I))||C.enumerable});return A})(!g&&E&&E.__esModule?w:n(w,"default",{value:E,enumerable:!0}),E)),i=A=>void 0!==A.method&&"call"===A.method,G=A=>null===A.error&&"number"==typeof A.id;c=A=>{let Q=new Map([[0,()=>{}]]),B=new Map([[0,()=>{}]]),C=new Map,I=new Worker(A);return I.addEventListener("message",({data:A})=>{if(i(A)){let{params:{timerId:I,timerType:E}}=A;if("interval"===E){let A=Q.get(I);if("number"==typeof A){let Q=C.get(A);if(void 0===Q||Q.timerId!==I||Q.timerType!==E)throw Error("The timer is in an undefined state.")}else if("u">typeof A)A();else throw Error("The timer is in an undefined state.")}else if("timeout"===E){let A=B.get(I);if("number"==typeof A){let Q=C.get(A);if(void 0===Q||Q.timerId!==I||Q.timerType!==E)throw Error("The timer is in an undefined state.")}else if("u">typeof A)A(),B.delete(I);else throw Error("The timer is in an undefined state.")}}else if(G(A)){let{id:I}=A,E=C.get(I);if(void 0===E)throw Error("The timer is in an undefined state.");let{timerId:g,timerType:w}=E;C.delete(I),"interval"===w?Q.delete(g):B.delete(g)}else{let{error:{message:Q}}=A;throw Error(Q)}}),{clearInterval:A=>{let B=(0,L.generateUniqueNumber)(C);C.set(B,{timerId:A,timerType:"interval"}),Q.set(A,B),I.postMessage({id:B,method:"clear",params:{timerId:A,timerType:"interval"}})},clearTimeout:A=>{let Q=(0,L.generateUniqueNumber)(C);C.set(Q,{timerId:A,timerType:"timeout"}),B.set(A,Q),I.postMessage({id:Q,method:"clear",params:{timerId:A,timerType:"timeout"}})},setInterval:(A,B)=>{let C=(0,L.generateUniqueNumber)(Q);return Q.set(C,()=>{A(),"function"==typeof Q.get(C)&&I.postMessage({id:null,method:"set",params:{delay:B,now:performance.now(),timerId:C,timerType:"interval"}})}),I.postMessage({id:null,method:"set",params:{delay:B,now:performance.now(),timerId:C,timerType:"interval"}}),C},setTimeout:(A,Q)=>{let C=(0,L.generateUniqueNumber)(B);return B.set(C,A),I.postMessage({id:null,method:"set",params:{delay:Q,now:performance.now(),timerId:C,timerType:"timeout"}}),C}}},M='(()=>{"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})}}))})();',D=null,()=>{if(null!==D)return D;let A=new Blob([M],{type:"application/javascript; charset=utf-8"}),Q=URL.createObjectURL(A);return D=c(Q),setTimeout(()=>URL.revokeObjectURL(Q)),D};var p=(typeof window>"u"?"undefined":typeof window)=="object",r={setTimeout:p?setTimeout.bind(window):setTimeout,clearTimeout:p?clearTimeout.bind(window):clearTimeout,setInterval:p?setInterval.bind(window):setInterval,clearInterval:p?clearInterval.bind(window):clearInterval},a={},o=class{name;closed=!1;mc=new MessageChannel;constructor(A){this.name=A,a[A]=a[A]||[],a[A].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(A){if(A.storageArea!==window.localStorage||A.key.substring(0,this.name.length)!==this.name||null===A.newValue)return;let Q=JSON.parse(A.newValue);this.mc.port2.postMessage(Q)}postMessage(A){if(this.closed)throw Error("InvalidStateError");let Q=JSON.stringify(A),B=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(B,Q),r.setTimeout(()=>{window.localStorage.removeItem(B)},500),a[this.name].forEach(A=>{A!==this&&A.mc.port2.postMessage(JSON.parse(Q))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let A=a[this.name].indexOf(this);a[this.name].splice(A,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(A){this.mc.port1.onmessage=A}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(A){this.mc.port1.onmessageerror=A}addEventListener(A,Q){return this.mc.port1.addEventListener(A,Q)}removeEventListener(A,Q){return this.mc.port1.removeEventListener(A,Q)}dispatchEvent(A){return this.mc.port1.dispatchEvent(A)}},N=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:o;function e(){return Math.random().toString(36).substring(2)}var J=class{options;channel;token=e();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(A,Q){this.channel=A,this.options=Q,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 A=!1,Q=Q=>{let{token:B,action:C}=Q.data;B!==this.token&&(0===C&&B>this.token&&(A=!0),1===C&&(A=!0))};this.channel.addEventListener("message",Q);try{return this.sendAction(0),await function(A=0){return new Promise(Q=>r.setTimeout(Q,A))}(this.options.responseTime),this.channel.removeEventListener("message",Q),this.isApplying=!1,A?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let A=!1,Q=null;return new Promise(B=>{let C=()=>{if(A)return;A=!0;try{r.clearInterval(Q)}catch{}let C=this.intervals.indexOf(Q);C>=0&&this.intervals.splice(C,1),this.channel.removeEventListener("message",I),B()};Q=r.setInterval(()=>{this.apply().then(()=>{this.isLeader&&C()})},this.options.fallbackInterval),this.intervals.push(Q);let I=A=>{let{action:Q}=A.data;2===Q&&this.apply().then(()=>{this.isLeader&&C()})};this.channel.addEventListener("message",I)})}sendAction(A){this.channel.postMessage({action:A,token:this.token})}assumeLead(){this.isLeader=!0;let A=A=>{let{action:Q}=A.data;0===Q&&this.sendAction(1)};return this.channel.addEventListener("message",A),this.listeners.push(A),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(A=>this.channel.removeEventListener("message",A)),this.intervals.forEach(A=>r.clearInterval(A))}catch{}}}},S=class{channel;options;elector;token=e();registry=new Map;allIdle=!1;isLastActive=!1;constructor(A){let{channelName:Q}=A;this.options=A,this.channel=new N(Q),this.registry.set(this.token,1),A.leaderElection&&(this.elector=new J(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",A=>{let{action:Q,token:B,data:C}=A.data;switch(Q){case 3:this.registry.set(B,2);break;case 4:this.registry.delete(B);break;case 5:this.idle(B);break;case 6:this.active(B);break;case 7:this.prompt(B);break;case 8:this.start(B);break;case 9:this.reset(B);break;case 10:this.activate(B);break;case 11:this.pause(B);break;case 12:this.resume(B);break;case 13:this.options.onMessage(C)}}),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(A=this.token){this.registry.set(A,0);let Q=[...this.registry.values()].every(A=>0===A);A===this.token&&this.send(7),Q&&this.options.onPrompt()}idle(A=this.token){this.registry.set(A,2);let Q=[...this.registry.values()].every(A=>2===A);A===this.token&&this.send(5),!this.allIdle&&Q&&(this.allIdle=!0,this.options.onIdle())}active(A=this.token){this.allIdle=!1,this.registry.set(A,1);let Q=[...this.registry.values()].some(A=>1===A);A===this.token&&this.send(6),Q&&this.options.onActive(),this.isLastActive=A===this.token}start(A=this.token){this.allIdle=!1,this.registry.set(A,1),A===this.token?this.send(8):this.options.start(!0),this.isLastActive=A===this.token}reset(A=this.token){this.allIdle=!1,this.registry.set(A,1),A===this.token?this.send(9):this.options.reset(!0),this.isLastActive=A===this.token}activate(A=this.token){this.allIdle=!1,this.registry.set(A,1),A===this.token?this.send(10):this.options.activate(!0),this.isLastActive=A===this.token}pause(A=this.token){A===this.token?this.send(11):this.options.pause(!0)}resume(A=this.token){A===this.token?this.send(12):this.options.resume(!0)}message(A){try{this.channel.postMessage({action:13,token:this.token,data:A})}catch{}}send(A){try{this.channel.postMessage({action:A,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},F=p?document:null,l=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function Y(A,Q){let B=0;return function(...C){let I=new Date().getTime();if(!(I-BDate.now();function f({timeout:A=12e5,promptTimeout:Q=0,promptBeforeIdle:B=0,element:C=F,events:I=l,timers:E,immediateEvents:g=[],onPresenceChange:w=()=>{},onPrompt:D=()=>{},onIdle:c=()=>{},onActive:M=()=>{},onAction:y=()=>{},onMessage:n=()=>{},debounce:h=0,throttle:k=0,eventsThrottle:K=200,startOnMount:t=!0,startManually:U=!1,stopOnIdle:L=!1,crossTab:i=!1,name:G="idle-timer",syncTimers:a=0,leaderElection:o=!1,disabled:N=!1}={}){let e=(0,s.useRef)(H()),J=(0,s.useRef)(H()),f=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,s.useRef)(0),R=(0,s.useRef)(0),j=(0,s.useRef)(0),b=(0,s.useRef)(0),m=(0,s.useRef)(!1),Z=(0,s.useRef)(!1),T=(0,s.useRef)(!1),P=(0,s.useRef)(!0),O=(0,s.useRef)(!1),W=(0,s.useRef)(null),z=(0,s.useRef)(null),x=(0,s.useRef)(A),V=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(Q&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),B&&Q)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(A>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(Q>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(B>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(B>=A)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${A}.`);if(B?(x.current=A-B,V.current=B):(x.current=A,V.current=Q),!P.current){if(U||N)return;m.current&&(AC.current(null,Aj),z.current&&z.current.active()),AU()}},[A,Q,B,U,N]);let v=(0,s.useRef)(L);(0,s.useEffect)(()=>{v.current=L},[L]);let X=(0,s.useRef)(g),q=(0,s.useRef)(C),_=(0,s.useRef)([...new Set([...I,...g]).values()]),$=(0,s.useRef)(N);(0,s.useEffect)(()=>{$.current=N,!P.current&&(N?AG():U||AU())},[N]);let AA=(0,s.useRef)(w);(0,s.useEffect)(()=>{AA.current=w},[w]);let AQ=(0,s.useRef)(D);(0,s.useEffect)(()=>{AQ.current=D},[D]);let AB=(0,s.useRef)(c);(0,s.useEffect)(()=>{AB.current=c},[c]);let AC=(0,s.useRef)(M);(0,s.useEffect)(()=>{AC.current=M},[M]);let AI=(0,s.useRef)(y);(0,s.useEffect)(()=>{AI.current=y},[y]);let AE=(0,s.useRef)(n);(0,s.useEffect)(()=>{AE.current=n},[n]);let Ag=(0,s.useMemo)(()=>{let A=(A,Q)=>AI.current(A,Q);return h>0?function(A,Q){let B;function C(...I){B&&clearTimeout(B),B=setTimeout(()=>{A(...I),B=null},Q)}return C.cancel=function(){clearTimeout(B)},C}(A,h):k>0?Y(A,k):A},[k,h]),Aw=(0,s.useRef)();(0,s.useEffect)(()=>{i&&a&&(Aw.current=Y(()=>{z.current.active()},a))},[i,a]);let AD=()=>{null!==W.current&&(r.clearTimeout(W.current),W.current=null)},Ac=(A,Q=!0)=>{AD(),W.current=r.setTimeout(An,A||x.current),Q&&(d.current=H())},AM=A=>{Z.current||m.current||(AQ.current(A,Aj),AA.current({type:"active",prompted:!0},Aj)),b.current=0,j.current=H(),Z.current=!0,Ac(V.current,!1)},As=()=>{AD(),m.current||(AB.current(null,Aj),AA.current({type:"idle"},Aj)),m.current=!0,f.current=H(),v.current?At():Z.current&&(j.current=0,Z.current=!1)},Ay=A=>{AD(),(m.current||Z.current)&&(AC.current(A,Aj),AA.current({type:"active",prompted:!1},Aj)),Z.current=!1,j.current=0,m.current=!1,u.current+=H()-f.current,R.current+=H()-f.current,AK(),Ac()},An=A=>{if(!m.current){Ag.cancel&&Ag.cancel();let Q=H()-d.current;if(!(x.current+V.current0&&!Z.current){z.current?z.current.prompt():AM(A);return}z.current?z.current.idle():As();return}z.current?z.current.active():Ay(A)},Ah=A=>{if(t||d.current||(d.current=H(),AC.current(null,Aj)),Ag(A,Aj),Z.current)return;if(AD(),!m.current&&X.current.includes(A.type)){An(A);return}let Q=H()-d.current;if(m.current&&!L||!m.current&&Q>=x.current){An(A);return}T.current=!1,b.current=0,j.current=0,Ac(),i&&a&&Aw.current()},Ak=(0,s.useRef)(Ah);(0,s.useEffect)(()=>{let A=O.current;A&&At(),K>0?Ak.current=Y(Ah,K):Ak.current=Ah,A&&AK()},[K,k,h,AI,i,a]);let AK=()=>{p&&q.current&&(O.current||(_.current.forEach(A=>{q.current.addEventListener(A,Ak.current,{capture:!0,passive:!0})}),O.current=!0))},At=(A=!1)=>{p&&q.current&&(O.current||A)&&(_.current.forEach(A=>{q.current.removeEventListener(A,Ak.current,{capture:!0})}),O.current=!1)},AU=(0,s.useCallback)(A=>!$.current&&(AD(),AK(),m.current=!1,Z.current=!1,T.current=!1,b.current=0,j.current=0,z.current&&!A&&z.current.start(),Ac(),!0),[W,m,$,x,z]),AL=(0,s.useCallback)(A=>!$.current&&(AD(),AK(),J.current=H(),u.current+=H()-f.current,R.current+=H()-f.current,u.current=0,m.current=!1,Z.current=!1,T.current=!1,b.current=0,j.current=0,z.current&&!A&&z.current.reset(),U||Ac(),!0),[W,m,x,U,$,z]),Ai=(0,s.useCallback)(A=>!$.current&&(AD(),AK(),(m.current||Z.current)&&Ay(),m.current=!1,Z.current=!1,T.current=!1,b.current=0,j.current=0,J.current=H(),z.current&&!A&&z.current.activate(),Ac(),!0),[W,m,Z,$,x,z]),AG=(0,s.useCallback)((A=!1)=>!$.current&&!T.current&&(b.current=AS(),T.current=!0,At(),AD(),z.current&&!A&&z.current.pause(),!0),[W,$,z]),Ap=(0,s.useCallback)((A=!1)=>!$.current&&!!T.current&&(T.current=!1,Z.current||AK(),m.current||Ac(b.current),j.current&&(j.current=H()),z.current&&!A&&z.current.resume(),!0),[W,x,$,b,z]),Ar=(0,s.useCallback)((A,Q)=>(z.current?(Q&&AE.current(A,Aj),z.current.message(A)):Q&&AE.current(A,Aj),!0),[n]),Aa=(0,s.useCallback)(()=>m.current,[m]),Ao=(0,s.useCallback)(()=>Z.current,[Z]),AN=(0,s.useCallback)(()=>z.current?z.current.isLeader:null,[z]),Ae=(0,s.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),AJ=(0,s.useCallback)(()=>z.current?z.current.token:null,[z]),AS=(0,s.useCallback)(()=>{if(T.current)return b.current;let A=Math.floor((b.current?b.current:V.current+x.current)-(d.current?H()-d.current:0));return A<0?0:Math.abs(A)},[x,V,Z,b,d]),AF=(0,s.useCallback)(()=>Math.round(H()-J.current),[J]),Al=(0,s.useCallback)(()=>Math.round(H()-e.current),[e]),AY=(0,s.useCallback)(()=>f.current?new Date(f.current):null,[f]),AH=(0,s.useCallback)(()=>d.current?new Date(d.current):null,[d]),Af=(0,s.useCallback)(()=>m.current?Math.round(H()-f.current+u.current):Math.round(u.current),[f,u]),Ad=(0,s.useCallback)(()=>m.current?Math.round(H()-f.current+R.current):Math.round(R.current),[f,R]),Au=(0,s.useCallback)(()=>{let A=Math.round(AF()-Af());return A>=0?A:0},[f,u]),AR=(0,s.useCallback)(()=>{let A=Math.round(Al()-Ad());return A>=0?A:0},[f,u]);(0,s.useEffect)(()=>{if(h>0&&k>0)throw Error("❌ onAction can either be throttled or debounced, not both.");E&&(r.setTimeout=E.setTimeout,r.clearTimeout=E.clearTimeout,r.setInterval=E.setInterval,r.clearInterval=E.clearInterval);let A=()=>{z.current&&z.current.close(),Ag.cancel&&Ag.cancel(),AD(),At(!0)};return p&&window.addEventListener("beforeunload",A),()=>{p&&window.removeEventListener("beforeunload",A),z.current&&z.current.close(),Ag.cancel&&Ag.cancel(),AD(),At(!0)}},[]),(0,s.useEffect)(()=>{z.current&&z.current.close(),i?z.current=new S({channelName:G,leaderElection:o,onPrompt:()=>{AM()},onIdle:()=>{As()},onActive:()=>{Ay()},onMessage:A=>{AE.current(A,Aj)},start:AU,reset:AL,activate:Ai,pause:AG,resume:Ap}):z.current=null},[i,G,o,AQ,AB,AC,AE,AU,AL,AG,Ap]),(0,s.useEffect)(()=>{P.current||(AD(),At(!0)),U||N||(t?AU():AK())},[U,t,N,P]),(0,s.useEffect)(()=>{if(!P.current){let A=[...new Set([...I,...g]).values()];At(),_.current=A,q.current=C,X.current=g,U||N||(t?AU():AK())}},[C,JSON.stringify(I),JSON.stringify(g),P,N,U,t]),(0,s.useEffect)(()=>{P.current&&(P.current=!1)},[P]);let Aj={message:Ar,start:AU,reset:AL,activate:Ai,pause:AG,resume:Ap,isIdle:Aa,isPrompted:Ao,isLeader:AN,isLastActiveTab:Ae,getTabId:AJ,getRemainingTime:AS,getElapsedTime:AF,getTotalElapsedTime:Al,getLastIdleTime:AY,getLastActiveTime:AH,getIdleTime:Af,getTotalIdleTime:Ad,getActiveTime:Au,getTotalActiveTime:AR,setOnPresenceChange:A=>{w=A,AA.current=A},setOnPrompt:A=>{D=A,AQ.current=A},setOnIdle:A=>{c=A,AB.current=A},setOnActive:A=>{M=A,AC.current=A},setOnAction:A=>{y=A,AI.current=A},setOnMessage:A=>{n=A,AE.current=A}};return Aj}(0,s.createContext)(null).Consumer},72660:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var C=E(B(13980)),I=E(B(2784));function E(A){return A&&A.__esModule?A:{default:A}}var g={d:C.default.string.isRequired,fill:C.default.string.isRequired,transformX:C.default.number.isRequired,transformY:C.default.number.isRequired},w=function(A){var Q=A.d,B=A.fill,C=A.transformX,E=A.transformY;return I.default.createElement("path",{d:Q,fill:B,transform:"matrix("+[1,0,0,1,C,E]+")"})};w.propTypes=g,w.defaultProps={},Q.default=w},76672:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var C=Object.assign||function(A){for(var Q=1;Q=0)&&Object.prototype.hasOwnProperty.call(A,C)&&(B[C]=A[C]);return B}(A,["children","size","title","xmlns"]);return E.default.createElement("svg",C({},w,{height:B,width:B,xmlns:g}),I?E.default.createElement("title",null,I):null,Q)};D.propTypes=w,D.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},Q.default=D},38001:function(A,Q,B){"use strict";var C=Object.assign||function(A){for(var Q=1;Q=0)&&Object.prototype.hasOwnProperty.call(A,C)&&(B[C]=A[C]);return B}(A,["bgColor","fgColor","level","size","value"]),n=new I.default(-1,E.default[g]);n.addData(s),n.make();var h=n.modules,k=w/h.length;return D.default.createElement(M.default,C({},y,{size:w}),h.map(function(A,C){return A.map(function(A,I){var E=Math.round(I*k),g=Math.round(C*k),w=Math.round((I+1)*k)-E,M=Math.round((C+1)*k)-g;return D.default.createElement(c.default,{key:"rectangle-"+C+"-"+I,d:"M 0 0 L "+w+" 0 L "+w+" "+M+" L 0 "+M+" Z",fill:A?B:Q,transformX:E,transformY:g})})}))};n.propTypes=y,n.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},Q.Z=(0,w.memo)(n)},32718:function(A,Q,B){var C,I=B(58085),E=B(41964),g=B(53207),w=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;A.exports=function(A,Q){return C=0,Q=Math.pow(10,void 0===Q?5:Q),E(A=A.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function A(B,E,D){if(C++>100)throw C=0,Error("Call stack overflow for "+D);if(""===B)throw Error(E+"(): '"+D+"' must contain a non-whitespace string");var c,M=function(A){for(var Q=[],B=[],C=/[\.0-9]([%a-z]+)/gi,I=C.exec(A);I;)I&&I[1]&&(-1===B.indexOf(I[1].toLowerCase())&&(Q.push(I[1]),B.push(I[1].toLowerCase())),I=C.exec(A));return Q}(B=function(Q,B){Q=Q.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var C,E="",g=Q;C=w.exec(g);){C[0].index>0&&(E+=g.substring(0,C[0].index));var D=I("(",")",g.substring([0].index));if(""===D.body)throw Error("'"+Q+"' must contain a non-whitespace string");var c=A(D.body,"",B);E+=D.pre+c,g=D.post}return E+g}(B,D));if(M.length>1||B.indexOf("var(")>-1)return E+"("+B+")";var s=M[0]||"";"%"===s&&(B=B.replace(/\b[0-9\.]+%/g,function(A){return .01*parseFloat(A.slice(0,-1))}));var y=B.replace(RegExp(s,"gi"),"");try{c=g.eval(y)}catch(A){return E+"("+B+")"}return"%"===s&&(c*=100),(E.length||"%"===s)&&(c=Math.round(c*Q)/Q),c+=s})}},58085:function(A){function Q(A,Q,I){A instanceof RegExp&&(A=B(A,I)),Q instanceof RegExp&&(Q=B(Q,I));var E=C(A,Q,I);return E&&{start:E[0],end:E[1],pre:I.slice(0,E[0]),body:I.slice(E[0]+A.length,E[1]),post:I.slice(E[1]+Q.length)}}function B(A,Q){var B=Q.match(A);return B?B[0]:null}function C(A,Q,B){var C,I,E,g,w,D=B.indexOf(A),c=B.indexOf(Q,D+1),M=D;if(D>=0&&c>0){for(C=[],E=B.length;M>=0&&!w;)M==D?(C.push(M),D=B.indexOf(A,M+1)):1==C.length?w=[C.pop(),c]:((I=C.pop())=0?D:c;C.length&&(w=[E,g])}return w}A.exports=Q,Q.range=C},41964:function(A,Q,B){var C=B(82294);A.exports=function A(Q,B,I){return(function(A,Q){var B=[],I="string"==typeof Q?RegExp("\\b("+Q+")\\("):Q;do{var E=I.exec(A);if(!E)break;if(void 0===E[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+Q);var g=E[1],w=E.index,D=C("(",")",A.substring(w));if(!D||D.start!==E[0].length-1)throw SyntaxError(g+"(): missing closing ')' in the value '"+A+"'");B.push({matches:D,functionIdentifier:g}),A=D.post}while(I.test(A));return B})(Q,B).reduce(function(C,E){var g,w;return C.replace(E.functionIdentifier+"("+E.matches.body+")",(g=E.matches.body,w=E.functionIdentifier,I(A(g,B,I),w,Q)))},Q)}},7847:function(A,Q,B){let C=Symbol("SemVer ANY");class I{static get ANY(){return C}constructor(A,Q){if(Q=E(Q),A instanceof I){if(!!Q.loose===A.loose)return A;A=A.value}c("comparator",A=A.trim().split(/\s+/).join(" "),Q),this.options=Q,this.loose=!!Q.loose,this.parse(A),this.semver===C?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(A){let Q=this.options.loose?g[w.COMPARATORLOOSE]:g[w.COMPARATOR],B=A.match(Q);if(!B)throw TypeError(`Invalid comparator: ${A}`);this.operator=void 0!==B[1]?B[1]:"","="===this.operator&&(this.operator=""),B[2]?this.semver=new M(B[2],this.options.loose):this.semver=C}toString(){return this.value}test(A){if(c("Comparator.test",A,this.options.loose),this.semver===C||A===C)return!0;if("string"==typeof A)try{A=new M(A,this.options)}catch(A){return!1}return D(A,this.operator,this.semver,this.options)}intersects(A,Q){if(!(A instanceof I))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(A.value,Q).test(this.value):""===A.operator?""===A.value||new s(this.value,Q).test(A.semver):!((Q=E(Q)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===A.value)||!Q.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&A.operator.startsWith(">")||this.operator.startsWith("<")&&A.operator.startsWith("<")||this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("=")||D(this.semver,"<",A.semver,Q)&&this.operator.startsWith(">")&&A.operator.startsWith("<")||D(this.semver,">",A.semver,Q)&&this.operator.startsWith("<")&&A.operator.startsWith(">"))}}A.exports=I;let E=B(25315),{safeRe:g,t:w}=B(94808),D=B(28117),c=B(10952),M=B(52435),s=B(66843)},66843:function(A,Q,B){class C{constructor(A,Q){if(Q=E(Q),A instanceof C){if(!!Q.loose===A.loose&&!!Q.includePrerelease===A.includePrerelease)return A;return new C(A.raw,Q)}if(A instanceof g)return this.raw=A.value,this.set=[[A]],this.format(),this;if(this.options=Q,this.loose=!!Q.loose,this.includePrerelease=!!Q.includePrerelease,this.raw=A.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(A=>this.parseRange(A.trim())).filter(A=>A.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let A=this.set[0];if(this.set=this.set.filter(A=>!K(A[0])),0===this.set.length)this.set=[A];else if(this.set.length>1){for(let A of this.set)if(1===A.length&&t(A[0])){this.set=[A];break}}}this.format()}format(){return this.range=this.set.map(A=>A.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(A){let Q=((this.options.includePrerelease&&h)|(this.options.loose&&k))+":"+A,B=I.get(Q);if(B)return B;let C=this.options.loose,E=C?c[M.HYPHENRANGELOOSE]:c[M.HYPHENRANGE];w("hyphen replace",A=A.replace(E,S(this.options.includePrerelease))),w("comparator trim",A=A.replace(c[M.COMPARATORTRIM],s)),w("tilde trim",A=A.replace(c[M.TILDETRIM],y)),w("caret trim",A=A.replace(c[M.CARETTRIM],n));let D=A.split(" ").map(A=>L(A,this.options)).join(" ").split(/\s+/).map(A=>J(A,this.options));C&&(D=D.filter(A=>(w("loose invalid filter",A,this.options),!!A.match(c[M.COMPARATORLOOSE])))),w("range list",D);let t=new Map;for(let A of D.map(A=>new g(A,this.options))){if(K(A))return[A];t.set(A.value,A)}t.size>1&&t.has("")&&t.delete("");let U=[...t.values()];return I.set(Q,U),U}intersects(A,Q){if(!(A instanceof C))throw TypeError("a Range is required");return this.set.some(B=>U(B,Q)&&A.set.some(A=>U(A,Q)&&B.every(B=>A.every(A=>B.intersects(A,Q)))))}test(A){if(!A)return!1;if("string"==typeof A)try{A=new D(A,this.options)}catch(A){return!1}for(let Q=0;Q"<0.0.0-0"===A.value,t=A=>""===A.value,U=(A,Q)=>{let B=!0,C=A.slice(),I=C.pop();for(;B&&C.length;)B=C.every(A=>I.intersects(A,Q)),I=C.pop();return B},L=(A,Q)=>(w("comp",A,Q),w("caret",A=r(A,Q)),w("tildes",A=G(A,Q)),w("xrange",A=o(A,Q)),w("stars",A=e(A,Q)),A),i=A=>!A||"x"===A.toLowerCase()||"*"===A,G=(A,Q)=>A.trim().split(/\s+/).map(A=>p(A,Q)).join(" "),p=(A,Q)=>{let B=Q.loose?c[M.TILDELOOSE]:c[M.TILDE];return A.replace(B,(Q,B,C,I,E)=>{let g;return w("tilde",A,Q,B,C,I,E),i(B)?g="":i(C)?g=`>=${B}.0.0 <${+B+1}.0.0-0`:i(I)?g=`>=${B}.${C}.0 <${B}.${+C+1}.0-0`:E?(w("replaceTilde pr",E),g=`>=${B}.${C}.${I}-${E} <${B}.${+C+1}.0-0`):g=`>=${B}.${C}.${I} <${B}.${+C+1}.0-0`,w("tilde return",g),g})},r=(A,Q)=>A.trim().split(/\s+/).map(A=>a(A,Q)).join(" "),a=(A,Q)=>{w("caret",A,Q);let B=Q.loose?c[M.CARETLOOSE]:c[M.CARET],C=Q.includePrerelease?"-0":"";return A.replace(B,(Q,B,I,E,g)=>{let D;return w("caret",A,Q,B,I,E,g),i(B)?D="":i(I)?D=`>=${B}.0.0${C} <${+B+1}.0.0-0`:i(E)?D="0"===B?`>=${B}.${I}.0${C} <${B}.${+I+1}.0-0`:`>=${B}.${I}.0${C} <${+B+1}.0.0-0`:g?(w("replaceCaret pr",g),D="0"===B?"0"===I?`>=${B}.${I}.${E}-${g} <${B}.${I}.${+E+1}-0`:`>=${B}.${I}.${E}-${g} <${B}.${+I+1}.0-0`:`>=${B}.${I}.${E}-${g} <${+B+1}.0.0-0`):(w("no pr"),D="0"===B?"0"===I?`>=${B}.${I}.${E}${C} <${B}.${I}.${+E+1}-0`:`>=${B}.${I}.${E}${C} <${B}.${+I+1}.0-0`:`>=${B}.${I}.${E} <${+B+1}.0.0-0`),w("caret return",D),D})},o=(A,Q)=>(w("replaceXRanges",A,Q),A.split(/\s+/).map(A=>N(A,Q)).join(" ")),N=(A,Q)=>{A=A.trim();let B=Q.loose?c[M.XRANGELOOSE]:c[M.XRANGE];return A.replace(B,(B,C,I,E,g,D)=>{w("xRange",A,B,C,I,E,g,D);let c=i(I),M=c||i(E),s=M||i(g);return"="===C&&s&&(C=""),D=Q.includePrerelease?"-0":"",c?B=">"===C||"<"===C?"<0.0.0-0":"*":C&&s?(M&&(E=0),g=0,">"===C?(C=">=",M?(I=+I+1,E=0):E=+E+1,g=0):"<="===C&&(C="<",M?I=+I+1:E=+E+1),"<"===C&&(D="-0"),B=`${C+I}.${E}.${g}${D}`):M?B=`>=${I}.0.0${D} <${+I+1}.0.0-0`:s&&(B=`>=${I}.${E}.0${D} <${I}.${+E+1}.0-0`),w("xRange return",B),B})},e=(A,Q)=>(w("replaceStars",A,Q),A.trim().replace(c[M.STAR],"")),J=(A,Q)=>(w("replaceGTE0",A,Q),A.trim().replace(c[Q.includePrerelease?M.GTE0PRE:M.GTE0],"")),S=A=>(Q,B,C,I,E,g,w,D,c,M,s,y,n)=>(B=i(C)?"":i(I)?`>=${C}.0.0${A?"-0":""}`:i(E)?`>=${C}.${I}.0${A?"-0":""}`:g?`>=${B}`:`>=${B}${A?"-0":""}`,D=i(c)?"":i(M)?`<${+c+1}.0.0-0`:i(s)?`<${c}.${+M+1}.0-0`:y?`<=${c}.${M}.${s}-${y}`:A?`<${c}.${M}.${+s+1}-0`:`<=${D}`,`${B} ${D}`.trim()),F=(A,Q,B)=>{for(let B=0;B0){let C=A[B].semver;if(C.major===Q.major&&C.minor===Q.minor&&C.patch===Q.patch)return!0}return!1}return!0}},52435:function(A,Q,B){let C=B(10952),{MAX_LENGTH:I,MAX_SAFE_INTEGER:E}=B(55558),{safeRe:g,t:w}=B(94808),D=B(25315),{compareIdentifiers:c}=B(14935);class M{constructor(A,Q){if(Q=D(Q),A instanceof M){if(!!Q.loose===A.loose&&!!Q.includePrerelease===A.includePrerelease)return A;A=A.version}else if("string"!=typeof A)throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>I)throw TypeError(`version is longer than ${I} characters`);C("SemVer",A,Q),this.options=Q,this.loose=!!Q.loose,this.includePrerelease=!!Q.includePrerelease;let B=A.trim().match(Q.loose?g[w.LOOSE]:g[w.FULL]);if(!B)throw TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+B[1],this.minor=+B[2],this.patch=+B[3],this.major>E||this.major<0)throw TypeError("Invalid major version");if(this.minor>E||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>E||this.patch<0)throw TypeError("Invalid patch version");B[4]?this.prerelease=B[4].split(".").map(A=>{if(/^[0-9]+$/.test(A)){let Q=+A;if(Q>=0&&Q=0;)"number"==typeof this.prerelease[C]&&(this.prerelease[C]++,C=-2);if(-1===C){if(Q===this.prerelease.join(".")&&!1===B)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(A)}}if(Q){let C=[Q,A];!1===B&&(C=[Q]),0===c(this.prerelease[0],Q)?isNaN(this.prerelease[1])&&(this.prerelease=C):this.prerelease=C}break}default:throw Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}A.exports=M},36694:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A.trim().replace(/^[=v]+/,""),Q);return B?B.version:null}},28117:function(A,Q,B){let C=B(33276),I=B(77893),E=B(16379),g=B(8463),w=B(21897),D=B(30506);A.exports=(A,Q,B,c)=>{switch(Q){case"===":return"object"==typeof A&&(A=A.version),"object"==typeof B&&(B=B.version),A===B;case"!==":return"object"==typeof A&&(A=A.version),"object"==typeof B&&(B=B.version),A!==B;case"":case"=":case"==":return C(A,B,c);case"!=":return I(A,B,c);case">":return E(A,B,c);case">=":return g(A,B,c);case"<":return w(A,B,c);case"<=":return D(A,B,c);default:throw TypeError(`Invalid operator: ${Q}`)}}},98686:function(A,Q,B){let C=B(52435),I=B(79943),{safeRe:E,t:g}=B(94808);A.exports=(A,Q)=>{if(A instanceof C)return A;if("number"==typeof A&&(A=String(A)),"string"!=typeof A)return null;let B=null;if((Q=Q||{}).rtl){let Q;for(;(Q=E[g.COERCERTL].exec(A))&&(!B||B.index+B[0].length!==A.length);)B&&Q.index+Q[0].length===B.index+B[0].length||(B=Q),E[g.COERCERTL].lastIndex=Q.index+Q[1].length+Q[2].length;E[g.COERCERTL].lastIndex=-1}else B=A.match(E[g.COERCE]);return null===B?null:I(`${B[2]}.${B[3]||"0"}.${B[4]||"0"}`,Q)}},65914:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B)=>{let I=new C(A,B),E=new C(Q,B);return I.compare(E)||I.compareBuild(E)}},55404:function(A,Q,B){let C=B(92271);A.exports=(A,Q)=>C(A,Q,!0)},92271:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B)=>new C(A,B).compare(new C(Q,B))},66007:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A,null,!0),I=C(Q,null,!0),E=B.compare(I);if(0===E)return null;let g=E>0,w=g?B:I,D=g?I:B,c=!!w.prerelease.length;if(D.prerelease.length&&!c)return D.patch||D.minor?w.patch?"patch":w.minor?"minor":"major":"major";let M=c?"pre":"";return B.major!==I.major?M+"major":B.minor!==I.minor?M+"minor":B.patch!==I.patch?M+"patch":"prerelease"}},33276:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0===C(A,Q,B)},16379:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>C(A,Q,B)>0},8463:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>C(A,Q,B)>=0},86360:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B,I,E)=>{"string"==typeof B&&(E=I,I=B,B=void 0);try{return new C(A instanceof C?A.version:A,B).inc(Q,I,E).version}catch(A){return null}}},21897:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0>C(A,Q,B)},30506:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0>=C(A,Q,B)},50023:function(A,Q,B){let C=B(52435);A.exports=(A,Q)=>new C(A,Q).major},469:function(A,Q,B){let C=B(52435);A.exports=(A,Q)=>new C(A,Q).minor},77893:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0!==C(A,Q,B)},79943:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B=!1)=>{if(A instanceof C)return A;try{return new C(A,Q)}catch(A){if(!B)return null;throw A}}},54250:function(A,Q,B){let C=B(52435);A.exports=(A,Q)=>new C(A,Q).patch},58204:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A,Q);return B&&B.prerelease.length?B.prerelease:null}},70733:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>C(Q,A,B)},72961:function(A,Q,B){let C=B(65914);A.exports=(A,Q)=>A.sort((A,B)=>C(B,A,Q))},59844:function(A,Q,B){let C=B(66843);A.exports=(A,Q,B)=>{try{Q=new C(Q,B)}catch(A){return!1}return Q.test(A)}},51116:function(A,Q,B){let C=B(65914);A.exports=(A,Q)=>A.sort((A,B)=>C(A,B,Q))},97230:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A,Q);return B?B.version:null}},97699:function(A,Q,B){let C=B(94808),I=B(55558),E=B(52435),g=B(14935),w=B(79943),D=B(97230),c=B(36694),M=B(86360),s=B(66007),y=B(50023),n=B(469),h=B(54250),k=B(58204),K=B(92271),t=B(70733),U=B(55404),L=B(65914),i=B(51116),G=B(72961),p=B(16379),r=B(21897),a=B(33276),o=B(77893),N=B(8463),e=B(30506),J=B(28117),S=B(98686),F=B(7847),l=B(66843),Y=B(59844),H=B(48865),f=B(53727),d=B(14338),u=B(21542),R=B(36240),j=B(89106),b=B(90995),m=B(47805),Z=B(22013),T=B(81338),P=B(53122);A.exports={parse:w,valid:D,clean:c,inc:M,diff:s,major:y,minor:n,patch:h,prerelease:k,compare:K,rcompare:t,compareLoose:U,compareBuild:L,sort:i,rsort:G,gt:p,lt:r,eq:a,neq:o,gte:N,lte:e,cmp:J,coerce:S,Comparator:F,Range:l,satisfies:Y,toComparators:H,maxSatisfying:f,minSatisfying:d,minVersion:u,validRange:R,outside:j,gtr:b,ltr:m,intersects:Z,simplifyRange:T,subset:P,SemVer:E,re:C.re,src:C.src,tokens:C.t,SEMVER_SPEC_VERSION:I.SEMVER_SPEC_VERSION,RELEASE_TYPES:I.RELEASE_TYPES,compareIdentifiers:g.compareIdentifiers,rcompareIdentifiers:g.rcompareIdentifiers}},55558:function(A){let Q=Number.MAX_SAFE_INTEGER||9007199254740991;A.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Q,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},10952:function(A,Q,B){var C=B(93542);let I="object"==typeof C&&C.env&&C.env.NODE_DEBUG&&/\bsemver\b/i.test(C.env.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};A.exports=I},14935:function(A){let Q=/^[0-9]+$/,B=(A,B)=>{let C=Q.test(A),I=Q.test(B);return C&&I&&(A=+A,B=+B),A===B?0:C&&!I?-1:I&&!C?1:AB(Q,A)}},25315:function(A){let Q=Object.freeze({loose:!0}),B=Object.freeze({});A.exports=A=>A?"object"!=typeof A?Q:A:B},94808:function(A,Q,B){let{MAX_SAFE_COMPONENT_LENGTH:C,MAX_SAFE_BUILD_LENGTH:I,MAX_LENGTH:E}=B(55558),g=B(10952),w=(Q=A.exports={}).re=[],D=Q.safeRe=[],c=Q.src=[],M=Q.t={},s=0,y="[a-zA-Z0-9-]",n=[["\\s",1],["\\d",E],[y,I]],h=A=>{for(let[Q,B]of n)A=A.split(`${Q}*`).join(`${Q}{0,${B}}`).split(`${Q}+`).join(`${Q}{1,${B}}`);return A},k=(A,Q,B)=>{let C=h(Q),I=s++;g(A,I,Q),M[A]=I,c[I]=Q,w[I]=new RegExp(Q,B?"g":void 0),D[I]=new RegExp(C,B?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*"),k("NUMERICIDENTIFIERLOOSE","\\d+"),k("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),k("MAINVERSION",`(${c[M.NUMERICIDENTIFIER]})\\.(${c[M.NUMERICIDENTIFIER]})\\.(${c[M.NUMERICIDENTIFIER]})`),k("MAINVERSIONLOOSE",`(${c[M.NUMERICIDENTIFIERLOOSE]})\\.(${c[M.NUMERICIDENTIFIERLOOSE]})\\.(${c[M.NUMERICIDENTIFIERLOOSE]})`),k("PRERELEASEIDENTIFIER",`(?:${c[M.NUMERICIDENTIFIER]}|${c[M.NONNUMERICIDENTIFIER]})`),k("PRERELEASEIDENTIFIERLOOSE",`(?:${c[M.NUMERICIDENTIFIERLOOSE]}|${c[M.NONNUMERICIDENTIFIER]})`),k("PRERELEASE",`(?:-(${c[M.PRERELEASEIDENTIFIER]}(?:\\.${c[M.PRERELEASEIDENTIFIER]})*))`),k("PRERELEASELOOSE",`(?:-?(${c[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[M.PRERELEASEIDENTIFIERLOOSE]})*))`),k("BUILDIDENTIFIER",`${y}+`),k("BUILD",`(?:\\+(${c[M.BUILDIDENTIFIER]}(?:\\.${c[M.BUILDIDENTIFIER]})*))`),k("FULLPLAIN",`v?${c[M.MAINVERSION]}${c[M.PRERELEASE]}?${c[M.BUILD]}?`),k("FULL",`^${c[M.FULLPLAIN]}$`),k("LOOSEPLAIN",`[v=\\s]*${c[M.MAINVERSIONLOOSE]}${c[M.PRERELEASELOOSE]}?${c[M.BUILD]}?`),k("LOOSE",`^${c[M.LOOSEPLAIN]}$`),k("GTLT","((?:<|>)?=?)"),k("XRANGEIDENTIFIERLOOSE",`${c[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),k("XRANGEIDENTIFIER",`${c[M.NUMERICIDENTIFIER]}|x|X|\\*`),k("XRANGEPLAIN",`[v=\\s]*(${c[M.XRANGEIDENTIFIER]})(?:\\.(${c[M.XRANGEIDENTIFIER]})(?:\\.(${c[M.XRANGEIDENTIFIER]})(?:${c[M.PRERELEASE]})?${c[M.BUILD]}?)?)?`),k("XRANGEPLAINLOOSE",`[v=\\s]*(${c[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[M.XRANGEIDENTIFIERLOOSE]})(?:${c[M.PRERELEASELOOSE]})?${c[M.BUILD]}?)?)?`),k("XRANGE",`^${c[M.GTLT]}\\s*${c[M.XRANGEPLAIN]}$`),k("XRANGELOOSE",`^${c[M.GTLT]}\\s*${c[M.XRANGEPLAINLOOSE]}$`),k("COERCE",`(^|[^\\d])(\\d{1,${C}})(?:\\.(\\d{1,${C}}))?(?:\\.(\\d{1,${C}}))?(?:$|[^\\d])`),k("COERCERTL",c[M.COERCE],!0),k("LONETILDE","(?:~>?)"),k("TILDETRIM",`(\\s*)${c[M.LONETILDE]}\\s+`,!0),Q.tildeTrimReplace="$1~",k("TILDE",`^${c[M.LONETILDE]}${c[M.XRANGEPLAIN]}$`),k("TILDELOOSE",`^${c[M.LONETILDE]}${c[M.XRANGEPLAINLOOSE]}$`),k("LONECARET","(?:\\^)"),k("CARETTRIM",`(\\s*)${c[M.LONECARET]}\\s+`,!0),Q.caretTrimReplace="$1^",k("CARET",`^${c[M.LONECARET]}${c[M.XRANGEPLAIN]}$`),k("CARETLOOSE",`^${c[M.LONECARET]}${c[M.XRANGEPLAINLOOSE]}$`),k("COMPARATORLOOSE",`^${c[M.GTLT]}\\s*(${c[M.LOOSEPLAIN]})$|^$`),k("COMPARATOR",`^${c[M.GTLT]}\\s*(${c[M.FULLPLAIN]})$|^$`),k("COMPARATORTRIM",`(\\s*)${c[M.GTLT]}\\s*(${c[M.LOOSEPLAIN]}|${c[M.XRANGEPLAIN]})`,!0),Q.comparatorTrimReplace="$1$2$3",k("HYPHENRANGE",`^\\s*(${c[M.XRANGEPLAIN]})\\s+-\\s+(${c[M.XRANGEPLAIN]})\\s*$`),k("HYPHENRANGELOOSE",`^\\s*(${c[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[M.XRANGEPLAINLOOSE]})\\s*$`),k("STAR","(<|>)?=?\\s*\\*"),k("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),k("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},90995:function(A,Q,B){let C=B(89106);A.exports=(A,Q,B)=>C(A,Q,">",B)},22013:function(A,Q,B){let C=B(66843);A.exports=(A,Q,B)=>(A=new C(A,B),Q=new C(Q,B),A.intersects(Q,B))},47805:function(A,Q,B){let C=B(89106);A.exports=(A,Q,B)=>C(A,Q,"<",B)},53727:function(A,Q,B){let C=B(52435),I=B(66843);A.exports=(A,Q,B)=>{let E=null,g=null,w=null;try{w=new I(Q,B)}catch(A){return null}return A.forEach(A=>{w.test(A)&&(!E||-1===g.compare(A))&&(g=new C(E=A,B))}),E}},14338:function(A,Q,B){let C=B(52435),I=B(66843);A.exports=(A,Q,B)=>{let E=null,g=null,w=null;try{w=new I(Q,B)}catch(A){return null}return A.forEach(A=>{w.test(A)&&(!E||1===g.compare(A))&&(g=new C(E=A,B))}),E}},21542:function(A,Q,B){let C=B(52435),I=B(66843),E=B(16379);A.exports=(A,Q)=>{A=new I(A,Q);let B=new C("0.0.0");if(A.test(B)||(B=new C("0.0.0-0"),A.test(B)))return B;B=null;for(let Q=0;Q{let Q=new C(A.semver.version);switch(A.operator){case">":0===Q.prerelease.length?Q.patch++:Q.prerelease.push(0),Q.raw=Q.format();case"":case">=":(!g||E(Q,g))&&(g=Q);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${A.operator}`)}}),g&&(!B||E(B,g))&&(B=g)}return B&&A.test(B)?B:null}},89106:function(A,Q,B){let C=B(52435),I=B(7847),{ANY:E}=I,g=B(66843),w=B(59844),D=B(16379),c=B(21897),M=B(30506),s=B(8463);A.exports=(A,Q,B,y)=>{let n,h,k,K,t;switch(A=new C(A,y),Q=new g(Q,y),B){case">":n=D,h=M,k=c,K=">",t=">=";break;case"<":n=c,h=s,k=D,K="<",t="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(w(A,Q,y))return!1;for(let B=0;B{A.semver===E&&(A=new I(">=0.0.0")),g=g||A,w=w||A,n(A.semver,g.semver,y)?g=A:k(A.semver,w.semver,y)&&(w=A)}),g.operator===K||g.operator===t||(!w.operator||w.operator===K)&&h(A,w.semver)||w.operator===t&&k(A,w.semver))return!1}return!0}},81338:function(A,Q,B){let C=B(59844),I=B(92271);A.exports=(A,Q,B)=>{let E=[],g=null,w=null,D=A.sort((A,Q)=>I(A,Q,B));for(let A of D)C(A,Q,B)?(w=A,g||(g=A)):(w&&E.push([g,w]),w=null,g=null);g&&E.push([g,null]);let c=[];for(let[A,Q]of E)A===Q?c.push(A):Q||A!==D[0]?Q?A===D[0]?c.push(`<=${Q}`):c.push(`${A} - ${Q}`):c.push(`>=${A}`):c.push("*");let M=c.join(" || "),s="string"==typeof Q.raw?Q.raw:String(Q);return M.length=0.0.0-0")],c=[new I(">=0.0.0")],M=(A,Q,B)=>{let C,I,M,n,h,k,K;if(A===Q)return!0;if(1===A.length&&A[0].semver===E){if(1===Q.length&&Q[0].semver===E)return!0;A=B.includePrerelease?D:c}if(1===Q.length&&Q[0].semver===E){if(B.includePrerelease)return!0;Q=c}let t=new Set;for(let Q of A)">"===Q.operator||">="===Q.operator?C=s(C,Q,B):"<"===Q.operator||"<="===Q.operator?I=y(I,Q,B):t.add(Q.semver);if(t.size>1||C&&I&&((M=w(C.semver,I.semver,B))>0||0===M&&(">="!==C.operator||"<="!==I.operator)))return null;for(let A of t){if(C&&!g(A,String(C),B)||I&&!g(A,String(I),B))return null;for(let C of Q)if(!g(A,String(C),B))return!1;return!0}let U=!!I&&!B.includePrerelease&&!!I.semver.prerelease.length&&I.semver,L=!!C&&!B.includePrerelease&&!!C.semver.prerelease.length&&C.semver;for(let A of(U&&1===U.prerelease.length&&"<"===I.operator&&0===U.prerelease[0]&&(U=!1),Q)){if(K=K||">"===A.operator||">="===A.operator,k=k||"<"===A.operator||"<="===A.operator,C){if(L&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===L.major&&A.semver.minor===L.minor&&A.semver.patch===L.patch&&(L=!1),">"===A.operator||">="===A.operator){if((n=s(C,A,B))===A&&n!==C)return!1}else if(">="===C.operator&&!g(C.semver,String(A),B))return!1}if(I){if(U&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===U.major&&A.semver.minor===U.minor&&A.semver.patch===U.patch&&(U=!1),"<"===A.operator||"<="===A.operator){if((h=y(I,A,B))===A&&h!==I)return!1}else if("<="===I.operator&&!g(I.semver,String(A),B))return!1}if(!A.operator&&(I||C)&&0!==M)return!1}return(!C||!k||!!I||0===M)&&(!I||!K||!!C||0===M)&&!L&&!U},s=(A,Q,B)=>{if(!A)return Q;let C=w(A.semver,Q.semver,B);return C>0?A:C<0?Q:">"===Q.operator&&">="===A.operator?Q:A},y=(A,Q,B)=>{if(!A)return Q;let C=w(A.semver,Q.semver,B);return C<0?A:C>0?Q:"<"===Q.operator&&"<="===A.operator?Q:A};A.exports=(A,Q,B={})=>{if(A===Q)return!0;A=new C(A,B),Q=new C(Q,B);let I=!1;B:for(let C of A.set){for(let A of Q.set){let Q=M(C,A,B);if(I=I||null!==Q,Q)continue B}if(I)return!1}return!0}},48865:function(A,Q,B){let C=B(66843);A.exports=(A,Q)=>new C(A,Q).set.map(A=>A.map(A=>A.value).join(" ").trim().split(" "))},36240:function(A,Q,B){let C=B(66843);A.exports=(A,Q)=>{try{return new C(A,Q).range||"*"}catch(A){return null}}},6692:function(A,Q,B){let C=B(83128);A.exports=(C.__esModule?C:{default:C}).default},83128:function(A,Q,B){"use strict";var C;Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"default",{enumerable:!0,get:()=>g});let I=(C=B(37540))&&C.__esModule?C:{default:C};function E({version:A,from:Q,to:B}){I.default.warn(`${Q}-color-renamed`,[`As of Tailwind CSS ${A}, \`${Q}\` has been renamed to \`${B}\`.`,"Update your configuration file to silence this warning."])}let g={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 E({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return E({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return E({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return E({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return E({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(A,Q,B){"use strict";var C,I=B(93542);Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{dim:()=>D,default:()=>c});let E=(C=B(24470))&&C.__esModule?C:{default:C},g=new Set;function w(A,Q,B){(void 0===I||!I.env.JEST_WORKER_ID)&&(B&&g.has(B)||(B&&g.add(B),console.warn(""),Q.forEach(Q=>console.warn(A,"-",Q))))}function D(A){return E.default.dim(A)}let c={info(A,Q){w(E.default.bold(E.default.cyan("info")),...Array.isArray(A)?[A]:[Q,A])},warn(A,Q){w(E.default.bold(E.default.yellow("warn")),...Array.isArray(A)?[A]:[Q,A])},risk(A,Q){w(E.default.bold(E.default.magenta("risk")),...Array.isArray(A)?[A]:[Q,A])}}},95159:function(A){function Q(A,Q){var B=A.length,C=Array(B),I={},E=B,g=function(A){for(var Q=new Map,B=0,C=A.length;B{},{isPersistent:!0,removeItem:()=>{}}];let D=null==Q?void 0:Q.serializer;return function(A,Q,B=!0,D=function(A){return"undefined"===A?void 0:JSON.parse(A)},c=JSON.stringify){I.has(A)||void 0===Q||null!==w(()=>localStorage.getItem(A))||w(()=>localStorage.setItem(A,c(Q)));let M=(0,C.useRef)({item:null,parsed:Q}),s=(0,C.useSyncExternalStore)((0,C.useCallback)(Q=>{let B=B=>{A===B&&Q()};return E.add(B),()=>{E.delete(B)}},[A]),()=>{var B;let C=null!==(B=w(()=>localStorage.getItem(A)))&&void 0!==B?B:null;if(I.has(A))M.current={item:C,parsed:I.get(A)};else if(C!==M.current.item){let A;try{A=null===C?Q:D(C)}catch(B){A=Q}M.current={item:C,parsed:A}}return M.current.parsed},()=>Q),y=(0,C.useCallback)(Q=>{let B=Q instanceof Function?Q(M.current.parsed):Q;try{localStorage.setItem(A,c(B)),I.delete(A)}catch(Q){I.set(A,B)}g(A)},[A,c]);return(0,C.useEffect)(()=>{if(!B)return;let Q=Q=>{Q.storageArea===w(()=>localStorage)&&Q.key===A&&g(A)};return window.addEventListener("storage",Q),()=>window.removeEventListener("storage",Q)},[A,B]),(0,C.useMemo)(()=>[s,y,{isPersistent:s===Q||!I.has(A),removeItem(){w(()=>localStorage.removeItem(A)),I.delete(A),g(A)}}],[A,y,s,Q])}(A,B,null==Q?void 0:Q.storageSync,null==D?void 0:D.parse,null==D?void 0:D.stringify)}},20452:function(A,Q,B){"use strict";var C=B(2784),I="function"==typeof Object.is?Object.is:function(A,Q){return A===Q&&(0!==A||1/A==1/Q)||A!=A&&Q!=Q},E=C.useState,g=C.useEffect,w=C.useLayoutEffect,D=C.useDebugValue;function c(A){var Q=A.getSnapshot;A=A.value;try{var B=Q();return!I(A,B)}catch(A){return!0}}var M="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(A,Q){return Q()}:function(A,Q){var B=Q(),C=E({inst:{value:B,getSnapshot:Q}}),I=C[0].inst,M=C[1];return w(function(){I.value=B,I.getSnapshot=Q,c(I)&&M({inst:I})},[A,B,Q]),g(function(){return c(I)&&M({inst:I}),A(function(){c(I)&&M({inst:I})})},[A]),D(B),B};Q.useSyncExternalStore=void 0!==C.useSyncExternalStore?C.useSyncExternalStore:M},43100:function(A,Q,B){"use strict";A.exports=B(20452)},38268:function(A){"use strict";A.exports=function(A){A.prototype[Symbol.iterator]=function*(){for(let A=this.head;A;A=A.next)yield A.value}}},8006:function(A,Q,B){"use strict";function C(A){var Q=this;if(Q instanceof C||(Q=new C),Q.tail=null,Q.head=null,Q.length=0,A&&"function"==typeof A.forEach)A.forEach(function(A){Q.push(A)});else if(arguments.length>0)for(var B=0,I=arguments.length;B1)B=Q;else if(this.head)C=this.head.next,B=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var I=0;null!==C;I++)B=A(B,C.value,I),C=C.next;return B},C.prototype.reduceReverse=function(A,Q){var B,C=this.tail;if(arguments.length>1)B=Q;else if(this.tail)C=this.tail.prev,B=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var I=this.length-1;null!==C;I--)B=A(B,C.value,I),C=C.prev;return B},C.prototype.toArray=function(){for(var A=Array(this.length),Q=0,B=this.head;null!==B;Q++)A[Q]=B.value,B=B.next;return A},C.prototype.toArrayReverse=function(){for(var A=Array(this.length),Q=0,B=this.tail;null!==B;Q++)A[Q]=B.value,B=B.prev;return A},C.prototype.slice=function(A,Q){(Q=Q||this.length)<0&&(Q+=this.length),(A=A||0)<0&&(A+=this.length);var B=new C;if(Qthis.length&&(Q=this.length);for(var I=0,E=this.head;null!==E&&Ithis.length&&(Q=this.length);for(var I=this.length,E=this.tail;null!==E&&I>Q;I--)E=E.prev;for(;null!==E&&I>A;I--,E=E.prev)B.push(E.value);return B},C.prototype.splice=function(A,Q,...B){A>this.length&&(A=this.length-1),A<0&&(A=this.length+A);for(var C=0,E=this.head;null!==E&&C"boolean"==typeof A?"".concat(A):0===A?"0":A,I=function(){for(var A,Q,B=0,C="";BB=>{var E;if((null==Q?void 0:Q.variants)==null)return I(A,null==B?void 0:B.class,null==B?void 0:B.className);let{variants:g,defaultVariants:w}=Q,D=Object.keys(g).map(A=>{let Q=null==B?void 0:B[A],I=null==w?void 0:w[A];if(null===Q)return null;let E=C(Q)||C(I);return g[A][E]}),c=B&&Object.entries(B).reduce((A,Q)=>{let[B,C]=Q;return void 0===C||(A[B]=C),A},{});return I(A,D,null==Q?void 0:null===(E=Q.compoundVariants)||void 0===E?void 0:E.reduce((A,Q)=>{let{class:B,className:C,...I}=Q;return Object.entries(I).every(A=>{let[Q,B]=A;return Array.isArray(B)?B.includes({...w,...c}[Q]):({...w,...c})[Q]===B})?[...A,B,C]:A},[]),null==B?void 0:B.class,null==B?void 0:B.className)}},36331:function(A,Q,B){"use strict";function C(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})}function I(A,Q,B,C){if("a"===B&&!C)throw TypeError("Private accessor was defined without a getter");if("function"==typeof Q?A!==Q||!C:!Q.has(A))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===B?C:"a"===B?C.call(A):C?C.value:Q.get(A)}function E(A,Q,B,C,I){if("m"===C)throw TypeError("Private method is not writable");if("a"===C&&!I)throw TypeError("Private accessor was defined without a setter");if("function"==typeof Q?A!==Q||!I:!Q.has(A))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===C?I.call(A,B):I?I.value=B:Q.set(A,B),B}B.d(Q,{K:function(){return y},x:function(){return k}}),"function"==typeof SuppressedError&&SuppressedError;var g,w,D,c=B(48834).lW;class M{connect(){return C(this,void 0,void 0,function*(){try{E(this,D,new WebTransport(I(this,g,"f"),{serverCertificateHashes:I(this,w,"f")?[{algorithm:"sha-256",value:function(A){let Q=c.from(A,"base64");return Q.buffer.slice(Q.byteOffset,Q.byteOffset+Q.byteLength)}(I(this,w,"f"))}]:void 0}),"f"),yield I(this,D,"f").ready}catch(A){throw console.error("connect",A),A}})}sendRequest(A,Q,B){return C(this,void 0,void 0,function*(){let C;try{if(!(C=yield I(this,D,"f").createBidirectionalStream()))throw Error("Bidirectional stream not opened");let E=C.writable.getWriter(),{rpc:g,error:w}=Q(A);if(!g||w)throw Error(w);return yield E.write(g),yield E.close(),this.handleIncomingData(C,B)}catch(A){throw console.error("sendRequest",A),A}})}handleIncomingData(A,Q){return C(this,void 0,void 0,function*(){try{let B=A.readable.getReader(),{value:C,done:I}=yield B.read();if(I)throw Error("Stream closed by the server.");yield B.cancel();let{data:E,error:g}=Q(C);if(!E||g)throw Error(g);return E}catch(A){throw console.error("handleIncomingData",A),A}})}sendReadSectorRequest(A){return C(this,void 0,void 0,function*(){return this.sendRequest(A,s().rhp.encodeReadSectorRequest,s().rhp.decodeReadSectorResponse)})}sendWriteSectorRequest(A){return C(this,void 0,void 0,function*(){return this.sendRequest(A,s().rhp.encodeWriteSectorRequest,s().rhp.decodeWriteSectorResponse)})}sendRPCSettingsRequest(){return C(this,void 0,void 0,function*(){return this.sendRequest(void 0,s().rhp.encodeSettingsRequest,s().rhp.decodeSettingsResponse)})}constructor(A,Q){if(g.set(this,void 0),w.set(this,void 0),D.set(this,void 0),E(this,g,A,"f"),E(this,w,Q,"f"),!s())throw Error("The Sia SDK has not been initialized.");if(!("WebTransport"in window))throw Error("WebTransport is not supported in your browser.")}}function s(){return globalThis.sia}function y(){let A=s();if(void 0===A)throw Error("The Sia SDK has not been initialized");return Object.assign(Object.assign({},A),{WebTransportClient:M})}g=new WeakMap,w=new WeakMap,D=new WeakMap,(()=>{let A=()=>{let A=Error("not implemented");return A.code="ENOSYS",A};if(!globalThis.fs){let Q="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(A,C){let I=(Q+=B.decode(C)).lastIndexOf("\n");return -1!=I&&(console.log(Q.substring(0,I)),Q=Q.substring(I+1)),C.length},write(Q,B,C,I,E,g){if(0!==C||I!==B.length||null!==E){g(A());return}g(null,this.writeSync(Q,B))},chmod(Q,B,C){C(A())},chown(Q,B,C,I){I(A())},close(Q,B){B(A())},fchmod(Q,B,C){C(A())},fchown(Q,B,C,I){I(A())},fstat(Q,B){B(A())},fsync(A,Q){Q(null)},ftruncate(Q,B,C){C(A())},lchown(Q,B,C,I){I(A())},link(Q,B,C){C(A())},lstat(Q,B){B(A())},mkdir(Q,B,C){C(A())},open(Q,B,C,I){I(A())},read(Q,B,C,I,E,g){g(A())},readdir(Q,B){B(A())},readlink(Q,B){B(A())},rename(Q,B,C){C(A())},rmdir(Q,B){B(A())},stat(Q,B){B(A())},symlink(Q,B,C){C(A())},truncate(Q,B,C){C(A())},unlink(Q,B){B(A())},utimes(Q,B,C,I){I(A())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw A()},pid:-1,ppid:-1,umask(){throw A()},cwd(){throw A()},chdir(){throw A()}}),!globalThis.crypto)throw Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw Error("globalThis.TextDecoder is not available, polyfill required");let Q=new TextEncoder("utf-8"),B=new TextDecoder("utf-8");globalThis.Go=class{async run(A){if(!(A instanceof WebAssembly.Instance))throw Error("Go.run: WebAssembly.Instance expected");this._inst=A,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let B=4096,C=A=>{let C=B,I=Q.encode(A+"\0");return new Uint8Array(this.mem.buffer,B,I.length).set(I),(B+=I.length)%8!=0&&(B+=8-B%8),C},I=this.argv.length,E=[];this.argv.forEach(A=>{E.push(C(A))}),E.push(0),Object.keys(this.env).sort().forEach(A=>{E.push(C("".concat(A,"=").concat(this.env[A])))}),E.push(0);let g=B;if(E.forEach(A=>{this.mem.setUint32(B,A,!0),this.mem.setUint32(B+4,0,!0),B+=8}),B>=12288)throw Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(I,g),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(A){let Q=this;return function(){let B={id:A,this:this,args:arguments};return Q._pendingEvent=B,Q._resume(),B.result}}constructor(){this.argv=["js"],this.env={},this.exit=A=>{0!==A&&console.warn("exit code:",A)},this._exitPromise=new Promise(A=>{this._resolveExitPromise=A}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let A=(A,Q)=>{this.mem.setUint32(A+0,Q,!0),this.mem.setUint32(A+4,Math.floor(Q/4294967296),!0)},C=A=>this.mem.getUint32(A+0,!0)+4294967296*this.mem.getInt32(A+4,!0),I=A=>{let Q=this.mem.getFloat64(A,!0);if(0===Q)return;if(!isNaN(Q))return Q;let B=this.mem.getUint32(A,!0);return this._values[B]},E=(A,Q)=>{if("number"==typeof Q&&0!==Q){if(isNaN(Q)){this.mem.setUint32(A+4,2146959360,!0),this.mem.setUint32(A,0,!0);return}this.mem.setFloat64(A,Q,!0);return}if(void 0===Q){this.mem.setFloat64(A,0,!0);return}let B=this._ids.get(Q);void 0===B&&(void 0===(B=this._idPool.pop())&&(B=this._values.length),this._values[B]=Q,this._goRefCounts[B]=0,this._ids.set(Q,B)),this._goRefCounts[B]++;let C=0;switch(typeof Q){case"object":null!==Q&&(C=1);break;case"string":C=2;break;case"symbol":C=3;break;case"function":C=4}this.mem.setUint32(A+4,2146959360|C,!0),this.mem.setUint32(A,B,!0)},g=A=>{let Q=C(A+0),B=C(A+8);return new Uint8Array(this._inst.exports.mem.buffer,Q,B)},w=A=>{let Q=C(A+0),B=C(A+8),E=Array(B);for(let A=0;A{let Q=C(A+0),I=C(A+8);return B.decode(new DataView(this._inst.exports.mem.buffer,Q,I))},c=Date.now()-performance.now();this.importObject={_gotest:{add:(A,Q)=>A+Q},gojs:{"runtime.wasmExit":A=>{A>>>=0;let Q=this.mem.getInt32(A+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(Q)},"runtime.wasmWrite":A=>{let Q=C((A>>>=0)+8),B=C(A+16),I=this.mem.getInt32(A+24,!0);fs.writeSync(Q,new Uint8Array(this._inst.exports.mem.buffer,B,I))},"runtime.resetMemoryDataView":A=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":Q=>{A((Q>>>=0)+8,(c+performance.now())*1e6)},"runtime.walltime":Q=>{Q>>>=0;let B=(new Date).getTime();A(Q+8,B/1e3),this.mem.setInt32(Q+16,B%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":A=>{A>>>=0;let Q=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(Q,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(Q);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},C(A+8))),this.mem.setInt32(A+16,Q,!0)},"runtime.clearTimeoutEvent":A=>{A>>>=0;let Q=this.mem.getInt32(A+8,!0);clearTimeout(this._scheduledTimeouts.get(Q)),this._scheduledTimeouts.delete(Q)},"runtime.getRandomData":A=>{A>>>=0,crypto.getRandomValues(g(A+8))},"syscall/js.finalizeRef":A=>{A>>>=0;let Q=this.mem.getUint32(A+8,!0);if(this._goRefCounts[Q]--,0===this._goRefCounts[Q]){let A=this._values[Q];this._values[Q]=null,this._ids.delete(A),this._idPool.push(Q)}},"syscall/js.stringVal":A=>{E((A>>>=0)+24,D(A+8))},"syscall/js.valueGet":A=>{let Q=Reflect.get(I((A>>>=0)+8),D(A+16));E((A=this._inst.exports.getsp()>>>0)+32,Q)},"syscall/js.valueSet":A=>{Reflect.set(I((A>>>=0)+8),D(A+16),I(A+32))},"syscall/js.valueDelete":A=>{Reflect.deleteProperty(I((A>>>=0)+8),D(A+16))},"syscall/js.valueIndex":A=>{E((A>>>=0)+24,Reflect.get(I(A+8),C(A+16)))},"syscall/js.valueSetIndex":A=>{Reflect.set(I((A>>>=0)+8),C(A+16),I(A+24))},"syscall/js.valueCall":A=>{A>>>=0;try{let Q=I(A+8),B=Reflect.get(Q,D(A+16)),C=w(A+32),g=Reflect.apply(B,Q,C);A=this._inst.exports.getsp()>>>0,E(A+56,g),this.mem.setUint8(A+64,1)}catch(Q){E((A=this._inst.exports.getsp()>>>0)+56,Q),this.mem.setUint8(A+64,0)}},"syscall/js.valueInvoke":A=>{A>>>=0;try{let Q=I(A+8),B=w(A+16),C=Reflect.apply(Q,void 0,B);A=this._inst.exports.getsp()>>>0,E(A+40,C),this.mem.setUint8(A+48,1)}catch(Q){E((A=this._inst.exports.getsp()>>>0)+40,Q),this.mem.setUint8(A+48,0)}},"syscall/js.valueNew":A=>{A>>>=0;try{let Q=I(A+8),B=w(A+16),C=Reflect.construct(Q,B);A=this._inst.exports.getsp()>>>0,E(A+40,C),this.mem.setUint8(A+48,1)}catch(Q){E((A=this._inst.exports.getsp()>>>0)+40,Q),this.mem.setUint8(A+48,0)}},"syscall/js.valueLength":Q=>{A((Q>>>=0)+16,parseInt(I(Q+8).length))},"syscall/js.valuePrepareString":B=>{B>>>=0;let C=Q.encode(String(I(B+8)));E(B+16,C),A(B+24,C.length)},"syscall/js.valueLoadString":A=>{let Q=I((A>>>=0)+8);g(A+16).set(Q)},"syscall/js.valueInstanceOf":A=>{A>>>=0,this.mem.setUint8(A+24,I(A+8) instanceof I(A+16)?1:0)},"syscall/js.copyBytesToGo":Q=>{let B=g((Q>>>=0)+8),C=I(Q+32);if(!(C instanceof Uint8Array||C instanceof Uint8ClampedArray)){this.mem.setUint8(Q+48,0);return}let E=C.subarray(0,B.length);B.set(E),A(Q+40,E.length),this.mem.setUint8(Q+48,1)},"syscall/js.copyBytesToJS":Q=>{let B=I((Q>>>=0)+8),C=g(Q+16);if(!(B instanceof Uint8Array||B instanceof Uint8ClampedArray)){this.mem.setUint8(Q+48,0);return}let E=C.subarray(0,B.length);B.set(E),A(Q+40,E.length),this.mem.setUint8(Q+48,1)},debug:A=>{console.log(A)}}}}}})();var n=B(93542),h=B(48834).lW;function k(){return C(this,void 0,void 0,function*(){return yield function(){return C(this,void 0,void 0,function*(){try{var A;let Q=new globalThis.Go,B=yield(A=Q.importObject,function(A,Q,B,C){var I,E,g,w=null;if(void 0!==n&&null!=n.versions&&null!=n.versions.node)w=h.from(B,"base64");else{var D=globalThis.atob(B),c=D.length;w=new Uint8Array(new ArrayBuffer(c));for(var M=0;M-1},g.prototype.set=function(A,Q){var B=this.__data__,C=I(B,A);return C<0?(++this.size,B.push([A,Q])):B[C][1]=Q,this};var w=g},51558:function(A,Q,B){"use strict";var C=B(3648),I=B(22327),E=(0,C.Z)(I.Z,"Map");Q.Z=E},28114:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return y}});var C=(0,B(3648).Z)(Object,"create"),I=Object.prototype.hasOwnProperty,E=Object.prototype.hasOwnProperty;function g(A){var Q=-1,B=null==A?0:A.length;for(this.clear();++Q-1}},20465:function(A,Q){"use strict";Q.Z=function(A,Q,B){for(var C=-1,I=null==A?0:A.length;++CM))return!1;var y=D.get(A),n=D.get(Q);if(y&&n)return y==Q&&n==A;var h=-1,k=!0,K=2&B?new I.Z:void 0;for(D.set(A,Q),D.set(Q,A);++h-1&&A%1==0&&A-1&&A%1==0&&A<=9007199254740991}},88225:function(A,Q){"use strict";Q.Z=function(A){var Q=typeof A;return null!=A&&("object"==Q||"function"==Q)}},99982:function(A,Q){"use strict";Q.Z=function(A){return null!=A&&"object"==typeof A}},81470:function(A,Q,B){"use strict";var C=B(85084),I=B(99982);Q.Z=function(A){return"symbol"==typeof A||(0,I.Z)(A)&&"[object Symbol]"==(0,C.Z)(A)}},93779:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return M}});var C=B(85084),I=B(45432),E=B(99982),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var w=B(9769),D=B(20329),c=D.Z&&D.Z.isTypedArray,M=c?(0,w.Z)(c):function(A){return(0,E.Z)(A)&&(0,I.Z)(A.length)&&!!g[(0,C.Z)(A)]}},91139:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return c}});var C=B(62212),I=B(59208),E=(0,B(35100).Z)(Object.keys,Object),g=Object.prototype.hasOwnProperty,w=function(A){if(!(0,I.Z)(A))return E(A);var Q=[];for(var B in Object(A))g.call(A,B)&&"constructor"!=B&&Q.push(B);return Q},D=B(18226),c=function(A){return(0,D.Z)(A)?(0,C.Z)(A):w(A)}},57978:function(A,Q){"use strict";Q.Z=function(){return[]}},45543:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return s}});var C=B(19678),I=B(25079),E=B(52059),g=B(81470),w=1/0,D=C.Z?C.Z.prototype:void 0,c=D?D.toString:void 0,M=function A(Q){if("string"==typeof Q)return Q;if((0,E.Z)(Q))return(0,I.Z)(Q,A)+"";if((0,g.Z)(Q))return c?c.call(Q):"";var B=Q+"";return"0"==B&&1/Q==-w?"-0":B},s=function(A){return null==A?"":M(A)}},49058:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return s}});var C=B(36446),I=B(61613),E=B(20465),g=B(22407),w=B(83864),D=B(74994),c=w.Z&&1/(0,D.Z)(new w.Z([,-0]))[1]==1/0?function(A){return new w.Z(A)}:function(){},M=function(A,Q,B){var w=-1,M=I.Z,s=A.length,y=!0,n=[],h=n;if(B)y=!1,M=E.Z;else if(s>=200){var k=Q?null:c(A);if(k)return(0,D.Z)(k);y=!1,M=g.Z,h=new C.Z}else h=Q?[]:n;Q:for(;++w"checkbox"===A.type,E=A=>A instanceof Date,g=A=>null==A;let w=A=>"object"==typeof A;var D=A=>!g(A)&&!Array.isArray(A)&&w(A)&&!E(A),c=A=>D(A)&&A.target?I(A.target)?A.target.checked:A.target.value:A,M=A=>A.substring(0,A.search(/\.\d+(\.|$)/))||A,s=(A,Q)=>A.has(M(Q)),y=A=>{let Q=A.constructor&&A.constructor.prototype;return D(Q)&&Q.hasOwnProperty("isPrototypeOf")},n="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(A){let Q;let B=Array.isArray(A);if(A instanceof Date)Q=new Date(A);else if(A instanceof Set)Q=new Set(A);else if(!(!(n&&(A instanceof Blob||A instanceof FileList))&&(B||D(A))))return A;else if(Q=B?[]:{},B||y(A))for(let B in A)A.hasOwnProperty(B)&&(Q[B]=h(A[B]));else Q=A;return Q}var k=A=>Array.isArray(A)?A.filter(Boolean):[],K=A=>void 0===A,t=(A,Q,B)=>{if(!Q||!D(A))return B;let C=k(Q.split(/[,[\].]+?/)).reduce((A,Q)=>g(A)?A:A[Q],A);return K(C)||C===A?K(A[Q])?B:A[Q]:C},U=A=>"boolean"==typeof A,L=A=>/^\w*$/.test(A),i=A=>k(A.replace(/["|']|\]/g,"").split(/\.|\[/)),G=(A,Q,B)=>{let C=-1,I=L(Q)?[Q]:i(Q),E=I.length,g=E-1;for(;++C{let I={defaultValues:Q._defaultValues};for(let E in A)Object.defineProperty(I,E,{get:()=>(Q._proxyFormState[E]!==r.all&&(Q._proxyFormState[E]=!C||r.all),B&&(B[E]=!0),A[E])});return I},N=A=>D(A)&&!Object.keys(A).length,e=(A,Q,B,C)=>{B(A);let{name:I,...E}=A;return N(E)||Object.keys(E).length>=Object.keys(Q).length||Object.keys(E).find(A=>Q[A]===(!C||r.all))},J=A=>Array.isArray(A)?A:[A],S=A=>"string"==typeof A,F=(A,Q,B,C,I)=>S(A)?(C&&Q.watch.add(A),t(B,A,I)):Array.isArray(A)?A.map(A=>(C&&Q.watch.add(A),t(B,A))):(C&&(Q.watchAll=!0),B),l=(A,Q,B,C,I)=>Q?{...B[A],types:{...B[A]&&B[A].types?B[A].types:{},[C]:I||!0}}:{},Y=A=>({isOnSubmit:!A||A===r.onSubmit,isOnBlur:A===r.onBlur,isOnChange:A===r.onChange,isOnAll:A===r.all,isOnTouch:A===r.onTouched}),H=(A,Q,B)=>!B&&(Q.watchAll||Q.watch.has(A)||[...Q.watch].some(Q=>A.startsWith(Q)&&/^\.\w+/.test(A.slice(Q.length))));let f=(A,Q,B,C)=>{for(let I of B||Object.keys(A)){let B=t(A,I);if(B){let{_f:A,...E}=B;if(A){if(A.refs&&A.refs[0]&&Q(A.refs[0],I)&&!C||A.ref&&Q(A.ref,A.name)&&!C)break;f(E,Q)}else D(E)&&f(E,Q)}}};var d=(A,Q,B)=>{let C=k(t(A,B));return G(C,"root",Q[B]),G(A,B,C),A},u=A=>"file"===A.type,R=A=>"function"==typeof A,j=A=>{if(!n)return!1;let Q=A?A.ownerDocument:0;return A instanceof(Q&&Q.defaultView?Q.defaultView.HTMLElement:HTMLElement)},b=A=>S(A),m=A=>"radio"===A.type,Z=A=>A instanceof RegExp;let T={value:!1,isValid:!1},P={value:!0,isValid:!0};var O=A=>{if(Array.isArray(A)){if(A.length>1){let Q=A.filter(A=>A&&A.checked&&!A.disabled).map(A=>A.value);return{value:Q,isValid:!!Q.length}}return A[0].checked&&!A[0].disabled?A[0].attributes&&!K(A[0].attributes.value)?K(A[0].value)||""===A[0].value?P:{value:A[0].value,isValid:!0}:P:T}return T};let W={isValid:!1,value:null};var z=A=>Array.isArray(A)?A.reduce((A,Q)=>Q&&Q.checked&&!Q.disabled?{isValid:!0,value:Q.value}:A,W):W;function x(A,Q,B="validate"){if(b(A)||Array.isArray(A)&&A.every(b)||U(A)&&!A)return{type:B,message:b(A)?A:"",ref:Q}}var V=A=>D(A)&&!Z(A)?A:{value:A,message:""},v=async(A,Q,B,C,E)=>{let{ref:w,refs:c,required:M,maxLength:s,minLength:y,min:n,max:h,pattern:k,validate:L,name:i,valueAsNumber:G,mount:p,disabled:r}=A._f,o=t(Q,i);if(!p||r)return{};let e=c?c[0]:w,J=A=>{C&&e.reportValidity&&(e.setCustomValidity(U(A)?"":A||""),e.reportValidity())},F={},Y=m(w),H=I(w),f=(G||u(w))&&K(w.value)&&K(o)||j(w)&&""===w.value||""===o||Array.isArray(o)&&!o.length,d=l.bind(null,i,B,F),T=(A,Q,B,C=a.maxLength,I=a.minLength)=>{let E=A?Q:B;F[i]={type:A?C:I,message:E,ref:w,...d(A?C:I,E)}};if(E?!Array.isArray(o)||!o.length:M&&(!(Y||H)&&(f||g(o))||U(o)&&!o||H&&!O(c).isValid||Y&&!z(c).isValid)){let{value:A,message:Q}=b(M)?{value:!!M,message:M}:V(M);if(A&&(F[i]={type:a.required,message:Q,ref:e,...d(a.required,Q)},!B))return J(Q),F}if(!f&&(!g(n)||!g(h))){let A,Q;let C=V(h),I=V(n);if(g(o)||isNaN(o)){let B=w.valueAsDate||new Date(o),E=A=>new Date(new Date().toDateString()+" "+A),g="time"==w.type,D="week"==w.type;S(C.value)&&o&&(A=g?E(o)>E(C.value):D?o>C.value:B>new Date(C.value)),S(I.value)&&o&&(Q=g?E(o)C.value),g(I.value)||(Q=B+A.value,I=!g(Q.value)&&o.length<+Q.value;if((C||I)&&(T(C,A.message,Q.message),!B))return J(F[i].message),F}if(k&&!f&&S(o)){let{value:A,message:Q}=V(k);if(Z(A)&&!o.match(A)&&(F[i]={type:a.pattern,message:Q,ref:w,...d(a.pattern,Q)},!B))return J(Q),F}if(L){if(R(L)){let A=x(await L(o,Q),e);if(A&&(F[i]={...A,...d(a.validate,A.message)},!B))return J(A.message),F}else if(D(L)){let A={};for(let C in L){if(!N(A)&&!B)break;let I=x(await L[C](o,Q),e,C);I&&(A={...I,...d(C,I.message)},J(I.message),B&&(F[i]=A))}if(!N(A)&&(F[i]={ref:e,...A},!B))return F}}return J(!0),F};function X(A,Q){let B=Array.isArray(Q)?Q:L(Q)?[Q]:i(Q),C=1===B.length?A:function(A,Q){let B=Q.slice(0,-1).length,C=0;for(;C{let A=[];return{get observers(){return A},next:Q=>{for(let B of A)B.next&&B.next(Q)},subscribe:Q=>(A.push(Q),{unsubscribe:()=>{A=A.filter(A=>A!==Q)}}),unsubscribe:()=>{A=[]}}},_=A=>g(A)||!w(A);function $(A,Q){if(_(A)||_(Q))return A===Q;if(E(A)&&E(Q))return A.getTime()===Q.getTime();let B=Object.keys(A),C=Object.keys(Q);if(B.length!==C.length)return!1;for(let I of B){let B=A[I];if(!C.includes(I))return!1;if("ref"!==I){let A=Q[I];if(E(B)&&E(A)||D(B)&&D(A)||Array.isArray(B)&&Array.isArray(A)?!$(B,A):B!==A)return!1}}return!0}var AA=A=>"select-multiple"===A.type,AQ=A=>m(A)||I(A),AB=A=>j(A)&&A.isConnected,AC=A=>{for(let Q in A)if(R(A[Q]))return!0;return!1};function AI(A,Q={}){let B=Array.isArray(A);if(D(A)||B)for(let B in A)Array.isArray(A[B])||D(A[B])&&!AC(A[B])?(Q[B]=Array.isArray(A[B])?[]:{},AI(A[B],Q[B])):g(A[B])||(Q[B]=!0);return Q}var AE=(A,Q)=>(function A(Q,B,C){let I=Array.isArray(Q);if(D(Q)||I)for(let I in Q)Array.isArray(Q[I])||D(Q[I])&&!AC(Q[I])?K(B)||_(C[I])?C[I]=Array.isArray(Q[I])?AI(Q[I],[]):{...AI(Q[I])}:A(Q[I],g(B)?{}:B[I],C[I]):C[I]=!$(Q[I],B[I]);return C})(A,Q,AI(Q)),Ag=(A,{valueAsNumber:Q,valueAsDate:B,setValueAs:C})=>K(A)?A:Q?""===A?NaN:A?+A:A:B&&S(A)?new Date(A):C?C(A):A;function Aw(A){let Q=A.ref;return(A.refs?A.refs.every(A=>A.disabled):Q.disabled)?void 0:u(Q)?Q.files:m(Q)?z(A.refs).value:AA(Q)?[...Q.selectedOptions].map(({value:A})=>A):I(Q)?O(A.refs).value:Ag(K(Q.value)?A.ref.value:Q.value,A)}var AD=(A,Q,B,C)=>{let I={};for(let B of A){let A=t(Q,B);A&&G(I,B,A._f)}return{criteriaMode:B,names:[...A],fields:I,shouldUseNativeValidation:C}},Ac=A=>K(A)?A:Z(A)?A.source:D(A)?Z(A.value)?A.value.source:A.value:A,AM=A=>A.mount&&(A.required||A.min||A.max||A.maxLength||A.minLength||A.pattern||A.validate);function As(A,Q,B){let C=t(A,B);if(C||L(B))return{error:C,name:B};let I=B.split(".");for(;I.length;){let C=I.join("."),E=t(Q,C),g=t(A,C);if(E&&!Array.isArray(E)&&B!==C)break;if(g&&g.type)return{name:C,error:g};I.pop()}return{name:B}}var Ay=(A,Q,B,C,I)=>!I.isOnAll&&(!B&&I.isOnTouch?!(Q||A):(B?C.isOnBlur:I.isOnBlur)?!A:(B?!C.isOnChange:!I.isOnChange)||A),An=(A,Q)=>!k(t(A,Q)).length&&X(A,Q);let Ah={mode:r.onSubmit,reValidateMode:r.onChange,shouldFocusError:!0};function Ak(A={}){let Q=C.useRef(),B=C.useRef(),[w,M]=C.useState({isDirty:!1,isValidating:!1,isLoading:R(A.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:A.errors||{},disabled:A.disabled||!1,defaultValues:R(A.defaultValues)?void 0:A.defaultValues});Q.current||(Q.current={...function(A={}){let Q,B={...Ah,...A},C={submitCount:0,isDirty:!1,isLoading:R(B.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:B.errors||{},disabled:B.disabled||!1},w={},M=(D(B.defaultValues)||D(B.values))&&h(B.defaultValues||B.values)||{},y=B.shouldUnregister?{}:h(M),L={action:!1,mount:!1,watch:!1},i={mount:new Set,unMount:new Set,array:new Set,watch:new Set},a=0,o={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},e={values:q(),array:q(),state:q()},l=Y(B.mode),b=Y(B.reValidateMode),m=B.criteriaMode===r.all,Z=A=>Q=>{clearTimeout(a),a=setTimeout(A,Q)},T=async A=>{if(o.isValid||A){let A=B.resolver?N((await V()).errors):await AI(w,!0);A!==C.isValid&&e.state.next({isValid:A})}},P=(A,Q)=>{(o.isValidating||o.validatingFields)&&((A||Array.from(i.mount)).forEach(A=>{A&&(Q?G(C.validatingFields,A,Q):X(C.validatingFields,A))}),e.state.next({validatingFields:C.validatingFields,isValidating:!N(C.validatingFields)}))},O=(A,Q)=>{G(C.errors,A,Q),e.state.next({errors:C.errors})},W=(A,Q,B,C)=>{let I=t(w,A);if(I){let E=t(y,A,K(B)?t(M,A):B);K(E)||C&&C.defaultChecked||Q?G(y,A,Q?E:Aw(I._f)):At(A,E),L.mount&&T()}},z=(A,Q,B,I,E)=>{let g=!1,D=!1,c={name:A},s=!!(t(w,A)&&t(w,A)._f&&t(w,A)._f.disabled);if(!B||I){o.isDirty&&(D=C.isDirty,C.isDirty=c.isDirty=Ak(),g=D!==c.isDirty);let B=s||$(t(M,A),Q);D=!!(!s&&t(C.dirtyFields,A)),B||s?X(C.dirtyFields,A):G(C.dirtyFields,A,!0),c.dirtyFields=C.dirtyFields,g=g||o.dirtyFields&&!B!==D}if(B){let Q=t(C.touchedFields,A);Q||(G(C.touchedFields,A,B),c.touchedFields=C.touchedFields,g=g||o.touchedFields&&Q!==B)}return g&&E&&e.state.next(c),g?c:{}},x=(B,I,E,g)=>{let w=t(C.errors,B),D=o.isValid&&U(I)&&C.isValid!==I;if(A.delayError&&E?(Q=Z(()=>O(B,E)))(A.delayError):(clearTimeout(a),Q=null,E?G(C.errors,B,E):X(C.errors,B)),(E?!$(w,E):w)||!N(g)||D){let A={...g,...D&&U(I)?{isValid:I}:{},errors:C.errors,name:B};C={...C,...A},e.state.next(A)}},V=async A=>{P(A,!0);let Q=await B.resolver(y,B.context,AD(A||i.mount,w,B.criteriaMode,B.shouldUseNativeValidation));return P(A),Q},AC=async A=>{let{errors:Q}=await V(A);if(A)for(let B of A){let A=t(Q,B);A?G(C.errors,B,A):X(C.errors,B)}else C.errors=Q;return Q},AI=async(A,Q,I={valid:!0})=>{for(let E in A){let g=A[E];if(g){let{_f:A,...w}=g;if(A){let w=i.array.has(A.name);P([E],!0);let D=await v(g,y,m,B.shouldUseNativeValidation&&!Q,w);if(P([E]),D[A.name]&&(I.valid=!1,Q))break;Q||(t(D,A.name)?w?d(C.errors,D,A.name):G(C.errors,A.name,D[A.name]):X(C.errors,A.name))}w&&await AI(w,Q,I)}}return I.valid},Ak=(A,Q)=>(A&&Q&&G(y,A,Q),!$(Ar(),M)),AK=(A,Q,B)=>F(A,i,{...L.mount?y:K(Q)?M:S(A)?{[A]:Q}:Q},B,Q),At=(A,Q,B={})=>{let C=t(w,A),E=Q;if(C){let B=C._f;B&&(B.disabled||G(y,A,Ag(Q,B)),E=j(B.ref)&&g(Q)?"":Q,AA(B.ref)?[...B.ref.options].forEach(A=>A.selected=E.includes(A.value)):B.refs?I(B.ref)?B.refs.length>1?B.refs.forEach(A=>(!A.defaultChecked||!A.disabled)&&(A.checked=Array.isArray(E)?!!E.find(Q=>Q===A.value):E===A.value)):B.refs[0]&&(B.refs[0].checked=!!E):B.refs.forEach(A=>A.checked=A.value===E):u(B.ref)?B.ref.value="":(B.ref.value=E,B.ref.type||e.values.next({name:A,values:{...y}})))}(B.shouldDirty||B.shouldTouch)&&z(A,E,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&Ap(A)},AU=(A,Q,B)=>{for(let C in Q){let I=Q[C],g=`${A}.${C}`,D=t(w,g);!i.array.has(A)&&_(I)&&(!D||D._f)||E(I)?At(g,I,B):AU(g,I,B)}},AL=(A,Q,B={})=>{let I=t(w,A),E=i.array.has(A),D=h(Q);G(y,A,D),E?(e.array.next({name:A,values:{...y}}),(o.isDirty||o.dirtyFields)&&B.shouldDirty&&e.state.next({name:A,dirtyFields:AE(M,y),isDirty:Ak(A,D)})):!I||I._f||g(D)?At(A,D,B):AU(A,D,B),H(A,i)&&e.state.next({...C}),e.values.next({name:L.mount?A:void 0,values:{...y}})},Ai=async A=>{L.mount=!0;let I=A.target,E=I.name,g=!0,D=t(w,E),M=A=>{g=Number.isNaN(A)||A===t(y,E,A)};if(D){let s,n;let h=I.type?Aw(D._f):c(A),k=A.type===p.BLUR||A.type===p.FOCUS_OUT,K=!AM(D._f)&&!B.resolver&&!t(C.errors,E)&&!D._f.deps||Ay(k,t(C.touchedFields,E),C.isSubmitted,b,l),U=H(E,i,k);G(y,E,h),k?(D._f.onBlur&&D._f.onBlur(A),Q&&Q(0)):D._f.onChange&&D._f.onChange(A);let L=z(E,h,k,!1),r=!N(L)||U;if(k||e.values.next({name:E,type:A.type,values:{...y}}),K)return o.isValid&&T(),r&&e.state.next({name:E,...U?{}:L});if(!k&&U&&e.state.next({...C}),B.resolver){let{errors:A}=await V([E]);if(M(h),g){let Q=As(C.errors,w,E),B=As(A,w,Q.name||E);s=B.error,E=B.name,n=N(A)}}else P([E],!0),s=(await v(D,y,m,B.shouldUseNativeValidation))[E],P([E]),M(h),g&&(s?n=!1:o.isValid&&(n=await AI(w,!0)));g&&(D._f.deps&&Ap(D._f.deps),x(E,n,s,L))}},AG=(A,Q)=>{if(t(C.errors,Q)&&A.focus)return A.focus(),1},Ap=async(A,Q={})=>{let I,E;let g=J(A);if(B.resolver){let Q=await AC(K(A)?A:g);I=N(Q),E=A?!g.some(A=>t(Q,A)):I}else A?((E=(await Promise.all(g.map(async A=>{let Q=t(w,A);return await AI(Q&&Q._f?{[A]:Q}:Q)}))).every(Boolean))||C.isValid)&&T():E=I=await AI(w);return e.state.next({...!S(A)||o.isValid&&I!==C.isValid?{}:{name:A},...B.resolver||!A?{isValid:I}:{},errors:C.errors}),Q.shouldFocus&&!E&&f(w,AG,A?g:i.mount),E},Ar=A=>{let Q={...L.mount?y:M};return K(A)?Q:S(A)?t(Q,A):A.map(A=>t(Q,A))},Aa=(A,Q)=>({invalid:!!t((Q||C).errors,A),isDirty:!!t((Q||C).dirtyFields,A),error:t((Q||C).errors,A),isValidating:!!t(C.validatingFields,A),isTouched:!!t((Q||C).touchedFields,A)}),Ao=(A,Q,B)=>{let I=(t(w,A,{_f:{}})._f||{}).ref,{ref:E,message:g,type:D,...c}=t(C.errors,A)||{};G(C.errors,A,{...c,...Q,ref:I}),e.state.next({name:A,errors:C.errors,isValid:!1}),B&&B.shouldFocus&&I&&I.focus&&I.focus()},AN=(A,Q={})=>{for(let I of A?J(A):i.mount)i.mount.delete(I),i.array.delete(I),Q.keepValue||(X(w,I),X(y,I)),Q.keepError||X(C.errors,I),Q.keepDirty||X(C.dirtyFields,I),Q.keepTouched||X(C.touchedFields,I),Q.keepIsValidating||X(C.validatingFields,I),B.shouldUnregister||Q.keepDefaultValue||X(M,I);e.values.next({values:{...y}}),e.state.next({...C,...Q.keepDirty?{isDirty:Ak()}:{}}),Q.keepIsValid||T()},Ae=({disabled:A,name:Q,field:B,fields:C,value:I})=>{if(U(A)&&L.mount||A){let E=A?void 0:K(I)?Aw(B?B._f:t(C,Q)._f):I;G(y,Q,E),z(Q,E,!1,!1,!0)}},AJ=(A,Q={})=>{let C=t(w,A),I=U(Q.disabled);return G(w,A,{...C||{},_f:{...C&&C._f?C._f:{ref:{name:A}},name:A,mount:!0,...Q}}),i.mount.add(A),C?Ae({field:C,disabled:Q.disabled,name:A,value:Q.value}):W(A,!0,Q.value),{...I?{disabled:Q.disabled}:{},...B.progressive?{required:!!Q.required,min:Ac(Q.min),max:Ac(Q.max),minLength:Ac(Q.minLength),maxLength:Ac(Q.maxLength),pattern:Ac(Q.pattern)}:{},name:A,onChange:Ai,onBlur:Ai,ref:I=>{if(I){AJ(A,Q),C=t(w,A);let B=K(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,E=AQ(B),g=C._f.refs||[];(E?g.find(A=>A===B):B===C._f.ref)||(G(w,A,{_f:{...C._f,...E?{refs:[...g.filter(AB),B,...Array.isArray(t(M,A))?[{}]:[]],ref:{type:B.type,name:A}}:{ref:B}}}),W(A,!1,void 0,B))}else(C=t(w,A,{}))._f&&(C._f.mount=!1),(B.shouldUnregister||Q.shouldUnregister)&&!(s(i.array,A)&&L.action)&&i.unMount.add(A)}}},AS=()=>B.shouldFocusError&&f(w,AG,i.mount),AF=(A,Q)=>async I=>{let E;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let g=h(y);if(e.state.next({isSubmitting:!0}),B.resolver){let{errors:A,values:Q}=await V();C.errors=A,g=Q}else await AI(w);if(X(C.errors,"root"),N(C.errors)){e.state.next({errors:{}});try{await A(g,I)}catch(A){E=A}}else Q&&await Q({...C.errors},I),AS(),setTimeout(AS);if(e.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(C.errors)&&!E,submitCount:C.submitCount+1,errors:C.errors}),E)throw E},Al=(Q,B={})=>{let I=Q?h(Q):M,E=h(I),g=N(Q),D=g?M:E;if(B.keepDefaultValues||(M=I),!B.keepValues){if(B.keepDirtyValues)for(let A of i.mount)t(C.dirtyFields,A)?G(D,A,t(y,A)):AL(A,t(D,A));else{if(n&&K(Q))for(let A of i.mount){let Q=t(w,A);if(Q&&Q._f){let A=Array.isArray(Q._f.refs)?Q._f.refs[0]:Q._f.ref;if(j(A)){let Q=A.closest("form");if(Q){Q.reset();break}}}}w={}}y=A.shouldUnregister?B.keepDefaultValues?h(M):{}:h(D),e.array.next({values:{...D}}),e.values.next({values:{...D}})}i={mount:B.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},L.mount=!o.isValid||!!B.keepIsValid||!!B.keepDirtyValues,L.watch=!!A.shouldUnregister,e.state.next({submitCount:B.keepSubmitCount?C.submitCount:0,isDirty:!g&&(B.keepDirty?C.isDirty:!!(B.keepDefaultValues&&!$(Q,M))),isSubmitted:!!B.keepIsSubmitted&&C.isSubmitted,dirtyFields:g?[]:B.keepDirtyValues?B.keepDefaultValues&&y?AE(M,y):C.dirtyFields:B.keepDefaultValues&&Q?AE(M,Q):B.keepDirty?C.dirtyFields:{},touchedFields:B.keepTouched?C.touchedFields:{},errors:B.keepErrors?C.errors:{},isSubmitSuccessful:!!B.keepIsSubmitSuccessful&&C.isSubmitSuccessful,isSubmitting:!1})},AY=(A,Q)=>Al(R(A)?A(y):A,Q);return{control:{register:AJ,unregister:AN,getFieldState:Aa,handleSubmit:AF,setError:Ao,_executeSchema:V,_getWatch:AK,_getDirty:Ak,_updateValid:T,_removeUnmounted:()=>{for(let A of i.unMount){let Q=t(w,A);Q&&(Q._f.refs?Q._f.refs.every(A=>!AB(A)):!AB(Q._f.ref))&&AN(A)}i.unMount=new Set},_updateFieldArray:(A,Q=[],B,I,E=!0,g=!0)=>{if(I&&B){if(L.action=!0,g&&Array.isArray(t(w,A))){let Q=B(t(w,A),I.argA,I.argB);E&&G(w,A,Q)}if(g&&Array.isArray(t(C.errors,A))){let Q=B(t(C.errors,A),I.argA,I.argB);E&&G(C.errors,A,Q),An(C.errors,A)}if(o.touchedFields&&g&&Array.isArray(t(C.touchedFields,A))){let Q=B(t(C.touchedFields,A),I.argA,I.argB);E&&G(C.touchedFields,A,Q)}o.dirtyFields&&(C.dirtyFields=AE(M,y)),e.state.next({name:A,isDirty:Ak(A,Q),dirtyFields:C.dirtyFields,errors:C.errors,isValid:C.isValid})}else G(y,A,Q)},_updateDisabledField:Ae,_getFieldArray:Q=>k(t(L.mount?y:M,Q,A.shouldUnregister?t(M,Q,[]):[])),_reset:Al,_resetDefaultValues:()=>R(B.defaultValues)&&B.defaultValues().then(A=>{AY(A,B.resetOptions),e.state.next({isLoading:!1})}),_updateFormState:A=>{C={...C,...A}},_disableForm:A=>{U(A)&&(e.state.next({disabled:A}),f(w,(Q,B)=>{let C=t(w,B);C&&(Q.disabled=C._f.disabled||A,Array.isArray(C._f.refs)&&C._f.refs.forEach(Q=>{Q.disabled=C._f.disabled||A}))},0,!1))},_subjects:e,_proxyFormState:o,_setErrors:A=>{C.errors=A,e.state.next({errors:C.errors,isValid:!1})},get _fields(){return w},get _formValues(){return y},get _state(){return L},set _state(value){L=value},get _defaultValues(){return M},get _names(){return i},set _names(value){i=value},get _formState(){return C},set _formState(value){C=value},get _options(){return B},set _options(value){B={...B,...value}}},trigger:Ap,register:AJ,handleSubmit:AF,watch:(A,Q)=>R(A)?e.values.subscribe({next:B=>A(AK(void 0,Q),B)}):AK(A,Q,!0),setValue:AL,getValues:Ar,reset:AY,resetField:(A,Q={})=>{t(w,A)&&(K(Q.defaultValue)?AL(A,h(t(M,A))):(AL(A,Q.defaultValue),G(M,A,h(Q.defaultValue))),Q.keepTouched||X(C.touchedFields,A),Q.keepDirty||(X(C.dirtyFields,A),C.isDirty=Q.defaultValue?Ak(A,h(t(M,A))):Ak()),!Q.keepError&&(X(C.errors,A),o.isValid&&T()),e.state.next({...C}))},clearErrors:A=>{A&&J(A).forEach(A=>X(C.errors,A)),e.state.next({errors:A?C.errors:{}})},unregister:AN,setError:Ao,setFocus:(A,Q={})=>{let B=t(w,A),C=B&&B._f;if(C){let A=C.refs?C.refs[0]:C.ref;A.focus&&(A.focus(),Q.shouldSelect&&A.select())}},getFieldState:Aa}}(A),formState:w});let y=Q.current.control;return y._options=A,!function(A){let Q=C.useRef(A);Q.current=A,C.useEffect(()=>{let B=!A.disabled&&Q.current.subject&&Q.current.subject.subscribe({next:Q.current.next});return()=>{B&&B.unsubscribe()}},[A.disabled])}({subject:y._subjects.state,next:A=>{e(A,y._proxyFormState,y._updateFormState,!0)&&M({...y._formState})}}),C.useEffect(()=>y._disableForm(A.disabled),[y,A.disabled]),C.useEffect(()=>{if(y._proxyFormState.isDirty){let A=y._getDirty();A!==w.isDirty&&y._subjects.state.next({isDirty:A})}},[y,w.isDirty]),C.useEffect(()=>{A.values&&!$(A.values,B.current)?(y._reset(A.values,y._options.resetOptions),B.current=A.values,M(A=>({...A}))):y._resetDefaultValues()},[A.values,y]),C.useEffect(()=>{A.errors&&y._setErrors(A.errors)},[A.errors,y]),C.useEffect(()=>{y._state.mount||(y._updateValid(),y._state.mount=!0),y._state.watch&&(y._state.watch=!1,y._subjects.state.next({...y._formState})),y._removeUnmounted()}),C.useEffect(()=>{A.shouldUnregister&&y._subjects.values.next({values:y._getWatch()})},[A.shouldUnregister,y]),Q.current.formState=o(w,y),Q.current}},79381:function(A,Q,B){"use strict";let C;B.d(Q,{J$:function(){return _},ZP:function(){return $},JG:function(){return Z},kY:function(){return V}});var I=B(2784),E=B(43100);let g=new WeakMap,w={},D={},c=()=>{},M=c(),s=Object,y=A=>A===M,n=A=>"function"==typeof A,h=(A,Q)=>({...A,...Q}),k="undefined",K=typeof window!=k,t=typeof document!=k,U=()=>K&&typeof window.requestAnimationFrame!=k,L=(A,Q)=>{let B=g.get(A);return[()=>A.get(Q)||w,C=>{if(!y(Q)){let I=A.get(Q);Q in D||(D[Q]=I),B[5](Q,h(I,C),I||w)}},B[6],()=>!y(Q)&&Q in D?D[Q]:A.get(Q)||w]},i=new WeakMap,G=0,p=A=>{let Q,B;let C=typeof A,I=A&&A.constructor,E=I==Date;if(s(A)!==A||E||I==RegExp)Q=E?A.toJSON():"symbol"==C?A.toString():"string"==C?JSON.stringify(A):""+A;else{if(Q=i.get(A))return Q;if(Q=++G+"~",i.set(A,Q),I==Array){for(B=0,Q="@";B(t&&document.addEventListener("visibilitychange",A),a("focus",A),()=>{t&&document.removeEventListener("visibilitychange",A),o("focus",A)}),initReconnect:A=>{let Q=()=>{r=!0,A()},B=()=>{r=!1};return a("online",Q),a("offline",B),()=>{o("online",Q),o("offline",B)}}},e=!I.useId,J=!K||"Deno"in window,S=A=>U()?window.requestAnimationFrame(A):setTimeout(A,1),F=J?I.useEffect:I.useLayoutEffect,l="undefined"!=typeof navigator&&navigator.connection,Y=!J&&l&&(["slow-2g","2g"].includes(l.effectiveType)||l.saveData),H=A=>{if(n(A))try{A=A()}catch(Q){A=""}let Q=A;return[A="string"==typeof A?A:(Array.isArray(A)?A.length:A)?p(A):"",Q]},f=0,d=()=>++f;var u={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function R(...A){let[Q,B,C,I]=A,E=h({populateCache:!0,throwOnError:!0},"boolean"==typeof I?{revalidate:I}:I||{}),w=E.populateCache,D=E.rollbackOnError,c=E.optimisticData,s=!1!==E.revalidate,k=A=>"function"==typeof D?D(A):!1!==D,K=E.throwOnError;if(n(B)){let A=[],C=Q.keys();for(let I=C.next();!I.done;I=C.next()){let C=I.value;!/^\$(inf|sub)\$/.test(C)&&B(Q.get(C)._k)&&A.push(C)}return Promise.all(A.map(t))}return t(B);async function t(B){let I;let[E]=H(B);if(!E)return;let[D,h]=L(Q,E),[t,U,i]=g.get(Q),G=t[E],p=()=>s&&(delete i[E],G&&G[0])?G[0](2).then(()=>D().data):D().data;if(A.length<3)return p();let r=C,a=d();U[E]=[a,0];let o=!y(c),N=D(),e=N.data,J=N._c,S=y(J)?e:J;if(o&&h({data:c=n(c)?c(S):c,_c:S}),n(r))try{r=r(S)}catch(A){I=A}if(r&&n(r.then)){if(r=await r.catch(A=>{I=A}),a!==U[E][0]){if(I)throw I;return r}I&&o&&k(I)&&(w=!0,h({data:r=S,_c:M}))}w&&!I&&(n(w)&&(r=w(r,S)),h({data:r,_c:M})),U[E][1]=d();let F=await p();if(h({_c:M}),I){if(K)throw I;return}return w?F:r}}let j=(A,Q)=>{for(let B in A)A[B][0]&&A[B][0](Q)},b=(A,Q)=>{if(!g.has(A)){let B=h(N,Q),C={},I=R.bind(M,A),E=c,w={},D=(A,Q)=>{let B=w[A]||[];return w[A]=B,B.push(Q),()=>B.splice(B.indexOf(Q),1)},s=(Q,B,C)=>{A.set(Q,B);let I=w[Q];if(I)for(let A of I)A(B,C)},y=()=>{if(!g.has(A)&&(g.set(A,[C,{},{},{},I,s,D]),!J)){let Q=B.initFocus(setTimeout.bind(M,j.bind(M,C,0))),I=B.initReconnect(setTimeout.bind(M,j.bind(M,C,1)));E=()=>{Q&&Q(),I&&I(),g.delete(A)}}};return y(),[A,I,y,E]}return[A,g.get(A)[4]]},[m,Z]=b(new Map),T=h({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(A,Q,B,C,I)=>{let E=B.errorRetryCount,g=I.retryCount,w=~~((Math.random()+.5)*(1<<(g<8?g:8)))*B.errorRetryInterval;(y(E)||!(g>E))&&setTimeout(C,w,I)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Y?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Y?5e3:3e3,compare:(A,Q)=>p(A)==p(Q),isPaused:()=>!1,cache:m,mutate:Z,fallback:{}},{isOnline:()=>r,isVisible:()=>{let A=t&&document.visibilityState;return y(A)||"hidden"!==A}}),P=(A,Q)=>{let B=h(A,Q);if(Q){let{use:C,fallback:I}=A,{use:E,fallback:g}=Q;C&&E&&(B.use=C.concat(E)),I&&g&&(B.fallback=h(I,g))}return B},O=(0,I.createContext)({}),W=K&&window.__SWR_DEVTOOLS_USE__,z=W?window.__SWR_DEVTOOLS_USE__:[],x=A=>n(A[1])?[A[0],A[1],A[2]||{}]:[A[0],null,(null===A[1]?A[2]:A[1])||{}],V=()=>h(T,(0,I.useContext)(O)),v=z.concat(A=>(Q,B,C)=>{let I=B&&((...A)=>{let C=H(Q)[0],[,,,I]=g.get(m),E=I[C];return E?(delete I[C],E):B(...A)});return A(Q,I,C)}),X=(A,Q,B)=>{let C=Q[A]||(Q[A]=[]);return C.push(B),()=>{let A=C.indexOf(B);A>=0&&(C[A]=C[C.length-1],C.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=I);let q={dedupe:!0},_=s.defineProperty(A=>{let{value:Q}=A,B=(0,I.useContext)(O),C=n(Q),E=(0,I.useMemo)(()=>C?Q(B):Q,[C,B,Q]),g=(0,I.useMemo)(()=>C?E:P(B,E),[C,B,E]),w=E&&E.provider,D=(0,I.useRef)(M);w&&!D.current&&(D.current=b(w(g.cache||m),E));let c=D.current;return c&&(g.cache=c[0],g.mutate=c[1]),F(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,I.createElement)(O.Provider,h(A,{value:g}))},"defaultValue",{value:T});var $=(C=(A,Q,B)=>{let{cache:C,compare:w,suspense:D,fallbackData:c,revalidateOnMount:s,revalidateIfStale:k,refreshInterval:K,refreshWhenHidden:t,refreshWhenOffline:U,keepPreviousData:i}=B,[G,p,r]=g.get(C),[a,o]=H(A),N=(0,I.useRef)(!1),l=(0,I.useRef)(!1),Y=(0,I.useRef)(a),f=(0,I.useRef)(Q),j=(0,I.useRef)(B),b=()=>j.current,m=()=>b().isVisible()&&b().isOnline(),[Z,T,P,O]=L(C,a),W=(0,I.useRef)({}).current,z=y(c)?B.fallback[a]:c,x=(A,Q)=>{let B=!0;for(let C in W)"data"===C?w(Q[C],A[C])||y(A[C])&&w(Q[C],AI)||(B=!1):Q[C]!==A[C]&&(B=!1);return B},V=(0,I.useMemo)(()=>{let A=!!a&&!!Q&&(y(s)?!b().isPaused()&&!D&&(!!y(k)||k):s),B=Q=>{let B=h(Q);return(delete B._k,A)?{isValidating:!0,isLoading:!0,...B}:B},C=Z(),I=O(),E=B(C),g=C===I?E:B(I),w=E;return[()=>{let A=B(Z());return x(A,w)?w:w=A},()=>g]},[C,a]),v=(0,E.useSyncExternalStore)((0,I.useCallback)(A=>P(a,(Q,B)=>{x(B,Q)||A()}),[C,a]),V[0],V[1]),_=!N.current,$=G[a]&&G[a].length>0,AA=v.data,AQ=y(AA)?z:AA,AB=v.error,AC=(0,I.useRef)(AQ),AI=i?y(AA)?AC.current:AA:AQ,AE=(!$||!!y(AB))&&(_&&!y(s)?s:!b().isPaused()&&(D?!y(AQ)&&k:y(AQ)||k)),Ag=!!(a&&Q&&_&&AE),Aw=y(v.isValidating)?Ag:v.isValidating,AD=y(v.isLoading)?Ag:v.isLoading,Ac=(0,I.useCallback)(async A=>{let Q,C;let I=f.current;if(!a||!I||l.current||b().isPaused())return!1;let E=!0,g=A||{},D=!r[a]||!g.dedupe,c=()=>e?!l.current&&a===Y.current&&N.current:a===Y.current,s={isValidating:!1,isLoading:!1},h=()=>{T(s)},k=()=>{let A=r[a];A&&A[1]===C&&delete r[a]},K={isValidating:!0};y(Z().data)&&(K.isLoading=!0);try{if(D&&(T(K),B.loadingTimeout&&y(Z().data)&&setTimeout(()=>{E&&c()&&b().onLoadingSlow(a,B)},B.loadingTimeout),r[a]=[I(o),d()]),[Q,C]=r[a],Q=await Q,D&&setTimeout(k,B.dedupingInterval),!r[a]||r[a][1]!==C)return D&&c()&&b().onDiscarded(a),!1;s.error=M;let A=p[a];if(!y(A)&&(C<=A[0]||C<=A[1]||0===A[1]))return h(),D&&c()&&b().onDiscarded(a),!1;let g=Z().data;s.data=w(g,Q)?g:Q,D&&c()&&b().onSuccess(Q,a,B)}catch(B){k();let A=b(),{shouldRetryOnError:Q}=A;!A.isPaused()&&(s.error=B,D&&c()&&(A.onError(B,a,A),(!0===Q||n(Q)&&Q(B))&&m()&&A.onErrorRetry(B,a,A,A=>{let Q=G[a];Q&&Q[0]&&Q[0](u.ERROR_REVALIDATE_EVENT,A)},{retryCount:(g.retryCount||0)+1,dedupe:!0})))}return E=!1,h(),!0},[a,C]),AM=(0,I.useCallback)((...A)=>R(C,Y.current,...A),[]);if(F(()=>{f.current=Q,j.current=B,y(AA)||(AC.current=AA)}),F(()=>{if(!a)return;let A=Ac.bind(M,q),Q=0,B=X(a,G,(B,C={})=>{if(B==u.FOCUS_EVENT){let B=Date.now();b().revalidateOnFocus&&B>Q&&m()&&(Q=B+b().focusThrottleInterval,A())}else if(B==u.RECONNECT_EVENT)b().revalidateOnReconnect&&m()&&A();else if(B==u.MUTATE_EVENT)return Ac();else if(B==u.ERROR_REVALIDATE_EVENT)return Ac(C)});return l.current=!1,Y.current=a,N.current=!0,T({_k:o}),AE&&(y(AQ)||J?A():S(A)),()=>{l.current=!0,B()}},[a]),F(()=>{let A;function Q(){let Q=n(K)?K(AQ):K;Q&&-1!==A&&(A=setTimeout(B,Q))}function B(){!Z().error&&(t||b().isVisible())&&(U||b().isOnline())?Ac(q).then(Q):Q()}return Q(),()=>{A&&(clearTimeout(A),A=-1)}},[K,t,U,a]),(0,I.useDebugValue)(AI),D&&y(AQ)&&a){if(!e&&J)throw Error("Fallback data is required when using suspense in SSR.");throw f.current=Q,j.current=B,l.current=!1,y(AB)?Ac(q):AB}return{mutate:AM,get data(){return W.data=!0,AI},get error(){return W.error=!0,AB},get isValidating(){return W.isValidating=!0,Aw},get isLoading(){return W.isLoading=!0,AD}}},function(...A){let Q=V(),[B,I,E]=x(A),g=P(Q,E),w=C,{use:D}=g,c=(D||[]).concat(v);for(let A=c.length;A--;)w=c[A](w);return w(B,I||g.fetcher||null,g)})}},function(A){var Q=function(Q){return A(A.s=Q)};A.O(0,[774,179],function(){return Q(86570),Q(70743)}),_N_E=A.O()}]); \ No newline at end of file +`+(E!==I?`result of cast: ${E}`:""))}return C}_cast(A,Q){let B=void 0===A?A:this.transforms.reduce((Q,B)=>B.call(this,Q,A,this),A);return void 0===B&&(B=this.getDefault()),B}_validate(A,Q={},B){let{sync:C,path:I,from:E=[],originalValue:g=A,strict:w=this.spec.strict,abortEarly:D=this.spec.abortEarly}=Q,c=A;w||(c=this._cast(c,fU({assert:!1},Q)));let M={value:c,path:I,options:Q,originalValue:g,schema:this,label:this.spec.label,sync:C,from:E},s=[];this._typeError&&s.push(this._typeError);let y=[];this._whitelistError&&y.push(this._whitelistError),this._blacklistError&&y.push(this._blacklistError),fw({args:M,value:c,path:I,sync:C,tests:s,endEarly:D},A=>{if(A)return void B(A,c);fw({tests:this.tests.concat(y),args:M,path:I,sync:C,value:c,endEarly:D},B)})}validate(A,Q,B){let C=this.resolve(fU({},Q,{value:A}));return"function"==typeof B?C._validate(A,Q,B):new Promise((B,I)=>C._validate(A,Q,(A,Q)=>{A?I(A):B(Q)}))}validateSync(A,Q){let B;return this.resolve(fU({},Q,{value:A}))._validate(A,fU({},Q,{sync:!0}),(A,Q)=>{if(A)throw A;B=Q}),B}isValid(A,Q){return this.validate(A,Q).then(()=>!0,A=>{if(fE.isError(A))return!1;throw A})}isValidSync(A,Q){try{return this.validateSync(A,Q),!0}catch(A){if(fE.isError(A))return!1;throw A}}_getDefault(){let A=this.spec.default;return null==A?A:"function"==typeof A?A.call(this):Hx(A)}getDefault(A){return this.resolve(A||{})._getDefault()}default(A){return 0==arguments.length?this._getDefault():this.clone({default:A})}strict(A=!0){let Q=this.clone();return Q.spec.strict=A,Q}_isPresent(A){return null!=A}defined(A=H8.defined){return this.test({message:A,name:"defined",exclusive:!0,test:A=>void 0!==A})}required(A=H8.required){return this.clone({presence:"required"}).withMutation(Q=>Q.test({message:A,name:"required",exclusive:!0,test(A){return this.schema._isPresent(A)}}))}notRequired(){let A=this.clone({presence:"optional"});return A.tests=A.tests.filter(A=>"required"!==A.OPTIONS.name),A}nullable(A=!0){return this.clone({nullable:!1!==A})}transform(A){let Q=this.clone();return Q.transforms.push(A),Q}test(...A){let Q;if(void 0===(Q=1===A.length?"function"==typeof A[0]?{test:A[0]}:A[0]:2===A.length?{name:A[0],test:A[1]}:{name:A[0],message:A[1],test:A[2]}).message&&(Q.message=H8.default),"function"!=typeof Q.test)throw TypeError("`test` is a required parameters");let B=this.clone(),C=fk(Q),I=Q.exclusive||Q.name&&!0===B.exclusiveTests[Q.name];if(Q.exclusive&&!Q.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return Q.name&&(B.exclusiveTests[Q.name]=!!Q.exclusive),B.tests=B.tests.filter(A=>A.OPTIONS.name!==Q.name||!I&&A.OPTIONS.test!==C.OPTIONS.test),B.tests.push(C),B}when(A,Q){Array.isArray(A)||"string"==typeof A||(Q=A,A=".");let B=this.clone(),C=fB(A).map(A=>new fn(A));return C.forEach(A=>{A.isSibling&&B.deps.push(A.key)}),B.conditions.push(new fQ(C,Q)),B}typeError(A){let Q=this.clone();return Q._typeError=fk({message:A,name:"typeError",test(A){return!!(void 0===A||this.schema.isType(A))||this.createError({params:{type:this.schema._type}})}}),Q}oneOf(A,Q=H8.oneOf){let B=this.clone();return A.forEach(A=>{B._whitelist.add(A),B._blacklist.delete(A)}),B._whitelistError=fk({message:Q,name:"oneOf",test(A){if(void 0===A)return!0;let Q=this.schema._whitelist,B=Q.resolveAll(this.resolve);return!!B.includes(A)||this.createError({params:{values:Q.toArray().join(", "),resolved:B}})}}),B}notOneOf(A,Q=H8.notOneOf){let B=this.clone();return A.forEach(A=>{B._blacklist.add(A),B._whitelist.delete(A)}),B._blacklistError=fk({message:Q,name:"notOneOf",test(A){let Q=this.schema._blacklist,B=Q.resolveAll(this.resolve);return!B.includes(A)||this.createError({params:{values:Q.toArray().join(", "),resolved:B}})}}),B}strip(A=!0){let Q=this.clone();return Q.spec.strip=A,Q}describe(){let A=this.clone(),{label:Q,meta:B}=A.spec;return{meta:B,label:Q,type:A.type,oneOf:A._whitelist.describe(),notOneOf:A._blacklist.describe(),tests:A.tests.map(A=>({name:A.OPTIONS.name,params:A.OPTIONS.params})).filter((A,Q,B)=>B.findIndex(Q=>Q.name===A.name)===Q)}}}for(let A of(fL.prototype.__isYupSchema__=!0,["validate","validateSync"]))fL.prototype[`${A}At`]=function(Q,B,C={}){let{parent:I,parentPath:E,schema:g}=function(A,Q,B,C=B){let I,E,g;return Q?((0,fM.forEach)(Q,(w,D,c)=>{let M=D?fK(w):w;if((A=A.resolve({context:C,parent:I,value:B})).innerType){let C=c?parseInt(M,10):0;if(B&&C>=B.length)throw Error(`Yup.reach cannot resolve an array item at index: ${w}, in the path: ${Q}. because there is no value at that index. `);I=B,B=B&&B[C],A=A.innerType}if(!c){if(!A.fields||!A.fields[M])throw Error(`The schema does not contain the path: ${Q}. (failed at: ${g} which is a type: "${A._type}")`);I=B,B=B&&B[M],A=A.fields[M]}E=M,g=D?"["+w+"]":"."+w}),{schema:A,parent:I,parentPath:E}):{parent:I,parentPath:Q,schema:A}}(this,Q,B,C.context);return g[A](I&&I[E],fU({},C,{parent:I,path:Q}))};for(let A of["equals","is"])fL.prototype[A]=fL.prototype.oneOf;for(let A of["not","nope"])fL.prototype[A]=fL.prototype.notOneOf;fL.prototype.optional=fL.prototype.notRequired,fL.prototype;var fi=A=>null==A;class fG extends fL{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(A){if(!this.isType(A)){if(/^(true|1)$/i.test(String(A)))return!0;if(/^(false|0)$/i.test(String(A)))return!1}return A})})}_typeCheck(A){return A instanceof Boolean&&(A=A.valueOf()),"boolean"==typeof A}isTrue(A=H2.isValue){return this.test({message:A,name:"is-value",exclusive:!0,params:{value:"true"},test:A=>fi(A)||!0===A})}isFalse(A=H2.isValue){return this.test({message:A,name:"is-value",exclusive:!0,params:{value:"false"},test:A=>fi(A)||!1===A})}}fG.prototype;let fp=/^((([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,fr=/^((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,fa=/^(?:[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,fo=A=>fi(A)||A===A.trim(),fN=({}).toString();function fe(){return new fJ}class fJ extends fL{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(A){if(this.isType(A)||Array.isArray(A))return A;let Q=null!=A&&A.toString?A.toString():A;return Q===fN?A:Q})})}_typeCheck(A){return A instanceof String&&(A=A.valueOf()),"string"==typeof A}_isPresent(A){return super._isPresent(A)&&!!A.length}length(A,Q=H3.length){return this.test({message:Q,name:"length",exclusive:!0,params:{length:A},test(Q){return fi(Q)||Q.length===this.resolve(A)}})}min(A,Q=H3.min){return this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(Q){return fi(Q)||Q.length>=this.resolve(A)}})}max(A,Q=H3.max){return this.test({name:"max",exclusive:!0,message:Q,params:{max:A},test(Q){return fi(Q)||Q.length<=this.resolve(A)}})}matches(A,Q){let B,C,I=!1;return Q&&("object"==typeof Q?{excludeEmptyString:I=!1,message:B,name:C}=Q:B=Q),this.test({name:C||"matches",message:B||H3.matches,params:{regex:A},test:Q=>fi(Q)||""===Q&&I||-1!==Q.search(A)})}email(A=H3.email){return this.matches(fp,{name:"email",message:A,excludeEmptyString:!0})}url(A=H3.url){return this.matches(fr,{name:"url",message:A,excludeEmptyString:!0})}uuid(A=H3.uuid){return this.matches(fa,{name:"uuid",message:A,excludeEmptyString:!1})}ensure(){return this.default("").transform(A=>null===A?"":A)}trim(A=H3.trim){return this.transform(A=>null!=A?A.trim():A).test({message:A,name:"trim",test:fo})}lowercase(A=H3.lowercase){return this.transform(A=>fi(A)?A:A.toLowerCase()).test({message:A,name:"string_case",exclusive:!0,test:A=>fi(A)||A===A.toLowerCase()})}uppercase(A=H3.uppercase){return this.transform(A=>fi(A)?A:A.toUpperCase()).test({message:A,name:"string_case",exclusive:!0,test:A=>fi(A)||A===A.toUpperCase()})}}fe.prototype=fJ.prototype;let fS=A=>A!=+A;function fF(){return new fl}class fl extends fL{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(A){let Q=A;if("string"==typeof Q){if(""===(Q=Q.replace(/\s/g,"")))return NaN;Q=+Q}return this.isType(Q)?Q:parseFloat(Q)})})}_typeCheck(A){return A instanceof Number&&(A=A.valueOf()),"number"==typeof A&&!fS(A)}min(A,Q=H1.min){return this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(Q){return fi(Q)||Q>=this.resolve(A)}})}max(A,Q=H1.max){return this.test({message:Q,name:"max",exclusive:!0,params:{max:A},test(Q){return fi(Q)||Q<=this.resolve(A)}})}lessThan(A,Q=H1.lessThan){return this.test({message:Q,name:"max",exclusive:!0,params:{less:A},test(Q){return fi(Q)||Qthis.resolve(A)}})}positive(A=H1.positive){return this.moreThan(0,A)}negative(A=H1.negative){return this.lessThan(0,A)}integer(A=H1.integer){return this.test({name:"integer",message:A,test:A=>fi(A)||Number.isInteger(A)})}truncate(){return this.transform(A=>fi(A)?A:0|A)}round(A){var Q;let B=["ceil","floor","round","trunc"];if("trunc"===(A=(null==(Q=A)?void 0:Q.toLowerCase())||"round"))return this.truncate();if(-1===B.indexOf(A.toLowerCase()))throw TypeError("Only valid options for round() are: "+B.join(", "));return this.transform(Q=>fi(Q)?Q:Math[A](Q))}}fF.prototype=fl.prototype;var fY=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let fH=new Date(""),ff=A=>"[object Date]"===Object.prototype.toString.call(A);function fd(){return new fu}class fu extends fL{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(A){return this.isType(A)?A:isNaN(A=function(A){var Q,B,C=[1,4,5,6,7,10,11],I=0;if(B=fY.exec(A)){for(var E,g=0;E=C[g];++g)B[E]=+B[E]||0;B[2]=(+B[2]||1)-1,B[3]=+B[3]||1,B[7]=B[7]?String(B[7]).substr(0,3):0,(void 0===B[8]||""===B[8])&&(void 0===B[9]||""===B[9])?Q=+new Date(B[1],B[2],B[3],B[4],B[5],B[6],B[7]):("Z"!==B[8]&&void 0!==B[9]&&(I=60*B[10]+B[11],"+"===B[9]&&(I=0-I)),Q=Date.UTC(B[1],B[2],B[3],B[4],B[5]+I,B[6],B[7]))}else Q=Date.parse?Date.parse(A):NaN;return Q}(A))?fH:new Date(A)})})}_typeCheck(A){return ff(A)&&!isNaN(A.getTime())}prepareParam(A,Q){let B;if(fn.isRef(A))B=A;else{let C=this.cast(A);if(!this._typeCheck(C))throw TypeError(`\`${Q}\` must be a Date or a value that can be \`cast()\` to a Date`);B=C}return B}min(A,Q=H4.min){let B=this.prepareParam(A,"min");return this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(A){return fi(A)||A>=this.resolve(B)}})}max(A,Q=H4.max){let B=this.prepareParam(A,"max");return this.test({message:Q,name:"max",exclusive:!0,params:{max:A},test(A){return fi(A)||A<=this.resolve(B)}})}}fu.INVALID_DATE=fH,fd.prototype=fu.prototype,fd.INVALID_DATE=fH;var fR=B(57370),fj=B.n(fR),fb=B(96009),fm=B.n(fb),fZ=B(19950),fT=B.n(fZ),fP=B(95159),fO=B.n(fP);function fW(A,Q){let B=1/0;return A.some((A,C)=>{var I;if((null==(I=Q.path)?void 0:I.indexOf(A))!==-1)return B=C,!0}),B}function fz(A){return(Q,B)=>fW(A,Q)-fW(A,B)}function fx(){return(fx=Object.assign||function(A){for(var Q=1;Q"[object Object]"===Object.prototype.toString.call(A),fv=fz([]);class fX extends fL{constructor(A){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=fv,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(A){if("string"==typeof A)try{A=JSON.parse(A)}catch(Q){A=null}return this.isType(A)?A:null}),A&&this.shape(A)})}_typeCheck(A){return fV(A)||"function"==typeof A}_cast(A,Q={}){var B;let C=super._cast(A,Q);if(void 0===C)return this.getDefault();if(!this._typeCheck(C))return C;let I=this.fields,E=null!=(B=Q.stripUnknown)?B:this.spec.noUnknown,g=this._nodes.concat(Object.keys(C).filter(A=>-1===this._nodes.indexOf(A))),w={},D=fx({},Q,{parent:w,__validating:Q.__validating||!1}),c=!1;for(let A of g){let B=I[A],g=H7()(C,A);if(B){let I;let E=C[A];D.path=(Q.path?`${Q.path}.`:"")+A;let g="spec"in(B=B.resolve({value:E,context:Q.context,parent:w}))?B.spec:void 0,M=null==g?void 0:g.strict;if(null==g?void 0:g.strip){c=c||A in C;continue}void 0!==(I=Q.__validating&&M?C[A]:B.cast(C[A],D))&&(w[A]=I)}else g&&!E&&(w[A]=C[A]);w[A]!==C[A]&&(c=!0)}return c?w:C}_validate(A,Q={},B){let C=[],{sync:I,from:E=[],originalValue:g=A,abortEarly:w=this.spec.abortEarly,recursive:D=this.spec.recursive}=Q;E=[{schema:this,value:g},...E],Q.__validating=!0,Q.originalValue=g,Q.from=E,super._validate(A,Q,(A,c)=>{if(A){if(!fE.isError(A)||w)return void B(A,c);C.push(A)}if(!D||!fV(c)){B(C[0]||null,c);return}g=g||c,fw({sync:I,tests:this._nodes.map(A=>(B,C)=>{let I=-1===A.indexOf(".")?(Q.path?`${Q.path}.`:"")+A:`${Q.path||""}["${A}"]`,w=this.fields[A];if(w&&"validate"in w){w.validate(c[A],fx({},Q,{path:I,from:E,strict:!0,parent:c,originalValue:g[A]}),C);return}C(null)}),value:c,errors:C,endEarly:w,sort:this._sortErrors,path:Q.path},B)})}clone(A){let Q=super.clone(A);return Q.fields=fx({},this.fields),Q._nodes=this._nodes,Q._excludedEdges=this._excludedEdges,Q._sortErrors=this._sortErrors,Q}concat(A){let Q=super.concat(A),B=Q.fields;for(let[A,Q]of Object.entries(this.fields)){let C=B[A];void 0===C?B[A]=Q:C instanceof fL&&Q instanceof fL&&(B[A]=Q.concat(C))}return Q.withMutation(()=>Q.shape(B,this._excludedEdges))}getDefaultFromShape(){let A={};return this._nodes.forEach(Q=>{let B=this.fields[Q];A[Q]="default"in B?B.getDefault():void 0}),A}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(A,Q=[]){let B=this.clone(),C=Object.assign(B.fields,A);return B.fields=C,B._sortErrors=fz(Object.keys(C)),Q.length&&(Array.isArray(Q[0])||(Q=[Q]),B._excludedEdges=[...B._excludedEdges,...Q]),B._nodes=function(A,Q=[]){let B=[],C=new Set,I=new Set(Q.map(([A,Q])=>`${A}-${Q}`));function E(A,Q){let E=(0,fM.split)(A)[0];C.add(E),I.has(`${Q}-${E}`)||B.push([Q,E])}for(let Q in A)if(H7()(A,Q)){let B=A[Q];C.add(Q),fn.isRef(B)&&B.isSibling?E(B.path,Q):fA(B)&&"deps"in B&&B.deps.forEach(A=>E(A,Q))}return fO().array(Array.from(C),B).reverse()}(C,B._excludedEdges),B}pick(A){let Q={};for(let B of A)this.fields[B]&&(Q[B]=this.fields[B]);return this.clone().withMutation(A=>(A.fields={},A.shape(Q)))}omit(A){let Q=this.clone(),B=Q.fields;for(let C of(Q.fields={},A))delete B[C];return Q.withMutation(()=>Q.shape(B))}from(A,Q,B){let C=(0,fM.getter)(A,!0);return this.transform(I=>{if(null==I)return I;let E=I;return H7()(I,A)&&(E=fx({},I),B||delete E[A],E[Q]=C(I)),E})}noUnknown(A=!0,Q=H5.noUnknown){"string"==typeof A&&(Q=A,A=!0);let B=this.test({name:"noUnknown",exclusive:!0,message:Q,test(Q){let B;if(null==Q)return!0;let C=(B=Object.keys(this.schema.fields),Object.keys(Q).filter(A=>-1===B.indexOf(A)));return!A||0===C.length||this.createError({params:{unknown:C.join(", ")}})}});return B.spec.noUnknown=A,B}unknown(A=!0,Q=H5.noUnknown){return this.noUnknown(!A,Q)}transformKeys(A){return this.transform(Q=>Q&&fT()(Q,(Q,B)=>A(B)))}camelCase(){return this.transformKeys(fm())}snakeCase(){return this.transformKeys(fj())}constantCase(){return this.transformKeys(A=>fj()(A).toUpperCase())}describe(){let A=super.describe();return A.fields=fc()(this.fields,A=>A.describe()),A}}function fq(A){return new fX(A)}function f_(){return(f_=Object.assign||function(A){for(var Q=1;Q{this.transform(function(A){if("string"==typeof A)try{A=JSON.parse(A)}catch(Q){A=null}return this.isType(A)?A:null})})}_typeCheck(A){return Array.isArray(A)}get _subType(){return this.innerType}_cast(A,Q){let B=super._cast(A,Q);if(!this._typeCheck(B)||!this.innerType)return B;let C=!1,I=B.map((A,B)=>{let I=this.innerType.cast(A,f_({},Q,{path:`${Q.path||""}[${B}]`}));return I!==A&&(C=!0),I});return C?I:B}_validate(A,Q={},B){var C,I;let E=[],g=Q.sync,w=Q.path,D=this.innerType,c=null!=(C=Q.abortEarly)?C:this.spec.abortEarly,M=null!=(I=Q.recursive)?I:this.spec.recursive,s=null!=Q.originalValue?Q.originalValue:A;super._validate(A,Q,(A,C)=>{if(A){if(!fE.isError(A)||c)return void B(A,C);E.push(A)}if(!M||!D||!this._typeCheck(C)){B(E[0]||null,C);return}s=s||C;let I=Array(C.length);for(let A=0;AD.validate(B,g,Q)}fw({sync:g,path:w,value:C,errors:E,endEarly:c,tests:I},B)})}clone(A){let Q=super.clone(A);return Q.innerType=this.innerType,Q}concat(A){let Q=super.concat(A);return Q.innerType=this.innerType,A.innerType&&(Q.innerType=Q.innerType?Q.innerType.concat(A.innerType):A.innerType),Q}of(A){let Q=this.clone();if(!fA(A))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+H0(A));return Q.innerType=A,Q}length(A,Q=H9.length){return this.test({message:Q,name:"length",exclusive:!0,params:{length:A},test(Q){return fi(Q)||Q.length===this.resolve(A)}})}min(A,Q){return Q=Q||H9.min,this.test({message:Q,name:"min",exclusive:!0,params:{min:A},test(Q){return fi(Q)||Q.length>=this.resolve(A)}})}max(A,Q){return Q=Q||H9.max,this.test({message:Q,name:"max",exclusive:!0,params:{max:A},test(Q){return fi(Q)||Q.length<=this.resolve(A)}})}ensure(){return this.default(()=>[]).transform((A,Q)=>this._typeCheck(A)?A:null==Q?[]:[].concat(Q))}compact(A){let Q=A?(Q,B,C)=>!A(Q,B,C):A=>!!A;return this.transform(A=>null!=A?A.filter(Q):A)}describe(){let A=super.describe();return this.innerType&&(A.innerType=this.innerType.describe()),A}nullable(A=!0){return super.nullable(A)}defined(){return super.defined()}required(A){return super.required(A)}}f$.prototype,fq().shape({address:fe().required("Required"),description:fe().required("Required"),index:fF().integer().required("Required")});var f0=B(38001);function f8(A){let{title:Q,description:B,address:C}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[Q&&(0,Ah.jsx)(Ke,{size:"20",font:"mono",children:Q}),B&&(0,Ah.jsx)(CC,{children:B}),(0,Ah.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,Ah.jsx)("div",{className:"absolute",children:(0,Ah.jsx)(f0.Z,{size:200,value:C})})}),(0,Ah.jsx)(SB,{type:"address",value:C})]})}let f3={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 f1(){let{settings:A,setCurrency:Q,currencyOptions:B}=(0,UQ.Hv)();return(0,Ah.jsx)(Ug,{"aria-label":"currency fiat",name:"currencyFiat",disabled:!A.siaCentral,value:A.currency.id,onChange:A=>Q(A.currentTarget.value),children:B.map(A=>{let{id:Q,label:B}=A;return(0,Ah.jsx)(Uw,{value:Q,children:B},Q)})})}let f4=[{id:"sc",label:"Siacoin"},{id:"fiat",label:"Fiat"},{id:"bothPreferSc",label:"Both - prefer siacoin"},{id:"bothPreferFiat",label:"Both - prefer fiat"}];function f2(){let{settings:A,setExternalDataSettings:Q}=(0,UQ.Hv)();return(0,Ah.jsx)(Ug,{"aria-label":"currency display",name:"currencyDisplay",disabled:!A.siaCentral,value:A.currencyDisplay,onChange:A=>Q({currencyDisplay:A.currentTarget.value}),children:f4.map(A=>{let{id:Q,label:B}=A;return(0,Ah.jsx)(Uw,{value:Q,children:B},Q)})})}function f5(A){let{open:Q,onOpenChange:B,securityEl:C,showGpuSetting:I}=A,{settings:E,setRequestSettings:g,setExternalDataSettings:w,daemonExplorer:D,gpu:c}=(0,UQ.Hv)();return(0,Ah.jsx)(yS,{open:Q,title:"App preferences",onOpenChange:B,contentVariants:{className:"w-[450px]"},children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,Ah.jsx)("div",{className:"flex flex-col gap-4",children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Display"}),(0,Ah.jsx)(CI,{size:"14",children:"Configure visual and locale display preferences."}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Currency display"}),(0,Ah.jsx)(f2,{})]}),(0,Ah.jsx)(CI,{size:"14",children:"Select whether you would like to see currency values in siacoin, fiat, or both. Fiat requires a third-party API enabled under Privacy."})]})}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Fiat"}),(0,Ah.jsx)(f1,{})]}),(0,Ah.jsx)(CI,{size:"14",children:"Select a fiat currency for price conversions from Siacoin. Requires a third-party API enabled under Privacy."})]})}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Theme"}),(0,Ah.jsx)(id,{})]}),(0,Ah.jsx)(CI,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),I&&(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"GPU"}),(0,Ah.jsx)(UF,{disabled:!c.canGpuRender,checked:c.canGpuRender&&c.isGpuEnabled,onCheckedChange:c.setIsGpuEnabled,size:"medium"})]}),(0,Ah.jsxs)(CI,{size:"14",children:["Enable features that require a GPU."," ",c.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Security"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CI,{size:"14",children:"Configure security preferences."}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Lock app"}),(0,Ah.jsx)(UF,{size:"medium",checked:E.autoLock,onCheckedChange:A=>g({autoLock:A})}),(0,Ah.jsxs)(Ug,{disabled:!E.autoLock,value:String(E.autoLockTimeout),onChange:A=>{g({autoLockTimeout:Number(A.currentTarget.value)})},children:[(0,Ah.jsx)(Uw,{value:(0,ed.sW)(5),children:"5 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(10),children:"10 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(20),children:"20 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(30),children:"30 minutes"}),(0,Ah.jsx)(Uw,{value:(0,ed.sW)(60),children:"1 hour"})]})]}),(0,Ah.jsx)(CI,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),C]})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Privacy"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CI,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. Third-party APIs are optional and can be toggled on or off."}),(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Sia Central"}),(0,Ah.jsx)(UF,{size:"medium",checked:E.siaCentral,onCheckedChange:A=>w({siaCentral:A})})]}),(0,Ah.jsx)(CI,{size:"14",children:"The app fetches network average prices and host geolocation from the Sia Central API."})]})}),D.isSupported?(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-1 items-center justify-between",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Explorer"})]}),(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[D.api?(0,Ah.jsx)(SB,{maxLength:30,value:D.api||"https://api.siascan.com"}):(0,Ah.jsx)(CC,{size:"14",weight:"medium",color:"subtle",children:"Not configured"}),(0,Ah.jsx)(UF,{size:"medium",disabled:!0,checked:D.enabled,onCheckedChange:A=>w({siaCentral:A})})]})]}),(0,Ah.jsx)(CI,{size:"14",children:"The app fetches Siacoin exchange rates from the configured explorer API. This API is configured and enabled in the daemon's startup configuration."})]})}):(0,Ah.jsx)(cs,{children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ah.jsx)(CC,{children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsx)(Ke,{size:"20",className:"flex-1",children:"Siascan"}),(0,Ah.jsx)(UF,{size:"medium",checked:E.siascan,onCheckedChange:A=>w({siascan:A})})]}),(0,Ah.jsx)(CI,{size:"14",children:"The app fetches Siacoin exchange rates from the Siascan API."})]})})]})]}),(0,Ah.jsx)(Kc,{className:"w-full"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,Ah.jsx)(CC,{size:"16",weight:"bold",children:"Help"}),(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Ah.jsx)(CI,{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,Ah.jsxs)("div",{className:"flex gap-4",children:[(0,Ah.jsxs)(Kb,{href:f3.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.lq1,{}),"Website"]}),(0,Ah.jsxs)(Kb,{href:f3.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.RdX,{}),"Docs"]}),(0,Ah.jsxs)(Kb,{href:f3.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.Sfn,{}),"About"]}),(0,Ah.jsxs)(Kb,{href:f3.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,Ah.jsx)(cc.b47,{}),"Discord"]})]})]})]})]})})}function f9(A){let{peers:Q,isLoading:B,connectPeer:C}=A;return(0,Ah.jsx)(SZ,{title:"Peers",actions:(0,Ah.jsx)(cD,{onClick:C,children:"Connect"}),isLoading:B,dataset:(null==Q?void 0:Q.map(A=>({type:"ip",hash:A})))||[]})}var f6=B(36446),f7=B(61613),dA=B(20465),dQ=B(22407),dB=function(A,Q,B,C){var I=-1,E=f7.Z,g=!0,w=A.length,D=[],c=Q.length;if(!w)return D;B&&(Q=(0,l8.Z)(Q,(0,Yn.Z)(B))),C?(E=dA.Z,g=!1):Q.length>=200&&(E=dQ.Z,g=!1,Q=new f6.Z(Q));Q:for(;++I{A.stopPropagation(),I(B)},children:(0,Ah.jsx)(cc.xVB,{})}),(0,Ah.jsx)(cD,{icon:w?"contrast":"hover",tip:"".concat(Q,": hide all"),variant:"ghost",onClick:A=>{A.stopPropagation(),E(B)},children:(0,Ah.jsx)(cc.pHg,{})})]})]})}function dg(A){let{open:Q,params:B,trigger:C,onOpenChange:I}=A,{body:E,title:g,variant:w,action:D,onConfirm:c}=B||{},M=(0,l0.cI)(),s=(0,Ak.useCallback)(()=>{c&&c(),I(!1)},[c,I]);return(0,Ah.jsx)(yS,{title:g,trigger:C,open:Q,onOpenChange:I,contentVariants:{className:"w-[400px]"},children:(0,Ah.jsx)("form",{onSubmit:M.handleSubmit(s),children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-4",children:[E,(0,Ah.jsx)("div",{className:"flex gap-1 justify-end",children:(0,Ah.jsx)(Sx,{variant:w,form:M,size:"small",children:D})})]})})})}function dw(A){let{name:Q,peerCount:B,isSynced:C,nodeBlockHeight:I,connectPeer:E}=A;return(0,Ah.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ah.jsx)(CC,{font:"mono",weight:"bold",size:"20",children:Q}),(0,Ah.jsxs)("div",{className:"flex items-center",children:[B?(0,Ah.jsxs)(cD,{className:"relative left-2 only:left-0",variant:"ghost",onClick:E,tip:"".concat(B," connected peers"),children:[(0,Ah.jsx)(CC,{color:"subtle",children:B.toLocaleString()}),(0,Ah.jsx)(cc.RK4,{})]}):null,I&&C?(0,Ah.jsx)(cg,{content:"Blockchain is synced",children:(0,Ah.jsx)("div",{className:"relative left-2",children:(0,Ah.jsxs)(cD,{variant:"ghost",state:"waiting",children:[(0,Ah.jsx)(CC,{color:"subtle",children:I.toLocaleString()}),(0,Ah.jsx)(CC,{color:"green",children:(0,Ah.jsx)(cc.Y3p,{})})]})})}):null]})]})}function dD(A){let{nodeBlockHeight:Q,networkBlockHeight:B,moreThan100BlocksToSync:C,percent:I}=A;return(0,Ah.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,Ah.jsx)(tl,{variant:"accent",value:Q&&B?Q:0,max:B||1,className:""}),(0,Ah.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,Ah.jsx)(CC,{color:"subtle",size:"10",children:"Syncing..."}),Q&&B?C?(0,Ah.jsx)(CC,{color:"subtle",size:"10",children:"".concat(Q.toLocaleString()," / ").concat(B.toLocaleString()," (").concat(I,"%)")}):(0,Ah.jsx)(CC,{color:"subtle",size:"10",children:"(".concat(I,"%)")}):null]})]})}function dc(A){let{name:Q,peerCount:B,connectPeer:C,isSynced:I,syncPercent:E,nodeBlockHeight:g,estimatedBlockHeight:w,firstTimeSyncing:D,moreThan100BlocksToSync:c,children:M}=A;return(0,Ah.jsx)(U2,{rootProps:{openDelay:100,closeDelay:1e3},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,Ah.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[I||100===E||0===E?null:(0,Ah.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,Ah.jsxs)(CC,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[E,"%"]})}),(0,Ah.jsx)(KZ,{size:30})]}),children:(0,Ah.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[350px]",children:[(0,Ah.jsx)(dw,{nodeBlockHeight:g,isSynced:I,name:Q,peerCount:B,connectPeer:C}),I?(0,Ah.jsx)(Kc,{className:"w-full mb-0.5"}):(0,Ah.jsx)(dD,{percent:E,nodeBlockHeight:g,networkBlockHeight:w,moreThan100BlocksToSync:c}),D&&(0,Ah.jsxs)(Ah.Fragment,{children:[(0,Ah.jsx)(CC,{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,Ah.jsx)(Kc,{className:"w-full mb-1"})]}),M]})})}function dM(A){let{testnetName:Q}=A;return(0,Ah.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,Ah.jsx)(CC,{color:"lo",children:(0,Ah.jsx)(cc.RdX,{})}),(0,Ah.jsxs)(CC,{size:"14",color:"lo",children:["You are on the ",Q," testnet."]})]})}function ds(A){let{name:Q,form:B,fields:C,size:I="small",group:E=!0}=A,g=C[Q],{placeholder:w,average:D,suggestion:c,units:M,decimalsLimit:s=2,disableGroupSeparators:y,autoComplete:n,prefix:h}=g,{setValue:k,onBlur:K,error:t,value:U}=l9({form:B,field:g,name:Q}),L=(0,Ak.useMemo)(()=>w?new(t6())(w):c&&"boolean"!=typeof c?new(t6())(c):D&&"boolean"!=typeof D?new(t6())(D):void 0,[w,c,D]),i=(0,Ah.jsx)(UA,{prefix:h,name:Q,value:U,units:M,size:I,decimalsLimit:s,disableGroupSeparators:y,autoComplete:n,placeholder:L?new(t6())(L):void 0,state:t?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onChange:A=>{k(void 0!==A?new(t6())(A):void 0,!0)},onBlur:K});return E?(0,Ah.jsx)(Sz,{title:g.title,name:Q,form:B,wrap:!0,children:i}):i}function dy(A){let{name:Q,form:B,fields:C,size:I="small",group:E=!0}=A,g=C[Q],{options:w}=g,{ref:D,onChange:c,onBlur:M,error:s}=l9({name:Q,form:B,field:g}),y=(0,Ah.jsx)(Ug,{ref:D,name:Q,size:I,state:s?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onChange:c,onBlur:M,children:null==w?void 0:w.map(A=>(0,Ah.jsx)(Uw,{value:A.value,children:A.label},A.value))});return E?(0,Ah.jsx)(Sz,{title:g.title,name:Q,form:B,children:y}):y}function dn(A){let{name:Q,form:B,fields:C,group:I=!0}=A,E=C[Q],{placeholder:g}=E,{ref:w,onChange:D,onBlur:c,error:M}=l9({name:Q,form:B,field:E}),s=(0,Ah.jsx)(tH,{ref:w,name:Q,placeholder:g,readOnly:E.readOnly,onClick:E.onClick,state:M?"invalid":B.formState.dirtyFields[Q]?"valid":"default",onChange:D,onBlur:c});return I?(0,Ah.jsx)(Sz,{title:E.title,actions:E.actions,name:Q,form:B,children:s}):s}cc.lg1,cc.eHR,cc.I$H,cc.KiD,cc.P5r,cc.CCF,cc.w9S,cc.EL$,cc.aPl,cc.wEY,cc.EOT,cc.kSc,cc.W$S,cc.lJ7,cc.ORH,cc.ka0,cc.BdP,cc.d19,cc.Mes,cc.VUg,cc.U_S,cc.T85;let dh=A=>{let{__scopeTooltip:Q,delayDuration:B=700,skipDelayDuration:C=300,disableHoverableContent:I=!1,children:E}=A,[g,w]=(0,Ak.useState)(!0),D=(0,Ak.useRef)(!1),c=(0,Ak.useRef)(0);return(0,Ak.useEffect)(()=>{let A=c.current;return()=>window.clearTimeout(A)},[]),(0,Ak.createElement)(BV,{scope:Q,isOpenDelayed:g,delayDuration:B,onOpen:(0,Ak.useCallback)(()=>{window.clearTimeout(c.current),w(!1)},[]),onClose:(0,Ak.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>w(!0),C)},[C]),isPointerInTransitRef:D,onPointerInTransitChange:(0,Ak.useCallback)(A=>{D.current=A},[]),disableHoverableContent:I},E)};function dk(A){let{children:Q}=A,[B,C]=(0,Ak.useState)(!1);return(0,Ak.useEffect)(()=>{C(!0)},[]),(0,Ah.jsx)("div",{children:B?Q:null})}function dK(A){let{className:Q,daemonExplorerInfoRoute:B,passwordProtectRequestHooks:C,fallback:I,children:E,lockRoutes:g}=A;return(0,Ah.jsx)(dk,{children:(0,Ah.jsx)(UQ.kl,{fallback:I,children:(0,Ah.jsx)(L3,{attribute:"class",children:(0,Ah.jsx)(dh,{children:(0,Ah.jsx)(UQ.bW,{lockRoutes:g,daemonExplorerInfoRoute:B,passwordProtectRequestHooks:C,children:(0,Ah.jsxs)("div",{id:"root",className:Q,children:[(0,Ah.jsx)(J6,{}),E]})})})})})})}var dt=B(49058),dU=Math.min,dL=function(A,Q,B){for(var C=B?dA.Z:f7.Z,I=A[0].length,E=A.length,g=E,w=Array(E),D=1/0,c=[];g--;){var M=A[g];g&&Q&&(M=(0,l8.Z)(M,(0,Yn.Z)(Q))),D=dU(M.length,D),w[g]=!B&&(Q||I>=120&&M.length>=120)?new f6.Z(g&&M):void 0}M=A[0];var s=-1,y=w[0];Q:for(;++s{D(Q=>Q.includes(A)?Q.filter(Q=>Q!==A):Q.concat(A))},[D]),M=(0,Ak.useCallback)(A=>{D(Q=>(0,dt.Z)([...Q,...A]))},[D]),s=(0,Ak.useCallback)(A=>{D(Q=>dI(Q,A))},[D]),y=(0,Ak.useCallback)(()=>{D(C)},[D,C]),n=(0,Ak.useMemo)(()=>B.filter(A=>!A.fixed),[B]),h=(0,Ak.useMemo)(()=>B.filter(A=>A.fixed||w.includes(A.id)),[w,B]),k=(0,Ak.useMemo)(()=>h.map(A=>A.id),[h]),{sortField:K,sortDirection:t,setSortField:U,setSortDirection:L,toggleSort:i}=function(A,Q){let{defaultSortField:B,defaultSortDirection:C,sortOptions:I,visibleColumnIds:E}=Q,[g,w]=(0,dp.Z)("".concat(A,"/sortField"),{defaultValue:B}),[D,c]=(0,dp.Z)("".concat(A,"/sortDirection"),{defaultValue:C||"desc"});return{toggleSort:(0,Ak.useCallback)(A=>{if(g!==A){w(A),c("asc");return}c(A=>"desc"===A?"asc":"desc")},[g,w,c]),setSortDirection:c,setSortField:w,sortableColumns:(0,Ak.useMemo)(()=>I?dG(I.map(A=>A.id),E):[],[I,E]),sortField:g,sortDirection:D}}(A,{defaultSortField:I,defaultSortDirection:E,sortOptions:g,visibleColumnIds:k}),G=(0,Ak.useMemo)(()=>g?dG(g.map(A=>A.id),k):[],[g,k]);return{configurableColumns:n,visibleColumnIds:k,visibleColumns:h,toggleColumnVisibility:c,toggleSort:i,setSortDirection:L,setSortField:U,sortableColumns:G,sortField:K,setColumnsVisible:M,setColumnsHidden:s,sortDirection:t,resetDefaultColumnVisibility:y}}function da(){let A=(0,Ka.xj)(),Q=(0,Ka.jD)(),B=(0,Ka.lr)();return(0,Ak.useCallback)(()=>{if(!A||!Q)return;let C=new URLSearchParams(B),I=C.toString();C.delete("limit"),C.delete("offset"),C.delete("marker");let E=C.toString(),g=I?"".concat(Q,"?").concat(I):Q,w=E?"".concat(Q,"?").concat(E):Q;w!==g&&A.replace(w)},[A,B,Q])}function dN(){let[A,Q]=(0,Ak.useState)([]),B=da(),C=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A.id).concat(A)),B()},[Q,B]),I=(0,Ak.useCallback)(()=>{Q([]),B()},[Q,B]),E=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A)),B()},[Q,B]),g=(0,Ak.useCallback)(()=>{A.length&&(Q(A=>A.slice(0,-1)),B())},[Q,A,B]);return{filters:A,setFilter:C,removeFilter:E,removeLastFilter:g,resetFilters:I}}function de(A){let{dataset:Q,filters:B,sortField:C,sortDirection:I,limit:E,offset:g}=A,w=(0,Ak.useMemo)(()=>{if(!Q)return;let A=Object.entries(B).map(A=>{let[Q,B]=A;return B}),E=A.length?Q.filter(Q=>{for(let B of A)if(!B.fn(Q))return!1;return!0}):Q;return[...E=E.sort((A,Q)=>{let B=A[C],E=Q[C];return"desc"===I?void 0===B?1:void 0===E?-1:B instanceof t6()&&E instanceof t6()?B.lte(E)?1:-1:B<=E?1:-1:void 0===B?-1:void 0===E?1:B instanceof t6()&&E instanceof t6()?B.gte(E)?1:-1:B>=E?1:-1})]},[Q,B,C,I]),D=(0,Ak.useMemo)(()=>{if(w)return w.slice(g,g+E)},[w,g,E]);return{datasetFiltered:w,datasetPage:D}}function dJ(){let[A,Q]=(0,Ak.useState)([]),B=da(),C=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A.id).concat(A)),B()},[Q,B]),I=(0,Ak.useCallback)(()=>{Q([]),B()},[Q,B]),E=(0,Ak.useCallback)(A=>{Q(Q=>Q.filter(Q=>Q.id!==A)),B()},[Q,B]),g=(0,Ak.useCallback)(()=>{A.length&&(Q(A=>A.slice(0,-1)),B())},[A,Q,B]);return{filters:A,setFilter:C,removeFilter:E,removeLastFilter:g,resetFilters:I}}function dS(A){let Q=(0,Ka.lr)();return{limit:Number(Q.get("limit")||A),offset:Number(Q.get("offset")||0)}}(()=>{let A=0,Q=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(A+=1,`u${Q()}${A}`)})()},76221:function(A,Q,B){"use strict";B.d(Q,{Ee:function(){return D.a},Fb:function(){return g.a},j0:function(){return M.useRouter},jD:function(){return c.usePathname},lr:function(){return c.useSearchParams},rU:function(){return I.a},xj:function(){return c.useRouter}});var C=B(39097),I=B.n(C),E=B(97729),g=B.n(E),w=B(96577),D=B.n(w),c=B(82876),M=B(5632)},36219:function(A,Q,B){"use strict";B.d(Q,{bW:function(){return v},kl:function(){return AC},gw:function(){return g},Nz:function(){return AB},Hv:function(){return x},iv:function(){return q},Nf:function(){return X},Tu:function(){return N},mw:function(){return J},V1:function(){return S}});var C={};B.r(C),B.d(C,{getGPUTier:function(){return b}});var I=B(79381);function E(A,Q,B){return[A,"".concat(Q).concat((null==B?void 0:B.payload)?JSON.stringify(B.payload):"")]}function g(A){return new Promise(Q=>setTimeout(Q,A))}var w=B(89644),D=B.n(w),c=B(2784);function M(A){return{...A,config:{...null==A?void 0:A.config}}}function s(A){return{...A,config:{...null==A?void 0:A.config}}}function y(A,Q,B){return(null==B?void 0:B.api)||(null==Q?void 0:Q.api)||A.api}function n(A,Q,B){var C,I;let E=function(A,Q,B){var C,I,E,g;let w={"Content-Type":"application/json",...null===(I=Q.config)||void 0===I?void 0:null===(C=I.axios)||void 0===C?void 0:C.headers,...null==B?void 0:null===(g=B.config)||void 0===g?void 0:null===(E=g.axios)||void 0===E?void 0:E.headers},D=y(A,Q,B);return A.api===D&&A.password&&(w.Authorization="Basic "+btoa(":".concat(A.password))),w}(A,Q,B);return{responseType:"json",...null===(C=Q.config)||void 0===C?void 0:C.axios,...null==B?void 0:null===(I=B.config)||void 0===I?void 0:I.axios,headers:E}}function h(A,Q,B,C){let I=(null==B?void 0:B.params)||{};C&&C.params&&(I={...I,...C.params}),Q=function(A,Q){if(A&&Q)for(let B of Object.keys(Q)){let C=String(Q[B]);A.includes(":".concat(B))?A=A.replace(":".concat(B),C):A.includes("?")?A+="&".concat(B,"=").concat(encodeURIComponent(C)):A+="?".concat(B,"=").concat(encodeURIComponent(C))}return A}(Q,I);let E=y(A,B,C);return E===A.api?"".concat(E,"/api").concat(Q):"".concat(E).concat(Q)}function k(A,Q,B,C){let I=y(A,B,C);return I===A.api?Q[1].replace("".concat(I,"/api"),""):Q[1].replace(I,"")}var K=B(52322);let t=(0,c.createContext)({}),U=()=>(0,c.useContext)(t);function L(A){let{children:Q}=A,B=function(){let[A,Q]=(0,c.useState)({}),B=(0,c.useCallback)((A,B)=>{Q(Q=>({...Q,[A]:{key:A,...B}}))},[Q]);return{setWorkflow:B,removeWorkflow:(0,c.useCallback)(A=>{Q(Q=>(delete Q[A],{...Q}))},[Q]),resetWorkflows:(0,c.useCallback)(()=>{Q({})},[Q]),workflows:(0,c.useMemo)(()=>Object.entries(A).map(A=>A[1]),[A])}}();return(0,K.jsx)(t.Provider,{value:B,children:Q})}var i=B(76221),G=B(92762);let p={api:"",loginWithCustomApi:!1,password:void 0,recentApis:{},autoLock:!1,autoLockTimeout:6e5},r=(0,c.createContext)({}),a=()=>(0,c.useContext)(r);function o(A){let{children:Q,...B}=A,C=function(A){let{passwordProtectRequestHooks:Q,lockRoutes:B,defaultSettings:C}=A,E=(0,c.useMemo)(()=>({...p,...C}),[C]),[g,w]=(0,G.Z)("v1/requestConfig",{defaultValue:E});(0,c.useEffect)(()=>{w(A=>({...E,...A}))},[]);let D=(0,c.useMemo)(()=>({...E,...g}),[g,E]),{resetWorkflows:M}=U(),s=(0,c.useCallback)(A=>{w(Q=>({...Q,...A}))},[w]),y=(0,i.xj)(),n=(0,i.jD)(),[h,k]=(0,c.useState)({}),K=(0,c.useCallback)((A,Q)=>{k(B=>({...B,[A]:Q}))},[k]),t=(0,c.useCallback)(()=>{for(let[A,Q]of(B&&y.push("".concat(B.login,"?prev=").concat([B.login].includes(n)?B.home:n)),s({password:""}),M(),(0,I.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(h)))Q&&Q()},[y,B,s,M,h,n]),L=function(A){let Q=(0,i.jD)();return![A.login].includes(Q)}({login:(null==B?void 0:B.login)||"/login"}),r=(0,c.useMemo)(()=>!!D.password,[D]);return{requestSettings:D,setRequestSettings:s,lock:t,isUnlockedAndAuthedRoute:r&&L,passwordProtectRequestHooks:Q,setOnLockCallback:K}}(B);return(0,K.jsx)(r.Provider,{value:C,children:Q})}function N(A){let{requestSettings:Q}=a(),{mutate:B}=(0,I.kY)();return(0,c.useMemo)(()=>function(C,I,E){return e(B,Q,A,void 0,C,I,E)},[B,Q,A])}function e(A,Q,B,C,I,E,g){return A(A=>!!A&&"string"!=typeof A&&2===A.length&&I(k(Q,A,B,C)),E||(A=>A),g)}function J(A,Q){let{setWorkflow:B,removeWorkflow:C}=U(),{mutate:g}=(0,I.kY)(),{requestSettings:w}=a(),c=M(A);return{post:async A=>{let I=s(A);try{let M;let s=n(w,c,I),y=h(w,c.route,c,I);if(!y)throw Error("No route");"payload"in I&&(M=I.payload);let K=E("post",y,A),t=k(w,K,A,I),U=K.join("");B(U,{route:t,payload:M});let L=await D().post(y,M,s);return Q&&await Q(function(Q){let B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A=>A,C=arguments.length>2?arguments[2]:void 0;return e(g,w,A,I,Q,B,C)},I,L),C(U),{status:L.status,data:L.data,headers:L.headers}}catch(A){var M,y;return{status:null===(M=A.response)||void 0===M?void 0:M.status,error:(null===(y=A.response)||void 0===y?void 0:y.data)||A.message}}}}}function S(A,Q){let{mutate:B}=(0,I.kY)(),{requestSettings:C}=a(),{setWorkflow:g,removeWorkflow:w}=U(),c=M(A);return{put:async A=>{let I=s(A);try{let M;let s=n(C,c,I),y=h(C,c.route,c,I);if(!y)throw Error("No route");"payload"in I&&(M=I.payload);let K=E("put",y,A),t=k(C,K,A,I),U=K.join("");g(U,{route:t,payload:M});let L=await D().put(y,M,s);return Q&&await Q(function(Q){let E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A=>A,g=arguments.length>2?arguments[2]:void 0;return e(B,C,A,I,Q,E,g)},I,L),w(U),{status:L.status,data:L.data,headers:L.headers}}catch(A){var M,y;return{status:null===(M=A.response)||void 0===M?void 0:M.status,error:(null===(y=A.response)||void 0===y?void 0:y.data)||A.message}}}}}function F(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})}let l=["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 Y(A){return A=A.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 H="undefined"==typeof window,f=(()=>{if(H)return;let{userAgent:A,platform:Q,maxTouchPoints:B}=window.navigator,C=/(iphone|ipod|ipad)/i.test(A),I="iPad"===Q||"MacIntel"===Q&&B>0&&!window.MSStream;return{isIpad:I,isMobile:/android/i.test(A)||C||I,isSafari12:/Version\/12.+Safari/.test(A)}})();class d extends Error{constructor(A){super(A),Object.setPrototypeOf(this,new.target.prototype)}}let u=[],R=[];function j(A){return null!=A}let b=({mobileTiers:A=[0,15,30,60],desktopTiers:Q=[0,15,30,60],override:B={},glContext:C,failIfMajorPerformanceCaveat:I=!1,benchmarksURL:E="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>F(void 0,void 0,void 0,function*(){let g={};if(H)return{tier:0,type:"SSR"};let{isIpad:w=!!(null==f?void 0:f.isIpad),isMobile:D=!!(null==f?void 0:f.isMobile),screenSize:c=window.screen,loadBenchmarks:M=A=>F(void 0,void 0,void 0,function*(){let Q=yield fetch(`${E}/${A}`).then(A=>A.json());if(4>parseInt(Q.shift().split(".")[0],10))throw new d("Detect GPU benchmark data is out of date. Please update to version 4x");return Q})}=B,{renderer:s}=B,y=(A,Q,B,C,I)=>({device:I,fps:C,gpu:B,isMobile:D,tier:A,type:Q}),n,h="";if(s)n=[s=Y(s)];else{var k;let A=C||function(A,Q=!1){let B={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:Q,powerPreference:"high-performance",stencil:!1};A&&delete B.powerPreference;let C=window.document.createElement("canvas"),I=C.getContext("webgl",B)||C.getContext("experimental-webgl",B);return null!=I?I:void 0}(null==f?void 0:f.isSafari12,I);if(!A)return y(0,"WEBGL_UNSUPPORTED");let Q=A.getExtension("WEBGL_debug_renderer_info");if(Q&&(s=A.getParameter(Q.UNMASKED_RENDERER_WEBGL)),!s)return y(1,"FALLBACK");h=s,n="apple gpu"===(k=s=Y(s))?function(A,Q,B){let C;if(!B)return[Q];let I=function(A){let Q=A.createShader(35633),B=A.createShader(35632),C=A.createProgram();if(!(B&&Q&&C))return;A.shaderSource(Q,"\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 "),A.shaderSource(B,"\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 "),A.compileShader(Q),A.compileShader(B),A.attachShader(C,Q),A.attachShader(C,B),A.linkProgram(C),A.detachShader(C,Q),A.detachShader(C,B),A.deleteShader(Q),A.deleteShader(B),A.useProgram(C);let I=A.createBuffer();A.bindBuffer(34962,I),A.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let E=A.getAttribLocation(C,"aPosition");A.vertexAttribPointer(E,3,5126,!1,0,0),A.enableVertexAttribArray(E),A.clearColor(1,1,1,1),A.clear(16384),A.viewport(0,0,1,1),A.drawArrays(4,0,3);let g=new Uint8Array(4);return A.readPixels(0,0,1,1,6408,5121,g),A.deleteProgram(C),A.deleteBuffer(I),g.join("")}(A),E="801621810",g="8016218135",w="80162181161",D=(null==f?void 0:f.isIpad)?[["a7",w,12],["a8",g,15],["a8x",g,15],["a9",g,15],["a9x",g,15],["a10",g,15],["a10x",g,15],["a12",E,15],["a12x",E,15],["a12z",E,15],["a14",E,15],["m1",E,15]]:[["a7",w,12],["a8",g,12],["a9",g,15],["a10",g,15],["a11",E,15],["a12",E,15],["a13",E,15],["a14",E,15]];return"80162181255"===I?C=D.filter(([,,A])=>A>=14):(C=D.filter(([,A])=>A===I)).length||(C=D),C.map(([A])=>`apple ${A} gpu`)}(A,k,D):[k]}let K=(yield Promise.all(n.map(function(A){var Q;return F(this,void 0,void 0,function*(){let B;let C=(A=>{for(let Q of D?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"])if(A.includes(Q))return Q})(A);if(!C)return;let I=`${D?"m":"d"}-${C}${w?"-ipad":""}.json`,E=g[I]=null!==(Q=g[I])&&void 0!==Q?Q:M(I);try{B=yield E}catch(A){if(A instanceof d)throw A;return}let s=function(A){var Q;let B=(A=A.replace(/\([^)]+\)/,"")).match(/\d+/)||A.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(Q=null==B?void 0:B.join("").replace(/\W|amd/g,""))&&void 0!==Q?Q:""}(A),y=B.filter(([,A])=>A===s);y.length||(y=B.filter(([Q])=>Q.includes(A)));let n=y.length;if(0===n)return;let h=A.split(/[.,()\[\]/\s]/g).sort().filter((A,Q,B)=>0===Q||A!==B[Q-1]).join(" "),k,[K,,,,t]=n>1?y.map(A=>[A,function(A,Q){if(A===Q)return 0;let B=A;A.length>Q.length&&(A=Q,Q=B);let C=A.length,I=Q.length;for(;C>0&&A.charCodeAt(~-C)===Q.charCodeAt(~-I);)C--,I--;let E,g=0;for(;gc?D>c?c+1:D:D>w?w+1:D;return c}(h,A[2])]).sort(([,A],[,Q])=>A-Q)[0][0]:y[0],U=Number.MAX_VALUE,{devicePixelRatio:L}=window,i=c.width*L*c.height*L;for(let A of t){let[Q,B]=A,C=Math.abs(i-Q*B);CA===B?Q-C:A-B);if(!K.length){let A=l.find(A=>s.includes(A));return A?y(0,"BLOCKLISTED",A):y(1,"FALLBACK",`${s} (${h})`)}let[,t,U,L]=K[0];if(-1===t)return y(0,"BLOCKLISTED",U,t,L);let i=D?A:Q,G=0;for(let A=0;A=i[A]&&(G=A);return y(G,"BENCHMARK",U,t,L)}),{getGPUTier:m}=C,Z=[{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}],T={siaCentral:!0,siascan:!0,currency:Z[0],currencyDisplay:"bothPreferSc"},P=(0,c.createContext)({}),O=()=>(0,c.useContext)(P);function W(A){let{children:Q,...B}=A,C=function(A){let{daemonExplorerInfoRoute:Q,defaultSettings:B}=A,C=(0,c.useMemo)(()=>({...T,...B}),[B]),[I,E]=(0,G.Z)("v1/externalData",{defaultValue:C});(0,c.useEffect)(()=>{E(A=>({...C,...A}))},[]);let g=(0,c.useMemo)(()=>({...C,...I}),[I,C]),w=(0,c.useCallback)(A=>{E(Q=>({...Q,...A}))},[E]),D=(0,c.useCallback)(A=>{let Q=Z.find(Q=>Q.id===A);Q&&w({currency:Q})},[w]);return{externalDataSettings:g,setExternalDataSettings:w,setCurrency:D,currencyOptions:Z,daemonExplorer:function(A){var Q;let{route:B,config:C,disabled:I}=A,E=X({disabled:!B||I,route:B||"",config:{...C,swr:{...null==C?void 0:C.swr,revalidateOnFocus:!1}}}),{url:g,enabled:w}=(null===(Q=E.data)||void 0===Q?void 0:Q.explorer)||{},D=(0,c.useMemo)(()=>{if(g)try{let{origin:A}=new URL(g);return A}catch(A){console.error(A)}},[g]);return(0,c.useMemo)(()=>({isSupported:!!E.data,enabled:!!w&&!!D,api:D,isValidating:E.isValidating,isLoading:E.isLoading}),[w,D,E.isValidating,E.isLoading,E.data])}({route:Q})}}(B);return(0,K.jsx)(P.Provider,{value:C,children:Q})}let z=(0,c.createContext)({}),x=()=>(0,c.useContext)(z);function V(A){let{children:Q}=A,B=function(){let{requestSettings:A,setRequestSettings:Q,lock:B,isUnlockedAndAuthedRoute:C,setOnLockCallback:I}=a(),{externalDataSettings:E,setExternalDataSettings:g,setCurrency:w,currencyOptions:D,daemonExplorer:M}=O(),s=function(){let A=function(){var A,Q;let B=null===(A=(Q=window).matchMedia)||void 0===A?void 0:A.call(Q,"(prefers-reduced-motion: reduce)");return!B||!!B.matches}(),[Q,B]=(0,c.useState)(!1),[C,I]=(0,c.useState)(!1),[{isGpuEnabled:E,hasUserSet:g},w]=(0,G.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!A,hasUserSet:!1}}),D=(0,c.useCallback)(function(A){let Q=!(arguments.length>1)||void 0===arguments[1]||arguments[1];w(B=>({...B,isGpuEnabled:A,hasUserSet:Q}))},[w]),M=(0,c.useCallback)(async()=>{let A=!1;{let Q=await m();console.log("GPU",Q),A=Q.tier>0,!g&&Q.tier<2&&D(!1,!1)}I(A),B(!0)},[I,D,g]);return(0,c.useEffect)(()=>{M()},[]),{hasCheckedGpu:Q,canGpuRender:C,isGpuEnabled:E,shouldRender:C&&E,setCanGpuRender:I,setIsGpuEnabled:D}}();return{settings:(0,c.useMemo)(()=>({...A,...E}),[A,E]),requestSettings:A,externalDataSettings:E,setRequestSettings:Q,setExternalDataSettings:g,siascan:E.siascan,siaCentral:E.siaCentral,gpu:s,lock:B,isUnlockedAndAuthedRoute:C,setOnLockCallback:I,setCurrency:w,currencyOptions:D,daemonExplorer:M}}();return(0,K.jsx)(z.Provider,{value:B,children:Q})}function v(A){let{children:Q,...B}=A;return(0,K.jsx)(o,{...B,children:(0,K.jsx)(W,{...B,children:(0,K.jsx)(V,{...B,children:Q})})})}function X(A){var Q,B,C;let g=(0,c.useMemo)(()=>({...A,config:{...null==A?void 0:A.config}}),[A]),{requestSettings:w,passwordProtectRequestHooks:M}=a(),s=h(w,g.route,g,void 0);return(0,I.ZP)((B=E("get",s),C=g.disabled||M&&!w.password,!B||C?null:B),async()=>{if(!g.route)throw Error("No route");let A=n(w,g,void 0);if(!s)throw Error("No route");try{return(await D().get(s,A)).data}catch(Q){let A=Error(Q.response.data);throw A.status=Q.response.status||500,A}},null===(Q=g.config)||void 0===Q?void 0:Q.swr)}function q(A,Q){let{mutate:B}=(0,I.kY)(),{requestSettings:C}=a(),{setWorkflow:g,removeWorkflow:w}=U(),c=M(A);return{delete:async A=>{let I=s(A);try{let M=n(C,c,I),s=h(C,c.route,c,I);if(!s)throw Error("No route");let y=E("delete",s),K=k(C,y,A,I),t=y.join("");g(t,{route:K});let U=await D().delete(s,M);return Q&&await Q(function(Q){let E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A=>A,g=arguments.length>2?arguments[2]:void 0;return e(B,C,A,I,Q,E,g)},I,U),w(t),{status:U.status,data:U.data,headers:U.headers}}catch(A){var M,y;return{status:null===(M=A.response)||void 0===M?void 0:M.status,error:(null===(y=A.response)||void 0===y?void 0:y.data)||A.message}}}}}var _=B(6391),$=B.n(_),AA=B(88464);let AQ={revalidateOnFocus:!1,refreshInterval:(0,AA.sW)(5),dedupingInterval:(0,AA.sW)(5)};function AB(){let{config:A,disabled:Q}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{settings:B}=x();return function(A){let{currency:Q,config:B,disabled:C}=A,{daemonExplorer:I}=x(),E=function(A){let{currency:Q,config:B,disabled:C}=A,{daemonExplorer:{enabled:I,api:E},currencyOptions:g}=x(),w=X({params:{currency:Q},disabled:!I||C||!Q,api:E,route:"/exchange-rate/siacoin/:currency",config:{...B,swr:{...AQ,...null==B?void 0:B.swr}}});return(0,c.useMemo)(()=>({rate:w.data?new($())(w.data):void 0,error:w.error,isValidating:w.isValidating,isLoading:w.isLoading,currency:g.find(A=>A.id===Q)}),[w.data,w.error,w.isValidating,w.isLoading,g,Q])}({currency:Q,config:B,disabled:!I.enabled||C}),g=function(A){let{currency:Q,config:B,disabled:C}=A,{settings:I,currencyOptions:E}=x(),g=X({params:{currency:Q},api:"https://api.siascan.com",route:"/exchange-rate/siacoin/:currency",config:{...B,swr:{...AQ,...null==B?void 0:B.swr}},disabled:!I.siascan||!Q||C});return(0,c.useMemo)(()=>({rate:g.data?new($())(g.data):void 0,error:g.error,isValidating:g.isValidating,isLoading:g.isLoading,currency:E.find(A=>A.id===Q)}),[g.data,g.error,g.isValidating,g.isLoading,E,Q])}({currency:Q,config:B,disabled:I.enabled||C});return I.enabled?E:g}({currency:B.currency.id,config:A,disabled:Q})}function AC(A){let{fallback:Q,cacheProvider:B,children:C}=A;return(0,K.jsx)(L,{children:(0,K.jsx)(I.J$,{value:{fallback:Q||{},provider:B},children:C})})}},57165:function(A,Q,B){"use strict";function C(A,Q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);Q&&(C=C.filter(function(Q){return Object.getOwnPropertyDescriptor(A,Q).enumerable})),B.push.apply(B,C)}return B}function I(A){for(var Q=1;Q=0||(I[B]=A[B]);return I}(A,Q);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(A);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(A,B)&&(I[B]=A[B])}return I}B.d(Q,{aXP:function(){return QS},eHR:function(){return Qd},xHM:function(){return Qu},rW0:function(){return QR},osk:function(){return Qj},JaG:function(){return Qb},Ya6:function(){return QZ},EMN:function(){return Qx},bdU:function(){return QV},VUy:function(){return Qv},Cp0:function(){return QX},Mes:function(){return Qq},Y3p:function(){return Q7},Z$8:function(){return Q6},tEK:function(){return BQ},yar:function(){return BA},cRw:function(){return BB},MR9:function(){return BC},PcV:function(){return BE},QN4:function(){return BI},Jsc:function(){return Bw},T80:function(){return Bg},wEY:function(){return Bs},olJ:function(){return Bn},vtB:function(){return By},KiD:function(){return BK},NZ7:function(){return Bt},Jrl:function(){return Bi},aPl:function(){return BG},kBK:function(){return C3},Bpb:function(){return Br},dr6:function(){return Be},d19:function(){return BJ},w9S:function(){return BS},Hb6:function(){return BY},CCF:function(){return BH},UG6:function(){return C1},lq1:function(){return Bd},Pj_:function(){return C5},K2o:function(){return C8},EL$:function(){return BR},BdP:function(){return BT},P5r:function(){return BP},RdX:function(){return BO},U_S:function(){return BW},V8Q:function(){return BX},POp:function(){return Bq},kSc:function(){return B_},e_k:function(){return B$},mBM:function(){return C0},Lur:function(){return B1},b47:function(){return B4},Sfn:function(){return B2},W$S:function(){return CQ},T85:function(){return CB},Ckx:function(){return CC},EOT:function(){return CE},fDA:function(){return CI},RK4:function(){return Cw},XJM:function(){return Cy},RRj:function(){return Cn},j7C:function(){return Ck},ka0:function(){return Ch},VUg:function(){return CL},wGX:function(){return Ci},nt4:function(){return CG},Wet:function(){return Co},UJc:function(){return Ca},vs4:function(){return CF},$Iz:function(){return Cl},fwm:function(){return C6},shL:function(){return CY},hiv:function(){return CH},sZp:function(){return Cd},lJ7:function(){return C4},ORH:function(){return Cb},VmF:function(){return Cm},_Gh:function(){return CZ},Fhn:function(){return C2},R$y:function(){return C9},xVB:function(){return Cz},pHg:function(){return Cx},I$H:function(){return CV},oaN:function(){return C$},qdM:function(){return Cv},lg1:function(){return Cq}});var g,w,D,c,M,s,y,n,h,k,K,t,U,L,i,G,p,r,a,o,N,e,J,S,F,l,Y,H,f,d,u,R,j,b,m,Z,T,P,O,W,z,x,V,v,X,q,_,$,AA,AQ,AB,AC,AI,AE,Ag,Aw,AD,Ac,AM,As,Ay,An,Ah,Ak,AK,At,AU,AL,Ai,AG,Ap,Ar,Aa,Ao,AN,Ae,AJ,AS,AF,Al,AY,AH,Af,Ad,Au,AR,Aj,Ab,Am,AZ,AT,AP,AO,AW,Az,Ax,AV,Av,AX,Aq,A_,A$,A0,A8,A3,A1,A4,A2,A5,A9,A6,A7,QA,QQ,QB,QC,QI,QE,Qg,Qw,QD,Qc,QM,Qs,Qy,Qn,Qh,Qk=["width","height","viewBox"],QK=["tabindex"],Qt={focusable:"false",preserveAspectRatio:"xMidYMid meet"},QU=B(13980),QL=B.n(QU),Qi=B(2784);function QG(A,Q){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(A);Q&&(C=C.filter(function(Q){return Object.getOwnPropertyDescriptor(A,Q).enumerable})),B.push.apply(B,C)}return B}function Qp(A){for(var Q=1;Q=0||(I[B]=A[B]);return I}(A,Q);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(A);for(C=0;C=0)&&Object.prototype.propertyIsEnumerable.call(A,B)&&(I[B]=A[B])}return I}var Qo=["className","children","tabIndex"],QN=["tabindex"],Qe=Qi.forwardRef(function(A,Q){var B=A.className,C=A.children,g=A.tabIndex,w=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Q=A.width,B=A.height,C=A.viewBox,g=void 0===C?"0 0 ".concat(Q," ").concat(B):C,w=E(A,Qk),D=w.tabindex,c=E(w,QK),M=I(I(I({},Qt),c),{},{width:Q,height:B,viewBox:g});return M["aria-label"]||M["aria-labelledby"]||M.title?(M.role="img",null!=D&&(M.focusable="true",M.tabindex=D)):M["aria-hidden"]=!0,M}(Qp(Qp({},Qa(A,Qo)),{},{tabindex:g})),D=w.tabindex,c=Qa(w,QN);return B&&(c.className=B),null!=D&&(c.tabIndex=D),Q&&(c.ref=Q),Qi.createElement("svg",c,C)});Qe.displayName="Icon",Qe.propTypes={"aria-hidden":QL().string,"aria-label":QL().string,"aria-labelledby":QL().string,children:QL().node,className:QL().string,height:QL().oneOfType([QL().number,QL().string]),preserveAspectRatio:QL().string,tabIndex:QL().string,viewBox:QL().string,width:QL().oneOfType([QL().number,QL().string]),xmlns:QL().string},Qe.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var QJ=["children"],QS=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QJ);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),g||(g=Qi.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"})),B)}),QF=["children"],Ql=["children"],QY=["children"],QH=["children"],Qf=["children"],Qd=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QF);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),w||(w=Qi.createElement("path",{d:"M14 19H18V21H14z"})),D||(D=Qi.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),B)}),Qu=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Ql);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),c||(c=Qi.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"})),B)}),QR=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QY);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),M||(M=Qi.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"})),B)}),Qj=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QH);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),s||(s=Qi.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"})),B)}),Qb=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Qf);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),y||(y=Qi.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),n||(n=Qi.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),h||(h=Qi.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),k||(k=Qi.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),K||(K=Qi.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),t||(t=Qi.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),U||(U=Qi.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),L||(L=Qi.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),i||(i=Qi.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"})),B)}),Qm=["children"],QZ=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Qm);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),G||(G=Qi.createElement("path",{d:"M16,30a1.06,1.06,0,0,1-.42-.09A1,1,0,0,1,15,29V18.41L8.41,25,7,23.59,14.59,16,7,8.41,8.41,7,15,13.59V3a1,1,0,0,1,.58-.91,1,1,0,0,1,1.07.15l7,6A1,1,0,0,1,24,9a1,1,0,0,1-.29.75L17.41,16l6.3,6.29A1,1,0,0,1,24,23a1,1,0,0,1-.35.72l-7,6A1,1,0,0,1,16,30Zm1-11.59v8.42l4.53-3.89ZM17,5.17v8.42l4.53-4.53Z"})),B)}),QT=["children"],QP=["children"],QO=["children"],QW=["children"],Qz=["children"],Qx=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QT);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),p||(p=Qi.createElement("path",{d:"M24 12L16 22 8 12z"})),B)}),QV=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QP);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),r||(r=Qi.createElement("path",{d:"M20 24L10 16 20 8z"})),B)}),Qv=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QO);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),a||(a=Qi.createElement("path",{d:"M12 8L22 16 12 24z"})),B)}),QX=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,QW);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),o||(o=Qi.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),B)}),Qq=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Qz);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),N||(N=Qi.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"})),B)}),Q_=["children"],Q$=["children"],Q0=["children"],Q8=["children"],Q3=["children"],Q1=["children"],Q4=["children"],Q2=["children"],Q5=["children"],Q9=["children"],Q6=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q_);return Qi.createElement(Qe,Qr({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),e||(e=Qi.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"})),J||(J=Qi.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"})),B)}),Q7=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q$);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),S||(S=Qi.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=Qi.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"})),B)}),BA=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q0);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),l||(l=Qi.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=Qi.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"})),B)}),BQ=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q8);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),H||(H=Qi.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),f||(f=Qi.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"})),B)}),BB=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q3);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),d||(d=Qi.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),B)}),BC=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q1);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),u||(u=Qi.createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),B)}),BI=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q4);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),R||(R=Qi.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"})),B)}),BE=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q2);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),j||(j=Qi.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"})),B)}),Bg=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q5);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),b||(b=Qi.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"})),m||(m=Qi.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"})),B)}),Bw=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Q9);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Z||(Z=Qi.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"})),T||(T=Qi.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"})),B)}),BD=["children"],Bc=["children"],BM=["children"],Bs=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BD);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),P||(P=Qi.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"})),O||(O=Qi.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),B)}),By=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bc);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),W||(W=Qi.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"})),z||(z=Qi.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),B)}),Bn=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BM);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),x||(x=Qi.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"})),V||(V=Qi.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),B)}),Bh=["children"],Bk=["children"],BK=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bh);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),v||(v=Qi.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"})),X||(X=Qi.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"})),B)}),Bt=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bk);return Qi.createElement(Qe,Qr({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),q||(q=Qi.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V5A2,2,0,0,0,24,3Zm0,2v6H8V5ZM8,19V13H24v6Zm0,8V21H24v6Z"})),_||(_=Qi.createElement("circle",{cx:"11",cy:"8",r:"1"})),$||($=Qi.createElement("circle",{cx:"11",cy:"16",r:"1"})),AA||(AA=Qi.createElement("circle",{cx:"11",cy:"24",r:"1"})),B)}),BU=["children"],BL=["children"],Bi=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BU);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AQ||(AQ=Qi.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),AB||(AB=Qi.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),B)}),BG=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BL);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AC||(AC=Qi.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),AI||(AI=Qi.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),B)}),Bp=["children"],Br=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bp);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AE||(AE=Qi.createElement("circle",{cx:"16",cy:"16",r:"8"})),B)}),Ba=["children"],Bo=["children"],BN=["children"],Be=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Ba);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ag||(Ag=Qi.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"})),B)}),BJ=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bo);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Aw||(Aw=Qi.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"})),AD||(AD=Qi.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),Ac||(Ac=Qi.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),B)}),BS=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BN);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AM||(AM=Qi.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"})),B)}),BF=["children"],Bl=["children"],BY=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BF);return Qi.createElement(Qe,Qr({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),As||(As=Qi.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"})),B)}),BH=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bl);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ay||(Ay=Qi.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"})),B)}),Bf=["children"],Bd=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bf);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),An||(An=Qi.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"})),Ah||(Ah=Qi.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"})),B)}),Bu=["children"],BR=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bu);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ak||(Ak=Qi.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"})),B)}),Bj=["children"],Bb=["children"],Bm=["children"],BZ=["children"],BT=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bj);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AK||(AK=Qi.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"})),B)}),BP=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bb);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),At||(At=Qi.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"})),B)}),BO=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bm);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AU||(AU=Qi.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"})),AL||(AL=Qi.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"})),B)}),BW=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BZ);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ai||(Ai=Qi.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"})),B)}),Bz=["children"],Bx=["children"],BV=["children"],Bv=["children"],BX=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bz);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AG||(AG=Qi.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"})),Ap||(Ap=Qi.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),B)}),Bq=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bx);return Qi.createElement(Qe,Qr({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ar||(Ar=Qi.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"})),Aa||(Aa=Qi.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"})),B)}),B_=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,BV);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ao||(Ao=Qi.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"})),B)}),B$=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Bv);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AN||(AN=Qi.createElement("path",{d:"M16 22H30V24H16zM16 8H30V10H16zM8 12L8 4 6 4 6 5 4 5 4 7 6 7 6 12 4 12 4 14 6 14 8 14 10 14 10 12 8 12zM10 28H4V24a2 2 0 012-2H8V20H4V18H8a2 2 0 012 2v2a2 2 0 01-2 2H6v2h4z"})),B)}),B0=["children"],B8=["children"],B3=["children"],B1=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B0);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Ae||(Ae=Qi.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"})),B)}),B4=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B8);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AJ||(AJ=Qi.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"})),AS||(AS=Qi.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"})),B)}),B2=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B3);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AF||(AF=Qi.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"})),B)}),B5=["children"],B9=["children"],B6=["children"],B7=["children"],CA=["children"],CQ=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B5);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Al||(Al=Qi.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"})),AY||(AY=Qi.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"})),B)}),CB=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B9);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AH||(AH=Qi.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"})),B)}),CC=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B6);return Qi.createElement(Qe,Qr({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Af||(Af=Qi.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"})),Ad||(Ad=Qi.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"})),B)}),CI=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,B7);return Qi.createElement(Qe,Qr({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Au||(Au=Qi.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"})),AR||(AR=Qi.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"})),B)}),CE=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CA);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Aj||(Aj=Qi.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"})),Ab||(Ab=Qi.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"})),B)}),Cg=["children"],Cw=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cg);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Am||(Am=Qi.createElement("circle",{cx:"21",cy:"26",r:"2"})),AZ||(AZ=Qi.createElement("circle",{cx:"21",cy:"6",r:"2"})),AT||(AT=Qi.createElement("circle",{cx:"4",cy:"16",r:"2"})),AP||(AP=Qi.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"})),B)}),CD=["children"],Cc=["children"],CM=["children"],Cs=["children"],Cy=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CD);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AO||(AO=Qi.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),B)}),Cn=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cc);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AW||(AW=Qi.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),B)}),Ch=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CM);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Az||(Az=Qi.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"})),Ax||(Ax=Qi.createElement("circle",{cx:"22",cy:"10",r:"2"})),B)}),Ck=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cs);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AV||(AV=Qi.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"})),Av||(Av=Qi.createElement("circle",{cx:"22",cy:"10",r:"2"})),B)}),CK=["children"],Ct=["children"],CU=["children"],CL=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CK);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),AX||(AX=Qi.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"})),Aq||(Aq=Qi.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"})),B)}),Ci=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Ct);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A_||(A_=Qi.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),A$||(A$=Qi.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"})),B)}),CG=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CU);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A0||(A0=Qi.createElement("path",{d:"M4,8c-1.2,0-2,0.8-2,2c0,1.2,0.8,2,2,2h3v1H4c-1.7,0-3-1.2-3-3c0-1.7,1.3-3,3-3l9.1,0l-2-2l0.7-0.7 L15,7.5l-3.2,3.2L11.1,10l2-2L4,8z"})),B)}),Cp=["children"],Cr=["children"],Ca=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cp);return Qi.createElement(Qe,Qr({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A8||(A8=Qi.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"})),B)}),Co=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cr);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A3||(A3=Qi.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"})),B)}),CN=["children"],Ce=["children"],CJ=["children"],CS=["children"],CF=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CN);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A1||(A1=Qi.createElement("path",{d:"M21,29H5a2,2,0,0,1-2-2V5A2,2,0,0,1,5,3H21V5H5V27H21Z"})),A4||(A4=Qi.createElement("path",{d:"M15 9H17V23H15zM27 9H29V23H27zM21 9H23V23H21z"})),B)}),Cl=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Ce);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A2||(A2=Qi.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"})),B)}),CY=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CJ);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A5||(A5=Qi.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"})),A9||(A9=Qi.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"})),B)}),CH=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CS);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A6||(A6=Qi.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"})),B)}),Cf=["children"],Cd=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cf);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),A7||(A7=Qi.createElement("path",{d:"M25,2A11.01,11.01,0,0,0,14.7549,9.0244,6.9939,6.9939,0,0,0,9,6H6V9a7.0078,7.0078,0,0,0,7,7h1v9.0493a9.9229,9.9229,0,0,0-6.071,2.8794l1.414,1.4141a8,8,0,0,1,12.3086,1.2134l1.6616-1.1128A9.98,9.98,0,0,0,16,25.062V16h1A11.0125,11.0125,0,0,0,28,5V2ZM13,14A5.0057,5.0057,0,0,1,8,9V8H9a5.0054,5.0054,0,0,1,5,5v1ZM26,5a9.01,9.01,0,0,1-9,9H16V13a9.01,9.01,0,0,1,9-9h1Z"})),B)}),Cu=["children"],CR=["children"],Cj=["children"],Cb=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cu);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QA||(QA=Qi.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)"})),B)}),Cm=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CR);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QQ||(QQ=Qi.createElement("path",{d:"M12,7H6V4c0-1.1,0.9-2,2-2s2,0.9,2,2h1c0-1.7-1.3-3-3-3S5,2.3,5,4v3H4C3.4,7,3,7.4,3,8v6c0,0.6,0.4,1,1,1h8c0.6,0,1-0.4,1-1 V8C13,7.4,12.6,7,12,7z M12,14H4V8h8V14z"})),B)}),CZ=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,Cj);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QB||(QB=Qi.createElement("path",{d:"M24,15V6a2,2,0,0,0-2-2H10A2,2,0,0,0,8,6v9a2,2,0,0,0-2,2V28H8V17H24V28h2V17A2,2,0,0,0,24,15ZM10,6H22v9H10Z"})),QC||(QC=Qi.createElement("path",{d:"M12 10H15V12H12zM17 10H20V12H17z"})),B)}),CT=["children"],CP=["children"],CO=["children"],CW=["children"],Cz=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CT);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QI||(QI=Qi.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"})),QE||(QE=Qi.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"})),B)}),Cx=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CP);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Qg||(Qg=Qi.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"})),Qw||(Qw=Qi.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"})),B)}),CV=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CO);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QD||(QD=Qi.createElement("path",{d:"M22 17H24V19H22z"})),Qc||(Qc=Qi.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"})),B)}),Cv=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CW);return Qi.createElement(Qe,Qr({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),QM||(QM=Qi.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"})),Qs||(Qs=Qi.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"})),B)}),CX=["children"],Cq=Qi.forwardRef(function(A,Q){var B=A.children,C=Qa(A,CX);return Qi.createElement(Qe,Qr({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:Q},C),Qy||(Qy=Qi.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"})),Qn||(Qn=Qi.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"})),Qh||(Qh=Qi.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"})),B)}),C_=B(52322);function C$(A){let{size:Q=24,className:B}=A;return(0,C_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:Q,width:Q,className:B,fill:"currentColor",viewBox:"0 0 512 512",children:(0,C_.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 C0(A){let{size:Q=24}=A;return(0,C_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 448 512",children:(0,C_.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 C8(A){let{size:Q=24}=A;return(0,C_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 576 512",children:(0,C_.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function C3(A){let{size:Q=24}=A;return(0,C_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 448 512",children:(0,C_.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 C1(A){let{size:Q=24}=A;return(0,C_.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:Q,height:Q,fill:"currentColor",children:(0,C_.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 C4(A){let{size:Q=24}=A;return(0,C_.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:Q,height:Q,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,C_.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,C_.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,C_.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,C_.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,C_.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function C2(A){let{size:Q=24}=A;return(0,C_.jsx)("svg",{width:Q,height:Q,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,C_.jsx)("path",{d:"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"})})}function C5(A){let{size:Q=24}=A;return(0,C_.jsx)("svg",{width:Q,height:Q,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",children:(0,C_.jsx)("path",{d:"M192 64C86 64 0 150 0 256S86 448 192 448H448c106 0 192-86 192-192s-86-192-192-192H192zM496 168a40 40 0 1 1 0 80 40 40 0 1 1 0-80zM392 304a40 40 0 1 1 80 0 40 40 0 1 1 -80 0zM168 200c0-13.3 10.7-24 24-24s24 10.7 24 24v32h32c13.3 0 24 10.7 24 24s-10.7 24-24 24H216v32c0 13.3-10.7 24-24 24s-24-10.7-24-24V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h32V200z"})})}function C9(){return(0,C_.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,C_.jsxs)("g",{fill:"#32d66a",stroke:"none",children:[(0,C_.jsx)("path",{d:"M14,19H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,C_.jsx)("path",{d:"M14,27H2a1,1,0,0,0,0,2H14a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,C_.jsx)("path",{d:"M30,11H2a1,1,0,0,0,0,2H30a1,1,0,0,0,0-2Z",fill:"#32d66a"}),(0,C_.jsx)("path",{d:"M2,5H30a1,1,0,0,0,0-2H2A1,1,0,0,0,2,5Z",fill:"#32d66a"}),(0,C_.jsx)("path",{d:"M25,17a7,7,0,1,0,7,7A7.008,7.008,0,0,0,25,17Zm-.293,9.707a1,1,0,0,1-1.414,0L20.586,24,22,22.586l2,2,4-4L29.414,22Z"})]})})}function C6(){return(0,C_.jsx)("svg",{height:50,width:50,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,C_.jsxs)("g",{fill:"#32d66a",stroke:"#32d66a",strokeLinecap:"square",strokeWidth:"2",children:[(0,C_.jsx)("path",{d:"M25,1,12.784,13.154a8.572,8.572,0,1,0,6.061,6.061L21,17V13h4V9h3l3-3V1Z",fill:"none",stroke:"#32d66a"}),(0,C_.jsx)("circle",{cx:"10",cy:"22",fill:"none",r:"3"})]})})}},88464:function(A,Q,B){"use strict";B.d(Q,{Jz:function(){return e},T6:function(){return J},Nr:function(){return U},mj:function(){return u},Lg:function(){return f},Lu:function(){return R},uF:function(){return H},jH:function(){return d},uV:function(){return Y},jF:function(){return F},hR:function(){return o},hq:function(){return a},uC:function(){return N},Tc:function(){return i},du:function(){return G},pX:function(){return r},yt:function(){return t},rN:function(){return y},yF:function(){return s},Vz:function(){return D},ES:function(){return c},bc:function(){return M},At:function(){return k},sW:function(){return K},_6:function(){return j},XB:function(){return L},qN:function(){return g}});var C=B(6391),I=B.n(C);C.BigNumber.config({EXPONENTIAL_AT:1e9}),C.BigNumber.config({DECIMAL_PLACES:30});let E=new C.BigNumber("10").exponentiatedBy(24);function g(A){return new C.BigNumber(new C.BigNumber(A).times(E).toFixed(0))}let w={fixed:3,dynamicUnits:!0,hastingUnits:!1};function D(A,Q){let{fixed:B,dynamicUnits:I,hastingUnits:g}={...w,...Q},D=new C.BigNumber(1e12),c=new C.BigNumber(1e3),M=new C.BigNumber(A),s=new C.BigNumber(A).abs(),y=M.isNegative()?"-":"";if(!I)return"".concat(y).concat(new C.BigNumber(s).dividedBy(E).toFormat(B)," SC");if(s.dividedBy(D).isLessThan(1))return g?"".concat(y).concat(s," H"):"".concat(y,"0 SC");let n=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let A=0;AA.multipliedBy(c),new C.BigNumber(1)),I=s.dividedBy(D.multipliedBy(Q));if(I.isLessThan(c)||A===n.length-1)return"".concat(y).concat(I.toFormat(B)," ").concat(n[A])}return""}function c(A){return A.toLocaleString()+" SF"}function M(A,Q){let{format:B="abbreviated"}=Q||{},C="abbreviated"===B;if(A<1e3)return"".concat(A.toFixed(0)).concat(C?"ms":" milliseconds");let I=A/1e3;if(I<60)return"".concat(I.toFixed(0)).concat(C?"s":" seconds");let E=I/60;if(E<60)return"".concat(E.toFixed(0)).concat(C?"m":" minutes");let g=E/60;return g<24?"".concat(g.toFixed(0)).concat(C?"h":" hours"):"".concat((g/24).toFixed(0)).concat(C?"d":" days")}function s(A,Q){let{fixed:B=0,units:C="",abbreviated:E=!1}=Q||{},g=new(I())(A||0);if(E){let A=g.toNumber();if(A<1e3)return g.toString();let Q=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],I=Math.floor(Math.log10(A)/Math.log10(1e3)),E=A/Math.pow(1e3,I);return"".concat(E.toFixed(B)).concat(Q[I]?" ".concat(Q[I]):"").concat(C?" ".concat(C):"")}return"".concat(g.toFormat(B)).concat(C?" ".concat(C):"")}function y(A,Q){let B;return B=navigator.language,new Intl.DateTimeFormat(B,{dateStyle:"short",...Q}).format(new Date(A))}var n=B(81395),h=B(22814);function k(A){return 76===A.length&&function(A){var Q;let B=function(A){let Q=[];for(let B=0;B0?"storageProof":B.fileContracts&&B.fileContracts.length>0&&B.fileContractRevisions&&B.fileContractRevisions.length>0?"contractRenewal":B.fileContractRevisions&&B.fileContractRevisions.length>0?"contractRevision":B.fileContracts&&B.fileContracts.length>0?"contractFormation":B.arbitraryData&&B.arbitraryData.length>0&&0===atob(B.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":B.siafundOutputs&&B.siafundOutputs.length>0?"siafund":B.siacoinOutputs&&B.siacoinOutputs.length>0?"siacoin":"unknown"}return"v2Transaction"===Q?function(A){var Q;if(A.fileContractResolutions&&A.fileContractResolutions.length>0)return({expiration:"contractExpiration",finalization:"contractFinalization",renewal:"contractRenewal","storage proof":"storageProof"})[A.fileContractResolutions[0].resolution.type];if(A.fileContractRevisions&&A.fileContractRevisions.length>0)return"contractRevision";if(A.fileContracts&&A.fileContracts.length>0)return"contractFormation";let B=null===(Q=A.attestations)||void 0===Q?void 0:Q.filter(A=>"HostAnnouncement"===A.key);return B&&B.length>0?"hostAnnouncement":A.siafundOutputs&&A.siafundOutputs.length>0?"siafund":A.siacoinOutputs&&A.siacoinOutputs.length>0?"siacoin":"unknown"}(A.data):"v1ContractResolution"===Q||"v2ContractResolution"===Q?"contractPayout":"miner"===Q?"minerPayout":"foundation"===Q?"foundationSubsidy":Q}function e(A){return"v2Transaction"===A.type?(A.data.siacoinOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q.plus(B.value):Q,new(I())(0)).minus((A.data.siacoinInputs||[]).reduce((Q,B)=>A.relevant.includes(B.parent.siacoinOutput.address)?Q.plus(B.parent.siacoinOutput.value):Q,new(I())(0))):"v1Transaction"===A.type?(A.data.transaction.siacoinOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q.plus(B.value):Q,new(I())(0)).minus((A.data.spentSiacoinElements||[]).reduce((Q,B)=>A.relevant.includes(B.siacoinOutput.address)?Q.plus(B.siacoinOutput.value):Q,new(I())(0))):new(I())(A.data.siacoinElement.siacoinOutput.value)}function J(A){return"v2Transaction"===A.type?(A.data.siafundOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q+B.value:Q,0)-(A.data.siafundInputs||[]).reduce((Q,B)=>A.relevant.includes(B.parent.siafundOutput.address)?Q+B.parent.siafundOutput.value:Q,0):"v1Transaction"===A.type?(A.data.transaction.siafundOutputs||[]).reduce((Q,B)=>A.relevant.includes(B.address)?Q+B.value:Q,0)-(A.data.spentSiafundElements||[]).reduce((Q,B)=>A.relevant.includes(B.siafundOutput.address)?Q+B.siafundOutput.value:Q,0):void 0}let S={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",hostIp:"host",hostPublicKey:"host",ip:"IP",blockHash:"block hash"};function F(A){return A?S[A]:void 0}let l={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 Y(A){return A?l[A]:void 0}function H(A){return A&&["ip","hostIp"].includes(A)?20:12}function f(A){return A&&["hostIp","hostPublicKey","contract","address","transaction","block"].includes(A)}function d(A,Q,B){switch(Q){case"hostIp":case"hostPublicKey":return"".concat(A,"/host/").concat(B);case"contract":return"".concat(A,"/contract/").concat(B);case"transaction":return"".concat(A,"/tx/").concat(B);case"address":return"".concat(A,"/address/").concat(B);case"block":return"".concat(A,"/block/").concat(B);default:return""}}function u(A,Q){return"".concat(null==A?void 0:A.slice(0,Q)).concat(((null==A?void 0:A.length)||0)>Q?"...":"")}function R(A,Q,B){if("blockHash"===A){let A=B/2;return Q.slice(0,Math.floor(A))+"..."+Q.slice(Q.length-Math.ceil(A))}return u(Q,B)}function j(A,Q,B){let C="1 ".concat(Q),I="".concat(Q,"s"),E="";"string"==typeof B&&(I=B),"object"==typeof B&&(B.plural&&(I=B.plural),B.customZero&&(E=B.customZero));let g="".concat(A.toLocaleString()," ").concat(I);return 0===A?E||g:1===A?C:g}},28135:function(A,Q,B){"use strict";B.d(Q,{gM:function(){return M},XC:function(){return D},ek:function(){return c},nH:function(){return s},OH:function(){return w},Ap:function(){return K},R2:function(){return t},Wl:function(){return n},cQ:function(){return y},ys:function(){return k},QL:function(){return h},lT:function(){return L},yi:function(){return r},XF:function(){return a},bd:function(){return p},tM:function(){return o},OZ:function(){return G},sG:function(){return N},wh:function(){return e},sv:function(){return F},bW:function(){return l},jL:function(){return J},cd:function(){return S},zQ:function(){return Y},SK:function(){return i},rB:function(){return U}});var C=B(79381),I=B(36219),E=B(88464),g=B(27050);function w(A){return(0,I.Nf)({...A,route:g.mV})}function D(A){return(0,I.Nf)({...A,route:g.z2})}function c(A){return(0,I.Nf)({...A,route:g.KR})}function M(A){return(0,I.Nf)({...A,route:g.fw})}function s(){let A=M({config:{swr:{revalidateOnFocus:!1}}});return(0,C.ZP)(A,()=>{var Q;return(null===(Q=A.data)||void 0===Q?void 0:Q.name)==="zen"?(0,E.du)():(0,E.Tc)()},{refreshInterval:6e4,keepPreviousData:!0}).data||0}function y(A){return(0,I.Nf)({...A,route:g.cz})}function n(A){return(0,I.mw)({...A,route:g.c8},async A=>{A(A=>A===g.cz)})}function h(A){return(0,I.Nf)({...A,route:g.PH})}function k(A){return(0,I.mw)({...A,route:g.As},async A=>{await (0,I.gw)(2e3),A(A=>A.startsWith(g.PH)||A.startsWith(g.Xf))})}function K(A){return(0,I.mw)({...A,route:g.rB},async A=>{(async()=>{await A(A=>A.startsWith(g.rB)),await (0,I.gw)(1e3),await A(A=>A.startsWith(g.rB))})()})}function t(A){return(0,I.Nf)({...A,route:g.rB})}function U(A){return(0,I.Nf)({...A,route:g.Xf})}function L(A){return(0,I.mw)({...A,route:g.Xf},async A=>{A(A=>A.startsWith(g.Xf))})}function i(A){return(0,I.mw)({...A,route:g.k_},async A=>{A(A=>A.startsWith(g.Xf))})}function G(A){return(0,I.iv)({...A,route:g.k_},async(A,Q)=>{A(A=>A.startsWith(g.Xf))})}function p(A){return(0,I.Nf)({...A,route:g.o1})}function r(A){return(0,I.V1)({...A,route:g.o1},async(A,Q)=>{A(A=>A.startsWith(g.k_.replace(":id",Q.params.id)))})}function a(A){return(0,I.iv)({...A,route:g.PN},async(A,Q)=>{A(A=>A.startsWith(g.o1.replace(":id",Q.params.id)))})}function o(A){return(0,I.Nf)({...A,route:g.G7})}function N(A){return(0,I.Nf)({...A,route:g.Xp})}function e(A){return(0,I.Nf)({...A,route:g.q6})}function J(A){return(0,I.Nf)({...A,route:g.q1})}function S(A){return(0,I.Nf)({...A,route:g.Hf})}function F(A){return(0,I.mw)({...A,route:g.YN})}function l(A){return(0,I.mw)({...A,route:g.LZ})}function Y(A){return(0,I.mw)({...A,route:g.K})}},27050:function(A,Q,B){"use strict";B.d(Q,{As:function(){return M},G7:function(){return K},Hf:function(){return i},K:function(){return r},KR:function(){return E},LZ:function(){return p},PH:function(){return c},PN:function(){return k},Xf:function(){return y},Xp:function(){return t},YN:function(){return G},c8:function(){return D},cz:function(){return w},fw:function(){return g},k_:function(){return n},mV:function(){return C},o1:function(){return h},q1:function(){return L},q6:function(){return U},rB:function(){return s},z2:function(){return I}});let C="/state",I="/consensus/tip",E="/consensus/tipstate",g="/consensus/network",w="/syncer/peers",D="/syncer/connect",c="/txpool/transactions",M="/txpool/broadcast",s="/rescan",y="/wallets",n="/wallets/:id",h="/wallets/:id/addresses",k="/wallets/:id/addresses/:addr",K="/wallets/:id/balance",t="/wallets/:id/events",U="/wallets/:id/events/unconfirmed",L="/wallets/:id/outputs/siacoin",i="/wallets/:id/outputs/siafund",G="/wallets/:id/fund",p="/wallets/:id/fundsf",r="/wallets/:id/release"},70095:function(A,Q,B){"use strict";function C(A){var Q=new Date(Date.UTC(A.getFullYear(),A.getMonth(),A.getDate(),A.getHours(),A.getMinutes(),A.getSeconds(),A.getMilliseconds()));return Q.setUTCFullYear(A.getFullYear()),A.getTime()-Q.getTime()}B.d(Q,{Z:function(){return C}})},4895:function(A,Q,B){"use strict";function C(A,Q){if(Q.length1?"s":"")+" required, but only "+Q.length+" present")}B.d(Q,{Z:function(){return C}})},54042:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return M}});var C,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 E(A){return function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},B=Q.width?String(Q.width):A.defaultWidth;return A.formats[B]||A.formats[A.defaultWidth]}}var g={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({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:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},w={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function D(A){return function(Q,B){var C,I=B||{};if("formatting"===(I.context?String(I.context):"standalone")&&A.formattingValues){var E=A.defaultFormattingWidth||A.defaultWidth,g=I.width?String(I.width):E;C=A.formattingValues[g]||A.formattingValues[E]}else{var w=A.defaultWidth,D=I.width?String(I.width):A.defaultWidth;C=A.values[D]||A.values[w]}return C[A.argumentCallback?A.argumentCallback(Q):Q]}}function c(A){return function(Q){var B,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=C.width,E=I&&A.matchPatterns[I]||A.matchPatterns[A.defaultMatchWidth],g=Q.match(E);if(!g)return null;var w=g[0],D=I&&A.parsePatterns[I]||A.parsePatterns[A.defaultParseWidth],c=Array.isArray(D)?function(A,Q){for(var B=0;B0?"in "+C:C+" ago":C},formatLong:g,formatRelative:function(A,Q,B,C){return w[A]},localize:{ordinalNumber:function(A,Q){var B=Number(A),C=B%100;if(C>20||C<10)switch(C%10){case 1:return B+"st";case 2:return B+"nd";case 3:return B+"rd"}return B+"th"},era:D({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:D({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(A){return A-1}}),month:D({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:D({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:D({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:(C={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(A){return parseInt(A,10)}},function(A){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},B=A.match(C.matchPattern);if(!B)return null;var I=B[0],E=A.match(C.parsePattern);if(!E)return null;var g=C.valueCallback?C.valueCallback(E[0]):E[0];return{value:g=Q.valueCallback?Q.valueCallback(g):g,rest:A.slice(I.length)}}),era:c({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:c({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(A){return A+1}}),month:c({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:c({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:c({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}}},49435:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return I}});var C=B(4895);function I(A){(0,C.Z)(1,arguments);var Q=Object.prototype.toString.call(A);return A instanceof Date||"object"==typeof A&&"[object Date]"===Q?new Date(A.getTime()):"number"==typeof A||"[object Number]"===Q?new Date(A):(("string"==typeof A||"[object String]"===Q)&&"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))}},74669:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"actionAsyncStorage",{enumerable:!0,get:function(){return C}});let C=(0,B(80465).createAsyncLocalStorage)();("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},4437:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"actionAsyncStorage",{enumerable:!0,get:function(){return C.actionAsyncStorage}});let C=B(74669);("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},80465:function(A,Q){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"createAsyncLocalStorage",{enumerable:!0,get:function(){return E}});let B=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class C{disable(){throw B}getStore(){}run(){throw B}exit(){throw B}enterWith(){throw B}}let I=globalThis.AsyncLocalStorage;function E(){return I?new I:new C}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},42642:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ReadonlyURLSearchParams:function(){return D.ReadonlyURLSearchParams},RedirectType:function(){return D.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return D.notFound},permanentRedirect:function(){return D.permanentRedirect},redirect:function(){return D.redirect},useParams:function(){return n},usePathname:function(){return s},useRouter:function(){return y},useSearchParams:function(){return M},useSelectedLayoutSegment:function(){return k},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let C=B(2784),I=B(47640),E=B(30154),g=B(30454),w=B(70166),D=B(32374),c=B(33843);function M(){let A=(0,C.useContext)(E.SearchParamsContext);return(0,C.useMemo)(()=>A?new D.ReadonlyURLSearchParams(A):null,[A])}function s(){return(0,C.useContext)(E.PathnameContext)}function y(){let A=(0,C.useContext)(I.AppRouterContext);if(null===A)throw Error("invariant expected app router to be mounted");return A}function n(){return(0,C.useContext)(E.PathParamsContext)}function h(A){void 0===A&&(A="children");let Q=(0,C.useContext)(I.LayoutRouterContext);return Q?function A(Q,B,C,I){let E;if(void 0===C&&(C=!0),void 0===I&&(I=[]),C)E=Q[1][B];else{var D;let A=Q[1];E=null!=(D=A.children)?D:Object.values(A)[0]}if(!E)return I;let c=E[0],M=(0,g.getSegmentValue)(c);return!M||M.startsWith(w.PAGE_SEGMENT_KEY)?I:(I.push(M),A(E,B,!1,I))}(Q.tree,A):null}function k(A){void 0===A&&(A="children");let Q=h(A);if(!Q||0===Q.length)return null;let B="children"===A?Q[0]:Q[Q.length-1];return B===w.DEFAULT_SEGMENT_KEY?null:B}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},32374:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ReadonlyURLSearchParams:function(){return g},RedirectType:function(){return C.RedirectType},notFound:function(){return I.notFound},permanentRedirect:function(){return C.permanentRedirect},redirect:function(){return C.redirect}});let C=B(23825),I=B(17356);class E extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class g extends URLSearchParams{append(){throw new E}delete(){throw new E}set(){throw new E}sort(){throw new E}}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},17356:function(A,Q){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{isNotFoundError:function(){return I},notFound:function(){return C}});let B="NEXT_NOT_FOUND";function C(){let A=Error(B);throw A.digest=B,A}function I(A){return"object"==typeof A&&null!==A&&"digest"in A&&A.digest===B}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},19228:function(A,Q){"use strict";var B,C;Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"RedirectStatusCode",{enumerable:!0,get:function(){return B}}),(C=B||(B={}))[C.SeeOther=303]="SeeOther",C[C.TemporaryRedirect=307]="TemporaryRedirect",C[C.PermanentRedirect=308]="PermanentRedirect",("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},23825:function(A,Q,B){"use strict";var C,I;Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{RedirectType:function(){return C},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return k},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return n},isRedirectError:function(){return y},permanentRedirect:function(){return s},redirect:function(){return M}});let E=B(98512),g=B(4437),w=B(19228),D="NEXT_REDIRECT";function c(A,Q,B){void 0===B&&(B=w.RedirectStatusCode.TemporaryRedirect);let C=Error(D);C.digest=D+";"+Q+";"+A+";"+B+";";let I=E.requestAsyncStorage.getStore();return I&&(C.mutableCookies=I.mutableCookies),C}function M(A,Q){void 0===Q&&(Q="replace");let B=g.actionAsyncStorage.getStore();throw c(A,Q,(null==B?void 0:B.isAction)?w.RedirectStatusCode.SeeOther:w.RedirectStatusCode.TemporaryRedirect)}function s(A,Q){void 0===Q&&(Q="replace");let B=g.actionAsyncStorage.getStore();throw c(A,Q,(null==B?void 0:B.isAction)?w.RedirectStatusCode.SeeOther:w.RedirectStatusCode.PermanentRedirect)}function y(A){if("object"!=typeof A||null===A||!("digest"in A)||"string"!=typeof A.digest)return!1;let[Q,B,C,I]=A.digest.split(";",4),E=Number(I);return Q===D&&("replace"===B||"push"===B)&&"string"==typeof C&&!isNaN(E)&&E in w.RedirectStatusCode}function n(A){return y(A)?A.digest.split(";",3)[2]:null}function h(A){if(!y(A))throw Error("Not a redirect error");return A.digest.split(";",2)[1]}function k(A){if(!y(A))throw Error("Not a redirect error");return Number(A.digest.split(";",4)[3])}(I=C||(C={})).push="push",I.replace="replace",("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},12516:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"requestAsyncStorage",{enumerable:!0,get:function(){return C}});let C=(0,B(80465).createAsyncLocalStorage)();("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},98512:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{getExpectedRequestStore:function(){return I},requestAsyncStorage:function(){return C.requestAsyncStorage}});let C=B(12516);function I(A){let Q=C.requestAsyncStorage.getStore();if(Q)return Q;throw Error("`"+A+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},30454:function(A,Q){"use strict";function B(A){return Array.isArray(A)?A[1]:A}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getSegmentValue",{enumerable:!0,get:function(){return B}}),("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},19745:function(A,Q){"use strict";var B,C,I,E;Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ACTION_FAST_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return w},ACTION_PREFETCH:function(){return M},ACTION_REFRESH:function(){return g},ACTION_RESTORE:function(){return D},ACTION_SERVER_ACTION:function(){return y},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return C},PrefetchKind:function(){return B},isThenable:function(){return n}});let g="refresh",w="navigate",D="restore",c="server-patch",M="prefetch",s="fast-refresh",y="server-action";function n(A){return A&&("object"==typeof A||"function"==typeof A)&&"function"==typeof A.then}(I=B||(B={})).AUTO="auto",I.FULL="full",I.TEMPORARY="temporary",(E=C||(C={})).fresh="fresh",E.reusable="reusable",E.expired="expired",E.stale="stale",("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},12394:function(A,Q,B){"use strict";function C(A,Q,B,C){return!1}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getDomainLocale",{enumerable:!0,get:function(){return C}}),B(14079),("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},22657:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"Image",{enumerable:!0,get:function(){return L}});let C=B(43219),I=B(16794),E=B(52322),g=I._(B(2784)),w=C._(B(28316)),D=C._(B(68792)),c=B(25123),M=B(96648),s=B(41897);B(71388);let y=B(24698),n=C._(B(59553)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function k(A,Q,B,C,I,E,g){let w=null==A?void 0:A.src;A&&A["data-loaded-src"]!==w&&(A["data-loaded-src"]=w,("decode"in A?A.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(A.parentElement&&A.isConnected){if("empty"!==Q&&I(!0),null==B?void 0:B.current){let Q=new Event("load");Object.defineProperty(Q,"target",{writable:!1,value:A});let C=!1,I=!1;B.current({...Q,nativeEvent:Q,currentTarget:A,target:A,isDefaultPrevented:()=>C,isPropagationStopped:()=>I,persist:()=>{},preventDefault:()=>{C=!0,Q.preventDefault()},stopPropagation:()=>{I=!0,Q.stopPropagation()}})}(null==C?void 0:C.current)&&C.current(A)}}))}function K(A){return g.use?{fetchPriority:A}:{fetchpriority:A}}let t=(0,g.forwardRef)((A,Q)=>{let{src:B,srcSet:C,sizes:I,height:w,width:D,decoding:c,className:M,style:s,fetchPriority:y,placeholder:n,loading:h,unoptimized:t,fill:U,onLoadRef:L,onLoadingCompleteRef:i,setBlurComplete:G,setShowAltText:p,sizesInput:r,onLoad:a,onError:o,...N}=A;return(0,E.jsx)("img",{...N,...K(y),loading:h,width:D,height:w,decoding:c,"data-nimg":U?"fill":"1",className:M,style:s,sizes:I,srcSet:C,src:B,ref:(0,g.useCallback)(A=>{Q&&("function"==typeof Q?Q(A):"object"==typeof Q&&(Q.current=A)),A&&(o&&(A.src=A.src),A.complete&&k(A,n,L,i,G,t,r))},[B,n,L,i,G,o,t,r,Q]),onLoad:A=>{k(A.currentTarget,n,L,i,G,t,r)},onError:A=>{p(!0),"empty"!==n&&G(!0),o&&o(A)}})});function U(A){let{isAppRouter:Q,imgAttributes:B}=A,C={as:"image",imageSrcSet:B.srcSet,imageSizes:B.sizes,crossOrigin:B.crossOrigin,referrerPolicy:B.referrerPolicy,...K(B.fetchPriority)};return Q&&w.default.preload?(w.default.preload(B.src,C),null):(0,E.jsx)(D.default,{children:(0,E.jsx)("link",{rel:"preload",href:B.srcSet?void 0:B.src,...C},"__nimg-"+B.src+B.srcSet+B.sizes)})}let L=(0,g.forwardRef)((A,Q)=>{let B=(0,g.useContext)(y.RouterContext),C=(0,g.useContext)(s.ImageConfigContext),I=(0,g.useMemo)(()=>{let A=h||C||M.imageConfigDefault,Q=[...A.deviceSizes,...A.imageSizes].sort((A,Q)=>A-Q),B=A.deviceSizes.sort((A,Q)=>A-Q);return{...A,allSizes:Q,deviceSizes:B}},[C]),{onLoad:w,onLoadingComplete:D}=A,k=(0,g.useRef)(w);(0,g.useEffect)(()=>{k.current=w},[w]);let K=(0,g.useRef)(D);(0,g.useEffect)(()=>{K.current=D},[D]);let[L,i]=(0,g.useState)(!1),[G,p]=(0,g.useState)(!1),{props:r,meta:a}=(0,c.getImgProps)(A,{defaultLoader:n.default,imgConf:I,blurComplete:L,showAltText:G});return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(t,{...r,unoptimized:a.unoptimized,placeholder:a.placeholder,fill:a.fill,onLoadRef:k,onLoadingCompleteRef:K,setBlurComplete:i,setShowAltText:p,sizesInput:A.sizes,ref:Q}),a.priority?(0,E.jsx)(U,{isAppRouter:!B,imgAttributes:r}):null]})});("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},14470:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"default",{enumerable:!0,get:function(){return i}});let C=B(43219),I=B(52322),E=C._(B(2784)),g=B(40706),w=B(90345),D=B(8985),c=B(70286),M=B(95549),s=B(24698),y=B(47640),n=B(34407),h=B(12394),k=B(70558),K=B(19745),t=new Set;function U(A,Q,B,C,I,E){if(E||(0,w.isLocalURL)(Q)){if(!C.bypassPrefetchedCheck){let I=Q+"%"+B+"%"+(void 0!==C.locale?C.locale:"locale"in A?A.locale:void 0);if(t.has(I))return;t.add(I)}(async()=>E?A.prefetch(Q,I):A.prefetch(Q,B,C))().catch(A=>{})}}function L(A){return"string"==typeof A?A:(0,D.formatUrl)(A)}let i=E.default.forwardRef(function(A,Q){let B,C;let{href:D,as:t,children:i,prefetch:G=null,passHref:p,replace:r,shallow:a,scroll:o,locale:N,onClick:e,onMouseEnter:J,onTouchStart:S,legacyBehavior:F=!1,...l}=A;B=i,F&&("string"==typeof B||"number"==typeof B)&&(B=(0,I.jsx)("a",{children:B}));let Y=E.default.useContext(s.RouterContext),H=E.default.useContext(y.AppRouterContext),f=null!=Y?Y:H,d=!Y,u=!1!==G,R=null===G?K.PrefetchKind.AUTO:K.PrefetchKind.FULL,{href:j,as:b}=E.default.useMemo(()=>{if(!Y){let A=L(D);return{href:A,as:t?L(t):A}}let[A,Q]=(0,g.resolveHref)(Y,D,!0);return{href:A,as:t?(0,g.resolveHref)(Y,t):Q||A}},[Y,D,t]),m=E.default.useRef(j),Z=E.default.useRef(b);F&&(C=E.default.Children.only(B));let T=F?C&&"object"==typeof C&&C.ref:Q,[P,O,W]=(0,n.useIntersection)({rootMargin:"200px"}),z=E.default.useCallback(A=>{(Z.current!==b||m.current!==j)&&(W(),Z.current=b,m.current=j),P(A),T&&("function"==typeof T?T(A):"object"==typeof T&&(T.current=A))},[b,T,j,W,P]);E.default.useEffect(()=>{f&&O&&u&&U(f,j,b,{locale:N},{kind:R},d)},[b,j,O,N,u,null==Y?void 0:Y.locale,f,d,R]);let x={ref:z,onClick(A){F||"function"!=typeof e||e(A),F&&C.props&&"function"==typeof C.props.onClick&&C.props.onClick(A),f&&!A.defaultPrevented&&function(A,Q,B,C,I,g,D,c,M){let{nodeName:s}=A.currentTarget;if("A"===s.toUpperCase()&&(function(A){let Q=A.currentTarget.getAttribute("target");return Q&&"_self"!==Q||A.metaKey||A.ctrlKey||A.shiftKey||A.altKey||A.nativeEvent&&2===A.nativeEvent.which}(A)||!M&&!(0,w.isLocalURL)(B)))return;A.preventDefault();let y=()=>{let A=null==D||D;"beforePopState"in Q?Q[I?"replace":"push"](B,C,{shallow:g,locale:c,scroll:A}):Q[I?"replace":"push"](C||B,{scroll:A})};M?E.default.startTransition(y):y()}(A,f,j,b,r,a,o,N,d)},onMouseEnter(A){F||"function"!=typeof J||J(A),F&&C.props&&"function"==typeof C.props.onMouseEnter&&C.props.onMouseEnter(A),f&&(u||!d)&&U(f,j,b,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:R},d)},onTouchStart:function(A){F||"function"!=typeof S||S(A),F&&C.props&&"function"==typeof C.props.onTouchStart&&C.props.onTouchStart(A),f&&(u||!d)&&U(f,j,b,{locale:N,priority:!0,bypassPrefetchedCheck:!0},{kind:R},d)}};if((0,c.isAbsoluteUrl)(b))x.href=b;else if(!F||p||"a"===C.type&&!("href"in C.props)){let A=void 0!==N?N:null==Y?void 0:Y.locale,Q=(null==Y?void 0:Y.isLocaleDomain)&&(0,h.getDomainLocale)(b,A,null==Y?void 0:Y.locales,null==Y?void 0:Y.domainLocales);x.href=Q||(0,k.addBasePath)((0,M.addLocale)(b,A,null==Y?void 0:Y.defaultLocale))}return F?E.default.cloneElement(C,x):(0,I.jsx)("a",{...l,...x,children:B})});("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},34407:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"useIntersection",{enumerable:!0,get:function(){return D}});let C=B(2784),I=B(41346),E="function"==typeof IntersectionObserver,g=new Map,w=[];function D(A){let{rootRef:Q,rootMargin:B,disabled:D}=A,c=D||!E,[M,s]=(0,C.useState)(!1),y=(0,C.useRef)(null),n=(0,C.useCallback)(A=>{y.current=A},[]);return(0,C.useEffect)(()=>{if(E){if(c||M)return;let A=y.current;if(A&&A.tagName)return function(A,Q,B){let{id:C,observer:I,elements:E}=function(A){let Q;let B={root:A.root||null,margin:A.rootMargin||""},C=w.find(A=>A.root===B.root&&A.margin===B.margin);if(C&&(Q=g.get(C)))return Q;let I=new Map;return Q={id:B,observer:new IntersectionObserver(A=>{A.forEach(A=>{let Q=I.get(A.target),B=A.isIntersecting||A.intersectionRatio>0;Q&&B&&Q(B)})},A),elements:I},w.push(B),g.set(B,Q),Q}(B);return E.set(A,Q),I.observe(A),function(){if(E.delete(A),I.unobserve(A),0===E.size){I.disconnect(),g.delete(C);let A=w.findIndex(A=>A.root===C.root&&A.margin===C.margin);A>-1&&w.splice(A,1)}}}(A,A=>A&&s(A),{root:null==Q?void 0:Q.current,rootMargin:B})}else if(!M){let A=(0,I.requestIdleCallback)(()=>s(!0));return()=>(0,I.cancelIdleCallback)(A)}},[c,B,Q,M,y.current]),[n,M,(0,C.useCallback)(()=>{s(!1)},[])]}("function"==typeof Q.default||"object"==typeof Q.default&&null!==Q.default)&&void 0===Q.default.__esModule&&(Object.defineProperty(Q.default,"__esModule",{value:!0}),Object.assign(Q.default,Q),A.exports=Q.default)},25123:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getImgProps",{enumerable:!0,get:function(){return w}}),B(71388);let C=B(74999),I=B(96648);function E(A){return void 0!==A.default}function g(A){return void 0===A?A:"number"==typeof A?Number.isFinite(A)?A:NaN:"string"==typeof A&&/^[0-9]+$/.test(A)?parseInt(A,10):NaN}function w(A,Q){var B;let w,D,c,{src:M,sizes:s,unoptimized:y=!1,priority:n=!1,loading:h,className:k,quality:K,width:t,height:U,fill:L=!1,style:i,overrideSrc:G,onLoad:p,onLoadingComplete:r,placeholder:a="empty",blurDataURL:o,fetchPriority:N,layout:e,objectFit:J,objectPosition:S,lazyBoundary:F,lazyRoot:l,...Y}=A,{imgConf:H,showAltText:f,blurComplete:d,defaultLoader:u}=Q,R=H||I.imageConfigDefault;if("allSizes"in R)w=R;else{let A=[...R.deviceSizes,...R.imageSizes].sort((A,Q)=>A-Q),Q=R.deviceSizes.sort((A,Q)=>A-Q);w={...R,allSizes:A,deviceSizes:Q}}if(void 0===u)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let j=Y.loader||u;delete Y.loader,delete Y.srcSet;let b="__next_img_default"in j;if(b){if("custom"===w.loader)throw Error('Image with src "'+M+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let A=j;j=Q=>{let{config:B,...C}=Q;return A(C)}}if(e){"fill"===e&&(L=!0);let A={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[e];A&&(i={...i,...A});let Q={responsive:"100vw",fill:"100vw"}[e];Q&&!s&&(s=Q)}let m="",Z=g(t),T=g(U);if("object"==typeof(B=M)&&(E(B)||void 0!==B.src)){let A=E(M)?M.default:M;if(!A.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(A));if(!A.height||!A.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(A));if(D=A.blurWidth,c=A.blurHeight,o=o||A.blurDataURL,m=A.src,!L){if(Z||T){if(Z&&!T){let Q=Z/A.width;T=Math.round(A.height*Q)}else if(!Z&&T){let Q=T/A.height;Z=Math.round(A.width*Q)}}else Z=A.width,T=A.height}}let P=!n&&("lazy"===h||void 0===h);(!(M="string"==typeof M?M:m)||M.startsWith("data:")||M.startsWith("blob:"))&&(y=!0,P=!1),w.unoptimized&&(y=!0),b&&M.endsWith(".svg")&&!w.dangerouslyAllowSVG&&(y=!0),n&&(N="high");let O=g(K),W=Object.assign(L?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:J,objectPosition:S}:{},f?{}:{color:"transparent"},i),z=d||"empty"===a?null:"blur"===a?'url("data:image/svg+xml;charset=utf-8,'+(0,C.getImageBlurSvg)({widthInt:Z,heightInt:T,blurWidth:D,blurHeight:c,blurDataURL:o||"",objectFit:W.objectFit})+'")':'url("'+a+'")',x=z?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:z}:{},V=function(A){let{config:Q,src:B,unoptimized:C,width:I,quality:E,sizes:g,loader:w}=A;if(C)return{src:B,srcSet:void 0,sizes:void 0};let{widths:D,kind:c}=function(A,Q,B){let{deviceSizes:C,allSizes:I}=A;if(B){let A=/(^|\s)(1?\d?\d)vw/g,Q=[];for(let C;C=A.exec(B);C)Q.push(parseInt(C[2]));if(Q.length){let A=.01*Math.min(...Q);return{widths:I.filter(Q=>Q>=C[0]*A),kind:"w"}}return{widths:I,kind:"w"}}return"number"!=typeof Q?{widths:C,kind:"w"}:{widths:[...new Set([Q,2*Q].map(A=>I.find(Q=>Q>=A)||I[I.length-1]))],kind:"x"}}(Q,I,g),M=D.length-1;return{sizes:g||"w"!==c?g:"100vw",srcSet:D.map((A,C)=>w({config:Q,src:B,quality:E,width:A})+" "+("w"===c?A:C+1)+c).join(", "),src:w({config:Q,src:B,quality:E,width:D[M]})}}({config:w,src:M,unoptimized:y,width:Z,quality:O,sizes:s,loader:j});return{props:{...Y,loading:P?"lazy":h,fetchPriority:N,width:Z,height:T,decoding:"async",className:k,style:{...W,...x},sizes:V.sizes,srcSet:V.srcSet,src:G||V.src},meta:{unoptimized:y,priority:n,placeholder:a,fill:L}}}},74999:function(A,Q){"use strict";function B(A){let{widthInt:Q,heightInt:B,blurWidth:C,blurHeight:I,blurDataURL:E,objectFit:g}=A,w=C?40*C:Q,D=I?40*I:B,c=w&&D?"viewBox='0 0 "+w+" "+D+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%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='"+(c?"none":"contain"===g?"xMidYMid":"cover"===g?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+E+"'/%3E%3C/svg%3E"}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"getImageBlurSvg",{enumerable:!0,get:function(){return B}})},5329:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{default:function(){return D},getImageProps:function(){return w}});let C=B(43219),I=B(25123),E=B(22657),g=C._(B(59553));function w(A){let{props:Q}=(0,I.getImgProps)(A,{defaultLoader:g.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[A,B]of Object.entries(Q))void 0===B&&delete Q[A];return{props:Q}}let D=E.Image},59553:function(A,Q){"use strict";function B(A){let{config:Q,src:B,width:C,quality:I}=A;return Q.path+"?url="+encodeURIComponent(B)+"&w="+C+"&q="+(I||75)}Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"default",{enumerable:!0,get:function(){return C}}),B.__next_img_default=!0;let C=B},33843:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{ServerInsertedHTMLContext:function(){return I},useServerInsertedHTML:function(){return E}});let C=B(16794)._(B(2784)),I=C.default.createContext(null);function E(A){let Q=(0,C.useContext)(I);Q&&Q(A)}},21962:function(){},17282:function(A){A.exports={style:{fontFamily:"'__mono_59b18b', '__mono_Fallback_59b18b'"},className:"__className_59b18b",variable:"__variable_59b18b"}},29773:function(A){A.exports={style:{fontFamily:"'__sans_315985', '__sans_Fallback_315985'"},className:"__className_315985",variable:"__variable_315985"}},42351:function(A){!function(){var Q={229:function(A){var Q,B,C,I=A.exports={};function E(){throw Error("setTimeout has not been defined")}function g(){throw Error("clearTimeout has not been defined")}function w(A){if(Q===setTimeout)return setTimeout(A,0);if((Q===E||!Q)&&setTimeout)return Q=setTimeout,setTimeout(A,0);try{return Q(A,0)}catch(B){try{return Q.call(null,A,0)}catch(B){return Q.call(this,A,0)}}}!function(){try{Q="function"==typeof setTimeout?setTimeout:E}catch(A){Q=E}try{B="function"==typeof clearTimeout?clearTimeout:g}catch(A){B=g}}();var D=[],c=!1,M=-1;function s(){c&&C&&(c=!1,C.length?D=C.concat(D):M=-1,D.length&&y())}function y(){if(!c){var A=w(s);c=!0;for(var Q=D.length;Q;){for(C=D,D=[];++M1)for(var B=1;B=this._maxSize&&this.clear(),!(A in this._values)&&this._size++,this._values[A]=Q};var B=/[^.^\]^[]+|(?=\[\]|\.\.)/g,C=/^\d+$/,I=/^\d/,E=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,g=/^\s*(['"]?)(.*?)(\1)\s*$/,w=new Q(512),D=new Q(512),c=new Q(512);function M(A){return w.get(A)||w.set(A,s(A).map(function(A){return A.replace(g,"$2")}))}function s(A){return A.match(B)||[""]}function y(A){return"string"==typeof A&&A&&-1!==["'",'"'].indexOf(A.charAt(0))}A.exports={Cache:Q,split:s,normalizePath:M,setter:function(A){var Q=M(A);return D.get(A)||D.set(A,function(A,B){for(var C=0,I=Q.length,E=A;C>>7-A%8&1)==1},put:function(A,Q){for(var B=0;B>>Q-B-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(A){var Q=Math.floor(this.length/8);this.buffer.length<=Q&&this.buffer.push(0),A&&(this.buffer[Q]|=128>>>this.length%8),this.length++}},A.exports=Q},81432:function(A){A.exports={L:1,M:0,Q:3,H:2}},84695:function(A,Q,B){var C=B(35856);function I(A,Q){if(void 0==A.length)throw Error(A.length+"/"+Q);for(var B=0;B=7&&this.setupTypeNumber(A),null==this.dataCache&&(this.dataCache=D.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,Q)},c.setupPositionProbePattern=function(A,Q){for(var B=-1;B<=7;B++)if(!(A+B<=-1)&&!(this.moduleCount<=A+B))for(var C=-1;C<=7;C++)Q+C<=-1||this.moduleCount<=Q+C||(0<=B&&B<=6&&(0==C||6==C)||0<=C&&C<=6&&(0==B||6==B)||2<=B&&B<=4&&2<=C&&C<=4?this.modules[A+B][Q+C]=!0:this.modules[A+B][Q+C]=!1)},c.getBestMaskPattern=function(){for(var A=0,Q=0,B=0;B<8;B++){this.makeImpl(!0,B);var C=g.getLostPoint(this);(0==B||A>C)&&(A=C,Q=B)}return Q},c.createMovieClip=function(A,Q,B){var C=A.createEmptyMovieClip(Q,B);this.make();for(var I=0;I>B&1)==1;this.modules[Math.floor(B/3)][B%3+this.moduleCount-8-3]=C}for(var B=0;B<18;B++){var C=!A&&(Q>>B&1)==1;this.modules[B%3+this.moduleCount-8-3][Math.floor(B/3)]=C}},c.setupTypeInfo=function(A,Q){for(var B=this.errorCorrectLevel<<3|Q,C=g.getBCHTypeInfo(B),I=0;I<15;I++){var E=!A&&(C>>I&1)==1;I<6?this.modules[I][8]=E:I<8?this.modules[I+1][8]=E:this.modules[this.moduleCount-15+I][8]=E}for(var I=0;I<15;I++){var E=!A&&(C>>I&1)==1;I<8?this.modules[8][this.moduleCount-I-1]=E:I<9?this.modules[8][15-I-1+1]=E:this.modules[8][15-I-1]=E}this.modules[this.moduleCount-8][8]=!A},c.mapData=function(A,Q){for(var B=-1,C=this.moduleCount-1,I=7,E=0,w=this.moduleCount-1;w>0;w-=2)for(6==w&&w--;;){for(var D=0;D<2;D++)if(null==this.modules[C][w-D]){var c=!1;E>>I&1)==1),g.getMask(Q,C,w-D)&&(c=!c),this.modules[C][w-D]=c,-1==--I&&(E++,I=7)}if((C+=B)<0||this.moduleCount<=C){C-=B,B=-B;break}}},D.PAD0=236,D.PAD1=17,D.createData=function(A,Q,B){for(var C=I.getRSBlocks(A,Q),w=new E,c=0;c8*s)throw Error("code length overflow. ("+w.getLengthInBits()+">"+8*s+")");for(w.getLengthInBits()+4<=8*s&&w.put(0,4);w.getLengthInBits()%8!=0;)w.putBit(!1);for(;!(w.getLengthInBits()>=8*s)&&(w.put(D.PAD0,8),!(w.getLengthInBits()>=8*s));)w.put(D.PAD1,8);return D.createBytes(w,C)},D.createBytes=function(A,Q){for(var B=0,C=0,I=0,E=Array(Q.length),D=Array(Q.length),c=0;c=0?h.get(k):0}}for(var K=0,y=0;y=256;)A-=255;return Q.EXP_TABLE[A]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},B=0;B<8;B++)Q.EXP_TABLE[B]=1<=0;)Q^=w.G15<=0;)Q^=w.G18<>>=1;return Q},getPatternPosition:function(A){return w.PATTERN_POSITION_TABLE[A-1]},getMask:function(A,Q,B){switch(A){case g.PATTERN000:return(Q+B)%2==0;case g.PATTERN001:return Q%2==0;case g.PATTERN010:return B%3==0;case g.PATTERN011:return(Q+B)%3==0;case g.PATTERN100:return(Math.floor(Q/2)+Math.floor(B/3))%2==0;case g.PATTERN101:return Q*B%2+Q*B%3==0;case g.PATTERN110:return(Q*B%2+Q*B%3)%2==0;case g.PATTERN111:return(Q*B%3+(Q+B)%2)%2==0;default:throw Error("bad maskPattern:"+A)}},getErrorCorrectPolynomial:function(A){for(var Q=new I([1],0),B=0;B5&&(B+=3+E-5)}for(var C=0;C{var C,I;C=A,I=function(A){var Q,B=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,C=new WeakMap,I=(Q=function(A,Q){return C.set(A,Q),Q},function(A){var I=C.get(A),E=void 0===I?A.size:I<1073741824?I+1:0;if(!A.has(E))return Q(A,E);if(A.size<536870912){for(;A.has(E);)E=Math.floor(1073741824*Math.random());return Q(A,E)}if(A.size>B)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;A.has(E);)E=Math.floor(Math.random()*B);return Q(A,E)});A.addUniqueNumber=function(A){var Q=I(A);return A.add(Q),Q},A.generateUniqueNumber=I},"object"==typeof A&&"u">typeof Q?I(A):"function"==typeof define&&B.amdO?define(["exports"],I):I((C="u">typeof globalThis?globalThis:C||self).fastUniqueNumbers={})},()=>(I||C((I={exports:{}}).exports,I),I.exports));s.Component;var L=(w=null!=(E=U())?y(K(E)):{},((A,Q,B,C)=>{if(Q&&"object"==typeof Q||"function"==typeof Q)for(let I of k(Q))t.call(A,I)||I===B||n(A,I,{get:()=>Q[I],enumerable:!(C=h(Q,I))||C.enumerable});return A})(!g&&E&&E.__esModule?w:n(w,"default",{value:E,enumerable:!0}),E)),i=A=>void 0!==A.method&&"call"===A.method,G=A=>null===A.error&&"number"==typeof A.id;c=A=>{let Q=new Map([[0,()=>{}]]),B=new Map([[0,()=>{}]]),C=new Map,I=new Worker(A);return I.addEventListener("message",({data:A})=>{if(i(A)){let{params:{timerId:I,timerType:E}}=A;if("interval"===E){let A=Q.get(I);if("number"==typeof A){let Q=C.get(A);if(void 0===Q||Q.timerId!==I||Q.timerType!==E)throw Error("The timer is in an undefined state.")}else if("u">typeof A)A();else throw Error("The timer is in an undefined state.")}else if("timeout"===E){let A=B.get(I);if("number"==typeof A){let Q=C.get(A);if(void 0===Q||Q.timerId!==I||Q.timerType!==E)throw Error("The timer is in an undefined state.")}else if("u">typeof A)A(),B.delete(I);else throw Error("The timer is in an undefined state.")}}else if(G(A)){let{id:I}=A,E=C.get(I);if(void 0===E)throw Error("The timer is in an undefined state.");let{timerId:g,timerType:w}=E;C.delete(I),"interval"===w?Q.delete(g):B.delete(g)}else{let{error:{message:Q}}=A;throw Error(Q)}}),{clearInterval:A=>{let B=(0,L.generateUniqueNumber)(C);C.set(B,{timerId:A,timerType:"interval"}),Q.set(A,B),I.postMessage({id:B,method:"clear",params:{timerId:A,timerType:"interval"}})},clearTimeout:A=>{let Q=(0,L.generateUniqueNumber)(C);C.set(Q,{timerId:A,timerType:"timeout"}),B.set(A,Q),I.postMessage({id:Q,method:"clear",params:{timerId:A,timerType:"timeout"}})},setInterval:(A,B)=>{let C=(0,L.generateUniqueNumber)(Q);return Q.set(C,()=>{A(),"function"==typeof Q.get(C)&&I.postMessage({id:null,method:"set",params:{delay:B,now:performance.now(),timerId:C,timerType:"interval"}})}),I.postMessage({id:null,method:"set",params:{delay:B,now:performance.now(),timerId:C,timerType:"interval"}}),C},setTimeout:(A,Q)=>{let C=(0,L.generateUniqueNumber)(B);return B.set(C,A),I.postMessage({id:null,method:"set",params:{delay:Q,now:performance.now(),timerId:C,timerType:"timeout"}}),C}}},M='(()=>{"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})}}))})();',D=null,()=>{if(null!==D)return D;let A=new Blob([M],{type:"application/javascript; charset=utf-8"}),Q=URL.createObjectURL(A);return D=c(Q),setTimeout(()=>URL.revokeObjectURL(Q)),D};var p=(typeof window>"u"?"undefined":typeof window)=="object",r={setTimeout:p?setTimeout.bind(window):setTimeout,clearTimeout:p?clearTimeout.bind(window):clearTimeout,setInterval:p?setInterval.bind(window):setInterval,clearInterval:p?clearInterval.bind(window):clearInterval},a={},o=class{name;closed=!1;mc=new MessageChannel;constructor(A){this.name=A,a[A]=a[A]||[],a[A].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(A){if(A.storageArea!==window.localStorage||A.key.substring(0,this.name.length)!==this.name||null===A.newValue)return;let Q=JSON.parse(A.newValue);this.mc.port2.postMessage(Q)}postMessage(A){if(this.closed)throw Error("InvalidStateError");let Q=JSON.stringify(A),B=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(B,Q),r.setTimeout(()=>{window.localStorage.removeItem(B)},500),a[this.name].forEach(A=>{A!==this&&A.mc.port2.postMessage(JSON.parse(Q))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let A=a[this.name].indexOf(this);a[this.name].splice(A,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(A){this.mc.port1.onmessage=A}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(A){this.mc.port1.onmessageerror=A}addEventListener(A,Q){return this.mc.port1.addEventListener(A,Q)}removeEventListener(A,Q){return this.mc.port1.removeEventListener(A,Q)}dispatchEvent(A){return this.mc.port1.dispatchEvent(A)}},N=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:o;function e(){return Math.random().toString(36).substring(2)}var J=class{options;channel;token=e();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(A,Q){this.channel=A,this.options=Q,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 A=!1,Q=Q=>{let{token:B,action:C}=Q.data;B!==this.token&&(0===C&&B>this.token&&(A=!0),1===C&&(A=!0))};this.channel.addEventListener("message",Q);try{return this.sendAction(0),await function(A=0){return new Promise(Q=>r.setTimeout(Q,A))}(this.options.responseTime),this.channel.removeEventListener("message",Q),this.isApplying=!1,A?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let A=!1,Q=null;return new Promise(B=>{let C=()=>{if(A)return;A=!0;try{r.clearInterval(Q)}catch{}let C=this.intervals.indexOf(Q);C>=0&&this.intervals.splice(C,1),this.channel.removeEventListener("message",I),B()};Q=r.setInterval(()=>{this.apply().then(()=>{this.isLeader&&C()})},this.options.fallbackInterval),this.intervals.push(Q);let I=A=>{let{action:Q}=A.data;2===Q&&this.apply().then(()=>{this.isLeader&&C()})};this.channel.addEventListener("message",I)})}sendAction(A){this.channel.postMessage({action:A,token:this.token})}assumeLead(){this.isLeader=!0;let A=A=>{let{action:Q}=A.data;0===Q&&this.sendAction(1)};return this.channel.addEventListener("message",A),this.listeners.push(A),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(A=>this.channel.removeEventListener("message",A)),this.intervals.forEach(A=>r.clearInterval(A))}catch{}}}},S=class{channel;options;elector;token=e();registry=new Map;allIdle=!1;isLastActive=!1;constructor(A){let{channelName:Q}=A;this.options=A,this.channel=new N(Q),this.registry.set(this.token,1),A.leaderElection&&(this.elector=new J(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",A=>{let{action:Q,token:B,data:C}=A.data;switch(Q){case 3:this.registry.set(B,2);break;case 4:this.registry.delete(B);break;case 5:this.idle(B);break;case 6:this.active(B);break;case 7:this.prompt(B);break;case 8:this.start(B);break;case 9:this.reset(B);break;case 10:this.activate(B);break;case 11:this.pause(B);break;case 12:this.resume(B);break;case 13:this.options.onMessage(C)}}),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(A=this.token){this.registry.set(A,0);let Q=[...this.registry.values()].every(A=>0===A);A===this.token&&this.send(7),Q&&this.options.onPrompt()}idle(A=this.token){this.registry.set(A,2);let Q=[...this.registry.values()].every(A=>2===A);A===this.token&&this.send(5),!this.allIdle&&Q&&(this.allIdle=!0,this.options.onIdle())}active(A=this.token){this.allIdle=!1,this.registry.set(A,1);let Q=[...this.registry.values()].some(A=>1===A);A===this.token&&this.send(6),Q&&this.options.onActive(),this.isLastActive=A===this.token}start(A=this.token){this.allIdle=!1,this.registry.set(A,1),A===this.token?this.send(8):this.options.start(!0),this.isLastActive=A===this.token}reset(A=this.token){this.allIdle=!1,this.registry.set(A,1),A===this.token?this.send(9):this.options.reset(!0),this.isLastActive=A===this.token}activate(A=this.token){this.allIdle=!1,this.registry.set(A,1),A===this.token?this.send(10):this.options.activate(!0),this.isLastActive=A===this.token}pause(A=this.token){A===this.token?this.send(11):this.options.pause(!0)}resume(A=this.token){A===this.token?this.send(12):this.options.resume(!0)}message(A){try{this.channel.postMessage({action:13,token:this.token,data:A})}catch{}}send(A){try{this.channel.postMessage({action:A,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},F=p?document:null,l=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function Y(A,Q){let B=0;return function(...C){let I=new Date().getTime();if(!(I-BDate.now();function f({timeout:A=12e5,promptTimeout:Q=0,promptBeforeIdle:B=0,element:C=F,events:I=l,timers:E,immediateEvents:g=[],onPresenceChange:w=()=>{},onPrompt:D=()=>{},onIdle:c=()=>{},onActive:M=()=>{},onAction:y=()=>{},onMessage:n=()=>{},debounce:h=0,throttle:k=0,eventsThrottle:K=200,startOnMount:t=!0,startManually:U=!1,stopOnIdle:L=!1,crossTab:i=!1,name:G="idle-timer",syncTimers:a=0,leaderElection:o=!1,disabled:N=!1}={}){let e=(0,s.useRef)(H()),J=(0,s.useRef)(H()),f=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,s.useRef)(0),R=(0,s.useRef)(0),j=(0,s.useRef)(0),b=(0,s.useRef)(0),m=(0,s.useRef)(!1),Z=(0,s.useRef)(!1),T=(0,s.useRef)(!1),P=(0,s.useRef)(!0),O=(0,s.useRef)(!1),W=(0,s.useRef)(null),z=(0,s.useRef)(null),x=(0,s.useRef)(A),V=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(Q&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),B&&Q)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(A>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(Q>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(B>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(B>=A)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${A}.`);if(B?(x.current=A-B,V.current=B):(x.current=A,V.current=Q),!P.current){if(U||N)return;m.current&&(AC.current(null,Aj),z.current&&z.current.active()),AU()}},[A,Q,B,U,N]);let v=(0,s.useRef)(L);(0,s.useEffect)(()=>{v.current=L},[L]);let X=(0,s.useRef)(g),q=(0,s.useRef)(C),_=(0,s.useRef)([...new Set([...I,...g]).values()]),$=(0,s.useRef)(N);(0,s.useEffect)(()=>{$.current=N,!P.current&&(N?AG():U||AU())},[N]);let AA=(0,s.useRef)(w);(0,s.useEffect)(()=>{AA.current=w},[w]);let AQ=(0,s.useRef)(D);(0,s.useEffect)(()=>{AQ.current=D},[D]);let AB=(0,s.useRef)(c);(0,s.useEffect)(()=>{AB.current=c},[c]);let AC=(0,s.useRef)(M);(0,s.useEffect)(()=>{AC.current=M},[M]);let AI=(0,s.useRef)(y);(0,s.useEffect)(()=>{AI.current=y},[y]);let AE=(0,s.useRef)(n);(0,s.useEffect)(()=>{AE.current=n},[n]);let Ag=(0,s.useMemo)(()=>{let A=(A,Q)=>AI.current(A,Q);return h>0?function(A,Q){let B;function C(...I){B&&clearTimeout(B),B=setTimeout(()=>{A(...I),B=null},Q)}return C.cancel=function(){clearTimeout(B)},C}(A,h):k>0?Y(A,k):A},[k,h]),Aw=(0,s.useRef)();(0,s.useEffect)(()=>{i&&a&&(Aw.current=Y(()=>{z.current.active()},a))},[i,a]);let AD=()=>{null!==W.current&&(r.clearTimeout(W.current),W.current=null)},Ac=(A,Q=!0)=>{AD(),W.current=r.setTimeout(An,A||x.current),Q&&(d.current=H())},AM=A=>{Z.current||m.current||(AQ.current(A,Aj),AA.current({type:"active",prompted:!0},Aj)),b.current=0,j.current=H(),Z.current=!0,Ac(V.current,!1)},As=()=>{AD(),m.current||(AB.current(null,Aj),AA.current({type:"idle"},Aj)),m.current=!0,f.current=H(),v.current?At():Z.current&&(j.current=0,Z.current=!1)},Ay=A=>{AD(),(m.current||Z.current)&&(AC.current(A,Aj),AA.current({type:"active",prompted:!1},Aj)),Z.current=!1,j.current=0,m.current=!1,u.current+=H()-f.current,R.current+=H()-f.current,AK(),Ac()},An=A=>{if(!m.current){Ag.cancel&&Ag.cancel();let Q=H()-d.current;if(!(x.current+V.current0&&!Z.current){z.current?z.current.prompt():AM(A);return}z.current?z.current.idle():As();return}z.current?z.current.active():Ay(A)},Ah=A=>{if(t||d.current||(d.current=H(),AC.current(null,Aj)),Ag(A,Aj),Z.current)return;if(AD(),!m.current&&X.current.includes(A.type)){An(A);return}let Q=H()-d.current;if(m.current&&!L||!m.current&&Q>=x.current){An(A);return}T.current=!1,b.current=0,j.current=0,Ac(),i&&a&&Aw.current()},Ak=(0,s.useRef)(Ah);(0,s.useEffect)(()=>{let A=O.current;A&&At(),K>0?Ak.current=Y(Ah,K):Ak.current=Ah,A&&AK()},[K,k,h,AI,i,a]);let AK=()=>{p&&q.current&&(O.current||(_.current.forEach(A=>{q.current.addEventListener(A,Ak.current,{capture:!0,passive:!0})}),O.current=!0))},At=(A=!1)=>{p&&q.current&&(O.current||A)&&(_.current.forEach(A=>{q.current.removeEventListener(A,Ak.current,{capture:!0})}),O.current=!1)},AU=(0,s.useCallback)(A=>!$.current&&(AD(),AK(),m.current=!1,Z.current=!1,T.current=!1,b.current=0,j.current=0,z.current&&!A&&z.current.start(),Ac(),!0),[W,m,$,x,z]),AL=(0,s.useCallback)(A=>!$.current&&(AD(),AK(),J.current=H(),u.current+=H()-f.current,R.current+=H()-f.current,u.current=0,m.current=!1,Z.current=!1,T.current=!1,b.current=0,j.current=0,z.current&&!A&&z.current.reset(),U||Ac(),!0),[W,m,x,U,$,z]),Ai=(0,s.useCallback)(A=>!$.current&&(AD(),AK(),(m.current||Z.current)&&Ay(),m.current=!1,Z.current=!1,T.current=!1,b.current=0,j.current=0,J.current=H(),z.current&&!A&&z.current.activate(),Ac(),!0),[W,m,Z,$,x,z]),AG=(0,s.useCallback)((A=!1)=>!$.current&&!T.current&&(b.current=AS(),T.current=!0,At(),AD(),z.current&&!A&&z.current.pause(),!0),[W,$,z]),Ap=(0,s.useCallback)((A=!1)=>!$.current&&!!T.current&&(T.current=!1,Z.current||AK(),m.current||Ac(b.current),j.current&&(j.current=H()),z.current&&!A&&z.current.resume(),!0),[W,x,$,b,z]),Ar=(0,s.useCallback)((A,Q)=>(z.current?(Q&&AE.current(A,Aj),z.current.message(A)):Q&&AE.current(A,Aj),!0),[n]),Aa=(0,s.useCallback)(()=>m.current,[m]),Ao=(0,s.useCallback)(()=>Z.current,[Z]),AN=(0,s.useCallback)(()=>z.current?z.current.isLeader:null,[z]),Ae=(0,s.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),AJ=(0,s.useCallback)(()=>z.current?z.current.token:null,[z]),AS=(0,s.useCallback)(()=>{if(T.current)return b.current;let A=Math.floor((b.current?b.current:V.current+x.current)-(d.current?H()-d.current:0));return A<0?0:Math.abs(A)},[x,V,Z,b,d]),AF=(0,s.useCallback)(()=>Math.round(H()-J.current),[J]),Al=(0,s.useCallback)(()=>Math.round(H()-e.current),[e]),AY=(0,s.useCallback)(()=>f.current?new Date(f.current):null,[f]),AH=(0,s.useCallback)(()=>d.current?new Date(d.current):null,[d]),Af=(0,s.useCallback)(()=>m.current?Math.round(H()-f.current+u.current):Math.round(u.current),[f,u]),Ad=(0,s.useCallback)(()=>m.current?Math.round(H()-f.current+R.current):Math.round(R.current),[f,R]),Au=(0,s.useCallback)(()=>{let A=Math.round(AF()-Af());return A>=0?A:0},[f,u]),AR=(0,s.useCallback)(()=>{let A=Math.round(Al()-Ad());return A>=0?A:0},[f,u]);(0,s.useEffect)(()=>{if(h>0&&k>0)throw Error("❌ onAction can either be throttled or debounced, not both.");E&&(r.setTimeout=E.setTimeout,r.clearTimeout=E.clearTimeout,r.setInterval=E.setInterval,r.clearInterval=E.clearInterval);let A=()=>{z.current&&z.current.close(),Ag.cancel&&Ag.cancel(),AD(),At(!0)};return p&&window.addEventListener("beforeunload",A),()=>{p&&window.removeEventListener("beforeunload",A),z.current&&z.current.close(),Ag.cancel&&Ag.cancel(),AD(),At(!0)}},[]),(0,s.useEffect)(()=>{z.current&&z.current.close(),i?z.current=new S({channelName:G,leaderElection:o,onPrompt:()=>{AM()},onIdle:()=>{As()},onActive:()=>{Ay()},onMessage:A=>{AE.current(A,Aj)},start:AU,reset:AL,activate:Ai,pause:AG,resume:Ap}):z.current=null},[i,G,o,AQ,AB,AC,AE,AU,AL,AG,Ap]),(0,s.useEffect)(()=>{P.current||(AD(),At(!0)),U||N||(t?AU():AK())},[U,t,N,P]),(0,s.useEffect)(()=>{if(!P.current){let A=[...new Set([...I,...g]).values()];At(),_.current=A,q.current=C,X.current=g,U||N||(t?AU():AK())}},[C,JSON.stringify(I),JSON.stringify(g),P,N,U,t]),(0,s.useEffect)(()=>{P.current&&(P.current=!1)},[P]);let Aj={message:Ar,start:AU,reset:AL,activate:Ai,pause:AG,resume:Ap,isIdle:Aa,isPrompted:Ao,isLeader:AN,isLastActiveTab:Ae,getTabId:AJ,getRemainingTime:AS,getElapsedTime:AF,getTotalElapsedTime:Al,getLastIdleTime:AY,getLastActiveTime:AH,getIdleTime:Af,getTotalIdleTime:Ad,getActiveTime:Au,getTotalActiveTime:AR,setOnPresenceChange:A=>{w=A,AA.current=A},setOnPrompt:A=>{D=A,AQ.current=A},setOnIdle:A=>{c=A,AB.current=A},setOnActive:A=>{M=A,AC.current=A},setOnAction:A=>{y=A,AI.current=A},setOnMessage:A=>{n=A,AE.current=A}};return Aj}(0,s.createContext)(null).Consumer},72660:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var C=E(B(13980)),I=E(B(2784));function E(A){return A&&A.__esModule?A:{default:A}}var g={d:C.default.string.isRequired,fill:C.default.string.isRequired,transformX:C.default.number.isRequired,transformY:C.default.number.isRequired},w=function(A){var Q=A.d,B=A.fill,C=A.transformX,E=A.transformY;return I.default.createElement("path",{d:Q,fill:B,transform:"matrix("+[1,0,0,1,C,E]+")"})};w.propTypes=g,w.defaultProps={},Q.default=w},76672:function(A,Q,B){"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var C=Object.assign||function(A){for(var Q=1;Q=0)&&Object.prototype.hasOwnProperty.call(A,C)&&(B[C]=A[C]);return B}(A,["children","size","title","xmlns"]);return E.default.createElement("svg",C({},w,{height:B,width:B,xmlns:g}),I?E.default.createElement("title",null,I):null,Q)};D.propTypes=w,D.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},Q.default=D},38001:function(A,Q,B){"use strict";var C=Object.assign||function(A){for(var Q=1;Q=0)&&Object.prototype.hasOwnProperty.call(A,C)&&(B[C]=A[C]);return B}(A,["bgColor","fgColor","level","size","value"]),n=new I.default(-1,E.default[g]);n.addData(s),n.make();var h=n.modules,k=w/h.length;return D.default.createElement(M.default,C({},y,{size:w}),h.map(function(A,C){return A.map(function(A,I){var E=Math.round(I*k),g=Math.round(C*k),w=Math.round((I+1)*k)-E,M=Math.round((C+1)*k)-g;return D.default.createElement(c.default,{key:"rectangle-"+C+"-"+I,d:"M 0 0 L "+w+" 0 L "+w+" "+M+" L 0 "+M+" Z",fill:A?B:Q,transformX:E,transformY:g})})}))};n.propTypes=y,n.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},Q.Z=(0,w.memo)(n)},32718:function(A,Q,B){var C,I=B(58085),E=B(41964),g=B(53207),w=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;A.exports=function(A,Q){return C=0,Q=Math.pow(10,void 0===Q?5:Q),E(A=A.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function A(B,E,D){if(C++>100)throw C=0,Error("Call stack overflow for "+D);if(""===B)throw Error(E+"(): '"+D+"' must contain a non-whitespace string");var c,M=function(A){for(var Q=[],B=[],C=/[\.0-9]([%a-z]+)/gi,I=C.exec(A);I;)I&&I[1]&&(-1===B.indexOf(I[1].toLowerCase())&&(Q.push(I[1]),B.push(I[1].toLowerCase())),I=C.exec(A));return Q}(B=function(Q,B){Q=Q.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var C,E="",g=Q;C=w.exec(g);){C[0].index>0&&(E+=g.substring(0,C[0].index));var D=I("(",")",g.substring([0].index));if(""===D.body)throw Error("'"+Q+"' must contain a non-whitespace string");var c=A(D.body,"",B);E+=D.pre+c,g=D.post}return E+g}(B,D));if(M.length>1||B.indexOf("var(")>-1)return E+"("+B+")";var s=M[0]||"";"%"===s&&(B=B.replace(/\b[0-9\.]+%/g,function(A){return .01*parseFloat(A.slice(0,-1))}));var y=B.replace(RegExp(s,"gi"),"");try{c=g.eval(y)}catch(A){return E+"("+B+")"}return"%"===s&&(c*=100),(E.length||"%"===s)&&(c=Math.round(c*Q)/Q),c+=s})}},58085:function(A){function Q(A,Q,I){A instanceof RegExp&&(A=B(A,I)),Q instanceof RegExp&&(Q=B(Q,I));var E=C(A,Q,I);return E&&{start:E[0],end:E[1],pre:I.slice(0,E[0]),body:I.slice(E[0]+A.length,E[1]),post:I.slice(E[1]+Q.length)}}function B(A,Q){var B=Q.match(A);return B?B[0]:null}function C(A,Q,B){var C,I,E,g,w,D=B.indexOf(A),c=B.indexOf(Q,D+1),M=D;if(D>=0&&c>0){for(C=[],E=B.length;M>=0&&!w;)M==D?(C.push(M),D=B.indexOf(A,M+1)):1==C.length?w=[C.pop(),c]:((I=C.pop())=0?D:c;C.length&&(w=[E,g])}return w}A.exports=Q,Q.range=C},41964:function(A,Q,B){var C=B(82294);A.exports=function A(Q,B,I){return(function(A,Q){var B=[],I="string"==typeof Q?RegExp("\\b("+Q+")\\("):Q;do{var E=I.exec(A);if(!E)break;if(void 0===E[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+Q);var g=E[1],w=E.index,D=C("(",")",A.substring(w));if(!D||D.start!==E[0].length-1)throw SyntaxError(g+"(): missing closing ')' in the value '"+A+"'");B.push({matches:D,functionIdentifier:g}),A=D.post}while(I.test(A));return B})(Q,B).reduce(function(C,E){var g,w;return C.replace(E.functionIdentifier+"("+E.matches.body+")",(g=E.matches.body,w=E.functionIdentifier,I(A(g,B,I),w,Q)))},Q)}},7847:function(A,Q,B){let C=Symbol("SemVer ANY");class I{static get ANY(){return C}constructor(A,Q){if(Q=E(Q),A instanceof I){if(!!Q.loose===A.loose)return A;A=A.value}c("comparator",A=A.trim().split(/\s+/).join(" "),Q),this.options=Q,this.loose=!!Q.loose,this.parse(A),this.semver===C?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(A){let Q=this.options.loose?g[w.COMPARATORLOOSE]:g[w.COMPARATOR],B=A.match(Q);if(!B)throw TypeError(`Invalid comparator: ${A}`);this.operator=void 0!==B[1]?B[1]:"","="===this.operator&&(this.operator=""),B[2]?this.semver=new M(B[2],this.options.loose):this.semver=C}toString(){return this.value}test(A){if(c("Comparator.test",A,this.options.loose),this.semver===C||A===C)return!0;if("string"==typeof A)try{A=new M(A,this.options)}catch(A){return!1}return D(A,this.operator,this.semver,this.options)}intersects(A,Q){if(!(A instanceof I))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(A.value,Q).test(this.value):""===A.operator?""===A.value||new s(this.value,Q).test(A.semver):!((Q=E(Q)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===A.value)||!Q.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&A.operator.startsWith(">")||this.operator.startsWith("<")&&A.operator.startsWith("<")||this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("=")||D(this.semver,"<",A.semver,Q)&&this.operator.startsWith(">")&&A.operator.startsWith("<")||D(this.semver,">",A.semver,Q)&&this.operator.startsWith("<")&&A.operator.startsWith(">"))}}A.exports=I;let E=B(25315),{safeRe:g,t:w}=B(94808),D=B(28117),c=B(10952),M=B(52435),s=B(66843)},66843:function(A,Q,B){class C{constructor(A,Q){if(Q=E(Q),A instanceof C){if(!!Q.loose===A.loose&&!!Q.includePrerelease===A.includePrerelease)return A;return new C(A.raw,Q)}if(A instanceof g)return this.raw=A.value,this.set=[[A]],this.format(),this;if(this.options=Q,this.loose=!!Q.loose,this.includePrerelease=!!Q.includePrerelease,this.raw=A.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(A=>this.parseRange(A.trim())).filter(A=>A.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let A=this.set[0];if(this.set=this.set.filter(A=>!K(A[0])),0===this.set.length)this.set=[A];else if(this.set.length>1){for(let A of this.set)if(1===A.length&&t(A[0])){this.set=[A];break}}}this.format()}format(){return this.range=this.set.map(A=>A.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(A){let Q=((this.options.includePrerelease&&h)|(this.options.loose&&k))+":"+A,B=I.get(Q);if(B)return B;let C=this.options.loose,E=C?c[M.HYPHENRANGELOOSE]:c[M.HYPHENRANGE];w("hyphen replace",A=A.replace(E,S(this.options.includePrerelease))),w("comparator trim",A=A.replace(c[M.COMPARATORTRIM],s)),w("tilde trim",A=A.replace(c[M.TILDETRIM],y)),w("caret trim",A=A.replace(c[M.CARETTRIM],n));let D=A.split(" ").map(A=>L(A,this.options)).join(" ").split(/\s+/).map(A=>J(A,this.options));C&&(D=D.filter(A=>(w("loose invalid filter",A,this.options),!!A.match(c[M.COMPARATORLOOSE])))),w("range list",D);let t=new Map;for(let A of D.map(A=>new g(A,this.options))){if(K(A))return[A];t.set(A.value,A)}t.size>1&&t.has("")&&t.delete("");let U=[...t.values()];return I.set(Q,U),U}intersects(A,Q){if(!(A instanceof C))throw TypeError("a Range is required");return this.set.some(B=>U(B,Q)&&A.set.some(A=>U(A,Q)&&B.every(B=>A.every(A=>B.intersects(A,Q)))))}test(A){if(!A)return!1;if("string"==typeof A)try{A=new D(A,this.options)}catch(A){return!1}for(let Q=0;Q"<0.0.0-0"===A.value,t=A=>""===A.value,U=(A,Q)=>{let B=!0,C=A.slice(),I=C.pop();for(;B&&C.length;)B=C.every(A=>I.intersects(A,Q)),I=C.pop();return B},L=(A,Q)=>(w("comp",A,Q),w("caret",A=r(A,Q)),w("tildes",A=G(A,Q)),w("xrange",A=o(A,Q)),w("stars",A=e(A,Q)),A),i=A=>!A||"x"===A.toLowerCase()||"*"===A,G=(A,Q)=>A.trim().split(/\s+/).map(A=>p(A,Q)).join(" "),p=(A,Q)=>{let B=Q.loose?c[M.TILDELOOSE]:c[M.TILDE];return A.replace(B,(Q,B,C,I,E)=>{let g;return w("tilde",A,Q,B,C,I,E),i(B)?g="":i(C)?g=`>=${B}.0.0 <${+B+1}.0.0-0`:i(I)?g=`>=${B}.${C}.0 <${B}.${+C+1}.0-0`:E?(w("replaceTilde pr",E),g=`>=${B}.${C}.${I}-${E} <${B}.${+C+1}.0-0`):g=`>=${B}.${C}.${I} <${B}.${+C+1}.0-0`,w("tilde return",g),g})},r=(A,Q)=>A.trim().split(/\s+/).map(A=>a(A,Q)).join(" "),a=(A,Q)=>{w("caret",A,Q);let B=Q.loose?c[M.CARETLOOSE]:c[M.CARET],C=Q.includePrerelease?"-0":"";return A.replace(B,(Q,B,I,E,g)=>{let D;return w("caret",A,Q,B,I,E,g),i(B)?D="":i(I)?D=`>=${B}.0.0${C} <${+B+1}.0.0-0`:i(E)?D="0"===B?`>=${B}.${I}.0${C} <${B}.${+I+1}.0-0`:`>=${B}.${I}.0${C} <${+B+1}.0.0-0`:g?(w("replaceCaret pr",g),D="0"===B?"0"===I?`>=${B}.${I}.${E}-${g} <${B}.${I}.${+E+1}-0`:`>=${B}.${I}.${E}-${g} <${B}.${+I+1}.0-0`:`>=${B}.${I}.${E}-${g} <${+B+1}.0.0-0`):(w("no pr"),D="0"===B?"0"===I?`>=${B}.${I}.${E}${C} <${B}.${I}.${+E+1}-0`:`>=${B}.${I}.${E}${C} <${B}.${+I+1}.0-0`:`>=${B}.${I}.${E} <${+B+1}.0.0-0`),w("caret return",D),D})},o=(A,Q)=>(w("replaceXRanges",A,Q),A.split(/\s+/).map(A=>N(A,Q)).join(" ")),N=(A,Q)=>{A=A.trim();let B=Q.loose?c[M.XRANGELOOSE]:c[M.XRANGE];return A.replace(B,(B,C,I,E,g,D)=>{w("xRange",A,B,C,I,E,g,D);let c=i(I),M=c||i(E),s=M||i(g);return"="===C&&s&&(C=""),D=Q.includePrerelease?"-0":"",c?B=">"===C||"<"===C?"<0.0.0-0":"*":C&&s?(M&&(E=0),g=0,">"===C?(C=">=",M?(I=+I+1,E=0):E=+E+1,g=0):"<="===C&&(C="<",M?I=+I+1:E=+E+1),"<"===C&&(D="-0"),B=`${C+I}.${E}.${g}${D}`):M?B=`>=${I}.0.0${D} <${+I+1}.0.0-0`:s&&(B=`>=${I}.${E}.0${D} <${I}.${+E+1}.0-0`),w("xRange return",B),B})},e=(A,Q)=>(w("replaceStars",A,Q),A.trim().replace(c[M.STAR],"")),J=(A,Q)=>(w("replaceGTE0",A,Q),A.trim().replace(c[Q.includePrerelease?M.GTE0PRE:M.GTE0],"")),S=A=>(Q,B,C,I,E,g,w,D,c,M,s,y,n)=>(B=i(C)?"":i(I)?`>=${C}.0.0${A?"-0":""}`:i(E)?`>=${C}.${I}.0${A?"-0":""}`:g?`>=${B}`:`>=${B}${A?"-0":""}`,D=i(c)?"":i(M)?`<${+c+1}.0.0-0`:i(s)?`<${c}.${+M+1}.0-0`:y?`<=${c}.${M}.${s}-${y}`:A?`<${c}.${M}.${+s+1}-0`:`<=${D}`,`${B} ${D}`.trim()),F=(A,Q,B)=>{for(let B=0;B0){let C=A[B].semver;if(C.major===Q.major&&C.minor===Q.minor&&C.patch===Q.patch)return!0}return!1}return!0}},52435:function(A,Q,B){let C=B(10952),{MAX_LENGTH:I,MAX_SAFE_INTEGER:E}=B(55558),{safeRe:g,t:w}=B(94808),D=B(25315),{compareIdentifiers:c}=B(14935);class M{constructor(A,Q){if(Q=D(Q),A instanceof M){if(!!Q.loose===A.loose&&!!Q.includePrerelease===A.includePrerelease)return A;A=A.version}else if("string"!=typeof A)throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>I)throw TypeError(`version is longer than ${I} characters`);C("SemVer",A,Q),this.options=Q,this.loose=!!Q.loose,this.includePrerelease=!!Q.includePrerelease;let B=A.trim().match(Q.loose?g[w.LOOSE]:g[w.FULL]);if(!B)throw TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+B[1],this.minor=+B[2],this.patch=+B[3],this.major>E||this.major<0)throw TypeError("Invalid major version");if(this.minor>E||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>E||this.patch<0)throw TypeError("Invalid patch version");B[4]?this.prerelease=B[4].split(".").map(A=>{if(/^[0-9]+$/.test(A)){let Q=+A;if(Q>=0&&Q=0;)"number"==typeof this.prerelease[C]&&(this.prerelease[C]++,C=-2);if(-1===C){if(Q===this.prerelease.join(".")&&!1===B)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(A)}}if(Q){let C=[Q,A];!1===B&&(C=[Q]),0===c(this.prerelease[0],Q)?isNaN(this.prerelease[1])&&(this.prerelease=C):this.prerelease=C}break}default:throw Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}A.exports=M},36694:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A.trim().replace(/^[=v]+/,""),Q);return B?B.version:null}},28117:function(A,Q,B){let C=B(33276),I=B(77893),E=B(16379),g=B(8463),w=B(21897),D=B(30506);A.exports=(A,Q,B,c)=>{switch(Q){case"===":return"object"==typeof A&&(A=A.version),"object"==typeof B&&(B=B.version),A===B;case"!==":return"object"==typeof A&&(A=A.version),"object"==typeof B&&(B=B.version),A!==B;case"":case"=":case"==":return C(A,B,c);case"!=":return I(A,B,c);case">":return E(A,B,c);case">=":return g(A,B,c);case"<":return w(A,B,c);case"<=":return D(A,B,c);default:throw TypeError(`Invalid operator: ${Q}`)}}},98686:function(A,Q,B){let C=B(52435),I=B(79943),{safeRe:E,t:g}=B(94808);A.exports=(A,Q)=>{if(A instanceof C)return A;if("number"==typeof A&&(A=String(A)),"string"!=typeof A)return null;let B=null;if((Q=Q||{}).rtl){let Q;for(;(Q=E[g.COERCERTL].exec(A))&&(!B||B.index+B[0].length!==A.length);)B&&Q.index+Q[0].length===B.index+B[0].length||(B=Q),E[g.COERCERTL].lastIndex=Q.index+Q[1].length+Q[2].length;E[g.COERCERTL].lastIndex=-1}else B=A.match(E[g.COERCE]);return null===B?null:I(`${B[2]}.${B[3]||"0"}.${B[4]||"0"}`,Q)}},65914:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B)=>{let I=new C(A,B),E=new C(Q,B);return I.compare(E)||I.compareBuild(E)}},55404:function(A,Q,B){let C=B(92271);A.exports=(A,Q)=>C(A,Q,!0)},92271:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B)=>new C(A,B).compare(new C(Q,B))},66007:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A,null,!0),I=C(Q,null,!0),E=B.compare(I);if(0===E)return null;let g=E>0,w=g?B:I,D=g?I:B,c=!!w.prerelease.length;if(D.prerelease.length&&!c)return D.patch||D.minor?w.patch?"patch":w.minor?"minor":"major":"major";let M=c?"pre":"";return B.major!==I.major?M+"major":B.minor!==I.minor?M+"minor":B.patch!==I.patch?M+"patch":"prerelease"}},33276:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0===C(A,Q,B)},16379:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>C(A,Q,B)>0},8463:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>C(A,Q,B)>=0},86360:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B,I,E)=>{"string"==typeof B&&(E=I,I=B,B=void 0);try{return new C(A instanceof C?A.version:A,B).inc(Q,I,E).version}catch(A){return null}}},21897:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0>C(A,Q,B)},30506:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0>=C(A,Q,B)},50023:function(A,Q,B){let C=B(52435);A.exports=(A,Q)=>new C(A,Q).major},469:function(A,Q,B){let C=B(52435);A.exports=(A,Q)=>new C(A,Q).minor},77893:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>0!==C(A,Q,B)},79943:function(A,Q,B){let C=B(52435);A.exports=(A,Q,B=!1)=>{if(A instanceof C)return A;try{return new C(A,Q)}catch(A){if(!B)return null;throw A}}},54250:function(A,Q,B){let C=B(52435);A.exports=(A,Q)=>new C(A,Q).patch},58204:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A,Q);return B&&B.prerelease.length?B.prerelease:null}},70733:function(A,Q,B){let C=B(92271);A.exports=(A,Q,B)=>C(Q,A,B)},72961:function(A,Q,B){let C=B(65914);A.exports=(A,Q)=>A.sort((A,B)=>C(B,A,Q))},59844:function(A,Q,B){let C=B(66843);A.exports=(A,Q,B)=>{try{Q=new C(Q,B)}catch(A){return!1}return Q.test(A)}},51116:function(A,Q,B){let C=B(65914);A.exports=(A,Q)=>A.sort((A,B)=>C(A,B,Q))},97230:function(A,Q,B){let C=B(79943);A.exports=(A,Q)=>{let B=C(A,Q);return B?B.version:null}},97699:function(A,Q,B){let C=B(94808),I=B(55558),E=B(52435),g=B(14935),w=B(79943),D=B(97230),c=B(36694),M=B(86360),s=B(66007),y=B(50023),n=B(469),h=B(54250),k=B(58204),K=B(92271),t=B(70733),U=B(55404),L=B(65914),i=B(51116),G=B(72961),p=B(16379),r=B(21897),a=B(33276),o=B(77893),N=B(8463),e=B(30506),J=B(28117),S=B(98686),F=B(7847),l=B(66843),Y=B(59844),H=B(48865),f=B(53727),d=B(14338),u=B(21542),R=B(36240),j=B(89106),b=B(90995),m=B(47805),Z=B(22013),T=B(81338),P=B(53122);A.exports={parse:w,valid:D,clean:c,inc:M,diff:s,major:y,minor:n,patch:h,prerelease:k,compare:K,rcompare:t,compareLoose:U,compareBuild:L,sort:i,rsort:G,gt:p,lt:r,eq:a,neq:o,gte:N,lte:e,cmp:J,coerce:S,Comparator:F,Range:l,satisfies:Y,toComparators:H,maxSatisfying:f,minSatisfying:d,minVersion:u,validRange:R,outside:j,gtr:b,ltr:m,intersects:Z,simplifyRange:T,subset:P,SemVer:E,re:C.re,src:C.src,tokens:C.t,SEMVER_SPEC_VERSION:I.SEMVER_SPEC_VERSION,RELEASE_TYPES:I.RELEASE_TYPES,compareIdentifiers:g.compareIdentifiers,rcompareIdentifiers:g.rcompareIdentifiers}},55558:function(A){let Q=Number.MAX_SAFE_INTEGER||9007199254740991;A.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Q,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},10952:function(A,Q,B){var C=B(93542);let I="object"==typeof C&&C.env&&C.env.NODE_DEBUG&&/\bsemver\b/i.test(C.env.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};A.exports=I},14935:function(A){let Q=/^[0-9]+$/,B=(A,B)=>{let C=Q.test(A),I=Q.test(B);return C&&I&&(A=+A,B=+B),A===B?0:C&&!I?-1:I&&!C?1:AB(Q,A)}},25315:function(A){let Q=Object.freeze({loose:!0}),B=Object.freeze({});A.exports=A=>A?"object"!=typeof A?Q:A:B},94808:function(A,Q,B){let{MAX_SAFE_COMPONENT_LENGTH:C,MAX_SAFE_BUILD_LENGTH:I,MAX_LENGTH:E}=B(55558),g=B(10952),w=(Q=A.exports={}).re=[],D=Q.safeRe=[],c=Q.src=[],M=Q.t={},s=0,y="[a-zA-Z0-9-]",n=[["\\s",1],["\\d",E],[y,I]],h=A=>{for(let[Q,B]of n)A=A.split(`${Q}*`).join(`${Q}{0,${B}}`).split(`${Q}+`).join(`${Q}{1,${B}}`);return A},k=(A,Q,B)=>{let C=h(Q),I=s++;g(A,I,Q),M[A]=I,c[I]=Q,w[I]=new RegExp(Q,B?"g":void 0),D[I]=new RegExp(C,B?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*"),k("NUMERICIDENTIFIERLOOSE","\\d+"),k("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),k("MAINVERSION",`(${c[M.NUMERICIDENTIFIER]})\\.(${c[M.NUMERICIDENTIFIER]})\\.(${c[M.NUMERICIDENTIFIER]})`),k("MAINVERSIONLOOSE",`(${c[M.NUMERICIDENTIFIERLOOSE]})\\.(${c[M.NUMERICIDENTIFIERLOOSE]})\\.(${c[M.NUMERICIDENTIFIERLOOSE]})`),k("PRERELEASEIDENTIFIER",`(?:${c[M.NUMERICIDENTIFIER]}|${c[M.NONNUMERICIDENTIFIER]})`),k("PRERELEASEIDENTIFIERLOOSE",`(?:${c[M.NUMERICIDENTIFIERLOOSE]}|${c[M.NONNUMERICIDENTIFIER]})`),k("PRERELEASE",`(?:-(${c[M.PRERELEASEIDENTIFIER]}(?:\\.${c[M.PRERELEASEIDENTIFIER]})*))`),k("PRERELEASELOOSE",`(?:-?(${c[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[M.PRERELEASEIDENTIFIERLOOSE]})*))`),k("BUILDIDENTIFIER",`${y}+`),k("BUILD",`(?:\\+(${c[M.BUILDIDENTIFIER]}(?:\\.${c[M.BUILDIDENTIFIER]})*))`),k("FULLPLAIN",`v?${c[M.MAINVERSION]}${c[M.PRERELEASE]}?${c[M.BUILD]}?`),k("FULL",`^${c[M.FULLPLAIN]}$`),k("LOOSEPLAIN",`[v=\\s]*${c[M.MAINVERSIONLOOSE]}${c[M.PRERELEASELOOSE]}?${c[M.BUILD]}?`),k("LOOSE",`^${c[M.LOOSEPLAIN]}$`),k("GTLT","((?:<|>)?=?)"),k("XRANGEIDENTIFIERLOOSE",`${c[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),k("XRANGEIDENTIFIER",`${c[M.NUMERICIDENTIFIER]}|x|X|\\*`),k("XRANGEPLAIN",`[v=\\s]*(${c[M.XRANGEIDENTIFIER]})(?:\\.(${c[M.XRANGEIDENTIFIER]})(?:\\.(${c[M.XRANGEIDENTIFIER]})(?:${c[M.PRERELEASE]})?${c[M.BUILD]}?)?)?`),k("XRANGEPLAINLOOSE",`[v=\\s]*(${c[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[M.XRANGEIDENTIFIERLOOSE]})(?:${c[M.PRERELEASELOOSE]})?${c[M.BUILD]}?)?)?`),k("XRANGE",`^${c[M.GTLT]}\\s*${c[M.XRANGEPLAIN]}$`),k("XRANGELOOSE",`^${c[M.GTLT]}\\s*${c[M.XRANGEPLAINLOOSE]}$`),k("COERCE",`(^|[^\\d])(\\d{1,${C}})(?:\\.(\\d{1,${C}}))?(?:\\.(\\d{1,${C}}))?(?:$|[^\\d])`),k("COERCERTL",c[M.COERCE],!0),k("LONETILDE","(?:~>?)"),k("TILDETRIM",`(\\s*)${c[M.LONETILDE]}\\s+`,!0),Q.tildeTrimReplace="$1~",k("TILDE",`^${c[M.LONETILDE]}${c[M.XRANGEPLAIN]}$`),k("TILDELOOSE",`^${c[M.LONETILDE]}${c[M.XRANGEPLAINLOOSE]}$`),k("LONECARET","(?:\\^)"),k("CARETTRIM",`(\\s*)${c[M.LONECARET]}\\s+`,!0),Q.caretTrimReplace="$1^",k("CARET",`^${c[M.LONECARET]}${c[M.XRANGEPLAIN]}$`),k("CARETLOOSE",`^${c[M.LONECARET]}${c[M.XRANGEPLAINLOOSE]}$`),k("COMPARATORLOOSE",`^${c[M.GTLT]}\\s*(${c[M.LOOSEPLAIN]})$|^$`),k("COMPARATOR",`^${c[M.GTLT]}\\s*(${c[M.FULLPLAIN]})$|^$`),k("COMPARATORTRIM",`(\\s*)${c[M.GTLT]}\\s*(${c[M.LOOSEPLAIN]}|${c[M.XRANGEPLAIN]})`,!0),Q.comparatorTrimReplace="$1$2$3",k("HYPHENRANGE",`^\\s*(${c[M.XRANGEPLAIN]})\\s+-\\s+(${c[M.XRANGEPLAIN]})\\s*$`),k("HYPHENRANGELOOSE",`^\\s*(${c[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[M.XRANGEPLAINLOOSE]})\\s*$`),k("STAR","(<|>)?=?\\s*\\*"),k("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),k("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},90995:function(A,Q,B){let C=B(89106);A.exports=(A,Q,B)=>C(A,Q,">",B)},22013:function(A,Q,B){let C=B(66843);A.exports=(A,Q,B)=>(A=new C(A,B),Q=new C(Q,B),A.intersects(Q,B))},47805:function(A,Q,B){let C=B(89106);A.exports=(A,Q,B)=>C(A,Q,"<",B)},53727:function(A,Q,B){let C=B(52435),I=B(66843);A.exports=(A,Q,B)=>{let E=null,g=null,w=null;try{w=new I(Q,B)}catch(A){return null}return A.forEach(A=>{w.test(A)&&(!E||-1===g.compare(A))&&(g=new C(E=A,B))}),E}},14338:function(A,Q,B){let C=B(52435),I=B(66843);A.exports=(A,Q,B)=>{let E=null,g=null,w=null;try{w=new I(Q,B)}catch(A){return null}return A.forEach(A=>{w.test(A)&&(!E||1===g.compare(A))&&(g=new C(E=A,B))}),E}},21542:function(A,Q,B){let C=B(52435),I=B(66843),E=B(16379);A.exports=(A,Q)=>{A=new I(A,Q);let B=new C("0.0.0");if(A.test(B)||(B=new C("0.0.0-0"),A.test(B)))return B;B=null;for(let Q=0;Q{let Q=new C(A.semver.version);switch(A.operator){case">":0===Q.prerelease.length?Q.patch++:Q.prerelease.push(0),Q.raw=Q.format();case"":case">=":(!g||E(Q,g))&&(g=Q);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${A.operator}`)}}),g&&(!B||E(B,g))&&(B=g)}return B&&A.test(B)?B:null}},89106:function(A,Q,B){let C=B(52435),I=B(7847),{ANY:E}=I,g=B(66843),w=B(59844),D=B(16379),c=B(21897),M=B(30506),s=B(8463);A.exports=(A,Q,B,y)=>{let n,h,k,K,t;switch(A=new C(A,y),Q=new g(Q,y),B){case">":n=D,h=M,k=c,K=">",t=">=";break;case"<":n=c,h=s,k=D,K="<",t="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(w(A,Q,y))return!1;for(let B=0;B{A.semver===E&&(A=new I(">=0.0.0")),g=g||A,w=w||A,n(A.semver,g.semver,y)?g=A:k(A.semver,w.semver,y)&&(w=A)}),g.operator===K||g.operator===t||(!w.operator||w.operator===K)&&h(A,w.semver)||w.operator===t&&k(A,w.semver))return!1}return!0}},81338:function(A,Q,B){let C=B(59844),I=B(92271);A.exports=(A,Q,B)=>{let E=[],g=null,w=null,D=A.sort((A,Q)=>I(A,Q,B));for(let A of D)C(A,Q,B)?(w=A,g||(g=A)):(w&&E.push([g,w]),w=null,g=null);g&&E.push([g,null]);let c=[];for(let[A,Q]of E)A===Q?c.push(A):Q||A!==D[0]?Q?A===D[0]?c.push(`<=${Q}`):c.push(`${A} - ${Q}`):c.push(`>=${A}`):c.push("*");let M=c.join(" || "),s="string"==typeof Q.raw?Q.raw:String(Q);return M.length=0.0.0-0")],c=[new I(">=0.0.0")],M=(A,Q,B)=>{let C,I,M,n,h,k,K;if(A===Q)return!0;if(1===A.length&&A[0].semver===E){if(1===Q.length&&Q[0].semver===E)return!0;A=B.includePrerelease?D:c}if(1===Q.length&&Q[0].semver===E){if(B.includePrerelease)return!0;Q=c}let t=new Set;for(let Q of A)">"===Q.operator||">="===Q.operator?C=s(C,Q,B):"<"===Q.operator||"<="===Q.operator?I=y(I,Q,B):t.add(Q.semver);if(t.size>1||C&&I&&((M=w(C.semver,I.semver,B))>0||0===M&&(">="!==C.operator||"<="!==I.operator)))return null;for(let A of t){if(C&&!g(A,String(C),B)||I&&!g(A,String(I),B))return null;for(let C of Q)if(!g(A,String(C),B))return!1;return!0}let U=!!I&&!B.includePrerelease&&!!I.semver.prerelease.length&&I.semver,L=!!C&&!B.includePrerelease&&!!C.semver.prerelease.length&&C.semver;for(let A of(U&&1===U.prerelease.length&&"<"===I.operator&&0===U.prerelease[0]&&(U=!1),Q)){if(K=K||">"===A.operator||">="===A.operator,k=k||"<"===A.operator||"<="===A.operator,C){if(L&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===L.major&&A.semver.minor===L.minor&&A.semver.patch===L.patch&&(L=!1),">"===A.operator||">="===A.operator){if((n=s(C,A,B))===A&&n!==C)return!1}else if(">="===C.operator&&!g(C.semver,String(A),B))return!1}if(I){if(U&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===U.major&&A.semver.minor===U.minor&&A.semver.patch===U.patch&&(U=!1),"<"===A.operator||"<="===A.operator){if((h=y(I,A,B))===A&&h!==I)return!1}else if("<="===I.operator&&!g(I.semver,String(A),B))return!1}if(!A.operator&&(I||C)&&0!==M)return!1}return(!C||!k||!!I||0===M)&&(!I||!K||!!C||0===M)&&!L&&!U},s=(A,Q,B)=>{if(!A)return Q;let C=w(A.semver,Q.semver,B);return C>0?A:C<0?Q:">"===Q.operator&&">="===A.operator?Q:A},y=(A,Q,B)=>{if(!A)return Q;let C=w(A.semver,Q.semver,B);return C<0?A:C>0?Q:"<"===Q.operator&&"<="===A.operator?Q:A};A.exports=(A,Q,B={})=>{if(A===Q)return!0;A=new C(A,B),Q=new C(Q,B);let I=!1;B:for(let C of A.set){for(let A of Q.set){let Q=M(C,A,B);if(I=I||null!==Q,Q)continue B}if(I)return!1}return!0}},48865:function(A,Q,B){let C=B(66843);A.exports=(A,Q)=>new C(A,Q).set.map(A=>A.map(A=>A.value).join(" ").trim().split(" "))},36240:function(A,Q,B){let C=B(66843);A.exports=(A,Q)=>{try{return new C(A,Q).range||"*"}catch(A){return null}}},6692:function(A,Q,B){let C=B(83128);A.exports=(C.__esModule?C:{default:C}).default},83128:function(A,Q,B){"use strict";var C;Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"default",{enumerable:!0,get:()=>g});let I=(C=B(37540))&&C.__esModule?C:{default:C};function E({version:A,from:Q,to:B}){I.default.warn(`${Q}-color-renamed`,[`As of Tailwind CSS ${A}, \`${Q}\` has been renamed to \`${B}\`.`,"Update your configuration file to silence this warning."])}let g={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 E({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return E({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return E({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return E({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return E({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(A,Q,B){"use strict";var C,I=B(93542);Object.defineProperty(Q,"__esModule",{value:!0}),function(A,Q){for(var B in Q)Object.defineProperty(A,B,{enumerable:!0,get:Q[B]})}(Q,{dim:()=>D,default:()=>c});let E=(C=B(24470))&&C.__esModule?C:{default:C},g=new Set;function w(A,Q,B){(void 0===I||!I.env.JEST_WORKER_ID)&&(B&&g.has(B)||(B&&g.add(B),console.warn(""),Q.forEach(Q=>console.warn(A,"-",Q))))}function D(A){return E.default.dim(A)}let c={info(A,Q){w(E.default.bold(E.default.cyan("info")),...Array.isArray(A)?[A]:[Q,A])},warn(A,Q){w(E.default.bold(E.default.yellow("warn")),...Array.isArray(A)?[A]:[Q,A])},risk(A,Q){w(E.default.bold(E.default.magenta("risk")),...Array.isArray(A)?[A]:[Q,A])}}},95159:function(A){function Q(A,Q){var B=A.length,C=Array(B),I={},E=B,g=function(A){for(var Q=new Map,B=0,C=A.length;B{},{isPersistent:!0,removeItem:()=>{}}];let D=null==Q?void 0:Q.serializer;return function(A,Q,B=!0,D=function(A){return"undefined"===A?void 0:JSON.parse(A)},c=JSON.stringify){I.has(A)||void 0===Q||null!==w(()=>localStorage.getItem(A))||w(()=>localStorage.setItem(A,c(Q)));let M=(0,C.useRef)({item:null,parsed:Q}),s=(0,C.useSyncExternalStore)((0,C.useCallback)(Q=>{let B=B=>{A===B&&Q()};return E.add(B),()=>{E.delete(B)}},[A]),()=>{var B;let C=null!==(B=w(()=>localStorage.getItem(A)))&&void 0!==B?B:null;if(I.has(A))M.current={item:C,parsed:I.get(A)};else if(C!==M.current.item){let A;try{A=null===C?Q:D(C)}catch(B){A=Q}M.current={item:C,parsed:A}}return M.current.parsed},()=>Q),y=(0,C.useCallback)(Q=>{let B=Q instanceof Function?Q(M.current.parsed):Q;try{localStorage.setItem(A,c(B)),I.delete(A)}catch(Q){I.set(A,B)}g(A)},[A,c]);return(0,C.useEffect)(()=>{if(!B)return;let Q=Q=>{Q.storageArea===w(()=>localStorage)&&Q.key===A&&g(A)};return window.addEventListener("storage",Q),()=>window.removeEventListener("storage",Q)},[A,B]),(0,C.useMemo)(()=>[s,y,{isPersistent:s===Q||!I.has(A),removeItem(){w(()=>localStorage.removeItem(A)),I.delete(A),g(A)}}],[A,y,s,Q])}(A,B,null==Q?void 0:Q.storageSync,null==D?void 0:D.parse,null==D?void 0:D.stringify)}},20452:function(A,Q,B){"use strict";var C=B(2784),I="function"==typeof Object.is?Object.is:function(A,Q){return A===Q&&(0!==A||1/A==1/Q)||A!=A&&Q!=Q},E=C.useState,g=C.useEffect,w=C.useLayoutEffect,D=C.useDebugValue;function c(A){var Q=A.getSnapshot;A=A.value;try{var B=Q();return!I(A,B)}catch(A){return!0}}var M="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(A,Q){return Q()}:function(A,Q){var B=Q(),C=E({inst:{value:B,getSnapshot:Q}}),I=C[0].inst,M=C[1];return w(function(){I.value=B,I.getSnapshot=Q,c(I)&&M({inst:I})},[A,B,Q]),g(function(){return c(I)&&M({inst:I}),A(function(){c(I)&&M({inst:I})})},[A]),D(B),B};Q.useSyncExternalStore=void 0!==C.useSyncExternalStore?C.useSyncExternalStore:M},43100:function(A,Q,B){"use strict";A.exports=B(20452)},38268:function(A){"use strict";A.exports=function(A){A.prototype[Symbol.iterator]=function*(){for(let A=this.head;A;A=A.next)yield A.value}}},8006:function(A,Q,B){"use strict";function C(A){var Q=this;if(Q instanceof C||(Q=new C),Q.tail=null,Q.head=null,Q.length=0,A&&"function"==typeof A.forEach)A.forEach(function(A){Q.push(A)});else if(arguments.length>0)for(var B=0,I=arguments.length;B1)B=Q;else if(this.head)C=this.head.next,B=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var I=0;null!==C;I++)B=A(B,C.value,I),C=C.next;return B},C.prototype.reduceReverse=function(A,Q){var B,C=this.tail;if(arguments.length>1)B=Q;else if(this.tail)C=this.tail.prev,B=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var I=this.length-1;null!==C;I--)B=A(B,C.value,I),C=C.prev;return B},C.prototype.toArray=function(){for(var A=Array(this.length),Q=0,B=this.head;null!==B;Q++)A[Q]=B.value,B=B.next;return A},C.prototype.toArrayReverse=function(){for(var A=Array(this.length),Q=0,B=this.tail;null!==B;Q++)A[Q]=B.value,B=B.prev;return A},C.prototype.slice=function(A,Q){(Q=Q||this.length)<0&&(Q+=this.length),(A=A||0)<0&&(A+=this.length);var B=new C;if(Qthis.length&&(Q=this.length);for(var I=0,E=this.head;null!==E&&Ithis.length&&(Q=this.length);for(var I=this.length,E=this.tail;null!==E&&I>Q;I--)E=E.prev;for(;null!==E&&I>A;I--,E=E.prev)B.push(E.value);return B},C.prototype.splice=function(A,Q,...B){A>this.length&&(A=this.length-1),A<0&&(A=this.length+A);for(var C=0,E=this.head;null!==E&&C"boolean"==typeof A?"".concat(A):0===A?"0":A,I=function(){for(var A,Q,B=0,C="";BB=>{var E;if((null==Q?void 0:Q.variants)==null)return I(A,null==B?void 0:B.class,null==B?void 0:B.className);let{variants:g,defaultVariants:w}=Q,D=Object.keys(g).map(A=>{let Q=null==B?void 0:B[A],I=null==w?void 0:w[A];if(null===Q)return null;let E=C(Q)||C(I);return g[A][E]}),c=B&&Object.entries(B).reduce((A,Q)=>{let[B,C]=Q;return void 0===C||(A[B]=C),A},{});return I(A,D,null==Q?void 0:null===(E=Q.compoundVariants)||void 0===E?void 0:E.reduce((A,Q)=>{let{class:B,className:C,...I}=Q;return Object.entries(I).every(A=>{let[Q,B]=A;return Array.isArray(B)?B.includes({...w,...c}[Q]):({...w,...c})[Q]===B})?[...A,B,C]:A},[]),null==B?void 0:B.class,null==B?void 0:B.className)}},36331:function(A,Q,B){"use strict";function C(A,Q,B,C){return new(B||(B=Promise))(function(I,E){function g(A){try{D(C.next(A))}catch(A){E(A)}}function w(A){try{D(C.throw(A))}catch(A){E(A)}}function D(A){var Q;A.done?I(A.value):((Q=A.value)instanceof B?Q:new B(function(A){A(Q)})).then(g,w)}D((C=C.apply(A,Q||[])).next())})}function I(A,Q,B,C){if("a"===B&&!C)throw TypeError("Private accessor was defined without a getter");if("function"==typeof Q?A!==Q||!C:!Q.has(A))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===B?C:"a"===B?C.call(A):C?C.value:Q.get(A)}function E(A,Q,B,C,I){if("m"===C)throw TypeError("Private method is not writable");if("a"===C&&!I)throw TypeError("Private accessor was defined without a setter");if("function"==typeof Q?A!==Q||!I:!Q.has(A))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===C?I.call(A,B):I?I.value=B:Q.set(A,B),B}B.d(Q,{K:function(){return y},x:function(){return k}}),"function"==typeof SuppressedError&&SuppressedError;var g,w,D,c=B(48834).lW;class M{connect(){return C(this,void 0,void 0,function*(){try{E(this,D,new WebTransport(I(this,g,"f"),{serverCertificateHashes:I(this,w,"f")?[{algorithm:"sha-256",value:function(A){let Q=c.from(A,"base64");return Q.buffer.slice(Q.byteOffset,Q.byteOffset+Q.byteLength)}(I(this,w,"f"))}]:void 0}),"f"),yield I(this,D,"f").ready}catch(A){throw console.error("connect",A),A}})}sendRequest(A,Q,B){return C(this,void 0,void 0,function*(){let C;try{if(!(C=yield I(this,D,"f").createBidirectionalStream()))throw Error("Bidirectional stream not opened");let E=C.writable.getWriter(),{rpc:g,error:w}=Q(A);if(!g||w)throw Error(w);return yield E.write(g),yield E.close(),this.handleIncomingData(C,B)}catch(A){throw console.error("sendRequest",A),A}})}handleIncomingData(A,Q){return C(this,void 0,void 0,function*(){try{let B=A.readable.getReader(),{value:C,done:I}=yield B.read();if(I)throw Error("Stream closed by the server.");yield B.cancel();let{data:E,error:g}=Q(C);if(!E||g)throw Error(g);return E}catch(A){throw console.error("handleIncomingData",A),A}})}sendReadSectorRequest(A){return C(this,void 0,void 0,function*(){return this.sendRequest(A,s().rhp.encodeReadSectorRequest,s().rhp.decodeReadSectorResponse)})}sendWriteSectorRequest(A){return C(this,void 0,void 0,function*(){return this.sendRequest(A,s().rhp.encodeWriteSectorRequest,s().rhp.decodeWriteSectorResponse)})}sendRPCSettingsRequest(){return C(this,void 0,void 0,function*(){return this.sendRequest(void 0,s().rhp.encodeSettingsRequest,s().rhp.decodeSettingsResponse)})}constructor(A,Q){if(g.set(this,void 0),w.set(this,void 0),D.set(this,void 0),E(this,g,A,"f"),E(this,w,Q,"f"),!s())throw Error("The Sia SDK has not been initialized.");if(!("WebTransport"in window))throw Error("WebTransport is not supported in your browser.")}}function s(){return globalThis.sia}function y(){let A=s();if(void 0===A)throw Error("The Sia SDK has not been initialized");return Object.assign(Object.assign({},A),{WebTransportClient:M})}g=new WeakMap,w=new WeakMap,D=new WeakMap,(()=>{let A=()=>{let A=Error("not implemented");return A.code="ENOSYS",A};if(!globalThis.fs){let Q="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(A,C){let I=(Q+=B.decode(C)).lastIndexOf("\n");return -1!=I&&(console.log(Q.substring(0,I)),Q=Q.substring(I+1)),C.length},write(Q,B,C,I,E,g){if(0!==C||I!==B.length||null!==E){g(A());return}g(null,this.writeSync(Q,B))},chmod(Q,B,C){C(A())},chown(Q,B,C,I){I(A())},close(Q,B){B(A())},fchmod(Q,B,C){C(A())},fchown(Q,B,C,I){I(A())},fstat(Q,B){B(A())},fsync(A,Q){Q(null)},ftruncate(Q,B,C){C(A())},lchown(Q,B,C,I){I(A())},link(Q,B,C){C(A())},lstat(Q,B){B(A())},mkdir(Q,B,C){C(A())},open(Q,B,C,I){I(A())},read(Q,B,C,I,E,g){g(A())},readdir(Q,B){B(A())},readlink(Q,B){B(A())},rename(Q,B,C){C(A())},rmdir(Q,B){B(A())},stat(Q,B){B(A())},symlink(Q,B,C){C(A())},truncate(Q,B,C){C(A())},unlink(Q,B){B(A())},utimes(Q,B,C,I){I(A())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw A()},pid:-1,ppid:-1,umask(){throw A()},cwd(){throw A()},chdir(){throw A()}}),!globalThis.crypto)throw Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw Error("globalThis.TextDecoder is not available, polyfill required");let Q=new TextEncoder("utf-8"),B=new TextDecoder("utf-8");globalThis.Go=class{async run(A){if(!(A instanceof WebAssembly.Instance))throw Error("Go.run: WebAssembly.Instance expected");this._inst=A,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let B=4096,C=A=>{let C=B,I=Q.encode(A+"\0");return new Uint8Array(this.mem.buffer,B,I.length).set(I),(B+=I.length)%8!=0&&(B+=8-B%8),C},I=this.argv.length,E=[];this.argv.forEach(A=>{E.push(C(A))}),E.push(0),Object.keys(this.env).sort().forEach(A=>{E.push(C("".concat(A,"=").concat(this.env[A])))}),E.push(0);let g=B;if(E.forEach(A=>{this.mem.setUint32(B,A,!0),this.mem.setUint32(B+4,0,!0),B+=8}),B>=12288)throw Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(I,g),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(A){let Q=this;return function(){let B={id:A,this:this,args:arguments};return Q._pendingEvent=B,Q._resume(),B.result}}constructor(){this.argv=["js"],this.env={},this.exit=A=>{0!==A&&console.warn("exit code:",A)},this._exitPromise=new Promise(A=>{this._resolveExitPromise=A}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;let A=(A,Q)=>{this.mem.setUint32(A+0,Q,!0),this.mem.setUint32(A+4,Math.floor(Q/4294967296),!0)},C=A=>this.mem.getUint32(A+0,!0)+4294967296*this.mem.getInt32(A+4,!0),I=A=>{let Q=this.mem.getFloat64(A,!0);if(0===Q)return;if(!isNaN(Q))return Q;let B=this.mem.getUint32(A,!0);return this._values[B]},E=(A,Q)=>{if("number"==typeof Q&&0!==Q){if(isNaN(Q)){this.mem.setUint32(A+4,2146959360,!0),this.mem.setUint32(A,0,!0);return}this.mem.setFloat64(A,Q,!0);return}if(void 0===Q){this.mem.setFloat64(A,0,!0);return}let B=this._ids.get(Q);void 0===B&&(void 0===(B=this._idPool.pop())&&(B=this._values.length),this._values[B]=Q,this._goRefCounts[B]=0,this._ids.set(Q,B)),this._goRefCounts[B]++;let C=0;switch(typeof Q){case"object":null!==Q&&(C=1);break;case"string":C=2;break;case"symbol":C=3;break;case"function":C=4}this.mem.setUint32(A+4,2146959360|C,!0),this.mem.setUint32(A,B,!0)},g=A=>{let Q=C(A+0),B=C(A+8);return new Uint8Array(this._inst.exports.mem.buffer,Q,B)},w=A=>{let Q=C(A+0),B=C(A+8),E=Array(B);for(let A=0;A{let Q=C(A+0),I=C(A+8);return B.decode(new DataView(this._inst.exports.mem.buffer,Q,I))},c=Date.now()-performance.now();this.importObject={_gotest:{add:(A,Q)=>A+Q},gojs:{"runtime.wasmExit":A=>{A>>>=0;let Q=this.mem.getInt32(A+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(Q)},"runtime.wasmWrite":A=>{let Q=C((A>>>=0)+8),B=C(A+16),I=this.mem.getInt32(A+24,!0);fs.writeSync(Q,new Uint8Array(this._inst.exports.mem.buffer,B,I))},"runtime.resetMemoryDataView":A=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":Q=>{A((Q>>>=0)+8,(c+performance.now())*1e6)},"runtime.walltime":Q=>{Q>>>=0;let B=(new Date).getTime();A(Q+8,B/1e3),this.mem.setInt32(Q+16,B%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":A=>{A>>>=0;let Q=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(Q,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(Q);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},C(A+8))),this.mem.setInt32(A+16,Q,!0)},"runtime.clearTimeoutEvent":A=>{A>>>=0;let Q=this.mem.getInt32(A+8,!0);clearTimeout(this._scheduledTimeouts.get(Q)),this._scheduledTimeouts.delete(Q)},"runtime.getRandomData":A=>{A>>>=0,crypto.getRandomValues(g(A+8))},"syscall/js.finalizeRef":A=>{A>>>=0;let Q=this.mem.getUint32(A+8,!0);if(this._goRefCounts[Q]--,0===this._goRefCounts[Q]){let A=this._values[Q];this._values[Q]=null,this._ids.delete(A),this._idPool.push(Q)}},"syscall/js.stringVal":A=>{E((A>>>=0)+24,D(A+8))},"syscall/js.valueGet":A=>{let Q=Reflect.get(I((A>>>=0)+8),D(A+16));E((A=this._inst.exports.getsp()>>>0)+32,Q)},"syscall/js.valueSet":A=>{Reflect.set(I((A>>>=0)+8),D(A+16),I(A+32))},"syscall/js.valueDelete":A=>{Reflect.deleteProperty(I((A>>>=0)+8),D(A+16))},"syscall/js.valueIndex":A=>{E((A>>>=0)+24,Reflect.get(I(A+8),C(A+16)))},"syscall/js.valueSetIndex":A=>{Reflect.set(I((A>>>=0)+8),C(A+16),I(A+24))},"syscall/js.valueCall":A=>{A>>>=0;try{let Q=I(A+8),B=Reflect.get(Q,D(A+16)),C=w(A+32),g=Reflect.apply(B,Q,C);A=this._inst.exports.getsp()>>>0,E(A+56,g),this.mem.setUint8(A+64,1)}catch(Q){E((A=this._inst.exports.getsp()>>>0)+56,Q),this.mem.setUint8(A+64,0)}},"syscall/js.valueInvoke":A=>{A>>>=0;try{let Q=I(A+8),B=w(A+16),C=Reflect.apply(Q,void 0,B);A=this._inst.exports.getsp()>>>0,E(A+40,C),this.mem.setUint8(A+48,1)}catch(Q){E((A=this._inst.exports.getsp()>>>0)+40,Q),this.mem.setUint8(A+48,0)}},"syscall/js.valueNew":A=>{A>>>=0;try{let Q=I(A+8),B=w(A+16),C=Reflect.construct(Q,B);A=this._inst.exports.getsp()>>>0,E(A+40,C),this.mem.setUint8(A+48,1)}catch(Q){E((A=this._inst.exports.getsp()>>>0)+40,Q),this.mem.setUint8(A+48,0)}},"syscall/js.valueLength":Q=>{A((Q>>>=0)+16,parseInt(I(Q+8).length))},"syscall/js.valuePrepareString":B=>{B>>>=0;let C=Q.encode(String(I(B+8)));E(B+16,C),A(B+24,C.length)},"syscall/js.valueLoadString":A=>{let Q=I((A>>>=0)+8);g(A+16).set(Q)},"syscall/js.valueInstanceOf":A=>{A>>>=0,this.mem.setUint8(A+24,I(A+8) instanceof I(A+16)?1:0)},"syscall/js.copyBytesToGo":Q=>{let B=g((Q>>>=0)+8),C=I(Q+32);if(!(C instanceof Uint8Array||C instanceof Uint8ClampedArray)){this.mem.setUint8(Q+48,0);return}let E=C.subarray(0,B.length);B.set(E),A(Q+40,E.length),this.mem.setUint8(Q+48,1)},"syscall/js.copyBytesToJS":Q=>{let B=I((Q>>>=0)+8),C=g(Q+16);if(!(B instanceof Uint8Array||B instanceof Uint8ClampedArray)){this.mem.setUint8(Q+48,0);return}let E=C.subarray(0,B.length);B.set(E),A(Q+40,E.length),this.mem.setUint8(Q+48,1)},debug:A=>{console.log(A)}}}}}})();var n=B(93542),h=B(48834).lW;function k(){return C(this,void 0,void 0,function*(){return yield function(){return C(this,void 0,void 0,function*(){try{var A;let Q=new globalThis.Go,B=yield(A=Q.importObject,function(A,Q,B,C){var I,E,g,w=null;if(void 0!==n&&null!=n.versions&&null!=n.versions.node)w=h.from(B,"base64");else{var D=globalThis.atob(B),c=D.length;w=new Uint8Array(new ArrayBuffer(c));for(var M=0;M-1},g.prototype.set=function(A,Q){var B=this.__data__,C=I(B,A);return C<0?(++this.size,B.push([A,Q])):B[C][1]=Q,this};var w=g},51558:function(A,Q,B){"use strict";var C=B(3648),I=B(22327),E=(0,C.Z)(I.Z,"Map");Q.Z=E},28114:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return y}});var C=(0,B(3648).Z)(Object,"create"),I=Object.prototype.hasOwnProperty,E=Object.prototype.hasOwnProperty;function g(A){var Q=-1,B=null==A?0:A.length;for(this.clear();++Q-1}},20465:function(A,Q){"use strict";Q.Z=function(A,Q,B){for(var C=-1,I=null==A?0:A.length;++CM))return!1;var y=D.get(A),n=D.get(Q);if(y&&n)return y==Q&&n==A;var h=-1,k=!0,K=2&B?new I.Z:void 0;for(D.set(A,Q),D.set(Q,A);++h-1&&A%1==0&&A-1&&A%1==0&&A<=9007199254740991}},88225:function(A,Q){"use strict";Q.Z=function(A){var Q=typeof A;return null!=A&&("object"==Q||"function"==Q)}},99982:function(A,Q){"use strict";Q.Z=function(A){return null!=A&&"object"==typeof A}},81470:function(A,Q,B){"use strict";var C=B(85084),I=B(99982);Q.Z=function(A){return"symbol"==typeof A||(0,I.Z)(A)&&"[object Symbol]"==(0,C.Z)(A)}},93779:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return M}});var C=B(85084),I=B(45432),E=B(99982),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var w=B(9769),D=B(20329),c=D.Z&&D.Z.isTypedArray,M=c?(0,w.Z)(c):function(A){return(0,E.Z)(A)&&(0,I.Z)(A.length)&&!!g[(0,C.Z)(A)]}},91139:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return c}});var C=B(62212),I=B(59208),E=(0,B(35100).Z)(Object.keys,Object),g=Object.prototype.hasOwnProperty,w=function(A){if(!(0,I.Z)(A))return E(A);var Q=[];for(var B in Object(A))g.call(A,B)&&"constructor"!=B&&Q.push(B);return Q},D=B(18226),c=function(A){return(0,D.Z)(A)?(0,C.Z)(A):w(A)}},57978:function(A,Q){"use strict";Q.Z=function(){return[]}},45543:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return s}});var C=B(19678),I=B(25079),E=B(52059),g=B(81470),w=1/0,D=C.Z?C.Z.prototype:void 0,c=D?D.toString:void 0,M=function A(Q){if("string"==typeof Q)return Q;if((0,E.Z)(Q))return(0,I.Z)(Q,A)+"";if((0,g.Z)(Q))return c?c.call(Q):"";var B=Q+"";return"0"==B&&1/Q==-w?"-0":B},s=function(A){return null==A?"":M(A)}},49058:function(A,Q,B){"use strict";B.d(Q,{Z:function(){return s}});var C=B(36446),I=B(61613),E=B(20465),g=B(22407),w=B(83864),D=B(74994),c=w.Z&&1/(0,D.Z)(new w.Z([,-0]))[1]==1/0?function(A){return new w.Z(A)}:function(){},M=function(A,Q,B){var w=-1,M=I.Z,s=A.length,y=!0,n=[],h=n;if(B)y=!1,M=E.Z;else if(s>=200){var k=Q?null:c(A);if(k)return(0,D.Z)(k);y=!1,M=g.Z,h=new C.Z}else h=Q?[]:n;Q:for(;++w"checkbox"===A.type,E=A=>A instanceof Date,g=A=>null==A;let w=A=>"object"==typeof A;var D=A=>!g(A)&&!Array.isArray(A)&&w(A)&&!E(A),c=A=>D(A)&&A.target?I(A.target)?A.target.checked:A.target.value:A,M=A=>A.substring(0,A.search(/\.\d+(\.|$)/))||A,s=(A,Q)=>A.has(M(Q)),y=A=>{let Q=A.constructor&&A.constructor.prototype;return D(Q)&&Q.hasOwnProperty("isPrototypeOf")},n="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(A){let Q;let B=Array.isArray(A);if(A instanceof Date)Q=new Date(A);else if(A instanceof Set)Q=new Set(A);else if(!(!(n&&(A instanceof Blob||A instanceof FileList))&&(B||D(A))))return A;else if(Q=B?[]:{},B||y(A))for(let B in A)A.hasOwnProperty(B)&&(Q[B]=h(A[B]));else Q=A;return Q}var k=A=>Array.isArray(A)?A.filter(Boolean):[],K=A=>void 0===A,t=(A,Q,B)=>{if(!Q||!D(A))return B;let C=k(Q.split(/[,[\].]+?/)).reduce((A,Q)=>g(A)?A:A[Q],A);return K(C)||C===A?K(A[Q])?B:A[Q]:C},U=A=>"boolean"==typeof A,L=A=>/^\w*$/.test(A),i=A=>k(A.replace(/["|']|\]/g,"").split(/\.|\[/)),G=(A,Q,B)=>{let C=-1,I=L(Q)?[Q]:i(Q),E=I.length,g=E-1;for(;++C{let I={defaultValues:Q._defaultValues};for(let E in A)Object.defineProperty(I,E,{get:()=>(Q._proxyFormState[E]!==r.all&&(Q._proxyFormState[E]=!C||r.all),B&&(B[E]=!0),A[E])});return I},N=A=>D(A)&&!Object.keys(A).length,e=(A,Q,B,C)=>{B(A);let{name:I,...E}=A;return N(E)||Object.keys(E).length>=Object.keys(Q).length||Object.keys(E).find(A=>Q[A]===(!C||r.all))},J=A=>Array.isArray(A)?A:[A],S=A=>"string"==typeof A,F=(A,Q,B,C,I)=>S(A)?(C&&Q.watch.add(A),t(B,A,I)):Array.isArray(A)?A.map(A=>(C&&Q.watch.add(A),t(B,A))):(C&&(Q.watchAll=!0),B),l=(A,Q,B,C,I)=>Q?{...B[A],types:{...B[A]&&B[A].types?B[A].types:{},[C]:I||!0}}:{},Y=A=>({isOnSubmit:!A||A===r.onSubmit,isOnBlur:A===r.onBlur,isOnChange:A===r.onChange,isOnAll:A===r.all,isOnTouch:A===r.onTouched}),H=(A,Q,B)=>!B&&(Q.watchAll||Q.watch.has(A)||[...Q.watch].some(Q=>A.startsWith(Q)&&/^\.\w+/.test(A.slice(Q.length))));let f=(A,Q,B,C)=>{for(let I of B||Object.keys(A)){let B=t(A,I);if(B){let{_f:A,...E}=B;if(A){if(A.refs&&A.refs[0]&&Q(A.refs[0],I)&&!C||A.ref&&Q(A.ref,A.name)&&!C)break;f(E,Q)}else D(E)&&f(E,Q)}}};var d=(A,Q,B)=>{let C=k(t(A,B));return G(C,"root",Q[B]),G(A,B,C),A},u=A=>"file"===A.type,R=A=>"function"==typeof A,j=A=>{if(!n)return!1;let Q=A?A.ownerDocument:0;return A instanceof(Q&&Q.defaultView?Q.defaultView.HTMLElement:HTMLElement)},b=A=>S(A),m=A=>"radio"===A.type,Z=A=>A instanceof RegExp;let T={value:!1,isValid:!1},P={value:!0,isValid:!0};var O=A=>{if(Array.isArray(A)){if(A.length>1){let Q=A.filter(A=>A&&A.checked&&!A.disabled).map(A=>A.value);return{value:Q,isValid:!!Q.length}}return A[0].checked&&!A[0].disabled?A[0].attributes&&!K(A[0].attributes.value)?K(A[0].value)||""===A[0].value?P:{value:A[0].value,isValid:!0}:P:T}return T};let W={isValid:!1,value:null};var z=A=>Array.isArray(A)?A.reduce((A,Q)=>Q&&Q.checked&&!Q.disabled?{isValid:!0,value:Q.value}:A,W):W;function x(A,Q,B="validate"){if(b(A)||Array.isArray(A)&&A.every(b)||U(A)&&!A)return{type:B,message:b(A)?A:"",ref:Q}}var V=A=>D(A)&&!Z(A)?A:{value:A,message:""},v=async(A,Q,B,C,E)=>{let{ref:w,refs:c,required:M,maxLength:s,minLength:y,min:n,max:h,pattern:k,validate:L,name:i,valueAsNumber:G,mount:p,disabled:r}=A._f,o=t(Q,i);if(!p||r)return{};let e=c?c[0]:w,J=A=>{C&&e.reportValidity&&(e.setCustomValidity(U(A)?"":A||""),e.reportValidity())},F={},Y=m(w),H=I(w),f=(G||u(w))&&K(w.value)&&K(o)||j(w)&&""===w.value||""===o||Array.isArray(o)&&!o.length,d=l.bind(null,i,B,F),T=(A,Q,B,C=a.maxLength,I=a.minLength)=>{let E=A?Q:B;F[i]={type:A?C:I,message:E,ref:w,...d(A?C:I,E)}};if(E?!Array.isArray(o)||!o.length:M&&(!(Y||H)&&(f||g(o))||U(o)&&!o||H&&!O(c).isValid||Y&&!z(c).isValid)){let{value:A,message:Q}=b(M)?{value:!!M,message:M}:V(M);if(A&&(F[i]={type:a.required,message:Q,ref:e,...d(a.required,Q)},!B))return J(Q),F}if(!f&&(!g(n)||!g(h))){let A,Q;let C=V(h),I=V(n);if(g(o)||isNaN(o)){let B=w.valueAsDate||new Date(o),E=A=>new Date(new Date().toDateString()+" "+A),g="time"==w.type,D="week"==w.type;S(C.value)&&o&&(A=g?E(o)>E(C.value):D?o>C.value:B>new Date(C.value)),S(I.value)&&o&&(Q=g?E(o)C.value),g(I.value)||(Q=B+A.value,I=!g(Q.value)&&o.length<+Q.value;if((C||I)&&(T(C,A.message,Q.message),!B))return J(F[i].message),F}if(k&&!f&&S(o)){let{value:A,message:Q}=V(k);if(Z(A)&&!o.match(A)&&(F[i]={type:a.pattern,message:Q,ref:w,...d(a.pattern,Q)},!B))return J(Q),F}if(L){if(R(L)){let A=x(await L(o,Q),e);if(A&&(F[i]={...A,...d(a.validate,A.message)},!B))return J(A.message),F}else if(D(L)){let A={};for(let C in L){if(!N(A)&&!B)break;let I=x(await L[C](o,Q),e,C);I&&(A={...I,...d(C,I.message)},J(I.message),B&&(F[i]=A))}if(!N(A)&&(F[i]={ref:e,...A},!B))return F}}return J(!0),F};function X(A,Q){let B=Array.isArray(Q)?Q:L(Q)?[Q]:i(Q),C=1===B.length?A:function(A,Q){let B=Q.slice(0,-1).length,C=0;for(;C{let A=[];return{get observers(){return A},next:Q=>{for(let B of A)B.next&&B.next(Q)},subscribe:Q=>(A.push(Q),{unsubscribe:()=>{A=A.filter(A=>A!==Q)}}),unsubscribe:()=>{A=[]}}},_=A=>g(A)||!w(A);function $(A,Q){if(_(A)||_(Q))return A===Q;if(E(A)&&E(Q))return A.getTime()===Q.getTime();let B=Object.keys(A),C=Object.keys(Q);if(B.length!==C.length)return!1;for(let I of B){let B=A[I];if(!C.includes(I))return!1;if("ref"!==I){let A=Q[I];if(E(B)&&E(A)||D(B)&&D(A)||Array.isArray(B)&&Array.isArray(A)?!$(B,A):B!==A)return!1}}return!0}var AA=A=>"select-multiple"===A.type,AQ=A=>m(A)||I(A),AB=A=>j(A)&&A.isConnected,AC=A=>{for(let Q in A)if(R(A[Q]))return!0;return!1};function AI(A,Q={}){let B=Array.isArray(A);if(D(A)||B)for(let B in A)Array.isArray(A[B])||D(A[B])&&!AC(A[B])?(Q[B]=Array.isArray(A[B])?[]:{},AI(A[B],Q[B])):g(A[B])||(Q[B]=!0);return Q}var AE=(A,Q)=>(function A(Q,B,C){let I=Array.isArray(Q);if(D(Q)||I)for(let I in Q)Array.isArray(Q[I])||D(Q[I])&&!AC(Q[I])?K(B)||_(C[I])?C[I]=Array.isArray(Q[I])?AI(Q[I],[]):{...AI(Q[I])}:A(Q[I],g(B)?{}:B[I],C[I]):C[I]=!$(Q[I],B[I]);return C})(A,Q,AI(Q)),Ag=(A,{valueAsNumber:Q,valueAsDate:B,setValueAs:C})=>K(A)?A:Q?""===A?NaN:A?+A:A:B&&S(A)?new Date(A):C?C(A):A;function Aw(A){let Q=A.ref;return(A.refs?A.refs.every(A=>A.disabled):Q.disabled)?void 0:u(Q)?Q.files:m(Q)?z(A.refs).value:AA(Q)?[...Q.selectedOptions].map(({value:A})=>A):I(Q)?O(A.refs).value:Ag(K(Q.value)?A.ref.value:Q.value,A)}var AD=(A,Q,B,C)=>{let I={};for(let B of A){let A=t(Q,B);A&&G(I,B,A._f)}return{criteriaMode:B,names:[...A],fields:I,shouldUseNativeValidation:C}},Ac=A=>K(A)?A:Z(A)?A.source:D(A)?Z(A.value)?A.value.source:A.value:A,AM=A=>A.mount&&(A.required||A.min||A.max||A.maxLength||A.minLength||A.pattern||A.validate);function As(A,Q,B){let C=t(A,B);if(C||L(B))return{error:C,name:B};let I=B.split(".");for(;I.length;){let C=I.join("."),E=t(Q,C),g=t(A,C);if(E&&!Array.isArray(E)&&B!==C)break;if(g&&g.type)return{name:C,error:g};I.pop()}return{name:B}}var Ay=(A,Q,B,C,I)=>!I.isOnAll&&(!B&&I.isOnTouch?!(Q||A):(B?C.isOnBlur:I.isOnBlur)?!A:(B?!C.isOnChange:!I.isOnChange)||A),An=(A,Q)=>!k(t(A,Q)).length&&X(A,Q);let Ah={mode:r.onSubmit,reValidateMode:r.onChange,shouldFocusError:!0};function Ak(A={}){let Q=C.useRef(),B=C.useRef(),[w,M]=C.useState({isDirty:!1,isValidating:!1,isLoading:R(A.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:A.errors||{},disabled:A.disabled||!1,defaultValues:R(A.defaultValues)?void 0:A.defaultValues});Q.current||(Q.current={...function(A={}){let Q,B={...Ah,...A},C={submitCount:0,isDirty:!1,isLoading:R(B.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:B.errors||{},disabled:B.disabled||!1},w={},M=(D(B.defaultValues)||D(B.values))&&h(B.defaultValues||B.values)||{},y=B.shouldUnregister?{}:h(M),L={action:!1,mount:!1,watch:!1},i={mount:new Set,unMount:new Set,array:new Set,watch:new Set},a=0,o={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},e={values:q(),array:q(),state:q()},l=Y(B.mode),b=Y(B.reValidateMode),m=B.criteriaMode===r.all,Z=A=>Q=>{clearTimeout(a),a=setTimeout(A,Q)},T=async A=>{if(o.isValid||A){let A=B.resolver?N((await V()).errors):await AI(w,!0);A!==C.isValid&&e.state.next({isValid:A})}},P=(A,Q)=>{(o.isValidating||o.validatingFields)&&((A||Array.from(i.mount)).forEach(A=>{A&&(Q?G(C.validatingFields,A,Q):X(C.validatingFields,A))}),e.state.next({validatingFields:C.validatingFields,isValidating:!N(C.validatingFields)}))},O=(A,Q)=>{G(C.errors,A,Q),e.state.next({errors:C.errors})},W=(A,Q,B,C)=>{let I=t(w,A);if(I){let E=t(y,A,K(B)?t(M,A):B);K(E)||C&&C.defaultChecked||Q?G(y,A,Q?E:Aw(I._f)):At(A,E),L.mount&&T()}},z=(A,Q,B,I,E)=>{let g=!1,D=!1,c={name:A},s=!!(t(w,A)&&t(w,A)._f&&t(w,A)._f.disabled);if(!B||I){o.isDirty&&(D=C.isDirty,C.isDirty=c.isDirty=Ak(),g=D!==c.isDirty);let B=s||$(t(M,A),Q);D=!!(!s&&t(C.dirtyFields,A)),B||s?X(C.dirtyFields,A):G(C.dirtyFields,A,!0),c.dirtyFields=C.dirtyFields,g=g||o.dirtyFields&&!B!==D}if(B){let Q=t(C.touchedFields,A);Q||(G(C.touchedFields,A,B),c.touchedFields=C.touchedFields,g=g||o.touchedFields&&Q!==B)}return g&&E&&e.state.next(c),g?c:{}},x=(B,I,E,g)=>{let w=t(C.errors,B),D=o.isValid&&U(I)&&C.isValid!==I;if(A.delayError&&E?(Q=Z(()=>O(B,E)))(A.delayError):(clearTimeout(a),Q=null,E?G(C.errors,B,E):X(C.errors,B)),(E?!$(w,E):w)||!N(g)||D){let A={...g,...D&&U(I)?{isValid:I}:{},errors:C.errors,name:B};C={...C,...A},e.state.next(A)}},V=async A=>{P(A,!0);let Q=await B.resolver(y,B.context,AD(A||i.mount,w,B.criteriaMode,B.shouldUseNativeValidation));return P(A),Q},AC=async A=>{let{errors:Q}=await V(A);if(A)for(let B of A){let A=t(Q,B);A?G(C.errors,B,A):X(C.errors,B)}else C.errors=Q;return Q},AI=async(A,Q,I={valid:!0})=>{for(let E in A){let g=A[E];if(g){let{_f:A,...w}=g;if(A){let w=i.array.has(A.name);P([E],!0);let D=await v(g,y,m,B.shouldUseNativeValidation&&!Q,w);if(P([E]),D[A.name]&&(I.valid=!1,Q))break;Q||(t(D,A.name)?w?d(C.errors,D,A.name):G(C.errors,A.name,D[A.name]):X(C.errors,A.name))}w&&await AI(w,Q,I)}}return I.valid},Ak=(A,Q)=>(A&&Q&&G(y,A,Q),!$(Ar(),M)),AK=(A,Q,B)=>F(A,i,{...L.mount?y:K(Q)?M:S(A)?{[A]:Q}:Q},B,Q),At=(A,Q,B={})=>{let C=t(w,A),E=Q;if(C){let B=C._f;B&&(B.disabled||G(y,A,Ag(Q,B)),E=j(B.ref)&&g(Q)?"":Q,AA(B.ref)?[...B.ref.options].forEach(A=>A.selected=E.includes(A.value)):B.refs?I(B.ref)?B.refs.length>1?B.refs.forEach(A=>(!A.defaultChecked||!A.disabled)&&(A.checked=Array.isArray(E)?!!E.find(Q=>Q===A.value):E===A.value)):B.refs[0]&&(B.refs[0].checked=!!E):B.refs.forEach(A=>A.checked=A.value===E):u(B.ref)?B.ref.value="":(B.ref.value=E,B.ref.type||e.values.next({name:A,values:{...y}})))}(B.shouldDirty||B.shouldTouch)&&z(A,E,B.shouldTouch,B.shouldDirty,!0),B.shouldValidate&&Ap(A)},AU=(A,Q,B)=>{for(let C in Q){let I=Q[C],g=`${A}.${C}`,D=t(w,g);!i.array.has(A)&&_(I)&&(!D||D._f)||E(I)?At(g,I,B):AU(g,I,B)}},AL=(A,Q,B={})=>{let I=t(w,A),E=i.array.has(A),D=h(Q);G(y,A,D),E?(e.array.next({name:A,values:{...y}}),(o.isDirty||o.dirtyFields)&&B.shouldDirty&&e.state.next({name:A,dirtyFields:AE(M,y),isDirty:Ak(A,D)})):!I||I._f||g(D)?At(A,D,B):AU(A,D,B),H(A,i)&&e.state.next({...C}),e.values.next({name:L.mount?A:void 0,values:{...y}})},Ai=async A=>{L.mount=!0;let I=A.target,E=I.name,g=!0,D=t(w,E),M=A=>{g=Number.isNaN(A)||A===t(y,E,A)};if(D){let s,n;let h=I.type?Aw(D._f):c(A),k=A.type===p.BLUR||A.type===p.FOCUS_OUT,K=!AM(D._f)&&!B.resolver&&!t(C.errors,E)&&!D._f.deps||Ay(k,t(C.touchedFields,E),C.isSubmitted,b,l),U=H(E,i,k);G(y,E,h),k?(D._f.onBlur&&D._f.onBlur(A),Q&&Q(0)):D._f.onChange&&D._f.onChange(A);let L=z(E,h,k,!1),r=!N(L)||U;if(k||e.values.next({name:E,type:A.type,values:{...y}}),K)return o.isValid&&T(),r&&e.state.next({name:E,...U?{}:L});if(!k&&U&&e.state.next({...C}),B.resolver){let{errors:A}=await V([E]);if(M(h),g){let Q=As(C.errors,w,E),B=As(A,w,Q.name||E);s=B.error,E=B.name,n=N(A)}}else P([E],!0),s=(await v(D,y,m,B.shouldUseNativeValidation))[E],P([E]),M(h),g&&(s?n=!1:o.isValid&&(n=await AI(w,!0)));g&&(D._f.deps&&Ap(D._f.deps),x(E,n,s,L))}},AG=(A,Q)=>{if(t(C.errors,Q)&&A.focus)return A.focus(),1},Ap=async(A,Q={})=>{let I,E;let g=J(A);if(B.resolver){let Q=await AC(K(A)?A:g);I=N(Q),E=A?!g.some(A=>t(Q,A)):I}else A?((E=(await Promise.all(g.map(async A=>{let Q=t(w,A);return await AI(Q&&Q._f?{[A]:Q}:Q)}))).every(Boolean))||C.isValid)&&T():E=I=await AI(w);return e.state.next({...!S(A)||o.isValid&&I!==C.isValid?{}:{name:A},...B.resolver||!A?{isValid:I}:{},errors:C.errors}),Q.shouldFocus&&!E&&f(w,AG,A?g:i.mount),E},Ar=A=>{let Q={...L.mount?y:M};return K(A)?Q:S(A)?t(Q,A):A.map(A=>t(Q,A))},Aa=(A,Q)=>({invalid:!!t((Q||C).errors,A),isDirty:!!t((Q||C).dirtyFields,A),error:t((Q||C).errors,A),isValidating:!!t(C.validatingFields,A),isTouched:!!t((Q||C).touchedFields,A)}),Ao=(A,Q,B)=>{let I=(t(w,A,{_f:{}})._f||{}).ref,{ref:E,message:g,type:D,...c}=t(C.errors,A)||{};G(C.errors,A,{...c,...Q,ref:I}),e.state.next({name:A,errors:C.errors,isValid:!1}),B&&B.shouldFocus&&I&&I.focus&&I.focus()},AN=(A,Q={})=>{for(let I of A?J(A):i.mount)i.mount.delete(I),i.array.delete(I),Q.keepValue||(X(w,I),X(y,I)),Q.keepError||X(C.errors,I),Q.keepDirty||X(C.dirtyFields,I),Q.keepTouched||X(C.touchedFields,I),Q.keepIsValidating||X(C.validatingFields,I),B.shouldUnregister||Q.keepDefaultValue||X(M,I);e.values.next({values:{...y}}),e.state.next({...C,...Q.keepDirty?{isDirty:Ak()}:{}}),Q.keepIsValid||T()},Ae=({disabled:A,name:Q,field:B,fields:C,value:I})=>{if(U(A)&&L.mount||A){let E=A?void 0:K(I)?Aw(B?B._f:t(C,Q)._f):I;G(y,Q,E),z(Q,E,!1,!1,!0)}},AJ=(A,Q={})=>{let C=t(w,A),I=U(Q.disabled);return G(w,A,{...C||{},_f:{...C&&C._f?C._f:{ref:{name:A}},name:A,mount:!0,...Q}}),i.mount.add(A),C?Ae({field:C,disabled:Q.disabled,name:A,value:Q.value}):W(A,!0,Q.value),{...I?{disabled:Q.disabled}:{},...B.progressive?{required:!!Q.required,min:Ac(Q.min),max:Ac(Q.max),minLength:Ac(Q.minLength),maxLength:Ac(Q.maxLength),pattern:Ac(Q.pattern)}:{},name:A,onChange:Ai,onBlur:Ai,ref:I=>{if(I){AJ(A,Q),C=t(w,A);let B=K(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,E=AQ(B),g=C._f.refs||[];(E?g.find(A=>A===B):B===C._f.ref)||(G(w,A,{_f:{...C._f,...E?{refs:[...g.filter(AB),B,...Array.isArray(t(M,A))?[{}]:[]],ref:{type:B.type,name:A}}:{ref:B}}}),W(A,!1,void 0,B))}else(C=t(w,A,{}))._f&&(C._f.mount=!1),(B.shouldUnregister||Q.shouldUnregister)&&!(s(i.array,A)&&L.action)&&i.unMount.add(A)}}},AS=()=>B.shouldFocusError&&f(w,AG,i.mount),AF=(A,Q)=>async I=>{let E;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let g=h(y);if(e.state.next({isSubmitting:!0}),B.resolver){let{errors:A,values:Q}=await V();C.errors=A,g=Q}else await AI(w);if(X(C.errors,"root"),N(C.errors)){e.state.next({errors:{}});try{await A(g,I)}catch(A){E=A}}else Q&&await Q({...C.errors},I),AS(),setTimeout(AS);if(e.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(C.errors)&&!E,submitCount:C.submitCount+1,errors:C.errors}),E)throw E},Al=(Q,B={})=>{let I=Q?h(Q):M,E=h(I),g=N(Q),D=g?M:E;if(B.keepDefaultValues||(M=I),!B.keepValues){if(B.keepDirtyValues)for(let A of i.mount)t(C.dirtyFields,A)?G(D,A,t(y,A)):AL(A,t(D,A));else{if(n&&K(Q))for(let A of i.mount){let Q=t(w,A);if(Q&&Q._f){let A=Array.isArray(Q._f.refs)?Q._f.refs[0]:Q._f.ref;if(j(A)){let Q=A.closest("form");if(Q){Q.reset();break}}}}w={}}y=A.shouldUnregister?B.keepDefaultValues?h(M):{}:h(D),e.array.next({values:{...D}}),e.values.next({values:{...D}})}i={mount:B.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},L.mount=!o.isValid||!!B.keepIsValid||!!B.keepDirtyValues,L.watch=!!A.shouldUnregister,e.state.next({submitCount:B.keepSubmitCount?C.submitCount:0,isDirty:!g&&(B.keepDirty?C.isDirty:!!(B.keepDefaultValues&&!$(Q,M))),isSubmitted:!!B.keepIsSubmitted&&C.isSubmitted,dirtyFields:g?[]:B.keepDirtyValues?B.keepDefaultValues&&y?AE(M,y):C.dirtyFields:B.keepDefaultValues&&Q?AE(M,Q):B.keepDirty?C.dirtyFields:{},touchedFields:B.keepTouched?C.touchedFields:{},errors:B.keepErrors?C.errors:{},isSubmitSuccessful:!!B.keepIsSubmitSuccessful&&C.isSubmitSuccessful,isSubmitting:!1})},AY=(A,Q)=>Al(R(A)?A(y):A,Q);return{control:{register:AJ,unregister:AN,getFieldState:Aa,handleSubmit:AF,setError:Ao,_executeSchema:V,_getWatch:AK,_getDirty:Ak,_updateValid:T,_removeUnmounted:()=>{for(let A of i.unMount){let Q=t(w,A);Q&&(Q._f.refs?Q._f.refs.every(A=>!AB(A)):!AB(Q._f.ref))&&AN(A)}i.unMount=new Set},_updateFieldArray:(A,Q=[],B,I,E=!0,g=!0)=>{if(I&&B){if(L.action=!0,g&&Array.isArray(t(w,A))){let Q=B(t(w,A),I.argA,I.argB);E&&G(w,A,Q)}if(g&&Array.isArray(t(C.errors,A))){let Q=B(t(C.errors,A),I.argA,I.argB);E&&G(C.errors,A,Q),An(C.errors,A)}if(o.touchedFields&&g&&Array.isArray(t(C.touchedFields,A))){let Q=B(t(C.touchedFields,A),I.argA,I.argB);E&&G(C.touchedFields,A,Q)}o.dirtyFields&&(C.dirtyFields=AE(M,y)),e.state.next({name:A,isDirty:Ak(A,Q),dirtyFields:C.dirtyFields,errors:C.errors,isValid:C.isValid})}else G(y,A,Q)},_updateDisabledField:Ae,_getFieldArray:Q=>k(t(L.mount?y:M,Q,A.shouldUnregister?t(M,Q,[]):[])),_reset:Al,_resetDefaultValues:()=>R(B.defaultValues)&&B.defaultValues().then(A=>{AY(A,B.resetOptions),e.state.next({isLoading:!1})}),_updateFormState:A=>{C={...C,...A}},_disableForm:A=>{U(A)&&(e.state.next({disabled:A}),f(w,(Q,B)=>{let C=t(w,B);C&&(Q.disabled=C._f.disabled||A,Array.isArray(C._f.refs)&&C._f.refs.forEach(Q=>{Q.disabled=C._f.disabled||A}))},0,!1))},_subjects:e,_proxyFormState:o,_setErrors:A=>{C.errors=A,e.state.next({errors:C.errors,isValid:!1})},get _fields(){return w},get _formValues(){return y},get _state(){return L},set _state(value){L=value},get _defaultValues(){return M},get _names(){return i},set _names(value){i=value},get _formState(){return C},set _formState(value){C=value},get _options(){return B},set _options(value){B={...B,...value}}},trigger:Ap,register:AJ,handleSubmit:AF,watch:(A,Q)=>R(A)?e.values.subscribe({next:B=>A(AK(void 0,Q),B)}):AK(A,Q,!0),setValue:AL,getValues:Ar,reset:AY,resetField:(A,Q={})=>{t(w,A)&&(K(Q.defaultValue)?AL(A,h(t(M,A))):(AL(A,Q.defaultValue),G(M,A,h(Q.defaultValue))),Q.keepTouched||X(C.touchedFields,A),Q.keepDirty||(X(C.dirtyFields,A),C.isDirty=Q.defaultValue?Ak(A,h(t(M,A))):Ak()),!Q.keepError&&(X(C.errors,A),o.isValid&&T()),e.state.next({...C}))},clearErrors:A=>{A&&J(A).forEach(A=>X(C.errors,A)),e.state.next({errors:A?C.errors:{}})},unregister:AN,setError:Ao,setFocus:(A,Q={})=>{let B=t(w,A),C=B&&B._f;if(C){let A=C.refs?C.refs[0]:C.ref;A.focus&&(A.focus(),Q.shouldSelect&&A.select())}},getFieldState:Aa}}(A),formState:w});let y=Q.current.control;return y._options=A,!function(A){let Q=C.useRef(A);Q.current=A,C.useEffect(()=>{let B=!A.disabled&&Q.current.subject&&Q.current.subject.subscribe({next:Q.current.next});return()=>{B&&B.unsubscribe()}},[A.disabled])}({subject:y._subjects.state,next:A=>{e(A,y._proxyFormState,y._updateFormState,!0)&&M({...y._formState})}}),C.useEffect(()=>y._disableForm(A.disabled),[y,A.disabled]),C.useEffect(()=>{if(y._proxyFormState.isDirty){let A=y._getDirty();A!==w.isDirty&&y._subjects.state.next({isDirty:A})}},[y,w.isDirty]),C.useEffect(()=>{A.values&&!$(A.values,B.current)?(y._reset(A.values,y._options.resetOptions),B.current=A.values,M(A=>({...A}))):y._resetDefaultValues()},[A.values,y]),C.useEffect(()=>{A.errors&&y._setErrors(A.errors)},[A.errors,y]),C.useEffect(()=>{y._state.mount||(y._updateValid(),y._state.mount=!0),y._state.watch&&(y._state.watch=!1,y._subjects.state.next({...y._formState})),y._removeUnmounted()}),C.useEffect(()=>{A.shouldUnregister&&y._subjects.values.next({values:y._getWatch()})},[A.shouldUnregister,y]),Q.current.formState=o(w,y),Q.current}},79381:function(A,Q,B){"use strict";let C;B.d(Q,{J$:function(){return _},ZP:function(){return $},JG:function(){return Z},kY:function(){return V}});var I=B(2784),E=B(43100);let g=new WeakMap,w={},D={},c=()=>{},M=c(),s=Object,y=A=>A===M,n=A=>"function"==typeof A,h=(A,Q)=>({...A,...Q}),k="undefined",K=typeof window!=k,t=typeof document!=k,U=()=>K&&typeof window.requestAnimationFrame!=k,L=(A,Q)=>{let B=g.get(A);return[()=>A.get(Q)||w,C=>{if(!y(Q)){let I=A.get(Q);Q in D||(D[Q]=I),B[5](Q,h(I,C),I||w)}},B[6],()=>!y(Q)&&Q in D?D[Q]:A.get(Q)||w]},i=new WeakMap,G=0,p=A=>{let Q,B;let C=typeof A,I=A&&A.constructor,E=I==Date;if(s(A)!==A||E||I==RegExp)Q=E?A.toJSON():"symbol"==C?A.toString():"string"==C?JSON.stringify(A):""+A;else{if(Q=i.get(A))return Q;if(Q=++G+"~",i.set(A,Q),I==Array){for(B=0,Q="@";B(t&&document.addEventListener("visibilitychange",A),a("focus",A),()=>{t&&document.removeEventListener("visibilitychange",A),o("focus",A)}),initReconnect:A=>{let Q=()=>{r=!0,A()},B=()=>{r=!1};return a("online",Q),a("offline",B),()=>{o("online",Q),o("offline",B)}}},e=!I.useId,J=!K||"Deno"in window,S=A=>U()?window.requestAnimationFrame(A):setTimeout(A,1),F=J?I.useEffect:I.useLayoutEffect,l="undefined"!=typeof navigator&&navigator.connection,Y=!J&&l&&(["slow-2g","2g"].includes(l.effectiveType)||l.saveData),H=A=>{if(n(A))try{A=A()}catch(Q){A=""}let Q=A;return[A="string"==typeof A?A:(Array.isArray(A)?A.length:A)?p(A):"",Q]},f=0,d=()=>++f;var u={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function R(...A){let[Q,B,C,I]=A,E=h({populateCache:!0,throwOnError:!0},"boolean"==typeof I?{revalidate:I}:I||{}),w=E.populateCache,D=E.rollbackOnError,c=E.optimisticData,s=!1!==E.revalidate,k=A=>"function"==typeof D?D(A):!1!==D,K=E.throwOnError;if(n(B)){let A=[],C=Q.keys();for(let I=C.next();!I.done;I=C.next()){let C=I.value;!/^\$(inf|sub)\$/.test(C)&&B(Q.get(C)._k)&&A.push(C)}return Promise.all(A.map(t))}return t(B);async function t(B){let I;let[E]=H(B);if(!E)return;let[D,h]=L(Q,E),[t,U,i]=g.get(Q),G=t[E],p=()=>s&&(delete i[E],G&&G[0])?G[0](2).then(()=>D().data):D().data;if(A.length<3)return p();let r=C,a=d();U[E]=[a,0];let o=!y(c),N=D(),e=N.data,J=N._c,S=y(J)?e:J;if(o&&h({data:c=n(c)?c(S):c,_c:S}),n(r))try{r=r(S)}catch(A){I=A}if(r&&n(r.then)){if(r=await r.catch(A=>{I=A}),a!==U[E][0]){if(I)throw I;return r}I&&o&&k(I)&&(w=!0,h({data:r=S,_c:M}))}w&&!I&&(n(w)&&(r=w(r,S)),h({data:r,_c:M})),U[E][1]=d();let F=await p();if(h({_c:M}),I){if(K)throw I;return}return w?F:r}}let j=(A,Q)=>{for(let B in A)A[B][0]&&A[B][0](Q)},b=(A,Q)=>{if(!g.has(A)){let B=h(N,Q),C={},I=R.bind(M,A),E=c,w={},D=(A,Q)=>{let B=w[A]||[];return w[A]=B,B.push(Q),()=>B.splice(B.indexOf(Q),1)},s=(Q,B,C)=>{A.set(Q,B);let I=w[Q];if(I)for(let A of I)A(B,C)},y=()=>{if(!g.has(A)&&(g.set(A,[C,{},{},{},I,s,D]),!J)){let Q=B.initFocus(setTimeout.bind(M,j.bind(M,C,0))),I=B.initReconnect(setTimeout.bind(M,j.bind(M,C,1)));E=()=>{Q&&Q(),I&&I(),g.delete(A)}}};return y(),[A,I,y,E]}return[A,g.get(A)[4]]},[m,Z]=b(new Map),T=h({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(A,Q,B,C,I)=>{let E=B.errorRetryCount,g=I.retryCount,w=~~((Math.random()+.5)*(1<<(g<8?g:8)))*B.errorRetryInterval;(y(E)||!(g>E))&&setTimeout(C,w,I)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Y?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Y?5e3:3e3,compare:(A,Q)=>p(A)==p(Q),isPaused:()=>!1,cache:m,mutate:Z,fallback:{}},{isOnline:()=>r,isVisible:()=>{let A=t&&document.visibilityState;return y(A)||"hidden"!==A}}),P=(A,Q)=>{let B=h(A,Q);if(Q){let{use:C,fallback:I}=A,{use:E,fallback:g}=Q;C&&E&&(B.use=C.concat(E)),I&&g&&(B.fallback=h(I,g))}return B},O=(0,I.createContext)({}),W=K&&window.__SWR_DEVTOOLS_USE__,z=W?window.__SWR_DEVTOOLS_USE__:[],x=A=>n(A[1])?[A[0],A[1],A[2]||{}]:[A[0],null,(null===A[1]?A[2]:A[1])||{}],V=()=>h(T,(0,I.useContext)(O)),v=z.concat(A=>(Q,B,C)=>{let I=B&&((...A)=>{let C=H(Q)[0],[,,,I]=g.get(m),E=I[C];return E?(delete I[C],E):B(...A)});return A(Q,I,C)}),X=(A,Q,B)=>{let C=Q[A]||(Q[A]=[]);return C.push(B),()=>{let A=C.indexOf(B);A>=0&&(C[A]=C[C.length-1],C.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=I);let q={dedupe:!0},_=s.defineProperty(A=>{let{value:Q}=A,B=(0,I.useContext)(O),C=n(Q),E=(0,I.useMemo)(()=>C?Q(B):Q,[C,B,Q]),g=(0,I.useMemo)(()=>C?E:P(B,E),[C,B,E]),w=E&&E.provider,D=(0,I.useRef)(M);w&&!D.current&&(D.current=b(w(g.cache||m),E));let c=D.current;return c&&(g.cache=c[0],g.mutate=c[1]),F(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,I.createElement)(O.Provider,h(A,{value:g}))},"defaultValue",{value:T});var $=(C=(A,Q,B)=>{let{cache:C,compare:w,suspense:D,fallbackData:c,revalidateOnMount:s,revalidateIfStale:k,refreshInterval:K,refreshWhenHidden:t,refreshWhenOffline:U,keepPreviousData:i}=B,[G,p,r]=g.get(C),[a,o]=H(A),N=(0,I.useRef)(!1),l=(0,I.useRef)(!1),Y=(0,I.useRef)(a),f=(0,I.useRef)(Q),j=(0,I.useRef)(B),b=()=>j.current,m=()=>b().isVisible()&&b().isOnline(),[Z,T,P,O]=L(C,a),W=(0,I.useRef)({}).current,z=y(c)?B.fallback[a]:c,x=(A,Q)=>{let B=!0;for(let C in W)"data"===C?w(Q[C],A[C])||y(A[C])&&w(Q[C],AI)||(B=!1):Q[C]!==A[C]&&(B=!1);return B},V=(0,I.useMemo)(()=>{let A=!!a&&!!Q&&(y(s)?!b().isPaused()&&!D&&(!!y(k)||k):s),B=Q=>{let B=h(Q);return(delete B._k,A)?{isValidating:!0,isLoading:!0,...B}:B},C=Z(),I=O(),E=B(C),g=C===I?E:B(I),w=E;return[()=>{let A=B(Z());return x(A,w)?w:w=A},()=>g]},[C,a]),v=(0,E.useSyncExternalStore)((0,I.useCallback)(A=>P(a,(Q,B)=>{x(B,Q)||A()}),[C,a]),V[0],V[1]),_=!N.current,$=G[a]&&G[a].length>0,AA=v.data,AQ=y(AA)?z:AA,AB=v.error,AC=(0,I.useRef)(AQ),AI=i?y(AA)?AC.current:AA:AQ,AE=(!$||!!y(AB))&&(_&&!y(s)?s:!b().isPaused()&&(D?!y(AQ)&&k:y(AQ)||k)),Ag=!!(a&&Q&&_&&AE),Aw=y(v.isValidating)?Ag:v.isValidating,AD=y(v.isLoading)?Ag:v.isLoading,Ac=(0,I.useCallback)(async A=>{let Q,C;let I=f.current;if(!a||!I||l.current||b().isPaused())return!1;let E=!0,g=A||{},D=!r[a]||!g.dedupe,c=()=>e?!l.current&&a===Y.current&&N.current:a===Y.current,s={isValidating:!1,isLoading:!1},h=()=>{T(s)},k=()=>{let A=r[a];A&&A[1]===C&&delete r[a]},K={isValidating:!0};y(Z().data)&&(K.isLoading=!0);try{if(D&&(T(K),B.loadingTimeout&&y(Z().data)&&setTimeout(()=>{E&&c()&&b().onLoadingSlow(a,B)},B.loadingTimeout),r[a]=[I(o),d()]),[Q,C]=r[a],Q=await Q,D&&setTimeout(k,B.dedupingInterval),!r[a]||r[a][1]!==C)return D&&c()&&b().onDiscarded(a),!1;s.error=M;let A=p[a];if(!y(A)&&(C<=A[0]||C<=A[1]||0===A[1]))return h(),D&&c()&&b().onDiscarded(a),!1;let g=Z().data;s.data=w(g,Q)?g:Q,D&&c()&&b().onSuccess(Q,a,B)}catch(B){k();let A=b(),{shouldRetryOnError:Q}=A;!A.isPaused()&&(s.error=B,D&&c()&&(A.onError(B,a,A),(!0===Q||n(Q)&&Q(B))&&m()&&A.onErrorRetry(B,a,A,A=>{let Q=G[a];Q&&Q[0]&&Q[0](u.ERROR_REVALIDATE_EVENT,A)},{retryCount:(g.retryCount||0)+1,dedupe:!0})))}return E=!1,h(),!0},[a,C]),AM=(0,I.useCallback)((...A)=>R(C,Y.current,...A),[]);if(F(()=>{f.current=Q,j.current=B,y(AA)||(AC.current=AA)}),F(()=>{if(!a)return;let A=Ac.bind(M,q),Q=0,B=X(a,G,(B,C={})=>{if(B==u.FOCUS_EVENT){let B=Date.now();b().revalidateOnFocus&&B>Q&&m()&&(Q=B+b().focusThrottleInterval,A())}else if(B==u.RECONNECT_EVENT)b().revalidateOnReconnect&&m()&&A();else if(B==u.MUTATE_EVENT)return Ac();else if(B==u.ERROR_REVALIDATE_EVENT)return Ac(C)});return l.current=!1,Y.current=a,N.current=!0,T({_k:o}),AE&&(y(AQ)||J?A():S(A)),()=>{l.current=!0,B()}},[a]),F(()=>{let A;function Q(){let Q=n(K)?K(AQ):K;Q&&-1!==A&&(A=setTimeout(B,Q))}function B(){!Z().error&&(t||b().isVisible())&&(U||b().isOnline())?Ac(q).then(Q):Q()}return Q(),()=>{A&&(clearTimeout(A),A=-1)}},[K,t,U,a]),(0,I.useDebugValue)(AI),D&&y(AQ)&&a){if(!e&&J)throw Error("Fallback data is required when using suspense in SSR.");throw f.current=Q,j.current=B,l.current=!1,y(AB)?Ac(q):AB}return{mutate:AM,get data(){return W.data=!0,AI},get error(){return W.error=!0,AB},get isValidating(){return W.isValidating=!0,Aw},get isLoading(){return W.isLoading=!0,AD}}},function(...A){let Q=V(),[B,I,E]=x(A),g=P(Q,E),w=C,{use:D}=g,c=(D||[]).concat(v);for(let A=c.length;A--;)w=c[A](w);return w(B,I||g.fetcher||null,g)})}},function(A){var Q=function(Q){return A(A.s=Q)};A.O(0,[774,179],function(){return Q(86570),Q(70743)}),_N_E=A.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/index-095fc638b9846f2a.js b/walletd/assets/_next/static/chunks/pages/index-095fc638b9846f2a.js new file mode 100644 index 000000000..e622b9533 --- /dev/null +++ b/walletd/assets/_next/static/chunks/pages/index-095fc638b9846f2a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(42907)}])},71036:function(e,n,t){"use strict";t.d(n,{v:function(){return h}});var s=t(52322),l=t(83448),i=t(4300),a=t(16211),r=t(28135),c=t(64245),o=t(88464);function d(){var e,n,t,i;let{openDialog:d}=(0,c.Rh)(),x=(0,r.cQ)(),u=(0,a.n)(),h=(0,r.gM)(),j=(0,r.OH)({config:{swr:{revalidateOnFocus:!1}}}),m=null===(e=j.data)||void 0===e?void 0:e.version,f="?"===m?"https://github.com/SiaFoundation/walletd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(m):"https://github.com/SiaFoundation/walletd/tree/".concat(m),p=j.data?new Date().getTime()-new Date(null===(n=j.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(l.HfT,{name:"walletd",peerCount:null===(t=x.data)||void 0===t?void 0:t.length,connectPeer:()=>d("connectPeer"),isSynced:u.isSynced,syncPercent:u.syncPercent,nodeBlockHeight:u.nodeBlockHeight,estimatedBlockHeight:u.estimatedBlockHeight,firstTimeSyncing:u.firstTimeSyncing,moreThan100BlocksToSync:u.moreThan100BlocksToSync,children:[j.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:(0,o.bc)(p,{format:"long"})})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:h.data.name})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(l.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(i=j.data)||void 0===i?void 0:i.version})]})]})}function x(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(l.t6k,{testnetName:n})}function u(e){let{children:n}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:r}=(0,a.n)();return(0,s.jsx)(l.tU3,{appName:"walletd",profile:(0,s.jsx)(d,{}),connectivityRoute:i.h,banner:(0,s.jsx)(x,{}),showWallet:!1,isSynced:r,dockedControls:(0,s.jsx)(u,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return r}});var s=t(52322),l=t(83448),i=t(57165),a=t(4300);function r(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.KJW,{title:"Dashboard",route:a._.home,children:(0,s.jsx)(i.K2o,{})})})}},42907:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return k}});var s=t(52322),l=t(83448),i=t(54525),a=t(5834);function r(){return(0,s.jsx)("div",{className:"flex w-full justify-center",children:(0,s.jsx)("div",{className:"mt-[100px] max-w-[800px]",children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.X6q,{className:"mb-4",children:"Add a wallet to get started."}),(0,s.jsx)(a.u,{})]})})})}var c=t(57165);function o(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No wallets matching filters."})]})}function d(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching wallets."})]})}function x(){let{datasetPage:e,datasetState:n,context:t,visibleColumns:a,sortableColumns:c,sortDirection:x,sortField:u,toggleSort:h}=(0,i.r)();return(0,s.jsxs)("div",{className:"px-6 py-7 min-w-fit",children:["noneYet"===n&&(0,s.jsx)(r,{}),"noneYet"!==n&&(0,s.jsx)(l.iA_,{testId:"walletsTable",isLoading:"loading"===n,emptyState:(0,s.jsx)(l.ubH,{datasetState:n,noneMatching:(0,s.jsx)(o,{}),error:(0,s.jsx)(d,{})}),pageSize:6,data:e,context:t,columns:a,sortableColumns:c,sortDirection:x,sortField:u,toggleSort:h})]})}var u=t(4300),h=t(64245),j=t(71036),m=t(77687),f=t(18700),p=t(83894);function v(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:a,setColumnsHidden:r,sortField:o,setSortField:d,sortDirection:x,setSortDirection:u,visibleColumnIds:h}=(0,i.r)(),j=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(c.hiv,{}),"View",(0,s.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Order by"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.PhF,{value:o,onChange:e=>{d(e.currentTarget.value)},children:Object.entries((0,p.Z)(f.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Direction"}),(0,s.jsx)(l.kFS,{children:(0,s.jsxs)(l.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,s.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(l.Clw,{}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Display properties"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(c.Wet,{})})})]}),(0,s.jsx)(l.FzK,{label:"General",columns:j.map(e=>e.value),enabled:h,setColumnsVisible:a,setColumnsHidden:r}),(0,s.jsx)(l.WVB,{children:(0,s.jsx)(l.j4H,{options:j,values:h,onChange:e=>n(e)})})]})}function g(e){let{...n}=e,{openDialog:t}=(0,h.Rh)();return(0,s.jsxs)(l.h_2,{...n,children:[(0,s.jsx)(l.Juw,{children:"Actions"}),(0,s.jsxs)(l.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>t("walletsRescan"),children:[(0,s.jsx)(l.KpP,{children:(0,s.jsx)(c.vs4,{})}),"Rescan blockchain"]})]})}function w(){let{lockAllWallets:e,unlockedCount:n}=(0,i.r)(),{openDialog:t}=(0,h.Rh)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[!!n&&(0,s.jsxs)(l.zxk,{tip:"Lock all wallets",tipSide:"bottom",onClick:()=>e(),children:[(0,s.jsx)(c.Lur,{}),"Lock wallets"]}),(0,s.jsxs)(l.zxk,{variant:"accent",onClick:()=>t("walletAddType"),children:[(0,s.jsx)(c.aXP,{}),"Add wallet"]}),(0,s.jsx)(v,{}),(0,s.jsx)(g,{trigger:(0,s.jsx)(l.zxk,{size:"small","aria-label":"wallet settings",tip:"Wallet settings",tipAlign:"end",tipSide:"bottom",children:(0,s.jsx)(c.shL,{})}),contentProps:{align:"end"}})]})}var b=t(88464);function N(){let{datasetTotal:e,unlockedCount:n,offset:t,limit:a,datasetState:r}=(0,i.r)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[!!n&&(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(c.VmF,{})}),(0,s.jsxs)(l.xvT,{size:"12",font:"mono",children:[(0,b._6)(n,"wallet")," unlocked"]})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:(0,b._6)(e,"wallet")}),(0,s.jsx)(l.uDJ,{offset:t,limit:a,total:e,isLoading:"loading"===r})]})}let _=j.v;function k(){return(0,s.jsx)(x,{})}k.Layout=_,k.useLayoutProps=function(){let{openDialog:e}=(0,h.Rh)();return{title:"Wallets",routes:u._,sidenav:(0,s.jsx)(m._,{}),openSettings:()=>e("settings"),actions:(0,s.jsx)(w,{}),stats:(0,s.jsx)(N,{}),size:"3"}}},83894:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var s,l=t(1619),i=function(e,n,t,s){for(var l=-1,i=null==e?0:e.length;++ld("connectPeer"),isSynced:u.isSynced,syncPercent:u.syncPercent,nodeBlockHeight:u.nodeBlockHeight,estimatedBlockHeight:u.estimatedBlockHeight,firstTimeSyncing:u.firstTimeSyncing,moreThan100BlocksToSync:u.moreThan100BlocksToSync,children:[j.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:(0,o.bc)(p,{format:"long"})})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:h.data.name})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(l.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(i=j.data)||void 0===i?void 0:i.version})]})]})}function x(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(l.t6k,{testnetName:n})}function u(e){let{children:n}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:r}=(0,a.n)();return(0,s.jsx)(l.tU3,{appName:"walletd",profile:(0,s.jsx)(d,{}),connectivityRoute:i.h,banner:(0,s.jsx)(x,{}),showWallet:!1,isSynced:r,dockedControls:(0,s.jsx)(u,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return r}});var s=t(52322),l=t(63392),i=t(57165),a=t(4300);function r(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.KJW,{title:"Dashboard",route:a._.home,children:(0,s.jsx)(i.K2o,{})})})}},42907:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return k}});var s=t(52322),l=t(63392),i=t(54525),a=t(5834);function r(){return(0,s.jsx)("div",{className:"flex w-full justify-center",children:(0,s.jsx)("div",{className:"mt-[100px] max-w-[800px]",children:(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(l.X6q,{className:"mb-4",children:"Add a wallet to get started."}),(0,s.jsx)(a.u,{})]})})})}var c=t(57165);function o(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No wallets matching filters."})]})}function d(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching wallets."})]})}function x(){let{dataset:e,dataState:n,context:t,columns:a,sortableColumns:c,sortDirection:x,sortField:u,toggleSort:h}=(0,i.r)();return(0,s.jsxs)("div",{className:"px-6 py-7 min-w-fit",children:["noneYet"===n&&(0,s.jsx)(r,{}),"noneYet"!==n&&(0,s.jsx)(l.iA_,{testId:"walletsTable",isLoading:"loading"===n,emptyState:"noneMatchingFilters"===n?(0,s.jsx)(o,{}):"error"===n?(0,s.jsx)(d,{}):null,pageSize:6,data:e,context:t,columns:a,sortableColumns:c,sortDirection:x,sortField:u,toggleSort:h})]})}var u=t(4300),h=t(64245),j=t(71036),m=t(77687),f=t(18700),p=t(83894);function v(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:a,setColumnsHidden:r,sortField:o,setSortField:d,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,i.r)(),j=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(c.hiv,{}),"View",(0,s.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Order by"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.PhF,{value:o,onChange:e=>{d(e.currentTarget.value)},children:Object.entries((0,p.Z)(f.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Direction"}),(0,s.jsx)(l.kFS,{children:(0,s.jsxs)(l.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,s.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(l.Clw,{}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Display properties"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(c.Wet,{})})})]}),(0,s.jsx)(l.FzK,{label:"General",columns:j.map(e=>e.value),enabled:h,setColumnsVisible:a,setColumnsHidden:r}),(0,s.jsx)(l.WVB,{children:(0,s.jsx)(l.j4H,{options:j,values:h,onChange:e=>n(e)})})]})}function g(e){let{...n}=e,{openDialog:t}=(0,h.Rh)();return(0,s.jsxs)(l.h_2,{...n,children:[(0,s.jsx)(l.Juw,{children:"Actions"}),(0,s.jsxs)(l.Xiv,{onClick:e=>e.stopPropagation(),onSelect:()=>t("walletsRescan"),children:[(0,s.jsx)(l.KpP,{children:(0,s.jsx)(c.vs4,{})}),"Rescan blockchain"]})]})}function w(){let{lockAllWallets:e,unlockedCount:n}=(0,i.r)(),{openDialog:t}=(0,h.Rh)();return(0,s.jsxs)("div",{className:"flex gap-2",children:[!!n&&(0,s.jsxs)(l.zxk,{tip:"Lock all wallets",tipSide:"bottom",onClick:()=>e(),children:[(0,s.jsx)(c.Lur,{}),"Lock wallets"]}),(0,s.jsxs)(l.zxk,{variant:"accent",onClick:()=>t("walletAddType"),children:[(0,s.jsx)(c.aXP,{}),"Add wallet"]}),(0,s.jsx)(v,{}),(0,s.jsx)(g,{trigger:(0,s.jsx)(l.zxk,{size:"small","aria-label":"wallet settings",tip:"Wallet settings",tipAlign:"end",tipSide:"bottom",children:(0,s.jsx)(c.shL,{})}),contentProps:{align:"end"}})]})}var b=t(88464);function N(){let{datasetCount:e,unlockedCount:n}=(0,i.r)();return(0,s.jsxs)("div",{className:"flex gap-2 w-full",children:[!!n&&(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(c.VmF,{})}),(0,s.jsxs)(l.xvT,{size:"12",font:"mono",children:[(0,b._6)(n,"wallet")," unlocked"]})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:(0,b._6)(e,"wallet")})]})}let _=j.v;function k(){return(0,s.jsx)(x,{})}k.Layout=_,k.useLayoutProps=function(){let{openDialog:e}=(0,h.Rh)();return{title:"Wallets",routes:u._,sidenav:(0,s.jsx)(m._,{}),openSettings:()=>e("settings"),actions:(0,s.jsx)(w,{}),stats:(0,s.jsx)(N,{}),size:"3"}}},83894:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var s,l=t(1619),i=function(e,n,t,s){for(var l=-1,i=null==e?0:e.length;++ld("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[v.data&&(0,a.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,a.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,a.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,a.jsx)(i.xvT,{size:"14",children:(0,c.bc)(g,{format:"long"})})})]}),h.data&&(0,a.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,a.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,a.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,a.jsx)(i.xvT,{size:"14",children:h.data.name})})]}),(0,a.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,a.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,a.jsx)(i.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(s=v.data)||void 0===s?void 0:s.version})]})]})}function u(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,a.jsx)(i.t6k,{testnetName:n})}function f(e){let{children:n}=e;return(0,a.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:r}=(0,l.n)();return(0,a.jsx)(i.tU3,{appName:"walletd",profile:(0,a.jsx)(d,{}),connectivityRoute:s.h,banner:(0,a.jsx)(u,{}),showWallet:!1,isSynced:r,dockedControls:(0,a.jsx)(f,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return r}});var a=t(52322),i=t(63392),s=t(57165),l=t(4300);function r(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.KJW,{title:"Dashboard",route:l._.home,children:(0,a.jsx)(s.K2o,{})})})}},73496:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var a=t(52322),i=t(63392),s=t(28135),l=t(64245);function r(){var e,n,t,r;let o=(0,s.cQ)(),c=(0,s.QL)({config:{swr:{refreshInterval:3e4}}}),d=(0,s.XC)({config:{swr:{refreshInterval:3e4}}}),{openDialog:u}=(0,l.Rh)(),f=c.data?((null===(e=c.data.transactions)||void 0===e?void 0:e.length)||0)+((null===(n=c.data.v2transactions)||void 0===n?void 0:n.length)||0):0;return(0,a.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,a.jsx)(i.ncR,{label:"Height",value:d.data?Number(d.data.height).toLocaleString():void 0}),(0,a.jsx)(i.ncR,{label:"Connected peers",value:null===(t=o.data)||void 0===t?void 0:t.length}),(0,a.jsx)(i.ncR,{label:"Transactions in pool",value:f})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-7",children:(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(i.u5Q,{isLoading:o.isValidating,peers:null===(r=o.data)||void 0===r?void 0:r.map(e=>e.address),connectPeer:()=>u("connectPeer")})})})]})}var o=t(4300),c=t(77687);let d=t(71036).v;function u(){return(0,a.jsx)(r,{})}u.Layout=d,u.useLayoutProps=function(){let{openDialog:e}=(0,l.Rh)();return{title:"Node",routes:o._,sidenav:(0,a.jsx)(c._,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(73496)}])},71036:function(e,n,t){"use strict";t.d(n,{v:function(){return h}});var a=t(52322),i=t(83448),s=t(4300),l=t(16211),r=t(28135),o=t(64245),c=t(88464);function d(){var e,n,t,s;let{openDialog:d}=(0,o.Rh)(),u=(0,r.cQ)(),f=(0,l.n)(),h=(0,r.gM)(),v=(0,r.OH)({config:{swr:{revalidateOnFocus:!1}}}),x=null===(e=v.data)||void 0===e?void 0:e.version,m="?"===x?"https://github.com/SiaFoundation/walletd/commits/":(null==x?void 0:x.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(x):"https://github.com/SiaFoundation/walletd/tree/".concat(x),g=v.data?new Date().getTime()-new Date(null===(n=v.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,a.jsxs)(i.HfT,{name:"walletd",peerCount:null===(t=u.data)||void 0===t?void 0:t.length,connectPeer:()=>d("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[v.data&&(0,a.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,a.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,a.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,a.jsx)(i.xvT,{size:"14",children:(0,c.bc)(g,{format:"long"})})})]}),h.data&&(0,a.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,a.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,a.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,a.jsx)(i.xvT,{size:"14",children:h.data.name})})]}),(0,a.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,a.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,a.jsx)(i.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(s=v.data)||void 0===s?void 0:s.version})]})]})}function u(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,a.jsx)(i.t6k,{testnetName:n})}function f(e){let{children:n}=e;return(0,a.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:r}=(0,l.n)();return(0,a.jsx)(i.tU3,{appName:"walletd",profile:(0,a.jsx)(d,{}),connectivityRoute:s.h,banner:(0,a.jsx)(u,{}),showWallet:!1,isSynced:r,dockedControls:(0,a.jsx)(f,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return r}});var a=t(52322),i=t(83448),s=t(57165),l=t(4300);function r(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.KJW,{title:"Dashboard",route:l._.home,children:(0,a.jsx)(s.K2o,{})})})}},73496:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var a=t(52322),i=t(83448),s=t(28135),l=t(64245);function r(){var e,n,t,r;let o=(0,s.cQ)(),c=(0,s.QL)({config:{swr:{refreshInterval:3e4}}}),d=(0,s.XC)({config:{swr:{refreshInterval:3e4}}}),{openDialog:u}=(0,l.Rh)(),f=c.data?((null===(e=c.data.transactions)||void 0===e?void 0:e.length)||0)+((null===(n=c.data.v2transactions)||void 0===n?void 0:n.length)||0):0;return(0,a.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,a.jsx)(i.ncR,{label:"Height",value:d.data?Number(d.data.height).toLocaleString():void 0}),(0,a.jsx)(i.ncR,{label:"Connected peers",value:null===(t=o.data)||void 0===t?void 0:t.length}),(0,a.jsx)(i.ncR,{label:"Transactions in pool",value:f})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-7",children:(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(i.u5Q,{isLoading:o.isValidating,peers:null===(r=o.data)||void 0===r?void 0:r.map(e=>e.address),connectPeer:()=>u("connectPeer")})})})]})}var o=t(4300),c=t(77687);let d=t(71036).v;function u(){return(0,a.jsx)(r,{})}u.Layout=d,u.useLayoutProps=function(){let{openDialog:e}=(0,l.Rh)();return{title:"Node",routes:o._,sidenav:(0,a.jsx)(c._,{}),openSettings:()=>e("settings")}}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/wallets/[id]-109b41ba4ba2094a.js b/walletd/assets/_next/static/chunks/pages/wallets/[id]-109b41ba4ba2094a.js new file mode 100644 index 000000000..2dea9abfe --- /dev/null +++ b/walletd/assets/_next/static/chunks/pages/wallets/[id]-109b41ba4ba2094a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[258],{38983:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]",function(){return s(57066)}])},71036:function(e,t,s){"use strict";s.d(t,{v:function(){return m}});var n=s(52322),l=s(83448),i=s(4300),a=s(16211),r=s(28135),c=s(64245),d=s(88464);function o(){var e,t,s,i;let{openDialog:o}=(0,c.Rh)(),x=(0,r.cQ)(),u=(0,a.n)(),m=(0,r.gM)(),h=(0,r.OH)({config:{swr:{revalidateOnFocus:!1}}}),j=null===(e=h.data)||void 0===e?void 0:e.version,f="?"===j?"https://github.com/SiaFoundation/walletd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(j):"https://github.com/SiaFoundation/walletd/tree/".concat(j),v=h.data?new Date().getTime()-new Date(null===(t=h.data)||void 0===t?void 0:t.startTime).getTime():0;return(0,n.jsxs)(l.HfT,{name:"walletd",peerCount:null===(s=x.data)||void 0===s?void 0:s.length,connectPeer:()=>o("connectPeer"),isSynced:u.isSynced,syncPercent:u.syncPercent,nodeBlockHeight:u.nodeBlockHeight,estimatedBlockHeight:u.estimatedBlockHeight,firstTimeSyncing:u.firstTimeSyncing,moreThan100BlocksToSync:u.moreThan100BlocksToSync,children:[h.data&&(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(l.xvT,{size:"14",children:(0,d.bc)(v,{format:"long"})})})]}),m.data&&(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(l.xvT,{size:"14",children:m.data.name})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(l.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(i=h.data)||void 0===i?void 0:i.version})]})]})}function x(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let t="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,n.jsx)(l.t6k,{testnetName:t})}function u(e){let{children:t}=e;return(0,n.jsx)("div",{className:"flex flex-col gap-2",children:t})}function m(e){let{dockedControls:t,...s}=e,{isSynced:r}=(0,a.n)();return(0,n.jsx)(l.tU3,{appName:"walletd",profile:(0,n.jsx)(o,{}),connectivityRoute:i.h,banner:(0,n.jsx)(x,{}),showWallet:!1,isSynced:r,dockedControls:(0,n.jsx)(u,{children:t}),...s})}s(2784)},77687:function(e,t,s){"use strict";s.d(t,{_:function(){return r}});var n=s(52322),l=s(83448),i=s(57165),a=s(4300);function r(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.KJW,{title:"Dashboard",route:a._.home,children:(0,n.jsx)(i.K2o,{})})})}},57066:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return B}});var n=s(52322),l=s(83448),i=s(94589),a=s(57165);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function c(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.fDA,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function d(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}function o(){let{datasetPage:e,datasetState:t,visibleColumns:s,cellContext:a,sortableColumns:o,sortDirection:x,sortField:u,toggleSort:m}=(0,i.hI)();return(0,n.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"eventsTable",isLoading:"loading"===t,emptyState:(0,n.jsx)(l.ubH,{datasetState:t,noneMatching:(0,n.jsx)(r,{}),noneYet:(0,n.jsx)(c,{}),error:(0,n.jsx)(d,{})}),pageSize:6,data:e,context:a,columns:s,sortableColumns:o,sortDirection:x,sortField:u,toggleSort:m})})}var x=s(4300),u=s(64245),m=s(71036),h=s(77687),j=s(16211),f=s(6391),v=s.n(f),p=s(5632);function g(){let e=(0,p.useRouter)().query.id;return(0,n.jsxs)(l.Qjf,{"aria-label":"view addresses",href:{pathname:x._.wallet.addresses,query:{id:e}},children:[(0,n.jsx)(a.e_k,{}),"Addresses"]})}function w(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:r,setColumnsHidden:c,visibleColumnIds:d}=(0,i.hI)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,n.jsx)(a.hiv,{}),"View",(0,n.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(a.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:o.map(e=>e.value),enabled:d,setColumnsVisible:r,setColumnsHidden:c}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:o,values:d,onChange:e=>t(e)})})]})}var b=s(28135),N=s(54525),y=s(75061),_=s(88464),k=s(82851);function S(e){let{sc:t,sf:s,isSynced:i,syncingMessage:r}=e,c=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.ua7,{side:"bottom",content:(0,_.Vz)(t,{dynamicUnits:!1}),children:(0,n.jsx)(l.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,_.Vz)(t)})}),!!s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z0O,{variant:"vertical",className:"h-full"}),(0,n.jsx)(l.ua7,{side:"bottom",content:(0,_.ES)(s),children:(0,n.jsx)(l.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,_.ES)(s)})})]})]});return(0,n.jsxs)(l.s_4,{className:(0,k.cx)("hidden sm:flex h-7 items-center gap-2",i?"px-3":"pl-2 pr-3"),children:[!i&&(0,n.jsx)(l.ua7,{side:"bottom",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,n.jsx)(l.xvT,{color:"amber",className:"flex items-center h-full",children:(0,n.jsx)(a.qdM,{})})}),c]})}var T=s(18291),z=s(99634);function C(){var e,t;let s=(0,j.n)(),i=(0,p.useRouter)(),{openDialog:r}=(0,u.Rh)(),c=i.query.id,d=(0,b.tM)({disabled:!c,params:{id:c},config:{swr:{refreshInterval:z.h}}}),{wallet:o}=(0,N.r)(),{dataset:x}=(0,T.Jz)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(S,{sc:new(v())((null===(e=d.data)||void 0===e?void 0:e.siacoins)||0),sf:(null===(t=d.data)||void 0===t?void 0:t.siafunds)||0,isSynced:s.isSynced}),(0,n.jsx)(g,{}),(null==o?void 0:o.metadata.type)!=="watch"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.zxk,{"aria-label":"receive",size:"small",variant:"accent",onClick:()=>{var e;r("addressUpdate",{walletId:c,address:null==x?void 0:null===(e=x.sort((e,t)=>e.metadata.index>t.metadata.index?1:-1)[0])||void 0===e?void 0:e.address})},children:[(0,n.jsx)(a.xHM,{}),"Receive"]}),(0,n.jsxs)(l.zxk,{"aria-label":"send",size:"small",variant:"accent",onClick:()=>{(null==o?void 0:o.metadata.type)==="seed"?r("walletSendSeed",{walletId:c}):(null==o?void 0:o.metadata.type)==="ledger"&&r("walletSendLedger",{walletId:c})},children:[(0,n.jsx)(a.rW0,{}),"Send"]})]}),(0,n.jsx)(w,{}),o&&(0,n.jsx)(y.g,{wallet:o,trigger:(0,n.jsx)(l.zxk,{size:"small",tip:"Wallet settings",tipAlign:"end",tipSide:"bottom",children:(0,n.jsx)(a.shL,{})}),contentProps:{align:"end"}})]})}var F=s(68382);function H(){var e,t;let{wallet:s}=(0,N.r)(),{openDialog:i}=(0,u.Rh)();return(0,n.jsx)("div",{className:"pl-1 flex gap-2 items-center",children:(0,n.jsx)(l.zxk,{variant:"ghost",icon:"contrast",onClick:()=>i("walletUpdate",{walletId:s.id}),className:"!p-0",tip:null===(e=F._[null==s?void 0:s.metadata.type])||void 0===e?void 0:e.title,children:null===(t=F._[null==s?void 0:s.metadata.type])||void 0===t?void 0:t.icon})})}function P(){let{offset:e,limit:t,datasetPageTotal:s,datasetState:a}=(0,i.hI)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(l.wFK,{offset:e,limit:t,pageTotal:s,isLoading:"loading"===a})]})}let W=m.v;function B(){return(0,n.jsx)(o,{})}B.Layout=W,B.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)(),{wallet:t}=(0,N.r)();return{routes:x._,sidenav:(0,n.jsx)(h._,{}),openSettings:()=>e("settings"),title:null==t?void 0:t.name,nav:(0,n.jsx)(H,{}),actions:(0,n.jsx)(C,{}),stats:(0,n.jsx)(P,{}),size:"full"}}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=38983)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/wallets/[id]-b8652e4a924a3d78.js b/walletd/assets/_next/static/chunks/pages/wallets/[id]-b8652e4a924a3d78.js deleted file mode 100644 index 8e3bba513..000000000 --- a/walletd/assets/_next/static/chunks/pages/wallets/[id]-b8652e4a924a3d78.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[258],{38983:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]",function(){return s(57066)}])},71036:function(e,t,s){"use strict";s.d(t,{v:function(){return m}});var n=s(52322),l=s(63392),i=s(4300),a=s(16211),r=s(28135),c=s(64245),d=s(88464);function o(){var e,t,s,i;let{openDialog:o}=(0,c.Rh)(),x=(0,r.cQ)(),u=(0,a.n)(),m=(0,r.gM)(),h=(0,r.OH)({config:{swr:{revalidateOnFocus:!1}}}),j=null===(e=h.data)||void 0===e?void 0:e.version,f="?"===j?"https://github.com/SiaFoundation/walletd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(j):"https://github.com/SiaFoundation/walletd/tree/".concat(j),v=h.data?new Date().getTime()-new Date(null===(t=h.data)||void 0===t?void 0:t.startTime).getTime():0;return(0,n.jsxs)(l.HfT,{name:"walletd",peerCount:null===(s=x.data)||void 0===s?void 0:s.length,connectPeer:()=>o("connectPeer"),isSynced:u.isSynced,syncPercent:u.syncPercent,nodeBlockHeight:u.nodeBlockHeight,estimatedBlockHeight:u.estimatedBlockHeight,firstTimeSyncing:u.firstTimeSyncing,moreThan100BlocksToSync:u.moreThan100BlocksToSync,children:[h.data&&(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Uptime"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(l.xvT,{size:"14",children:(0,d.bc)(v,{format:"long"})})})]}),m.data&&(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden -mr-0.5 pr-0.5",children:(0,n.jsx)(l.xvT,{size:"14",children:m.data.name})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(l.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(i=h.data)||void 0===i?void 0:i.version})]})]})}function x(){let e=(0,r.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let t="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,n.jsx)(l.t6k,{testnetName:t})}function u(e){let{children:t}=e;return(0,n.jsx)("div",{className:"flex flex-col gap-2",children:t})}function m(e){let{dockedControls:t,...s}=e,{isSynced:r}=(0,a.n)();return(0,n.jsx)(l.tU3,{appName:"walletd",profile:(0,n.jsx)(o,{}),connectivityRoute:i.h,banner:(0,n.jsx)(x,{}),showWallet:!1,isSynced:r,dockedControls:(0,n.jsx)(u,{children:t}),...s})}s(2784)},77687:function(e,t,s){"use strict";s.d(t,{_:function(){return r}});var n=s(52322),l=s(63392),i=s(57165),a=s(4300);function r(){return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.KJW,{title:"Dashboard",route:a._.home,children:(0,n.jsx)(i.K2o,{})})})}},57066:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return B}});var n=s(52322),l=s(63392),i=s(94589),a=s(57165);function r(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No transactions matching filters."})]})}function c(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.fDA,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no transactions yet."})]})}function d(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(l.xvT,{children:(0,n.jsx)(a.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching transactions."})]})}function o(){let{dataset:e,dataState:t,columns:s,cellContext:a,sortableColumns:o,sortDirection:x,sortField:u,toggleSort:m}=(0,i.hI)();return(0,n.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,n.jsx)(l.iA_,{testId:"eventsTable",isLoading:"loading"===t,emptyState:"noneMatchingFilters"===t?(0,n.jsx)(r,{}):"noneYet"===t?(0,n.jsx)(c,{}):"error"===t?(0,n.jsx)(d,{}):null,pageSize:6,data:e,context:a,columns:s,sortableColumns:o,sortDirection:x,sortField:u,toggleSort:m})})}var x=s(4300),u=s(64245),m=s(71036),h=s(77687),j=s(16211),f=s(6391),v=s.n(f),p=s(5632);function g(){let e=(0,p.useRouter)().query.id;return(0,n.jsxs)(l.Qjf,{"aria-label":"view addresses",href:{pathname:x._.wallet.addresses,query:{id:e}},children:[(0,n.jsx)(a.e_k,{}),"Addresses"]})}function w(){let{configurableColumns:e,toggleColumnVisibility:t,resetDefaultColumnVisibility:s,setColumnsVisible:r,setColumnsHidden:c,enabledColumns:d}=(0,i.hI)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(l.J2e,{trigger:(0,n.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,n.jsx)(a.hiv,{}),"View",(0,n.jsx)(a.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(l.WVB,{children:[(0,n.jsx)(l.__J,{children:"Display properties"}),(0,n.jsx)(l.kFS,{children:(0,n.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,n.jsx)(a.Wet,{})})})]}),(0,n.jsx)(l.FzK,{label:"General",columns:o.map(e=>e.value),enabled:d,setColumnsVisible:r,setColumnsHidden:c}),(0,n.jsx)(l.WVB,{children:(0,n.jsx)(l.j4H,{options:o,values:d,onChange:e=>t(e)})})]})}var b=s(28135),N=s(54525),y=s(75061),_=s(88464),k=s(82851);function T(e){let{sc:t,sf:s,isSynced:i,syncingMessage:r}=e,c=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.ua7,{side:"bottom",content:(0,_.Vz)(t,{dynamicUnits:!1}),children:(0,n.jsx)(l.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,_.Vz)(t)})}),!!s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Z0O,{variant:"vertical",className:"h-full"}),(0,n.jsx)(l.ua7,{side:"bottom",content:(0,_.ES)(s),children:(0,n.jsx)(l.xvT,{size:"12",weight:"semibold",className:"flex items-center h-full",children:(0,_.ES)(s)})})]})]});return(0,n.jsxs)(l.s_4,{className:(0,k.cx)("hidden sm:flex h-7 items-center gap-2",i?"px-3":"pl-2 pr-3"),children:[!i&&(0,n.jsx)(l.ua7,{side:"bottom",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,n.jsx)(l.xvT,{color:"amber",className:"flex items-center h-full",children:(0,n.jsx)(a.qdM,{})})}),c]})}var S=s(18291),z=s(99634);function C(){var e,t;let s=(0,j.n)(),i=(0,p.useRouter)(),{openDialog:r}=(0,u.Rh)(),c=i.query.id,d=(0,b.tM)({disabled:!c,params:{id:c},config:{swr:{refreshInterval:z.h}}}),{wallet:o}=(0,N.r)(),{dataset:x}=(0,S.Jz)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(T,{sc:new(v())((null===(e=d.data)||void 0===e?void 0:e.siacoins)||0),sf:(null===(t=d.data)||void 0===t?void 0:t.siafunds)||0,isSynced:s.isSynced}),(0,n.jsx)(g,{}),(null==o?void 0:o.metadata.type)!=="watch"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.zxk,{"aria-label":"receive",size:"small",variant:"accent",onClick:()=>{var e;r("addressUpdate",{walletId:c,address:null==x?void 0:null===(e=x.sort((e,t)=>e.metadata.index>t.metadata.index?1:-1)[0])||void 0===e?void 0:e.address})},children:[(0,n.jsx)(a.xHM,{}),"Receive"]}),(0,n.jsxs)(l.zxk,{"aria-label":"send",size:"small",variant:"accent",onClick:()=>{(null==o?void 0:o.metadata.type)==="seed"?r("walletSendSeed",{walletId:c}):(null==o?void 0:o.metadata.type)==="ledger"&&r("walletSendLedger",{walletId:c})},children:[(0,n.jsx)(a.rW0,{}),"Send"]})]}),(0,n.jsx)(w,{}),o&&(0,n.jsx)(y.g,{wallet:o,trigger:(0,n.jsx)(l.zxk,{size:"small",tip:"Wallet settings",tipAlign:"end",tipSide:"bottom",children:(0,n.jsx)(a.shL,{})}),contentProps:{align:"end"}})]})}var F=s(68382);function H(){var e,t;let{wallet:s}=(0,N.r)(),{openDialog:i}=(0,u.Rh)();return(0,n.jsx)("div",{className:"pl-1 flex gap-2 items-center",children:(0,n.jsx)(l.zxk,{variant:"ghost",icon:"contrast",onClick:()=>i("walletUpdate",{walletId:s.id}),className:"!p-0",tip:null===(e=F._[null==s?void 0:s.metadata.type])||void 0===e?void 0:e.title,children:null===(t=F._[null==s?void 0:s.metadata.type])||void 0===t?void 0:t.icon})})}function P(){let{offset:e,limit:t,pageCount:s,dataState:a}=(0,i.hI)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(l.wFK,{offset:e,limit:t,pageTotal:s,isLoading:"loading"===a})]})}let W=m.v;function B(){return(0,n.jsx)(o,{})}B.Layout=W,B.useLayoutProps=function(){let{openDialog:e}=(0,u.Rh)(),{wallet:t}=(0,N.r)();return{routes:x._,sidenav:(0,n.jsx)(h._,{}),openSettings:()=>e("settings"),title:null==t?void 0:t.name,nav:(0,n.jsx)(H,{}),actions:(0,n.jsx)(C,{}),stats:(0,n.jsx)(P,{}),size:"full"}}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=38983)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-a24692c652c3e45b.js b/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-a24692c652c3e45b.js new file mode 100644 index 000000000..b83b85127 --- /dev/null +++ b/walletd/assets/_next/static/chunks/pages/wallets/[id]/addresses-a24692c652c3e45b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{14573:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallets/[id]/addresses",function(){return t(72514)}])},71036:function(e,n,t){"use strict";t.d(n,{v:function(){return h}});var s=t(52322),l=t(83448),i=t(4300),r=t(16211),a=t(28135),c=t(64245),o=t(88464);function d(){var e,n,t,i;let{openDialog:d}=(0,c.Rh)(),u=(0,a.cQ)(),x=(0,r.n)(),h=(0,a.gM)(),m=(0,a.OH)({config:{swr:{revalidateOnFocus:!1}}}),j=null===(e=m.data)||void 0===e?void 0:e.version,f="?"===j?"https://github.com/SiaFoundation/walletd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/walletd/releases/".concat(j):"https://github.com/SiaFoundation/walletd/tree/".concat(j),v=m.data?new Date().getTime()-new Date(null===(n=m.data)||void 0===n?void 0:n.startTime).getTime():0;return(0,s.jsxs)(l.HfT,{name:"walletd",peerCount:null===(t=u.data)||void 0===t?void 0:t.length,connectPeer:()=>d("connectPeer"),isSynced:x.isSynced,syncPercent:x.syncPercent,nodeBlockHeight:x.nodeBlockHeight,estimatedBlockHeight:x.estimatedBlockHeight,firstTimeSyncing:x.firstTimeSyncing,moreThan100BlocksToSync:x.moreThan100BlocksToSync,children:[m.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:(0,o.bc)(v,{format:"long"})})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:h.data.name})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(l.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(i=m.data)||void 0===i?void 0:i.version})]})]})}function u(){let e=(0,a.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(l.t6k,{testnetName:n})}function x(e){let{children:n}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:a}=(0,r.n)();return(0,s.jsx)(l.tU3,{appName:"walletd",profile:(0,s.jsx)(d,{}),connectivityRoute:i.h,banner:(0,s.jsx)(u,{}),showWallet:!1,isSynced:a,dockedControls:(0,s.jsx)(x,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var s=t(52322),l=t(83448),i=t(57165),r=t(4300);function a(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})})})}},72514:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var s=t(52322),l=t(83448),i=t(18291),r=t(57165);function a(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(r.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No addresses matching filters."})]})}function c(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(r.oaN,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no addresses. Add some to get started."})]})}function o(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(r.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching addresses."})]})}function d(){let{datasetPage:e,datasetState:n,visibleColumns:t,cellContext:r,sortableColumns:d,sortDirection:u,sortField:x,toggleSort:h}=(0,i.Jz)();return(0,s.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,s.jsx)(l.iA_,{isLoading:"loading"===n,emptyState:(0,s.jsx)(l.ubH,{datasetState:n,noneMatching:(0,s.jsx)(a,{}),noneYet:(0,s.jsx)(c,{}),error:(0,s.jsx)(o,{})}),pageSize:6,data:e,context:r,columns:t,sortableColumns:d,sortDirection:u,sortField:x,toggleSort:h})})}var u=t(4300),x=t(64245),h=t(71036),m=t(77687),j=t(54525),f=t(5632),v=t(47706),p=t(83894);function g(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:a,setColumnsHidden:c,sortField:o,setSortField:d,sortDirection:u,setSortDirection:x,visibleColumnIds:h}=(0,i.Jz)(),m=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(r.hiv,{}),"View",(0,s.jsx)(r.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Order by"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.PhF,{value:o,onChange:e=>{d(e.currentTarget.value)},children:Object.entries((0,p.Z)(v.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Direction"}),(0,s.jsx)(l.kFS,{children:(0,s.jsxs)(l.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,s.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(l.Clw,{}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Display properties"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(r.Wet,{})})})]}),(0,s.jsx)(l.FzK,{label:"General",columns:m.map(e=>e.value),enabled:h,setColumnsVisible:a,setColumnsHidden:c}),(0,s.jsx)(l.WVB,{children:(0,s.jsx)(l.j4H,{options:m,values:h,onChange:e=>n(e)})})]})}function w(){let{openDialog:e}=(0,x.Rh)(),n=(0,f.useRouter)(),{wallet:t}=(0,j.r)(),i=n.query.id;return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(l.zxk,{variant:"accent",onClick:()=>{if((null==t?void 0:t.metadata.type)==="seed"){e("walletAddressesGenerate",{walletId:i});return}if((null==t?void 0:t.metadata.type)==="watch"){e("walletAddressesAdd",{walletId:i});return}if((null==t?void 0:t.metadata.type)==="ledger"){e("walletLedgerAddressGenerate",{walletId:i});return}},children:[(0,s.jsx)(r.aXP,{}),"Add addresses"]}),(0,s.jsx)(g,{})]})}function y(){let{datasetTotal:e,offset:n,limit:t,datasetState:r}=(0,i.Jz)();return(0,s.jsx)("div",{className:"flex gap-2 justify-end w-full",children:(0,s.jsx)(l.uDJ,{offset:n,limit:t,total:e,isLoading:"loading"===r})})}let b=h.v;function N(){return(0,s.jsx)(d,{})}N.Layout=b,N.useLayoutProps=function(){let e=(0,f.useRouter)().query.id,{openDialog:n}=(0,x.Rh)(),{wallet:t}=(0,j.r)();return{routes:u._,sidenav:(0,s.jsx)(m._,{}),openSettings:()=>n("settings"),title:null==t?void 0:t.name,navTitle:(0,s.jsxs)("div",{className:"flex gap-2 relative -top-px",children:[(0,s.jsx)(l.rUS,{underline:"hover",font:"mono",size:"18",weight:"bold",href:{pathname:u._.wallet.view,query:{id:e}},children:(0,l.$Gg)(null==t?void 0:t.name,20)}),(0,s.jsx)(l.xvT,{font:"mono",size:"18",weight:"normal",color:"verySubtle",children:"/"}),(0,s.jsx)(l.xvT,{font:"mono",size:"18",weight:"bold",children:"Addresses"})]}),actions:(0,s.jsx)(w,{}),stats:(0,s.jsx)(y,{}),size:"3"}}},83894:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var s,l=t(1619),i=function(e,n,t,s){for(var l=-1,i=null==e?0:e.length;++ld("connectPeer"),isSynced:x.isSynced,syncPercent:x.syncPercent,nodeBlockHeight:x.nodeBlockHeight,estimatedBlockHeight:x.estimatedBlockHeight,firstTimeSyncing:x.firstTimeSyncing,moreThan100BlocksToSync:x.moreThan100BlocksToSync,children:[m.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:(0,o.bc)(v,{format:"long"})})})]}),h.data&&(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__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)(l.xvT,{size:"14",children:h.data.name})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(l.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(i=m.data)||void 0===i?void 0:i.version})]})]})}function u(){let e=(0,a.gM)({config:{swr:{revalidateOnFocus:!1}}});if(!e.data||"mainnet"===e.data.name)return null;let n="zen"===e.data.name?"Zen Testnet":e.data.name;return(0,s.jsx)(l.t6k,{testnetName:n})}function x(e){let{children:n}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-2",children:n})}function h(e){let{dockedControls:n,...t}=e,{isSynced:a}=(0,r.n)();return(0,s.jsx)(l.tU3,{appName:"walletd",profile:(0,s.jsx)(d,{}),connectivityRoute:i.h,banner:(0,s.jsx)(u,{}),showWallet:!1,isSynced:a,dockedControls:(0,s.jsx)(x,{children:n}),...t})}t(2784)},77687:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var s=t(52322),l=t(63392),i=t(57165),r=t(4300);function a(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(l.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})})})}},72514:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return _}});var s=t(52322),l=t(63392),i=t(18291),r=t(57165);function a(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(r.Hb6,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No addresses matching filters."})]})}function c(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(r.oaN,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"The wallet has no addresses. Add some to get started."})]})}function o(){return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,s.jsx)(l.xvT,{children:(0,s.jsx)(r.Ckx,{className:"scale-[200%]"})}),(0,s.jsx)(l.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching addresses."})]})}function d(){let{dataset:e,dataState:n,columns:t,cellContext:r,sortableColumns:d,sortDirection:u,sortField:x,toggleSort:h}=(0,i.Jz)();return(0,s.jsx)("div",{className:"px-6 py-7 min-w-fit",children:(0,s.jsx)(l.iA_,{isLoading:"loading"===n,emptyState:"noneMatchingFilters"===n?(0,s.jsx)(a,{}):"noneYet"===n?(0,s.jsx)(c,{}):"error"===n?(0,s.jsx)(o,{}):null,pageSize:6,data:e,context:r,columns:t,sortableColumns:d,sortDirection:u,sortField:x,toggleSort:h})})}var u=t(4300),x=t(64245),h=t(71036),m=t(77687),j=t(54525),f=t(5632),v=t(47706),p=t(83894);function g(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:t,setColumnsVisible:a,setColumnsHidden:c,sortField:o,setSortField:d,sortDirection:u,setSortDirection:x,enabledColumns:h}=(0,i.Jz)(),m=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id}));return(0,s.jsxs)(l.J2e,{trigger:(0,s.jsxs)(l.zxk,{size:"small",tip:"Configure view",tipAlign:"end",tipSide:"bottom",children:[(0,s.jsx)(r.hiv,{}),"View",(0,s.jsx)(r.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Order by"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.PhF,{value:o,onChange:e=>{d(e.currentTarget.value)},children:Object.entries((0,p.Z)(v.Fo,"category")).map(e=>{let[n,t]=e;return(0,s.jsx)("optgroup",{label:n,children:t.map(e=>(0,s.jsx)(l.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Direction"}),(0,s.jsx)(l.kFS,{children:(0,s.jsxs)(l.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,s.jsx)(l.Wxm,{value:"desc",children:"descending"},"desc"),(0,s.jsx)(l.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,s.jsx)(l.Clw,{}),(0,s.jsxs)(l.WVB,{children:[(0,s.jsx)(l.__J,{children:"Display properties"}),(0,s.jsx)(l.kFS,{children:(0,s.jsx)(l.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),t()},children:(0,s.jsx)(r.Wet,{})})})]}),(0,s.jsx)(l.FzK,{label:"General",columns:m.map(e=>e.value),enabled:h,setColumnsVisible:a,setColumnsHidden:c}),(0,s.jsx)(l.WVB,{children:(0,s.jsx)(l.j4H,{options:m,values:h,onChange:e=>n(e)})})]})}function w(){let{openDialog:e}=(0,x.Rh)(),n=(0,f.useRouter)(),{wallet:t}=(0,j.r)(),i=n.query.id;return(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(l.zxk,{variant:"accent",onClick:()=>{if((null==t?void 0:t.metadata.type)==="seed"){e("walletAddressesGenerate",{walletId:i});return}if((null==t?void 0:t.metadata.type)==="watch"){e("walletAddressesAdd",{walletId:i});return}if((null==t?void 0:t.metadata.type)==="ledger"){e("walletLedgerAddressGenerate",{walletId:i});return}},children:[(0,s.jsx)(r.aXP,{}),"Add addresses"]}),(0,s.jsx)(g,{})]})}var y=t(88464);function b(){let{datasetCount:e}=(0,i.Jz)();return(0,s.jsx)("div",{className:"flex gap-2 justify-end w-full",children:(0,s.jsx)(l.xvT,{size:"12",font:"mono",children:(0,y._6)(e,"address","addresses")})})}let N=h.v;function _(){return(0,s.jsx)(d,{})}_.Layout=N,_.useLayoutProps=function(){let e=(0,f.useRouter)().query.id,{openDialog:n}=(0,x.Rh)(),{wallet:t}=(0,j.r)();return{routes:u._,sidenav:(0,s.jsx)(m._,{}),openSettings:()=>n("settings"),title:null==t?void 0:t.name,navTitle:(0,s.jsxs)("div",{className:"flex gap-2 relative -top-px",children:[(0,s.jsx)(l.rUS,{underline:"hover",font:"mono",size:"18",weight:"bold",href:{pathname:u._.wallet.view,query:{id:e}},children:(0,l.$Gg)(null==t?void 0:t.name,20)}),(0,s.jsx)(l.xvT,{font:"mono",size:"18",weight:"normal",color:"verySubtle",children:"/"}),(0,s.jsx)(l.xvT,{font:"mono",size:"18",weight:"bold",children:"Addresses"})]}),actions:(0,s.jsx)(w,{}),stats:(0,s.jsx)(b,{}),size:"3"}}},83894:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var s,l=t(1619),i=function(e,n,t,s){for(var l=-1,i=null==e?0:e.length;++l
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/login.html b/walletd/assets/login.html index 082499c73..5669dde8b 100644 --- a/walletd/assets/login.html +++ b/walletd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/node.html b/walletd/assets/node.html index 301baa5ee..e97221420 100644 --- a/walletd/assets/node.html +++ b/walletd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/wallets/[id].html b/walletd/assets/wallets/[id].html index 4ffed4e6c..3cbeaf2ec 100644 --- a/walletd/assets/wallets/[id].html +++ b/walletd/assets/wallets/[id].html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/walletd/assets/wallets/[id]/addresses.html b/walletd/assets/wallets/[id]/addresses.html index 96d23f2da..e0ced6325 100644 --- a/walletd/assets/wallets/[id]/addresses.html +++ b/walletd/assets/wallets/[id]/addresses.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file