diff --git a/packages/web/app/globals.css b/packages/web/app/globals.css index f766a23..2cb7768 100644 --- a/packages/web/app/globals.css +++ b/packages/web/app/globals.css @@ -15,6 +15,7 @@ /* Backgrounds */ --color-bg-primary: #0b0b0a; + --color-bg-accent: #fad657; --color-bg-elevated: #131311; --color-bg-input: #0d0d0b; --color-bg-accent-tint: rgba(250, 214, 87, 0.12); @@ -46,6 +47,7 @@ /* Radius scale: chip < control < surface < pill */ --radius-sm: 6px; --radius-md: 9px; + --radius-card: 4px; --radius-lg: 14px; --radius-full: 999px; @@ -84,7 +86,7 @@ body { background: var(--color-bg-primary); color: var(--color-content-primary); font-family: 'Geist', sans-serif; - font-size: 14px; + font-size: 16px; line-height: 1.5; } @@ -111,30 +113,28 @@ body { display: flex; align-items: center; justify-content: space-between; - gap: var(--space-3); - padding: 10px var(--space-5); - background: var(--color-bg-primary); + gap: var(--space-4); + padding: var(--space-3) var(--space-5); + background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border-medium); } .app-bar-brand-group { display: flex; align-items: center; - gap: var(--space-2); + gap: 10px; } .app-bar-brand { - font-size: 18px; - font-weight: 800; - letter-spacing: -0.02em; + font-family: 'Geist', sans-serif; + font-size: 19px; + font-weight: 500; + letter-spacing: 0.15em; + text-transform: uppercase; color: var(--color-content-primary); text-decoration: none; } .app-bar-brand::first-letter { color: var(--color-content-accent); } -.app-bar-brand-group .pill { - text-transform: uppercase; - letter-spacing: 0.04em; -} .app-bar-wallet { display: flex; align-items: center; @@ -157,7 +157,7 @@ header { color: var(--color-content-accent); } .tagline { - font-size: 14px; + font-size: 15px; color: var(--color-content-secondary); margin: 6px 0 0; } @@ -183,10 +183,12 @@ header { /* Surface */ .card { - background: var(--color-bg-elevated); - border: 1px solid var(--color-border-medium); - border-radius: var(--radius-lg); + border: 1px solid transparent; + border-radius: var(--radius-card); + background: linear-gradient(var(--color-bg-elevated), var(--color-bg-elevated)) padding-box, + linear-gradient(180deg, var(--color-border-medium), color-mix(in srgb, var(--color-border-medium) 35%, transparent)) border-box; padding: var(--space-5); + box-shadow: inset 0 1px 1px rgba(255,255,255,0.04); } .card.center { text-align: center; @@ -271,7 +273,7 @@ header { /* Micro label */ .label { - font-size: 12px; + font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-content-secondary); @@ -290,7 +292,7 @@ header { display: inline-flex; align-items: center; gap: 4px; - font-size: 11px; + font-size: 12px; font-weight: 700; border-radius: var(--radius-full); padding: 3px 9px; @@ -364,7 +366,7 @@ header { color: var(--color-content-on-accent); } .stepper-label { - font-size: 11px; + font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; @@ -405,25 +407,28 @@ header { } /* Buttons */ -button { - background: var(--color-content-accent); +button, +.btn { + background: var(--color-bg-accent); color: var(--color-content-on-accent); border: none; border-radius: var(--radius-md); padding: 10px 18px; - font-size: 14px; + font-size: 15px; font-weight: 700; cursor: pointer; transition: filter 150ms ease-out; } -button:hover:not(:disabled) { +button:hover:not(:disabled), +.btn:hover { filter: brightness(1.06); } button:disabled { opacity: 0.55; cursor: not-allowed; } -button.ghost { +button.ghost, +.btn.ghost { background: transparent; color: var(--color-content-primary); border: 1px solid var(--color-border-medium); @@ -475,7 +480,7 @@ code { /* Feedback text */ .hint { - font-size: 13px; + font-size: 14px; color: var(--color-content-secondary); margin: var(--space-2) 0 var(--space-3); } diff --git a/packages/web/app/page.tsx b/packages/web/app/page.tsx index f9d12cf..aa77deb 100644 --- a/packages/web/app/page.tsx +++ b/packages/web/app/page.tsx @@ -840,7 +840,8 @@ function SplitLedgerSection() {

Every subscription is split on-chain the moment it settles. No invoices, no reconciliation: the - Soroban contract routes each share instantly. + Soroban contract routes each share instantly. Each package pool defines its own distribution + scheme through its DAO; the live demo contract runs 70/20/10.

@@ -1377,7 +1378,7 @@ const FAQ_ITEMS = [ { question: 'How are payments and revenue shares handled?', answer: - 'Komunify uses smart contracts to split and distribute subscription revenue and marketplace fees automatically between the platform, community managers, and project owners. This reduces manual reconciliation and makes the process more transparent.', + 'Every package is a Soroban pool with its own distribution scheme. When a member subscribes, the contract splits revenue automatically between the community partners in the pool and the platform; the live demo contract runs 70/20/10. Pricing, splits, and partner changes pass a DAO vote, so every share stays transparent and verifiable on-chain, with no manual reconciliation.', }, { question: 'Why is Komunify better?', diff --git a/prototype/landing/404.html b/prototype/landing/404.html index e237833..02c4b77 100644 --- a/prototype/landing/404.html +++ b/prototype/landing/404.html @@ -1 +1 @@ -404: This page could not be found.Komunify · One subscription, every community perk
komunifytestnet

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Komunify · One subscription, every community perk
komunifytestnet

404

This page could not be found.

\ No newline at end of file diff --git a/prototype/landing/_next/static/6YiE5Arqv4HJaFndY-hrg/_buildManifest.js b/prototype/landing/_next/static/6oSsDFFWxQ97bynFlWBxq/_buildManifest.js similarity index 100% rename from prototype/landing/_next/static/6YiE5Arqv4HJaFndY-hrg/_buildManifest.js rename to prototype/landing/_next/static/6oSsDFFWxQ97bynFlWBxq/_buildManifest.js diff --git a/prototype/landing/_next/static/6YiE5Arqv4HJaFndY-hrg/_ssgManifest.js b/prototype/landing/_next/static/6oSsDFFWxQ97bynFlWBxq/_ssgManifest.js similarity index 100% rename from prototype/landing/_next/static/6YiE5Arqv4HJaFndY-hrg/_ssgManifest.js rename to prototype/landing/_next/static/6oSsDFFWxQ97bynFlWBxq/_ssgManifest.js diff --git a/prototype/landing/_next/static/chunks/126-792128eb3af634df.js b/prototype/landing/_next/static/chunks/126-792128eb3af634df.js deleted file mode 100644 index 44522f4..0000000 --- a/prototype/landing/_next/static/chunks/126-792128eb3af634df.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[126],{592:(e,n,t)=>{t.d(n,{Dj:()=>p,Wi:()=>w,G0:()=>x,yz:()=>j,Kr:()=>v,Rn:()=>g,JR:()=>m,TN:()=>f,qv:()=>b,Qq:()=>y});var r=t(8095),i=t(8602),a=t(3143),s=t(7251),l=t(996).hp;class o{static async isManager(e){return(await (0,i.ii)().is_manager({who:e})).result}static async myContent(e){let n=(0,i.ii)(),[t,r]=await Promise.all([n.list_content({start:1n,limit:100}),n.current_epoch()]),a=t.result.filter(n=>n.managers.includes(e)),s=r.result;return await Promise.all(a.map(async e=>{let t=await n.get_content_reads({epoch:s,content_id:e.id});return{id:e.id.toString(),creator:e.creator,managers:e.managers,active:e.active,sha256:l.from(e.sha256).toString("hex"),epochReads:t.result}}))}static async accrued(e){return(await (0,i.ii)().get_accrued({who:e})).result}static async claim(e){let n=(0,i.ii)(e);return(await n.claim({caller:e})).signAndSend()}static async settleAll(){return a.N.post(s.S.manager.settleAll,{})}static async pending(){return a.N.get(s.S.manager.pending)}static async currentEpoch(){return(await (0,i.ii)().current_epoch()).result}static async forceCloseEpoch(e){let n=(0,i.ii)(e);return(await n.force_close_epoch({admin:e})).signAndSend()}static async becomeManager(e){let n=(0,i.ii)(e);return(await n.set_manager({who:e,enabled:!0})).signAndSend()}static async registerContent(e,n){let t=(0,i.ii)(e),r=await t.register_content({caller:e,sha256:l.from(n)});return(await r.signAndSend()).result}}var c=t(2995),d=t(4869),u=t(1562),h=t(8359);function g(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:r.m.isManager(e),queryFn:()=>o.isManager(e),enabled:!!e})}function m(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:r.m.myContent(e),queryFn:()=>o.myContent(e),enabled:!!e})}function p(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:r.m.accrued(e),queryFn:()=>o.accrued(e),enabled:!!e,refetchInterval:15e3})}function x(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.claim(e)},onSuccess:()=>n.invalidateQueries({queryKey:r.m.all(e)})})}function f(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:r.m.pending(e),queryFn:()=>o.pending(),enabled:!!e,refetchInterval:15e3})}function y(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>o.settleAll(),onSuccess:()=>n.invalidateQueries({queryKey:r.m.all(e)})})}function j(){return(0,c.I)({queryKey:["manager","current-epoch"],queryFn:()=>o.currentEpoch(),refetchInterval:3e4})}function v(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.forceCloseEpoch(e)},onSuccess:()=>{n.invalidateQueries({queryKey:r.m.all(e)}),n.invalidateQueries({queryKey:["manager","current-epoch"]})}})}function b(){let{address:e}=(0,h.v)();return(0,u.n)({mutationFn:n=>{if(!e)throw Error("Connect a wallet first");return o.registerContent(e,n)}})}function w(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.becomeManager(e)},onSuccess:()=>n.invalidateQueries({queryKey:r.m.all(e)})})}},2779:(e,n,t)=>{t.d(n,{p:()=>s});var r=t(4568),i=t(7620),a=t(826);let s=i.forwardRef((e,n)=>{let{className:t,type:i,...s}=e;return(0,r.jsx)("input",{type:i,className:(0,a.cn)("flex h-9 w-full rounded-md border border-input bg-[var(--color-bg-input)] px-3 py-1 text-sm text-foreground transition-colors placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-55",t),ref:n,...s})});s.displayName="Input"},3204:(e,n,t)=>{t.d(n,{J:()=>d});var r=t(4568),i=t(7620),a=t(421),s=i.forwardRef((e,n)=>(0,r.jsx)(a.sG.label,{...e,ref:n,onMouseDown:n=>{var t;n.target.closest("button, input, select, textarea")||(null==(t=e.onMouseDown)||t.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));s.displayName="Label";var l=t(4616),o=t(826);let c=(0,l.F)("text-[13px] text-muted-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=i.forwardRef((e,n)=>{let{className:t,...i}=e;return(0,r.jsx)(s,{ref:n,className:(0,o.cn)(c(),t),...i})});d.displayName=s.displayName},3497:(e,n,t)=>{t.d(n,{Z:()=>r});let r={all:e=>["auth",e],me:e=>[...r.all(e),"me"]}},4710:(e,n,t)=>{t.d(n,{I:()=>a});var r=t(4568);let i={lock:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,r.jsx)("path",{d:"M7 8V6a3 3 0 0 1 6 0v2"})]}),unlock:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,r.jsx)("path",{d:"M7 8V6a3 3 0 0 1 5.8-1"})]}),check:(0,r.jsx)("path",{d:"M4 10.5l4 4 8-9"}),wallet:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"3",y:"5",width:"14",height:"11",rx:"2"}),(0,r.jsx)("path",{d:"M3 8h14"}),(0,r.jsx)("circle",{cx:"13.5",cy:"11.5",r:"1"})]}),key:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"7",cy:"7",r:"3"}),(0,r.jsx)("path",{d:"M9.2 9.2 16 16m-2.5-2.5 1.5-1.5m-4-1 1.5-1.5"})]}),coins:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ellipse",{cx:"8",cy:"6",rx:"4.5",ry:"2.2"}),(0,r.jsx)("path",{d:"M3.5 6v4c0 1.2 2 2.2 4.5 2.2s4.5-1 4.5-2.2V6"}),(0,r.jsx)("path",{d:"M12.5 10.5c2.2.2 4 1.1 4 2.3 0 1.2-2 2.2-4.5 2.2-1 0-1.9-.15-2.6-.4"})]}),external:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M11 4h5v5"}),(0,r.jsx)("path",{d:"M16 4l-7 7"}),(0,r.jsx)("path",{d:"M14 11.5V15a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 15V7a1.5 1.5 0 0 1 1.5-1.5H8"})]}),sparkle:(0,r.jsx)("path",{d:"M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6L10 3z"}),users:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"7.5",cy:"7",r:"2.6"}),(0,r.jsx)("path",{d:"M3 16c0-2.5 2-4.2 4.5-4.2S12 13.5 12 16"}),(0,r.jsx)("path",{d:"M13 6.2a2.4 2.4 0 0 1 0 4.6M14 16c0-2.2-.8-3.5-2-4.2"})]}),upload:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M10 13V4"}),(0,r.jsx)("path",{d:"M6.5 7.5 10 4l3.5 3.5"}),(0,r.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),download:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M10 4v9"}),(0,r.jsx)("path",{d:"M6.5 9.5 10 13l3.5-3.5"}),(0,r.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),clock:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,r.jsx)("path",{d:"M10 6v4l2.5 2"})]}),info:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,r.jsx)("path",{d:"M10 9v4"}),(0,r.jsx)("path",{d:"M10 6.5h.01"})]}),shield:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M10 3l6 2v4c0 4-2.7 6.5-6 8-3.3-1.5-6-4-6-8V5l6-2z"}),(0,r.jsx)("path",{d:"M7.5 10l1.8 1.8L13 8"})]}),"arrow-right":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M4 10h11"}),(0,r.jsx)("path",{d:"M11 6l4 4-4 4"})]}),pen:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M13.5 3.5 16.5 6.5 7 16H4v-3z"}),(0,r.jsx)("path",{d:"M12 5 15 8"})]}),"sign-out":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M8 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8"}),(0,r.jsx)("path",{d:"M12 13l3-3-3-3"}),(0,r.jsx)("path",{d:"M15 10H8"})]}),flag:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M5 17V3"}),(0,r.jsx)("path",{d:"M5 4h9l-2 3 2 3H5"})]})};function a(e){let{name:n,size:t=16,className:a,style:s,...l}=e;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",className:a,style:{verticalAlign:"-0.15em",flexShrink:0,...s},...l,children:i[n]})}},4715:(e,n,t)=>{t.d(n,{T:()=>s});var r=t(4568),i=t(7620),a=t(826);let s=i.forwardRef((e,n)=>{let{className:t,...i}=e;return(0,r.jsx)("textarea",{className:(0,a.cn)("flex min-h-[72px] w-full resize-y rounded-md border border-input bg-[var(--color-bg-input)] px-3 py-2 text-sm leading-relaxed text-foreground transition-colors placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-55",t),ref:n,...i})});s.displayName="Textarea"},6845:(e,n,t)=>{t.d(n,{$:()=>c});var r=t(4568),i=t(7620),a=t(6118),s=t(4616),l=t(826);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:brightness-110",destructive:"bg-destructive text-destructive-foreground hover:brightness-110",outline:"border border-border bg-transparent text-foreground font-medium hover:bg-accent",secondary:"bg-secondary text-secondary-foreground hover:brightness-110",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=i.forwardRef((e,n)=>{let{className:t,variant:i,size:s,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,r.jsx)(u,{className:(0,l.cn)(o({variant:i,size:s,className:t})),ref:n,...d})});c.displayName="Button"},7588:(e,n,t)=>{t.d(n,{D:()=>h,u:()=>u});var r=t(4568),i=t(9664),a=t.n(i),s=t(7620),l=t(6845),o=t(2779),c=t(3204),d=t(4715);function u(e){var n,t,i;let{initial:a,saving:u,error:h,onSave:g,onCancel:m,submitLabel:p="Save brand",savingLabel:x="Saving…"}=e,[f,y]=(0,s.useState)(null!=(n=null==a?void 0:a.name)?n:""),[j,v]=(0,s.useState)(null!=(t=null==a?void 0:a.description)?t:""),[b,w]=(0,s.useState)(null!=(i=null==a?void 0:a.logo)?i:null),[S,M]=(0,s.useState)(null),F=(0,s.useRef)(null);async function N(e){if(M(null),e)try{w(await new Promise((n,t)=>{if(!e.type.startsWith("image/"))return t(Error("Logo must be an image"));if(e.size>524288)return t(Error("Logo must be under 512 KB"));let r=new FileReader;r.onload=()=>n(r.result),r.onerror=()=>t(Error("Could not read the logo file")),r.readAsDataURL(e)}))}catch(e){M(e instanceof Error?e.message:"Invalid logo")}}return(0,r.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),!f.trim())return void M("Community name is required");g({name:f.trim(),description:j.trim(),logo:b})},children:[(0,r.jsx)("p",{className:"hint",style:{marginTop:0},children:"Set up your community brand: how your published content is presented on your public page. You can edit it anytime."}),(0,r.jsxs)(c.J,{htmlFor:"brand-name",children:["Community name",(0,r.jsx)(o.p,{id:"brand-name",value:f,onChange:e=>y(e.target.value),required:!0})]}),(0,r.jsxs)(c.J,{htmlFor:"brand-description",children:["Description",(0,r.jsx)(d.T,{id:"brand-description",value:j,onChange:e=>v(e.target.value)})]}),(0,r.jsxs)(c.J,{htmlFor:"brand-logo",children:["Logo (optional, image under 512 KB)",(0,r.jsx)("input",{id:"brand-logo",ref:F,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",onChange:e=>{var n;return N(null==(n=e.target.files)?void 0:n[0])}})]}),b?(0,r.jsx)("img",{src:b,alt:"Logo preview",style:{width:48,height:48,objectFit:"contain",borderRadius:"var(--radius-md)",marginBottom:8}}):null,(0,r.jsxs)("div",{className:"row tight",children:[(0,r.jsx)(l.$,{type:"submit",disabled:u,children:u?x:p}),m?(0,r.jsx)(l.$,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:u,children:"Cancel"}):null]}),(null!=S?S:h)?(0,r.jsx)("p",{className:"error",children:null!=S?S:h}):null]})}function h(e){let{wallet:n,brand:t,saving:i,error:o,onSave:c}=e,[d,h]=(0,s.useState)(!1);return t?(0,r.jsx)("section",{className:"card",children:d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{style:{marginTop:0},children:"Edit brand"}),(0,r.jsx)(u,{initial:t,saving:i,error:o,onSave:e=>{c(e),h(!1)},onCancel:()=>h(!1)})]}):(0,r.jsxs)("div",{className:"row",style:{alignItems:"center"},children:[(0,r.jsxs)("div",{className:"row tight",style:{alignItems:"center",marginTop:0},children:[t.logo?(0,r.jsx)("img",{src:t.logo,alt:"".concat(t.name," logo"),style:{width:44,height:44,objectFit:"contain",borderRadius:"var(--radius-md)"}}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{style:{margin:0,fontWeight:700},children:t.name}),t.description?(0,r.jsx)("span",{className:"label",children:t.description}):null]})]}),(0,r.jsxs)("div",{className:"row tight",style:{marginTop:0},children:[n?(0,r.jsx)(l.$,{asChild:!0,variant:"outline",size:"sm",children:(0,r.jsx)(a(),{href:"/community/".concat(n),target:"_blank",rel:"noreferrer",children:"View page"})}):null,(0,r.jsx)(l.$,{type:"button",variant:"outline",size:"sm",onClick:()=>h(!0),children:"Edit brand"})]})]})}):(0,r.jsxs)("section",{className:"card",children:[(0,r.jsx)("h2",{style:{marginTop:0},children:"Finish setting up"}),(0,r.jsx)("p",{className:"hint",style:{marginTop:0},children:"Add your community brand so members can find you and recognize your work."}),(0,r.jsx)(l.$,{asChild:!0,children:(0,r.jsx)(a(),{href:"/start",children:"Set up my community"})})]})}},7592:(e,n,t)=>{t.d(n,{p:()=>o});var r=t(4568),i=t(6845),a=t(4710),s=t(8359),l=t(9798);function o(e){let{onSignedIn:n}=e,{address:t}=(0,s.v)(),o=(0,l.go)();async function c(){await o.mutateAsync(),null==n||n()}return(0,r.jsxs)("section",{className:"card center",children:[(0,r.jsx)("span",{className:"label",children:"Step 2 of 2"}),(0,r.jsx)("p",{style:{margin:"6px 0 4px",fontWeight:600},children:"Sign in to your account"}),(0,r.jsx)("p",{className:"hint",style:{marginTop:0},children:"Your wallet is connected. Now sign one message to start a secure session. This is how you open content and publish. No gas, no password."}),(0,r.jsxs)(i.$,{type:"button",onClick:c,disabled:o.isPending||!t,children:[(0,r.jsx)(a.I,{name:"pen",size:15}),o.isPending?"Check your wallet…":"Sign in"]}),o.isError?(0,r.jsx)("p",{className:"error",style:{marginBottom:0},children:o.error instanceof Error?o.error.message:"Sign-in was cancelled or failed. Try again."}):null]})}},9798:(e,n,t)=>{t.d(n,{yj:()=>h,go:()=>g,Rt:()=>m});var r=t(3497),i=t(5620),a=t(7251),s=t(3143);class l{static challenge(e){return s.N.post(a.S.auth.challenge,{address:e})}static verify(e,n){return s.N.post(a.S.auth.verify,{address:e,signature:n})}static logout(){return s.N.post(a.S.auth.logout)}static me(){return s.N.get(a.S.auth.me)}static async signIn(e){var n;let{nonce:t}=await this.challenge(e),r=await (0,i.signMessage)(t,{address:e});if(r.error)throw Error(r.error.message);let a="string"==typeof r.signedMessage?r.signedMessage:function(e){let n="";for(let t of e)n+=String.fromCharCode(t);return btoa(n)}(new Uint8Array(null!=(n=r.signedMessage)?n:[]));return this.verify(e,a)}}var o=t(2995),c=t(4869),d=t(1562),u=t(8359);function h(){let{address:e}=(0,u.v)();return(0,o.I)({queryKey:r.Z.me(e),queryFn:()=>l.me(),enabled:!!e,retry:!1})}function g(){let{address:e}=(0,u.v)(),n=(0,c.jE)();return(0,d.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return l.signIn(e)},onSuccess:()=>n.invalidateQueries({queryKey:r.Z.all(e)})})}function m(){let{address:e}=(0,u.v)(),n=(0,c.jE)();return(0,d.n)({mutationFn:()=>l.logout(),onSuccess:()=>n.invalidateQueries({queryKey:r.Z.all(e)})})}},9932:(e,n,t)=>{t.d(n,{f:()=>p});var r=t(4568),i=t(9664),a=t.n(i),s=t(7620),l=t(6845),o=t(4710),c=t(2779),d=t(3204),u=t(4715),h=t(8359),g=t(6379),m=t(592);function p(){let{address:e}=(0,h.v)(),[n,t]=(0,s.useState)("upload"),[i,p]=(0,s.useState)(""),[x,f]=(0,s.useState)(""),[y,j]=(0,s.useState)(null),[v,b]=(0,s.useState)(null),[w,S]=(0,s.useState)(null),[M,F]=(0,s.useState)(null),[N,C]=(0,s.useState)(null),k=(0,g.so)(),E=(0,m.qv)(),q=(0,g.Xh)();async function I(){if(b(null),!y)return void b("Choose a PDF file first");try{let e=await k.mutateAsync({file:y,title:i,description:x});S(e.draftId),F(e.sha256),t("register")}catch(e){b(e instanceof Error?e.message:"Upload failed (is the API running?)")}}async function A(){if(b(null),e&&M)try{var n,r;let e=new Uint8Array(null!=(r=null==(n=M.match(/.{1,2}/g))?void 0:n.map(e=>parseInt(e,16)))?r:[]),i=await E.mutateAsync(e);C(i.toString()),t("confirm")}catch(e){b(e instanceof Error?e.message:"register_content failed")}}async function _(){if(b(null),w&&N)try{await q.mutateAsync({draftId:w,contentId:N,txHash:""}),t("done")}catch(e){b(e instanceof Error?e.message:"Confirm failed")}}return(0,r.jsxs)("section",{className:"card",children:[(0,r.jsx)("h2",{children:"Publish content"}),(0,r.jsx)("div",{className:"row tight",style:{marginBottom:12},children:[{key:"upload",label:"1 Upload"},{key:"register",label:"2 Sign"},{key:"confirm",label:"3 Publish"}].map(e=>(0,r.jsx)("span",{className:n===e.key||"done"===n&&"confirm"===e.key?"pill accent":"pill",children:e.label},e.key))}),"upload"===n?(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),I()},children:[(0,r.jsxs)(d.J,{htmlFor:"upload-title",children:["Title",(0,r.jsx)(c.p,{id:"upload-title",value:i,onChange:e=>p(e.target.value),required:!0})]}),(0,r.jsxs)(d.J,{htmlFor:"upload-description",children:["Description",(0,r.jsx)(u.T,{id:"upload-description",value:x,onChange:e=>f(e.target.value),required:!0})]}),(0,r.jsxs)(d.J,{htmlFor:"upload-file",children:["PDF file",(0,r.jsx)("input",{id:"upload-file",type:"file",accept:"application/pdf",onChange:e=>{var n,t;return j(null!=(t=null==(n=e.target.files)?void 0:n[0])?t:null)},required:!0})]}),(0,r.jsxs)(l.$,{type:"submit",disabled:k.isPending,children:[(0,r.jsx)(o.I,{name:"upload",size:15}),k.isPending?"Uploading…":"Upload"]})]}):null,"register"===n?(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"hint",children:["Your file is ready and fingerprinted (",(0,r.jsxs)("code",{children:[null==M?void 0:M.slice(0,16),"…"]}),"). Sign to record it on-chain. This proves you’re the author and locks the file so it can’t be swapped later."]}),(0,r.jsxs)(l.$,{type:"button",onClick:A,disabled:E.isPending,children:[(0,r.jsx)(o.I,{name:"pen",size:15}),E.isPending?"Check your wallet…":"Sign & register"]})]}):null,"confirm"===n?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"hint",children:"Almost live. One more click to publish it to your library."}),(0,r.jsxs)(l.$,{type:"button",onClick:_,disabled:q.isPending,children:[(0,r.jsx)(o.I,{name:"check",size:15}),q.isPending?"Publishing…":"Publish"]})]}):null,"done"===n?(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"success",style:{marginTop:0,display:"flex",gap:6,alignItems:"center"},children:[(0,r.jsx)(o.I,{name:"check",size:14})," Published on-chain. It’s live in your library."]}),(0,r.jsxs)("div",{className:"row tight",children:[(0,r.jsxs)(l.$,{type:"button",onClick:function(){b(null),p(""),f(""),j(null),S(null),F(null),C(null),t("upload")},children:[(0,r.jsx)(o.I,{name:"upload",size:15})," Publish another"]}),e?(0,r.jsx)(l.$,{asChild:!0,variant:"outline",size:"sm",children:(0,r.jsx)(a(),{href:"/community/".concat(e),target:"_blank",rel:"noreferrer",children:"View public page →"})}):null]})]}):null,v?(0,r.jsx)("p",{className:"error",children:v}):null]})}}}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/986-dbadb9854814c9a6.js b/prototype/landing/_next/static/chunks/766-e373566c7fdece52.js similarity index 73% rename from prototype/landing/_next/static/chunks/986-dbadb9854814c9a6.js rename to prototype/landing/_next/static/chunks/766-e373566c7fdece52.js index 75fc808..0044f32 100644 --- a/prototype/landing/_next/static/chunks/986-dbadb9854814c9a6.js +++ b/prototype/landing/_next/static/chunks/766-e373566c7fdece52.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[986],{4916:(t,e,i)=>{i.d(e,{FH:()=>y});var s="1.3.25";function o(t,e,i){return Math.max(t,Math.min(e,i))}var r=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let i=o(0,this.currentTime/this.duration,1),s=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*s}else if(this.lerp){var i,s,r,n;this.value=(i=this.value,s=this.to,r=60*this.lerp,(1-(n=1-Math.exp(-r*t)))*i+n*s),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:s,easing:o,onStart:r,onUpdate:n}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=n}},n=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(t,e,{autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...s){clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(this,s)},e)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},l=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}};let h=100/6,a={passive:!1};function c(t,e){return 1===t?h:2===t?e:1}var u=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new l;constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,a),this.element.addEventListener("touchstart",this.onTouchStart,a),this.element.addEventListener("touchmove",this.onTouchMove,a),this.element.addEventListener("touchend",this.onTouchEnd,a)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,a),this.element.removeEventListener("touchstart",this.onTouchStart,a),this.element.removeEventListener("touchmove",this.onTouchMove,a),this.element.removeEventListener("touchend",this.onTouchEnd,a)}onTouchStart=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.options.touchMultiplier,o=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:o},this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t,o=c(s,this.window.width),r=c(s,this.window.height);e*=o,i*=r,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};let d=t=>Math.min(1,1.001-2**(-10*t));var p=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new r;emitter=new l;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:o=!0,syncTouch:r=!1,syncTouchLerp:l=.075,touchInertiaExponent:h=1.7,duration:a,easing:c,lerp:p=.1,infinite:f=!1,orientation:m="vertical",gestureOrientation:v="horizontal"===m?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:y=1,autoResize:w=!0,prevent:S,virtualScroll:b,overscroll:E=!0,autoRaf:O=!1,anchors:C=!1,autoToggle:T=!1,allowNestedScroll:q=!1,__experimental__naiveDimensions:z=!1,naiveDimensions:M=z,stopInertiaOnNavigate:N=!1}={}){window.lenisVersion=s,window.lenis||(window.lenis={}),window.lenis.version=s,"horizontal"===m&&(window.lenis.horizontal=!0),!0===r&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),t&&t!==document.documentElement||(t=window),"number"==typeof a&&"function"!=typeof c?c=d:"function"==typeof c&&"number"!=typeof a&&(a=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:o,syncTouch:r,syncTouchLerp:l,touchInertiaExponent:h,duration:a,easing:c,lerp:p,infinite:f,gestureOrientation:v,orientation:m,touchMultiplier:g,wheelMultiplier:y,autoResize:w,prevent:S,virtualScroll:b,overscroll:E,autoRaf:O,anchors:C,autoToggle:T,allowNestedScroll:q,naiveDimensions:M,stopInertiaOnNavigate:N},this.dimensions=new n(t,e,{autoResize:w}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new u(i,{touchMultiplier:g,wheelMultiplier:y}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName?.includes("overflow")&&t.target===this.rootElement&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){let t=e.find(t=>i.host===t.host&&i.pathname===t.pathname&&t.hash);if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=decodeURIComponent(t.hash);this.scrollTo(i,e);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname))return void this.reset()};onPointerDown=t=>{1===t.button&&this.reset()};isTouchOnSelectionHandle(t){let e=window.getSelection();if(!e||e.isCollapsed||0===e.rangeCount)return!1;let i=t.targetTouches[0]??t.changedTouches[0];if(!i)return!1;let s=e.getRangeAt(0).getClientRects();if(0===s.length)return!1;let o=s[0],r=s[s.length-1],n=40>=Math.hypot(i.clientX-o.left,i.clientY-o.top),l=40>=Math.hypot(i.clientX-r.right,i.clientY-r.bottom);return n||l}onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:s}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:s}),s.ctrlKey||s.lenisStopPropagation)return;let o=s.type.includes("touch"),r=s.type.includes("wheel");if(o&&this.isIos&&("touchstart"===s.type&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(s)),this._isDraggingSelection)){"touchend"===s.type&&(this._isDraggingSelection=!1);return}this.isTouching="touchstart"===s.type||"touchmove"===s.type;let n=0===e&&0===i;if(this.options.syncTouch&&o&&"touchstart"===s.type&&n&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(n||l)return;let h=s.composedPath();h=h.slice(0,h.indexOf(this.rootElement));let a=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(h.find(t=>t instanceof HTMLElement&&("function"==typeof a&&a?.(t)||t.hasAttribute?.("data-lenis-prevent")||"vertical"===c&&t.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===c&&t.hasAttribute?.("data-lenis-prevent-horizontal")||o&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(t,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let u=i;"both"===this.options.gestureOrientation?u=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(u=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();let d=o&&this.options.syncTouch,p=o&&"touchend"===s.type;p&&(u=Math.sign(u)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+u,{programmatic:!1,...d?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:s=!1,programmatic:r=!0,lerp:n=r?this.options.lerp:void 0,duration:l=r?this.options.duration:void 0,easing:h=r?this.options.easing:void 0,onStart:a,onComplete:c,force:u=!1,userData:p}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=t,m=e;if("string"==typeof f&&["top","left","start","#"].includes(f))f=0;else if("string"==typeof f&&["bottom","right","end"].includes(f))f=this.limit;else{let t=null;if("string"==typeof f?(t=f.startsWith("#")?document.getElementById(f.slice(1)):document.querySelector(f))||("#top"===f?f=0:console.warn("Lenis: Target not found",f)):f instanceof HTMLElement&&f?.nodeType&&(t=f),t){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();m-=this.isHorizontal?t.left:t.top}let e=t.getBoundingClientRect(),i=getComputedStyle(t),s=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),o=getComputedStyle(this.rootElement),r=this.isHorizontal?Number.parseFloat(o.scrollPaddingLeft):Number.parseFloat(o.scrollPaddingTop);f=(this.isHorizontal?e.left:e.top)+this.animatedScroll-(Number.isNaN(s)?0:s)-(Number.isNaN(r)?0:r)}}if("number"==typeof f){if(f+=m,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;let t=f-this.animatedScroll;t>this.limit/2?f-=this.limit:t<-this.limit/2&&(f+=this.limit)}}else f=o(0,f,this.limit);if(f===this.targetScroll){a?.(this),c?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=f),"number"==typeof l&&"function"!=typeof h?h=d:"function"==typeof h&&"number"!=typeof l&&(l=1),this.animate.fromTo(this.animatedScroll,f,{duration:l,easing:h,lerp:n,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),r&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(t,{deltaX:e,deltaY:i}){let s,o,r,n,l,h,a,c,u,d,p,f,m,v,g,y,w=Date.now();t._lenis||(t._lenis={});let S=t._lenis;if(w-(S.time??0)>2e3){S.time=Date.now();let e=window.getComputedStyle(t);if(S.computedStyle=e,s=["auto","overlay","scroll"].includes(e.overflowX),o=["auto","overlay","scroll"].includes(e.overflowY),l=["auto"].includes(e.overscrollBehaviorX),h=["auto"].includes(e.overscrollBehaviorY),S.hasOverflowX=s,S.hasOverflowY=o,!(s||o))return!1;a=t.scrollWidth,c=t.scrollHeight,u=t.clientWidth,d=t.clientHeight,r=a>u,n=c>d,S.isScrollableX=r,S.isScrollableY=n,S.scrollWidth=a,S.scrollHeight=c,S.clientWidth=u,S.clientHeight=d,S.hasOverscrollBehaviorX=l,S.hasOverscrollBehaviorY=h}else r=S.isScrollableX,n=S.isScrollableY,s=S.hasOverflowX,o=S.hasOverflowY,a=S.scrollWidth,c=S.scrollHeight,u=S.clientWidth,d=S.clientHeight,l=S.hasOverscrollBehaviorX,h=S.hasOverscrollBehaviorY;if(!(s&&r||o&&n))return!1;let b=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if("horizontal"===b)p=Math.round(t.scrollLeft),f=a-u,m=e,v=s,g=r,y=l;else{if("vertical"!==b)return!1;p=Math.round(t.scrollTop),f=c-d,m=i,v=o,g=n,y=h}return!y&&(p>=f||p<=0)||(m>0?p0)&&v&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(t=>{this.rootElement.classList.add(t)})}cleanUpClassName(){for(let t of Array.from(this.rootElement.classList))("lenis"===t||t.startsWith("lenis-"))&&this.rootElement.classList.remove(t)}},f=i(7620),m=i(4568);let v=(0,f.createContext)(null),g=new class{set(t){for(let e of(this.state=t,this.listeners))e(this.state)}subscribe(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(e=>e!==t)}}get(){return this.state}constructor(t){this.listeners=[],this.state=t}}(null),y=(0,f.forwardRef)((t,e)=>{var i;let{children:s,root:o=!1,options:r={},autoRaf:n=!0,className:l="",...h}=t,a=(0,f.useRef)(null),c=(0,f.useRef)(null),[u,d]=(0,f.useState)(void 0);(0,f.useImperativeHandle)(e,()=>({wrapper:a.current,content:c.current,lenis:u}),[u]),(0,f.useEffect)(()=>{var t;let e=new p({...r,...a.current&&c.current&&{wrapper:a.current,content:c.current},autoRaf:null!=(t=null==r?void 0:r.autoRaf)?t:n});return d(e),()=>{e.destroy(),d(void 0)}},[n,JSON.stringify({...r,wrapper:null,content:null})]);let y=(0,f.useRef)([]),w=(0,f.useCallback)((t,e)=>{y.current.push({callback:t,priority:e}),y.current.sort((t,e)=>t.priority-e.priority)},[]),S=(0,f.useCallback)(t=>{y.current=y.current.filter(e=>e.callback!==t)},[]);return((0,f.useEffect)(()=>{if(o&&u)return g.set({lenis:u,addCallback:w,removeCallback:S}),()=>g.set(null)},[o,u,w,S]),(0,f.useEffect)(()=>{if(!u)return;let t=t=>{for(let{callback:e}of y.current)e(t)};return u.on("scroll",t),()=>{u.off("scroll",t)}},[u]),s)?(0,m.jsx)(v.Provider,{value:{lenis:u,addCallback:w,removeCallback:S},children:o&&"asChild"!==o?s:(0,m.jsx)("div",{ref:a,className:"".concat(l," ").concat(null!=(i=null==u?void 0:u.className)?i:"").trim(),...h,children:(0,m.jsx)("div",{ref:c,children:s})})}):null})},7541:(t,e,i)=>{var s=i(3041);i.o(s,"usePathname")&&i.d(e,{usePathname:function(){return s.usePathname}})},7753:(t,e,i)=>{i.d(e,{E:()=>s});var s=function(){return null}},9292:(t,e,i)=>{i.d(e,{E:()=>p});var s=i(9950),o=i(1646),r=i(5635),n=i(2844),l=class extends n.Q{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,i){let r=e.queryKey,n=e.queryHash??(0,s.F$)(r,e),l=this.get(n);return l||(l=new o.X({client:t,queryKey:r,queryHash:n,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(r)}),this.add(l)),l}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){r.jG.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s.MK)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,s.MK)(t,e)):e}notify(t){r.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){r.jG.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){r.jG.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},h=i(730),a=class extends n.Q{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#i=new Map,this.#s=0}#e;#i;#s;build(t,e,i){let s=new h.s({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){this.#e.add(t);let e=c(t);if("string"==typeof e){let i=this.#i.get(e);i?i.push(t):this.#i.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){let e=c(t);if("string"==typeof e){let i=this.#i.get(e);if(i)if(i.length>1){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}else i[0]===t&&this.#i.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=c(t);if("string"!=typeof e)return!0;{let i=this.#i.get(e),s=i?.find(t=>"pending"===t.state.status);return!s||s===t}}runNext(t){let e=c(t);if("string"!=typeof e)return Promise.resolve();{let i=this.#i.get(e)?.find(e=>e!==t&&e.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){r.jG.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#i.clear()})}getAll(){return Array.from(this.#e)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s.nJ)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,s.nJ)(t,e))}notify(t){r.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return r.jG.batch(()=>Promise.all(t.map(t=>t.continue().catch(s.lQ))))}};function c(t){return t.options.scope?.id}var u=i(9382),d=i(4189),p=class{#o;#r;#n;#l;#h;#a;#c;#u;constructor(t={}){this.#o=t.queryCache||new l,this.#r=t.mutationCache||new a,this.#n=t.defaultOptions||{},this.#l=new Map,this.#h=new Map,this.#a=0}mount(){this.#a++,1===this.#a&&(this.#c=u.m.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#o.onFocus())}),this.#u=d.t.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#o.onOnline())}))}unmount(){this.#a--,0===this.#a&&(this.#c?.(),this.#c=void 0,this.#u?.(),this.#u=void 0)}isFetching(t){return this.#o.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#r.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#o.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),i=this.#o.build(this,e),o=i.state.data;return void 0===o?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime((0,s.d2)(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(o))}getQueriesData(t){return this.#o.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,i){let o=this.defaultQueryOptions({queryKey:t}),r=this.#o.get(o.queryHash),n=r?.state.data,l=(0,s.Zw)(e,n);if(void 0!==l)return this.#o.build(this,o).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return r.jG.batch(()=>this.#o.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#o.get(e.queryHash)?.state}removeQueries(t){let e=this.#o;r.jG.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let i=this.#o;return r.jG.batch(()=>(i.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let i={revert:!0,...e};return Promise.all(r.jG.batch(()=>this.#o.findAll(t).map(t=>t.cancel(i)))).then(s.lQ).catch(s.lQ)}invalidateQueries(t,e={}){return r.jG.batch(()=>(this.#o.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let i={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(r.jG.batch(()=>this.#o.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(s.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(s.lQ)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let i=this.#o.build(this,e);return i.isStaleByTime((0,s.d2)(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s.lQ).catch(s.lQ)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s.lQ).catch(s.lQ)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return d.t.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#o}getMutationCache(){return this.#r}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#l.set((0,s.EN)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#l.values()],i={};return e.forEach(e=>{(0,s.Cp)(t,e.queryKey)&&Object.assign(i,e.defaultOptions)}),i}setMutationDefaults(t,e){this.#h.set((0,s.EN)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#h.values()],i={};return e.forEach(e=>{(0,s.Cp)(t,e.mutationKey)&&Object.assign(i,e.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,s.F$)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===s.hT&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#o.clear(),this.#r.clear()}}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[766],{4916:(t,e,i)=>{i.d(e,{FH:()=>y});var s="1.3.25";function o(t,e,i){return Math.max(t,Math.min(e,i))}var r=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let i=o(0,this.currentTime/this.duration,1),s=(e=i>=1)?1:this.easing(i);this.value=this.from+(this.to-this.from)*s}else if(this.lerp){var i,s,r,n;this.value=(i=this.value,s=this.to,r=60*this.lerp,(1-(n=1-Math.exp(-r*t)))*i+n*s),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,e=!0)}else this.value=this.to,e=!0;e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:s,easing:o,onStart:r,onUpdate:n}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,r?.(),this.onUpdate=n}},n=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(t,e,{autoResize:i=!0,debounce:s=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...s){clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(this,s)},e)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},l=class{events={};emit(t,...e){let i=this.events[t]||[];for(let t=0,s=i.length;t{this.events[t]=this.events[t]?.filter(t=>e!==t)}}off(t,e){this.events[t]=this.events[t]?.filter(t=>e!==t)}destroy(){this.events={}}};let h=100/6,a={passive:!1};function c(t,e){return 1===t?h:2===t?e:1}var u=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new l;constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,a),this.element.addEventListener("touchstart",this.onTouchStart,a),this.element.addEventListener("touchmove",this.onTouchMove,a),this.element.addEventListener("touchend",this.onTouchEnd,a)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,a),this.element.removeEventListener("touchstart",this.onTouchStart,a),this.element.removeEventListener("touchmove",this.onTouchMove,a),this.element.removeEventListener("touchend",this.onTouchEnd,a)}onTouchStart=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{let{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,s=-(e-this.touchStart.x)*this.options.touchMultiplier,o=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:s,y:o},this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:s}=t,o=c(s,this.window.width),r=c(s,this.window.height);e*=o,i*=r,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};let d=t=>Math.min(1,1.001-2**(-10*t));var p=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new r;emitter=new l;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:o=!0,syncTouch:r=!1,syncTouchLerp:l=.075,touchInertiaExponent:h=1.7,duration:a,easing:c,lerp:p=.1,infinite:f=!1,orientation:m="vertical",gestureOrientation:v="horizontal"===m?"both":"vertical",touchMultiplier:g=1,wheelMultiplier:y=1,autoResize:w=!0,prevent:S,virtualScroll:b,overscroll:E=!0,autoRaf:O=!1,anchors:C=!1,autoToggle:T=!1,allowNestedScroll:q=!1,__experimental__naiveDimensions:z=!1,naiveDimensions:M=z,stopInertiaOnNavigate:N=!1}={}){window.lenisVersion=s,window.lenis||(window.lenis={}),window.lenis.version=s,"horizontal"===m&&(window.lenis.horizontal=!0),!0===r&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),t&&t!==document.documentElement||(t=window),"number"==typeof a&&"function"!=typeof c?c=d:"function"==typeof c&&"number"!=typeof a&&(a=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:o,syncTouch:r,syncTouchLerp:l,touchInertiaExponent:h,duration:a,easing:c,lerp:p,infinite:f,gestureOrientation:v,orientation:m,touchMultiplier:g,wheelMultiplier:y,autoResize:w,prevent:S,virtualScroll:b,overscroll:E,autoRaf:O,anchors:C,autoToggle:T,allowNestedScroll:q,naiveDimensions:M,stopInertiaOnNavigate:N},this.dimensions=new n(t,e,{autoResize:w}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=new u(i,{touchMultiplier:g,wheelMultiplier:y}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=t=>{t.propertyName?.includes("overflow")&&t.target===this.rootElement&&this.checkOverflow()};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{let e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.href).map(t=>new URL(t.href)),i=new URL(window.location.href);if(this.options.anchors){let t=e.find(t=>i.host===t.host&&i.pathname===t.pathname&&t.hash);if(t){let e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=decodeURIComponent(t.hash);this.scrollTo(i,e);return}}if(this.options.stopInertiaOnNavigate&&e.some(t=>i.host===t.host&&i.pathname!==t.pathname))return void this.reset()};onPointerDown=t=>{1===t.button&&this.reset()};isTouchOnSelectionHandle(t){let e=window.getSelection();if(!e||e.isCollapsed||0===e.rangeCount)return!1;let i=t.targetTouches[0]??t.changedTouches[0];if(!i)return!1;let s=e.getRangeAt(0).getClientRects();if(0===s.length)return!1;let o=s[0],r=s[s.length-1],n=40>=Math.hypot(i.clientX-o.left,i.clientY-o.top),l=40>=Math.hypot(i.clientX-r.right,i.clientY-r.bottom);return n||l}onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;let{deltaX:e,deltaY:i,event:s}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:s}),s.ctrlKey||s.lenisStopPropagation)return;let o=s.type.includes("touch"),r=s.type.includes("wheel");if(o&&this.isIos&&("touchstart"===s.type&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(s)),this._isDraggingSelection)){"touchend"===s.type&&(this._isDraggingSelection=!1);return}this.isTouching="touchstart"===s.type||"touchmove"===s.type;let n=0===e&&0===i;if(this.options.syncTouch&&o&&"touchstart"===s.type&&n&&!this.isStopped&&!this.isLocked)return void this.reset();let l="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(n||l)return;let h=s.composedPath();h=h.slice(0,h.indexOf(this.rootElement));let a=this.options.prevent,c=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if(h.find(t=>t instanceof HTMLElement&&("function"==typeof a&&a?.(t)||t.hasAttribute?.("data-lenis-prevent")||"vertical"===c&&t.hasAttribute?.("data-lenis-prevent-vertical")||"horizontal"===c&&t.hasAttribute?.("data-lenis-prevent-horizontal")||o&&t.hasAttribute?.("data-lenis-prevent-touch")||r&&t.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(t,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked){s.cancelable&&s.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),s.lenisStopPropagation=!0;return}let u=i;"both"===this.options.gestureOrientation?u=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(u=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll0||this.animatedScroll===this.limit&&i<0))&&(s.lenisStopPropagation=!0),s.cancelable&&s.preventDefault();let d=o&&this.options.syncTouch,p=o&&"touchend"===s.type;p&&(u=Math.sign(u)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+u,{programmatic:!1,...d?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(!1===this.isScrolling||"native"===this.isScrolling){let t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.removeProperty("overflow");this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle)return void this.rootElement.style.setProperty("overflow","clip");this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:s=!1,programmatic:r=!0,lerp:n=r?this.options.lerp:void 0,duration:l=r?this.options.duration:void 0,easing:h=r?this.options.easing:void 0,onStart:a,onComplete:c,force:u=!1,userData:p}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=t,m=e;if("string"==typeof f&&["top","left","start","#"].includes(f))f=0;else if("string"==typeof f&&["bottom","right","end"].includes(f))f=this.limit;else{let t=null;if("string"==typeof f?(t=f.startsWith("#")?document.getElementById(f.slice(1)):document.querySelector(f))||("#top"===f?f=0:console.warn("Lenis: Target not found",f)):f instanceof HTMLElement&&f?.nodeType&&(t=f),t){if(this.options.wrapper!==window){let t=this.rootElement.getBoundingClientRect();m-=this.isHorizontal?t.left:t.top}let e=t.getBoundingClientRect(),i=getComputedStyle(t),s=this.isHorizontal?Number.parseFloat(i.scrollMarginLeft):Number.parseFloat(i.scrollMarginTop),o=getComputedStyle(this.rootElement),r=this.isHorizontal?Number.parseFloat(o.scrollPaddingLeft):Number.parseFloat(o.scrollPaddingTop);f=(this.isHorizontal?e.left:e.top)+this.animatedScroll-(Number.isNaN(s)?0:s)-(Number.isNaN(r)?0:r)}}if("number"==typeof f){if(f+=m,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;let t=f-this.animatedScroll;t>this.limit/2?f-=this.limit:t<-this.limit/2&&(f+=this.limit)}}else f=o(0,f,this.limit);if(f===this.targetScroll){a?.(this),c?.(this);return}if(this.userData=p??{},i){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=f),"number"==typeof l&&"function"!=typeof h?h=d:"function"==typeof h&&"number"!=typeof l&&(l=1),this.animate.fromTo(this.animatedScroll,f,{duration:l,easing:h,lerp:n,onStart:()=>{s&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),r&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(t,{deltaX:e,deltaY:i}){let s,o,r,n,l,h,a,c,u,d,p,f,m,v,g,y,w=Date.now();t._lenis||(t._lenis={});let S=t._lenis;if(w-(S.time??0)>2e3){S.time=Date.now();let e=window.getComputedStyle(t);if(S.computedStyle=e,s=["auto","overlay","scroll"].includes(e.overflowX),o=["auto","overlay","scroll"].includes(e.overflowY),l=["auto"].includes(e.overscrollBehaviorX),h=["auto"].includes(e.overscrollBehaviorY),S.hasOverflowX=s,S.hasOverflowY=o,!(s||o))return!1;a=t.scrollWidth,c=t.scrollHeight,u=t.clientWidth,d=t.clientHeight,r=a>u,n=c>d,S.isScrollableX=r,S.isScrollableY=n,S.scrollWidth=a,S.scrollHeight=c,S.clientWidth=u,S.clientHeight=d,S.hasOverscrollBehaviorX=l,S.hasOverscrollBehaviorY=h}else r=S.isScrollableX,n=S.isScrollableY,s=S.hasOverflowX,o=S.hasOverflowY,a=S.scrollWidth,c=S.scrollHeight,u=S.clientWidth,d=S.clientHeight,l=S.hasOverscrollBehaviorX,h=S.hasOverscrollBehaviorY;if(!(s&&r||o&&n))return!1;let b=Math.abs(e)>=Math.abs(i)?"horizontal":"vertical";if("horizontal"===b)p=Math.round(t.scrollLeft),f=a-u,m=e,v=s,g=r,y=l;else{if("vertical"!==b)return!1;p=Math.round(t.scrollTop),f=c-d,m=i,v=o,g=n,y=h}return!y&&(p>=f||p<=0)||(m>0?p0)&&v&&g}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){let t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){var t;return this.options.infinite?(this.animatedScroll%(t=this.limit)+t)%t:this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(t=>{this.rootElement.classList.add(t)})}cleanUpClassName(){for(let t of Array.from(this.rootElement.classList))("lenis"===t||t.startsWith("lenis-"))&&this.rootElement.classList.remove(t)}},f=i(7620),m=i(4568);let v=(0,f.createContext)(null),g=new class{set(t){for(let e of(this.state=t,this.listeners))e(this.state)}subscribe(t){return this.listeners=[...this.listeners,t],()=>{this.listeners=this.listeners.filter(e=>e!==t)}}get(){return this.state}constructor(t){this.listeners=[],this.state=t}}(null),y=(0,f.forwardRef)((t,e)=>{var i;let{children:s,root:o=!1,options:r={},autoRaf:n=!0,className:l="",...h}=t,a=(0,f.useRef)(null),c=(0,f.useRef)(null),[u,d]=(0,f.useState)(void 0);(0,f.useImperativeHandle)(e,()=>({wrapper:a.current,content:c.current,lenis:u}),[u]),(0,f.useEffect)(()=>{var t;let e=new p({...r,...a.current&&c.current&&{wrapper:a.current,content:c.current},autoRaf:null!=(t=null==r?void 0:r.autoRaf)?t:n});return d(e),()=>{e.destroy(),d(void 0)}},[n,JSON.stringify({...r,wrapper:null,content:null})]);let y=(0,f.useRef)([]),w=(0,f.useCallback)((t,e)=>{y.current.push({callback:t,priority:e}),y.current.sort((t,e)=>t.priority-e.priority)},[]),S=(0,f.useCallback)(t=>{y.current=y.current.filter(e=>e.callback!==t)},[]);return((0,f.useEffect)(()=>{if(o&&u)return g.set({lenis:u,addCallback:w,removeCallback:S}),()=>g.set(null)},[o,u,w,S]),(0,f.useEffect)(()=>{if(!u)return;let t=t=>{for(let{callback:e}of y.current)e(t)};return u.on("scroll",t),()=>{u.off("scroll",t)}},[u]),s)?(0,m.jsx)(v.Provider,{value:{lenis:u,addCallback:w,removeCallback:S},children:o&&"asChild"!==o?s:(0,m.jsx)("div",{ref:a,className:"".concat(l," ").concat(null!=(i=null==u?void 0:u.className)?i:"").trim(),...h,children:(0,m.jsx)("div",{ref:c,children:s})})}):null})},7753:(t,e,i)=>{i.d(e,{E:()=>s});var s=function(){return null}},9292:(t,e,i)=>{i.d(e,{E:()=>p});var s=i(9950),o=i(1646),r=i(5635),n=i(2844),l=class extends n.Q{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,i){let r=e.queryKey,n=e.queryHash??(0,s.F$)(r,e),l=this.get(n);return l||(l=new o.X({client:t,queryKey:r,queryHash:n,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(r)}),this.add(l)),l}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){r.jG.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s.MK)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,s.MK)(t,e)):e}notify(t){r.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){r.jG.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){r.jG.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},h=i(730),a=class extends n.Q{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#i=new Map,this.#s=0}#e;#i;#s;build(t,e,i){let s=new h.s({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){this.#e.add(t);let e=c(t);if("string"==typeof e){let i=this.#i.get(e);i?i.push(t):this.#i.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){let e=c(t);if("string"==typeof e){let i=this.#i.get(e);if(i)if(i.length>1){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}else i[0]===t&&this.#i.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=c(t);if("string"!=typeof e)return!0;{let i=this.#i.get(e),s=i?.find(t=>"pending"===t.state.status);return!s||s===t}}runNext(t){let e=c(t);if("string"!=typeof e)return Promise.resolve();{let i=this.#i.get(e)?.find(e=>e!==t&&e.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){r.jG.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#i.clear()})}getAll(){return Array.from(this.#e)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s.nJ)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,s.nJ)(t,e))}notify(t){r.jG.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return r.jG.batch(()=>Promise.all(t.map(t=>t.continue().catch(s.lQ))))}};function c(t){return t.options.scope?.id}var u=i(9382),d=i(4189),p=class{#o;#r;#n;#l;#h;#a;#c;#u;constructor(t={}){this.#o=t.queryCache||new l,this.#r=t.mutationCache||new a,this.#n=t.defaultOptions||{},this.#l=new Map,this.#h=new Map,this.#a=0}mount(){this.#a++,1===this.#a&&(this.#c=u.m.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#o.onFocus())}),this.#u=d.t.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#o.onOnline())}))}unmount(){this.#a--,0===this.#a&&(this.#c?.(),this.#c=void 0,this.#u?.(),this.#u=void 0)}isFetching(t){return this.#o.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#r.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#o.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),i=this.#o.build(this,e),o=i.state.data;return void 0===o?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime((0,s.d2)(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(o))}getQueriesData(t){return this.#o.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,i){let o=this.defaultQueryOptions({queryKey:t}),r=this.#o.get(o.queryHash),n=r?.state.data,l=(0,s.Zw)(e,n);if(void 0!==l)return this.#o.build(this,o).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return r.jG.batch(()=>this.#o.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#o.get(e.queryHash)?.state}removeQueries(t){let e=this.#o;r.jG.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let i=this.#o;return r.jG.batch(()=>(i.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let i={revert:!0,...e};return Promise.all(r.jG.batch(()=>this.#o.findAll(t).map(t=>t.cancel(i)))).then(s.lQ).catch(s.lQ)}invalidateQueries(t,e={}){return r.jG.batch(()=>(this.#o.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let i={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(r.jG.batch(()=>this.#o.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(s.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(s.lQ)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let i=this.#o.build(this,e);return i.isStaleByTime((0,s.d2)(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s.lQ).catch(s.lQ)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s.lQ).catch(s.lQ)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return d.t.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#o}getMutationCache(){return this.#r}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#l.set((0,s.EN)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#l.values()],i={};return e.forEach(e=>{(0,s.Cp)(t,e.queryKey)&&Object.assign(i,e.defaultOptions)}),i}setMutationDefaults(t,e){this.#h.set((0,s.EN)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#h.values()],i={};return e.forEach(e=>{(0,s.Cp)(t,e.mutationKey)&&Object.assign(i,e.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,s.F$)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===s.hT&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#o.clear(),this.#r.clear()}}}}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/131-147d95869be10e39.js b/prototype/landing/_next/static/chunks/895-362a009af07859ea.js similarity index 93% rename from prototype/landing/_next/static/chunks/131-147d95869be10e39.js rename to prototype/landing/_next/static/chunks/895-362a009af07859ea.js index 7501a04..f11ff63 100644 --- a/prototype/landing/_next/static/chunks/131-147d95869be10e39.js +++ b/prototype/landing/_next/static/chunks/895-362a009af07859ea.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[131],{421:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(7620),o=n(7509),i=n(6118),l=n(4568),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},1715:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(7620);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let r;n.d(t,{UC:()=>tk,ZL:()=>tN,Kq:()=>tS,bL:()=>tA,l9:()=>tP});var o,i=n(7620),l=n.t(i,2);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var u=n(1715),s=n(4568);function c(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r);o.displayName=t+"Context";let l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,c=i.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(n,a,u={}){let{optional:s=!1}=u,c=a?.[e]?.[l]||o,f=i.useContext(c);if(f)return f;if(void 0!==r)return r;if(!s)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 o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var f=n(421);function d(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var p="dismissableLayer.update",m=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:b,onDismiss:E,...R}=e,C=i.useContext(m),[T,L]=i.useState(null),O=null!=(r=null==T?void 0:T.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,S]=i.useState({}),A=(0,u.s)(t,L),P=Array.from(C.layers),[N]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),k=N?P.indexOf(N):-1,D=T?P.indexOf(T):-1,j=C.layersWithOutsidePointerEventsDisabled.size>0,M=D>=k,_=i.useRef(!1),W=function(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:a,shouldHandlePointerDownOutside:u=v}=t,s=d(e),c=i.useRef(!1),f=i.useRef(!1),p=i.useRef(new Map),m=i.useRef(()=>{});return i.useEffect(()=>{function e(){f.current=!1,l.current=!1,p.current.clear()}function t(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&m.current()},0)}function n(e){f.current&&p.current.set(e.type,!1)}let i=t=>{if(t.target&&!c.current){let n=function(){r.removeEventListener("click",m.current);let t=Array.from(p.current.values()).some(Boolean);e(),t||g("dismissableLayer.pointerDownOutside",s,i,{discrete:!0})};if(!u(t.target)){r.removeEventListener("click",m.current),e(),c.current=!1;return}let i={originalEvent:t};f.current=!0,l.current=o&&0===t.button,p.current.clear(),o&&0===t.button?(r.removeEventListener("click",m.current),m.current=n,r.addEventListener("click",m.current,{once:!0})):n()}else r.removeEventListener("click",m.current),e();c.current=!1},d=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of d)r.addEventListener(e,t,!0),r.addEventListener(e,n);let h=window.setTimeout(()=>{r.addEventListener("pointerdown",i)},0);return()=>{for(let e of(window.clearTimeout(h),r.removeEventListener("pointerdown",i),r.removeEventListener("click",m.current),d))r.removeEventListener(e,t,!0),r.removeEventListener(e,n)}},[r,s,o,l,a,u]),{onPointerDownCapture:()=>c.current=!0}}(e=>{null==w||w(e),null==b||b(e),e.defaultPrevented||null==E||E()},{ownerDocument:O,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:_,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return M&&!t},[C.branches,M])}),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=d(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&g("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{if(c&&_.current)return;let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==x||x(e),null==b||b(e),e.defaultPrevented||null==E||E())},O),I=!!T&&D===P.length-1,H=d(e=>{"Escape"===e.key&&(null==h||h(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))});return i.useEffect(()=>{if(I)return O.addEventListener("keydown",H,{capture:!0}),()=>O.removeEventListener("keydown",H,{capture:!0})},[O,I,H]),i.useEffect(()=>{if(T)return l&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(o=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(T)),C.layers.add(T),y(),()=>{l&&(C.layersWithOutsidePointerEventsDisabled.delete(T),0===C.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=o))}},[T,O,l,C]),i.useEffect(()=>()=>{T&&(C.layers.delete(T),C.layersWithOutsidePointerEventsDisabled.delete(T),y())},[T,C]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,s.jsx)(f.sG.div,{...R,ref:A,style:{pointerEvents:j?M?"auto":"none":void 0,...e.style},onFocusCapture:a(e.onFocusCapture,F.onFocusCapture),onBlurCapture:a(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,W.onPointerDownCapture)})});h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(m),r=i.useRef(null),o=(0,u.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(f.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var v=()=>!0;function y(){let e=new CustomEvent(p);document.dispatchEvent(e)}function g(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,f.hO)(i,l):i.dispatchEvent(l)}var w=globalThis?.document?i.useLayoutEffect:()=>{},x=l[" useId ".trim().toString()]||(()=>void 0),b=0;let E=["top","right","bottom","left"],R=Math.min,C=Math.max,T=Math.round,L=Math.floor,O=e=>({x:e,y:e}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e,t){return"function"==typeof e?e(t):e}function P(e){return e.split("-")[0]}function N(e){return e.split("-")[1]}function k(e){return"x"===e?"y":"x"}function D(e){return"y"===e?"height":"width"}function j(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function M(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let _=["left","right"],W=["right","left"],F=["top","bottom"],I=["bottom","top"];function H(e){let t=P(e);return S[t]+e.slice(t.length)}function $(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function B(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function z(e,t,n){let r,{reference:o,floating:i}=e,l=j(t),a=k(j(t)),u=D(a),s=P(t),c=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[u]/2-i[u]/2;switch(s){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=N(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function V(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=A(t,e),m=$(p),h=a[d?"floating"===f?"reference":"floating":f],v=B(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,g=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(g))&&await (null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},x=B(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}let U=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:V},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=z(s,r,u),d=r,p=0,m={};for(let n=0;ne[t]>=0)}let Y=new Set(["left","top"]);async function q(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=P(n),a=N(n),u="y"===j(n),s=Y.has(l)?-1:1,c=i&&u?-1:1,f=A(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*c,y:d*s}:{x:d*s,y:p*c}}function Z(){return"undefined"!=typeof window}function K(e){return ee(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Q(e){var t;return null==(t=(ee(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ee(e){return!!Z()&&(e instanceof Node||e instanceof J(e).Node)}function et(e){return!!Z()&&(e instanceof Element||e instanceof J(e).Element)}function en(e){return!!Z()&&(e instanceof HTMLElement||e instanceof J(e).HTMLElement)}function er(e){return!!Z()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof J(e).ShadowRoot)}function eo(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ed(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ei(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let el=/transform|translate|scale|rotate|perspective|filter/,ea=/paint|layout|strict|content/,eu=e=>!!e&&"none"!==e;function es(e){let t=et(e)?ed(e):e;return eu(t.transform)||eu(t.translate)||eu(t.scale)||eu(t.rotate)||eu(t.perspective)||!ec()&&(eu(t.backdropFilter)||eu(t.filter))||el.test(t.willChange||"")||ea.test(t.contain||"")}function ec(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ef(e){return/^(html|body|#document)$/.test(K(e))}function ed(e){return J(e).getComputedStyle(e)}function ep(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function em(e){if("html"===K(e))return e;let t=e.assignedSlot||e.parentNode||er(e)&&e.host||Q(e);return er(t)?t.host:t}function eh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=em(t);return ef(n)?(t.ownerDocument||t).body:en(n)&&eo(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=J(o);if(!i)return t.concat(o,eh(o,[],n));{let e=ev(l);return t.concat(l,l.visualViewport||[],eo(o)?o:[],e&&n?eh(e):[])}}function ev(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ey(e){let t=ed(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=en(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=T(n)!==i||T(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eg(e){return et(e)?e:e.contextElement}function ew(e){let t=eg(e);if(!en(t))return O(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ey(t),l=(i?T(n.width):n.width)/r,a=(i?T(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ex=O(0);function eb(e){let t=J(e);return ec()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ex}function eE(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eg(e),a=O(1);t&&(r?et(r)&&(a=ew(r)):a=ew(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===J(l))?eb(l):O(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l&&r){let e=J(l),t=et(r)?J(r):r,n=e,o=ev(n);for(;o&&t!==n;){let e=ew(o),t=o.getBoundingClientRect(),r=ed(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=ev(n=J(o))}}return B({width:f,height:d,x:s,y:c})}function eR(e,t){let n=ep(e).scrollLeft;return t?t.left+n:eE(Q(e)).left+n}function eC(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eR(e,n),y:n.top+t.scrollTop}}function eT(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=J(e),i=Q(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,s=0,c=0;if(l){let e=!ec()||"fixed"===t;r?e||(s=-l.offsetLeft,c=-l.offsetTop):(a=l.width,u=l.height,e&&(s=l.offsetLeft,c=l.offsetTop))}if(0>=eR(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:s,y:c}}(e,n,t);else if("document"===t)r=function(e){let t=ep(e),n=e.ownerDocument.body,r=C(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=C(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+eR(e),l=-t.scrollTop;return"rtl"===ed(n).direction&&(i+=C(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(Q(e));else if(et(t))r=function(e,t){let n=eE(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ew(e),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return B(r)}function eL(e){return"static"===ed(e).position}function eO(e,t){if(!en(e)||"fixed"===ed(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Q(e)===n&&(n=n.ownerDocument.body),n}function eS(e,t){var n;let r=J(e);if(ei(e))return r;if(!en(e)){let t=em(e);for(;t&&!ef(t);){if(et(t)&&!eL(t))return t;t=em(t)}return r}let o=eO(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(K(n)))&&eL(o);)o=eO(o,t);return o&&ef(o)&&eL(o)&&!es(o)?r:o||function(e){let t=em(e);for(;en(t)&&!ef(t);){if(es(t))return t;if(ei(t))break;t=em(t)}return null}(e)||r}let eA=async function(e){let t=this.getOffsetParent||eS,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=en(t),o=Q(t),i="fixed"===n,l=eE(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=O(0);if((r||!i)&&(("body"!==K(t)||eo(o))&&(a=ep(t)),r)){let e=eE(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=eR(o));let s=!o||r||i?O(0):eC(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eP={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=Q(r),a=!!t&&ei(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=O(1),c=O(0),f=en(r);if((f||!i)&&(("body"!==K(r)||eo(l))&&(u=ep(r)),f)){let e=eE(r);s=ew(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?O(0):eC(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-u.scrollTop*s.y+c.y+d.y}},getDocumentElement:Q,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ei(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eh(e,[],!1).filter(e=>et(e)&&"body"!==K(e)),o=null,i="fixed"===ed(e).position,l=i?em(e):e;for(;et(l)&&!ef(l);){let e=ed(l),t=es(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=em(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eT(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=A(e,t)||{};if(null==s)return{};let f=$(c),d={x:n,y:r},p=k(j(o)),m=D(p),h=await l.getDimensions(s),v="y"===p,y=v?"clientHeight":"clientWidth",g=i.reference[m]+i.reference[p]-d[p]-i.floating[m],w=d[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),b=x?x[y]:0;b&&await (null==l.isElement?void 0:l.isElement(x))||(b=a.floating[y]||i.floating[m]);let E=b/2-h[m]/2-1,T=R(f[v?"top":"left"],E),L=R(f[v?"bottom":"right"],E),O=b-h[m]-L,S=b/2-h[m]/2+(g/2-w/2),P=C(T,R(S,O)),M=!u.arrow&&null!=N(o)&&S!==P&&i.reference[m]/2-(S{t.current=e}),t}var eI=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,s.jsx)(f.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eI.displayName="Arrow";var eH="Popper",[e$,eB]=c(eH),[ez,eV]=e$(eH),eU=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[l,a]=i.useState(void 0);return(0,s.jsx)(ez,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:a,children:n})};eU.displayName=eH;var eG="PopperAnchor",eX=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=eV(eG,n),a=i.useRef(null),c=l.onAnchorChange,d=i.useCallback(e=>{a.current=e,e&&c(e)},[c]),p=(0,u.s)(t,d),m=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=m.current;m.current=r.current,e!==m.current&&c(m.current)});let h=l.placementState&&e5(l.placementState),v=null==h?void 0:h[0],y=null==h?void 0:h[1];return r?null:(0,s.jsx)(f.sG.div,{"data-radix-popper-side":v,"data-radix-popper-align":y,...o,ref:p})});eX.displayName=eG;var eY="PopperContent",[eq,eZ]=e$(eY),eK=i.forwardRef((e,t)=>{var n,r,o,l,a,c,p,m;let{__scopePopper:h,side:v="bottom",sideOffset:y=0,align:g="center",alignOffset:x=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:T=[],collisionPadding:O=0,sticky:S="partial",hideWhenDetached:$=!1,updatePositionStrategy:B="optimized",onPlaced:z,...V}=e,Z=eV(eY,h),[K,ee]=i.useState(null),et=(0,u.s)(t,ee),[en,er]=i.useState(null),eo=function(e){let[t,n]=i.useState(void 0);return w(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(en),ei=null!=(p=null==eo?void 0:eo.width)?p:0,el=null!=(m=null==eo?void 0:eo.height)?m:0,ea="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},eu=Array.isArray(T)?T:[T],es=eu.length>0,ec={padding:ea,boundary:eu.filter(e1),altBoundary:es},{refs:ef,floatingStyles:ed,placement:ep,isPositioned:em,middlewareData:ev}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);eM(p,r)||m(r);let[h,v]=i.useState(null),[y,g]=i.useState(null),w=i.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),x=i.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=l||h,E=a||y,R=i.useRef(null),C=i.useRef(null),T=i.useRef(f),L=null!=s,O=eF(s),S=eF(o),A=eF(c),P=i.useCallback(()=>{if(!R.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};S.current&&(e.platform=S.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...eP,...o.platform,_c:r};return U(e,t,{...o,platform:i})})(R.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};N.current&&!eM(T.current,t)&&(T.current=t,eD.flushSync(()=>{d(t)}))})},[p,t,n,S,A]);ej(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let N=i.useRef(!1);ej(()=>(N.current=!0,()=>{N.current=!1}),[]),ej(()=>{if(b&&(R.current=b),E&&(C.current=E),b&&E){if(O.current)return O.current(b,E,P);P()}},[b,E,P,O,L]);let k=i.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:x}),[w,x]),D=i.useMemo(()=>({reference:b,floating:E}),[b,E]),j=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eW(D.floating,f.x),r=eW(D.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,D.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:P,refs:k,elements:D,floatingStyles:j}),[f,P,k,D,j])}({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let d=c&&u?function(e,t,n){let r,o=null,i=Q(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let s=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=s;if(n||t(),!d||!p)return;let m=L(f),h=L(i.clientWidth-(c+d)),v={rootMargin:-m+"px "+-h+"px "+-L(i.clientHeight-(f+p))+"px "+-L(c)+"px",threshold:C(0,R(1,u))||1},y=!0;function g(t){let n=t[0].intersectionRatio;if(!eN(s,e.getBoundingClientRect()))return a();if(n!==u){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{o=new IntersectionObserver(g,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,v)}o.observe(e)}let u=J(e),s=()=>a(n);return u.addEventListener("resize",s),a(!0),()=>{u.removeEventListener("resize",s),l()}}(c,n,l):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),t&&m.observe(t));let h=s?eE(e):null;return s&&function t(){let r=eE(e);h&&!eN(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===B})},elements:{reference:Z.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await q(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:y+el,alignmentAxis:x}),E&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=A(e,t),c={x:n,y:r},f=await i.detectOverflow(t,s),d=j(o),p=k(d),m=c[p],h=c[d],v=(e,t)=>C(t+f["y"===e?"top":"left"],R(t,t-f["y"===e?"bottom":"right"]));l&&(m=v(p,m)),a&&(h=v(d,h));let y=u.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:l,[d]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,o,i;let{x:l,y:a,placement:u,rects:s,middlewareData:c}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=A(e,t),m={x:l,y:a},h=j(u),v=k(h),y=m[v],g=m[h],w=A(f,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(n=w.mainAxis)?n:0,crossAxis:null!=(r=w.crossAxis)?r:0};if(d){let e="y"===v?"height":"width",t=s.reference[v]-s.floating[e]+x.mainAxis,n=s.reference[v]+s.reference[e]-x.mainAxis;yn&&(y=n)}if(p){let e="y"===v?"width":"height",t=Y.has(P(u)),n=s.reference[h]-s.floating[e]+(t&&(null==(o=c.offset)?void 0:o[h])||0)+(t?0:x.crossAxis),r=s.reference[h]+s.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[h])||0)-(t?x.crossAxis:0);gr&&(g=r)}return{[v]:y,[h]:g}}}}(e).fn,options:[e,t]}))():void 0,...ec}),E&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=A(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=P(a),b=j(c),E=P(c)===c,R=await (null==f.isRTL?void 0:f.isRTL(d.floating)),C=h||(E||!g?[H(c)]:function(e){let t=H(e);return[M(e),t,M(t)]}(c)),T="none"!==y;!h&&T&&C.push(...function(e,t,n,r){let o=N(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?W:_;return t?_:W;case"left":case"right":return t?F:I;default:return[]}}(P(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(M)))),i}(c,g,y,R));let L=[c,...C],O=await f.detectOverflow(t,w),S=[],$=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&S.push(O[x]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=N(e),o=k(j(e)),i=D(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=H(l)),[l,H(l)]}(a,s,R);S.push(O[e[0]],O[e[1]])}if($=[...$,{placement:a,overflows:S}],!S.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=L[e];if(t&&("alignment"!==m||b===j(t)||$.every(e=>j(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let n=null==(i=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=$.filter(e=>{if(T){let t=j(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ec}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:o,rects:i,platform:l,elements:a}=t,{apply:u=()=>{},...s}=A(e,t),c=await l.detectOverflow(t,s),f=P(o),d=N(o),p="y"===j(o),{width:m,height:h}=i.floating;"top"===f||"bottom"===f?(n=f,r=d===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=f,n="end"===d?"top":"bottom");let v=h-c.top-c.bottom,y=m-c.left-c.right,g=R(h-c[n],v),w=R(m-c[r],y),x=t.middlewareData.shift,b=!x,E=g,T=w;null!=x&&x.enabled.x&&(T=y),null!=x&&x.enabled.y&&(E=v),b&&!d&&(p?T=m-2*C(c.left,c.right):E=h-2*C(c.top,c.bottom)),await u({...t,availableWidth:T,availableHeight:E});let L=await l.getDimensions(a.floating);return m!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ec,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),en&&((e,t)=>{let n=(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?ek({element:n.current,padding:r}).fn(t):{}:n?ek({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:en,padding:b}),e2({arrowWidth:ei,arrowHeight:el}),$&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=A(e,t);switch(o){case"referenceHidden":{let e=G(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:X(e)}}}case"escaped":{let e=G(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:X(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...ec,boundary:es?ec.boundary:void 0})]}),ey=Z.setPlacementState;w(()=>(ey(ep),()=>{ey(void 0)}),[ep,ey]);let[ew,ex]=e5(ep),eb=d(z);w(()=>{em&&(null==eb||eb())},[em,eb]);let eR=null==(n=ev.arrow)?void 0:n.x,eC=null==(r=ev.arrow)?void 0:r.y,eT=(null==(o=ev.arrow)?void 0:o.centerOffset)!==0,[eL,eO]=i.useState();return w(()=>{K&&eO(window.getComputedStyle(K).zIndex)},[K]),(0,s.jsx)("div",{ref:ef.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:em?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eL,"--radix-popper-transform-origin":[null==(l=ev.transformOrigin)?void 0:l.x,null==(a=ev.transformOrigin)?void 0:a.y].join(" "),...(null==(c=ev.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(eq,{scope:h,placedSide:ew,placedAlign:ex,onArrowChange:er,arrowX:eR,arrowY:eC,shouldHideArrow:eT,children:(0,s.jsx)(f.sG.div,{"data-side":ew,"data-align":ex,...V,ref:et,style:{...V.style,animation:em?void 0:"none"}})})})});eK.displayName=eY;var eJ="PopperArrow",eQ={top:"bottom",right:"left",bottom:"top",left:"right"},e0=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eZ(eJ,n),i=eQ[o.placedSide];return(0,s.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(eI,{...r,ref:t,style:{...r.style,display:"block"}})})});function e1(e){return null!==e}e0.displayName=eJ;var e2=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,m]=e5(a),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,y=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,g="",w="";return"bottom"===p?(g=c?h:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(g=c?h:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(g="".concat(-d,"px"),w=c?h:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+d,"px"),w=c?h:"".concat(y,"px")),{data:{x:g,y:w}}}});function e5(e){let[t,n="center"]=e.split("-");return[t,n]}var e6=i.forwardRef((e,t)=>{var n,r;let{container:o,...l}=e,[a,u]=i.useState(!1);w(()=>u(!0),[]);let c=o||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?eD.createPortal((0,s.jsx)(f.sG.div,{...l,ref:t}),c):null});e6.displayName="Portal";var e7=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),a=i.useRef(e),u=i.useRef("none"),s=i.useRef(void 0),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{if("mounted"===c){var e;u.current=null!=(e=s.current)?e:e8(l.current),s.current=void 0}else u.current="none"},[c]),w(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=e8(t);e?(s.current=o,f("MOUNT")):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),a.current=e}},[e,f]),w(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=e8(l.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(f("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=e8(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}f("ANIMATION_END")},[r,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,s.current=e8(t)}else l.current=null;o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),l=function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=r.current,n=!1,o=t.map(t=>{let r=e3(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e(0,s.jsx)(f.sG.span,{...e,ref:t,style:{...te,...e.style}}));tt.displayName="VisuallyHidden";var[tn,tr]=c("Tooltip",[eB]),to=eB(),ti="TooltipProvider",tl="tooltip.open",[ta,tu]=tn(ti),ts=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,a=i.useRef(!0),u=i.useRef(!1),c=i.useRef(0);return i.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,s.jsx)(ta,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:i.useCallback(()=>{r<=0||(window.clearTimeout(c.current),a.current=!1)},[r]),onClose:i.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r))},[r]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:l})};ts.displayName=ti;var tc="Tooltip",[tf,td]=tn(tc),tp=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:a,delayDuration:u}=e,c=tu(tc,e.__scopeTooltip),f=to(t),[d,p]=i.useState(null),m=function(e){let[t,n]=i.useState(x());return w(()=>{n(e=>e??String(b++))},[void 0]),e||(t?`radix-${t}`:"")}(),h=i.useRef(0),v=null!=a?a:c.disableHoverableContent,y=null!=u?u:c.delayDuration,g=i.useRef(!1),[E,R]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return e4(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[s,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}({prop:r,defaultProp:null!=o&&o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(tl))):c.onClose(),null==l||l(e)},caller:tc}),C=i.useMemo(()=>E?g.current?"delayed-open":"instant-open":"closed",[E]),T=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,R(!0)},[R]),L=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,R(!1)},[R]),O=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,R(!0),h.current=0},y)},[y,R]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,s.jsx)(eU,{...f,children:(0,s.jsx)(tf,{scope:t,contentId:m,open:E,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:i.useCallback(()=>{c.isOpenDelayedRef.current?O():T()},[c.isOpenDelayedRef,O,T]),onTriggerLeave:i.useCallback(()=>{v?L():(window.clearTimeout(h.current),h.current=0)},[L,v]),onOpen:T,onClose:L,disableHoverableContent:v,children:n})})};tp.displayName=tc;var tm="TooltipTrigger",th=i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=td(tm,n),l=tu(tm,n),c=to(n),d=i.useRef(null),p=(0,u.s)(t,d,o.onTriggerChange),m=i.useRef(!1),h=i.useRef(!1),v=i.useCallback(()=>m.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,s.jsx)(eX,{asChild:!0,...c,children:(0,s.jsx)(f.sG.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:p,onPointerMove:a(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),h.current=!0))}),onPointerLeave:a(e.onPointerLeave,()=>{o.onTriggerLeave(),h.current=!1}),onPointerDown:a(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:a(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:a(e.onBlur,o.onClose),onClick:a(e.onClick,o.onClose)})})});th.displayName=tm;var tv="TooltipPortal",[ty,tg]=tn(tv,{forceMount:void 0}),tw=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=td(tv,t);return(0,s.jsx)(ty,{scope:t,forceMount:n,children:(0,s.jsx)(e7,{present:n||i.open,children:(0,s.jsx)(e6,{asChild:!0,container:o,children:r})})})};tw.displayName=tv;var tx="TooltipContent",tb=i.forwardRef((e,t)=>{let n=tg(tx,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=td(tx,e.__scopeTooltip);return(0,s.jsx)(e7,{present:r||l.open,children:l.disableHoverableContent?(0,s.jsx)(tL,{side:o,...i,ref:t}):(0,s.jsx)(tE,{side:o,...i,ref:t})})}),tE=i.forwardRef((e,t)=>{let n=td(tx,e.__scopeTooltip),r=tu(tx,e.__scopeTooltip),o=i.useRef(null),l=(0,u.s)(t,o),[a,c]=i.useState(null),{trigger:f,onClose:d}=n,p=o.current,{onPointerInTransitChange:m}=r,h=i.useCallback(()=>{c(null),m(!1)},[m]),v=i.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),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)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),m(!0)},[m]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(f&&p){let e=e=>v(e,p),t=e=>v(e,f);return f.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{f.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[f,p,v,h]),i.useEffect(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==f?void 0:f.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}(n,a);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[f,p,a,d,h]),(0,s.jsx)(tL,{...e,ref:l})}),[tR,tC]=tn(tc,{isInside:!1}),tT=(0,e9.Dc)("TooltipContent"),tL=i.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:a,...u}=e,c=td(tx,n),f=to(n),{onClose:d}=c;return i.useEffect(()=>(document.addEventListener(tl,d),()=>document.removeEventListener(tl,d)),[d]),i.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,d]),(0,s.jsx)(h,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,s.jsxs)(eK,{"data-state":c.stateAttribute,...f,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,s.jsx)(tT,{children:r}),(0,s.jsx)(tR,{scope:n,isInside:!0,children:(0,s.jsx)(tt,{id:c.contentId,role:"tooltip",children:o||r})})]})})});tb.displayName=tx;var tO="TooltipArrow";i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=to(n);return tC(tO,n).isInside?null:(0,s.jsx)(e0,{...o,...r,ref:t})}).displayName=tO;var tS=ts,tA=tp,tP=th,tN=tw,tk=tb},4616:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(2902);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.$,l=(e,t)=>n=>{var r;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:l,defaultVariants:a}=t,u=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;let i=o(t)||o(r);return l[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,u,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):({...a,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},6118:(e,t,n)=>{n.d(t,{DX:()=>a,Dc:()=>s,TL:()=>l});var r,o=n(7620),i=n(1715);function l(e){let t=o.forwardRef((t,n)=>{var r;let l,a,{children:s,...f}=t,v=null,y=!1,g=[];d(s)&&"function"==typeof h&&(s=h(s._payload)),o.Children.forEach(s,e=>{var t;if(t=e,o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===u){y=!0;let t="child"in e.props?e.props.child:e.props.children;d(t)&&"function"==typeof h&&(t=h(t._payload)),v=c(e,t),g.push(v?.props?.children)}else g.push(e)}),v?v=o.cloneElement(v,void 0,g):!y&&1===o.Children.count(s)&&o.isValidElement(s)&&(v=s);let w=v?(r=v,(a=(l=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?r.ref:(a=(l=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,x=(0,i.s)(n,w);if(!v){if(s||0===s)throw Error(y?m(e):p(e));return s}let b=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(f,v.props??{});return v.type!==o.Fragment&&(b.ref=n?x:w),o.cloneElement(v,b)});return t.displayName=`${e}.Slot`,t}var a=l("Slot"),u=Symbol.for("radix.slottable");function s(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=u,t}var c=(e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},f=Symbol.for("react.lazy");function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,m=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,h=(r||(r=n.t(o,2)))[" use ".trim().toString()]}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[895],{421:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(7620),o=n(7509),i=n(6118),l=n(4568),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},1715:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(7620);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let r;n.d(t,{UC:()=>tk,ZL:()=>tN,Kq:()=>tS,bL:()=>tP,l9:()=>tA});var o,i=n(7620),l=n.t(i,2);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var u=n(1715),s=n(4568);function c(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r);o.displayName=t+"Context";let l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||o,c=i.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(n,a,u={}){let{optional:s=!1}=u,c=a?.[e]?.[l]||o,f=i.useContext(c);if(f)return f;if(void 0!==r)return r;if(!s)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 o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var f=n(421);function d(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var p="dismissableLayer.update",m=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:l=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:b,onDismiss:E,...R}=e,C=i.useContext(m),[T,L]=i.useState(null),O=null!=(r=null==T?void 0:T.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,S]=i.useState({}),P=(0,u.s)(t,L),A=Array.from(C.layers),[N]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),k=N?A.indexOf(N):-1,D=T?A.indexOf(T):-1,j=C.layersWithOutsidePointerEventsDisabled.size>0,M=D>=k,_=i.useRef(!1),W=function(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:a,shouldHandlePointerDownOutside:u=v}=t,s=d(e),c=i.useRef(!1),f=i.useRef(!1),p=i.useRef(new Map),m=i.useRef(()=>{});return i.useEffect(()=>{function e(){f.current=!1,l.current=!1,p.current.clear()}function t(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&m.current()},0)}function n(e){f.current&&p.current.set(e.type,!1)}let i=t=>{if(t.target&&!c.current){let n=function(){r.removeEventListener("click",m.current);let t=Array.from(p.current.values()).some(Boolean);e(),t||g("dismissableLayer.pointerDownOutside",s,i,{discrete:!0})};if(!u(t.target)){r.removeEventListener("click",m.current),e(),c.current=!1;return}let i={originalEvent:t};f.current=!0,l.current=o&&0===t.button,p.current.clear(),o&&0===t.button?(r.removeEventListener("click",m.current),m.current=n,r.addEventListener("click",m.current,{once:!0})):n()}else r.removeEventListener("click",m.current),e();c.current=!1},d=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of d)r.addEventListener(e,t,!0),r.addEventListener(e,n);let h=window.setTimeout(()=>{r.addEventListener("pointerdown",i)},0);return()=>{for(let e of(window.clearTimeout(h),r.removeEventListener("pointerdown",i),r.removeEventListener("click",m.current),d))r.removeEventListener(e,t,!0),r.removeEventListener(e,n)}},[r,s,o,l,a,u]),{onPointerDownCapture:()=>c.current=!0}}(e=>{null==w||w(e),null==b||b(e),e.defaultPrevented||null==E||E()},{ownerDocument:O,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:_,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return M&&!t},[C.branches,M])}),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=d(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&g("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{if(c&&_.current)return;let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==x||x(e),null==b||b(e),e.defaultPrevented||null==E||E())},O),I=!!T&&D===A.length-1,H=d(e=>{"Escape"===e.key&&(null==h||h(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))});return i.useEffect(()=>{if(I)return O.addEventListener("keydown",H,{capture:!0}),()=>O.removeEventListener("keydown",H,{capture:!0})},[O,I,H]),i.useEffect(()=>{if(T)return l&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(o=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(T)),C.layers.add(T),y(),()=>{l&&(C.layersWithOutsidePointerEventsDisabled.delete(T),0===C.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=o))}},[T,O,l,C]),i.useEffect(()=>()=>{T&&(C.layers.delete(T),C.layersWithOutsidePointerEventsDisabled.delete(T),y())},[T,C]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,s.jsx)(f.sG.div,{...R,ref:P,style:{pointerEvents:j?M?"auto":"none":void 0,...e.style},onFocusCapture:a(e.onFocusCapture,F.onFocusCapture),onBlurCapture:a(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,W.onPointerDownCapture)})});h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(m),r=i.useRef(null),o=(0,u.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(f.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var v=()=>!0;function y(){let e=new CustomEvent(p);document.dispatchEvent(e)}function g(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,f.hO)(i,l):i.dispatchEvent(l)}var w=globalThis?.document?i.useLayoutEffect:()=>{},x=l[" useId ".trim().toString()]||(()=>void 0),b=0;let E=["top","right","bottom","left"],R=Math.min,C=Math.max,T=Math.round,L=Math.floor,O=e=>({x:e,y:e}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function P(e,t){return"function"==typeof e?e(t):e}function A(e){return e.split("-")[0]}function N(e){return e.split("-")[1]}function k(e){return"x"===e?"y":"x"}function D(e){return"y"===e?"height":"width"}function j(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function M(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let _=["left","right"],W=["right","left"],F=["top","bottom"],I=["bottom","top"];function H(e){let t=A(e);return S[t]+e.slice(t.length)}function $(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function B(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function z(e,t,n){let r,{reference:o,floating:i}=e,l=j(t),a=k(j(t)),u=D(a),s=A(t),c=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[u]/2-i[u]/2;switch(s){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=N(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function V(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=P(t,e),m=$(p),h=a[d?"floating"===f?"reference":"floating":f],v=B(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,g=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(g))&&await (null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},x=B(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}let U=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:V},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=z(s,r,u),d=r,p=0,m={};for(let n=0;ne[t]>=0)}let Y=new Set(["left","top"]);async function q(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=A(n),a=N(n),u="y"===j(n),s=Y.has(l)?-1:1,c=i&&u?-1:1,f=P(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*c,y:d*s}:{x:d*s,y:p*c}}function Z(){return"undefined"!=typeof window}function K(e){return ee(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Q(e){var t;return null==(t=(ee(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ee(e){return!!Z()&&(e instanceof Node||e instanceof J(e).Node)}function et(e){return!!Z()&&(e instanceof Element||e instanceof J(e).Element)}function en(e){return!!Z()&&(e instanceof HTMLElement||e instanceof J(e).HTMLElement)}function er(e){return!!Z()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof J(e).ShadowRoot)}function eo(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ed(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ei(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let el=/transform|translate|scale|rotate|perspective|filter/,ea=/paint|layout|strict|content/,eu=e=>!!e&&"none"!==e;function es(e){let t=et(e)?ed(e):e;return eu(t.transform)||eu(t.translate)||eu(t.scale)||eu(t.rotate)||eu(t.perspective)||!ec()&&(eu(t.backdropFilter)||eu(t.filter))||el.test(t.willChange||"")||ea.test(t.contain||"")}function ec(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ef(e){return/^(html|body|#document)$/.test(K(e))}function ed(e){return J(e).getComputedStyle(e)}function ep(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function em(e){if("html"===K(e))return e;let t=e.assignedSlot||e.parentNode||er(e)&&e.host||Q(e);return er(t)?t.host:t}function eh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=em(t);return ef(n)?(t.ownerDocument||t).body:en(n)&&eo(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=J(o);if(!i)return t.concat(o,eh(o,[],n));{let e=ev(l);return t.concat(l,l.visualViewport||[],eo(o)?o:[],e&&n?eh(e):[])}}function ev(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ey(e){let t=ed(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=en(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=T(n)!==i||T(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eg(e){return et(e)?e:e.contextElement}function ew(e){let t=eg(e);if(!en(t))return O(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ey(t),l=(i?T(n.width):n.width)/r,a=(i?T(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ex=O(0);function eb(e){let t=J(e);return ec()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ex}function eE(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eg(e),a=O(1);t&&(r?et(r)&&(a=ew(r)):a=ew(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===J(l))?eb(l):O(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l&&r){let e=J(l),t=et(r)?J(r):r,n=e,o=ev(n);for(;o&&t!==n;){let e=ew(o),t=o.getBoundingClientRect(),r=ed(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=ev(n=J(o))}}return B({width:f,height:d,x:s,y:c})}function eR(e,t){let n=ep(e).scrollLeft;return t?t.left+n:eE(Q(e)).left+n}function eC(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eR(e,n),y:n.top+t.scrollTop}}function eT(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=J(e),i=Q(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,s=0,c=0;if(l){let e=!ec()||"fixed"===t;r?e||(s=-l.offsetLeft,c=-l.offsetTop):(a=l.width,u=l.height,e&&(s=l.offsetLeft,c=l.offsetTop))}if(0>=eR(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:s,y:c}}(e,n,t);else if("document"===t)r=function(e){let t=ep(e),n=e.ownerDocument.body,r=C(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=C(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+eR(e),l=-t.scrollTop;return"rtl"===ed(n).direction&&(i+=C(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(Q(e));else if(et(t))r=function(e,t){let n=eE(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ew(e),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return B(r)}function eL(e){return"static"===ed(e).position}function eO(e,t){if(!en(e)||"fixed"===ed(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Q(e)===n&&(n=n.ownerDocument.body),n}function eS(e,t){var n;let r=J(e);if(ei(e))return r;if(!en(e)){let t=em(e);for(;t&&!ef(t);){if(et(t)&&!eL(t))return t;t=em(t)}return r}let o=eO(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(K(n)))&&eL(o);)o=eO(o,t);return o&&ef(o)&&eL(o)&&!es(o)?r:o||function(e){let t=em(e);for(;en(t)&&!ef(t);){if(es(t))return t;if(ei(t))break;t=em(t)}return null}(e)||r}let eP=async function(e){let t=this.getOffsetParent||eS,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=en(t),o=Q(t),i="fixed"===n,l=eE(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=O(0);if((r||!i)&&(("body"!==K(t)||eo(o))&&(a=ep(t)),r)){let e=eE(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=eR(o));let s=!o||r||i?O(0):eC(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eA={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=Q(r),a=!!t&&ei(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=O(1),c=O(0),f=en(r);if((f||!i)&&(("body"!==K(r)||eo(l))&&(u=ep(r)),f)){let e=eE(r);s=ew(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?O(0):eC(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-u.scrollTop*s.y+c.y+d.y}},getDocumentElement:Q,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ei(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eh(e,[],!1).filter(e=>et(e)&&"body"!==K(e)),o=null,i="fixed"===ed(e).position,l=i?em(e):e;for(;et(l)&&!ef(l);){let e=ed(l),t=es(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=em(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eT(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=P(e,t)||{};if(null==s)return{};let f=$(c),d={x:n,y:r},p=k(j(o)),m=D(p),h=await l.getDimensions(s),v="y"===p,y=v?"clientHeight":"clientWidth",g=i.reference[m]+i.reference[p]-d[p]-i.floating[m],w=d[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),b=x?x[y]:0;b&&await (null==l.isElement?void 0:l.isElement(x))||(b=a.floating[y]||i.floating[m]);let E=b/2-h[m]/2-1,T=R(f[v?"top":"left"],E),L=R(f[v?"bottom":"right"],E),O=b-h[m]-L,S=b/2-h[m]/2+(g/2-w/2),A=C(T,R(S,O)),M=!u.arrow&&null!=N(o)&&S!==A&&i.reference[m]/2-(S{t.current=e}),t}var eI=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,s.jsx)(f.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eI.displayName="Arrow";var eH="Popper",[e$,eB]=c(eH),[ez,eV]=e$(eH),eU=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[l,a]=i.useState(void 0);return(0,s.jsx)(ez,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:a,children:n})};eU.displayName=eH;var eG="PopperAnchor",eX=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=eV(eG,n),a=i.useRef(null),c=l.onAnchorChange,d=i.useCallback(e=>{a.current=e,e&&c(e)},[c]),p=(0,u.s)(t,d),m=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=m.current;m.current=r.current,e!==m.current&&c(m.current)});let h=l.placementState&&e5(l.placementState),v=null==h?void 0:h[0],y=null==h?void 0:h[1];return r?null:(0,s.jsx)(f.sG.div,{"data-radix-popper-side":v,"data-radix-popper-align":y,...o,ref:p})});eX.displayName=eG;var eY="PopperContent",[eq,eZ]=e$(eY),eK=i.forwardRef((e,t)=>{var n,r,o,l,a,c,p,m;let{__scopePopper:h,side:v="bottom",sideOffset:y=0,align:g="center",alignOffset:x=0,arrowPadding:b=0,avoidCollisions:E=!0,collisionBoundary:T=[],collisionPadding:O=0,sticky:S="partial",hideWhenDetached:$=!1,updatePositionStrategy:B="optimized",onPlaced:z,...V}=e,Z=eV(eY,h),[K,ee]=i.useState(null),et=(0,u.s)(t,ee),[en,er]=i.useState(null),eo=function(e){let[t,n]=i.useState(void 0);return w(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(en),ei=null!=(p=null==eo?void 0:eo.width)?p:0,el=null!=(m=null==eo?void 0:eo.height)?m:0,ea="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},eu=Array.isArray(T)?T:[T],es=eu.length>0,ec={padding:ea,boundary:eu.filter(e1),altBoundary:es},{refs:ef,floatingStyles:ed,placement:ep,isPositioned:em,middlewareData:ev}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);eM(p,r)||m(r);let[h,v]=i.useState(null),[y,g]=i.useState(null),w=i.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),x=i.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=l||h,E=a||y,R=i.useRef(null),C=i.useRef(null),T=i.useRef(f),L=null!=s,O=eF(s),S=eF(o),P=eF(c),A=i.useCallback(()=>{if(!R.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};S.current&&(e.platform=S.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...eA,...o.platform,_c:r};return U(e,t,{...o,platform:i})})(R.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};N.current&&!eM(T.current,t)&&(T.current=t,eD.flushSync(()=>{d(t)}))})},[p,t,n,S,P]);ej(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let N=i.useRef(!1);ej(()=>(N.current=!0,()=>{N.current=!1}),[]),ej(()=>{if(b&&(R.current=b),E&&(C.current=E),b&&E){if(O.current)return O.current(b,E,A);A()}},[b,E,A,O,L]);let k=i.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:x}),[w,x]),D=i.useMemo(()=>({reference:b,floating:E}),[b,E]),j=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eW(D.floating,f.x),r=eW(D.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...e_(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,D.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:A,refs:k,elements:D,floatingStyles:j}),[f,A,k,D,j])}({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let d=c&&u?function(e,t,n){let r,o=null,i=Q(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let s=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=s;if(n||t(),!d||!p)return;let m=L(f),h=L(i.clientWidth-(c+d)),v={rootMargin:-m+"px "+-h+"px "+-L(i.clientHeight-(f+p))+"px "+-L(c)+"px",threshold:C(0,R(1,u))||1},y=!0;function g(t){let n=t[0].intersectionRatio;if(!eN(s,e.getBoundingClientRect()))return a();if(n!==u){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{o=new IntersectionObserver(g,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,v)}o.observe(e)}let u=J(e),s=()=>a(n);return u.addEventListener("resize",s),a(!0),()=>{u.removeEventListener("resize",s),l()}}(c,n,l):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),t&&m.observe(t));let h=s?eE(e):null;return s&&function t(){let r=eE(e);h&&!eN(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===B})},elements:{reference:Z.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await q(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:y+el,alignmentAxis:x}),E&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=P(e,t),c={x:n,y:r},f=await i.detectOverflow(t,s),d=j(o),p=k(d),m=c[p],h=c[d],v=(e,t)=>C(t+f["y"===e?"top":"left"],R(t,t-f["y"===e?"bottom":"right"]));l&&(m=v(p,m)),a&&(h=v(d,h));let y=u.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:l,[d]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,o,i;let{x:l,y:a,placement:u,rects:s,middlewareData:c}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=P(e,t),m={x:l,y:a},h=j(u),v=k(h),y=m[v],g=m[h],w=P(f,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(n=w.mainAxis)?n:0,crossAxis:null!=(r=w.crossAxis)?r:0};if(d){let e="y"===v?"height":"width",t=s.reference[v]-s.floating[e]+x.mainAxis,n=s.reference[v]+s.reference[e]-x.mainAxis;yn&&(y=n)}if(p){let e="y"===v?"width":"height",t=Y.has(A(u)),n=s.reference[h]-s.floating[e]+(t&&(null==(o=c.offset)?void 0:o[h])||0)+(t?0:x.crossAxis),r=s.reference[h]+s.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[h])||0)-(t?x.crossAxis:0);gr&&(g=r)}return{[v]:y,[h]:g}}}}(e).fn,options:[e,t]}))():void 0,...ec}),E&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=P(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=A(a),b=j(c),E=A(c)===c,R=await (null==f.isRTL?void 0:f.isRTL(d.floating)),C=h||(E||!g?[H(c)]:function(e){let t=H(e);return[M(e),t,M(t)]}(c)),T="none"!==y;!h&&T&&C.push(...function(e,t,n,r){let o=N(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?W:_;return t?_:W;case"left":case"right":return t?F:I;default:return[]}}(A(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(M)))),i}(c,g,y,R));let L=[c,...C],O=await f.detectOverflow(t,w),S=[],$=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&S.push(O[x]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=N(e),o=k(j(e)),i=D(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=H(l)),[l,H(l)]}(a,s,R);S.push(O[e[0]],O[e[1]])}if($=[...$,{placement:a,overflows:S}],!S.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=L[e];if(t&&("alignment"!==m||b===j(t)||$.every(e=>j(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let n=null==(i=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=$.filter(e=>{if(T){let t=j(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ec}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:o,rects:i,platform:l,elements:a}=t,{apply:u=()=>{},...s}=P(e,t),c=await l.detectOverflow(t,s),f=A(o),d=N(o),p="y"===j(o),{width:m,height:h}=i.floating;"top"===f||"bottom"===f?(n=f,r=d===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=f,n="end"===d?"top":"bottom");let v=h-c.top-c.bottom,y=m-c.left-c.right,g=R(h-c[n],v),w=R(m-c[r],y),x=t.middlewareData.shift,b=!x,E=g,T=w;null!=x&&x.enabled.x&&(T=y),null!=x&&x.enabled.y&&(E=v),b&&!d&&(p?T=m-2*C(c.left,c.right):E=h-2*C(c.top,c.bottom)),await u({...t,availableWidth:T,availableHeight:E});let L=await l.getDimensions(a.floating);return m!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ec,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),en&&((e,t)=>{let n=(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?ek({element:n.current,padding:r}).fn(t):{}:n?ek({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:en,padding:b}),e2({arrowWidth:ei,arrowHeight:el}),$&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=P(e,t);switch(o){case"referenceHidden":{let e=G(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:X(e)}}}case"escaped":{let e=G(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:X(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...ec,boundary:es?ec.boundary:void 0})]}),ey=Z.setPlacementState;w(()=>(ey(ep),()=>{ey(void 0)}),[ep,ey]);let[ew,ex]=e5(ep),eb=d(z);w(()=>{em&&(null==eb||eb())},[em,eb]);let eR=null==(n=ev.arrow)?void 0:n.x,eC=null==(r=ev.arrow)?void 0:r.y,eT=(null==(o=ev.arrow)?void 0:o.centerOffset)!==0,[eL,eO]=i.useState();return w(()=>{K&&eO(window.getComputedStyle(K).zIndex)},[K]),(0,s.jsx)("div",{ref:ef.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:em?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eL,"--radix-popper-transform-origin":[null==(l=ev.transformOrigin)?void 0:l.x,null==(a=ev.transformOrigin)?void 0:a.y].join(" "),...(null==(c=ev.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(eq,{scope:h,placedSide:ew,placedAlign:ex,onArrowChange:er,arrowX:eR,arrowY:eC,shouldHideArrow:eT,children:(0,s.jsx)(f.sG.div,{"data-side":ew,"data-align":ex,...V,ref:et,style:{...V.style,animation:em?void 0:"none"}})})})});eK.displayName=eY;var eJ="PopperArrow",eQ={top:"bottom",right:"left",bottom:"top",left:"right"},e0=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eZ(eJ,n),i=eQ[o.placedSide];return(0,s.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(eI,{...r,ref:t,style:{...r.style,display:"block"}})})});function e1(e){return null!==e}e0.displayName=eJ;var e2=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,m]=e5(a),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,y=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,g="",w="";return"bottom"===p?(g=c?h:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(g=c?h:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(g="".concat(-d,"px"),w=c?h:"".concat(y,"px")):"left"===p&&(g="".concat(u.floating.width+d,"px"),w=c?h:"".concat(y,"px")),{data:{x:g,y:w}}}});function e5(e){let[t,n="center"]=e.split("-");return[t,n]}var e7=i.forwardRef((e,t)=>{var n,r;let{container:o,...l}=e,[a,u]=i.useState(!1);w(()=>u(!0),[]);let c=o||a&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return c?eD.createPortal((0,s.jsx)(f.sG.div,{...l,ref:t}),c):null});e7.displayName="Portal";var e6=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),l=i.useRef(null),a=i.useRef(e),u=i.useRef("none"),s=i.useRef(void 0),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{if("mounted"===c){var e;u.current=null!=(e=s.current)?e:e8(l.current),s.current=void 0}else u.current="none"},[c]),w(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=e8(t);e?(s.current=o,f("MOUNT")):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),a.current=e}},[e,f]),w(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,o=e=>{let o=e8(l.current).includes(CSS.escape(e.animationName));if(e.target===r&&o&&(f("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=e8(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}f("ANIMATION_END")},[r,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,s.current=e8(t)}else l.current=null;o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),l=function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=r.current,n=!1,o=t.map(t=>{let r=e4(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e(0,s.jsx)(f.sG.span,{...e,ref:t,style:{...te,...e.style}}));tt.displayName="VisuallyHidden";var[tn,tr]=c("Tooltip",[eB]),to=eB(),ti="TooltipProvider",tl="tooltip.open",[ta,tu]=tn(ti),ts=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,a=i.useRef(!0),u=i.useRef(!1),c=i.useRef(0);return i.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,s.jsx)(ta,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:i.useCallback(()=>{r<=0||(window.clearTimeout(c.current),a.current=!1)},[r]),onClose:i.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r))},[r]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:l})};ts.displayName=ti;var tc="Tooltip",[tf,td]=tn(tc),tp=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:l,disableHoverableContent:a,delayDuration:u}=e,c=tu(tc,e.__scopeTooltip),f=to(t),[d,p]=i.useState(null),m=function(e){let[t,n]=i.useState(x());return w(()=>{n(e=>e??String(b++))},[void 0]),e||(t?`radix-${t}`:"")}(),h=i.useRef(0),v=null!=a?a:c.disableHoverableContent,y=null!=u?u:c.delayDuration,g=i.useRef(!1),[E,R]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),l=i.useRef(t);return e3(()=>{l.current=t},[t]),i.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[s,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}({prop:r,defaultProp:null!=o&&o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(tl))):c.onClose(),null==l||l(e)},caller:tc}),C=i.useMemo(()=>E?g.current?"delayed-open":"instant-open":"closed",[E]),T=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,R(!0)},[R]),L=i.useCallback(()=>{window.clearTimeout(h.current),h.current=0,R(!1)},[R]),O=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,R(!0),h.current=0},y)},[y,R]);return i.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,s.jsx)(eU,{...f,children:(0,s.jsx)(tf,{scope:t,contentId:m,open:E,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:i.useCallback(()=>{c.isOpenDelayedRef.current?O():T()},[c.isOpenDelayedRef,O,T]),onTriggerLeave:i.useCallback(()=>{v?L():(window.clearTimeout(h.current),h.current=0)},[L,v]),onOpen:T,onClose:L,disableHoverableContent:v,children:n})})};tp.displayName=tc;var tm="TooltipTrigger",th=i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=td(tm,n),l=tu(tm,n),c=to(n),d=i.useRef(null),p=(0,u.s)(t,d,o.onTriggerChange),m=i.useRef(!1),h=i.useRef(!1),v=i.useCallback(()=>m.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,s.jsx)(eX,{asChild:!0,...c,children:(0,s.jsx)(f.sG.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:p,onPointerMove:a(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||l.isPointerInTransitRef.current||(o.onTriggerEnter(),h.current=!0))}),onPointerLeave:a(e.onPointerLeave,()=>{o.onTriggerLeave(),h.current=!1}),onPointerDown:a(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:a(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:a(e.onBlur,o.onClose),onClick:a(e.onClick,o.onClose)})})});th.displayName=tm;var tv="TooltipPortal",[ty,tg]=tn(tv,{forceMount:void 0}),tw=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=td(tv,t);return(0,s.jsx)(ty,{scope:t,forceMount:n,children:(0,s.jsx)(e6,{present:n||i.open,children:(0,s.jsx)(e7,{asChild:!0,container:o,children:r})})})};tw.displayName=tv;var tx="TooltipContent",tb=i.forwardRef((e,t)=>{let n=tg(tx,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=td(tx,e.__scopeTooltip);return(0,s.jsx)(e6,{present:r||l.open,children:l.disableHoverableContent?(0,s.jsx)(tL,{side:o,...i,ref:t}):(0,s.jsx)(tE,{side:o,...i,ref:t})})}),tE=i.forwardRef((e,t)=>{let n=td(tx,e.__scopeTooltip),r=tu(tx,e.__scopeTooltip),o=i.useRef(null),l=(0,u.s)(t,o),[a,c]=i.useState(null),{trigger:f,onClose:d}=n,p=o.current,{onPointerInTransitChange:m}=r,h=i.useCallback(()=>{c(null),m(!1)},[m]),v=i.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),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)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),m(!0)},[m]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(f&&p){let e=e=>v(e,p),t=e=>v(e,f);return f.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{f.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[f,p,v,h]),i.useEffect(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==f?void 0:f.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}(n,a);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[f,p,a,d,h]),(0,s.jsx)(tL,{...e,ref:l})}),[tR,tC]=tn(tc,{isInside:!1}),tT=(0,e9.Dc)("TooltipContent"),tL=i.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:a,...u}=e,c=td(tx,n),f=to(n),{onClose:d}=c;return i.useEffect(()=>(document.addEventListener(tl,d),()=>document.removeEventListener(tl,d)),[d]),i.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,d]),(0,s.jsx)(h,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,s.jsxs)(eK,{"data-state":c.stateAttribute,...f,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,s.jsx)(tT,{children:r}),(0,s.jsx)(tR,{scope:n,isInside:!0,children:(0,s.jsx)(tt,{id:c.contentId,role:"tooltip",children:o||r})})]})})});tb.displayName=tx;var tO="TooltipArrow";i.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=to(n);return tC(tO,n).isInside?null:(0,s.jsx)(e0,{...o,...r,ref:t})}).displayName=tO;var tS=ts,tP=tp,tA=th,tN=tw,tk=tb},4616:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(2902);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.$,l=(e,t)=>n=>{var r;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:l,defaultVariants:a}=t,u=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;let i=o(t)||o(r);return l[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,u,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):({...a,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},6118:(e,t,n)=>{n.d(t,{DX:()=>a,Dc:()=>s,TL:()=>l});var r,o=n(7620),i=n(1715);function l(e){let t=o.forwardRef((t,n)=>{var r;let l,a,{children:s,...f}=t,v=null,y=!1,g=[];d(s)&&"function"==typeof h&&(s=h(s._payload)),o.Children.forEach(s,e=>{var t;if(t=e,o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===u){y=!0;let t="child"in e.props?e.props.child:e.props.children;d(t)&&"function"==typeof h&&(t=h(t._payload)),v=c(e,t),g.push(v?.props?.children)}else g.push(e)}),v?v=o.cloneElement(v,void 0,g):!y&&1===o.Children.count(s)&&o.isValidElement(s)&&(v=s);let w=v?(r=v,(a=(l=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?r.ref:(a=(l=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,x=(0,i.s)(n,w);if(!v){if(s||0===s)throw Error(y?m(e):p(e));return s}let b=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(f,v.props??{});return v.type!==o.Fragment&&(b.ref=n?x:w),o.cloneElement(v,b)});return t.displayName=`${e}.Slot`,t}var a=l("Slot"),u=Symbol.for("radix.slottable");function s(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=u,t}var c=(e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},f=Symbol.for("react.lazy");function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,m=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,h=(r||(r=n.t(o,2)))[" use ".trim().toString()]},7541:(e,t,n)=>{var r=n(3041);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}})}}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/92-88d9049bdefca6df.js b/prototype/landing/_next/static/chunks/92-88d9049bdefca6df.js new file mode 100644 index 0000000..8cbd2a9 --- /dev/null +++ b/prototype/landing/_next/static/chunks/92-88d9049bdefca6df.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92],{592:(e,n,r)=>{r.d(n,{Dj:()=>p,Wi:()=>w,G0:()=>x,yz:()=>y,Kr:()=>j,Rn:()=>m,JR:()=>g,TN:()=>f,qv:()=>b,Qq:()=>v});var t=r(8095),a=r(8602),i=r(3143),s=r(7251),l=r(996).hp;class o{static async isManager(e){return(await (0,a.ii)().is_manager({who:e})).result}static async myContent(e){let n=(0,a.ii)(),[r,t]=await Promise.all([n.list_content({start:1n,limit:100}),n.current_epoch()]),i=r.result.filter(n=>n.managers.includes(e)),s=t.result;return await Promise.all(i.map(async e=>{let r=await n.get_content_reads({epoch:s,content_id:e.id});return{id:e.id.toString(),creator:e.creator,managers:e.managers,active:e.active,sha256:l.from(e.sha256).toString("hex"),epochReads:r.result}}))}static async accrued(e){return(await (0,a.ii)().get_accrued({who:e})).result}static async claim(e){let n=(0,a.ii)(e);return(await n.claim({caller:e})).signAndSend()}static async settleAll(){return i.N.post(s.S.manager.settleAll,{})}static async pending(){return i.N.get(s.S.manager.pending)}static async currentEpoch(){return(await (0,a.ii)().current_epoch()).result}static async forceCloseEpoch(e){let n=(0,a.ii)(e);return(await n.force_close_epoch({admin:e})).signAndSend()}static async becomeManager(e){let n=(0,a.ii)(e);return(await n.set_manager({who:e,enabled:!0})).signAndSend()}static async registerContent(e,n){let r=(0,a.ii)(e),t=await r.register_content({caller:e,sha256:l.from(n)});return(await t.signAndSend()).result}}var c=r(2995),d=r(4869),u=r(1562),h=r(8359);function m(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:t.m.isManager(e),queryFn:()=>o.isManager(e),enabled:!!e})}function g(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:t.m.myContent(e),queryFn:()=>o.myContent(e),enabled:!!e})}function p(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:t.m.accrued(e),queryFn:()=>o.accrued(e),enabled:!!e,refetchInterval:15e3})}function x(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.claim(e)},onSuccess:()=>n.invalidateQueries({queryKey:t.m.all(e)})})}function f(){let{address:e}=(0,h.v)();return(0,c.I)({queryKey:t.m.pending(e),queryFn:()=>o.pending(),enabled:!!e,refetchInterval:15e3})}function v(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>o.settleAll(),onSuccess:()=>n.invalidateQueries({queryKey:t.m.all(e)})})}function y(){return(0,c.I)({queryKey:["manager","current-epoch"],queryFn:()=>o.currentEpoch(),refetchInterval:3e4})}function j(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.forceCloseEpoch(e)},onSuccess:()=>{n.invalidateQueries({queryKey:t.m.all(e)}),n.invalidateQueries({queryKey:["manager","current-epoch"]})}})}function b(){let{address:e}=(0,h.v)();return(0,u.n)({mutationFn:n=>{if(!e)throw Error("Connect a wallet first");return o.registerContent(e,n)}})}function w(){let{address:e}=(0,h.v)(),n=(0,d.jE)();return(0,u.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.becomeManager(e)},onSuccess:()=>n.invalidateQueries({queryKey:t.m.all(e)})})}},2779:(e,n,r)=>{r.d(n,{p:()=>s});var t=r(4568),a=r(7620),i=r(826);let s=a.forwardRef((e,n)=>{let{className:r,type:a,...s}=e;return(0,t.jsx)("input",{type:a,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-[var(--color-bg-input)] px-3 py-1 text-sm text-foreground transition-colors placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-55",r),ref:n,...s})});s.displayName="Input"},3204:(e,n,r)=>{r.d(n,{J:()=>d});var t=r(4568),a=r(7620),i=r(421),s=a.forwardRef((e,n)=>(0,t.jsx)(i.sG.label,{...e,ref:n,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));s.displayName="Label";var l=r(4616),o=r(826);let c=(0,l.F)("text-[13px] text-muted-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,n)=>{let{className:r,...a}=e;return(0,t.jsx)(s,{ref:n,className:(0,o.cn)(c(),r),...a})});d.displayName=s.displayName},3497:(e,n,r)=>{r.d(n,{Z:()=>t});let t={all:e=>["auth",e],me:e=>[...t.all(e),"me"]}},4710:(e,n,r)=>{r.d(n,{I:()=>i});var t=r(4568);let a={lock:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,t.jsx)("path",{d:"M7 8V6a3 3 0 0 1 6 0v2"})]}),unlock:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,t.jsx)("path",{d:"M7 8V6a3 3 0 0 1 5.8-1"})]}),check:(0,t.jsx)("path",{d:"M4 10.5l4 4 8-9"}),wallet:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M3 8h14"}),(0,t.jsx)("circle",{cx:"13.5",cy:"11.5",r:"1"})]}),key:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"7",cy:"7",r:"3"}),(0,t.jsx)("path",{d:"M9.2 9.2 16 16m-2.5-2.5 1.5-1.5m-4-1 1.5-1.5"})]}),coins:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ellipse",{cx:"8",cy:"6",rx:"4.5",ry:"2.2"}),(0,t.jsx)("path",{d:"M3.5 6v4c0 1.2 2 2.2 4.5 2.2s4.5-1 4.5-2.2V6"}),(0,t.jsx)("path",{d:"M12.5 10.5c2.2.2 4 1.1 4 2.3 0 1.2-2 2.2-4.5 2.2-1 0-1.9-.15-2.6-.4"})]}),external:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M11 4h5v5"}),(0,t.jsx)("path",{d:"M16 4l-7 7"}),(0,t.jsx)("path",{d:"M14 11.5V15a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 15V7a1.5 1.5 0 0 1 1.5-1.5H8"})]}),sparkle:(0,t.jsx)("path",{d:"M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6L10 3z"}),users:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"7.5",cy:"7",r:"2.6"}),(0,t.jsx)("path",{d:"M3 16c0-2.5 2-4.2 4.5-4.2S12 13.5 12 16"}),(0,t.jsx)("path",{d:"M13 6.2a2.4 2.4 0 0 1 0 4.6M14 16c0-2.2-.8-3.5-2-4.2"})]}),upload:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 13V4"}),(0,t.jsx)("path",{d:"M6.5 7.5 10 4l3.5 3.5"}),(0,t.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),download:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 4v9"}),(0,t.jsx)("path",{d:"M6.5 9.5 10 13l3.5-3.5"}),(0,t.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),clock:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,t.jsx)("path",{d:"M10 6v4l2.5 2"})]}),info:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,t.jsx)("path",{d:"M10 9v4"}),(0,t.jsx)("path",{d:"M10 6.5h.01"})]}),shield:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 3l6 2v4c0 4-2.7 6.5-6 8-3.3-1.5-6-4-6-8V5l6-2z"}),(0,t.jsx)("path",{d:"M7.5 10l1.8 1.8L13 8"})]}),"arrow-right":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M4 10h11"}),(0,t.jsx)("path",{d:"M11 6l4 4-4 4"})]}),pen:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M13.5 3.5 16.5 6.5 7 16H4v-3z"}),(0,t.jsx)("path",{d:"M12 5 15 8"})]}),"sign-out":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M8 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8"}),(0,t.jsx)("path",{d:"M12 13l3-3-3-3"}),(0,t.jsx)("path",{d:"M15 10H8"})]}),flag:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M5 17V3"}),(0,t.jsx)("path",{d:"M5 4h9l-2 3 2 3H5"})]})};function i(e){let{name:n,size:r=16,className:i,style:s,...l}=e;return(0,t.jsx)("svg",{width:r,height:r,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",className:i,style:{verticalAlign:"-0.15em",flexShrink:0,...s},...l,children:a[n]})}},4715:(e,n,r)=>{r.d(n,{T:()=>s});var t=r(4568),a=r(7620),i=r(826);let s=a.forwardRef((e,n)=>{let{className:r,...a}=e;return(0,t.jsx)("textarea",{className:(0,i.cn)("flex min-h-[72px] w-full resize-y rounded-md border border-input bg-[var(--color-bg-input)] px-3 py-2 text-sm leading-relaxed text-foreground transition-colors placeholder:text-muted-foreground focus-visible:border-ring focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-55",r),ref:n,...a})});s.displayName="Textarea"},6263:(e,n,r)=>{r.d(n,{AppSidenav:()=>d});var t=r(4568),a=r(7620),i=r(9664),s=r.n(i),l=r(7541);let o="komunify-app-sidebar",c=[{label:"Dashboard",href:"/dashboard",icon:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),(0,t.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"})]})},{label:"Explore",href:"/explore",icon:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,t.jsx)("path",{d:"m15.5 8.5-2.1 4.9-4.9 2.1 2.1-4.9 4.9-2.1Z"})]})},{label:"Start",href:"/start",icon:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 3v18M3 12h18"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9"})]})}];function d(){let e=(0,l.usePathname)(),[n,r]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.localStorage.getItem(o);null!==e&&r("true"===e)},[]),(0,t.jsxs)("aside",{className:"sticky top-0 hidden h-screen shrink-0 flex-col gap-8 overflow-y-auto border-r border-[var(--color-border-medium)] bg-[var(--color-bg-elevated)] px-4 py-5 transition-[width] duration-200 ease-out min-[901px]:flex ".concat(n?"w-16":"w-[232px]"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 ".concat(n?"flex-col":"flex-row"),children:[(0,t.jsxs)(s(),{href:"/","aria-label":"Komunify home",className:"inline-flex items-center ".concat(n?"gap-0":"gap-3"),children:[(0,t.jsx)("img",{src:"".concat("/landing","/logo-mark.png"),alt:"",className:"h-8 w-auto shrink-0"}),(0,t.jsxs)("span",{className:"whitespace-nowrap font-sans text-lg font-bold tracking-[0.15em] ".concat(n?"hidden":"inline"),children:[(0,t.jsx)("span",{className:"text-[var(--color-content-accent)]",children:"K"}),(0,t.jsx)("span",{className:"text-[var(--color-content-primary)]",children:"OMUNIFY"})]})]}),(0,t.jsx)("button",{type:"button",onClick:function(){r(e=>{let n=!e;return window.localStorage.setItem(o,String(n)),n})},"aria-expanded":!n,"aria-label":n?"Expand sidebar":"Collapse sidebar",title:n?"Expand sidebar":"Collapse sidebar",className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-[var(--radius-md)] border border-[var(--color-border-medium)] bg-[var(--color-bg-input)] text-[var(--color-content-secondary)] transition-colors duration-150 hover:border-[var(--color-border-accent)] hover:bg-[var(--color-bg-accent-tint)] hover:text-[var(--color-content-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-content-accent)]",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"h-4 w-4 stroke-current",children:(0,t.jsx)("path",{d:n?"m9 18 6-6-6-6":"m15 18-6-6 6-6",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,t.jsxs)("nav",{"aria-label":"Member navigation",className:"flex flex-col gap-0.5",children:[(0,t.jsx)("p",{className:"mb-1.5 text-[11px] font-medium uppercase tracking-[0.06em] text-[var(--color-content-secondary)] ".concat(n?"hidden":"block"),children:"Member"}),c.map(r=>{let a=e===r.href||e.startsWith("".concat(r.href,"/"));return(0,t.jsxs)(s(),{href:r.href,"aria-current":a?"page":void 0,"aria-label":r.label,title:n?r.label:void 0,className:"flex items-center rounded-[var(--radius-md)] py-2 text-[15px] transition-colors duration-150 ".concat(n?"justify-center gap-0 px-0":"gap-2 px-2.5"," ").concat(a?"bg-[var(--color-bg-accent-tint)] font-semibold text-[var(--color-content-accent)]":"text-[var(--color-content-secondary)] hover:bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] hover:text-[var(--color-content-primary)]"," focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-content-accent)]"),children:[(0,t.jsx)("span",{className:"inline-flex shrink-0 items-center [&>svg]:h-[18px] [&>svg]:w-[18px] [&>svg]:stroke-current [&>svg]:stroke-[1.75]",children:r.icon}),(0,t.jsx)("span",{className:n?"hidden":"inline",children:r.label})]},r.href)})]})]})}},6845:(e,n,r)=>{r.d(n,{$:()=>c});var t=r(4568),a=r(7620),i=r(6118),s=r(4616),l=r(826);let o=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:brightness-110",destructive:"bg-destructive text-destructive-foreground hover:brightness-110",outline:"border border-border bg-transparent text-foreground font-medium hover:bg-accent",secondary:"bg-secondary text-secondary-foreground hover:brightness-110",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,n)=>{let{className:r,variant:a,size:s,asChild:c=!1,...d}=e,u=c?i.DX:"button";return(0,t.jsx)(u,{className:(0,l.cn)(o({variant:a,size:s,className:r})),ref:n,...d})});c.displayName="Button"},7588:(e,n,r)=>{r.d(n,{D:()=>h,u:()=>u});var t=r(4568),a=r(9664),i=r.n(a),s=r(7620),l=r(6845),o=r(2779),c=r(3204),d=r(4715);function u(e){var n,r,a;let{initial:i,saving:u,error:h,onSave:m,onCancel:g,submitLabel:p="Save brand",savingLabel:x="Saving…"}=e,[f,v]=(0,s.useState)(null!=(n=null==i?void 0:i.name)?n:""),[y,j]=(0,s.useState)(null!=(r=null==i?void 0:i.description)?r:""),[b,w]=(0,s.useState)(null!=(a=null==i?void 0:i.logo)?a:null),[N,k]=(0,s.useState)(null),S=(0,s.useRef)(null);async function M(e){if(k(null),e)try{w(await new Promise((n,r)=>{if(!e.type.startsWith("image/"))return r(Error("Logo must be an image"));if(e.size>524288)return r(Error("Logo must be under 512 KB"));let t=new FileReader;t.onload=()=>n(t.result),t.onerror=()=>r(Error("Could not read the logo file")),t.readAsDataURL(e)}))}catch(e){k(e instanceof Error?e.message:"Invalid logo")}}return(0,t.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),!f.trim())return void k("Community name is required");m({name:f.trim(),description:y.trim(),logo:b})},children:[(0,t.jsx)("p",{className:"hint",style:{marginTop:0},children:"Set up your community brand: how your published content is presented on your public page. You can edit it anytime."}),(0,t.jsxs)(c.J,{htmlFor:"brand-name",children:["Community name",(0,t.jsx)(o.p,{id:"brand-name",value:f,onChange:e=>v(e.target.value),required:!0})]}),(0,t.jsxs)(c.J,{htmlFor:"brand-description",children:["Description",(0,t.jsx)(d.T,{id:"brand-description",value:y,onChange:e=>j(e.target.value)})]}),(0,t.jsxs)(c.J,{htmlFor:"brand-logo",children:["Logo (optional, image under 512 KB)",(0,t.jsx)("input",{id:"brand-logo",ref:S,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",onChange:e=>{var n;return M(null==(n=e.target.files)?void 0:n[0])}})]}),b?(0,t.jsx)("img",{src:b,alt:"Logo preview",style:{width:48,height:48,objectFit:"contain",borderRadius:"var(--radius-md)",marginBottom:8}}):null,(0,t.jsxs)("div",{className:"row tight",children:[(0,t.jsx)(l.$,{type:"submit",disabled:u,children:u?x:p}),g?(0,t.jsx)(l.$,{type:"button",variant:"outline",size:"sm",onClick:g,disabled:u,children:"Cancel"}):null]}),(null!=N?N:h)?(0,t.jsx)("p",{className:"error",children:null!=N?N:h}):null]})}function h(e){let{wallet:n,brand:r,saving:a,error:o,onSave:c}=e,[d,h]=(0,s.useState)(!1);return r?(0,t.jsx)("section",{className:"card",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{style:{marginTop:0},children:"Edit brand"}),(0,t.jsx)(u,{initial:r,saving:a,error:o,onSave:e=>{c(e),h(!1)},onCancel:()=>h(!1)})]}):(0,t.jsxs)("div",{className:"row",style:{alignItems:"center"},children:[(0,t.jsxs)("div",{className:"row tight",style:{alignItems:"center",marginTop:0},children:[r.logo?(0,t.jsx)("img",{src:r.logo,alt:"".concat(r.name," logo"),style:{width:44,height:44,objectFit:"contain",borderRadius:"var(--radius-md)"}}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{style:{margin:0,fontWeight:700},children:r.name}),r.description?(0,t.jsx)("span",{className:"label",children:r.description}):null]})]}),(0,t.jsxs)("div",{className:"row tight",style:{marginTop:0},children:[n?(0,t.jsx)(l.$,{asChild:!0,variant:"outline",size:"sm",children:(0,t.jsx)(i(),{href:"/community/".concat(n),target:"_blank",rel:"noreferrer",children:"View page"})}):null,(0,t.jsx)(l.$,{type:"button",variant:"outline",size:"sm",onClick:()=>h(!0),children:"Edit brand"})]})]})}):(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{style:{marginTop:0},children:"Finish setting up"}),(0,t.jsx)("p",{className:"hint",style:{marginTop:0},children:"Add your community brand so members can find you and recognize your work."}),(0,t.jsx)(l.$,{asChild:!0,children:(0,t.jsx)(i(),{href:"/start",children:"Set up my community"})})]})}},7592:(e,n,r)=>{r.d(n,{p:()=>o});var t=r(4568),a=r(6845),i=r(4710),s=r(8359),l=r(9798);function o(e){let{onSignedIn:n}=e,{address:r}=(0,s.v)(),o=(0,l.go)();async function c(){await o.mutateAsync(),null==n||n()}return(0,t.jsxs)("section",{className:"card center",children:[(0,t.jsx)("span",{className:"label",children:"Step 2 of 2"}),(0,t.jsx)("p",{style:{margin:"6px 0 4px",fontWeight:600},children:"Sign in to your account"}),(0,t.jsx)("p",{className:"hint",style:{marginTop:0},children:"Your wallet is connected. Now sign one message to start a secure session. This is how you open content and publish. No gas, no password."}),(0,t.jsxs)(a.$,{type:"button",onClick:c,disabled:o.isPending||!r,children:[(0,t.jsx)(i.I,{name:"pen",size:15}),o.isPending?"Check your wallet…":"Sign in"]}),o.isError?(0,t.jsx)("p",{className:"error",style:{marginBottom:0},children:o.error instanceof Error?o.error.message:"Sign-in was cancelled or failed. Try again."}):null]})}},9798:(e,n,r)=>{r.d(n,{yj:()=>h,go:()=>m,Rt:()=>g});var t=r(3497),a=r(5620),i=r(7251),s=r(3143);class l{static challenge(e){return s.N.post(i.S.auth.challenge,{address:e})}static verify(e,n){return s.N.post(i.S.auth.verify,{address:e,signature:n})}static logout(){return s.N.post(i.S.auth.logout)}static me(){return s.N.get(i.S.auth.me)}static async signIn(e){var n;let{nonce:r}=await this.challenge(e),t=await (0,a.signMessage)(r,{address:e});if(t.error)throw Error(t.error.message);let i="string"==typeof t.signedMessage?t.signedMessage:function(e){let n="";for(let r of e)n+=String.fromCharCode(r);return btoa(n)}(new Uint8Array(null!=(n=t.signedMessage)?n:[]));return this.verify(e,i)}}var o=r(2995),c=r(4869),d=r(1562),u=r(8359);function h(){let{address:e}=(0,u.v)();return(0,o.I)({queryKey:t.Z.me(e),queryFn:()=>l.me(),enabled:!!e,retry:!1})}function m(){let{address:e}=(0,u.v)(),n=(0,c.jE)();return(0,d.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return l.signIn(e)},onSuccess:()=>n.invalidateQueries({queryKey:t.Z.all(e)})})}function g(){let{address:e}=(0,u.v)(),n=(0,c.jE)();return(0,d.n)({mutationFn:()=>l.logout(),onSuccess:()=>n.invalidateQueries({queryKey:t.Z.all(e)})})}},9932:(e,n,r)=>{r.d(n,{f:()=>p});var t=r(4568),a=r(9664),i=r.n(a),s=r(7620),l=r(6845),o=r(4710),c=r(2779),d=r(3204),u=r(4715),h=r(8359),m=r(6379),g=r(592);function p(){let{address:e}=(0,h.v)(),[n,r]=(0,s.useState)("upload"),[a,p]=(0,s.useState)(""),[x,f]=(0,s.useState)(""),[v,y]=(0,s.useState)(null),[j,b]=(0,s.useState)(null),[w,N]=(0,s.useState)(null),[k,S]=(0,s.useState)(null),[M,F]=(0,s.useState)(null),C=(0,m.so)(),E=(0,g.qv)(),I=(0,m.Xh)();async function q(){if(b(null),!v)return void b("Choose a PDF file first");try{let e=await C.mutateAsync({file:v,title:a,description:x});N(e.draftId),S(e.sha256),r("register")}catch(e){b(e instanceof Error?e.message:"Upload failed (is the API running?)")}}async function A(){if(b(null),e&&k)try{var n,t;let e=new Uint8Array(null!=(t=null==(n=k.match(/.{1,2}/g))?void 0:n.map(e=>parseInt(e,16)))?t:[]),a=await E.mutateAsync(e);F(a.toString()),r("confirm")}catch(e){b(e instanceof Error?e.message:"register_content failed")}}async function _(){if(b(null),w&&M)try{await I.mutateAsync({draftId:w,contentId:M,txHash:""}),r("done")}catch(e){b(e instanceof Error?e.message:"Confirm failed")}}return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Publish content"}),(0,t.jsx)("div",{className:"row tight",style:{marginBottom:12},children:[{key:"upload",label:"1 Upload"},{key:"register",label:"2 Sign"},{key:"confirm",label:"3 Publish"}].map(e=>(0,t.jsx)("span",{className:n===e.key||"done"===n&&"confirm"===e.key?"pill accent":"pill",children:e.label},e.key))}),"upload"===n?(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),q()},children:[(0,t.jsxs)(d.J,{htmlFor:"upload-title",children:["Title",(0,t.jsx)(c.p,{id:"upload-title",value:a,onChange:e=>p(e.target.value),required:!0})]}),(0,t.jsxs)(d.J,{htmlFor:"upload-description",children:["Description",(0,t.jsx)(u.T,{id:"upload-description",value:x,onChange:e=>f(e.target.value),required:!0})]}),(0,t.jsxs)(d.J,{htmlFor:"upload-file",children:["PDF file",(0,t.jsx)("input",{id:"upload-file",type:"file",accept:"application/pdf",onChange:e=>{var n,r;return y(null!=(r=null==(n=e.target.files)?void 0:n[0])?r:null)},required:!0})]}),(0,t.jsxs)(l.$,{type:"submit",disabled:C.isPending,children:[(0,t.jsx)(o.I,{name:"upload",size:15}),C.isPending?"Uploading…":"Upload"]})]}):null,"register"===n?(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"hint",children:["Your file is ready and fingerprinted (",(0,t.jsxs)("code",{children:[null==k?void 0:k.slice(0,16),"…"]}),"). Sign to record it on-chain. This proves you’re the author and locks the file so it can’t be swapped later."]}),(0,t.jsxs)(l.$,{type:"button",onClick:A,disabled:E.isPending,children:[(0,t.jsx)(o.I,{name:"pen",size:15}),E.isPending?"Check your wallet…":"Sign & register"]})]}):null,"confirm"===n?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"hint",children:"Almost live. One more click to publish it to your library."}),(0,t.jsxs)(l.$,{type:"button",onClick:_,disabled:I.isPending,children:[(0,t.jsx)(o.I,{name:"check",size:15}),I.isPending?"Publishing…":"Publish"]})]}):null,"done"===n?(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"success",style:{marginTop:0,display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(o.I,{name:"check",size:14})," Published on-chain. It’s live in your library."]}),(0,t.jsxs)("div",{className:"row tight",children:[(0,t.jsxs)(l.$,{type:"button",onClick:function(){b(null),p(""),f(""),y(null),N(null),S(null),F(null),r("upload")},children:[(0,t.jsx)(o.I,{name:"upload",size:15})," Publish another"]}),e?(0,t.jsx)(l.$,{asChild:!0,variant:"outline",size:"sm",children:(0,t.jsx)(i(),{href:"/community/".concat(e),target:"_blank",rel:"noreferrer",children:"View public page →"})}):null]})]}):null,j?(0,t.jsx)("p",{className:"error",children:j}):null]})}}}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/928-115bc6d04c8d41eb.js b/prototype/landing/_next/static/chunks/928-115bc6d04c8d41eb.js deleted file mode 100644 index 78a6368..0000000 --- a/prototype/landing/_next/static/chunks/928-115bc6d04c8d41eb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{10:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(9758),r=i(541);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.S)||[];if(!n)return t;let o=i.replace(n,""),a=+!!s.has(e);return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},254:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},309:(t,e,i)=>{i.d(e,{x:()=>o});var n=i(6516),r=i(7457),s=i(5588);function o(t,e,i){let o=(0,s.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(o[-1!==r.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},541:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},587:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(4731),r=i(9451),s=i(5906),o=i(4939),a=i(3025),l=i(7457),u=i(5570),h=i(5588);class d extends r.b{constructor(){super(...arguments),this.type="html",this.renderInstance=u.e}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,o.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,s.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,n.m)(t,e)}build(t,e,i){(0,a.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.x)(t,e,i)}}},878:(t,e,i)=>{i.d(e,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},879:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(7037);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){return t===e&&i===s?n.l:n=>0===n||1===n?n:r(function(t,e,i,n,s){let o,a,l=0;do(o=r(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a}(n,0,1,t,i),e,s)}},951:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(4412),r=i(6949),s=i(4977);let o={test:t=>s.B.test(t)||n.u.test(t)||r.V.test(t),parse:t=>s.B.test(t)?s.B.parse(t):r.V.test(t)?r.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.B.transform(t):r.V.transform(t)}},1494:(t,e,i)=>{i.d(e,{X:()=>r});let n=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(n),o=e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}},1776:(t,e,i)=>{i.d(e,{z:()=>d});var n=i(7620),r=i(6691),s=i(9070),o=i(5176),a=i(8425),l=i(6516),u=i(3060);function h(t){return"number"==typeof t?t:parseFloat(t)}function d(t,e={}){let{isStatic:i}=(0,n.useContext)(s.Q),c=(0,n.useRef)(null),p=(0,a.d)((0,l.S)(t)?h(t.get()):t),f=(0,n.useRef)(p.get()),m=(0,n.useRef)(()=>{}),v=()=>{let t=c.current;t&&0===t.time&&t.sample(u.uv.delta),g(),c.current=(0,r.L)({keyframes:[p.get(),f.current],velocity:p.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:m.current})},g=()=>{c.current&&c.current.stop()};return(0,n.useInsertionEffect)(()=>p.attach((t,e)=>i?e(t):(f.current=t,m.current=e,u.Gt.update(v),p.get()),g),[JSON.stringify(e)]),(0,o.E)(()=>{if((0,l.S)(t))return t.on("change",t=>p.set(h(t)))},[p]),p}},1806:(t,e,i)=>{i.d(e,{Y:()=>r});var n=i(8081);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.f)(i-t(r),e-r)}},1872:(t,e,i)=>{i.d(e,{Sz:()=>o,ZZ:()=>l,dg:()=>a});var n=i(879),r=i(7617),s=i(4344);let o=(0,n.A)(.33,1.53,.69,.99),a=(0,s.G)(o),l=(0,r.V)(a)},1889:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var n=i(7974),r=i(3060);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Gt.read(u),r.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r{i.d(e,{t:()=>n});let n=(0,i(7620).createContext)(null)},2068:(t,e,i)=>{i.d(e,{A:()=>a});var n=i(7620);let r=function(){for(var t=arguments.length,e=Array(t),i=0;i!!t&&i.indexOf(t)===e).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:d,...c}=t;return(0,n.createElement)("svg",{ref:e,...s,width:o,height:o,stroke:i,strokeWidth:l?24*Number(a)/Number(o):a,className:r("lucide",u),...c},[...d.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),a=(t,e)=>{let i=(0,n.forwardRef)((i,s)=>{let{className:a,...l}=i;return(0,n.createElement)(o,{ref:s,iconNode:e,className:r("lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return i.displayName="".concat(t),i}},2116:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},2250:(t,e,i)=>{function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{FY:()=>n,bS:()=>s,pA:()=>r})},2455:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},2565:(t,e,i)=>{i.d(e,{i:()=>B});var n=i(4316),r=i(4991),s=i(5313),o=i(8928),a=i(5696),l=i(9541);function u(t,e){return(0,l.h)(t)?t[((t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t})(0,t.length,e)]:t}var h=i(5075),d=i(3449),c=i(6516);function p(t){return"object"==typeof t&&!Array.isArray(t)}function f(t,e,i,r){return"string"==typeof t&&p(e)?(0,n.KJ)(t,i,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function m(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!=(r=n.get(e))?r:t}var v=i(7946),g=i(5855);function y(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function x(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function w(t,e){return e[t]||(e[t]=[]),e[t]}let P=t=>"number"==typeof t,b=t=>t.every(P);var A=i(4709),S=i(9747),T=i(4983),E=i(9603),k=i(587),M=i(8912),V=i(7966);class C extends V.B{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,M.ge)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function D(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,T.x)(t)?new E.l(e):new k.M(e);i.mount(t),A.C.set(t,i)}function R(t){let e=new C({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),A.C.set(t,e)}var L=i(8118);function j(t,e,i,n){let r=[];if((0,c.S)(t)||"number"==typeof t||"string"==typeof t&&!p(e))r.push((0,L.z)(t,p(e)&&e.default||e,i&&i.default||i));else{let s=f(t,e,n),a=s.length;(0,o.V)(!!a,"No valid elements provided.");for(let t=0;t{var f;let m=Array.isArray(f=t)?f:[f],{delay:y=0,times:x=(0,h.Z)(m),type:w="keyframes",repeat:P,repeatType:A,repeatDelay:S=0,...T}=i,{ease:E=e.ease||"easeOut",duration:V}=i,C="function"==typeof y?y(a,c):y,D=m.length,L=(0,n.WH)(w)?w:null==l?void 0:l[w];if(D<=2&&L){let t=100;2===D&&b(m)&&(t=Math.abs(m[1]-m[0]));let e={...T};void 0!==V&&(e.duration=(0,s.f)(V));let i=(0,n.XG)(e,t,L);E=i.ease,V=i.duration}null!=V||(V=p);let j=k+C;1===x.length&&0===x[0]&&(x[1]=1);let B=x.length-m.length;if(B>0&&(0,d.f)(x,B),1===m.length&&m.unshift(null),P){(0,o.V)(P<20,"Repeat count too high, must be less than 20");V*=P+1;let t=[...m],e=[...x],i=[...E=Array.isArray(E)?[...E]:[E]];for(let n=0;nr&&i.at{for(let r in t){let s=t[r];s.sort(y);let o=[],l=[],u=[];for(let t=0;t{l.push(...j(i,t,e))}),l}(e,i,void 0):j(e,i,l,void 0);let P=new n.P6(p);return t&&t.animations.push(P),P}}()},3025:(t,e,i)=>{i.d(e,{O:()=>u});var n=i(5906);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var s=i(4027),o=i(7457);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o.U.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(o.f.has(t)){c=!0;continue}if((0,n.j)(t)){h[t]=i;continue}{let e=r(i,s.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let n="",u=!0;for(let h=0;h{i.d(e,{Gt:()=>r,PP:()=>a,WG:()=>s,uv:()=>o});var n=i(7037);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(8828).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},3109:(t,e,i)=>{i.d(e,{OQ:()=>u,bt:()=>a});var n=i(9810),r=i(4844),s=i(8081),o=i(3060);let a={current:void 0};class l{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=n.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},3140:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]])},3164:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(3025),r=i(8201);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:d,pathSpacing:c=1,pathOffset:p=0,...f},m,v){if((0,n.O)(t,f,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:g,style:y,dimensions:x}=t;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(void 0!==u||void 0!==h||y.transform)&&(y.transformOrigin=function(t,e,i){let n=a(e,t.x,t.width),r=a(i,t.y,t.height);return`${n} ${r}`}(x,void 0!==u?u:.5,void 0!==h?h:.5)),void 0!==e&&(g.x=e),void 0!==i&&(g.y=i),void 0!==l&&(g.scale=l),void 0!==d&&function(t,e,i=1,n=0,a=!0){t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(g,d,c,p,!1)}},3185:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},3227:(t,e,i)=>{i.d(e,{$:()=>r,H:()=>n});let n={};function r(t){Object.assign(n,t)}},3245:(t,e,i)=>{i.d(e,{i:()=>d});var n=i(9810),r=i(1889),s=i(6082),o=i(4316),a=i(8928),l=i(9758);let u=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(l.f.test(t)||"0"===t)&&!t.startsWith("url("));var h=i(1494);class d{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=n.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,r.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:l,delay:d,onComplete:c,onUpdate:p,isGenerator:f}=this.options;if(!f&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],l=u(r,e),h=u(s,e);return(0,a.$)(l===h,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!l&&!!h&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}},3425:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(6516);function r(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e)}},3432:(t,e,i)=>{i.d(e,{P:()=>r});var n=i(9982);function r(t){return t.props[n.n]}},3440:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},3449:(t,e,i)=>{i.d(e,{f:()=>s});var n=i(5696),r=i(5855);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.q)(0,e,s);t.push((0,r.k)(i,1,o))}}},3641:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("BadgePercent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]])},3680:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(7457).U])},3830:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>r});let n={current:null},r={current:!1}},3847:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(7620);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},3857:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},4004:(t,e,i)=>{i.d(e,{B:()=>r});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},4027:(t,e,i)=>{i.d(e,{W:()=>l});var n=i(4336),r=i(8201);let s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px},o={rotate:r.uj,rotateX:r.uj,rotateY:r.uj,rotateZ:r.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:r.uj,skewX:r.uj,skewY:r.uj,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.X4,originX:r.gQ,originY:r.gQ,originZ:r.px},a={...n.ai,transform:Math.round},l={...s,...o,zIndex:a,size:r.px,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:a}},4079:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},4255:(t,e,i)=>{i.d(e,{d:()=>o});var n=i(6096),r=i(5570),s=i(8887);function o(t,e,i,o){for(let i in(0,r.e)(t,e,void 0,o),e.attrs)t.setAttribute(s.e.has(i)?i:(0,n.I)(i),e.attrs[i])}},4276:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},4316:(t,e,i)=>{i.d(e,{P6:()=>o,vG:()=>p,tu:()=>u,XG:()=>d,KZ:()=>y,rU:()=>a,PT:()=>E,DW:()=>f,WH:()=>c,Mc:()=>M,yL:()=>x,TU:()=>function t(e,i){if(e)return"function"==typeof e&&v()?y(e,i):f(e)?w(e):Array.isArray(e)?e.map(e=>t(e,i)||P.easeOut):P[e]},YE:()=>l,c$:()=>j,KJ:()=>A,Wp:()=>B,nL:()=>v,Jb:()=>r});var n=i(4079);let r=(0,n.p)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;ir()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class o extends s{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function u(t){let e=0,i=t.next(e);for(;!i.done&&e=l?1/0:e}var h=i(5313);function d(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(u(n),l);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:(0,h.X)(r)}}function c(t){return"function"==typeof t}function p(t,e){t.timeline=e,t.onfinish=null}let f=t=>Array.isArray(t)&&"number"==typeof t[0],m={linearEasing:void 0},v=function(t,e){let i=(0,n.p)(t);return()=>{var t;return null!=(t=m[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var g=i(5696);let y=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,P={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:w([0,.65,.55,1]),circOut:w([.55,0,1,.45]),backIn:w([.31,.01,.66,-.59]),backOut:w([.33,1.53,.69,.99])},b={x:!1,y:!1};function A(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!=(n=null==i?void 0:i[t])?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function S(t,e){let i=A(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function T(t){return e=>{"touch"===e.pointerType||b.x||b.y||t(e)}}function E(t,e,i={}){let[n,r,s]=S(t,i),o=T(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let s=T(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}let k=(t,e)=>!!e&&(t===e||k(t,e.parentElement)),M=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,V=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),C=new WeakSet;function D(t){return e=>{"Enter"===e.key&&t(e)}}function R(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function L(t){return M(t)&&!(b.x||b.y)}function j(t,e,i={}){let[n,r,s]=S(t,i),o=t=>{let n=t.currentTarget;if(!L(t)||C.has(n))return;C.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),L(t)&&C.has(n)&&(C.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||k(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{V.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=D(()=>{if(C.has(i))return;R(i,"down");let t=D(()=>{R(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>R(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r),r)}),s}function B(t){if("x"===t||"y"===t)if(b[t])return null;else return b[t]=!0,()=>{b[t]=!1};return b.x||b.y?null:(b.x=b.y=!0,()=>{b.x=b.y=!1})}i(7037)},4336:(t,e,i)=>{i.d(e,{X4:()=>s,ai:()=>r,hs:()=>o});var n=i(7112);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.q)(0,1,t)},o={...r,default:1}},4344:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},4412:(t,e,i)=>{i.d(e,{u:()=>r});var n=i(4977);let r={test:(0,i(7033).$)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.B.transform}},4553:(t,e,i)=>{i.d(e,{W:()=>o});var n=i(7620),r=i(4316);let s={some:0,all:1};function o(t,{root:e,margin:i,amount:a,once:l=!1}={}){let[u,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!t.current||l&&u)return;let n={root:e&&e.current||void 0,margin:i,amount:a};return function(t,e,{root:i,margin:n,amount:o="some"}={}){let a=(0,r.KJ)(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let i=l.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t);"function"==typeof i?l.set(t.target,i):u.unobserve(t.target)}else"function"==typeof i&&(i(t),l.delete(t.target))})},{root:i,rootMargin:n,threshold:"number"==typeof o?o:s[o]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(h(!0),l?void 0:()=>h(!1)),n)},[e,t,i,l,a]),u}},4569:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},4594:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},4709:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},4731:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>s});var n=i(2250),r=i(9925);function s(t,e){return(0,n.FY)((0,n.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.Ql)(n.x,o.offset.x),(0,r.Ql)(n.y,o.offset.y)),n}},4769:(t,e,i)=>{i.d(e,{U:()=>s});var n=i(6898),r=i(3830);function s(){if(r.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.O.current=t.matches;t.addListener(e),e()}else r.O.current=!1}},4844:(t,e,i)=>{i.d(e,{v:()=>r});var n=i(7946);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r{i.d(e,{D:()=>o});var n=i(951),r=i(10);let s={...i(4027).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:r.p,WebkitFilter:r.p},o=t=>s[t]},4977:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(7112),r=i(4336),s=i(6872),o=i(7033);let a={...r.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,s.a)(r.X4.transform(n))+")"}},4983:(t,e,i)=>{i.d(e,{x:()=>n});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},4991:(t,e,i)=>{i.d(e,{o:()=>p});var n=i(4316),r=i(5313),s=i(7112),o=i(1806);let a={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var l=i(8928);function u(t,e){return t*Math.sqrt(1-e*e)}let h=["duration","bounce"],d=["stiffness","damping","mass"];function c(t,e){return e.some(e=>void 0!==t[e])}function p(t=a.visualDuration,e=a.bounce){let i,f="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:m,restDelta:v}=f,g=f.keyframes[0],y=f.keyframes[f.keyframes.length-1],x={done:!1,value:g},{stiffness:w,damping:P,mass:b,duration:A,velocity:S,isResolvedFromDuration:T}=function(t){let e={velocity:a.velocity,stiffness:a.stiffness,damping:a.damping,mass:a.mass,isResolvedFromDuration:!1,...t};if(!c(t,d)&&c(t,h))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,s.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:a.mass,stiffness:n,damping:r}}else{let i=function({duration:t=a.duration,bounce:e=a.bounce,velocity:i=a.velocity,mass:n=a.mass}){let o,h;(0,l.$)(t<=(0,r.f)(a.maxDuration),"Spring duration must be 10 seconds or less");let d=1-e;d=(0,s.q)(a.minDamping,a.maxDamping,d),t=(0,s.q)(a.minDuration,a.maxDuration,(0,r.X)(t)),d<1?(o=e=>{let n=e*d,r=n*t;return .001-(n-i)/u(e,d)*Math.exp(-r)},h=e=>{let n=e*d*t,r=Math.pow(d,2)*Math.pow(e,2)*t,s=Math.exp(-n),a=u(Math.pow(e,2),d);return(n*i+i-r)*s*(-o(e)+.001>0?-1:1)/a}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),h=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(o,h,5/t);if(t=(0,r.f)(t),isNaN(c))return{stiffness:a.stiffness,damping:a.damping,duration:t};{let e=Math.pow(c,2)*n;return{stiffness:e,damping:2*d*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:a.mass}).isResolvedFromDuration=!0}return e}({...f,velocity:-(0,r.X)(f.velocity||0)}),E=S||0,k=P/(2*Math.sqrt(w*b)),M=y-g,V=(0,r.X)(Math.sqrt(w/b)),C=5>Math.abs(M);if(m||(m=C?a.restSpeed.granular:a.restSpeed.default),v||(v=C?a.restDelta.granular:a.restDelta.default),k<1){let t=u(V,k);i=e=>y-Math.exp(-k*V*e)*((E+k*V*M)/t*Math.sin(t*e)+M*Math.cos(t*e))}else if(1===k)i=t=>y-Math.exp(-V*t)*(M+(E+V*M)*t);else{let t=V*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*V*e),n=Math.min(t*e,300);return y-i*((E+k*V*M)*Math.sinh(n)+t*M*Math.cosh(n))/t}}let D={calculatedDuration:T&&A||null,next:t=>{let e=i(t);if(T)x.done=t>=A;else{let n=0;k<1&&(n=0===t?(0,r.f)(E):(0,o.Y)(i,t,e));let s=Math.abs(y-e)<=v;x.done=Math.abs(n)<=m&&s}return x.value=x.done?y:e,x},toString:()=>{let t=Math.min((0,n.tu)(D),n.YE),e=(0,n.KZ)(e=>D.next(t*e).value,t,30);return t+"ms "+e}};return D}},5075:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(3449);function r(t){let e=[0];return(0,n.f)(e,t.length-1),e}},5176:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(7620);let r=i(6898).B?n.useLayoutEffect:n.useEffect},5240:(t,e,i)=>{i.d(e,{G:()=>u});var n=i(7037),r=i(8928),s=i(5696),o=i(7112),a=i(5710),l=i(7217);function u(t,e,{clamp:i=!0,ease:h,mixer:d}={}){let c=t.length;if((0,r.V)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let r=[],s=i||a.j,o=t.length-1;for(let i=0;i{if(p&&i1)for(;nv((0,o.q)(t[0],t[c-1],e)):v}},5310:(t,e,i)=>{i.d(e,{J:()=>o});var n=i(9758),r=i(10),s=i(4939);function o(t,e){let i=(0,s.D)(t);return i!==r.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},5313:(t,e,i)=>{i.d(e,{X:()=>r,f:()=>n});let n=t=>1e3*t,r=t=>t/1e3},5570:(t,e,i)=>{i.d(e,{e:()=>n});function n(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}},5588:(t,e,i)=>{i.d(e,{x:()=>s});var n=i(8745),r=i(6516);function s(t,e,i){var s;let{style:o}=t,a={};for(let l in o)((0,r.S)(o[l])||e.style&&(0,r.S)(e.style[l])||(0,n.z)(l,t)||(null==(s=null==i?void 0:i.getValue(l))?void 0:s.liveStyle)!==void 0)&&(a[l]=o[l]);return a}},5696:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},5710:(t,e,i)=>{i.d(e,{j:()=>S});var n=i(5855),r=i(8928);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(4412),a=i(4977),l=i(6949);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},d=[o.u,a.B,l.V];function c(t){let e=d.find(e=>e.test(t));if((0,r.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=s(l,n,t+1/3),o=s(l,n,t),a=s(l,n,t-1/3)}else r=o=a=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let p=(t,e)=>{let i=c(t),r=c(e);if(!i||!r)return u(t,e);let s={...i};return t=>(s.red=h(i.red,r.red,t),s.green=h(i.green,r.green,t),s.blue=h(i.blue,r.blue,t),s.alpha=(0,n.k)(i.alpha,r.alpha,t),a.B.transform(s))};var f=i(7217),m=i(951),v=i(9758),g=i(5906);let y=new Set(["none","hidden"]);function x(t,e){return i=>(0,n.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?u:m.y.test(t)?p:A:Array.isArray(t)?P:"object"==typeof t?m.y.test(t)?p:b:u}function P(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let A=(t,e)=>{let i=v.f.createTransformer(e),n=(0,v.V)(t),s=(0,v.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?y.has(t)&&!s.values.length||y.has(e)&&!n.values.length?function(t,e){return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,f.F)(P(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},5902:(t,e,i)=>{i.d(e,{K:()=>m});var n=i(254),r=i(3680),s=i(9758),o=i(5310);let a=new Set(["auto","none","0"]);var l=i(1889),u=i(8928),h=i(4276),d=i(5906);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=i(7974),f=i(8637);class m extends l.h{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},5906:(t,e,i)=>{i.d(e,{j:()=>r,p:()=>o});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},5941:(t,e,i)=>{i.d(e,{b:()=>r});var n=i(1872);let r=t=>(t*=2)<1?.5*(0,n.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},5971:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(7620).createContext)({})},6082:(t,e,i)=>{i.d(e,{d:()=>n});let n={current:!1}},6096:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},6163:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},6405:(t,e,i)=>{function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{a:()=>r})},6472:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(7620),r=i(2015);function s(t=!0){let e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},6516:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},6691:(t,e,i)=>{i.d(e,{o:()=>j,L:()=>B});var n=i(4316),r=i(5313),s=i(1889),o=i(7112),a=i(5710),l=i(7217),u=i(4991),h=i(1806);function d({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:d=.5,restSpeed:c}){let p,f,m=t[0],v={done:!1,value:m},g=i*e,y=m+g,x=void 0===o?y:o(y);x!==y&&(g=x-m);let w=t=>-g*Math.exp(-t/n),P=t=>x+w(t),b=t=>{let e=w(t),i=P(t);v.done=Math.abs(e)<=d,v.value=v.done?x:i},A=t=>{let e;if(e=v.value,void 0!==a&&el){var i;p=t,f=(0,u.o)({keyframes:[v.value,(i=v.value,void 0===a?l:void 0===l||Math.abs(a-i){let e=!1;return(f||void 0!==p||(e=!0,b(t),A(t)),void 0!==p&&t>=p)?f.next(t-p):(e||b(t),v)}}}var c=i(879);let p=(0,c.A)(.42,0,1,1),f=(0,c.A)(0,0,.58,1),m=(0,c.A)(.42,0,.58,1);var v=i(9541),g=i(7037),y=i(8928),x=i(5941),w=i(1872),P=i(6732);let b={linear:g.l,easeIn:p,easeInOut:m,easeOut:f,circIn:P.po,circInOut:P.tn,circOut:P.yT,backIn:w.dg,backInOut:w.ZZ,backOut:w.Sz,anticipate:x.b},A=t=>{if((0,n.DW)(t)){(0,y.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return(0,c.A)(e,i,n,r)}return"string"==typeof t?((0,y.V)(void 0!==b[t],`Invalid easing type '${t}'`),b[t]):t};var S=i(5240),T=i(5075);function E({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=(0,v.h)(n)?n.map(A):A(n),o={done:!1,value:e[0]},a=(r=i&&i.length===e.length?i:(0,T.Z)(e),r.map(e=>e*t)),l=(0,S.G)(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||m).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}var k=i(3245),M=i(9810),V=i(3060);let C=t=>{let e=({timestamp:e})=>t(e);return{start:()=>V.Gt.update(e,!0),stop:()=>(0,V.WG)(e),now:()=>V.uv.isProcessing?V.uv.timestamp:M.k.now()}};var D=i(1494);let R={decay:d,inertia:d,tween:E,keyframes:E,spring:u.o},L=t=>t/100;class j extends k.i{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,o=(null==n?void 0:n.KeyframeResolver)||s.h,a=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new o(r,a,e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:u,velocity:h=0}=this.options,d=(0,n.WH)(r)?r:R[r]||E;d!==E&&"number"!=typeof t[0]&&(e=(0,l.F)(L,(0,a.j)(t[0],t[1])),t=[0,100]);let c=d({...this.options,keyframes:t});"mirror"===u&&(i=d({...this.options,keyframes:[...t].reverse(),velocity:-h})),null===c.calculatedDuration&&(c.calculatedDuration=(0,n.tu)(c));let{calculatedDuration:p}=c,f=p+o;return{generator:c,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:p,resolvedDuration:f,totalDuration:f*(s+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:h,resolvedDuration:d}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:p,repeatType:f,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,w=r;if(p){let t=Math.min(this.currentTime,h)/d,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===f?(i=1-i,m&&(i-=m/d)):"mirror"===f&&(w=s)),x=(0,o.q)(0,1,i)*d}let P=y?{done:!1,value:l[0]}:w.next(x);a&&(P.value=a(P.value));let{done:b}=P;y||null===u||(b=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return A&&void 0!==n&&(P.value=(0,D.X)(l,this.options,n)),v&&v(P.value),A&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,r.X)(t.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=C,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function B(t){return new j(t)}},6732:(t,e,i)=>{i.d(e,{po:()=>s,tn:()=>a,yT:()=>o});var n=i(7617),r=i(4344);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.G)(s),a=(0,n.V)(s)},6780:(t,e,i)=>{i.d(e,{P:()=>iv});var n,r,s=i(4594),o=i(3440);function a(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all((0,d.$)(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(p).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(c(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function p(t,e){return t.sortNodePosition(e)}let f=h._.length,m=[...h.U].reverse(),v=h.U.length;function g(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}class x{constructor(t){this.isMounted=!1,this.node=t}update(){}}class w extends x{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>c(t,e,i)));else if("string"==typeof e)n=c(t,e,i);else{let r="function"==typeof e?(0,u.K)(t,e,i.custom):e;n=Promise.all((0,d.$)(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=y(),n=!0,r=e=>(i,n)=>{var r;let s=(0,u.K)(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function p(u){let{props:d}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tx&&b,k=!1,M=Array.isArray(v)?v:[v],V=M.reduce(r(h),{});!1===A&&(V={});let{prevResolvedValues:C={}}=f,D={...C,...V},R=e=>{E=!0,g.has(e)&&(k=!0,g.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=V[t],i=C[t];if(!y.hasOwnProperty(t))((0,o.p)(e)&&(0,o.p)(i)?a(e,i):e===i)?void 0!==e&&g.has(t)?R(t):f.protectedKeys[t]=!0:null!=e?R(t):g.add(t)}f.prevProp=v,f.prevResolvedValues=V,f.isActive&&(y={...y,...V}),n&&t.blockInitialAnimation&&(E=!1);let L=!(S&&T)||k;E&&L&&p.push(...M.map(t=>({animation:t,options:{type:h}})))}if(g.size){let e={};g.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let b=!!p.length;return n&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(p):Promise.resolve()}return{animateChanges:p,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=p(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,s.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let P=0;class b extends x{constructor(){super(...arguments),this.id=P++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var A=i(7037),S=i(8928),T=i(4316),E=i(5313);function k(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function M(t){return{point:{x:t.pageX,y:t.pageY}}}function V(t,e,i,n){return k(t,e,t=>(0,T.Mc)(t)&&i(t,M(t)),n)}let C=(t,e)=>Math.abs(t-e);var D=i(7217),R=i(3060);class L{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=F(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(C(t.x,e.x)**2+C(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=R.uv;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=j(e,this.transformPagePoint),R.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=F("pointercancel"===t.type?this.lastMoveEventInfo:j(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,T.Mc)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=j(M(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=R.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,F(s,this.history)),this.removeListeners=(0,D.F)(V(this.contextWindow,"pointermove",this.handlePointerMove),V(this.contextWindow,"pointerup",this.handlePointerUp),V(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,R.WG)(this.updatePoint)}}function j(t,e){return e?{point:e(t.point)}:t}function B(t,e){return{x:t.x-e.x,y:t.y-e.y}}function F({point:t},e){return{point:t,delta:B(t,O(e)),offset:B(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=O(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,E.f)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,E.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function O(t){return t[t.length-1]}function W(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var U=i(5696),I=i(5855);function $(t){return t.max-t.min}function N(t,e,i,n=.5){t.origin=n,t.originPoint=(0,I.k)(e.min,e.max,t.origin),t.scale=$(i)/$(e),t.translate=(0,I.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function G(t,e,i,n){N(t.x,e.x,i.x,n?n.originX:void 0),N(t.y,e.y,i.y,n?n.originY:void 0)}function z(t,e,i){t.min=i.min+e.min,t.max=t.min+$(e)}function H(t,e,i){t.min=e.min-i.min,t.max=t.min+$(e)}function q(t,e,i){H(t.x,e.x,i.x),H(t.y,e.y,i.y)}var X=i(7112);function K(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function Y(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.mint?t.ownerDocument.defaultView:null;var ts=i(3425);let to=new WeakMap;class ta{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,_.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(M(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,T.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),J(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ti.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=$(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&R.Gt.postRender(()=>r(t,e)),(0,ts.g)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>J(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new L(t,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:tr(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&R.Gt.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tl(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,I.k)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&W(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:K(t.x,i,r),y:K(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:Q(t,"left","right"),y:Q(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&J(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!W(e))return!1;let n=e.current;(0,S.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,tt.L)(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:Y(t.x,s.x),y:Y(t.y,s.y)});if(i){let t=i((0,te.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,te.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(J(o=>{if(!tl(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ts.g)(this.visualElement,t),i.start((0,tn.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){J(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){J(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){J(e=>{let{drag:i}=this.getProps();if(!tl(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,I.k)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!W(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};J(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=$(t),r=$(e);return r>n?i=(0,U.q)(e.min,e.max-n,t.min):n>r&&(i=(0,U.q)(t.min,t.max-r,e.min)),(0,X.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),J(e=>{if(!tl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,I.k)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;to.set(this.visualElement,this);let t=V(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();W(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.Gt.read(e);let r=k(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(J(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function tl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tu extends x{constructor(t){super(t),this.removeGroupControls=A.l,this.removeListeners=A.l,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let th=t=>(e,i)=>{t&&R.Gt.postRender(()=>t(e,i))};class td extends x{constructor(){super(...arguments),this.removePointerDownListener=A.l}onPointerDown(t){this.session=new L(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:th(t),onStart:th(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&R.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=V(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tc=i(4568),tp=i(7620),tf=i(6472),tm=i(5971);let tv=(0,tp.createContext)({}),tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ty(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!ti.px.test(t))return t;else t=parseFloat(t);let i=ty(t,e.target.x),n=ty(t,e.target.y);return`${i}% ${n}%`}};var tw=i(9758),tP=i(3227);let{schedule:tb,cancel:tA}=(0,i(8828).I)(queueMicrotask,!1);class tS extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tP.$)(tE),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||R.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tT(t){let[e,i]=(0,tf.xQ)(),n=(0,tp.useContext)(tm.L);return(0,tc.jsx)(tS,{...t,layoutGroup:n,switchLayoutGroup:(0,tp.useContext)(tv),isPresent:e,safeToRemove:i})}let tE={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tw.f.parse(t);if(n.length>5)return t;let r=tw.f.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,I.k)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var tk=i(8118),tM=i(3432),tV=i(9810),tC=i(4983),tD=i(7946);let tR=(t,e)=>t.depth-e.depth;class tL{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tD.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tD.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tR),this.isDirty=!1,this.children.forEach(t)}}var tj=i(4844),tB=i(9989),tF=i(6516);function tO(t){let e=(0,tF.S)(t)?t.get():t;return(0,tB.B)(e)?e.toValue():e}var tW=i(6732);let tU=["TopLeft","TopRight","BottomLeft","BottomRight"],tI=tU.length,t$=t=>"string"==typeof t?parseFloat(t):t,tN=t=>"number"==typeof t||ti.px.test(t);function tG(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tz=tq(0,.5,tW.yT),tH=tq(.5,.95,A.l);function tq(t,e,i){return n=>ne?1:i((0,U.q)(t,e,n))}function tX(t,e){t.min=e.min,t.max=e.max}function tK(t,e){tX(t.x,e.x),tX(t.y,e.y)}function tY(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tQ=i(9925);function tZ(t,e,i,n,r){return t-=e,t=(0,tQ.hq)(t,1/i,n),void 0!==r&&(t=(0,tQ.hq)(t,1/r,n)),t}function t_(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(ti.KN.test(e)&&(e=parseFloat(e),e=(0,I.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,I.k)(s.min,s.max,n);t===s&&(a-=e),t.min=tZ(t.min,e,i,a,r),t.max=tZ(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let tJ=["x","scaleX","originX"],t0=["y","scaleY","originY"];function t1(t,e,i,n){t_(t.x,e,tJ,i?i.x:void 0,n?n.x:void 0),t_(t.y,e,t0,i?i.y:void 0,n?n.y:void 0)}function t5(t){return 0===t.translate&&1===t.scale}function t4(t){return t5(t.x)&&t5(t.y)}function t2(t,e){return t.min===e.min&&t.max===e.max}function t7(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t6(t,e){return t7(t.x,e.x)&&t7(t.y,e.y)}function t3(t){return $(t.x)/$(t.y)}function t9(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class t8{constructor(){this.members=[]}add(t){(0,tD.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tD.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var et=i(7152);let ee={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ei="undefined"!=typeof window&&void 0!==window.MotionDebug,en=["","X","Y","Z"],er={visibility:"hidden"},es=0;function eo(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ea({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=es++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ei&&(ee.totalNodes=ee.resolvedTargetDeltas=ee.recalculatedProjection=0),this.nodes.forEach(eh),this.nodes.forEach(eg),this.nodes.forEach(ey),this.nodes.forEach(ed),ei&&window.MotionDebug.record(ee)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tV.k.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,R.WG)(n),t(r-250))};return R.Gt.read(n,!0),()=>(0,R.WG)(n)}(n,250),tg.hasAnimatedSinceResize&&(tg.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eS,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!t6(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,T.rU)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,R.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ex),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tM.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",R.Gt,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let n=e/1e3;if(eP(o.x,t.x,n),eP(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,f,m,v;q(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,v=n,eb(p.x,f.x,m.x,v),eb(p.y,f.y,m.y,v),i&&(u=this.relativeTarget,c=i,t2(u.x,c.x)&&t2(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,_.ge)()),tK(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,I.k)(0,void 0!==i.opacity?i.opacity:1,tz(n)),t.opacityExit=(0,I.k)(void 0!==e.opacity?e.opacity:1,0,tH(n))):s&&(t.opacity=(0,I.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r{tg.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tk.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eM(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,_.ge)();let e=$(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=$(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tK(e,i),(0,tQ.Ww)(e,r),G(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t8),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eo("z",t,n,this.animationValues);for(let e=0;e{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(ep),this.root.sharedNodes.clear()}}}function el(t){t.updateLayout()}function eu(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?J(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=$(n);n.min=e[t].min,n.max=n.min+r}):eM(r,i.layoutBox,e)&&J(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=$(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,_.xU)();G(o,e,i.layoutBox);let a=(0,_.xU)();s?G(a,t.applyTransform(n,!0),i.measuredBox):G(a,e,i.layoutBox);let l=!t4(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,_.ge)();q(o,i.layoutBox,r.layoutBox);let a=(0,_.ge)();q(a,e,s.layoutBox),t6(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eh(t){ei&&ee.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ed(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ec(t){t.clearSnapshot()}function ep(t){t.clearMeasurements()}function ef(t){t.isLayoutDirty=!1}function em(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ev(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eg(t){t.resolveTargetDelta()}function ey(t){t.calcProjection()}function ex(t){t.resetSkewAndRotation()}function ew(t){t.removeLeadSnapshot()}function eP(t,e,i){t.translate=(0,I.k)(e.translate,0,i),t.scale=(0,I.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eb(t,e,i,n){t.min=(0,I.k)(e.min,i.min,n),t.max=(0,I.k)(e.max,i.max,n)}function eA(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eS={duration:.45,ease:[.4,0,.1,1]},eT=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eE=eT("applewebkit/")&&!eT("chrome/")?Math.round:A.l;function ek(t){t.min=eE(t.min),t.max=eE(t.max)}function eM(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t3(e)-t3(i)))}function eV(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let eC=ea({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eD={current:void 0},eR=ea({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eD.current){let t=new eC({});t.mount(window),t.setOptions({layoutScroll:!0}),eD.current=t}return eD.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eL(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&R.Gt.postRender(()=>r(e,M(e)))}class ej extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,T.PT)(t,t=>(eL(this.node,t,"Start"),t=>eL(this.node,t,"End"))))}unmount(){}}class eB extends x{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,D.F)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eF(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&R.Gt.postRender(()=>r(e,M(e)))}class eO extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,T.c$)(t,t=>(eF(this.node,t,"Start"),(t,{success:e})=>eF(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eW=new WeakMap,eU=new WeakMap,eI=t=>{let e=eW.get(t.target);e&&e(t)},e$=t=>{t.forEach(eI)},eN={some:0,all:1};class eG extends x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eN[n]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;eU.has(i)||eU.set(i,{});let n=eU.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(e$,{root:t,...e})),n[r]}(s);return eW.set(a,o),l.observe(a),()=>{eW.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let ez=(0,tp.createContext)({strict:!1});var eH=i(9070);let eq=(0,tp.createContext)({});var eX=i(7527);function eK(t){return Array.isArray(t)?t.join(" "):t}var eY=i(6898),eQ=i(4004);let eZ=Symbol.for("motionComponentSymbol");var e_=i(2015),eJ=i(5176),e0=i(9982);let e1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e5(t){if("string"!=typeof t||t.includes("-"));else if(e1.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e4=i(6405),e2=i(3847);let e7=t=>(e,i)=>{let n=(0,tp.useContext)(eq),r=(0,tp.useContext)(e_.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,o){let a={latestValues:function(t,e,i,n){let r={},o=n(t,{});for(let t in o)r[t]=tO(o[t]);let{initial:a,animate:l}=t,u=(0,eX.e)(t),h=(0,eX.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!(0,s.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;ii({props:n,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,n,r);return i?o():(0,e2.M)(o)};var e6=i(7457),e3=i(3164);let e9=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e8=()=>({...e9(),attrs:{}});var it=i(3185),ie=i(4255),ii=i(309);let ir=["x","y","width","height","cx","cy","r"],is={useVisualState:e7({scrapeMotionValuesFromProps:ii.x,createRenderState:e8,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(e6.f.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,n),R.Gt.render(()=>{(0,e3.B)(n,r,(0,it.n)(i.tagName),t.transformTemplate),(0,ie.d)(i,n)})})}})},io={useVisualState:e7({scrapeMotionValuesFromProps:i(5588).x,createRenderState:e9})};var ia=i(8745),il=i(3025);function iu(t,e,i){for(let n in e)(0,tF.S)(e[n])||(0,ia.z)(n,i)||(t[n]=e[n])}let ih=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function id(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ih.has(t)}let ic=t=>!id(t);try{!function(t){t&&(ic=e=>e.startsWith("on")?!id(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var ip=i(587),im=i(9603);let iv=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:w},exit:{Feature:b},inView:{Feature:eG},tap:{Feature:eO},focus:{Feature:eB},hover:{Feature:ej},pan:{Feature:td},drag:{Feature:tu,ProjectionNode:eR,MeasureLayout:tT},layout:{ProjectionNode:eR,MeasureLayout:tT}},r=(t,e)=>e5(t)?new im.l(e):new ip.M(e,{allowProjection:t!==tp.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function u(t,e){var i;let n,u={...(0,tp.useContext)(eH.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tp.useContext)(tm.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,eX.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,l.w)(e)?e:void 0,animate:(0,l.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tp.useContext)(eq));return(0,tp.useMemo)(()=>({initial:e,animate:i}),[eK(e),eK(i)])}(t),c=o(t,h);if(!h&&eY.B){(0,tp.useContext)(ez).strict;let t=function(t){let{drag:e,layout:i}=eQ.B;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);n=t.MeasureLayout,d.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,tp.useContext)(eq),l=(0,tp.useContext)(ez),u=(0,tp.useContext)(e_.t),h=(0,tp.useContext)(eH.Q).reducedMotion,d=(0,tp.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,tp.useContext)(tv);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&W(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,p);let f=(0,tp.useRef)(!1);(0,tp.useInsertionEffect)(()=>{c&&f.current&&c.update(i,u)});let m=i[e0.n],v=(0,tp.useRef)(!!m&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,m)));return(0,eJ.E)(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tb.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,tp.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,m)}),v.current=!1))}),c}(a,c,u,r,t.ProjectionNode)}return(0,tc.jsxs)(eq.Provider,{value:d,children:[n&&d.visualElement?(0,tc.jsx)(n,{visualElement:d.visualElement,...u}):null,s(a,t,(i=d.visualElement,(0,tp.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):W(e)&&(e.current=t))},[i])),c,h,d.visualElement)]})}n&&function(t){for(let e in t)eQ.B[e]={...eQ.B[e],...t[e]}}(n),u.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let h=(0,tp.forwardRef)(u);return h[eZ]=a,h}({...e5(t)?is:io,preloadedFeatures:n,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(e5(e)?function(t,e,i,n){let r=(0,tp.useMemo)(()=>{let i=e8();return(0,e3.B)(i,e,(0,it.n)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iu(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return iu(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tp.useMemo)(()=>{let i=e9();return(0,il.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(ic(r)||!0===i&&id(r)||!e&&!id(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==tp.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,tp.useMemo)(()=>(0,tF.S)(u)?u.get():u,[u]);return(0,tp.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t})}))},6872:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},6898:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},6949:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(4336),r=i(8201),s=i(6872),o=i(7033);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.KN.transform((0,s.a)(e))+", "+r.KN.transform((0,s.a)(i))+", "+(0,s.a)(n.X4.transform(o))+")"}},7033:(t,e,i)=>{i.d(e,{$:()=>s,q:()=>o});var n=i(541);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.S);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},7037:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},7112:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i{i.d(e,{G:()=>h});var n=i(5240),r=i(8425),s=i(5176),o=i(3060);function a(t,e){let i=(0,r.d)(e()),n=()=>i.set(e());return n(),(0,s.E)(()=>{let e=()=>o.Gt.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,o.WG)(n)}}),i}var l=i(3847),u=i(3109);function h(t,e,i,r){if("function"==typeof t){u.bt.current=[],t();let e=a(u.bt.current,t);return u.bt.current=void 0,e}let s="function"==typeof e?e:function(...t){let e,i,r=!Array.isArray(t[0]),s=r?0:-1,o=t[0+s],a=t[1+s],l=t[2+s],u=t[3+s],h=(0,n.G)(a,l,{mixer:(i=e=l[0])&&"object"==typeof i&&i.mix?e.mix:void 0,...u});return r?h(o):h}(e,i,r);return Array.isArray(t)?d(t,s):d([t],([t])=>s(t))}function d(t,e){let i=(0,l.M)(()=>[]);return a(t,()=>{i.length=0;let n=t.length;for(let e=0;e{function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>s,vF:()=>o,vk:()=>r})},7186:(t,e,i)=>{i.d(e,{I:()=>o});var n=i(7620),r=i(4769),s=i(3830);function o(){s.r.current||(0,r.U)();let[t]=(0,n.useState)(s.O.current);return t}},7217:(t,e,i)=>{i.d(e,{F:()=>r});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},7292:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},7457:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>r});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},7527:(t,e,i)=>{i.d(e,{O:()=>a,e:()=>o});var n=i(4594),r=i(6163),s=i(9114);function o(t){return(0,n.N)(t.animate)||s._.some(e=>(0,r.w)(t[e]))}function a(t){return!!(o(t)||t.variants)}},7617:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},7705:(t,e,i)=>{i.d(e,{K:()=>r});var n=i(6405);function r(t,e,i){let r=t.getProps();return(0,n.a)(r,e,void 0!==i?i:r.custom,t)}},7946:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>r,Kq:()=>n})},7966:(t,e,i)=>{i.d(e,{B:()=>E});var n=i(9810),r=i(4004),s=i(8912),o=i(4276),a=i(254),l=i(4769),u=i(3830),h=i(4844),d=i(3109),c=i(9758),p=i(6516),f=i(5310),m=i(951),v=i(8637),g=i(4569);let y=[...v.T,m.y,c.f];var x=i(7457),w=i(4709),P=i(7527),b=i(1889),A=i(6405),S=i(3060);let T=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=b.h,this.features={},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.renderScheduledAt=0,this.scheduleRender=()=>{let t=n.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),u.r.current||(0,l.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||u.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in w.C.delete(this.current),this.projection&&this.projection.unmount(),(0,S.WG)(this.notifyUpdate),(0,S.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=x.f.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in r.B){let e=r.B[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,s.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,d.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&((0,o.i)(n)||(0,a.$)(n)))n=parseFloat(n);else{let i;i=n,!y.find((0,g.w)(i))&&c.f.test(e)&&(n=(0,f.J)(t,e))}this.setBaseTarget(t,(0,p.S)(n)?n.get():n)}return(0,p.S)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,A.a)(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,p.S)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new h.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},7974:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>c,W9:()=>d});var n=i(4336),r=i(8201),s=i(7457);let o=t=>t===n.ai||t===r.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return a(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=s.U.filter(t=>!u.has(t));function d(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:l(4,13),y:l(5,14)};c.translateX=c.x,c.translateY=c.y},8081:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},8118:(t,e,i)=>{i.d(e,{z:()=>o});var n=i(3109),r=i(6516),s=i(8886);function o(t,e,i){let o=(0,r.S)(t)?t:(0,n.OQ)(t);return o.start((0,s.f)("",o,e,i)),o.animation}},8201:(t,e,i)=>{i.d(e,{KN:()=>s,gQ:()=>u,px:()=>o,uj:()=>r,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},8425:(t,e,i)=>{i.d(e,{d:()=>a});var n=i(7620),r=i(3109),s=i(9070),o=i(3847);function a(t){let e=(0,o.M)(()=>(0,r.OQ)(t)),{isStatic:i}=(0,n.useContext)(s.Q);if(i){let[,i]=(0,n.useState)(t);(0,n.useEffect)(()=>e.on("change",i),[])}return e}},8637:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var n=i(4336),r=i(8201),s=i(4569);let o=[n.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.w)(t))},8745:(t,e,i)=>{i.d(e,{z:()=>s});var n=i(3227),r=i(7457);function s(t,{layout:e,layoutId:i}){return r.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.H[t]||"opacity"===t)}},8828:(t,e,i)=>{i.d(e,{I:()=>s});var n=i(878);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:f}=l,m=()=>{let r=n.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),f.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))};return{schedule:r.reduce((e,n)=>{let r=l[n];return e[n]=(e,n=!1,a=!1)=>(!i&&(i=!0,s=!0,o.isProcessing||t(m)),r.schedule(e,n,a)),e},{}),cancel:t=>{for(let e=0;e{i.d(e,{f:()=>S});var n=i(4316),r=i(5313),s=i(3060),o=i(878),a=i(6082),l=i(7037),u=i(5941),h=i(1872),d=i(6732),c=i(5902),p=i(3245),f=i(6691);let m=new Set(["opacity","clipPath","filter","transform"]);var v=i(1494);let g=(0,i(4079).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),y={anticipate:u.b,backInOut:h.ZZ,circInOut:d.tn};class x extends p.i{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new c.K(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&&(0,n.nL)()&&o in y&&(o=y[o]),i=this.options,(0,n.WH)(i.type)||"spring"===i.type||!(0,n.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new f.o({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){let h={[e]:i};u&&(h.offset=u);let d=(0,n.TU)(l,s);return Array.isArray(d)&&(h.easing=d),t.animate(h,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,n.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set((0,v.X)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,r.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,r.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,r.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return l.l;let{animation:i}=e;(0,n.vG)(i,t)}else this.pendingTimeline=t;return l.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new f.o({...h,keyframes:i,duration:n,type:s,ease:o,times:a,isGenerator:!0}),c=(0,r.f)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return g()&&i&&m.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}var w=i(7457);let P={type:"spring",stiffness:500,damping:25,restSpeed:10},b={type:"keyframes",duration:.8},A={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S=(t,e,i,l={},u,h)=>d=>{let c=(0,n.rU)(l,t)||{},p=c.delay||l.delay||0,{elapsed:m=0}=l;m-=(0,r.f)(p);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-m,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{d(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:h?void 0:u};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(c)&&(g={...g,...((t,{keyframes:e})=>e.length>2?b:w.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:P:A)(t,g)}),g.duration&&(g.duration=(0,r.f)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,r.f)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0===g.delay&&(y=!0)),(a.d.current||o.W.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!h&&void 0!==e.get()){let t=(0,v.X)(g.keyframes,c);if(void 0!==t)return s.Gt.update(()=>{g.onUpdate(t),g.onComplete()}),new n.P6([])}return!h&&x.supports(g)?new x(g):new f.o(g)}},8887:(t,e,i)=>{i.d(e,{e:()=>n});let n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},8912:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>r});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},8928:(t,e,i)=>{i.d(e,{$:()=>r,V:()=>s});var n=i(7037);let r=n.l,s=n.l},9038:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]])},9070:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(7620).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},9109:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(4568),r=i(7620),s=i(5971),o=i(3847),a=i(2015),l=i(9070);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i}=t,s=(0,r.useId)(),o=(0,r.useRef)(null),a=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:h}=(0,r.useContext)(l.Q);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r}=a.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=s;let l=document.createElement("style");return h&&(l.nonce=h),document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(s,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(n,"px !important;\n left: ").concat(r,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:o,sizeRef:a,children:r.cloneElement(e,{ref:o})})}let d=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:p}=t,f=(0,o.M)(c),m=(0,r.useId)(),v=(0,r.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),g=(0,r.useMemo)(()=>({id:m,initial:i,isPresent:s,custom:u,onExitComplete:v,register:t=>(f.set(t,!1),()=>f.delete(t))}),d?[Math.random(),v]:[s,v]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[s]),r.useEffect(()=>{s||f.size||!l||l()},[s]),"popLayout"===p&&(e=(0,n.jsx)(h,{isPresent:s,children:e})),(0,n.jsx)(a.t.Provider,{value:g,children:e})};function c(){return new Map}var p=i(6472);let f=t=>t.key||"";function m(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(5176);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1}=t,[g,y]=(0,p.xQ)(c),x=(0,r.useMemo)(()=>m(e),[e]),w=c&&!g?[]:x.map(f),P=(0,r.useRef)(!0),b=(0,r.useRef)(x),A=(0,o.M)(()=>new Map),[S,T]=(0,r.useState)(x),[E,k]=(0,r.useState)(x);(0,v.E)(()=>{P.current=!1,b.current=x;for(let t=0;t{let e=f(t),r=(!c||!!g)&&(x===E||w.includes(e));return(0,n.jsx)(d,{isPresent:r,initial:(!P.current||!!a)&&void 0,custom:r?void 0:i,presenceAffectsLayout:u,mode:h,onExitComplete:r?void 0:()=>{if(!A.has(e))return;A.set(e,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(null==V||V(),k(b.current),c&&(null==y||y()),l&&l())},children:t},e)})})}},9114:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>r});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},9354:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},9451:(t,e,i)=>{i.d(e,{b:()=>o});var n=i(7966),r=i(5902),s=i(6516);class o extends n.B{constructor(){super(...arguments),this.KeyframeResolver=r.K}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,s.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},9541:(t,e,i)=>{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},9603:(t,e,i)=>{i.d(e,{l:()=>p});var n=i(8912),r=i(9451),s=i(6096),o=i(4939),a=i(7457),l=i(3164),u=i(8887),h=i(3185),d=i(4255),c=i(309);class p extends r.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=n.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.f.has(e)){let t=(0,o.D)(e);return t&&t.default||0}return e=u.e.has(e)?e:(0,s.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,c.x)(t,e,i)}build(t,e,i){(0,l.B)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,d.d)(t,e,i,n)}mount(t){this.isSVGTag=(0,h.n)(t.tagName),super.mount(t)}}},9747:(t,e,i)=>{i.d(e,{$:()=>c});var n=i(4316),r=i(3680),s=i(9989),o=i(3109),a=i(7705),l=i(3425),u=i(3432),h=i(8886),d=i(3060);function c(t,e,{delay:i=0,transitionOverride:p,type:f}={}){var m;let{transition:v=t.getDefaultTransition(),transitionEnd:g,...y}=e;p&&(v=p);let x=[],w=f&&t.animationState&&t.animationState.getState()[f];for(let e in y){let s=t.getValue(e,null!=(m=t.latestValues[e])?m:null),o=y[e];if(void 0===o||w&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(w,e))continue;let a={delay:i,...(0,n.rU)(v||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=(0,u.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,d.Gt);null!==t&&(a.startTime=t,c=!0)}}(0,l.g)(t,e),s.start((0,h.f)(e,s,o,t.shouldReduceMotion&&r.$.has(e)?{type:!1}:a,t,c));let p=s.animation;p&&x.push(p)}return g&&Promise.all(x).then(()=>{d.Gt.update(()=>{g&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,a.K)(t,e)||{};for(let e in r={...r,...i}){let i=(0,s.K)(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.OQ)(i))}}(t,g)})}),x}},9758:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>f});var n=i(951);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(541),o=i(6872);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.y.test(t)?(r.color.push(o),s.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(s.S))?void 0:e.length)||0)+((null==(i=t.match(r))?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},9810:(t,e,i)=>{let n;i.d(e,{k:()=>a});var r=i(878),s=i(3060);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.uv.isProcessing||r.W.useManualTiming?s.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},9925:(t,e,i)=>{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>s,o4:()=>l});var n=i(5855),r=i(7152);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o,a=i.length;if(a){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,r,s=.5){let o=(0,n.k)(t.min,t.max,s);a(t,e,i,o,r)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},9937:(t,e,i)=>{let n,r;i.d(e,{L:()=>$});var s=i(3109),o=i(3847),a=i(7620),l=i(8928),u=i(4316),h=i(7037),d=i(3060);function c(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return d.Gt.update(n,!0),()=>(0,d.WG)(n)}let p=new WeakMap;function f({target:t,contentRect:e,borderBoxSize:i}){var n;null==(n=p.get(t))||n.forEach(n=>{n({target:t,contentSize:e,get size(){if(i){let{inlineSize:t,blockSize:e}=i[0];return{width:t,height:e}}if(t instanceof SVGElement&&"getBBox"in t)return t.getBBox();return{width:t.offsetWidth,height:t.offsetHeight}}})})}function m(t){t.forEach(f)}let v=new Set;var g=i(5696),y=i(8081);let x=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),w={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function P(t,e,i,n){let r=i[e],{length:s,position:o}=w[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,g.q)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,y.f)(r.current-a,u)}var b=i(7112),A=i(5240),S=i(5075);let T={start:0,center:.5,end:1};function E(t,e,i=0){let n=0;if(t in T&&(t=T[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let k=[0,0],M={All:[[0,0],[1,1]]},V={x:0,y:0},C=new WeakMap,D=new WeakMap,R=new WeakMap,L=t=>t===document.documentElement?window:t;function j(t,{container:e=document.documentElement,...i}={}){let s=R.get(e);s||(s=new Set,R.set(e,s));let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{P(t,"x",i,e),P(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=M.All}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):V,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,d=n.length;for(let t=0;te(i)}}(e,t,{time:0,x:x(),y:x()},i);if(s.add(o),!C.has(e)){let t=()=>{for(let t of s)t.measure()},i=()=>{for(let t of s)t.update(d.uv.timestamp)},o=()=>{for(let t of s)t.notify()},a=()=>{d.Gt.read(t,!1,!0),d.Gt.read(i,!1,!0),d.Gt.update(o,!1,!0)};C.set(e,a);let l=L(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&D.set(e,"function"==typeof e?(v.add(e),r||(r=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};v.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{v.delete(e),!v.size&&r&&(r=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(m));let i=(0,u.KJ)(t);return i.forEach(t=>{let i=p.get(t);i||(i=new Set,p.set(t,i)),i.add(e),null==n||n.observe(t)}),()=>{i.forEach(t=>{let i=p.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==n||n.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=C.get(e);return d.Gt.read(a,!1,!0),()=>{var t;(0,d.WG)(a);let i=R.get(e);if(!i||(i.delete(o),i.size))return;let n=C.get(e);C.delete(e),n&&(L(e).removeEventListener("scroll",n),null==(t=D.get(e))||t(),window.removeEventListener("resize",n))}}let B=new Map;function F({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),B.has(e)||B.set(e,{});let n=B.get(e);return n[i]||(n[i]=(0,u.Jb)()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},r=j(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:r}}({source:e,axis:i})),n[i]}function O(t){return t&&(t.target||t.offset)}var W=i(5176);function U(t,e){(0,l.$)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let I=()=>({scrollX:(0,s.OQ)(0),scrollY:(0,s.OQ)(0),scrollXProgress:(0,s.OQ)(0),scrollYProgress:(0,s.OQ)(0)});function $({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=(0,o.M)(I);return(i?W.E:a.useEffect)(()=>(U("target",e),U("container",t),function(t,{axis:e="y",...i}={}){var n,r;let s={axis:e,...i};return"function"==typeof t?(n=t,r=s,2===n.length||O(r)?j(t=>{n(t[r.axis].progress,t)},r):c(n,F(r))):function(t,e){if(t.flatten(),O(e))return t.pause(),j(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=F(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),c(e=>{t.time=t.duration*e},i))):h.l}}(t,s)}((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),r}},9982:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(6096).I)("framerAppearId")},9989:(t,e,i)=>{i.d(e,{B:()=>r,K:()=>s});var n=i(3440);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.p)(t)?t[t.length-1]||0:t}}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/928-2e929f97eacf2d65.js b/prototype/landing/_next/static/chunks/928-2e929f97eacf2d65.js new file mode 100644 index 0000000..169db17 --- /dev/null +++ b/prototype/landing/_next/static/chunks/928-2e929f97eacf2d65.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{10:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(9758),r=i(2922);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.S)||[];if(!n)return t;let o=i.replace(n,""),a=+!!s.has(e);return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},254:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},309:(t,e,i)=>{i.d(e,{x:()=>o});var n=i(6516),r=i(7457),s=i(5588);function o(t,e,i){let o=(0,s.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(o[-1!==r.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},587:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(4731),r=i(9451),s=i(5906),o=i(4939),a=i(3025),l=i(7457),u=i(5570),h=i(5588);class d extends r.b{constructor(){super(...arguments),this.type="html",this.renderInstance=u.e}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,o.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,s.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,n.m)(t,e)}build(t,e,i){(0,a.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.x)(t,e,i)}}},878:(t,e,i)=>{i.d(e,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},879:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(7037);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){return t===e&&i===s?n.l:n=>0===n||1===n?n:r(function(t,e,i,n,s){let o,a,l=0;do(o=r(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a}(n,0,1,t,i),e,s)}},951:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(4412),r=i(6949),s=i(4977);let o={test:t=>s.B.test(t)||n.u.test(t)||r.V.test(t),parse:t=>s.B.test(t)?s.B.parse(t):r.V.test(t)?r.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.B.transform(t):r.V.transform(t)}},1494:(t,e,i)=>{i.d(e,{X:()=>r});let n=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(n),o=e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}},1776:(t,e,i)=>{i.d(e,{z:()=>d});var n=i(7620),r=i(6691),s=i(9070),o=i(5176),a=i(8425),l=i(6516),u=i(3060);function h(t){return"number"==typeof t?t:parseFloat(t)}function d(t,e={}){let{isStatic:i}=(0,n.useContext)(s.Q),c=(0,n.useRef)(null),p=(0,a.d)((0,l.S)(t)?h(t.get()):t),f=(0,n.useRef)(p.get()),m=(0,n.useRef)(()=>{}),v=()=>{let t=c.current;t&&0===t.time&&t.sample(u.uv.delta),g(),c.current=(0,r.L)({keyframes:[p.get(),f.current],velocity:p.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:m.current})},g=()=>{c.current&&c.current.stop()};return(0,n.useInsertionEffect)(()=>p.attach((t,e)=>i?e(t):(f.current=t,m.current=e,u.Gt.update(v),p.get()),g),[JSON.stringify(e)]),(0,o.E)(()=>{if((0,l.S)(t))return t.on("change",t=>p.set(h(t)))},[p]),p}},1806:(t,e,i)=>{i.d(e,{Y:()=>r});var n=i(8081);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.f)(i-t(r),e-r)}},1872:(t,e,i)=>{i.d(e,{Sz:()=>o,ZZ:()=>l,dg:()=>a});var n=i(879),r=i(7617),s=i(4344);let o=(0,n.A)(.33,1.53,.69,.99),a=(0,s.G)(o),l=(0,r.V)(a)},1889:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var n=i(7974),r=i(3060);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Gt.read(u),r.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r{i.d(e,{t:()=>n});let n=(0,i(7620).createContext)(null)},2068:(t,e,i)=>{i.d(e,{A:()=>a});var n=i(7620);let r=function(){for(var t=arguments.length,e=Array(t),i=0;i!!t&&i.indexOf(t)===e).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:d,...c}=t;return(0,n.createElement)("svg",{ref:e,...s,width:o,height:o,stroke:i,strokeWidth:l?24*Number(a)/Number(o):a,className:r("lucide",u),...c},[...d.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),a=(t,e)=>{let i=(0,n.forwardRef)((i,s)=>{let{className:a,...l}=i;return(0,n.createElement)(o,{ref:s,iconNode:e,className:r("lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return i.displayName="".concat(t),i}},2116:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},2250:(t,e,i)=>{function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{FY:()=>n,bS:()=>s,pA:()=>r})},2455:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},2565:(t,e,i)=>{i.d(e,{i:()=>B});var n=i(4316),r=i(4991),s=i(5313),o=i(8928),a=i(5696),l=i(9541);function u(t,e){return(0,l.h)(t)?t[((t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t})(0,t.length,e)]:t}var h=i(5075),d=i(3449),c=i(6516);function p(t){return"object"==typeof t&&!Array.isArray(t)}function f(t,e,i,r){return"string"==typeof t&&p(e)?(0,n.KJ)(t,i,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function m(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!=(r=n.get(e))?r:t}var v=i(7946),g=i(5855);function y(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function x(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function w(t,e){return e[t]||(e[t]=[]),e[t]}let P=t=>"number"==typeof t,b=t=>t.every(P);var A=i(4709),S=i(9747),T=i(4983),E=i(9603),k=i(587),M=i(8912),V=i(7966);class C extends V.B{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,M.ge)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function D(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,T.x)(t)?new E.l(e):new k.M(e);i.mount(t),A.C.set(t,i)}function R(t){let e=new C({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),A.C.set(t,e)}var L=i(8118);function j(t,e,i,n){let r=[];if((0,c.S)(t)||"number"==typeof t||"string"==typeof t&&!p(e))r.push((0,L.z)(t,p(e)&&e.default||e,i&&i.default||i));else{let s=f(t,e,n),a=s.length;(0,o.V)(!!a,"No valid elements provided.");for(let t=0;t{var f;let m=Array.isArray(f=t)?f:[f],{delay:y=0,times:x=(0,h.Z)(m),type:w="keyframes",repeat:P,repeatType:A,repeatDelay:S=0,...T}=i,{ease:E=e.ease||"easeOut",duration:V}=i,C="function"==typeof y?y(a,c):y,D=m.length,L=(0,n.WH)(w)?w:null==l?void 0:l[w];if(D<=2&&L){let t=100;2===D&&b(m)&&(t=Math.abs(m[1]-m[0]));let e={...T};void 0!==V&&(e.duration=(0,s.f)(V));let i=(0,n.XG)(e,t,L);E=i.ease,V=i.duration}null!=V||(V=p);let j=k+C;1===x.length&&0===x[0]&&(x[1]=1);let B=x.length-m.length;if(B>0&&(0,d.f)(x,B),1===m.length&&m.unshift(null),P){(0,o.V)(P<20,"Repeat count too high, must be less than 20");V*=P+1;let t=[...m],e=[...x],i=[...E=Array.isArray(E)?[...E]:[E]];for(let n=0;nr&&i.at{for(let r in t){let s=t[r];s.sort(y);let o=[],l=[],u=[];for(let t=0;t{l.push(...j(i,t,e))}),l}(e,i,void 0):j(e,i,l,void 0);let P=new n.P6(p);return t&&t.animations.push(P),P}}()},2922:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},3025:(t,e,i)=>{i.d(e,{O:()=>u});var n=i(5906);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var s=i(4027),o=i(7457);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o.U.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(o.f.has(t)){c=!0;continue}if((0,n.j)(t)){h[t]=i;continue}{let e=r(i,s.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let n="",u=!0;for(let h=0;h{i.d(e,{Gt:()=>r,PP:()=>a,WG:()=>s,uv:()=>o});var n=i(7037);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(8828).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},3109:(t,e,i)=>{i.d(e,{OQ:()=>u,bt:()=>a});var n=i(9810),r=i(4844),s=i(8081),o=i(3060);let a={current:void 0};class l{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=n.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},3140:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]])},3164:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(3025),r=i(8201);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:d,pathSpacing:c=1,pathOffset:p=0,...f},m,v){if((0,n.O)(t,f,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:g,style:y,dimensions:x}=t;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(void 0!==u||void 0!==h||y.transform)&&(y.transformOrigin=function(t,e,i){let n=a(e,t.x,t.width),r=a(i,t.y,t.height);return`${n} ${r}`}(x,void 0!==u?u:.5,void 0!==h?h:.5)),void 0!==e&&(g.x=e),void 0!==i&&(g.y=i),void 0!==l&&(g.scale=l),void 0!==d&&function(t,e,i=1,n=0,a=!0){t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(g,d,c,p,!1)}},3185:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},3227:(t,e,i)=>{i.d(e,{$:()=>r,H:()=>n});let n={};function r(t){Object.assign(n,t)}},3245:(t,e,i)=>{i.d(e,{i:()=>d});var n=i(9810),r=i(1889),s=i(6082),o=i(4316),a=i(8928),l=i(9758);let u=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(l.f.test(t)||"0"===t)&&!t.startsWith("url("));var h=i(1494);class d{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=n.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,r.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:l,delay:d,onComplete:c,onUpdate:p,isGenerator:f}=this.options;if(!f&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],l=u(r,e),h=u(s,e);return(0,a.$)(l===h,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!l&&!!h&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}},3425:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(6516);function r(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e)}},3432:(t,e,i)=>{i.d(e,{P:()=>r});var n=i(9982);function r(t){return t.props[n.n]}},3440:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},3449:(t,e,i)=>{i.d(e,{f:()=>s});var n=i(5696),r=i(5855);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.q)(0,e,s);t.push((0,r.k)(i,1,o))}}},3641:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("BadgePercent",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]])},3680:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(7457).U])},3830:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>r});let n={current:null},r={current:!1}},3847:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(7620);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},3857:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]])},4004:(t,e,i)=>{i.d(e,{B:()=>r});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},4027:(t,e,i)=>{i.d(e,{W:()=>l});var n=i(4336),r=i(8201);let s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px},o={rotate:r.uj,rotateX:r.uj,rotateY:r.uj,rotateZ:r.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:r.uj,skewX:r.uj,skewY:r.uj,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.X4,originX:r.gQ,originY:r.gQ,originZ:r.px},a={...n.ai,transform:Math.round},l={...s,...o,zIndex:a,size:r.px,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:a}},4079:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},4255:(t,e,i)=>{i.d(e,{d:()=>o});var n=i(6096),r=i(5570),s=i(8887);function o(t,e,i,o){for(let i in(0,r.e)(t,e,void 0,o),e.attrs)t.setAttribute(s.e.has(i)?i:(0,n.I)(i),e.attrs[i])}},4276:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},4316:(t,e,i)=>{i.d(e,{P6:()=>o,vG:()=>p,tu:()=>u,XG:()=>d,KZ:()=>y,rU:()=>a,PT:()=>E,DW:()=>f,WH:()=>c,Mc:()=>M,yL:()=>x,TU:()=>function t(e,i){if(e)return"function"==typeof e&&v()?y(e,i):f(e)?w(e):Array.isArray(e)?e.map(e=>t(e,i)||P.easeOut):P[e]},YE:()=>l,c$:()=>j,KJ:()=>A,Wp:()=>B,nL:()=>v,Jb:()=>r});var n=i(4079);let r=(0,n.p)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;ir()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class o extends s{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function u(t){let e=0,i=t.next(e);for(;!i.done&&e=l?1/0:e}var h=i(5313);function d(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(u(n),l);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:(0,h.X)(r)}}function c(t){return"function"==typeof t}function p(t,e){t.timeline=e,t.onfinish=null}let f=t=>Array.isArray(t)&&"number"==typeof t[0],m={linearEasing:void 0},v=function(t,e){let i=(0,n.p)(t);return()=>{var t;return null!=(t=m[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var g=i(5696);let y=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,P={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:w([0,.65,.55,1]),circOut:w([.55,0,1,.45]),backIn:w([.31,.01,.66,-.59]),backOut:w([.33,1.53,.69,.99])},b={x:!1,y:!1};function A(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!=(n=null==i?void 0:i[t])?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function S(t,e){let i=A(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function T(t){return e=>{"touch"===e.pointerType||b.x||b.y||t(e)}}function E(t,e,i={}){let[n,r,s]=S(t,i),o=T(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let s=T(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}let k=(t,e)=>!!e&&(t===e||k(t,e.parentElement)),M=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,V=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),C=new WeakSet;function D(t){return e=>{"Enter"===e.key&&t(e)}}function R(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function L(t){return M(t)&&!(b.x||b.y)}function j(t,e,i={}){let[n,r,s]=S(t,i),o=t=>{let n=t.currentTarget;if(!L(t)||C.has(n))return;C.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),L(t)&&C.has(n)&&(C.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||k(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{V.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=D(()=>{if(C.has(i))return;R(i,"down");let t=D(()=>{R(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>R(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r),r)}),s}function B(t){if("x"===t||"y"===t)if(b[t])return null;else return b[t]=!0,()=>{b[t]=!1};return b.x||b.y?null:(b.x=b.y=!0,()=>{b.x=b.y=!1})}i(7037)},4336:(t,e,i)=>{i.d(e,{X4:()=>s,ai:()=>r,hs:()=>o});var n=i(7112);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.q)(0,1,t)},o={...r,default:1}},4344:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},4412:(t,e,i)=>{i.d(e,{u:()=>r});var n=i(4977);let r={test:(0,i(7033).$)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.B.transform}},4553:(t,e,i)=>{i.d(e,{W:()=>o});var n=i(7620),r=i(4316);let s={some:0,all:1};function o(t,{root:e,margin:i,amount:a,once:l=!1}={}){let[u,h]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!t.current||l&&u)return;let n={root:e&&e.current||void 0,margin:i,amount:a};return function(t,e,{root:i,margin:n,amount:o="some"}={}){let a=(0,r.KJ)(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let i=l.get(t.target);if(!!i!==t.isIntersecting)if(t.isIntersecting){let i=e(t);"function"==typeof i?l.set(t.target,i):u.unobserve(t.target)}else"function"==typeof i&&(i(t),l.delete(t.target))})},{root:i,rootMargin:n,threshold:"number"==typeof o?o:s[o]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(h(!0),l?void 0:()=>h(!1)),n)},[e,t,i,l,a]),u}},4569:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},4594:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},4709:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},4731:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>s});var n=i(2250),r=i(9925);function s(t,e){return(0,n.FY)((0,n.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.Ql)(n.x,o.offset.x),(0,r.Ql)(n.y,o.offset.y)),n}},4769:(t,e,i)=>{i.d(e,{U:()=>s});var n=i(6898),r=i(3830);function s(){if(r.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.O.current=t.matches;t.addListener(e),e()}else r.O.current=!1}},4844:(t,e,i)=>{i.d(e,{v:()=>r});var n=i(7946);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r{i.d(e,{D:()=>o});var n=i(951),r=i(10);let s={...i(4027).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:r.p,WebkitFilter:r.p},o=t=>s[t]},4977:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(7112),r=i(4336),s=i(6872),o=i(7033);let a={...r.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,s.a)(r.X4.transform(n))+")"}},4983:(t,e,i)=>{i.d(e,{x:()=>n});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},4991:(t,e,i)=>{i.d(e,{o:()=>p});var n=i(4316),r=i(5313),s=i(7112),o=i(1806);let a={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var l=i(8928);function u(t,e){return t*Math.sqrt(1-e*e)}let h=["duration","bounce"],d=["stiffness","damping","mass"];function c(t,e){return e.some(e=>void 0!==t[e])}function p(t=a.visualDuration,e=a.bounce){let i,f="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:m,restDelta:v}=f,g=f.keyframes[0],y=f.keyframes[f.keyframes.length-1],x={done:!1,value:g},{stiffness:w,damping:P,mass:b,duration:A,velocity:S,isResolvedFromDuration:T}=function(t){let e={velocity:a.velocity,stiffness:a.stiffness,damping:a.damping,mass:a.mass,isResolvedFromDuration:!1,...t};if(!c(t,d)&&c(t,h))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,s.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:a.mass,stiffness:n,damping:r}}else{let i=function({duration:t=a.duration,bounce:e=a.bounce,velocity:i=a.velocity,mass:n=a.mass}){let o,h;(0,l.$)(t<=(0,r.f)(a.maxDuration),"Spring duration must be 10 seconds or less");let d=1-e;d=(0,s.q)(a.minDamping,a.maxDamping,d),t=(0,s.q)(a.minDuration,a.maxDuration,(0,r.X)(t)),d<1?(o=e=>{let n=e*d,r=n*t;return .001-(n-i)/u(e,d)*Math.exp(-r)},h=e=>{let n=e*d*t,r=Math.pow(d,2)*Math.pow(e,2)*t,s=Math.exp(-n),a=u(Math.pow(e,2),d);return(n*i+i-r)*s*(-o(e)+.001>0?-1:1)/a}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),h=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(o,h,5/t);if(t=(0,r.f)(t),isNaN(c))return{stiffness:a.stiffness,damping:a.damping,duration:t};{let e=Math.pow(c,2)*n;return{stiffness:e,damping:2*d*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:a.mass}).isResolvedFromDuration=!0}return e}({...f,velocity:-(0,r.X)(f.velocity||0)}),E=S||0,k=P/(2*Math.sqrt(w*b)),M=y-g,V=(0,r.X)(Math.sqrt(w/b)),C=5>Math.abs(M);if(m||(m=C?a.restSpeed.granular:a.restSpeed.default),v||(v=C?a.restDelta.granular:a.restDelta.default),k<1){let t=u(V,k);i=e=>y-Math.exp(-k*V*e)*((E+k*V*M)/t*Math.sin(t*e)+M*Math.cos(t*e))}else if(1===k)i=t=>y-Math.exp(-V*t)*(M+(E+V*M)*t);else{let t=V*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*V*e),n=Math.min(t*e,300);return y-i*((E+k*V*M)*Math.sinh(n)+t*M*Math.cosh(n))/t}}let D={calculatedDuration:T&&A||null,next:t=>{let e=i(t);if(T)x.done=t>=A;else{let n=0;k<1&&(n=0===t?(0,r.f)(E):(0,o.Y)(i,t,e));let s=Math.abs(y-e)<=v;x.done=Math.abs(n)<=m&&s}return x.value=x.done?y:e,x},toString:()=>{let t=Math.min((0,n.tu)(D),n.YE),e=(0,n.KZ)(e=>D.next(t*e).value,t,30);return t+"ms "+e}};return D}},5075:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(3449);function r(t){let e=[0];return(0,n.f)(e,t.length-1),e}},5176:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(7620);let r=i(6898).B?n.useLayoutEffect:n.useEffect},5240:(t,e,i)=>{i.d(e,{G:()=>u});var n=i(7037),r=i(8928),s=i(5696),o=i(7112),a=i(5710),l=i(7217);function u(t,e,{clamp:i=!0,ease:h,mixer:d}={}){let c=t.length;if((0,r.V)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let r=[],s=i||a.j,o=t.length-1;for(let i=0;i{if(p&&i1)for(;nv((0,o.q)(t[0],t[c-1],e)):v}},5310:(t,e,i)=>{i.d(e,{J:()=>o});var n=i(9758),r=i(10),s=i(4939);function o(t,e){let i=(0,s.D)(t);return i!==r.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},5313:(t,e,i)=>{i.d(e,{X:()=>r,f:()=>n});let n=t=>1e3*t,r=t=>t/1e3},5570:(t,e,i)=>{i.d(e,{e:()=>n});function n(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}},5588:(t,e,i)=>{i.d(e,{x:()=>s});var n=i(8745),r=i(6516);function s(t,e,i){var s;let{style:o}=t,a={};for(let l in o)((0,r.S)(o[l])||e.style&&(0,r.S)(e.style[l])||(0,n.z)(l,t)||(null==(s=null==i?void 0:i.getValue(l))?void 0:s.liveStyle)!==void 0)&&(a[l]=o[l]);return a}},5696:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},5710:(t,e,i)=>{i.d(e,{j:()=>S});var n=i(5855),r=i(8928);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(4412),a=i(4977),l=i(6949);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},d=[o.u,a.B,l.V];function c(t){let e=d.find(e=>e.test(t));if((0,r.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=s(l,n,t+1/3),o=s(l,n,t),a=s(l,n,t-1/3)}else r=o=a=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let p=(t,e)=>{let i=c(t),r=c(e);if(!i||!r)return u(t,e);let s={...i};return t=>(s.red=h(i.red,r.red,t),s.green=h(i.green,r.green,t),s.blue=h(i.blue,r.blue,t),s.alpha=(0,n.k)(i.alpha,r.alpha,t),a.B.transform(s))};var f=i(7217),m=i(951),v=i(9758),g=i(5906);let y=new Set(["none","hidden"]);function x(t,e){return i=>(0,n.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?u:m.y.test(t)?p:A:Array.isArray(t)?P:"object"==typeof t?m.y.test(t)?p:b:u}function P(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let A=(t,e)=>{let i=v.f.createTransformer(e),n=(0,v.V)(t),s=(0,v.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?y.has(t)&&!s.values.length||y.has(e)&&!n.values.length?function(t,e){return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,f.F)(P(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},5902:(t,e,i)=>{i.d(e,{K:()=>m});var n=i(254),r=i(3680),s=i(9758),o=i(5310);let a=new Set(["auto","none","0"]);var l=i(1889),u=i(8928),h=i(4276),d=i(5906);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=i(7974),f=i(8637);class m extends l.h{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},5906:(t,e,i)=>{i.d(e,{j:()=>r,p:()=>o});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},5941:(t,e,i)=>{i.d(e,{b:()=>r});var n=i(1872);let r=t=>(t*=2)<1?.5*(0,n.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},5971:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(7620).createContext)({})},6082:(t,e,i)=>{i.d(e,{d:()=>n});let n={current:!1}},6096:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},6163:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},6405:(t,e,i)=>{function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{a:()=>r})},6472:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(7620),r=i(2015);function s(t=!0){let e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},6516:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},6691:(t,e,i)=>{i.d(e,{o:()=>j,L:()=>B});var n=i(4316),r=i(5313),s=i(1889),o=i(7112),a=i(5710),l=i(7217),u=i(4991),h=i(1806);function d({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:d=.5,restSpeed:c}){let p,f,m=t[0],v={done:!1,value:m},g=i*e,y=m+g,x=void 0===o?y:o(y);x!==y&&(g=x-m);let w=t=>-g*Math.exp(-t/n),P=t=>x+w(t),b=t=>{let e=w(t),i=P(t);v.done=Math.abs(e)<=d,v.value=v.done?x:i},A=t=>{let e;if(e=v.value,void 0!==a&&el){var i;p=t,f=(0,u.o)({keyframes:[v.value,(i=v.value,void 0===a?l:void 0===l||Math.abs(a-i){let e=!1;return(f||void 0!==p||(e=!0,b(t),A(t)),void 0!==p&&t>=p)?f.next(t-p):(e||b(t),v)}}}var c=i(879);let p=(0,c.A)(.42,0,1,1),f=(0,c.A)(0,0,.58,1),m=(0,c.A)(.42,0,.58,1);var v=i(9541),g=i(7037),y=i(8928),x=i(5941),w=i(1872),P=i(6732);let b={linear:g.l,easeIn:p,easeInOut:m,easeOut:f,circIn:P.po,circInOut:P.tn,circOut:P.yT,backIn:w.dg,backInOut:w.ZZ,backOut:w.Sz,anticipate:x.b},A=t=>{if((0,n.DW)(t)){(0,y.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return(0,c.A)(e,i,n,r)}return"string"==typeof t?((0,y.V)(void 0!==b[t],`Invalid easing type '${t}'`),b[t]):t};var S=i(5240),T=i(5075);function E({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=(0,v.h)(n)?n.map(A):A(n),o={done:!1,value:e[0]},a=(r=i&&i.length===e.length?i:(0,T.Z)(e),r.map(e=>e*t)),l=(0,S.G)(a,e,{ease:Array.isArray(s)?s:e.map(()=>s||m).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}var k=i(3245),M=i(9810),V=i(3060);let C=t=>{let e=({timestamp:e})=>t(e);return{start:()=>V.Gt.update(e,!0),stop:()=>(0,V.WG)(e),now:()=>V.uv.isProcessing?V.uv.timestamp:M.k.now()}};var D=i(1494);let R={decay:d,inertia:d,tween:E,keyframes:E,spring:u.o},L=t=>t/100;class j extends k.i{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,o=(null==n?void 0:n.KeyframeResolver)||s.h,a=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new o(r,a,e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:u,velocity:h=0}=this.options,d=(0,n.WH)(r)?r:R[r]||E;d!==E&&"number"!=typeof t[0]&&(e=(0,l.F)(L,(0,a.j)(t[0],t[1])),t=[0,100]);let c=d({...this.options,keyframes:t});"mirror"===u&&(i=d({...this.options,keyframes:[...t].reverse(),velocity:-h})),null===c.calculatedDuration&&(c.calculatedDuration=(0,n.tu)(c));let{calculatedDuration:p}=c,f=p+o;return{generator:c,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:p,resolvedDuration:f,totalDuration:f*(s+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:h,resolvedDuration:d}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:p,repeatType:f,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,w=r;if(p){let t=Math.min(this.currentTime,h)/d,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===f?(i=1-i,m&&(i-=m/d)):"mirror"===f&&(w=s)),x=(0,o.q)(0,1,i)*d}let P=y?{done:!1,value:l[0]}:w.next(x);a&&(P.value=a(P.value));let{done:b}=P;y||null===u||(b=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return A&&void 0!==n&&(P.value=(0,D.X)(l,this.options,n)),v&&v(P.value),A&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,r.X)(t.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=C,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function B(t){return new j(t)}},6732:(t,e,i)=>{i.d(e,{po:()=>s,tn:()=>a,yT:()=>o});var n=i(7617),r=i(4344);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.G)(s),a=(0,n.V)(s)},6780:(t,e,i)=>{i.d(e,{P:()=>iv});var n,r,s=i(4594),o=i(3440);function a(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all((0,d.$)(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(p).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(c(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function p(t,e){return t.sortNodePosition(e)}let f=h._.length,m=[...h.U].reverse(),v=h.U.length;function g(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}class x{constructor(t){this.isMounted=!1,this.node=t}update(){}}class w extends x{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>c(t,e,i)));else if("string"==typeof e)n=c(t,e,i);else{let r="function"==typeof e?(0,u.K)(t,e,i.custom):e;n=Promise.all((0,d.$)(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=y(),n=!0,r=e=>(i,n)=>{var r;let s=(0,u.K)(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function p(u){let{props:d}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tx&&b,k=!1,M=Array.isArray(v)?v:[v],V=M.reduce(r(h),{});!1===A&&(V={});let{prevResolvedValues:C={}}=f,D={...C,...V},R=e=>{E=!0,g.has(e)&&(k=!0,g.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=V[t],i=C[t];if(!y.hasOwnProperty(t))((0,o.p)(e)&&(0,o.p)(i)?a(e,i):e===i)?void 0!==e&&g.has(t)?R(t):f.protectedKeys[t]=!0:null!=e?R(t):g.add(t)}f.prevProp=v,f.prevResolvedValues=V,f.isActive&&(y={...y,...V}),n&&t.blockInitialAnimation&&(E=!1);let L=!(S&&T)||k;E&&L&&p.push(...M.map(t=>({animation:t,options:{type:h}})))}if(g.size){let e={};g.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let b=!!p.length;return n&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(p):Promise.resolve()}return{animateChanges:p,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=p(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,s.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let P=0;class b extends x{constructor(){super(...arguments),this.id=P++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var A=i(7037),S=i(8928),T=i(4316),E=i(5313);function k(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function M(t){return{point:{x:t.pageX,y:t.pageY}}}function V(t,e,i,n){return k(t,e,t=>(0,T.Mc)(t)&&i(t,M(t)),n)}let C=(t,e)=>Math.abs(t-e);var D=i(7217),R=i(3060);class L{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=F(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(C(t.x,e.x)**2+C(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=R.uv;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=j(e,this.transformPagePoint),R.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=F("pointercancel"===t.type?this.lastMoveEventInfo:j(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,T.Mc)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=j(M(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=R.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,F(s,this.history)),this.removeListeners=(0,D.F)(V(this.contextWindow,"pointermove",this.handlePointerMove),V(this.contextWindow,"pointerup",this.handlePointerUp),V(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,R.WG)(this.updatePoint)}}function j(t,e){return e?{point:e(t.point)}:t}function B(t,e){return{x:t.x-e.x,y:t.y-e.y}}function F({point:t},e){return{point:t,delta:B(t,O(e)),offset:B(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=O(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,E.f)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,E.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function O(t){return t[t.length-1]}function W(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var U=i(5696),I=i(5855);function $(t){return t.max-t.min}function N(t,e,i,n=.5){t.origin=n,t.originPoint=(0,I.k)(e.min,e.max,t.origin),t.scale=$(i)/$(e),t.translate=(0,I.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function G(t,e,i,n){N(t.x,e.x,i.x,n?n.originX:void 0),N(t.y,e.y,i.y,n?n.originY:void 0)}function z(t,e,i){t.min=i.min+e.min,t.max=t.min+$(e)}function H(t,e,i){t.min=e.min-i.min,t.max=t.min+$(e)}function q(t,e,i){H(t.x,e.x,i.x),H(t.y,e.y,i.y)}var X=i(7112);function K(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function Y(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.mint?t.ownerDocument.defaultView:null;var ts=i(3425);let to=new WeakMap;class ta{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,_.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(M(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,T.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),J(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ti.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=$(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&R.Gt.postRender(()=>r(t,e)),(0,ts.g)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>J(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new L(t,{onSessionStart:n,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:tr(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&R.Gt.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tl(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,I.k)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&W(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:K(t.x,i,r),y:K(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:Q(t,"left","right"),y:Q(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&J(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!W(e))return!1;let n=e.current;(0,S.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,tt.L)(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:Y(t.x,s.x),y:Y(t.y,s.y)});if(i){let t=i((0,te.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,te.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(J(o=>{if(!tl(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ts.g)(this.visualElement,t),i.start((0,tn.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){J(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){J(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){J(e=>{let{drag:i}=this.getProps();if(!tl(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,I.k)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!W(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};J(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=$(t),r=$(e);return r>n?i=(0,U.q)(e.min,e.max-n,t.min):n>r&&(i=(0,U.q)(t.min,t.max-r,e.min)),(0,X.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),J(e=>{if(!tl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,I.k)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;to.set(this.visualElement,this);let t=V(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();W(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.Gt.read(e);let r=k(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(J(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function tl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tu extends x{constructor(t){super(t),this.removeGroupControls=A.l,this.removeListeners=A.l,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let th=t=>(e,i)=>{t&&R.Gt.postRender(()=>t(e,i))};class td extends x{constructor(){super(...arguments),this.removePointerDownListener=A.l}onPointerDown(t){this.session=new L(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:th(t),onStart:th(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&R.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=V(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tc=i(4568),tp=i(7620),tf=i(6472),tm=i(5971);let tv=(0,tp.createContext)({}),tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ty(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!ti.px.test(t))return t;else t=parseFloat(t);let i=ty(t,e.target.x),n=ty(t,e.target.y);return`${i}% ${n}%`}};var tw=i(9758),tP=i(3227);let{schedule:tb,cancel:tA}=(0,i(8828).I)(queueMicrotask,!1);class tS extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tP.$)(tE),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||R.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tT(t){let[e,i]=(0,tf.xQ)(),n=(0,tp.useContext)(tm.L);return(0,tc.jsx)(tS,{...t,layoutGroup:n,switchLayoutGroup:(0,tp.useContext)(tv),isPresent:e,safeToRemove:i})}let tE={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tw.f.parse(t);if(n.length>5)return t;let r=tw.f.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,I.k)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var tk=i(8118),tM=i(3432),tV=i(9810),tC=i(4983),tD=i(7946);let tR=(t,e)=>t.depth-e.depth;class tL{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tD.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tD.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tR),this.isDirty=!1,this.children.forEach(t)}}var tj=i(4844),tB=i(9989),tF=i(6516);function tO(t){let e=(0,tF.S)(t)?t.get():t;return(0,tB.B)(e)?e.toValue():e}var tW=i(6732);let tU=["TopLeft","TopRight","BottomLeft","BottomRight"],tI=tU.length,t$=t=>"string"==typeof t?parseFloat(t):t,tN=t=>"number"==typeof t||ti.px.test(t);function tG(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tz=tq(0,.5,tW.yT),tH=tq(.5,.95,A.l);function tq(t,e,i){return n=>ne?1:i((0,U.q)(t,e,n))}function tX(t,e){t.min=e.min,t.max=e.max}function tK(t,e){tX(t.x,e.x),tX(t.y,e.y)}function tY(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tQ=i(9925);function tZ(t,e,i,n,r){return t-=e,t=(0,tQ.hq)(t,1/i,n),void 0!==r&&(t=(0,tQ.hq)(t,1/r,n)),t}function t_(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(ti.KN.test(e)&&(e=parseFloat(e),e=(0,I.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,I.k)(s.min,s.max,n);t===s&&(a-=e),t.min=tZ(t.min,e,i,a,r),t.max=tZ(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let tJ=["x","scaleX","originX"],t0=["y","scaleY","originY"];function t1(t,e,i,n){t_(t.x,e,tJ,i?i.x:void 0,n?n.x:void 0),t_(t.y,e,t0,i?i.y:void 0,n?n.y:void 0)}function t5(t){return 0===t.translate&&1===t.scale}function t2(t){return t5(t.x)&&t5(t.y)}function t4(t,e){return t.min===e.min&&t.max===e.max}function t7(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t6(t,e){return t7(t.x,e.x)&&t7(t.y,e.y)}function t9(t){return $(t.x)/$(t.y)}function t3(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class t8{constructor(){this.members=[]}add(t){(0,tD.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tD.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var et=i(7152);let ee={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ei="undefined"!=typeof window&&void 0!==window.MotionDebug,en=["","X","Y","Z"],er={visibility:"hidden"},es=0;function eo(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ea({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=es++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ei&&(ee.totalNodes=ee.resolvedTargetDeltas=ee.recalculatedProjection=0),this.nodes.forEach(eh),this.nodes.forEach(eg),this.nodes.forEach(ey),this.nodes.forEach(ed),ei&&window.MotionDebug.record(ee)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tV.k.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,R.WG)(n),t(r-250))};return R.Gt.read(n,!0),()=>(0,R.WG)(n)}(n,250),tg.hasAnimatedSinceResize&&(tg.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eS,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!t6(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,T.rU)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,R.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ex),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tM.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",R.Gt,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let n=e/1e3;if(eP(o.x,t.x,n),eP(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,f,m,v;q(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,v=n,eb(p.x,f.x,m.x,v),eb(p.y,f.y,m.y,v),i&&(u=this.relativeTarget,c=i,t4(u.x,c.x)&&t4(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,_.ge)()),tK(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,I.k)(0,void 0!==i.opacity?i.opacity:1,tz(n)),t.opacityExit=(0,I.k)(void 0!==e.opacity?e.opacity:1,0,tH(n))):s&&(t.opacity=(0,I.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r{tg.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tk.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eM(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,_.ge)();let e=$(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=$(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tK(e,i),(0,tQ.Ww)(e,r),G(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t8),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eo("z",t,n,this.animationValues);for(let e=0;e{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(ep),this.root.sharedNodes.clear()}}}function el(t){t.updateLayout()}function eu(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?J(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=$(n);n.min=e[t].min,n.max=n.min+r}):eM(r,i.layoutBox,e)&&J(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=$(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,_.xU)();G(o,e,i.layoutBox);let a=(0,_.xU)();s?G(a,t.applyTransform(n,!0),i.measuredBox):G(a,e,i.layoutBox);let l=!t2(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,_.ge)();q(o,i.layoutBox,r.layoutBox);let a=(0,_.ge)();q(a,e,s.layoutBox),t6(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eh(t){ei&&ee.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ed(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ec(t){t.clearSnapshot()}function ep(t){t.clearMeasurements()}function ef(t){t.isLayoutDirty=!1}function em(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ev(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eg(t){t.resolveTargetDelta()}function ey(t){t.calcProjection()}function ex(t){t.resetSkewAndRotation()}function ew(t){t.removeLeadSnapshot()}function eP(t,e,i){t.translate=(0,I.k)(e.translate,0,i),t.scale=(0,I.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eb(t,e,i,n){t.min=(0,I.k)(e.min,i.min,n),t.max=(0,I.k)(e.max,i.max,n)}function eA(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eS={duration:.45,ease:[.4,0,.1,1]},eT=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eE=eT("applewebkit/")&&!eT("chrome/")?Math.round:A.l;function ek(t){t.min=eE(t.min),t.max=eE(t.max)}function eM(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t9(e)-t9(i)))}function eV(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let eC=ea({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eD={current:void 0},eR=ea({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eD.current){let t=new eC({});t.mount(window),t.setOptions({layoutScroll:!0}),eD.current=t}return eD.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eL(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&R.Gt.postRender(()=>r(e,M(e)))}class ej extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,T.PT)(t,t=>(eL(this.node,t,"Start"),t=>eL(this.node,t,"End"))))}unmount(){}}class eB extends x{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,D.F)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eF(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&R.Gt.postRender(()=>r(e,M(e)))}class eO extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,T.c$)(t,t=>(eF(this.node,t,"Start"),(t,{success:e})=>eF(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eW=new WeakMap,eU=new WeakMap,eI=t=>{let e=eW.get(t.target);e&&e(t)},e$=t=>{t.forEach(eI)},eN={some:0,all:1};class eG extends x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eN[n]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;eU.has(i)||eU.set(i,{});let n=eU.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(e$,{root:t,...e})),n[r]}(s);return eW.set(a,o),l.observe(a),()=>{eW.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let ez=(0,tp.createContext)({strict:!1});var eH=i(9070);let eq=(0,tp.createContext)({});var eX=i(7527);function eK(t){return Array.isArray(t)?t.join(" "):t}var eY=i(6898),eQ=i(4004);let eZ=Symbol.for("motionComponentSymbol");var e_=i(2015),eJ=i(5176),e0=i(9982);let e1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e5(t){if("string"!=typeof t||t.includes("-"));else if(e1.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e2=i(6405),e4=i(3847);let e7=t=>(e,i)=>{let n=(0,tp.useContext)(eq),r=(0,tp.useContext)(e_.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,o){let a={latestValues:function(t,e,i,n){let r={},o=n(t,{});for(let t in o)r[t]=tO(o[t]);let{initial:a,animate:l}=t,u=(0,eX.e)(t),h=(0,eX.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!(0,s.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;ii({props:n,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,n,r);return i?o():(0,e4.M)(o)};var e6=i(7457),e9=i(3164);let e3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e8=()=>({...e3(),attrs:{}});var it=i(3185),ie=i(4255),ii=i(309);let ir=["x","y","width","height","cx","cy","r"],is={useVisualState:e7({scrapeMotionValuesFromProps:ii.x,createRenderState:e8,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(e6.f.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,n),R.Gt.render(()=>{(0,e9.B)(n,r,(0,it.n)(i.tagName),t.transformTemplate),(0,ie.d)(i,n)})})}})},io={useVisualState:e7({scrapeMotionValuesFromProps:i(5588).x,createRenderState:e3})};var ia=i(8745),il=i(3025);function iu(t,e,i){for(let n in e)(0,tF.S)(e[n])||(0,ia.z)(n,i)||(t[n]=e[n])}let ih=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function id(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ih.has(t)}let ic=t=>!id(t);try{!function(t){t&&(ic=e=>e.startsWith("on")?!id(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var ip=i(587),im=i(9603);let iv=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:w},exit:{Feature:b},inView:{Feature:eG},tap:{Feature:eO},focus:{Feature:eB},hover:{Feature:ej},pan:{Feature:td},drag:{Feature:tu,ProjectionNode:eR,MeasureLayout:tT},layout:{ProjectionNode:eR,MeasureLayout:tT}},r=(t,e)=>e5(t)?new im.l(e):new ip.M(e,{allowProjection:t!==tp.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function u(t,e){var i;let n,u={...(0,tp.useContext)(eH.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tp.useContext)(tm.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,eX.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,l.w)(e)?e:void 0,animate:(0,l.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tp.useContext)(eq));return(0,tp.useMemo)(()=>({initial:e,animate:i}),[eK(e),eK(i)])}(t),c=o(t,h);if(!h&&eY.B){(0,tp.useContext)(ez).strict;let t=function(t){let{drag:e,layout:i}=eQ.B;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);n=t.MeasureLayout,d.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,tp.useContext)(eq),l=(0,tp.useContext)(ez),u=(0,tp.useContext)(e_.t),h=(0,tp.useContext)(eH.Q).reducedMotion,d=(0,tp.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,tp.useContext)(tv);c&&!c.projection&&r&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&W(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,r,p);let f=(0,tp.useRef)(!1);(0,tp.useInsertionEffect)(()=>{c&&f.current&&c.update(i,u)});let m=i[e0.n],v=(0,tp.useRef)(!!m&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,m)));return(0,eJ.E)(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tb.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,tp.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,m)}),v.current=!1))}),c}(a,c,u,r,t.ProjectionNode)}return(0,tc.jsxs)(eq.Provider,{value:d,children:[n&&d.visualElement?(0,tc.jsx)(n,{visualElement:d.visualElement,...u}):null,s(a,t,(i=d.visualElement,(0,tp.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):W(e)&&(e.current=t))},[i])),c,h,d.visualElement)]})}n&&function(t){for(let e in t)eQ.B[e]={...eQ.B[e],...t[e]}}(n),u.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let h=(0,tp.forwardRef)(u);return h[eZ]=a,h}({...e5(t)?is:io,preloadedFeatures:n,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(e5(e)?function(t,e,i,n){let r=(0,tp.useMemo)(()=>{let i=e8();return(0,e9.B)(i,e,(0,it.n)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iu(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return iu(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tp.useMemo)(()=>{let i=e3();return(0,il.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(ic(r)||!0===i&&id(r)||!e&&!id(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==tp.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,tp.useMemo)(()=>(0,tF.S)(u)?u.get():u,[u]);return(0,tp.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t})}))},6872:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},6898:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},6949:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(4336),r=i(8201),s=i(6872),o=i(7033);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.KN.transform((0,s.a)(e))+", "+r.KN.transform((0,s.a)(i))+", "+(0,s.a)(n.X4.transform(o))+")"}},7033:(t,e,i)=>{i.d(e,{$:()=>s,q:()=>o});var n=i(2922);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.S);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},7037:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},7112:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i{i.d(e,{G:()=>h});var n=i(5240),r=i(8425),s=i(5176),o=i(3060);function a(t,e){let i=(0,r.d)(e()),n=()=>i.set(e());return n(),(0,s.E)(()=>{let e=()=>o.Gt.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,o.WG)(n)}}),i}var l=i(3847),u=i(3109);function h(t,e,i,r){if("function"==typeof t){u.bt.current=[],t();let e=a(u.bt.current,t);return u.bt.current=void 0,e}let s="function"==typeof e?e:function(...t){let e,i,r=!Array.isArray(t[0]),s=r?0:-1,o=t[0+s],a=t[1+s],l=t[2+s],u=t[3+s],h=(0,n.G)(a,l,{mixer:(i=e=l[0])&&"object"==typeof i&&i.mix?e.mix:void 0,...u});return r?h(o):h}(e,i,r);return Array.isArray(t)?d(t,s):d([t],([t])=>s(t))}function d(t,e){let i=(0,l.M)(()=>[]);return a(t,()=>{i.length=0;let n=t.length;for(let e=0;e{function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>s,vF:()=>o,vk:()=>r})},7186:(t,e,i)=>{i.d(e,{I:()=>o});var n=i(7620),r=i(4769),s=i(3830);function o(){s.r.current||(0,r.U)();let[t]=(0,n.useState)(s.O.current);return t}},7217:(t,e,i)=>{i.d(e,{F:()=>r});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},7292:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},7457:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>r});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},7527:(t,e,i)=>{i.d(e,{O:()=>a,e:()=>o});var n=i(4594),r=i(6163),s=i(9114);function o(t){return(0,n.N)(t.animate)||s._.some(e=>(0,r.w)(t[e]))}function a(t){return!!(o(t)||t.variants)}},7617:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},7705:(t,e,i)=>{i.d(e,{K:()=>r});var n=i(6405);function r(t,e,i){let r=t.getProps();return(0,n.a)(r,e,void 0!==i?i:r.custom,t)}},7946:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>r,Kq:()=>n})},7966:(t,e,i)=>{i.d(e,{B:()=>E});var n=i(9810),r=i(4004),s=i(8912),o=i(4276),a=i(254),l=i(4769),u=i(3830),h=i(4844),d=i(3109),c=i(9758),p=i(6516),f=i(5310),m=i(951),v=i(8637),g=i(4569);let y=[...v.T,m.y,c.f];var x=i(7457),w=i(4709),P=i(7527),b=i(1889),A=i(6405),S=i(3060);let T=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=b.h,this.features={},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.renderScheduledAt=0,this.scheduleRender=()=>{let t=n.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),u.r.current||(0,l.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||u.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in w.C.delete(this.current),this.projection&&this.projection.unmount(),(0,S.WG)(this.notifyUpdate),(0,S.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=x.f.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in r.B){let e=r.B[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,s.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,d.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&((0,o.i)(n)||(0,a.$)(n)))n=parseFloat(n);else{let i;i=n,!y.find((0,g.w)(i))&&c.f.test(e)&&(n=(0,f.J)(t,e))}this.setBaseTarget(t,(0,p.S)(n)?n.get():n)}return(0,p.S)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,A.a)(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,p.S)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new h.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},7974:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>c,W9:()=>d});var n=i(4336),r=i(8201),s=i(7457);let o=t=>t===n.ai||t===r.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return a(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=s.U.filter(t=>!u.has(t));function d(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:l(4,13),y:l(5,14)};c.translateX=c.x,c.translateY=c.y},8081:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},8118:(t,e,i)=>{i.d(e,{z:()=>o});var n=i(3109),r=i(6516),s=i(8886);function o(t,e,i){let o=(0,r.S)(t)?t:(0,n.OQ)(t);return o.start((0,s.f)("",o,e,i)),o.animation}},8201:(t,e,i)=>{i.d(e,{KN:()=>s,gQ:()=>u,px:()=>o,uj:()=>r,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},8425:(t,e,i)=>{i.d(e,{d:()=>a});var n=i(7620),r=i(3109),s=i(9070),o=i(3847);function a(t){let e=(0,o.M)(()=>(0,r.OQ)(t)),{isStatic:i}=(0,n.useContext)(s.Q);if(i){let[,i]=(0,n.useState)(t);(0,n.useEffect)(()=>e.on("change",i),[])}return e}},8637:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var n=i(4336),r=i(8201),s=i(4569);let o=[n.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.w)(t))},8745:(t,e,i)=>{i.d(e,{z:()=>s});var n=i(3227),r=i(7457);function s(t,{layout:e,layoutId:i}){return r.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.H[t]||"opacity"===t)}},8828:(t,e,i)=>{i.d(e,{I:()=>s});var n=i(878);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:f}=l,m=()=>{let r=n.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),f.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))};return{schedule:r.reduce((e,n)=>{let r=l[n];return e[n]=(e,n=!1,a=!1)=>(!i&&(i=!0,s=!0,o.isProcessing||t(m)),r.schedule(e,n,a)),e},{}),cancel:t=>{for(let e=0;e{i.d(e,{f:()=>S});var n=i(4316),r=i(5313),s=i(3060),o=i(878),a=i(6082),l=i(7037),u=i(5941),h=i(1872),d=i(6732),c=i(5902),p=i(3245),f=i(6691);let m=new Set(["opacity","clipPath","filter","transform"]);var v=i(1494);let g=(0,i(4079).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),y={anticipate:u.b,backInOut:h.ZZ,circInOut:d.tn};class x extends p.i{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new c.K(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&&(0,n.nL)()&&o in y&&(o=y[o]),i=this.options,(0,n.WH)(i.type)||"spring"===i.type||!(0,n.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new f.o({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){let h={[e]:i};u&&(h.offset=u);let d=(0,n.TU)(l,s);return Array.isArray(d)&&(h.easing=d),t.animate(h,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,n.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set((0,v.X)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,r.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,r.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,r.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return l.l;let{animation:i}=e;(0,n.vG)(i,t)}else this.pendingTimeline=t;return l.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new f.o({...h,keyframes:i,duration:n,type:s,ease:o,times:a,isGenerator:!0}),c=(0,r.f)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return g()&&i&&m.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}var w=i(7457);let P={type:"spring",stiffness:500,damping:25,restSpeed:10},b={type:"keyframes",duration:.8},A={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S=(t,e,i,l={},u,h)=>d=>{let c=(0,n.rU)(l,t)||{},p=c.delay||l.delay||0,{elapsed:m=0}=l;m-=(0,r.f)(p);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-m,onUpdate:t=>{e.set(t),c.onUpdate&&c.onUpdate(t)},onComplete:()=>{d(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:h?void 0:u};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(c)&&(g={...g,...((t,{keyframes:e})=>e.length>2?b:w.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:P:A)(t,g)}),g.duration&&(g.duration=(0,r.f)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,r.f)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0===g.delay&&(y=!0)),(a.d.current||o.W.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!h&&void 0!==e.get()){let t=(0,v.X)(g.keyframes,c);if(void 0!==t)return s.Gt.update(()=>{g.onUpdate(t),g.onComplete()}),new n.P6([])}return!h&&x.supports(g)?new x(g):new f.o(g)}},8887:(t,e,i)=>{i.d(e,{e:()=>n});let n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},8912:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>r});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},8928:(t,e,i)=>{i.d(e,{$:()=>r,V:()=>s});var n=i(7037);let r=n.l,s=n.l},9038:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]])},9070:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(7620).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},9109:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(4568),r=i(7620),s=i(5971),o=i(3847),a=i(2015),l=i(9070);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i}=t,s=(0,r.useId)(),o=(0,r.useRef)(null),a=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:h}=(0,r.useContext)(l.Q);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r}=a.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=s;let l=document.createElement("style");return h&&(l.nonce=h),document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(s,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(n,"px !important;\n left: ").concat(r,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:o,sizeRef:a,children:r.cloneElement(e,{ref:o})})}let d=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:p}=t,f=(0,o.M)(c),m=(0,r.useId)(),v=(0,r.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),g=(0,r.useMemo)(()=>({id:m,initial:i,isPresent:s,custom:u,onExitComplete:v,register:t=>(f.set(t,!1),()=>f.delete(t))}),d?[Math.random(),v]:[s,v]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[s]),r.useEffect(()=>{s||f.size||!l||l()},[s]),"popLayout"===p&&(e=(0,n.jsx)(h,{isPresent:s,children:e})),(0,n.jsx)(a.t.Provider,{value:g,children:e})};function c(){return new Map}var p=i(6472);let f=t=>t.key||"";function m(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(5176);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1}=t,[g,y]=(0,p.xQ)(c),x=(0,r.useMemo)(()=>m(e),[e]),w=c&&!g?[]:x.map(f),P=(0,r.useRef)(!0),b=(0,r.useRef)(x),A=(0,o.M)(()=>new Map),[S,T]=(0,r.useState)(x),[E,k]=(0,r.useState)(x);(0,v.E)(()=>{P.current=!1,b.current=x;for(let t=0;t{let e=f(t),r=(!c||!!g)&&(x===E||w.includes(e));return(0,n.jsx)(d,{isPresent:r,initial:(!P.current||!!a)&&void 0,custom:r?void 0:i,presenceAffectsLayout:u,mode:h,onExitComplete:r?void 0:()=>{if(!A.has(e))return;A.set(e,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(null==V||V(),k(b.current),c&&(null==y||y()),l&&l())},children:t},e)})})}},9114:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>r});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},9354:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(2068).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},9451:(t,e,i)=>{i.d(e,{b:()=>o});var n=i(7966),r=i(5902),s=i(6516);class o extends n.B{constructor(){super(...arguments),this.KeyframeResolver=r.K}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,s.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},9541:(t,e,i)=>{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},9603:(t,e,i)=>{i.d(e,{l:()=>p});var n=i(8912),r=i(9451),s=i(6096),o=i(4939),a=i(7457),l=i(3164),u=i(8887),h=i(3185),d=i(4255),c=i(309);class p extends r.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=n.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.f.has(e)){let t=(0,o.D)(e);return t&&t.default||0}return e=u.e.has(e)?e:(0,s.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,c.x)(t,e,i)}build(t,e,i){(0,l.B)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,d.d)(t,e,i,n)}mount(t){this.isSVGTag=(0,h.n)(t.tagName),super.mount(t)}}},9747:(t,e,i)=>{i.d(e,{$:()=>c});var n=i(4316),r=i(3680),s=i(9989),o=i(3109),a=i(7705),l=i(3425),u=i(3432),h=i(8886),d=i(3060);function c(t,e,{delay:i=0,transitionOverride:p,type:f}={}){var m;let{transition:v=t.getDefaultTransition(),transitionEnd:g,...y}=e;p&&(v=p);let x=[],w=f&&t.animationState&&t.animationState.getState()[f];for(let e in y){let s=t.getValue(e,null!=(m=t.latestValues[e])?m:null),o=y[e];if(void 0===o||w&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(w,e))continue;let a={delay:i,...(0,n.rU)(v||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=(0,u.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,d.Gt);null!==t&&(a.startTime=t,c=!0)}}(0,l.g)(t,e),s.start((0,h.f)(e,s,o,t.shouldReduceMotion&&r.$.has(e)?{type:!1}:a,t,c));let p=s.animation;p&&x.push(p)}return g&&Promise.all(x).then(()=>{d.Gt.update(()=>{g&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,a.K)(t,e)||{};for(let e in r={...r,...i}){let i=(0,s.K)(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.OQ)(i))}}(t,g)})}),x}},9758:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>f});var n=i(951);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(2922),o=i(6872);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.y.test(t)?(r.color.push(o),s.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(s.S))?void 0:e.length)||0)+((null==(i=t.match(r))?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},9810:(t,e,i)=>{let n;i.d(e,{k:()=>a});var r=i(878),s=i(3060);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.uv.isProcessing||r.W.useManualTiming?s.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},9925:(t,e,i)=>{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>s,o4:()=>l});var n=i(5855),r=i(7152);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o,a=i.length;if(a){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,r,s=.5){let o=(0,n.k)(t.min,t.max,s);a(t,e,i,o,r)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},9937:(t,e,i)=>{let n,r;i.d(e,{L:()=>$});var s=i(3109),o=i(3847),a=i(7620),l=i(8928),u=i(4316),h=i(7037),d=i(3060);function c(t,e){let i,n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return d.Gt.update(n,!0),()=>(0,d.WG)(n)}let p=new WeakMap;function f({target:t,contentRect:e,borderBoxSize:i}){var n;null==(n=p.get(t))||n.forEach(n=>{n({target:t,contentSize:e,get size(){if(i){let{inlineSize:t,blockSize:e}=i[0];return{width:t,height:e}}if(t instanceof SVGElement&&"getBBox"in t)return t.getBBox();return{width:t.offsetWidth,height:t.offsetHeight}}})})}function m(t){t.forEach(f)}let v=new Set;var g=i(5696),y=i(8081);let x=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),w={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function P(t,e,i,n){let r=i[e],{length:s,position:o}=w[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,g.q)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,y.f)(r.current-a,u)}var b=i(7112),A=i(5240),S=i(5075);let T={start:0,center:.5,end:1};function E(t,e,i=0){let n=0;if(t in T&&(t=T[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let k=[0,0],M={All:[[0,0],[1,1]]},V={x:0,y:0},C=new WeakMap,D=new WeakMap,R=new WeakMap,L=t=>t===document.documentElement?window:t;function j(t,{container:e=document.documentElement,...i}={}){let s=R.get(e);s||(s=new Set,R.set(e,s));let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{P(t,"x",i,e),P(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=M.All}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):V,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,d=n.length;for(let t=0;te(i)}}(e,t,{time:0,x:x(),y:x()},i);if(s.add(o),!C.has(e)){let t=()=>{for(let t of s)t.measure()},i=()=>{for(let t of s)t.update(d.uv.timestamp)},o=()=>{for(let t of s)t.notify()},a=()=>{d.Gt.read(t,!1,!0),d.Gt.read(i,!1,!0),d.Gt.update(o,!1,!0)};C.set(e,a);let l=L(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&D.set(e,"function"==typeof e?(v.add(e),r||(r=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};v.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{v.delete(e),!v.size&&r&&(r=void 0)}):function(t,e){n||"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(m));let i=(0,u.KJ)(t);return i.forEach(t=>{let i=p.get(t);i||(i=new Set,p.set(t,i)),i.add(e),null==n||n.observe(t)}),()=>{i.forEach(t=>{let i=p.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==n||n.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=C.get(e);return d.Gt.read(a,!1,!0),()=>{var t;(0,d.WG)(a);let i=R.get(e);if(!i||(i.delete(o),i.size))return;let n=C.get(e);C.delete(e),n&&(L(e).removeEventListener("scroll",n),null==(t=D.get(e))||t(),window.removeEventListener("resize",n))}}let B=new Map;function F({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),B.has(e)||B.set(e,{});let n=B.get(e);return n[i]||(n[i]=(0,u.Jb)()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},r=j(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:r}}({source:e,axis:i})),n[i]}function O(t){return t&&(t.target||t.offset)}var W=i(5176);function U(t,e){(0,l.$)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let I=()=>({scrollX:(0,s.OQ)(0),scrollY:(0,s.OQ)(0),scrollXProgress:(0,s.OQ)(0),scrollYProgress:(0,s.OQ)(0)});function $({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=(0,o.M)(I);return(i?W.E:a.useEffect)(()=>(U("target",e),U("container",t),function(t,{axis:e="y",...i}={}){var n,r;let s={axis:e,...i};return"function"==typeof t?(n=t,r=s,2===n.length||O(r)?j(t=>{n(t[r.axis].progress,t)},r):c(n,F(r))):function(t,e){if(t.flatten(),O(e))return t.pause(),j(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=F(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),c(e=>{t.time=t.duration*e},i))):h.l}}(t,s)}((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),r}},9982:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(6096).I)("framerAppearId")},9989:(t,e,i)=>{i.d(e,{B:()=>r,K:()=>s});var n=i(3440);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.p)(t)?t[t.length-1]||0:t}}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/dashboard/page-57c79f5cdb72e6fa.js b/prototype/landing/_next/static/chunks/app/dashboard/page-57c79f5cdb72e6fa.js deleted file mode 100644 index ec676d9..0000000 --- a/prototype/landing/_next/static/chunks/app/dashboard/page-57c79f5cdb72e6fa.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[105],{3186:(e,a,n)=>{Promise.resolve().then(n.bind(n,8657))},8422:(e,a,n)=>{"use strict";n.d(a,{TooltipProvider:()=>r,ZI:()=>d,k$:()=>o,m_:()=>c});var t=n(4568),s=n(2212),l=n(7620),i=n(826);let r=s.Kq,c=s.bL,o=s.l9,d=l.forwardRef((e,a)=>{let{className:n,sideOffset:l=6,...r}=e;return(0,t.jsx)(s.ZL,{children:(0,t.jsx)(s.UC,{ref:a,sideOffset:l,className:(0,i.cn)("z-50 max-w-[220px] rounded-md border border-border bg-popover px-3 py-2 text-xs font-normal normal-case leading-relaxed tracking-normal text-popover-foreground shadow-lg","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95",n),...r})})});d.displayName=s.UC.displayName},8657:(e,a,n)=>{"use strict";n.d(a,{DashboardShell:()=>$});var t=n(4568),s=n(6845),l=n(8469),i=n(8359);let r={testnet:"TESTNET",mainnet:"PUBLIC",futurenet:"FUTURENET",local:"STANDALONE"};function c(){var e;let{isConnected:a,network:n,refresh:c,refreshing:o}=(0,i.v)(),d=null!=(e=r[(0,l._b)().network])?e:"TESTNET";return a&&n&&n.toUpperCase()!==d?(0,t.jsxs)("section",{className:"card",children:[(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("h2",{style:{margin:0},children:"Wrong network"}),(0,t.jsx)("span",{className:"pill warn",children:n})]}),(0,t.jsxs)("p",{className:"hint",children:["This app runs on ",(0,t.jsx)("strong",{children:d}),". Open the Freighter extension, switch the network to ",d," using its network dropdown, then re-check below."]}),(0,t.jsx)(s.$,{variant:"outline",size:"sm",type:"button",onClick:c,disabled:o,children:o?"Checking…":"Re-check network"})]}):null}var o=n(9664),d=n.n(o),u=n(4710);function m(e){let{style:a}=e;return(0,t.jsxs)(d(),{href:"/explore",className:"explore-cta",style:a,children:[(0,t.jsx)(u.I,{name:"sparkle",size:15}),"Explore communities & content",(0,t.jsx)(u.I,{name:"arrow-right",size:15})]})}var h=n(488),x=n(9798),p=n(592),g=n(3873),j=n(7588),y=n(7620),f=n(8422);function b(e){let{style:a}=e;return(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:6,alignItems:"center",marginBottom:0,...a},children:[(0,t.jsxs)(f.m_,{children:[(0,t.jsx)(f.k$,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"What is Test USDC?",style:{display:"inline-flex",background:"none",border:0,padding:0,color:"inherit",cursor:"help"},children:(0,t.jsx)(u.I,{name:"info",size:14})})}),(0,t.jsx)(f.ZI,{children:"Test USDC is a mock token for this Stellar testnet demo. It has no real value and can't be bought or sold."})]}),(0,t.jsx)("span",{children:"Test USDC \xb7 mock token, no real value"})]})}function v(e){let{children:a,target:n="komunify",title:s,style:i}=e,r=(0,l._b)(),c="usdc"===n?r.usdcContractId:r.komunifyContractId,o=(0,l.LR)(c,r.network);return o?(0,t.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"explorer-link",title:s,style:i,children:a}):(0,t.jsx)(t.Fragment,{children:a})}function N(e){let{label:a="Verify on-chain",style:n}=e,s=(0,l._b)(),i=(0,l.LR)(s.komunifyContractId,s.network);return i?(0,t.jsxs)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"hint",style:{display:"inline-flex",gap:5,alignItems:"center",color:"var(--color-content-accent)",marginBottom:0,...n},children:[(0,t.jsx)(u.I,{name:"shield",size:14}),a,(0,t.jsx)(u.I,{name:"external",size:13})]}):null}var w=n(8602);let I={all:e=>["subscription",e],status:e=>[...I.all(e),"status"],price:e=>[...I.all(e),"price"],usdcBalance:e=>[...I.all(e),"usdc-balance"],faucetAvailableAt:e=>[...I.all(e),"faucet-available-at"]};class C{static async status(e){let a=(0,w.ii)(),[n,t]=await Promise.all([a.is_active({member:e}),a.get_subscription({member:e})]);return{isActive:n.result,expiresAt:t.result}}static async config(){let e=(await (0,w.ii)().get_config()).result;return{admin:e.admin,epochSecs:e.epoch_secs,genesis:e.genesis,platform:e.platform,platformBps:e.platform_bps,price:e.price,token:e.token}}static async subscribe(e){let a=(0,w.ii)(e);return(await a.subscribe({member:e})).signAndSend()}static async usdcBalance(e){return(await (0,w.dY)().balance({id:e})).result}static async usdcDecimals(){return(await (0,w.dY)().decimals()).result}static async faucet(e){let a=(0,w.dY)(e);return(await a.faucet({caller:e})).signAndSend()}static async faucetAvailableAt(e){return(await (0,w.dY)().faucet_available_at({who:e})).result}}var k=n(2995),S=n(4869),E=n(1562);function T(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.status(e),queryFn:()=>C.status(e),enabled:!!e})}function _(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.price(e),queryFn:()=>C.config(),enabled:!!e,staleTime:3e5})}function A(){var e,a,n,r;let{address:c}=(0,i.v)(),o=(0,p.JR)(),d=(0,p.Dj)(),m=(0,p.TN)(),x=(0,p.G0)(),g=(0,p.Qq)(),j=_(),f=(0,p.yz)(),b=(0,p.Kr)(),v=!!c&&(null==(e=j.data)?void 0:e.admin)===c,I=m.data?BigInt(m.data.amount):void 0,[C,k]=(0,y.useState)(null),[S,E]=(0,y.useState)(null),T=c?(0,l.Uf)(c,(0,l._b)().network):null;async function A(){k(null),E(null);try{await x.mutateAsync(),E("Withdrawn to your wallet.")}catch(e){k(e instanceof Error?e.message:"Withdraw failed")}}async function z(){k(null),E(null);try{await b.mutateAsync(),E("Cycle closed. Readers can now be paid out.")}catch(e){k(e instanceof Error?e.message:"Couldn’t close the cycle")}}async function D(){k(null),E(null);try{let e=await g.mutateAsync();if(0===e.attempted)E("Nothing pending to move.");else{let a=["Moved to your active balance."];e.failed.length&&a.push("".concat(e.failed.length," failed — try again.")),e.truncated&&a.push("More remain — run it again."),E(a.join(" "))}}catch(e){k(e instanceof Error?e.message:"Couldn’t move your pending balance")}}return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Earnings"}),(0,t.jsx)("span",{className:"label",children:"Active balance"}),d.isLoading?(0,t.jsx)(h.E,{className:"h-9 w-32 rounded-md",style:{marginTop:6}}):(0,t.jsxs)("p",{className:"balance",children:[void 0!==d.data?(0,w.NJ)(d.data):"…"," USDC"]}),(0,t.jsxs)(s.$,{type:"button",onClick:A,disabled:x.isPending||!d.data,children:[(0,t.jsx)(u.I,{name:"coins",size:15}),x.isPending?"Withdrawing…":"Withdraw"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"hint",style:{marginBottom:8},children:"Paid straight to your wallet. No middleman."}),(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:12,alignItems:"center",marginBottom:0},children:[(0,t.jsx)(N,{label:"Contract"}),T?(0,t.jsxs)("a",{href:T,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",gap:5,alignItems:"center",color:"var(--color-content-accent)"},children:[(0,t.jsx)(u.I,{name:"wallet",size:14})," Your account ",(0,t.jsx)(u.I,{name:"external",size:13})]}):null]})]}),(0,t.jsxs)("div",{className:"tx",children:[(0,t.jsxs)("span",{className:"label",children:["Your content (",null!=(n=null==(a=o.data)?void 0:a.length)?n:0,")"]}),o.isLoading?(0,t.jsx)(h.E,{className:"h-12 w-full rounded-md",style:{marginTop:8}}):o.data&&o.data.length>0?(0,t.jsx)("dl",{className:"tx-grid",style:{marginTop:8},children:o.data.map(e=>(0,t.jsxs)("div",{style:{display:"contents"},children:[(0,t.jsxs)("dt",{children:["#",e.id]}),(0,t.jsxs)("dd",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[e.active?(0,t.jsxs)("span",{className:"pill ok",children:[(0,t.jsx)(u.I,{name:"check",size:11})," LIVE"]}):(0,t.jsx)("span",{className:"pill warn",children:"HIDDEN"}),(0,t.jsxs)("span",{className:"label",style:{textTransform:"none"},children:[e.epochReads," ",1===e.epochReads?"read":"reads"," this cycle"]})]})]},e.id))}):(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(u.I,{name:"upload",size:15}),"Nothing published yet. Add your first content above."]})]}),(0,t.jsxs)("div",{className:"tx",children:[(0,t.jsx)("span",{className:"label",children:"Pending balance"}),m.isLoading?(0,t.jsx)(h.E,{className:"h-9 w-32 rounded-md",style:{marginTop:6}}):(0,t.jsxs)("p",{className:"balance",children:[void 0!==I?(0,w.NJ)(I):"…"," USDC"]}),(0,t.jsx)("p",{className:"hint",style:{marginTop:4,marginBottom:12},children:"Earned from reads, not yet in your active balance."}),v?(0,t.jsxs)("div",{style:{marginBottom:12},children:[(0,t.jsxs)(s.$,{type:"button",variant:"outline",onClick:z,disabled:b.isPending,children:[(0,t.jsx)(u.I,{name:"flag",size:15}),b.isPending?"Closing…":"Close cycle ".concat(null!=(r=f.data)?r:""," now")]}),(0,t.jsx)("p",{className:"hint",style:{marginBottom:0},children:"Demo tool: makes this cycle’s earnings available to move to your active balance."})]}):null,(0,t.jsxs)("div",{style:{marginBottom:12},children:[(0,t.jsxs)(s.$,{type:"button",onClick:D,disabled:g.isPending||0n===I,children:[(0,t.jsx)(u.I,{name:"coins",size:15}),g.isPending?"Moving…":"Move to active balance"]}),(0,t.jsx)("p",{className:"hint",style:{marginBottom:0},children:"No wallet signing needed."})]})]}),S?(0,t.jsxs)("p",{className:"success",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(u.I,{name:"check",size:14})," ",S]}):null,C?(0,t.jsx)("p",{className:"error",children:C}):null]})}var z=n(9932);function D(){var e;let{address:a}=(0,i.v)(),n=(0,g.nr)(a),s=(0,g.Kd)(a),l=null!=(e=n.data)?e:null;return(0,t.jsxs)(t.Fragment,{children:[n.isLoading?null:(0,t.jsx)(j.D,{wallet:a,brand:l,saving:s.isPending,error:s.isError?s.error.message:null,onSave:e=>s.mutate(e)}),l?(0,t.jsx)(z.f,{}):null,(0,t.jsx)(A,{})]})}var B=n(3143),P=n(6379);function F(e){var a,n;let{item:l}=e,i=T(),r=(0,P.oN)(l.contentId),c=(0,P.Zi)(l.contentId),[o,d]=(0,y.useState)(null),m=null!=(n=null==(a=i.data)?void 0:a.isActive)&&n;async function h(){if(d(null),!m)return void d("Become a member first (Membership card above) to open this.");try{let e=await c.mutateAsync();window.open(e.url,"_blank","noopener,noreferrer")}catch(e){e instanceof B.h&&"SUB_INACTIVE"===e.code?d("Your membership isn’t active. Subscribe to open this."):e instanceof B.h?d("Your read is recorded on-chain, but the file couldn’t be fetched just now. Try again in a moment."):d(e instanceof Error?e.message:"Couldn’t open this. Please try again.")}}return(0,t.jsxs)("div",{className:"row",style:{paddingBottom:12,borderBottom:"1px solid var(--color-border-medium)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{style:{margin:0},children:l.title}),(0,t.jsxs)("span",{className:"label",children:["#",l.contentId]})]}),(0,t.jsxs)("div",{className:"row tight",style:{marginTop:0},children:[r.data?(0,t.jsxs)("span",{className:"pill accent",children:[(0,t.jsx)(u.I,{name:"unlock",size:12})," UNLOCKED"]}):(0,t.jsxs)("span",{className:"pill",children:[(0,t.jsx)(u.I,{name:"lock",size:12})," LOCKED"]}),(0,t.jsx)(s.$,{type:"button",size:"sm",variant:m?"default":"outline",onClick:h,disabled:c.isPending||i.isLoading,children:c.isPending?"Opening…":m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.I,{name:"download",size:14})," Open"]}):"Subscribe to open"})]}),o?(0,t.jsx)("p",{className:"hint",style:{gridColumn:"1 / -1"},children:o}):null]})}function L(){let e=(0,P.FK)();return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Library"}),e.isLoading?(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,t.jsx)(h.E,{className:"h-12 w-full rounded-md"}),(0,t.jsx)(h.E,{className:"h-12 w-full rounded-md"})]}):e.data&&e.data.length>0?(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:e.data.map(e=>(0,t.jsx)(F,{item:e},e.contentId))}):(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(u.I,{name:"sparkle",size:15}),"Nothing here yet. New content shows up the moment a community publishes it."]})]})}function U(){var e,a,n;let l=T(),r=_(),c=function(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.usdcBalance(e),queryFn:()=>C.usdcBalance(e),enabled:!!e})}(),o=function(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.faucetAvailableAt(e),queryFn:()=>C.faucetAvailableAt(e),enabled:!!e})}(),d=function(){let{address:e}=(0,i.v)(),a=(0,S.jE)();return(0,E.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return C.subscribe(e)},onSuccess:()=>a.invalidateQueries({queryKey:I.all(e)})})}(),m=function(){let{address:e}=(0,i.v)(),a=(0,S.jE)();return(0,E.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return C.faucet(e)},onSuccess:()=>a.invalidateQueries({queryKey:I.all(e)})})}(),[x,p]=(0,y.useState)(null),g=!o.data||0n===o.data||1000n*o.data<=BigInt(Date.now());async function j(){p(null);try{await m.mutateAsync()}catch(e){p(e instanceof Error?e.message:"Faucet call failed")}}async function f(){p(null);try{await d.mutateAsync()}catch(e){p(e instanceof Error?e.message:"Subscribe failed")}}return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Membership"}),(0,t.jsx)("span",{className:"label",children:"Single subscription multiple benefits"}),r.isLoading?(0,t.jsx)(h.E,{className:"h-9 w-32 rounded-md",style:{marginTop:6}}):(0,t.jsxs)("p",{className:"balance",children:[r.data?(0,w.NJ)(r.data.price):"…"," ",(0,t.jsx)(v,{target:"usdc",title:"View the USDC token contract on Stellar Expert",children:"USDC"}),(0,t.jsx)("span",{className:"label",style:{textTransform:"none",fontSize:13,marginLeft:6},children:"/ month"})]}),(0,t.jsxs)("div",{className:"row tight",style:{marginBottom:10},children:[l.isLoading?(0,t.jsx)(h.E,{className:"h-5 w-24 rounded-full"}):(null==(e=l.data)?void 0:e.isActive)?(0,t.jsxs)("span",{className:"pill ok",children:[(0,t.jsx)(u.I,{name:"check",size:12})," ACTIVE"]}):(0,t.jsx)("span",{className:"pill warn",children:"NOT A MEMBER YET"}),(0,t.jsxs)("span",{className:"label",style:{textTransform:"none"},children:["Wallet: ",void 0!==c.data?(0,w.NJ)(c.data):"…"," USDC"]})]}),(0,t.jsxs)("div",{className:"row tight",children:[(0,t.jsxs)(s.$,{type:"button",variant:"outline",onClick:j,disabled:m.isPending||!g,children:[(0,t.jsx)(u.I,{name:"coins",size:15}),m.isPending?"Requesting…":g?"Get free test USDC":"Faucet on cooldown"]}),(0,t.jsx)(s.$,{type:"button",onClick:f,disabled:d.isPending||!!(null==(a=l.data)?void 0:a.isActive),children:d.isPending?"Subscribing…":(null==(n=l.data)?void 0:n.isActive)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.I,{name:"check",size:15})," You're in"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.I,{name:"key",size:15})," Subscribe"]})})]}),x?(0,t.jsx)("p",{className:"error",children:x}):null,(0,t.jsx)("div",{className:"tx",children:(0,t.jsx)(b,{})})]})}function q(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U,{}),(0,t.jsx)(L,{})]})}var M=n(7592);function K(){return(0,t.jsxs)("section",{className:"card center",children:[(0,t.jsx)("h2",{style:{marginTop:0},children:"Have something worth reading?"}),(0,t.jsx)("p",{className:"hint",style:{marginTop:0},children:"Publish your PDFs, and earn every time a member opens them. Your payouts go straight to your wallet. It is free to start and takes about a minute."}),(0,t.jsx)(s.$,{asChild:!0,children:(0,t.jsxs)(d(),{href:"/start",children:[(0,t.jsx)(u.I,{name:"sparkle",size:15})," Start your community"]})})]})}let R={all:["traction"],stats:()=>[...R.all,"stats"]};class W{static async stats(){let e=(0,w.ii)(),a=await e.get_stats(),n=await e.current_epoch(),t=await e.epoch_ends_at({epoch:n.result}),s=a.result;return{totalSubs:s.total_subs,totalVolume:s.total_volume,totalClaimed:s.total_claimed,contentCount:s.content_count,managerCount:s.manager_count,currentEpoch:n.result,epochEndsAt:t.result}}}function Y(e){let{label:a,tip:n,children:s}=e;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"label",style:{display:"inline-flex",gap:5,alignItems:"center"},children:[a,(0,t.jsxs)(f.m_,{children:[(0,t.jsx)(f.k$,{asChild:!0,children:(0,t.jsx)("span",{role:"button",tabIndex:0,"aria-label":"What does “".concat(a,"” mean?"),style:{display:"inline-flex",color:"var(--color-content-secondary)",cursor:"help"},children:(0,t.jsx)(u.I,{name:"info",size:13})})}),(0,t.jsx)(f.ZI,{children:n})]})]}),(0,t.jsx)("p",{className:"balance",style:{fontSize:20,margin:"2px 0"},children:s})]})}function O(e){let{endsAt:a}=e,[n,s]=(0,y.useState)(()=>Date.now());(0,y.useEffect)(()=>{let e=setInterval(()=>s(Date.now()),1e3);return()=>clearInterval(e)},[]);let l=1e3*Number(a)-n;if(l<=0)return(0,t.jsx)("span",{style:{fontVariantNumeric:"tabular-nums"},children:"closing…"});let i=Math.floor(l/864e5),r=Math.floor(l%864e5/36e5),c=Math.floor(l%36e5/6e4),o=Math.floor(l%6e4/1e3),d=i>0?"".concat(i,"d ").concat(r,"h"):r>0?"".concat(r,"h ").concat(c,"m"):"".concat(c,":").concat(o.toString().padStart(2,"0"));return(0,t.jsx)("span",{style:{fontVariantNumeric:"tabular-nums"},children:d})}function V(){let e=(0,k.I)({queryKey:R.stats(),queryFn:()=>W.stats(),refetchInterval:15e3});return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Traction"}),e.isLoading?(0,t.jsx)(h.E,{className:"h-24 w-full rounded-md"}):e.data?(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,t.jsx)(Y,{label:"Subscribers",tip:"Memberships bought across all communities, all-time.",children:e.data.totalSubs.toString()}),(0,t.jsxs)(Y,{label:"Volume",tip:"Total USDC ever paid in subscriptions.",children:[(0,w.NJ)(e.data.totalVolume)," USDC"]}),(0,t.jsx)(Y,{label:"Content",tip:"PDFs published across all communities.",children:e.data.contentCount.toString()}),(0,t.jsx)(Y,{label:"Managers",tip:"Wallets registered as community creators.",children:e.data.managerCount}),(0,t.jsxs)(Y,{label:"Paid to creators",tip:"USDC creators have withdrawn from their earnings so far.",children:[(0,w.NJ)(e.data.totalClaimed)," USDC"]}),(0,t.jsx)(Y,{label:"This cycle ends in",tip:"Time left in the current 30-day billing cycle. When it ends, that cycle’s earnings can be paid out to creators.",children:(0,t.jsx)(O,{endsAt:e.data.epochEndsAt})})]}):(0,t.jsx)("p",{className:"hint",children:"Traction is loading from the chain. One moment."}),(0,t.jsxs)("p",{className:"hint",style:{marginBottom:0},children:["Every figure is"," ",(0,t.jsx)(v,{title:"Verify the contract state on Stellar Expert",children:"live"})," ","on-chain state, not a database."]})]})}function $(){let{isConnected:e,address:a}=(0,i.v)(),n=(0,x.yj)(),s=(0,p.Rn)(),l=!!n.data&&n.data.address===a;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("p",{className:"tagline",style:{marginTop:0},children:"Single subscription multiple benefits"}),(0,t.jsx)(m,{})]}),(0,t.jsx)(c,{}),e?n.isLoading?(0,t.jsx)("section",{className:"card",children:(0,t.jsx)(h.E,{className:"h-24 w-full rounded-md"})}):l?s.isLoading?(0,t.jsx)("section",{className:"card",children:(0,t.jsx)(h.E,{className:"h-24 w-full rounded-md"})}):s.data?(0,t.jsx)(D,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(K,{}),(0,t.jsx)(q,{})]}):(0,t.jsx)(M.p,{}):(0,t.jsxs)("section",{className:"card center",children:[(0,t.jsx)("span",{className:"label",style:{display:"block",marginBottom:6},children:"Step 1 of 2"}),(0,t.jsxs)("p",{style:{margin:"0 0 4px",fontWeight:600,display:"flex",gap:6,alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(u.I,{name:"wallet",size:16})," Connect your wallet"]}),(0,t.jsx)("p",{className:"hint",style:{margin:0},children:"Your Stellar wallet is your account here. No email, no password. Connect Freighter to get started."})]}),(0,t.jsx)(V,{})]})}}},e=>{e.O(0,[564,31,221,563,558,131,242,126,587,18,358],()=>e(e.s=3186)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/dashboard/page-9c39e857681bfb51.js b/prototype/landing/_next/static/chunks/app/dashboard/page-9c39e857681bfb51.js new file mode 100644 index 0000000..bb13736 --- /dev/null +++ b/prototype/landing/_next/static/chunks/app/dashboard/page-9c39e857681bfb51.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[105],{1066:(e,a,n)=>{Promise.resolve().then(n.bind(n,6263)),Promise.resolve().then(n.bind(n,8657))},8422:(e,a,n)=>{"use strict";n.d(a,{TooltipProvider:()=>r,ZI:()=>d,k$:()=>o,m_:()=>c});var t=n(4568),s=n(2212),l=n(7620),i=n(826);let r=s.Kq,c=s.bL,o=s.l9,d=l.forwardRef((e,a)=>{let{className:n,sideOffset:l=6,...r}=e;return(0,t.jsx)(s.ZL,{children:(0,t.jsx)(s.UC,{ref:a,sideOffset:l,className:(0,i.cn)("z-50 max-w-[220px] rounded-md border border-border bg-popover px-3 py-2 text-xs font-normal normal-case leading-relaxed tracking-normal text-popover-foreground shadow-lg","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95",n),...r})})});d.displayName=s.UC.displayName},8657:(e,a,n)=>{"use strict";n.d(a,{DashboardShell:()=>$});var t=n(4568),s=n(6845),l=n(8469),i=n(8359);let r={testnet:"TESTNET",mainnet:"PUBLIC",futurenet:"FUTURENET",local:"STANDALONE"};function c(){var e;let{isConnected:a,network:n,refresh:c,refreshing:o}=(0,i.v)(),d=null!=(e=r[(0,l._b)().network])?e:"TESTNET";return a&&n&&n.toUpperCase()!==d?(0,t.jsxs)("section",{className:"card",children:[(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("h2",{style:{margin:0},children:"Wrong network"}),(0,t.jsx)("span",{className:"pill warn",children:n})]}),(0,t.jsxs)("p",{className:"hint",children:["This app runs on ",(0,t.jsx)("strong",{children:d}),". Open the Freighter extension, switch the network to ",d," using its network dropdown, then re-check below."]}),(0,t.jsx)(s.$,{variant:"outline",size:"sm",type:"button",onClick:c,disabled:o,children:o?"Checking…":"Re-check network"})]}):null}var o=n(9664),d=n.n(o),u=n(4710);function m(e){let{style:a}=e;return(0,t.jsxs)(d(),{href:"/explore",className:"explore-cta",style:a,children:[(0,t.jsx)(u.I,{name:"sparkle",size:15}),"Explore communities & content",(0,t.jsx)(u.I,{name:"arrow-right",size:15})]})}var h=n(488),x=n(9798),p=n(592),g=n(3873),j=n(7588),y=n(7620),f=n(8422);function b(e){let{style:a}=e;return(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:6,alignItems:"center",marginBottom:0,...a},children:[(0,t.jsxs)(f.m_,{children:[(0,t.jsx)(f.k$,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"What is Test USDC?",style:{display:"inline-flex",background:"none",border:0,padding:0,color:"inherit",cursor:"help"},children:(0,t.jsx)(u.I,{name:"info",size:14})})}),(0,t.jsx)(f.ZI,{children:"Test USDC is a mock token for this Stellar testnet demo. It has no real value and can't be bought or sold."})]}),(0,t.jsx)("span",{children:"Test USDC \xb7 mock token, no real value"})]})}function v(e){let{children:a,target:n="komunify",title:s,style:i}=e,r=(0,l._b)(),c="usdc"===n?r.usdcContractId:r.komunifyContractId,o=(0,l.LR)(c,r.network);return o?(0,t.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"explorer-link",title:s,style:i,children:a}):(0,t.jsx)(t.Fragment,{children:a})}function N(e){let{label:a="Verify on-chain",style:n}=e,s=(0,l._b)(),i=(0,l.LR)(s.komunifyContractId,s.network);return i?(0,t.jsxs)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"hint",style:{display:"inline-flex",gap:5,alignItems:"center",color:"var(--color-content-accent)",marginBottom:0,...n},children:[(0,t.jsx)(u.I,{name:"shield",size:14}),a,(0,t.jsx)(u.I,{name:"external",size:13})]}):null}var w=n(8602);let I={all:e=>["subscription",e],status:e=>[...I.all(e),"status"],price:e=>[...I.all(e),"price"],usdcBalance:e=>[...I.all(e),"usdc-balance"],faucetAvailableAt:e=>[...I.all(e),"faucet-available-at"]};class C{static async status(e){let a=(0,w.ii)(),[n,t]=await Promise.all([a.is_active({member:e}),a.get_subscription({member:e})]);return{isActive:n.result,expiresAt:t.result}}static async config(){let e=(await (0,w.ii)().get_config()).result;return{admin:e.admin,epochSecs:e.epoch_secs,genesis:e.genesis,platform:e.platform,platformBps:e.platform_bps,price:e.price,token:e.token}}static async subscribe(e){let a=(0,w.ii)(e);return(await a.subscribe({member:e})).signAndSend()}static async usdcBalance(e){return(await (0,w.dY)().balance({id:e})).result}static async usdcDecimals(){return(await (0,w.dY)().decimals()).result}static async faucet(e){let a=(0,w.dY)(e);return(await a.faucet({caller:e})).signAndSend()}static async faucetAvailableAt(e){return(await (0,w.dY)().faucet_available_at({who:e})).result}}var k=n(2995),S=n(4869),E=n(1562);function T(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.status(e),queryFn:()=>C.status(e),enabled:!!e})}function _(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.price(e),queryFn:()=>C.config(),enabled:!!e,staleTime:3e5})}function A(){var e,a,n,r;let{address:c}=(0,i.v)(),o=(0,p.JR)(),d=(0,p.Dj)(),m=(0,p.TN)(),x=(0,p.G0)(),g=(0,p.Qq)(),j=_(),f=(0,p.yz)(),b=(0,p.Kr)(),v=!!c&&(null==(e=j.data)?void 0:e.admin)===c,I=m.data?BigInt(m.data.amount):void 0,[C,k]=(0,y.useState)(null),[S,E]=(0,y.useState)(null),T=c?(0,l.Uf)(c,(0,l._b)().network):null;async function A(){k(null),E(null);try{await x.mutateAsync(),E("Withdrawn to your wallet.")}catch(e){k(e instanceof Error?e.message:"Withdraw failed")}}async function z(){k(null),E(null);try{await b.mutateAsync(),E("Cycle closed. Readers can now be paid out.")}catch(e){k(e instanceof Error?e.message:"Couldn’t close the cycle")}}async function D(){k(null),E(null);try{let e=await g.mutateAsync();if(0===e.attempted)E("Nothing pending to move.");else{let a=["Moved to your active balance."];e.failed.length&&a.push("".concat(e.failed.length," failed — try again.")),e.truncated&&a.push("More remain — run it again."),E(a.join(" "))}}catch(e){k(e instanceof Error?e.message:"Couldn’t move your pending balance")}}return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Earnings"}),(0,t.jsx)("span",{className:"label",children:"Active balance"}),d.isLoading?(0,t.jsx)(h.E,{className:"h-9 w-32 rounded-md",style:{marginTop:6}}):(0,t.jsxs)("p",{className:"balance",children:[void 0!==d.data?(0,w.NJ)(d.data):"…"," USDC"]}),(0,t.jsxs)(s.$,{type:"button",onClick:A,disabled:x.isPending||!d.data,children:[(0,t.jsx)(u.I,{name:"coins",size:15}),x.isPending?"Withdrawing…":"Withdraw"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"hint",style:{marginBottom:8},children:"Paid straight to your wallet. No middleman."}),(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:12,alignItems:"center",marginBottom:0},children:[(0,t.jsx)(N,{label:"Contract"}),T?(0,t.jsxs)("a",{href:T,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",gap:5,alignItems:"center",color:"var(--color-content-accent)"},children:[(0,t.jsx)(u.I,{name:"wallet",size:14})," Your account ",(0,t.jsx)(u.I,{name:"external",size:13})]}):null]})]}),(0,t.jsxs)("div",{className:"tx",children:[(0,t.jsxs)("span",{className:"label",children:["Your content (",null!=(n=null==(a=o.data)?void 0:a.length)?n:0,")"]}),o.isLoading?(0,t.jsx)(h.E,{className:"h-12 w-full rounded-md",style:{marginTop:8}}):o.data&&o.data.length>0?(0,t.jsx)("dl",{className:"tx-grid",style:{marginTop:8},children:o.data.map(e=>(0,t.jsxs)("div",{style:{display:"contents"},children:[(0,t.jsxs)("dt",{children:["#",e.id]}),(0,t.jsxs)("dd",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[e.active?(0,t.jsxs)("span",{className:"pill ok",children:[(0,t.jsx)(u.I,{name:"check",size:11})," LIVE"]}):(0,t.jsx)("span",{className:"pill warn",children:"HIDDEN"}),(0,t.jsxs)("span",{className:"label",style:{textTransform:"none"},children:[e.epochReads," ",1===e.epochReads?"read":"reads"," this cycle"]})]})]},e.id))}):(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(u.I,{name:"upload",size:15}),"Nothing published yet. Add your first content above."]})]}),(0,t.jsxs)("div",{className:"tx",children:[(0,t.jsx)("span",{className:"label",children:"Pending balance"}),m.isLoading?(0,t.jsx)(h.E,{className:"h-9 w-32 rounded-md",style:{marginTop:6}}):(0,t.jsxs)("p",{className:"balance",children:[void 0!==I?(0,w.NJ)(I):"…"," USDC"]}),(0,t.jsx)("p",{className:"hint",style:{marginTop:4,marginBottom:12},children:"Earned from reads, not yet in your active balance."}),v?(0,t.jsxs)("div",{style:{marginBottom:12},children:[(0,t.jsxs)(s.$,{type:"button",variant:"outline",onClick:z,disabled:b.isPending,children:[(0,t.jsx)(u.I,{name:"flag",size:15}),b.isPending?"Closing…":"Close cycle ".concat(null!=(r=f.data)?r:""," now")]}),(0,t.jsx)("p",{className:"hint",style:{marginBottom:0},children:"Demo tool: makes this cycle’s earnings available to move to your active balance."})]}):null,(0,t.jsxs)("div",{style:{marginBottom:12},children:[(0,t.jsxs)(s.$,{type:"button",onClick:D,disabled:g.isPending||0n===I,children:[(0,t.jsx)(u.I,{name:"coins",size:15}),g.isPending?"Moving…":"Move to active balance"]}),(0,t.jsx)("p",{className:"hint",style:{marginBottom:0},children:"No wallet signing needed."})]})]}),S?(0,t.jsxs)("p",{className:"success",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(u.I,{name:"check",size:14})," ",S]}):null,C?(0,t.jsx)("p",{className:"error",children:C}):null]})}var z=n(9932);function D(){var e;let{address:a}=(0,i.v)(),n=(0,g.nr)(a),s=(0,g.Kd)(a),l=null!=(e=n.data)?e:null;return(0,t.jsxs)(t.Fragment,{children:[n.isLoading?null:(0,t.jsx)(j.D,{wallet:a,brand:l,saving:s.isPending,error:s.isError?s.error.message:null,onSave:e=>s.mutate(e)}),l?(0,t.jsx)(z.f,{}):null,(0,t.jsx)(A,{})]})}var B=n(3143),P=n(6379);function F(e){var a,n;let{item:l}=e,i=T(),r=(0,P.oN)(l.contentId),c=(0,P.Zi)(l.contentId),[o,d]=(0,y.useState)(null),m=null!=(n=null==(a=i.data)?void 0:a.isActive)&&n;async function h(){if(d(null),!m)return void d("Become a member first (Membership card above) to open this.");try{let e=await c.mutateAsync();window.open(e.url,"_blank","noopener,noreferrer")}catch(e){e instanceof B.h&&"SUB_INACTIVE"===e.code?d("Your membership isn’t active. Subscribe to open this."):e instanceof B.h?d("Your read is recorded on-chain, but the file couldn’t be fetched just now. Try again in a moment."):d(e instanceof Error?e.message:"Couldn’t open this. Please try again.")}}return(0,t.jsxs)("div",{className:"row",style:{paddingBottom:12,borderBottom:"1px solid var(--color-border-medium)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{style:{margin:0},children:l.title}),(0,t.jsxs)("span",{className:"label",children:["#",l.contentId]})]}),(0,t.jsxs)("div",{className:"row tight",style:{marginTop:0},children:[r.data?(0,t.jsxs)("span",{className:"pill accent",children:[(0,t.jsx)(u.I,{name:"unlock",size:12})," UNLOCKED"]}):(0,t.jsxs)("span",{className:"pill",children:[(0,t.jsx)(u.I,{name:"lock",size:12})," LOCKED"]}),(0,t.jsx)(s.$,{type:"button",size:"sm",variant:m?"default":"outline",onClick:h,disabled:c.isPending||i.isLoading,children:c.isPending?"Opening…":m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.I,{name:"download",size:14})," Open"]}):"Subscribe to open"})]}),o?(0,t.jsx)("p",{className:"hint",style:{gridColumn:"1 / -1"},children:o}):null]})}function L(){let e=(0,P.FK)();return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Library"}),e.isLoading?(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,t.jsx)(h.E,{className:"h-12 w-full rounded-md"}),(0,t.jsx)(h.E,{className:"h-12 w-full rounded-md"})]}):e.data&&e.data.length>0?(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:e.data.map(e=>(0,t.jsx)(F,{item:e},e.contentId))}):(0,t.jsxs)("p",{className:"hint",style:{display:"flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(u.I,{name:"sparkle",size:15}),"Nothing here yet. New content shows up the moment a community publishes it."]})]})}function U(){var e,a,n;let l=T(),r=_(),c=function(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.usdcBalance(e),queryFn:()=>C.usdcBalance(e),enabled:!!e})}(),o=function(){let{address:e}=(0,i.v)();return(0,k.I)({queryKey:I.faucetAvailableAt(e),queryFn:()=>C.faucetAvailableAt(e),enabled:!!e})}(),d=function(){let{address:e}=(0,i.v)(),a=(0,S.jE)();return(0,E.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return C.subscribe(e)},onSuccess:()=>a.invalidateQueries({queryKey:I.all(e)})})}(),m=function(){let{address:e}=(0,i.v)(),a=(0,S.jE)();return(0,E.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return C.faucet(e)},onSuccess:()=>a.invalidateQueries({queryKey:I.all(e)})})}(),[x,p]=(0,y.useState)(null),g=!o.data||0n===o.data||1000n*o.data<=BigInt(Date.now());async function j(){p(null);try{await m.mutateAsync()}catch(e){p(e instanceof Error?e.message:"Faucet call failed")}}async function f(){p(null);try{await d.mutateAsync()}catch(e){p(e instanceof Error?e.message:"Subscribe failed")}}return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Membership"}),(0,t.jsx)("span",{className:"label",children:"Single subscription multiple benefits"}),r.isLoading?(0,t.jsx)(h.E,{className:"h-9 w-32 rounded-md",style:{marginTop:6}}):(0,t.jsxs)("p",{className:"balance",children:[r.data?(0,w.NJ)(r.data.price):"…"," ",(0,t.jsx)(v,{target:"usdc",title:"View the USDC token contract on Stellar Expert",children:"USDC"}),(0,t.jsx)("span",{className:"label",style:{textTransform:"none",fontSize:13,marginLeft:6},children:"/ month"})]}),(0,t.jsxs)("div",{className:"row tight",style:{marginBottom:10},children:[l.isLoading?(0,t.jsx)(h.E,{className:"h-5 w-24 rounded-full"}):(null==(e=l.data)?void 0:e.isActive)?(0,t.jsxs)("span",{className:"pill ok",children:[(0,t.jsx)(u.I,{name:"check",size:12})," ACTIVE"]}):(0,t.jsx)("span",{className:"pill warn",children:"NOT A MEMBER YET"}),(0,t.jsxs)("span",{className:"label",style:{textTransform:"none"},children:["Wallet: ",void 0!==c.data?(0,w.NJ)(c.data):"…"," USDC"]})]}),(0,t.jsxs)("div",{className:"row tight",children:[(0,t.jsxs)(s.$,{type:"button",variant:"outline",onClick:j,disabled:m.isPending||!g,children:[(0,t.jsx)(u.I,{name:"coins",size:15}),m.isPending?"Requesting…":g?"Get free test USDC":"Faucet on cooldown"]}),(0,t.jsx)(s.$,{type:"button",onClick:f,disabled:d.isPending||!!(null==(a=l.data)?void 0:a.isActive),children:d.isPending?"Subscribing…":(null==(n=l.data)?void 0:n.isActive)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.I,{name:"check",size:15})," You're in"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.I,{name:"key",size:15})," Subscribe"]})})]}),x?(0,t.jsx)("p",{className:"error",children:x}):null,(0,t.jsx)("div",{className:"tx",children:(0,t.jsx)(b,{})})]})}function q(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U,{}),(0,t.jsx)(L,{})]})}var M=n(7592);function K(){return(0,t.jsxs)("section",{className:"card center",children:[(0,t.jsx)("h2",{style:{marginTop:0},children:"Have something worth reading?"}),(0,t.jsx)("p",{className:"hint",style:{marginTop:0},children:"Publish your PDFs, and earn every time a member opens them. Your payouts go straight to your wallet. It is free to start and takes about a minute."}),(0,t.jsx)(s.$,{asChild:!0,children:(0,t.jsxs)(d(),{href:"/start",children:[(0,t.jsx)(u.I,{name:"sparkle",size:15})," Start your community"]})})]})}let R={all:["traction"],stats:()=>[...R.all,"stats"]};class W{static async stats(){let e=(0,w.ii)(),a=await e.get_stats(),n=await e.current_epoch(),t=await e.epoch_ends_at({epoch:n.result}),s=a.result;return{totalSubs:s.total_subs,totalVolume:s.total_volume,totalClaimed:s.total_claimed,contentCount:s.content_count,managerCount:s.manager_count,currentEpoch:n.result,epochEndsAt:t.result}}}function Y(e){let{label:a,tip:n,children:s}=e;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{className:"label",style:{display:"inline-flex",gap:5,alignItems:"center"},children:[a,(0,t.jsxs)(f.m_,{children:[(0,t.jsx)(f.k$,{asChild:!0,children:(0,t.jsx)("span",{role:"button",tabIndex:0,"aria-label":"What does “".concat(a,"” mean?"),style:{display:"inline-flex",color:"var(--color-content-secondary)",cursor:"help"},children:(0,t.jsx)(u.I,{name:"info",size:13})})}),(0,t.jsx)(f.ZI,{children:n})]})]}),(0,t.jsx)("p",{className:"balance",style:{fontSize:20,margin:"2px 0"},children:s})]})}function O(e){let{endsAt:a}=e,[n,s]=(0,y.useState)(()=>Date.now());(0,y.useEffect)(()=>{let e=setInterval(()=>s(Date.now()),1e3);return()=>clearInterval(e)},[]);let l=1e3*Number(a)-n;if(l<=0)return(0,t.jsx)("span",{style:{fontVariantNumeric:"tabular-nums"},children:"closing…"});let i=Math.floor(l/864e5),r=Math.floor(l%864e5/36e5),c=Math.floor(l%36e5/6e4),o=Math.floor(l%6e4/1e3),d=i>0?"".concat(i,"d ").concat(r,"h"):r>0?"".concat(r,"h ").concat(c,"m"):"".concat(c,":").concat(o.toString().padStart(2,"0"));return(0,t.jsx)("span",{style:{fontVariantNumeric:"tabular-nums"},children:d})}function V(){let e=(0,k.I)({queryKey:R.stats(),queryFn:()=>W.stats(),refetchInterval:15e3});return(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Traction"}),e.isLoading?(0,t.jsx)(h.E,{className:"h-24 w-full rounded-md"}):e.data?(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[(0,t.jsx)(Y,{label:"Subscribers",tip:"Memberships bought across all communities, all-time.",children:e.data.totalSubs.toString()}),(0,t.jsxs)(Y,{label:"Volume",tip:"Total USDC ever paid in subscriptions.",children:[(0,w.NJ)(e.data.totalVolume)," USDC"]}),(0,t.jsx)(Y,{label:"Content",tip:"PDFs published across all communities.",children:e.data.contentCount.toString()}),(0,t.jsx)(Y,{label:"Managers",tip:"Wallets registered as community creators.",children:e.data.managerCount}),(0,t.jsxs)(Y,{label:"Paid to creators",tip:"USDC creators have withdrawn from their earnings so far.",children:[(0,w.NJ)(e.data.totalClaimed)," USDC"]}),(0,t.jsx)(Y,{label:"This cycle ends in",tip:"Time left in the current 30-day billing cycle. When it ends, that cycle’s earnings can be paid out to creators.",children:(0,t.jsx)(O,{endsAt:e.data.epochEndsAt})})]}):(0,t.jsx)("p",{className:"hint",children:"Traction is loading from the chain. One moment."}),(0,t.jsxs)("p",{className:"hint",style:{marginBottom:0},children:["Every figure is"," ",(0,t.jsx)(v,{title:"Verify the contract state on Stellar Expert",children:"live"})," ","on-chain state, not a database."]})]})}function $(){let{isConnected:e,address:a}=(0,i.v)(),n=(0,x.yj)(),s=(0,p.Rn)(),l=!!n.data&&n.data.address===a;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("p",{className:"tagline",style:{marginTop:0},children:"Single subscription multiple benefits"}),(0,t.jsx)(m,{})]}),(0,t.jsx)(c,{}),e?n.isLoading?(0,t.jsx)("section",{className:"card",children:(0,t.jsx)(h.E,{className:"h-24 w-full rounded-md"})}):l?s.isLoading?(0,t.jsx)("section",{className:"card",children:(0,t.jsx)(h.E,{className:"h-24 w-full rounded-md"})}):s.data?(0,t.jsx)(D,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(K,{}),(0,t.jsx)(q,{})]}):(0,t.jsx)(M.p,{}):(0,t.jsxs)("section",{className:"card center",children:[(0,t.jsx)("span",{className:"label",style:{display:"block",marginBottom:6},children:"Step 1 of 2"}),(0,t.jsxs)("p",{style:{margin:"0 0 4px",fontWeight:600,display:"flex",gap:6,alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(u.I,{name:"wallet",size:16})," Connect your wallet"]}),(0,t.jsx)("p",{className:"hint",style:{margin:0},children:"Your Stellar wallet is your account here. No email, no password. Connect Freighter to get started."})]}),(0,t.jsx)(V,{})]})}}},e=>{e.O(0,[564,31,221,563,558,895,242,92,587,18,358],()=>e(e.s=1066)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/explore/page-22267a65446a84a1.js b/prototype/landing/_next/static/chunks/app/explore/page-22267a65446a84a1.js new file mode 100644 index 0000000..8a4df8c --- /dev/null +++ b/prototype/landing/_next/static/chunks/app/explore/page-22267a65446a84a1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[314],{4710:(e,s,t)=>{"use strict";t.d(s,{I:()=>a});var n=t(4568);let r={lock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,n.jsx)("path",{d:"M7 8V6a3 3 0 0 1 6 0v2"})]}),unlock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,n.jsx)("path",{d:"M7 8V6a3 3 0 0 1 5.8-1"})]}),check:(0,n.jsx)("path",{d:"M4 10.5l4 4 8-9"}),wallet:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"3",y:"5",width:"14",height:"11",rx:"2"}),(0,n.jsx)("path",{d:"M3 8h14"}),(0,n.jsx)("circle",{cx:"13.5",cy:"11.5",r:"1"})]}),key:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"7",cy:"7",r:"3"}),(0,n.jsx)("path",{d:"M9.2 9.2 16 16m-2.5-2.5 1.5-1.5m-4-1 1.5-1.5"})]}),coins:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ellipse",{cx:"8",cy:"6",rx:"4.5",ry:"2.2"}),(0,n.jsx)("path",{d:"M3.5 6v4c0 1.2 2 2.2 4.5 2.2s4.5-1 4.5-2.2V6"}),(0,n.jsx)("path",{d:"M12.5 10.5c2.2.2 4 1.1 4 2.3 0 1.2-2 2.2-4.5 2.2-1 0-1.9-.15-2.6-.4"})]}),external:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M11 4h5v5"}),(0,n.jsx)("path",{d:"M16 4l-7 7"}),(0,n.jsx)("path",{d:"M14 11.5V15a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 15V7a1.5 1.5 0 0 1 1.5-1.5H8"})]}),sparkle:(0,n.jsx)("path",{d:"M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6L10 3z"}),users:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"7.5",cy:"7",r:"2.6"}),(0,n.jsx)("path",{d:"M3 16c0-2.5 2-4.2 4.5-4.2S12 13.5 12 16"}),(0,n.jsx)("path",{d:"M13 6.2a2.4 2.4 0 0 1 0 4.6M14 16c0-2.2-.8-3.5-2-4.2"})]}),upload:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 13V4"}),(0,n.jsx)("path",{d:"M6.5 7.5 10 4l3.5 3.5"}),(0,n.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),download:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 4v9"}),(0,n.jsx)("path",{d:"M6.5 9.5 10 13l3.5-3.5"}),(0,n.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),clock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,n.jsx)("path",{d:"M10 6v4l2.5 2"})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,n.jsx)("path",{d:"M10 9v4"}),(0,n.jsx)("path",{d:"M10 6.5h.01"})]}),shield:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 3l6 2v4c0 4-2.7 6.5-6 8-3.3-1.5-6-4-6-8V5l6-2z"}),(0,n.jsx)("path",{d:"M7.5 10l1.8 1.8L13 8"})]}),"arrow-right":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M4 10h11"}),(0,n.jsx)("path",{d:"M11 6l4 4-4 4"})]}),pen:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M13.5 3.5 16.5 6.5 7 16H4v-3z"}),(0,n.jsx)("path",{d:"M12 5 15 8"})]}),"sign-out":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M8 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8"}),(0,n.jsx)("path",{d:"M12 13l3-3-3-3"}),(0,n.jsx)("path",{d:"M15 10H8"})]}),flag:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M5 17V3"}),(0,n.jsx)("path",{d:"M5 4h9l-2 3 2 3H5"})]})};function a(e){let{name:s,size:t=16,className:a,style:i,...l}=e;return(0,n.jsx)("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",className:a,style:{verticalAlign:"-0.15em",flexShrink:0,...i},...l,children:r[s]})}},5627:(e,s,t)=>{Promise.resolve().then(t.bind(t,6263)),Promise.resolve().then(t.bind(t,6773))},6263:(e,s,t)=>{"use strict";t.d(s,{AppSidenav:()=>d});var n=t(4568),r=t(7620),a=t(9664),i=t.n(a),l=t(7541);let c="komunify-app-sidebar",o=[{label:"Dashboard",href:"/dashboard",icon:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1.5"}),(0,n.jsx)("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1.5"}),(0,n.jsx)("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1.5"}),(0,n.jsx)("rect",{x:"14",y:"14",width:"7",height:"7",rx:"1.5"})]})},{label:"Explore",href:"/explore",icon:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,n.jsx)("path",{d:"m15.5 8.5-2.1 4.9-4.9 2.1 2.1-4.9 4.9-2.1Z"})]})},{label:"Start",href:"/start",icon:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M12 3v18M3 12h18"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"9"})]})}];function d(){let e=(0,l.usePathname)(),[s,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=window.localStorage.getItem(c);null!==e&&t("true"===e)},[]),(0,n.jsxs)("aside",{className:"sticky top-0 hidden h-screen shrink-0 flex-col gap-8 overflow-y-auto border-r border-[var(--color-border-medium)] bg-[var(--color-bg-elevated)] px-4 py-5 transition-[width] duration-200 ease-out min-[901px]:flex ".concat(s?"w-16":"w-[232px]"),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 ".concat(s?"flex-col":"flex-row"),children:[(0,n.jsxs)(i(),{href:"/","aria-label":"Komunify home",className:"inline-flex items-center ".concat(s?"gap-0":"gap-3"),children:[(0,n.jsx)("img",{src:"".concat("/landing","/logo-mark.png"),alt:"",className:"h-8 w-auto shrink-0"}),(0,n.jsxs)("span",{className:"whitespace-nowrap font-sans text-lg font-bold tracking-[0.15em] ".concat(s?"hidden":"inline"),children:[(0,n.jsx)("span",{className:"text-[var(--color-content-accent)]",children:"K"}),(0,n.jsx)("span",{className:"text-[var(--color-content-primary)]",children:"OMUNIFY"})]})]}),(0,n.jsx)("button",{type:"button",onClick:function(){t(e=>{let s=!e;return window.localStorage.setItem(c,String(s)),s})},"aria-expanded":!s,"aria-label":s?"Expand sidebar":"Collapse sidebar",title:s?"Expand sidebar":"Collapse sidebar",className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-[var(--radius-md)] border border-[var(--color-border-medium)] bg-[var(--color-bg-input)] text-[var(--color-content-secondary)] transition-colors duration-150 hover:border-[var(--color-border-accent)] hover:bg-[var(--color-bg-accent-tint)] hover:text-[var(--color-content-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-content-accent)]",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"h-4 w-4 stroke-current",children:(0,n.jsx)("path",{d:s?"m9 18 6-6-6-6":"m15 18-6-6 6-6",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,n.jsxs)("nav",{"aria-label":"Member navigation",className:"flex flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"mb-1.5 text-[11px] font-medium uppercase tracking-[0.06em] text-[var(--color-content-secondary)] ".concat(s?"hidden":"block"),children:"Member"}),o.map(t=>{let r=e===t.href||e.startsWith("".concat(t.href,"/"));return(0,n.jsxs)(i(),{href:t.href,"aria-current":r?"page":void 0,"aria-label":t.label,title:s?t.label:void 0,className:"flex items-center rounded-[var(--radius-md)] py-2 text-[15px] transition-colors duration-150 ".concat(s?"justify-center gap-0 px-0":"gap-2 px-2.5"," ").concat(r?"bg-[var(--color-bg-accent-tint)] font-semibold text-[var(--color-content-accent)]":"text-[var(--color-content-secondary)] hover:bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] hover:text-[var(--color-content-primary)]"," focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-content-accent)]"),children:[(0,n.jsx)("span",{className:"inline-flex shrink-0 items-center [&>svg]:h-[18px] [&>svg]:w-[18px] [&>svg]:stroke-current [&>svg]:stroke-[1.75]",children:t.icon}),(0,n.jsx)("span",{className:s?"hidden":"inline",children:t.label})]},t.href)})]})]})}},6773:(e,s,t)=>{"use strict";t.d(s,{ExploreView:()=>x});var n=t(4568),r=t(9664),a=t.n(r),i=t(7620),l=t(2995),c=t(4710),o=t(488),d=t(6379),h=t(3873);function x(){let[e,s]=(0,i.useState)("communities");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("header",{children:(0,n.jsx)("p",{className:"tagline",style:{marginTop:0},children:"Discover communities. Unlock their libraries with one subscription."})}),(0,n.jsx)("div",{className:"card",children:(0,n.jsxs)("div",{className:"row tight",children:[(0,n.jsxs)("button",{type:"button",className:"communities"===e?"pill accent":"pill",onClick:()=>s("communities"),children:[(0,n.jsx)(c.I,{name:"users",size:12})," Communities"]}),(0,n.jsxs)("button",{type:"button",className:"content"===e?"pill accent":"pill",onClick:()=>s("content"),children:[(0,n.jsx)(c.I,{name:"sparkle",size:12})," Packages"]})]})}),"communities"===e?(0,n.jsx)(m,{}):(0,n.jsx)(p,{}),(0,n.jsx)("p",{className:"hint",style:{textAlign:"center"},children:(0,n.jsx)(a(),{href:"/dashboard",children:"Go to your dashboard →"})})]})}function m(){var e,s;let t=(0,h.Bk)(),r=null!=(s=null==(e=t.data)?void 0:e.communities)?s:[];return t.isLoading?(0,n.jsx)("section",{className:"card",children:(0,n.jsx)(o.E,{className:"h-16 w-full rounded-md"})}):0===r.length?(0,n.jsx)("section",{className:"card center",children:(0,n.jsxs)("p",{className:"hint",style:{margin:0,display:"inline-flex",gap:6,alignItems:"center"},children:[(0,n.jsx)(c.I,{name:"users",size:15}),"No communities yet. Be the first to start one from your dashboard."]})}):(0,n.jsxs)("section",{className:"card",children:[(0,n.jsx)("h2",{children:"Communities"}),(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:r.map(e=>(0,n.jsxs)(a(),{href:"/community/".concat(e.wallet),className:"row",style:{alignItems:"center",paddingBottom:12,borderBottom:"1px solid var(--color-border-medium)",textDecoration:"none"},children:[(0,n.jsxs)("div",{className:"row tight",style:{alignItems:"center"},children:[e.logo?(0,n.jsx)("img",{src:e.logo,alt:"".concat(e.name," logo"),style:{width:48,height:48,objectFit:"contain",borderRadius:"var(--radius-md)"}}):null,(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{margin:0,fontWeight:700},children:e.name}),e.description?(0,n.jsx)("span",{className:"label",children:e.description}):null]})]}),(0,n.jsxs)("span",{className:"pill",children:[e.contentCount," ",1===e.contentCount?"item":"items"]})]},e.wallet))})]})}function p(){var e,s;let t=(0,l.I)({queryKey:[...d.MU.all(null),"explore"],queryFn:()=>d.fH.list()}),r=null!=(s=null==(e=t.data)?void 0:e.items)?s:[];return t.isLoading?(0,n.jsx)("section",{className:"card",children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,n.jsx)(o.E,{className:"h-12 w-full rounded-md"}),(0,n.jsx)(o.E,{className:"h-12 w-full rounded-md"})]})}):0===r.length?(0,n.jsx)("section",{className:"card center",children:(0,n.jsxs)("p",{className:"hint",style:{margin:0,display:"inline-flex",gap:6,alignItems:"center"},children:[(0,n.jsx)(c.I,{name:"sparkle",size:15}),"No content published yet. Check back soon."]})}):(0,n.jsxs)("section",{className:"card",children:[(0,n.jsx)("h2",{children:"Latest content"}),(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:r.map(e=>(0,n.jsxs)("div",{className:"row",style:{paddingBottom:12,borderBottom:"1px solid var(--color-border-medium)"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{style:{margin:0},children:e.title}),e.description?(0,n.jsx)("span",{className:"label",children:e.description}):null,(0,n.jsx)("div",{style:{marginTop:4},children:(0,n.jsx)(a(),{href:"/community/".concat(e.creatorWallet),className:"label",children:"View community →"})})]}),(0,n.jsxs)("span",{className:"label",children:["#",e.contentId]})]},e.contentId))})]})}},7541:(e,s,t)=>{"use strict";var n=t(3041);t.o(n,"usePathname")&&t.d(s,{usePathname:function(){return n.usePathname}})}},e=>{e.O(0,[564,31,221,563,558,242,587,18,358],()=>e(e.s=5627)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/explore/page-a560012ae2987c7e.js b/prototype/landing/_next/static/chunks/app/explore/page-a560012ae2987c7e.js deleted file mode 100644 index 8ad81c7..0000000 --- a/prototype/landing/_next/static/chunks/app/explore/page-a560012ae2987c7e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[314],{1171:(e,s,l)=>{Promise.resolve().then(l.bind(l,6773))},4710:(e,s,l)=>{"use strict";l.d(s,{I:()=>i});var t=l(4568);let n={lock:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,t.jsx)("path",{d:"M7 8V6a3 3 0 0 1 6 0v2"})]}),unlock:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,t.jsx)("path",{d:"M7 8V6a3 3 0 0 1 5.8-1"})]}),check:(0,t.jsx)("path",{d:"M4 10.5l4 4 8-9"}),wallet:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M3 8h14"}),(0,t.jsx)("circle",{cx:"13.5",cy:"11.5",r:"1"})]}),key:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"7",cy:"7",r:"3"}),(0,t.jsx)("path",{d:"M9.2 9.2 16 16m-2.5-2.5 1.5-1.5m-4-1 1.5-1.5"})]}),coins:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ellipse",{cx:"8",cy:"6",rx:"4.5",ry:"2.2"}),(0,t.jsx)("path",{d:"M3.5 6v4c0 1.2 2 2.2 4.5 2.2s4.5-1 4.5-2.2V6"}),(0,t.jsx)("path",{d:"M12.5 10.5c2.2.2 4 1.1 4 2.3 0 1.2-2 2.2-4.5 2.2-1 0-1.9-.15-2.6-.4"})]}),external:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M11 4h5v5"}),(0,t.jsx)("path",{d:"M16 4l-7 7"}),(0,t.jsx)("path",{d:"M14 11.5V15a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 15V7a1.5 1.5 0 0 1 1.5-1.5H8"})]}),sparkle:(0,t.jsx)("path",{d:"M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6L10 3z"}),users:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"7.5",cy:"7",r:"2.6"}),(0,t.jsx)("path",{d:"M3 16c0-2.5 2-4.2 4.5-4.2S12 13.5 12 16"}),(0,t.jsx)("path",{d:"M13 6.2a2.4 2.4 0 0 1 0 4.6M14 16c0-2.2-.8-3.5-2-4.2"})]}),upload:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 13V4"}),(0,t.jsx)("path",{d:"M6.5 7.5 10 4l3.5 3.5"}),(0,t.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),download:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 4v9"}),(0,t.jsx)("path",{d:"M6.5 9.5 10 13l3.5-3.5"}),(0,t.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),clock:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,t.jsx)("path",{d:"M10 6v4l2.5 2"})]}),info:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,t.jsx)("path",{d:"M10 9v4"}),(0,t.jsx)("path",{d:"M10 6.5h.01"})]}),shield:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M10 3l6 2v4c0 4-2.7 6.5-6 8-3.3-1.5-6-4-6-8V5l6-2z"}),(0,t.jsx)("path",{d:"M7.5 10l1.8 1.8L13 8"})]}),"arrow-right":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M4 10h11"}),(0,t.jsx)("path",{d:"M11 6l4 4-4 4"})]}),pen:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M13.5 3.5 16.5 6.5 7 16H4v-3z"}),(0,t.jsx)("path",{d:"M12 5 15 8"})]}),"sign-out":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M8 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8"}),(0,t.jsx)("path",{d:"M12 13l3-3-3-3"}),(0,t.jsx)("path",{d:"M15 10H8"})]}),flag:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M5 17V3"}),(0,t.jsx)("path",{d:"M5 4h9l-2 3 2 3H5"})]})};function i(e){let{name:s,size:l=16,className:i,style:a,...r}=e;return(0,t.jsx)("svg",{width:l,height:l,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",className:i,style:{verticalAlign:"-0.15em",flexShrink:0,...a},...r,children:n[s]})}},6773:(e,s,l)=>{"use strict";l.d(s,{ExploreView:()=>x});var t=l(4568),n=l(9664),i=l.n(n),a=l(7620),r=l(2995),c=l(4710),d=l(488),h=l(6379),o=l(3873);function x(){let[e,s]=(0,a.useState)("communities");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{children:(0,t.jsx)("p",{className:"tagline",style:{marginTop:0},children:"Discover communities. Unlock their libraries with one subscription."})}),(0,t.jsx)("div",{className:"card",children:(0,t.jsxs)("div",{className:"row tight",children:[(0,t.jsxs)("button",{type:"button",className:"communities"===e?"pill accent":"pill",onClick:()=>s("communities"),children:[(0,t.jsx)(c.I,{name:"users",size:12})," Communities"]}),(0,t.jsxs)("button",{type:"button",className:"content"===e?"pill accent":"pill",onClick:()=>s("content"),children:[(0,t.jsx)(c.I,{name:"sparkle",size:12})," Packages"]})]})}),"communities"===e?(0,t.jsx)(m,{}):(0,t.jsx)(j,{}),(0,t.jsx)("p",{className:"hint",style:{textAlign:"center"},children:(0,t.jsx)(i(),{href:"/dashboard",children:"Go to your dashboard →"})})]})}function m(){var e,s;let l=(0,o.Bk)(),n=null!=(s=null==(e=l.data)?void 0:e.communities)?s:[];return l.isLoading?(0,t.jsx)("section",{className:"card",children:(0,t.jsx)(d.E,{className:"h-16 w-full rounded-md"})}):0===n.length?(0,t.jsx)("section",{className:"card center",children:(0,t.jsxs)("p",{className:"hint",style:{margin:0,display:"inline-flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(c.I,{name:"users",size:15}),"No communities yet. Be the first to start one from your dashboard."]})}):(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Communities"}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:n.map(e=>(0,t.jsxs)(i(),{href:"/community/".concat(e.wallet),className:"row",style:{alignItems:"center",paddingBottom:12,borderBottom:"1px solid var(--color-border-medium)",textDecoration:"none"},children:[(0,t.jsxs)("div",{className:"row tight",style:{alignItems:"center"},children:[e.logo?(0,t.jsx)("img",{src:e.logo,alt:"".concat(e.name," logo"),style:{width:48,height:48,objectFit:"contain",borderRadius:"var(--radius-md)"}}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{style:{margin:0,fontWeight:700},children:e.name}),e.description?(0,t.jsx)("span",{className:"label",children:e.description}):null]})]}),(0,t.jsxs)("span",{className:"pill",children:[e.contentCount," ",1===e.contentCount?"item":"items"]})]},e.wallet))})]})}function j(){var e,s;let l=(0,r.I)({queryKey:[...h.MU.all(null),"explore"],queryFn:()=>h.fH.list()}),n=null!=(s=null==(e=l.data)?void 0:e.items)?s:[];return l.isLoading?(0,t.jsx)("section",{className:"card",children:(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,t.jsx)(d.E,{className:"h-12 w-full rounded-md"}),(0,t.jsx)(d.E,{className:"h-12 w-full rounded-md"})]})}):0===n.length?(0,t.jsx)("section",{className:"card center",children:(0,t.jsxs)("p",{className:"hint",style:{margin:0,display:"inline-flex",gap:6,alignItems:"center"},children:[(0,t.jsx)(c.I,{name:"sparkle",size:15}),"No content published yet. Check back soon."]})}):(0,t.jsxs)("section",{className:"card",children:[(0,t.jsx)("h2",{children:"Latest content"}),(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:n.map(e=>(0,t.jsxs)("div",{className:"row",style:{paddingBottom:12,borderBottom:"1px solid var(--color-border-medium)"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{style:{margin:0},children:e.title}),e.description?(0,t.jsx)("span",{className:"label",children:e.description}):null,(0,t.jsx)("div",{style:{marginTop:4},children:(0,t.jsx)(i(),{href:"/community/".concat(e.creatorWallet),className:"label",children:"View community →"})})]}),(0,t.jsxs)("span",{className:"label",children:["#",e.contentId]})]},e.contentId))})]})}}},e=>{e.O(0,[564,31,221,563,558,242,587,18,358],()=>e(e.s=1171)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/layout-b3a6caf9814d7620.js b/prototype/landing/_next/static/chunks/app/layout-70b9ec0d57e1d375.js similarity index 99% rename from prototype/landing/_next/static/chunks/app/layout-b3a6caf9814d7620.js rename to prototype/landing/_next/static/chunks/app/layout-70b9ec0d57e1d375.js index 8b4563b..73cd126 100644 --- a/prototype/landing/_next/static/chunks/app/layout-b3a6caf9814d7620.js +++ b/prototype/landing/_next/static/chunks/app/layout-70b9ec0d57e1d375.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{826:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(2902),s=r(3714);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{AppHeader:()=>p});var n=r(4568),s=r(9664),a=r.n(s),l=r(7541),o=r(6845),i=r(4710),c=r(8359),d=r(9798);function u(){let{isConnected:e,address:t,connecting:r,error:s,connect:a,disconnect:l}=(0,c.v)(),u=(0,d.yj)(),h=(0,d.Rt)(),p=!!u.data;if(!e||!t)return(0,n.jsxs)("div",{className:"app-bar-wallet",children:[(0,n.jsxs)(o.$,{type:"button",size:"sm",onClick:a,disabled:r,children:[(0,n.jsx)(i.I,{name:"wallet",size:14}),r?"Connecting…":"Connect"]}),s?(0,n.jsx)("span",{className:"error",style:{margin:0,fontSize:12},children:s}):null]});async function m(){await h.mutateAsync(),l()}return(0,n.jsxs)("div",{className:"app-bar-wallet",children:[(0,n.jsxs)("code",{title:t,style:p?{display:"inline-flex",gap:4,alignItems:"center",color:"var(--color-content-success)"}:void 0,children:[p?(0,n.jsx)(i.I,{name:"check",size:12}):null,"".concat(t.slice(0,4),"…").concat(t.slice(-4))]}),p?(0,n.jsxs)(o.$,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:h.isPending,children:[(0,n.jsx)(i.I,{name:"sign-out",size:14}),"Sign out"]}):(0,n.jsx)(o.$,{type:"button",variant:"outline",size:"sm",onClick:l,children:"Disconnect"})]})}var h=r(8469);function p(){if("/"===(0,l.usePathname)())return null;let e=(0,h._b)().network;return(0,n.jsxs)("div",{className:"app-bar",children:[(0,n.jsxs)("div",{className:"app-bar-brand-group",children:[(0,n.jsx)(a(),{href:"/dashboard",className:"app-bar-brand",children:"komunify"}),(0,n.jsx)("span",{className:"pill accent",children:e})]}),(0,n.jsx)(u,{})]})}},1948:(e,t,r)=>{"use strict";r.d(t,{SmoothScroll:()=>a});var n=r(4568),s=r(4916);function a(e){let{children:t}=e;return(0,n.jsx)(s.FH,{root:!0,options:{duration:1.15,lerp:.1,smoothWheel:!0,wheelMultiplier:1,touchMultiplier:1.5,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e))},children:t})}},2825:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3210,23)),Promise.resolve().then(r.bind(r,1697)),Promise.resolve().then(r.bind(r,8422)),Promise.resolve().then(r.bind(r,5286)),Promise.resolve().then(r.bind(r,1948)),Promise.resolve().then(r.bind(r,8359))},3143:(e,t,r)=>{"use strict";r.d(t,{N:()=>o,h:()=>s});let n=r(7011).env.NEXT_PUBLIC_API_URL||"http://localhost:3001";class s extends Error{constructor(e,t,r){super(r),this.status=e,this.code=t,this.name="ApiError"}}async function a(e){if(204===e.status)return;let t=await e.text();if(t)try{return JSON.parse(t)}catch(e){return}}async function l(e,t){let r=await fetch("".concat(n).concat(e),{...t,credentials:"include",headers:{...(null==t?void 0:t.body)&&!(t.body instanceof FormData)?{"Content-Type":"application/json"}:{},...null==t?void 0:t.headers}}),l=await a(r);if(!r.ok){var o,i;let e=null!=l?l:{};throw new s(r.status,e.code,null!=(i=null!=(o=e.error)?o:e.message)?i:"Request failed with status ".concat(r.status))}return l&&"object"==typeof l&&"success"in l&&"data"in l?l.data:l}let o={get:e=>l(e,{method:"GET"}),post:(e,t)=>l(e,{method:"POST",body:void 0!==t?JSON.stringify(t):void 0}),put:(e,t)=>l(e,{method:"PUT",body:void 0!==t?JSON.stringify(t):void 0}),postForm:(e,t)=>l(e,{method:"POST",body:t}),delete:e=>l(e,{method:"DELETE"})}},3210:()=>{},3497:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n={all:e=>["auth",e],me:e=>[...n.all(e),"me"]}},4710:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(4568);let s={lock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,n.jsx)("path",{d:"M7 8V6a3 3 0 0 1 6 0v2"})]}),unlock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,n.jsx)("path",{d:"M7 8V6a3 3 0 0 1 5.8-1"})]}),check:(0,n.jsx)("path",{d:"M4 10.5l4 4 8-9"}),wallet:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"3",y:"5",width:"14",height:"11",rx:"2"}),(0,n.jsx)("path",{d:"M3 8h14"}),(0,n.jsx)("circle",{cx:"13.5",cy:"11.5",r:"1"})]}),key:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"7",cy:"7",r:"3"}),(0,n.jsx)("path",{d:"M9.2 9.2 16 16m-2.5-2.5 1.5-1.5m-4-1 1.5-1.5"})]}),coins:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ellipse",{cx:"8",cy:"6",rx:"4.5",ry:"2.2"}),(0,n.jsx)("path",{d:"M3.5 6v4c0 1.2 2 2.2 4.5 2.2s4.5-1 4.5-2.2V6"}),(0,n.jsx)("path",{d:"M12.5 10.5c2.2.2 4 1.1 4 2.3 0 1.2-2 2.2-4.5 2.2-1 0-1.9-.15-2.6-.4"})]}),external:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M11 4h5v5"}),(0,n.jsx)("path",{d:"M16 4l-7 7"}),(0,n.jsx)("path",{d:"M14 11.5V15a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 15V7a1.5 1.5 0 0 1 1.5-1.5H8"})]}),sparkle:(0,n.jsx)("path",{d:"M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6L10 3z"}),users:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"7.5",cy:"7",r:"2.6"}),(0,n.jsx)("path",{d:"M3 16c0-2.5 2-4.2 4.5-4.2S12 13.5 12 16"}),(0,n.jsx)("path",{d:"M13 6.2a2.4 2.4 0 0 1 0 4.6M14 16c0-2.2-.8-3.5-2-4.2"})]}),upload:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 13V4"}),(0,n.jsx)("path",{d:"M6.5 7.5 10 4l3.5 3.5"}),(0,n.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),download:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 4v9"}),(0,n.jsx)("path",{d:"M6.5 9.5 10 13l3.5-3.5"}),(0,n.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),clock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,n.jsx)("path",{d:"M10 6v4l2.5 2"})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,n.jsx)("path",{d:"M10 9v4"}),(0,n.jsx)("path",{d:"M10 6.5h.01"})]}),shield:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 3l6 2v4c0 4-2.7 6.5-6 8-3.3-1.5-6-4-6-8V5l6-2z"}),(0,n.jsx)("path",{d:"M7.5 10l1.8 1.8L13 8"})]}),"arrow-right":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M4 10h11"}),(0,n.jsx)("path",{d:"M11 6l4 4-4 4"})]}),pen:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M13.5 3.5 16.5 6.5 7 16H4v-3z"}),(0,n.jsx)("path",{d:"M12 5 15 8"})]}),"sign-out":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M8 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8"}),(0,n.jsx)("path",{d:"M12 13l3-3-3-3"}),(0,n.jsx)("path",{d:"M15 10H8"})]}),flag:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M5 17V3"}),(0,n.jsx)("path",{d:"M5 4h9l-2 3 2 3H5"})]})};function a(e){let{name:t,size:r=16,className:a,style:l,...o}=e;return(0,n.jsx)("svg",{width:r,height:r,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",className:a,style:{verticalAlign:"-0.15em",flexShrink:0,...l},...o,children:s[t]})}},5286:(e,t,r)=>{"use strict";r.d(t,{QueryProvider:()=>i});var n=r(4568),s=r(9292),a=r(4869),l=r(7753),o=r(7620);function i(e){let{children:t}=e,[r]=(0,o.useState)(()=>new s.E({defaultOptions:{queries:{staleTime:6e4,retry:1}}}));return(0,n.jsxs)(a.Ht,{client:r,children:[t,(0,n.jsx)(l.E,{initialIsOpen:!1})]})}},6845:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n=r(4568),s=r(7620),a=r(6118),l=r(4616),o=r(826);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:brightness-110",destructive:"bg-destructive text-destructive-foreground hover:brightness-110",outline:"border border-border bg-transparent text-foreground font-medium hover:bg-accent",secondary:"bg-secondary text-secondary-foreground hover:brightness-110",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:l,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,n.jsx)(u,{className:(0,o.cn)(i({variant:s,size:l,className:r})),ref:t,...d})});c.displayName="Button"},7251:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});let n={auth:{challenge:"/auth/challenge",verify:"/auth/verify",logout:"/auth/logout",me:"/auth/me"},content:{list:"/content",upload:"/content/upload",confirm:e=>"/content/".concat(e,"/confirm"),download:e=>"/content/".concat(e,"/download")},community:{list:"/community",save:"/community",byWallet:e=>"/community/".concat(e)},manager:{settleAll:"/manager/settle-all",pending:"/manager/pending"},stats:"/stats",users:{list:"/users",byId:e=>"/users/".concat(e),create:"/users",update:e=>"/users/".concat(e),delete:e=>"/users/".concat(e)},health:"/health"}},8359:(e,t,r)=>{"use strict";r.d(t,{WalletProvider:()=>o,v:()=>i});var n=r(4568),s=r(5620),a=r(7620);let l=(0,a.createContext)(null);function o(e){let{children:t}=e,[r,o]=(0,a.useState)(!1),[i,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),[h,p]=(0,a.useState)(!1),[m,x]=(0,a.useState)(!1),[g,j]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=!0;return(async()=>{let{isConnected:t}=await (0,s.isConnected)();if(!e||(o(t),!t))return;let r=await (0,s.getAddress)();if(e&&!r.error&&r.address){c(r.address);let t=await (0,s.getNetwork)();e&&!t.error&&u(t.network)}})(),()=>{e=!1}},[]),(0,a.useEffect)(()=>{let e=new s.WatchWalletChanges(2e3);return e.watch(e=>{c(t=>t?e.address||null:t),e.network&&u(e.network)}),()=>e.stop()},[]);let f=(0,a.useCallback)(async()=>{p(!0),j(null);try{let{isConnected:t}=await (0,s.isConnected)();if(o(t),!t)throw Error("Freighter is not installed. Get it at https://www.freighter.app");let r=await (0,s.requestAccess)();if(r.error||!r.address){var e;throw Error((null==(e=r.error)?void 0:e.message)||"Access to Freighter was denied")}c(r.address);let n=await (0,s.getNetwork)();n.error||u(n.network)}catch(e){j(e instanceof Error?e.message:"Failed to connect wallet")}finally{p(!1)}},[]),v=(0,a.useCallback)(()=>{c(null)},[]),y=(0,a.useCallback)(async()=>{x(!0);try{let e=await (0,s.getAddress)();!e.error&&e.address&&c(e.address);let t=await (0,s.getNetwork)();t.error||u(t.network)}finally{x(!1)}},[]),b=(0,a.useMemo)(()=>({isInstalled:r,isConnected:!!i,address:i,network:d,connecting:h,refreshing:m,error:g,connect:f,disconnect:v,refresh:y}),[r,i,d,h,m,g,f,v,y]);return(0,n.jsx)(l.Provider,{value:b,children:t})}function i(){let e=(0,a.useContext)(l);if(!e)throw Error("useWallet must be used within a WalletProvider");return e}},8422:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>o,ZI:()=>d,k$:()=>c,m_:()=>i});var n=r(4568),s=r(2212),a=r(7620),l=r(826);let o=s.Kq,i=s.bL,c=s.l9,d=a.forwardRef((e,t)=>{let{className:r,sideOffset:a=6,...o}=e;return(0,n.jsx)(s.ZL,{children:(0,n.jsx)(s.UC,{ref:t,sideOffset:a,className:(0,l.cn)("z-50 max-w-[220px] rounded-md border border-border bg-popover px-3 py-2 text-xs font-normal normal-case leading-relaxed tracking-normal text-popover-foreground shadow-lg","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95",r),...o})})});d.displayName=s.UC.displayName},8469:(e,t,r)=>{"use strict";r.d(t,{Uf:()=>h,LR:()=>u,_b:()=>d});let n={testnet:{label:"Testnet",networkPassphrase:"Test SDF Network ; September 2015",rpcUrl:"https://soroban-testnet.stellar.org",horizonUrl:"https://horizon-testnet.stellar.org"},mainnet:{label:"Mainnet",networkPassphrase:"Public Global Stellar Network ; September 2015",rpcUrl:"https://mainnet.sorobanrpc.com",horizonUrl:"https://horizon.stellar.org"},futurenet:{label:"Futurenet",networkPassphrase:"Test SDF Future Network ; October 2022",rpcUrl:"https://rpc-futurenet.stellar.org",horizonUrl:"https://horizon-futurenet.stellar.org"},local:{label:"Local",networkPassphrase:"Standalone Network ; February 2017",rpcUrl:"http://localhost:8000/rpc",horizonUrl:"http://localhost:8000"}};var s=r(3916);s.Ik({address:s.Yj()}),s.Ik({nonce:s.Yj()}),s.Ik({address:s.Yj(),signature:s.Yj()}),s.Ik({address:s.Yj(),isManager:s.zM()}),s.Ik({address:s.Yj(),isManager:s.zM()});let a=s.Ik({wallet:s.Yj(),name:s.Yj(),description:s.Yj(),logo:s.Yj().nullable(),updatedAt:s.Yj()});s.Ik({name:s.Yj().min(1,"Community name is required").max(80),description:s.Yj().max(500).default(""),logo:s.Yj().max(786432).regex(/^data:image\/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$/,"Logo must be a PNG, JPEG, WebP, or GIF image").nullable().default(null)});let l=a.extend({contentCount:s.ai().int()});s.Ik({communities:s.YO(l)}),s.Ik({cursor:s.Yj().optional(),limit:s.au.number().int().min(1).max(100).default(20)});let o=s.Ik({contentId:s.Yj(),title:s.Yj(),description:s.Yj(),sha256:s.Yj(),sizeBytes:s.ai().int(),creatorWallet:s.Yj(),createdAt:s.Yj()});s.Ik({items:s.YO(o),nextCursor:s.Yj().nullable()}),s.Ik({draftId:s.Yj(),sha256:s.Yj(),sizeBytes:s.ai().int()}),s.Ik({contentId:s.Yj(),txHash:s.Yj()}),s.Ik({contentId:s.Yj(),status:s.eu("REGISTERED")}),s.Ik({url:s.Yj(),expiresIn:s.ai().int(),sha256:s.Yj()});let i=s.Ik({type:s.k5(["subscribed","content","accessed","settled","claimed"]),wallet:s.Yj(),amount:s.Yj().optional(),ledger:s.ai().int(),txHash:s.Yj()});s.Ik({totalSubs:s.Yj(),totalVolume:s.Yj(),totalClaimed:s.Yj(),contentCount:s.Yj(),managerCount:s.ai().int(),currentEpoch:s.ai().int(),epochEndsAt:s.Yj(),epochReads:s.ai().int(),recentEvents:s.YO(i)});var c=r(7011);function d(){var e,t,r,s,a,l;let o=null!=(e=c.env.NEXT_PUBLIC_STELLAR_NETWORK)?e:"testnet",i=null!=(l=n[null!=o?o:"testnet"])?l:n.testnet;return{network:o,networkPassphrase:i.networkPassphrase,rpcUrl:null!=(t=c.env.NEXT_PUBLIC_SOROBAN_RPC_URL)?t:i.rpcUrl,horizonUrl:null!=(r=c.env.NEXT_PUBLIC_HORIZON_URL)?r:i.horizonUrl,komunifyContractId:null!=(s=c.env.NEXT_PUBLIC_KOMUNIFY_CONTRACT_ID)?s:"",usdcContractId:null!=(a=c.env.NEXT_PUBLIC_USDC_CONTRACT_ID)?a:""}}function u(e,t){return p("contract",e,t)}function h(e,t){return p("account",e,t)}function p(e,t,r){let n="mainnet"===r?"public":"testnet"===r?"testnet":null;return n&&t?"https://stellar.expert/explorer/".concat(n,"/").concat(e,"/").concat(t):null}},9798:(e,t,r)=>{"use strict";r.d(t,{yj:()=>h,go:()=>p,Rt:()=>m});var n=r(3497),s=r(5620),a=r(7251),l=r(3143);class o{static challenge(e){return l.N.post(a.S.auth.challenge,{address:e})}static verify(e,t){return l.N.post(a.S.auth.verify,{address:e,signature:t})}static logout(){return l.N.post(a.S.auth.logout)}static me(){return l.N.get(a.S.auth.me)}static async signIn(e){var t;let{nonce:r}=await this.challenge(e),n=await (0,s.signMessage)(r,{address:e});if(n.error)throw Error(n.error.message);let a="string"==typeof n.signedMessage?n.signedMessage:function(e){let t="";for(let r of e)t+=String.fromCharCode(r);return btoa(t)}(new Uint8Array(null!=(t=n.signedMessage)?t:[]));return this.verify(e,a)}}var i=r(2995),c=r(4869),d=r(1562),u=r(8359);function h(){let{address:e}=(0,u.v)();return(0,i.I)({queryKey:n.Z.me(e),queryFn:()=>o.me(),enabled:!!e,retry:!1})}function p(){let{address:e}=(0,u.v)(),t=(0,c.jE)();return(0,d.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.signIn(e)},onSuccess:()=>t.invalidateQueries({queryKey:n.Z.all(e)})})}function m(){let{address:e}=(0,u.v)(),t=(0,c.jE)();return(0,d.n)({mutationFn:()=>o.logout(),onSuccess:()=>t.invalidateQueries({queryKey:n.Z.all(e)})})}}},e=>{e.O(0,[857,221,563,131,986,587,18,358],()=>e(e.s=2825)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{826:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(2902),s=r(3714);function a(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{AppHeader:()=>p});var n=r(4568),s=r(9664),a=r.n(s),l=r(7541),o=r(6845),i=r(4710),c=r(8359),d=r(9798);function u(){let{isConnected:e,address:t,connecting:r,error:s,connect:a,disconnect:l}=(0,c.v)(),u=(0,d.yj)(),h=(0,d.Rt)(),p=!!u.data;if(!e||!t)return(0,n.jsxs)("div",{className:"app-bar-wallet",children:[(0,n.jsxs)(o.$,{type:"button",size:"sm",onClick:a,disabled:r,children:[(0,n.jsx)(i.I,{name:"wallet",size:14}),r?"Connecting…":"Connect"]}),s?(0,n.jsx)("span",{className:"error",style:{margin:0,fontSize:12},children:s}):null]});async function m(){await h.mutateAsync(),l()}return(0,n.jsxs)("div",{className:"app-bar-wallet",children:[(0,n.jsxs)("code",{title:t,style:p?{display:"inline-flex",gap:4,alignItems:"center",color:"var(--color-content-success)"}:void 0,children:[p?(0,n.jsx)(i.I,{name:"check",size:12}):null,"".concat(t.slice(0,4),"…").concat(t.slice(-4))]}),p?(0,n.jsxs)(o.$,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:h.isPending,children:[(0,n.jsx)(i.I,{name:"sign-out",size:14}),"Sign out"]}):(0,n.jsx)(o.$,{type:"button",variant:"outline",size:"sm",onClick:l,children:"Disconnect"})]})}var h=r(8469);function p(){if("/"===(0,l.usePathname)())return null;let e=(0,h._b)().network;return(0,n.jsxs)("div",{className:"app-bar",children:[(0,n.jsxs)("div",{className:"app-bar-brand-group",children:[(0,n.jsx)(a(),{href:"/dashboard",className:"app-bar-brand",children:"komunify"}),(0,n.jsx)("span",{className:"pill accent",children:e})]}),(0,n.jsx)(u,{})]})}},1948:(e,t,r)=>{"use strict";r.d(t,{SmoothScroll:()=>a});var n=r(4568),s=r(4916);function a(e){let{children:t}=e;return(0,n.jsx)(s.FH,{root:!0,options:{duration:1.15,lerp:.1,smoothWheel:!0,wheelMultiplier:1,touchMultiplier:1.5,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e))},children:t})}},2825:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3210,23)),Promise.resolve().then(r.bind(r,1697)),Promise.resolve().then(r.bind(r,8422)),Promise.resolve().then(r.bind(r,5286)),Promise.resolve().then(r.bind(r,1948)),Promise.resolve().then(r.bind(r,8359))},3143:(e,t,r)=>{"use strict";r.d(t,{N:()=>o,h:()=>s});let n=r(7011).env.NEXT_PUBLIC_API_URL||"http://localhost:3001";class s extends Error{constructor(e,t,r){super(r),this.status=e,this.code=t,this.name="ApiError"}}async function a(e){if(204===e.status)return;let t=await e.text();if(t)try{return JSON.parse(t)}catch(e){return}}async function l(e,t){let r=await fetch("".concat(n).concat(e),{...t,credentials:"include",headers:{...(null==t?void 0:t.body)&&!(t.body instanceof FormData)?{"Content-Type":"application/json"}:{},...null==t?void 0:t.headers}}),l=await a(r);if(!r.ok){var o,i;let e=null!=l?l:{};throw new s(r.status,e.code,null!=(i=null!=(o=e.error)?o:e.message)?i:"Request failed with status ".concat(r.status))}return l&&"object"==typeof l&&"success"in l&&"data"in l?l.data:l}let o={get:e=>l(e,{method:"GET"}),post:(e,t)=>l(e,{method:"POST",body:void 0!==t?JSON.stringify(t):void 0}),put:(e,t)=>l(e,{method:"PUT",body:void 0!==t?JSON.stringify(t):void 0}),postForm:(e,t)=>l(e,{method:"POST",body:t}),delete:e=>l(e,{method:"DELETE"})}},3210:()=>{},3497:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n={all:e=>["auth",e],me:e=>[...n.all(e),"me"]}},4710:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(4568);let s={lock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,n.jsx)("path",{d:"M7 8V6a3 3 0 0 1 6 0v2"})]}),unlock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"4.5",y:"8",width:"11",height:"8",rx:"1.6"}),(0,n.jsx)("path",{d:"M7 8V6a3 3 0 0 1 5.8-1"})]}),check:(0,n.jsx)("path",{d:"M4 10.5l4 4 8-9"}),wallet:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"3",y:"5",width:"14",height:"11",rx:"2"}),(0,n.jsx)("path",{d:"M3 8h14"}),(0,n.jsx)("circle",{cx:"13.5",cy:"11.5",r:"1"})]}),key:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"7",cy:"7",r:"3"}),(0,n.jsx)("path",{d:"M9.2 9.2 16 16m-2.5-2.5 1.5-1.5m-4-1 1.5-1.5"})]}),coins:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ellipse",{cx:"8",cy:"6",rx:"4.5",ry:"2.2"}),(0,n.jsx)("path",{d:"M3.5 6v4c0 1.2 2 2.2 4.5 2.2s4.5-1 4.5-2.2V6"}),(0,n.jsx)("path",{d:"M12.5 10.5c2.2.2 4 1.1 4 2.3 0 1.2-2 2.2-4.5 2.2-1 0-1.9-.15-2.6-.4"})]}),external:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M11 4h5v5"}),(0,n.jsx)("path",{d:"M16 4l-7 7"}),(0,n.jsx)("path",{d:"M14 11.5V15a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 15V7a1.5 1.5 0 0 1 1.5-1.5H8"})]}),sparkle:(0,n.jsx)("path",{d:"M10 3l1.6 4.4L16 9l-4.4 1.6L10 15l-1.6-4.4L4 9l4.4-1.6L10 3z"}),users:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"7.5",cy:"7",r:"2.6"}),(0,n.jsx)("path",{d:"M3 16c0-2.5 2-4.2 4.5-4.2S12 13.5 12 16"}),(0,n.jsx)("path",{d:"M13 6.2a2.4 2.4 0 0 1 0 4.6M14 16c0-2.2-.8-3.5-2-4.2"})]}),upload:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 13V4"}),(0,n.jsx)("path",{d:"M6.5 7.5 10 4l3.5 3.5"}),(0,n.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),download:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 4v9"}),(0,n.jsx)("path",{d:"M6.5 9.5 10 13l3.5-3.5"}),(0,n.jsx)("path",{d:"M4 13v2.5A1.5 1.5 0 0 0 5.5 17h9a1.5 1.5 0 0 0 1.5-1.5V13"})]}),clock:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,n.jsx)("path",{d:"M10 6v4l2.5 2"})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"10",cy:"10",r:"7"}),(0,n.jsx)("path",{d:"M10 9v4"}),(0,n.jsx)("path",{d:"M10 6.5h.01"})]}),shield:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M10 3l6 2v4c0 4-2.7 6.5-6 8-3.3-1.5-6-4-6-8V5l6-2z"}),(0,n.jsx)("path",{d:"M7.5 10l1.8 1.8L13 8"})]}),"arrow-right":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M4 10h11"}),(0,n.jsx)("path",{d:"M11 6l4 4-4 4"})]}),pen:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M13.5 3.5 16.5 6.5 7 16H4v-3z"}),(0,n.jsx)("path",{d:"M12 5 15 8"})]}),"sign-out":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M8 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8"}),(0,n.jsx)("path",{d:"M12 13l3-3-3-3"}),(0,n.jsx)("path",{d:"M15 10H8"})]}),flag:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M5 17V3"}),(0,n.jsx)("path",{d:"M5 4h9l-2 3 2 3H5"})]})};function a(e){let{name:t,size:r=16,className:a,style:l,...o}=e;return(0,n.jsx)("svg",{width:r,height:r,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",className:a,style:{verticalAlign:"-0.15em",flexShrink:0,...l},...o,children:s[t]})}},5286:(e,t,r)=>{"use strict";r.d(t,{QueryProvider:()=>i});var n=r(4568),s=r(9292),a=r(4869),l=r(7753),o=r(7620);function i(e){let{children:t}=e,[r]=(0,o.useState)(()=>new s.E({defaultOptions:{queries:{staleTime:6e4,retry:1}}}));return(0,n.jsxs)(a.Ht,{client:r,children:[t,(0,n.jsx)(l.E,{initialIsOpen:!1})]})}},6845:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n=r(4568),s=r(7620),a=r(6118),l=r(4616),o=r(826);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-55 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:brightness-110",destructive:"bg-destructive text-destructive-foreground hover:brightness-110",outline:"border border-border bg-transparent text-foreground font-medium hover:bg-accent",secondary:"bg-secondary text-secondary-foreground hover:brightness-110",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:l,asChild:c=!1,...d}=e,u=c?a.DX:"button";return(0,n.jsx)(u,{className:(0,o.cn)(i({variant:s,size:l,className:r})),ref:t,...d})});c.displayName="Button"},7251:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});let n={auth:{challenge:"/auth/challenge",verify:"/auth/verify",logout:"/auth/logout",me:"/auth/me"},content:{list:"/content",upload:"/content/upload",confirm:e=>"/content/".concat(e,"/confirm"),download:e=>"/content/".concat(e,"/download")},community:{list:"/community",save:"/community",byWallet:e=>"/community/".concat(e)},manager:{settleAll:"/manager/settle-all",pending:"/manager/pending"},stats:"/stats",users:{list:"/users",byId:e=>"/users/".concat(e),create:"/users",update:e=>"/users/".concat(e),delete:e=>"/users/".concat(e)},health:"/health"}},8359:(e,t,r)=>{"use strict";r.d(t,{WalletProvider:()=>o,v:()=>i});var n=r(4568),s=r(5620),a=r(7620);let l=(0,a.createContext)(null);function o(e){let{children:t}=e,[r,o]=(0,a.useState)(!1),[i,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),[h,p]=(0,a.useState)(!1),[m,x]=(0,a.useState)(!1),[g,j]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=!0;return(async()=>{let{isConnected:t}=await (0,s.isConnected)();if(!e||(o(t),!t))return;let r=await (0,s.getAddress)();if(e&&!r.error&&r.address){c(r.address);let t=await (0,s.getNetwork)();e&&!t.error&&u(t.network)}})(),()=>{e=!1}},[]),(0,a.useEffect)(()=>{let e=new s.WatchWalletChanges(2e3);return e.watch(e=>{c(t=>t?e.address||null:t),e.network&&u(e.network)}),()=>e.stop()},[]);let f=(0,a.useCallback)(async()=>{p(!0),j(null);try{let{isConnected:t}=await (0,s.isConnected)();if(o(t),!t)throw Error("Freighter is not installed. Get it at https://www.freighter.app");let r=await (0,s.requestAccess)();if(r.error||!r.address){var e;throw Error((null==(e=r.error)?void 0:e.message)||"Access to Freighter was denied")}c(r.address);let n=await (0,s.getNetwork)();n.error||u(n.network)}catch(e){j(e instanceof Error?e.message:"Failed to connect wallet")}finally{p(!1)}},[]),v=(0,a.useCallback)(()=>{c(null)},[]),y=(0,a.useCallback)(async()=>{x(!0);try{let e=await (0,s.getAddress)();!e.error&&e.address&&c(e.address);let t=await (0,s.getNetwork)();t.error||u(t.network)}finally{x(!1)}},[]),b=(0,a.useMemo)(()=>({isInstalled:r,isConnected:!!i,address:i,network:d,connecting:h,refreshing:m,error:g,connect:f,disconnect:v,refresh:y}),[r,i,d,h,m,g,f,v,y]);return(0,n.jsx)(l.Provider,{value:b,children:t})}function i(){let e=(0,a.useContext)(l);if(!e)throw Error("useWallet must be used within a WalletProvider");return e}},8422:(e,t,r)=>{"use strict";r.d(t,{TooltipProvider:()=>o,ZI:()=>d,k$:()=>c,m_:()=>i});var n=r(4568),s=r(2212),a=r(7620),l=r(826);let o=s.Kq,i=s.bL,c=s.l9,d=a.forwardRef((e,t)=>{let{className:r,sideOffset:a=6,...o}=e;return(0,n.jsx)(s.ZL,{children:(0,n.jsx)(s.UC,{ref:t,sideOffset:a,className:(0,l.cn)("z-50 max-w-[220px] rounded-md border border-border bg-popover px-3 py-2 text-xs font-normal normal-case leading-relaxed tracking-normal text-popover-foreground shadow-lg","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95",r),...o})})});d.displayName=s.UC.displayName},8469:(e,t,r)=>{"use strict";r.d(t,{Uf:()=>h,LR:()=>u,_b:()=>d});let n={testnet:{label:"Testnet",networkPassphrase:"Test SDF Network ; September 2015",rpcUrl:"https://soroban-testnet.stellar.org",horizonUrl:"https://horizon-testnet.stellar.org"},mainnet:{label:"Mainnet",networkPassphrase:"Public Global Stellar Network ; September 2015",rpcUrl:"https://mainnet.sorobanrpc.com",horizonUrl:"https://horizon.stellar.org"},futurenet:{label:"Futurenet",networkPassphrase:"Test SDF Future Network ; October 2022",rpcUrl:"https://rpc-futurenet.stellar.org",horizonUrl:"https://horizon-futurenet.stellar.org"},local:{label:"Local",networkPassphrase:"Standalone Network ; February 2017",rpcUrl:"http://localhost:8000/rpc",horizonUrl:"http://localhost:8000"}};var s=r(3916);s.Ik({address:s.Yj()}),s.Ik({nonce:s.Yj()}),s.Ik({address:s.Yj(),signature:s.Yj()}),s.Ik({address:s.Yj(),isManager:s.zM()}),s.Ik({address:s.Yj(),isManager:s.zM()});let a=s.Ik({wallet:s.Yj(),name:s.Yj(),description:s.Yj(),logo:s.Yj().nullable(),updatedAt:s.Yj()});s.Ik({name:s.Yj().min(1,"Community name is required").max(80),description:s.Yj().max(500).default(""),logo:s.Yj().max(786432).regex(/^data:image\/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$/,"Logo must be a PNG, JPEG, WebP, or GIF image").nullable().default(null)});let l=a.extend({contentCount:s.ai().int()});s.Ik({communities:s.YO(l)}),s.Ik({cursor:s.Yj().optional(),limit:s.au.number().int().min(1).max(100).default(20)});let o=s.Ik({contentId:s.Yj(),title:s.Yj(),description:s.Yj(),sha256:s.Yj(),sizeBytes:s.ai().int(),creatorWallet:s.Yj(),createdAt:s.Yj()});s.Ik({items:s.YO(o),nextCursor:s.Yj().nullable()}),s.Ik({draftId:s.Yj(),sha256:s.Yj(),sizeBytes:s.ai().int()}),s.Ik({contentId:s.Yj(),txHash:s.Yj()}),s.Ik({contentId:s.Yj(),status:s.eu("REGISTERED")}),s.Ik({url:s.Yj(),expiresIn:s.ai().int(),sha256:s.Yj()});let i=s.Ik({type:s.k5(["subscribed","content","accessed","settled","claimed"]),wallet:s.Yj(),amount:s.Yj().optional(),ledger:s.ai().int(),txHash:s.Yj()});s.Ik({totalSubs:s.Yj(),totalVolume:s.Yj(),totalClaimed:s.Yj(),contentCount:s.Yj(),managerCount:s.ai().int(),currentEpoch:s.ai().int(),epochEndsAt:s.Yj(),epochReads:s.ai().int(),recentEvents:s.YO(i)});var c=r(7011);function d(){var e,t,r,s,a,l;let o=null!=(e=c.env.NEXT_PUBLIC_STELLAR_NETWORK)?e:"testnet",i=null!=(l=n[null!=o?o:"testnet"])?l:n.testnet;return{network:o,networkPassphrase:i.networkPassphrase,rpcUrl:null!=(t=c.env.NEXT_PUBLIC_SOROBAN_RPC_URL)?t:i.rpcUrl,horizonUrl:null!=(r=c.env.NEXT_PUBLIC_HORIZON_URL)?r:i.horizonUrl,komunifyContractId:null!=(s=c.env.NEXT_PUBLIC_KOMUNIFY_CONTRACT_ID)?s:"",usdcContractId:null!=(a=c.env.NEXT_PUBLIC_USDC_CONTRACT_ID)?a:""}}function u(e,t){return p("contract",e,t)}function h(e,t){return p("account",e,t)}function p(e,t,r){let n="mainnet"===r?"public":"testnet"===r?"testnet":null;return n&&t?"https://stellar.expert/explorer/".concat(n,"/").concat(e,"/").concat(t):null}},9798:(e,t,r)=>{"use strict";r.d(t,{yj:()=>h,go:()=>p,Rt:()=>m});var n=r(3497),s=r(5620),a=r(7251),l=r(3143);class o{static challenge(e){return l.N.post(a.S.auth.challenge,{address:e})}static verify(e,t){return l.N.post(a.S.auth.verify,{address:e,signature:t})}static logout(){return l.N.post(a.S.auth.logout)}static me(){return l.N.get(a.S.auth.me)}static async signIn(e){var t;let{nonce:r}=await this.challenge(e),n=await (0,s.signMessage)(r,{address:e});if(n.error)throw Error(n.error.message);let a="string"==typeof n.signedMessage?n.signedMessage:function(e){let t="";for(let r of e)t+=String.fromCharCode(r);return btoa(t)}(new Uint8Array(null!=(t=n.signedMessage)?t:[]));return this.verify(e,a)}}var i=r(2995),c=r(4869),d=r(1562),u=r(8359);function h(){let{address:e}=(0,u.v)();return(0,i.I)({queryKey:n.Z.me(e),queryFn:()=>o.me(),enabled:!!e,retry:!1})}function p(){let{address:e}=(0,u.v)(),t=(0,c.jE)();return(0,d.n)({mutationFn:()=>{if(!e)throw Error("Connect a wallet first");return o.signIn(e)},onSuccess:()=>t.invalidateQueries({queryKey:n.Z.all(e)})})}function m(){let{address:e}=(0,u.v)(),t=(0,c.jE)();return(0,d.n)({mutationFn:()=>o.logout(),onSuccess:()=>t.invalidateQueries({queryKey:n.Z.all(e)})})}}},e=>{e.O(0,[857,221,563,895,766,587,18,358],()=>e(e.s=2825)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/page-7b39ff54de385a71.js b/prototype/landing/_next/static/chunks/app/page-7b39ff54de385a71.js new file mode 100644 index 0000000..4ec1e10 --- /dev/null +++ b/prototype/landing/_next/static/chunks/app/page-7b39ff54de385a71.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{981:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>$});var a=r(4568),n=r(6780),s=r(4553),i=r(2565),o=r(7186),l=r(9937),c=r(7124),d=r(8425),m=r(1776),x=r(9109),p=r(7620),u=r(9664),h=r.n(u),f=r(2455),g=r(7292),v=r(9354),b=r(3857),y=r(3641),j=r(9038),w=r(3140),N=r(2116),k=r(2995);let _=r(7011).env.NEXT_PUBLIC_API_URL||"http://localhost:3001";class P{static async request(e,t){let r="".concat(_).concat(e);try{let e=await fetch(r,{...t,credentials:"include",headers:{"Content-Type":"application/json",...null==t?void 0:t.headers}}),a=await e.json();if(!e.ok)return{success:!1,error:a.error||"Request failed"};return a}catch(e){return{success:!1,error:e instanceof Error?e.message:"Network error"}}}static async get(e){return this.request(e,{method:"GET"})}static async post(e,t){return this.request(e,{method:"POST",body:JSON.stringify(t)})}static async put(e,t){return this.request(e,{method:"PUT",body:JSON.stringify(t)})}static async patch(e,t){return this.request(e,{method:"PATCH",body:JSON.stringify(t)})}static async delete(e){return this.request(e,{method:"DELETE"})}}var C=r(8359);function E(){return(0,a.jsx)("img",{src:"".concat("/landing","/logo-mark.png"),alt:"Komunify",className:"h-8 w-auto shrink-0"})}function S(){let{isConnected:e,address:t,connecting:r,error:n,connect:s,disconnect:i}=(0,C.v)();return(0,a.jsx)("header",{className:"relative z-20 max-w-7xl mx-auto px-6 md:px-10 pt-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between nav-shell backdrop-blur-md px-5 md:px-6 py-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"text-[var(--color-content-accent)]",children:(0,a.jsx)(E,{})}),(0,a.jsx)("span",{className:"font-serif text-lg tracking-[0.15em] text-[var(--color-content-primary)]",children:"KOMUNIFY"})]}),(0,a.jsxs)("nav",{className:"hidden md:flex items-center gap-10 text-[13px] tracking-wide text-[var(--color-content-secondary)]",children:[(0,a.jsx)("a",{href:"#how",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Packages"}),(0,a.jsx)("a",{href:"#communities",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Communities"}),(0,a.jsx)("a",{href:"https://github.com/yoms07/stellar-hackathon",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Github"})]}),(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[(0,a.jsx)("a",{href:"https://www.freighter.app/",target:"_blank",rel:"noopener noreferrer",className:"text-[13px] tracking-wide text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:"Get wallet"}),e&&t?(0,a.jsxs)("button",{type:"button",onClick:i,title:"Disconnect",className:"inline-flex items-center gap-2 border border-solid border-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)] bg-transparent text-[var(--color-content-accent)] text-[13px] font-mono px-4 py-2 rounded-full hover:bg-[color-mix(in_srgb,var(--color-content-accent)_10%,transparent)] transition-colors",children:["".concat(t.slice(0,4),"…").concat(t.slice(-4)),(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"})]}):(0,a.jsxs)("button",{type:"button",onClick:s,disabled:r,title:null!=n?n:void 0,className:"inline-flex items-center gap-2 border border-solid border-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)] bg-transparent text-[var(--color-content-accent)] text-[13px] px-4 py-2 rounded-full hover:bg-[color-mix(in_srgb,var(--color-content-accent)_10%,transparent)] transition-colors disabled:opacity-60",children:[r?"Connecting…":n?"Retry connect":"Connect",(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)] animate-pulse"})]})]})]})})}function z(e){let{children:t,delay:r}=e;return(0,a.jsx)(n.P.span,{initial:{opacity:0,y:12,filter:"blur(3px)"},animate:{opacity:1,y:0,filter:"blur(0)"},transition:{delay:r,duration:.7,ease:[.19,1,.22,1]},className:"inline-block",children:t})}function M(e){let{children:t,depth:r=20,className:n=""}=e,s=(0,p.useRef)(null);return(0,p.useEffect)(()=>{let e=e=>{if(!s.current)return;let t=window.innerWidth/2,a=window.innerHeight/2,n=(e.clientX-t)/t,i=(e.clientY-a)/a,o=-(n*r*1);s.current.style.transform="translate(".concat(o,"px, ").concat(-(i*r*1),"px)")};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[r]),(0,a.jsx)("div",{ref:s,className:"transition-transform duration-[250ms] ".concat(n),children:t})}function I(e){let{value:t,decimals:r=0}=e,n=(0,p.useRef)(null),o=(0,s.W)(n,{once:!0,margin:"-20%"}),[l,c]=(0,p.useState)(0..toFixed(r)),d=(0,p.useRef)(t),m=(0,p.useRef)(r),x=(0,p.useRef)(!1);return d.current=t,m.current=r,(0,p.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){x.current=!0,c(d.current.toFixed(m.current));return}if(!o)return;let e=(0,i.i)(0,d.current,{duration:1.4,ease:[.19,1,.22,1],onUpdate:e=>c(e.toFixed(m.current)),onComplete:()=>{x.current=!0,c(d.current.toFixed(m.current))}});return()=>e.stop()},[o]),(0,p.useEffect)(()=>{x.current&&c(t.toFixed(r))},[r,t]),(0,a.jsx)("span",{ref:n,children:l})}function O(){let{data:e,isLoading:t}=(0,k.I)({queryKey:["stats"],queryFn:async()=>{try{let e=(await P.get("/stats")).data;if(!e||!e.activeCreators&&!e.totalSubscriptions&&!e.totalRevenue)throw Error("No usable stats data");return e}catch(e){return{activeCreators:12,totalSubscriptions:248,totalRevenue:12450.5}}},refetchInterval:3e4}),r=(null==e?void 0:e.activeCreators)||0,s=(null==e?void 0:e.totalSubscriptions)||0,i=(null==e?void 0:e.totalRevenue)||0;return(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.95,duration:.7,ease:[.19,1,.22,1]},className:"mt-16 grid grid-cols-1 sm:grid-cols-3 gap-6 max-w-5xl mx-auto text-center pt-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-serif text-5xl md:text-6xl text-[var(--color-bg-primary)]",children:[t?"-":(0,a.jsx)(I,{value:r}),"+"]}),(0,a.jsx)("p",{className:"text-[13px] font-semibold tracking-widest text-[color-mix(in_srgb,var(--color-bg-primary)_85%,transparent)] mt-1.5",children:"PARTNERS"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-serif text-5xl md:text-6xl text-[var(--color-bg-primary)]",children:[t?"-":(0,a.jsx)(I,{value:s}),"+"]}),(0,a.jsx)("p",{className:"text-[13px] font-semibold tracking-widest text-[color-mix(in_srgb,var(--color-bg-primary)_85%,transparent)] mt-1.5",children:"MEMBERS"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-serif text-5xl md:text-6xl text-[var(--color-bg-primary)]",children:["$",t?"-":(0,a.jsx)(I,{value:i/1e3,decimals:1}),"k+"]}),(0,a.jsx)("p",{className:"text-[13px] font-semibold tracking-widest text-[color-mix(in_srgb,var(--color-bg-primary)_85%,transparent)] mt-1.5",children:"PROCESSED ON-CHAIN"})]})]})}function W(e){let{uid:t,faint:r=!1}=e,s=(0,o.I)();return(0,a.jsxs)("svg",{viewBox:"0 0 260 260",fill:"none",className:"w-full h-full overflow-visible",children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("radialGradient",{id:"medal-".concat(t),cx:"38%",cy:"30%",r:"75%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fbe7bf"}),(0,a.jsx)("stop",{offset:"42%",stopColor:"#fad657"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#8f6524"})]}),(0,a.jsxs)("linearGradient",{id:"ring-".concat(t),x1:"0",y1:"0",x2:"1",y2:"1",gradientUnits:"objectBoundingBox",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fef0bf",stopOpacity:"0.05"}),(0,a.jsx)("stop",{offset:"50%",stopColor:"#fad657",stopOpacity:"0.85"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#b08d3e",stopOpacity:"0.1"})]}),(0,a.jsxs)("radialGradient",{id:"core-".concat(t),cx:"50%",cy:"50%",r:"50%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fad657",stopOpacity:"0.4"}),(0,a.jsx)("stop",{offset:"70%",stopColor:"#fad657",stopOpacity:"0.06"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#fad657",stopOpacity:"0"})]}),(0,a.jsxs)("filter",{id:"glow-".concat(t),x:"-120%",y:"-120%",width:"340%",height:"340%",children:[(0,a.jsx)("feGaussianBlur",{stdDeviation:"2.4",result:"b"}),(0,a.jsxs)("feMerge",{children:[(0,a.jsx)("feMergeNode",{in:"b"}),(0,a.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,a.jsx)("path",{id:"pO-".concat(t),d:"M 20,130 a 110,42 0 1,0 220,0 a 110,42 0 1,0 -220,0"}),(0,a.jsx)("path",{id:"pM-".concat(t),d:"M 48,130 a 82,31 0 1,0 164,0 a 82,31 0 1,0 -164,0"}),(0,a.jsx)("path",{id:"pI-".concat(t),d:"M 76,130 a 54,20 0 1,0 108,0 a 54,20 0 1,0 -108,0"})]}),(0,a.jsx)("circle",{cx:"130",cy:"130",r:"70",fill:"url(#core-".concat(t,")")}),(0,a.jsxs)("g",{transform:"rotate(-22 130 130)",opacity:r?.7:1,children:[(0,a.jsx)("ellipse",{cx:"130",cy:"130",rx:"110",ry:"42",stroke:"url(#ring-".concat(t,")"),strokeWidth:"1",opacity:"0.55"}),(0,a.jsx)("ellipse",{cx:"130",cy:"130",rx:"82",ry:"31",stroke:"url(#ring-".concat(t,")"),strokeWidth:"1",opacity:"0.5"}),(0,a.jsx)("ellipse",{cx:"130",cy:"130",rx:"54",ry:"20",stroke:"#fad657",strokeWidth:"0.75",strokeDasharray:"2 5",opacity:"0.4"}),(0,a.jsx)("circle",{r:"3.6",fill:"#fce27e",filter:"url(#glow-".concat(t,")"),children:!s&&(0,a.jsx)("animateMotion",{dur:"26s",repeatCount:"indefinite",rotate:"auto",children:(0,a.jsx)("mpath",{href:"#pO-".concat(t)})})}),(0,a.jsx)("circle",{r:"2.8",fill:"#fad657",filter:"url(#glow-".concat(t,")"),children:!s&&(0,a.jsx)("animateMotion",{dur:"18s",begin:"-6s",repeatCount:"indefinite",children:(0,a.jsx)("mpath",{href:"#pM-".concat(t)})})}),(0,a.jsx)("circle",{r:"2.2",fill:"#fef0bf",filter:"url(#glow-".concat(t,")"),children:!s&&(0,a.jsx)("animateMotion",{dur:"13s",begin:"-3s",repeatCount:"indefinite",children:(0,a.jsx)("mpath",{href:"#pI-".concat(t)})})})]}),(0,a.jsxs)(n.P.g,{style:{originX:"130px",originY:"130px"},animate:s?{}:{rotate:360},transition:s?void 0:{duration:60,ease:"linear",repeat:1/0},opacity:"0.5",children:[(0,a.jsx)("circle",{cx:"130",cy:"130",r:"36",stroke:"#fad657",strokeWidth:"0.75",strokeOpacity:"0.35"}),Array.from({length:24}).map((e,t)=>(0,a.jsx)("line",{x1:"130",y1:"96",x2:"130",y2:t%6==0?90:93,stroke:"#fad657",strokeWidth:"0.75",strokeOpacity:t%6==0?.6:.28,transform:"rotate(".concat(15*t," 130 130)")},t))]}),(0,a.jsxs)("g",{filter:"url(#glow-".concat(t,")"),children:[(0,a.jsx)("circle",{cx:"130",cy:"130",r:"27",fill:"url(#medal-".concat(t,")"),stroke:"#ffffff",strokeOpacity:"0.28",strokeWidth:"1"}),(0,a.jsx)("path",{d:"M 108,120 A 27 27 0 0 1 152,120",stroke:"#ffffff",strokeOpacity:"0.35",strokeWidth:"1.5",strokeLinecap:"round"}),(0,a.jsx)("image",{href:"".concat("/landing","/stellar-symbol.png"),x:"115",y:"117.3",width:"30",height:"25.4"})]})]})}function L(e){let{lines:t="both"}=e,r=(0,o.I)();return(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0",children:(0,a.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 1440 900",preserveAspectRatio:"none","aria-hidden":"true",children:[("both"===t||"upper"===t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M -40 260 C 420 140, 760 420, 1480 300",fill:"none",stroke:"rgba(250,214,87,0.14)",strokeWidth:1,vectorEffect:"non-scaling-stroke"}),!r&&(0,a.jsx)(n.P.path,{d:"M -40 260 C 420 140, 760 420, 1480 300",fill:"none",stroke:"rgba(250,214,87,0.55)",strokeWidth:1.2,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",pathLength:1470,strokeDasharray:"70 1400",animate:{strokeDashoffset:[0,-1470]},transition:{repeat:1/0,ease:"linear",duration:9}})]}),("both"===t||"lower"===t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M -40 640 C 520 760, 900 520, 1480 660",fill:"none",stroke:"rgba(250,214,87,0.14)",strokeWidth:1,vectorEffect:"non-scaling-stroke"}),!r&&(0,a.jsx)(n.P.path,{d:"M -40 640 C 520 760, 900 520, 1480 660",fill:"none",stroke:"rgba(250,214,87,0.55)",strokeWidth:1.2,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",pathLength:1470,strokeDasharray:"70 1400",animate:{strokeDashoffset:[0,-1470]},transition:{repeat:1/0,ease:"linear",duration:13,delay:2}})]})]})})}function T(){let e=(0,p.useRef)(null),t=(0,o.I)(),{scrollYProgress:r}=(0,l.L)({target:e,offset:["start start","end start"]}),s=(0,c.G)(r,[0,.6],[0,1]);return(0,a.jsxs)("section",{ref:e,className:"relative overflow-hidden",children:[(0,a.jsx)(S,{}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0 bg-[radial-gradient(120%_100%_at_50%_110%,rgba(250,214,87,0.30),rgba(250,214,87,0.12)_45%,rgba(250,214,87,0)_80%),linear-gradient(180deg,rgba(250,214,87,0.03),rgba(250,214,87,0.06)_60%,rgba(250,214,87,0.10)_100%)]"}),!t&&(0,a.jsx)(n.P.div,{"aria-hidden":!0,style:{opacity:s},className:"pointer-events-none absolute inset-0 z-0 bg-[radial-gradient(120%_100%_at_50%_110%,rgba(250,214,87,0.45),rgba(250,214,87,0.18)_45%,rgba(250,214,87,0)_80%),linear-gradient(180deg,rgba(250,214,87,0.05),rgba(250,214,87,0.10)_60%,rgba(250,214,87,0.16)_100%)]"}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 bottom-[-22rem] -translate-x-1/2 w-[70rem] h-[70rem] rounded-full z-0 blur-[30px] bg-[radial-gradient(closest-side,rgba(250,214,87,0.20),transparent_70%)]"}),(0,a.jsx)(M,{depth:30,className:"hidden md:block absolute top-32 -left-10 lg:left-2 w-56 h-56 lg:w-72 lg:h-72 pointer-events-none",children:(0,a.jsx)(n.P.div,{initial:{opacity:0,scale:.9,filter:"blur(8px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},transition:{delay:.2,duration:1.1,ease:[.19,1,.22,1]},className:"w-full h-full",children:(0,a.jsx)(n.P.div,{animate:{y:[0,-12,0]},transition:{duration:9,ease:"easeInOut",repeat:1/0},className:"w-full h-full",children:(0,a.jsx)(W,{uid:"hero"})})})}),(0,a.jsxs)("main",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-10 pt-14 md:pt-16 pb-24",children:[(0,a.jsx)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.05,duration:.7,ease:[.19,1,.22,1]},className:"flex justify-center",children:(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)] animate-pulse"}),"Verified on-chain • Instant payouts"]})}),(0,a.jsxs)("h1",{className:"mt-8 text-center font-serif font-medium tracking-tight leading-[1.02] text-[9vw] md:text-[4rem] lg:text-[4.5rem] text-[var(--color-content-primary)]",children:[(0,a.jsxs)("span",{className:"block overflow-hidden",children:[(0,a.jsx)(z,{delay:.15,children:"One"}),(0,a.jsx)("span",{className:"ml-3",children:(0,a.jsx)(z,{delay:.25,children:"subscription"})})]}),(0,a.jsxs)("span",{className:"block overflow-hidden mt-1 md:mt-2",children:[(0,a.jsx)(z,{delay:.35,children:"for"}),(0,a.jsx)("span",{className:"ml-3",children:(0,a.jsx)(z,{delay:.45,children:(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] to-[#fad657] bg-clip-text text-transparent",children:"multiple"})})}),(0,a.jsx)("span",{className:"ml-3",children:(0,a.jsx)(z,{delay:.55,children:(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"community perks."})})})]})]}),(0,a.jsx)(n.P.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.65,duration:.7,ease:[.19,1,.22,1]},className:"mt-8 max-w-xl mx-auto text-center text-[15px] md:text-[16px] leading-relaxed text-[var(--color-content-secondary)]",children:"One subscription, split on-chain the moment it settles. Soroban routes every payment to the project owner, community manager, and platform, and unlocks perks across partner communities."}),(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.78,duration:.7,ease:[.19,1,.22,1]},className:"mt-9 flex flex-col sm:flex-row items-center justify-center gap-4",children:[(0,a.jsx)(h(),{href:"/dashboard",children:(0,a.jsxs)("button",{className:"group inline-flex items-center gap-3 bg-gradient-to-br from-[#fce27e] via-[#fad657] to-[#c9a83f] text-[var(--color-content-on-accent)] font-semibold text-[14px] tracking-wide pl-7 pr-2.5 py-2.5 rounded-full transition-all hover:shadow-[0_10px_40px_-6px_rgba(250,214,87,0.75)] hover:translate-y-[-1px] shadow-[0_8px_30px_-8px_rgba(250,214,87,0.55)]",children:["Get early access",(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-black/10 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:translate-x-1 group-hover:-translate-y-[1px]",children:"→"})]})}),(0,a.jsx)(h(),{href:"/start",children:(0,a.jsx)(n.P.button,{type:"button",className:"inline-flex items-center border border-solid border-[color-mix(in_srgb,var(--color-content-primary)_25%,transparent)] bg-transparent text-[var(--color-content-primary)] text-[14px] tracking-wide px-7 py-3.5 rounded-full hover:border-[color-mix(in_srgb,var(--color-content-accent)_60%,transparent)] hover:text-[var(--color-content-accent)] transition-colors",children:"Become a partner"})})]}),(0,a.jsx)(n.P.div,{id:"demo",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.8,duration:.7,ease:[.19,1,.22,1]},className:"mt-16 md:mt-20 relative max-w-4xl mx-auto scroll-mt-24",children:(0,a.jsx)(M,{depth:12,className:"p-[1.5px] rounded-[5.5px] bg-gradient-to-br from-[rgba(250,214,87,0.5)] to-[rgba(250,214,87,0.05)] via-[rgba(250,214,87,0.35)]",children:(0,a.jsxs)("div",{className:"relative rounded-[4px] overflow-hidden bg-[#111110] aspect-video",children:[(0,a.jsx)("video",{src:"".concat("/landing","/demo.mp4"),poster:"".concat("/landing","/demo-poster.jpg"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 h-full w-full object-cover"}),(0,a.jsx)("div",{className:"absolute top-4 left-4 text-[10px] tracking-widest text-[color-mix(in_srgb,var(--color-content-primary)_50%,transparent)] border border-[color-mix(in_srgb,var(--color-content-primary)_15%,transparent)] rounded px-2 py-1 bg-black/30",children:"HOW IT WORKS"})]})})}),(0,a.jsx)(O,{})]})]})}let R=[{icon:f.A,title:"Connect your wallet",body:"Connect any Stellar-based wallet. You can use a Freighter wallet, no email, no password, nothing to remember."},{icon:g.A,title:"Pay for a package",body:"Pay for your preferred package using USDC on the Stellar testnet. One payment, no per-partner checkout."},{icon:v.A,title:"Unlock every perk",body:"Get premium access, discounted products, learning resources, and digital assets across multiple community partners."}],A=[.19,1,.22,1];function B(e){let{step:t,index:r,total:s,progress:i}=e,o=t.icon,l=r/s,d=(r+.85)/s,m=(0,c.G)(i,[l,d],[0,1],{clamp:!0}),x=(0,c.G)(m,[0,1],[1,1.08]),p=(0,c.G)(m,[0,1],["#fad657","#201607"]),u=(0,c.G)(m,[0,1],[.5,1]),h=(0,c.G)(i,[l,d],[12,-12]);return(0,a.jsx)(n.P.div,{initial:{opacity:0,y:40,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*r,duration:.8,ease:A},className:"relative",children:(0,a.jsxs)(n.P.div,{className:"group relative card-standard px-6 py-6 md:px-7 md:py-7 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)] overflow-hidden",children:[(0,a.jsx)(n.P.div,{"aria-hidden":"true",className:"card-selected-overlay",style:{opacity:m}}),(0,a.jsx)(n.P.span,{style:{y:h},className:"pointer-events-none absolute top-3 right-4 font-serif text-[5.5rem] leading-none text-[var(--color-content-primary)] select-none",children:r+1}),(0,a.jsxs)("div",{className:"relative flex items-start gap-4",children:[(0,a.jsxs)(n.P.span,{style:{scale:x},className:"relative shrink-0 inline-flex items-center justify-center w-11 h-11 rounded-[var(--radius-md)] bg-[var(--color-bg-accent-tint)] ring-1 ring-[color-mix(in_srgb,var(--color-content-accent)_15%,transparent)] overflow-hidden transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:scale-105",children:[(0,a.jsx)(n.P.span,{style:{opacity:m},className:"absolute inset-0 bg-[var(--color-content-accent)]"}),(0,a.jsx)(n.P.span,{style:{color:p},className:"relative",children:(0,a.jsx)(o,{size:20,strokeWidth:1.4})})]}),(0,a.jsxs)("div",{className:"pt-0.5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)(n.P.span,{style:{opacity:u},className:"text-[11px] tracking-[0.2em] text-[var(--color-content-accent)]",children:["0",r+1]}),(0,a.jsx)("h3",{className:"font-serif text-[1.35rem] leading-tight text-[var(--color-content-primary)]",children:t.title})]}),(0,a.jsx)("p",{className:"mt-2.5 text-[14px] leading-relaxed text-[var(--color-content-secondary)] max-w-md",children:t.body})]})]})]})})}function H(){let e=(0,p.useRef)(null),t=(0,d.d)(0);(0,p.useEffect)(()=>{let r=()=>{let r=e.current;if(!r)return;let a=r.getBoundingClientRect(),n=window.innerHeight,s=(.75*n-a.top)/(.1*n+a.height);t.set(Math.min(1,Math.max(0,s)))};return r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[t]);let r=(0,m.z)(t,{stiffness:90,damping:30,restDelta:.001});return(0,a.jsx)("section",{id:"how",className:"relative overflow-hidden py-28 md:py-40 scroll-mt-8",children:(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10 grid grid-cols-1 lg:grid-cols-[0.85fr_1.15fr] gap-14 lg:gap-20",children:[(0,a.jsx)("div",{className:"lg:sticky lg:top-24 self-start",children:(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"How it works"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.6rem] md:text-[3.4rem] text-[var(--color-content-primary)]",children:["One subscription,",(0,a.jsx)("br",{}),"every"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"partner perk."})]}),(0,a.jsx)("p",{className:"mt-6 max-w-sm text-[15px] leading-relaxed text-[var(--color-content-secondary)]",children:"Komunify brings those pieces into one place: single subscription, multiple partner benefits, discounted products, and automatic revenue distribution powered by Stellar and Soroban smart contracts."}),(0,a.jsx)(h(),{href:"/dashboard",className:"inline-block mt-9",children:(0,a.jsxs)("button",{className:"group inline-flex items-center gap-3 bg-gradient-to-br from-[#fce27e] via-[#fad657] to-[#c9a83f] text-[var(--color-content-on-accent)] font-semibold text-[14px] tracking-wide pl-6 pr-2 py-2 rounded-full transition-all duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] hover:shadow-[0_10px_40px_-6px_rgba(250,214,87,0.75)] active:scale-[0.98] shadow-[0_8px_30px_-8px_rgba(250,214,87,0.55)]",children:["Start now",(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-black/10 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:translate-x-1 group-hover:-translate-y-[1px]",children:"→"})]})})]})}),(0,a.jsxs)("div",{ref:e,className:"relative",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute left-[2.85rem] top-6 bottom-6 w-px bg-[var(--color-border-medium)] hidden md:block"}),(0,a.jsx)(n.P.div,{style:{scaleY:r,transformOrigin:"top"},className:"pointer-events-none absolute left-[2.85rem] top-6 bottom-6 w-px bg-gradient-to-b from-[var(--color-content-accent)] to-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)] hidden md:block"}),(0,a.jsx)("div",{className:"flex flex-col gap-6",children:R.map((e,t)=>(0,a.jsx)(B,{step:e,index:t,total:R.length,progress:r},e.title))})]})]})})}function G(){let e=(0,p.useRef)(null);return(0,a.jsxs)("section",{id:"split",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute top-1/2 left-1/2 w-[36rem] h-[24rem] -translate-x-1/2 -translate-y-1/2 rounded-full blur-[120px] bg-[radial-gradient(closest-side,rgba(250,214,87,0.08),transparent_70%)]"}),(0,a.jsxs)("div",{className:"relative max-w-6xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"relative z-10 max-w-3xl mx-auto text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"Automatic split"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["One payment,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"three payouts."})]}),(0,a.jsx)("p",{className:"mt-6 max-w-2xl mx-auto text-[15px] leading-relaxed text-[var(--color-content-secondary)]",children:"Every subscription is split on-chain the moment it settles. No invoices, no reconciliation: the Soroban contract routes each share instantly. Each package pool defines its own distribution scheme through its DAO; the live demo contract runs 70/20/10."})]}),(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.12,duration:.8,ease:A},className:"relative mt-14 md:mt-16 grid grid-cols-1 lg:grid-cols-[1fr_7rem_1fr] gap-8 lg:gap-0 items-stretch",children:[(0,a.jsxs)("div",{ref:e,onPointerMove:e=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=e.currentTarget.getBoundingClientRect(),r=(e.clientX-t.left)/t.width-.5,a=(e.clientY-t.top)/t.height-.5;e.currentTarget.style.setProperty("--tilt-x","".concat(-(12*a),"deg")),e.currentTarget.style.setProperty("--tilt-y","".concat(12*r,"deg")),e.currentTarget.style.setProperty("--holo-x","".concat((r+.5)*100,"%")),e.currentTarget.style.setProperty("--holo-y","".concat((a+.5)*100,"%")),e.currentTarget.style.setProperty("--shadow-x","".concat(-(10*r),"px")),e.currentTarget.style.setProperty("--shadow-y","".concat(-10*a+2,"px")),e.currentTarget.style.setProperty("--holo-o","1")},onPointerLeave:e=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||(e.currentTarget.style.setProperty("--tilt-x","0deg"),e.currentTarget.style.setProperty("--tilt-y","0deg"),e.currentTarget.style.setProperty("--shadow-x","0px"),e.currentTarget.style.setProperty("--shadow-y","2px"),e.currentTarget.style.setProperty("--holo-o","0"))},className:"group relative z-10 h-full min-h-72 card-standard px-7 py-8 md:px-9 md:py-10 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)] flex flex-col justify-between overflow-clip",style:{transform:"perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))",transformStyle:"preserve-3d",willChange:"transform",transition:"transform 0.15s ease-out, box-shadow 0.15s ease-out",boxShadow:"var(--shadow-x, 0px) var(--shadow-y, 2px) 12px 0 rgba(0,0,0,0.35)"},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] tracking-[0.22em] text-[var(--color-content-accent)]",children:"YOUR SUBSCRIPTION"}),(0,a.jsxs)("p",{className:"mt-7 font-serif text-[3.2rem] md:text-[4rem] leading-none tracking-tight text-[var(--color-content-primary)]",children:["$10 ",(0,a.jsx)("span",{className:"text-[var(--color-content-accent)]",children:"USDC"})]}),(0,a.jsx)("p",{className:"mt-3 text-[14px] text-[var(--color-content-secondary)]",children:"per month"})]}),(0,a.jsx)("span",{className:"mt-10 self-start inline-flex rounded-full border border-[color-mix(in_srgb,var(--color-content-accent)_20%,transparent)] bg-[var(--color-bg-accent-tint)] px-3 py-1.5 font-mono text-[11px] tracking-wide text-[color-mix(in_srgb,var(--color-content-accent)_80%,transparent)]",children:"29d91130…f96a78"}),(0,a.jsx)("div",{"aria-hidden":!0,className:"card-selected-overlay -z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none"}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 rounded-[inherit]",style:{zIndex:4,mixBlendMode:"overlay",opacity:"var(--holo-o, 0)",transition:"opacity 0.3s",background:"radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%), rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.3) 10%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 60%, transparent 80%)"}})]}),(0,a.jsx)("div",{className:"hidden lg:block relative",children:(0,a.jsxs)("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 300",preserveAspectRatio:"none","aria-hidden":"true",children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"splitGrad",gradientUnits:"userSpaceOnUse",x1:"0",y1:"150",x2:"100",y2:"150",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"rgba(250,214,87,0.85)"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"rgba(250,214,87,0.25)"})]})}),["M -2 150 C 45 150, 45 50, 102 50","M -2 150 L 102 150","M -2 150 C 45 150, 45 250, 102 250"].map((e,t)=>(0,a.jsx)(n.P.path,{d:e,fill:"none",stroke:"url(#splitGrad)",strokeWidth:1.5,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",initial:{pathLength:0,opacity:0},whileInView:{pathLength:1,opacity:1},viewport:{once:!0,margin:"-80px"},transition:{delay:.2+.08*t,duration:.6,ease:A}},e)),(0,a.jsx)("circle",{cx:2,cy:150,r:3,fill:"#fad657"}),(0,a.jsx)("circle",{cx:98,cy:50,r:3,fill:"#fad657"}),(0,a.jsx)("circle",{cx:98,cy:150,r:3,fill:"#fad657"}),(0,a.jsx)("circle",{cx:98,cy:250,r:3,fill:"#fad657"})]})}),(0,a.jsx)("div",{className:"relative flex flex-col justify-between",children:[{name:"Project owner",percentage:"70%",amount:"$7.00"},{name:"Community manager",percentage:"20%",amount:"$2.00"},{name:"Komunify platform",percentage:"10%",amount:"$1.00"}].map((e,t)=>(0,a.jsxs)(n.P.div,{initial:{opacity:0,x:24},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-60px"},transition:{delay:.18+.08*t,duration:.7,ease:A},className:"relative card-standard px-5 py-5 flex items-center justify-between gap-5 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-serif text-[1.05rem] text-[var(--color-content-primary)]",children:e.name}),(0,a.jsx)("p",{className:"mt-1 text-[13px] text-[var(--color-content-secondary)]",children:e.amount})]}),(0,a.jsx)("p",{className:"font-serif text-[2rem] leading-none text-[var(--color-content-accent)]",children:e.percentage})]},e.name))})]})]})]})}let D=[{initial:"D",name:"Dev Web3 Bandung",logo:"/communities/dev-web3-bandung.png",description:"Builder workshops, Soroban study group, and bootcamp recordings.",badge:"+2.4K members"},{initial:"S",name:"Sawargy",logo:"/communities/sawargy.png",description:"Design and freelance collective: client playbooks, portfolio reviews, and working sessions.",badge:"Pilot partner"},{initial:"S",name:"Serenity",logo:"/communities/serenity.webp",description:"Community benefits and member events, onboarding with the first Bandung pilots.",badge:"Pilot partner"},{initial:"M",name:"Manexus",logo:"/communities/manexus.png",description:"Builder community joining the pilot cohort with member resources and events.",badge:"Pilot partner"}],V=[{icon:b.A,title:"Premium access",body:"Members-only channels, office hours, and early event access across every partner."},{icon:y.A,title:"Member discounts",body:"Subscriber pricing on partner products, services, and tokenized listings."},{icon:j.A,title:"Learning resources",body:"Premium educational content: bootcamp recordings, playbooks, and courses."},{icon:w.A,title:"Digital assets",body:"Voucher-like tokenized items and digital resources, verifiable on-chain."}];function F(){return(0,a.jsxs)("section",{id:"communities",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)(L,{lines:"both"}),(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"Communities + perks"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["Real communities,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"real perks."})]})]}),(0,a.jsx)("p",{className:"mt-14 md:mt-16 text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-secondary)]",children:"Our communities"}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-6",children:D.map((e,t)=>(0,a.jsx)(n.P.article,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},className:"group card-standard card-hoverable h-full px-6 py-6 md:px-7 md:py-7 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)] flex flex-col",children:(0,a.jsxs)("div",{className:"relative z-[1] flex flex-1 flex-col",children:[(0,a.jsx)("div",{className:"w-14 h-14 shrink-0 rounded-full overflow-hidden ring-1 ring-[color-mix(in_srgb,var(--color-content-accent)_25%,transparent)]",children:(0,a.jsx)("img",{src:"".concat("/landing").concat(e.logo),alt:e.name,className:"h-full w-full object-cover"})}),(0,a.jsx)("h3",{className:"mt-6 font-serif text-[1.35rem] leading-tight text-[var(--color-content-primary)]",children:e.name}),(0,a.jsx)("p",{className:"mt-3 text-[14px] leading-relaxed text-[var(--color-content-secondary)]",children:e.description})]})},e.name))}),(0,a.jsx)("p",{className:"mt-14 text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-secondary)]",children:"What you unlock"}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-6",children:V.map((e,t)=>{let r=e.icon;return(0,a.jsx)(n.P.article,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},className:"group card-standard card-hoverable h-full px-6 py-6 md:px-7 md:py-7 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)]",children:(0,a.jsxs)("div",{className:"relative z-[1]",children:[(0,a.jsx)("div",{className:"w-11 h-11 rounded-[var(--radius-md)] bg-[var(--color-bg-accent-tint)] ring-1 ring-[color-mix(in_srgb,var(--color-content-accent)_15%,transparent)] flex items-center justify-center",children:(0,a.jsx)(r,{className:"w-5 h-5 text-[var(--color-content-accent)]"})}),(0,a.jsx)("h3",{className:"mt-6 font-serif text-[1.1rem] leading-tight text-[var(--color-content-primary)]",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-[13px] leading-relaxed text-[var(--color-content-secondary)]",children:e.body})]})},e.title)})})]})]})}function K(){let e=(0,p.useRef)(null),t=(0,d.d)(0);(0,p.useEffect)(()=>{let r=()=>{let r=e.current;if(!r)return;let a=r.getBoundingClientRect(),n=window.innerHeight,s=(.85*n-a.top)/(.55*n);t.set(Math.min(1,Math.max(0,s)))};return r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[t]);let r=(0,m.z)(t,{stiffness:90,damping:30,restDelta:.001});return(0,a.jsx)("section",{id:"roadmap",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"WHERE THIS GOES"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["Testnet today,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"rails tomorrow."})]})]}),(0,a.jsxs)("div",{ref:e,className:"relative mt-12 md:mt-14 grid grid-cols-1 md:grid-cols-3 gap-10 md:gap-12",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"hidden md:block absolute top-0 inset-x-0 h-px bg-[var(--color-border-medium)]"}),(0,a.jsx)(n.P.div,{"aria-hidden":"true",style:{scaleX:r},className:"hidden md:block absolute top-0 inset-x-0 h-px origin-left bg-gradient-to-r from-[var(--color-content-accent)] to-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)]"}),[{marker:"Q3 2026",descriptor:"LIVE ON TESTNET",title:"The full loop works",body:"Wallet connect, subscription payment, automatic 70/20/10 split, and a live on-chain dashboard. Exit metric: loop proven. Every dashboard number is an on-chain read.",nodeOpacity:"opacity-100"},{marker:"Q4 2026",descriptor:"PILOT ONE, WITH NUMBERS",title:"First partner communities",body:"October: Dev Web3 Bandung (2.4K members) goes live. Target funnel: 2,400 members, 250 wallets, 100 paid subscriptions. Pass mark: 100 active on-chain subscriptions, then Sawargy, Manexus, and Serenity follow.",nodeOpacity:"opacity-[0.55]"},{marker:"2027",descriptor:"THE RAILS",title:"Every chapter runs on Komunify",body:"Target: 10 chapters and 1,000 active subscriptions. Self-serve partner onboarding, multi-tier subscriptions, configurable splits, reporting out of the box.",nodeOpacity:"opacity-30"}].map((e,t)=>(0,a.jsxs)(n.P.article,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},className:"relative border-t border-[var(--color-border-medium)] pt-6 md:border-t-0",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute -top-[5px] left-0 w-[9px] h-[9px] rounded-full bg-[var(--color-content-accent)] ".concat(e.nodeOpacity)}),(0,a.jsx)("p",{className:"text-[26px] md:text-[30px] font-semibold tracking-[0.01em] text-[var(--color-content-accent)] leading-none",children:e.marker}),(0,a.jsx)("p",{className:"mt-2.5 text-[11px] tracking-[2px] uppercase text-[var(--color-content-secondary)]",children:e.descriptor}),(0,a.jsx)("h3",{className:"mt-3 font-serif text-[1.35rem] font-semibold leading-tight text-[var(--color-content-primary)]",children:e.title}),(0,a.jsx)("p",{className:"mt-3 max-w-[44ch] text-[13px] leading-relaxed text-[var(--color-content-secondary)]",children:e.body})]},e.marker))]})]})})}function q(){return(0,a.jsxs)("section",{id:"team",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)(L,{lines:"both"}),(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10",children:[(0,a.jsx)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"relative z-10 md:flex md:items-end md:justify-between",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"THE TEAM"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["Four builders,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"four communities."})]}),(0,a.jsx)("p",{className:"mt-4 text-[15px] leading-relaxed text-[var(--color-content-secondary)]",children:"We each run a community. We're building the tool we need."})]})}),(0,a.jsx)("div",{className:"relative z-10 mt-12 md:mt-14",children:(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-5 md:gap-8",children:[{initial:"I",name:"Imam Abullaisi",role:"Product + Design",community:"Sawargy",photo:"https://github.com/abullaisi.png",linkedin:"https://www.linkedin.com/in/abullaisi/",x:"https://x.com/abullaisi",niche:"Freelance & design community",memberCount:"950+ members"},{initial:"J",name:"Jason Stanley",role:"Engineering",community:"Dev Web3 Bandung",photo:"/team/jason.jpg?v=2",linkedin:"https://www.linkedin.com/in/jason-stanley-yoman/",x:"https://x.com/jason_yomann",niche:"Web3 builders & hackathons",memberCount:null},{initial:"F",name:"Faris Abdurrahman",role:"Product Manager",community:"Manexus",photo:"/team/faris.jpg?v=2",linkedin:"https://www.linkedin.com/in/faris-abdurrahman/",x:null,niche:"Web3 + AI community hub",memberCount:null},{initial:"N",name:"Qatrun Nada",role:"Business + Partnerships",community:"Serenity",photo:"/team/nada.jpg?v=2",linkedin:"https://www.linkedin.com/in/nadadv/",x:null,niche:null,memberCount:null}].map((e,t)=>(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},children:[(0,a.jsxs)("div",{className:"relative aspect-[4/5] w-full rounded-[4px] overflow-hidden border border-[var(--color-border-medium)]",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] flex items-center justify-center text-5xl font-extrabold text-[var(--color-content-accent)]",children:e.initial}),e.photo&&(0,a.jsx)("img",{src:e.photo.startsWith("http")?e.photo:"".concat("/landing").concat(e.photo),alt:e.name,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy",onError:e=>{e.currentTarget.style.display="none"}})]}),(0,a.jsxs)("div",{className:"mt-4 space-y-1.5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("p",{className:"text-[15px] font-semibold text-[var(--color-content-primary)]",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.linkedin?(0,a.jsx)("a",{href:e.linkedin,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(e.name," on LinkedIn"),className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 1 1 0-4.124 2.062 2.062 0 0 1 0 4.124zM7.119 20.452H3.555V9h3.564v11.452z"})})}):null,e.x?(0,a.jsx)("a",{href:e.x,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(e.name," on X"),className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}):null]})]}),(0,a.jsx)("p",{className:"text-[12px] text-[var(--color-content-secondary)]",children:e.role}),(0,a.jsx)("p",{className:"text-[11px] tracking-[2px] text-[var(--color-content-accent)]",children:"RUNS ".concat(e.community.toUpperCase())}),e.niche?(0,a.jsx)("p",{className:"text-[12px] text-[var(--color-content-secondary)]",children:e.niche}):null,e.memberCount?(0,a.jsx)("p",{className:"text-[12px] text-[var(--color-content-secondary)]",children:e.memberCount}):null]})]},e.name))})})]})]})}let U=[{question:"What is Komunify?",answer:"Komunify is a Web3 platform that gives members access to benefits from multiple partner communities through a single subscription. It also helps community managers and project owners monetize resources, automate revenue sharing, and track growth on-chain."},{question:"What can be sold on Komunify?",answer:"The platform is designed for tokenized digital products, learning resources, and selected tokenized RWAs made available by partner communities. Subscriber-only pricing and community-specific offers are part of the intended value proposition."},{question:"How are payments and revenue shares handled?",answer:"Every package is a Soroban pool with its own distribution scheme. When a member subscribes, the contract splits revenue automatically between the community partners in the pool and the platform; the live demo contract runs 70/20/10. Pricing, splits, and partner changes pass a DAO vote, so every share stays transparent and verifiable on-chain, with no manual reconciliation."},{question:"Why is Komunify better?",answer:"A single subscription reduces cost, friction, and membership overload for users who want benefits across several communities. It also makes discovery easier by bundling value into one clearer offer."}];function X(e){let{item:t,index:r,isOpen:s,onToggle:i}=e;return(0,a.jsx)(n.P.div,{initial:{opacity:0,y:24,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.06*r,duration:.8,ease:A},className:"group",children:(0,a.jsxs)("div",{className:"relative rounded-[4px] transition-colors duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] shadow-[inset_0_1px_1px_rgba(255,255,255,0.04),0_10px_28px_rgba(0,0,0,0.30)] overflow-hidden ".concat(s?"card-selected":"card-standard card-hoverable"),children:[(0,a.jsxs)("button",{type:"button",onClick:i,"aria-expanded":s,className:"relative z-[1] w-full flex items-center justify-between gap-6 px-6 py-5 md:px-7 md:py-6 text-left bg-transparent border-none rounded-none",children:[(0,a.jsx)("span",{className:"font-serif text-[1.05rem] md:text-[1.2rem] leading-snug text-[var(--color-content-primary)]",children:t.question}),(0,a.jsx)("span",{className:"relative shrink-0 inline-flex items-center justify-center w-9 h-9 rounded-full ring-1 transition-colors duration-500 ".concat(s?"bg-[var(--color-content-accent)] ring-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)]":"bg-[var(--color-bg-accent-tint)] ring-[color-mix(in_srgb,var(--color-content-accent)_15%,transparent)]"),children:(0,a.jsx)(n.P.span,{animate:{rotate:180*!!s},transition:{duration:.4,ease:A},className:s?"text-[var(--color-content-on-accent)]":"text-[var(--color-content-accent)]",children:(0,a.jsx)(N.A,{size:16,strokeWidth:1.5})})})]}),(0,a.jsx)(x.N,{initial:!1,children:s&&(0,a.jsx)(n.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4,ease:A},className:"relative z-[1] overflow-hidden",children:(0,a.jsx)("p",{className:"px-6 md:px-7 pb-6 max-w-2xl text-[14px] leading-relaxed text-[var(--color-content-secondary)]",children:t.answer})})})]})})}function Y(){let[e,t]=(0,p.useState)(0),r=(0,p.useRef)(null),s=(0,o.I)(),i=(0,d.d)(0);(0,p.useEffect)(()=>{let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerHeight,n=(a-t.top)/(t.height+.2*a);i.set(Math.min(1,Math.max(0,n)))};return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[i]);let l=(0,m.z)(i,{stiffness:80,damping:26}),x=(0,c.G)(l,[0,1],[.15,1]);return(0,a.jsxs)("section",{ref:r,id:"faq",className:"relative py-24 md:py-40 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)(M,{depth:50,className:"hidden lg:block absolute bottom-4 right-[3%] w-64 h-64 pointer-events-none",children:(0,a.jsx)(n.P.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.5,duration:1.1,ease:[.19,1,.22,1]},className:"w-full h-full",children:(0,a.jsx)(n.P.div,{animate:{y:[0,10,0]},transition:{duration:11,ease:"easeInOut",repeat:1/0},className:"w-full h-full",children:(0,a.jsx)(W,{uid:"echo"})})})}),(0,a.jsx)("div",{className:"pointer-events-none absolute right-0 bottom-0 translate-x-1/2 translate-y-1/2 w-[110rem] h-[110rem] rounded-full blur-[60px] bg-[radial-gradient(closest-side,rgba(250,214,87,0.15),transparent_70%)]"}),!s&&(0,a.jsx)(n.P.div,{"aria-hidden":!0,style:{opacity:x},className:"pointer-events-none absolute inset-0 bg-[radial-gradient(120%_110%_at_85%_108%,rgba(250,214,87,0.30),rgba(250,214,87,0.12)_45%,rgba(250,214,87,0)_80%)]"}),(0,a.jsxs)("div",{className:"relative max-w-3xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"FAQ"]}),(0,a.jsx)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.2rem] md:text-[2.8rem] text-[var(--color-content-primary)]",children:"Questions, answered."})]}),(0,a.jsx)("div",{className:"mt-12 flex flex-col gap-4",children:U.map((r,n)=>(0,a.jsx)(X,{item:r,index:n,isOpen:e===n,onToggle:()=>t(e===n?null:n)},r.question))})]})]})}function J(){return(0,a.jsx)("section",{className:"border-t border-[var(--color-border-medium)] bg-[var(--color-bg-elevated)] py-16 md:py-20 px-6 md:px-10",children:(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.8,ease:A},className:"max-w-6xl mx-auto flex flex-col md:flex-row md:items-center gap-9 md:gap-12",children:[(0,a.jsxs)("div",{className:"flex items-center gap-6 md:gap-9 min-w-0",children:[(0,a.jsx)("img",{src:"".concat("/landing","/logo-mark.png"),alt:"Komunify",className:"w-16 h-16 object-contain shrink-0"}),(0,a.jsx)("div",{className:"w-px h-16 bg-[var(--color-border-medium)] shrink-0"}),(0,a.jsxs)("p",{className:"font-serif font-medium tracking-tight leading-[1.08] text-[1.85rem] sm:text-[2.3rem] md:text-[2.7rem] text-[var(--color-content-primary)]",children:[(0,a.jsx)("span",{className:"block",children:"Single subscription."}),(0,a.jsx)("span",{className:"block text-[var(--color-content-accent)]",children:"Multiple benefits."})]})]}),(0,a.jsx)(h(),{href:"/dashboard",className:"md:ml-auto shrink-0 self-start md:self-auto",children:(0,a.jsxs)("button",{className:"group inline-flex items-center gap-3 bg-gradient-to-br from-[#fce27e] via-[#fad657] to-[#c9a83f] text-[var(--color-content-on-accent)] font-semibold text-[14px] tracking-wide pl-7 pr-2.5 py-2.5 rounded-full transition-all hover:shadow-[0_10px_40px_-6px_rgba(250,214,87,0.75)] hover:translate-y-[-1px] shadow-[0_8px_30px_-8px_rgba(250,214,87,0.55)]",children:["Get early access",(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-black/10 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:translate-x-1 group-hover:-translate-y-[1px]",children:"→"})]})})]})})}function Q(){return(0,a.jsx)("footer",{className:"border-t border-[var(--color-border-medium)] py-12 px-6 sm:px-12 bg-[var(--color-bg-elevated)]",children:(0,a.jsx)("div",{className:"max-w-6xl mx-auto flex flex-col items-center gap-6",children:(0,a.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-center justify-between gap-6",children:[(0,a.jsxs)("div",{className:"text-[var(--color-content-secondary)] text-sm text-center sm:text-left",children:["\xa9 2026 Komunify. Built on"," ",(0,a.jsx)("a",{href:"https://stellar.org",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--color-content-accent)] hover:underline",children:"Stellar"})]}),(0,a.jsxs)("div",{className:"flex gap-6 text-sm text-[var(--color-content-secondary)]",children:[(0,a.jsx)("a",{href:"https://github.com/yoms07/stellar-hackathon",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"GitHub"}),(0,a.jsx)("a",{href:"#",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Documentation"}),(0,a.jsx)("a",{href:"/dashboard",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"App"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("a",{href:"https://x.com/komunifyapp",target:"_blank",rel:"noopener noreferrer","aria-label":"Komunify on X",className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),(0,a.jsx)("a",{href:"https://instagram.com/komunify.app",target:"_blank",rel:"noopener noreferrer","aria-label":"Komunify on Instagram",className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm10.5 1.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"})})}),(0,a.jsx)("a",{href:"https://t.me/komunify",target:"_blank",rel:"noopener noreferrer","aria-label":"Komunify on Telegram",className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M21.944 2.506a1.5 1.5 0 0 0-1.533-.13L2.9 10.254a1.5 1.5 0 0 0 .122 2.786l4.535 1.518 1.774 5.408a1.5 1.5 0 0 0 2.607.47l2.574-3.078 4.476 3.268a1.5 1.5 0 0 0 2.36-.92l1.137-15.78a1.5 1.5 0 0 0-.541-1.42zM9.051 13.217l8.683-6.018-6.939 7.383-.682 2.932-1.062-4.297zm10.331 5.121-5.128-3.745-2.08 2.488.334-1.435 7.82-8.32-.946 11.012z"})})})]})]})})})}function $(){return(0,a.jsxs)("div",{className:"min-h-screen bg-[var(--color-bg-primary)]",children:[(0,a.jsx)(T,{}),(0,a.jsx)(H,{}),(0,a.jsx)(G,{}),(0,a.jsx)(F,{}),(0,a.jsx)(K,{}),(0,a.jsx)(q,{}),(0,a.jsx)(Y,{}),(0,a.jsx)(J,{}),(0,a.jsx)(Q,{})]})}},3744:(e,t,r)=>{Promise.resolve().then(r.bind(r,981))},8359:(e,t,r)=>{"use strict";r.d(t,{WalletProvider:()=>o,v:()=>l});var a=r(4568),n=r(5620),s=r(7620);let i=(0,s.createContext)(null);function o(e){let{children:t}=e,[r,o]=(0,s.useState)(!1),[l,c]=(0,s.useState)(null),[d,m]=(0,s.useState)(null),[x,p]=(0,s.useState)(!1),[u,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=!0;return(async()=>{let{isConnected:t}=await (0,n.isConnected)();if(!e||(o(t),!t))return;let r=await (0,n.getAddress)();if(e&&!r.error&&r.address){c(r.address);let t=await (0,n.getNetwork)();e&&!t.error&&m(t.network)}})(),()=>{e=!1}},[]),(0,s.useEffect)(()=>{let e=new n.WatchWalletChanges(2e3);return e.watch(e=>{c(t=>t?e.address||null:t),e.network&&m(e.network)}),()=>e.stop()},[]);let v=(0,s.useCallback)(async()=>{p(!0),g(null);try{let{isConnected:t}=await (0,n.isConnected)();if(o(t),!t)throw Error("Freighter is not installed. Get it at https://www.freighter.app");let r=await (0,n.requestAccess)();if(r.error||!r.address){var e;throw Error((null==(e=r.error)?void 0:e.message)||"Access to Freighter was denied")}c(r.address);let a=await (0,n.getNetwork)();a.error||m(a.network)}catch(e){g(e instanceof Error?e.message:"Failed to connect wallet")}finally{p(!1)}},[]),b=(0,s.useCallback)(()=>{c(null)},[]),y=(0,s.useCallback)(async()=>{h(!0);try{let e=await (0,n.getAddress)();!e.error&&e.address&&c(e.address);let t=await (0,n.getNetwork)();t.error||m(t.network)}finally{h(!1)}},[]),j=(0,s.useMemo)(()=>({isInstalled:r,isConnected:!!l,address:l,network:d,connecting:x,refreshing:u,error:f,connect:v,disconnect:b,refresh:y}),[r,l,d,x,u,f,v,b,y]);return(0,a.jsx)(i.Provider,{value:j,children:t})}function l(){let e=(0,s.useContext)(i);if(!e)throw Error("useWallet must be used within a WalletProvider");return e}}},e=>{e.O(0,[221,928,587,18,358],()=>e(e.s=3744)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/page-b01ba1fc1c0d27f0.js b/prototype/landing/_next/static/chunks/app/page-b01ba1fc1c0d27f0.js deleted file mode 100644 index 88dfa1c..0000000 --- a/prototype/landing/_next/static/chunks/app/page-b01ba1fc1c0d27f0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{981:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>$});var a=r(4568),n=r(6780),s=r(4553),i=r(2565),o=r(7186),l=r(9937),c=r(7124),d=r(8425),m=r(1776),x=r(9109),p=r(7620),u=r(9664),h=r.n(u),f=r(2455),g=r(7292),v=r(9354),b=r(3857),y=r(3641),j=r(9038),w=r(3140),N=r(2116),k=r(2995);let _=r(7011).env.NEXT_PUBLIC_API_URL||"http://localhost:3001";class P{static async request(e,t){let r="".concat(_).concat(e);try{let e=await fetch(r,{...t,credentials:"include",headers:{"Content-Type":"application/json",...null==t?void 0:t.headers}}),a=await e.json();if(!e.ok)return{success:!1,error:a.error||"Request failed"};return a}catch(e){return{success:!1,error:e instanceof Error?e.message:"Network error"}}}static async get(e){return this.request(e,{method:"GET"})}static async post(e,t){return this.request(e,{method:"POST",body:JSON.stringify(t)})}static async put(e,t){return this.request(e,{method:"PUT",body:JSON.stringify(t)})}static async patch(e,t){return this.request(e,{method:"PATCH",body:JSON.stringify(t)})}static async delete(e){return this.request(e,{method:"DELETE"})}}var C=r(8359);function E(){return(0,a.jsx)("img",{src:"".concat("/landing","/logo-mark.png"),alt:"Komunify",className:"h-8 w-auto shrink-0"})}function S(){let{isConnected:e,address:t,connecting:r,error:n,connect:s,disconnect:i}=(0,C.v)();return(0,a.jsx)("header",{className:"relative z-20 max-w-7xl mx-auto px-6 md:px-10 pt-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between nav-shell backdrop-blur-md px-5 md:px-6 py-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"text-[var(--color-content-accent)]",children:(0,a.jsx)(E,{})}),(0,a.jsx)("span",{className:"font-serif text-lg tracking-[0.15em] text-[var(--color-content-primary)]",children:"KOMUNIFY"})]}),(0,a.jsxs)("nav",{className:"hidden md:flex items-center gap-10 text-[13px] tracking-wide text-[var(--color-content-secondary)]",children:[(0,a.jsx)("a",{href:"#how",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Packages"}),(0,a.jsx)("a",{href:"#communities",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Communities"}),(0,a.jsx)("a",{href:"https://github.com/yoms07/stellar-hackathon",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Github"})]}),(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[(0,a.jsx)("a",{href:"https://www.freighter.app/",target:"_blank",rel:"noopener noreferrer",className:"text-[13px] tracking-wide text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:"Get wallet"}),e&&t?(0,a.jsxs)("button",{type:"button",onClick:i,title:"Disconnect",className:"inline-flex items-center gap-2 border border-solid border-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)] bg-transparent text-[var(--color-content-accent)] text-[13px] font-mono px-4 py-2 rounded-full hover:bg-[color-mix(in_srgb,var(--color-content-accent)_10%,transparent)] transition-colors",children:["".concat(t.slice(0,4),"…").concat(t.slice(-4)),(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"})]}):(0,a.jsxs)("button",{type:"button",onClick:s,disabled:r,title:null!=n?n:void 0,className:"inline-flex items-center gap-2 border border-solid border-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)] bg-transparent text-[var(--color-content-accent)] text-[13px] px-4 py-2 rounded-full hover:bg-[color-mix(in_srgb,var(--color-content-accent)_10%,transparent)] transition-colors disabled:opacity-60",children:[r?"Connecting…":n?"Retry connect":"Connect",(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)] animate-pulse"})]})]})]})})}function z(e){let{children:t,delay:r}=e;return(0,a.jsx)(n.P.span,{initial:{opacity:0,y:12,filter:"blur(3px)"},animate:{opacity:1,y:0,filter:"blur(0)"},transition:{delay:r,duration:.7,ease:[.19,1,.22,1]},className:"inline-block",children:t})}function M(e){let{children:t,depth:r=20,className:n=""}=e,s=(0,p.useRef)(null);return(0,p.useEffect)(()=>{let e=e=>{if(!s.current)return;let t=window.innerWidth/2,a=window.innerHeight/2,n=(e.clientX-t)/t,i=(e.clientY-a)/a,o=-(n*r*1);s.current.style.transform="translate(".concat(o,"px, ").concat(-(i*r*1),"px)")};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[r]),(0,a.jsx)("div",{ref:s,className:"transition-transform duration-[250ms] ".concat(n),children:t})}function I(e){let{value:t,decimals:r=0}=e,n=(0,p.useRef)(null),o=(0,s.W)(n,{once:!0,margin:"-20%"}),[l,c]=(0,p.useState)(0..toFixed(r)),d=(0,p.useRef)(t),m=(0,p.useRef)(r),x=(0,p.useRef)(!1);return d.current=t,m.current=r,(0,p.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){x.current=!0,c(d.current.toFixed(m.current));return}if(!o)return;let e=(0,i.i)(0,d.current,{duration:1.4,ease:[.19,1,.22,1],onUpdate:e=>c(e.toFixed(m.current)),onComplete:()=>{x.current=!0,c(d.current.toFixed(m.current))}});return()=>e.stop()},[o]),(0,p.useEffect)(()=>{x.current&&c(t.toFixed(r))},[r,t]),(0,a.jsx)("span",{ref:n,children:l})}function O(){let{data:e,isLoading:t}=(0,k.I)({queryKey:["stats"],queryFn:async()=>{try{let e=(await P.get("/stats")).data;if(!e||!e.activeCreators&&!e.totalSubscriptions&&!e.totalRevenue)throw Error("No usable stats data");return e}catch(e){return{activeCreators:12,totalSubscriptions:248,totalRevenue:12450.5}}},refetchInterval:3e4}),r=(null==e?void 0:e.activeCreators)||0,s=(null==e?void 0:e.totalSubscriptions)||0,i=(null==e?void 0:e.totalRevenue)||0;return(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.95,duration:.7,ease:[.19,1,.22,1]},className:"mt-16 grid grid-cols-1 sm:grid-cols-3 gap-6 max-w-5xl mx-auto text-center pt-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-serif text-5xl md:text-6xl text-[var(--color-bg-primary)]",children:[t?"-":(0,a.jsx)(I,{value:r}),"+"]}),(0,a.jsx)("p",{className:"text-[13px] font-semibold tracking-widest text-[color-mix(in_srgb,var(--color-bg-primary)_85%,transparent)] mt-1.5",children:"PARTNERS"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-serif text-5xl md:text-6xl text-[var(--color-bg-primary)]",children:[t?"-":(0,a.jsx)(I,{value:s}),"+"]}),(0,a.jsx)("p",{className:"text-[13px] font-semibold tracking-widest text-[color-mix(in_srgb,var(--color-bg-primary)_85%,transparent)] mt-1.5",children:"MEMBERS"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"font-serif text-5xl md:text-6xl text-[var(--color-bg-primary)]",children:["$",t?"-":(0,a.jsx)(I,{value:i/1e3,decimals:1}),"k+"]}),(0,a.jsx)("p",{className:"text-[13px] font-semibold tracking-widest text-[color-mix(in_srgb,var(--color-bg-primary)_85%,transparent)] mt-1.5",children:"PROCESSED ON-CHAIN"})]})]})}function T(e){let{uid:t,faint:r=!1}=e,s=(0,o.I)();return(0,a.jsxs)("svg",{viewBox:"0 0 260 260",fill:"none",className:"w-full h-full overflow-visible",children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("radialGradient",{id:"medal-".concat(t),cx:"38%",cy:"30%",r:"75%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fbe7bf"}),(0,a.jsx)("stop",{offset:"42%",stopColor:"#fad657"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#8f6524"})]}),(0,a.jsxs)("linearGradient",{id:"ring-".concat(t),x1:"0",y1:"0",x2:"1",y2:"1",gradientUnits:"objectBoundingBox",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fef0bf",stopOpacity:"0.05"}),(0,a.jsx)("stop",{offset:"50%",stopColor:"#fad657",stopOpacity:"0.85"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#b08d3e",stopOpacity:"0.1"})]}),(0,a.jsxs)("radialGradient",{id:"core-".concat(t),cx:"50%",cy:"50%",r:"50%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fad657",stopOpacity:"0.4"}),(0,a.jsx)("stop",{offset:"70%",stopColor:"#fad657",stopOpacity:"0.06"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#fad657",stopOpacity:"0"})]}),(0,a.jsxs)("filter",{id:"glow-".concat(t),x:"-120%",y:"-120%",width:"340%",height:"340%",children:[(0,a.jsx)("feGaussianBlur",{stdDeviation:"2.4",result:"b"}),(0,a.jsxs)("feMerge",{children:[(0,a.jsx)("feMergeNode",{in:"b"}),(0,a.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,a.jsx)("path",{id:"pO-".concat(t),d:"M 20,130 a 110,42 0 1,0 220,0 a 110,42 0 1,0 -220,0"}),(0,a.jsx)("path",{id:"pM-".concat(t),d:"M 48,130 a 82,31 0 1,0 164,0 a 82,31 0 1,0 -164,0"}),(0,a.jsx)("path",{id:"pI-".concat(t),d:"M 76,130 a 54,20 0 1,0 108,0 a 54,20 0 1,0 -108,0"})]}),(0,a.jsx)("circle",{cx:"130",cy:"130",r:"70",fill:"url(#core-".concat(t,")")}),(0,a.jsxs)("g",{transform:"rotate(-22 130 130)",opacity:r?.7:1,children:[(0,a.jsx)("ellipse",{cx:"130",cy:"130",rx:"110",ry:"42",stroke:"url(#ring-".concat(t,")"),strokeWidth:"1",opacity:"0.55"}),(0,a.jsx)("ellipse",{cx:"130",cy:"130",rx:"82",ry:"31",stroke:"url(#ring-".concat(t,")"),strokeWidth:"1",opacity:"0.5"}),(0,a.jsx)("ellipse",{cx:"130",cy:"130",rx:"54",ry:"20",stroke:"#fad657",strokeWidth:"0.75",strokeDasharray:"2 5",opacity:"0.4"}),(0,a.jsx)("circle",{r:"3.6",fill:"#fce27e",filter:"url(#glow-".concat(t,")"),children:!s&&(0,a.jsx)("animateMotion",{dur:"26s",repeatCount:"indefinite",rotate:"auto",children:(0,a.jsx)("mpath",{href:"#pO-".concat(t)})})}),(0,a.jsx)("circle",{r:"2.8",fill:"#fad657",filter:"url(#glow-".concat(t,")"),children:!s&&(0,a.jsx)("animateMotion",{dur:"18s",begin:"-6s",repeatCount:"indefinite",children:(0,a.jsx)("mpath",{href:"#pM-".concat(t)})})}),(0,a.jsx)("circle",{r:"2.2",fill:"#fef0bf",filter:"url(#glow-".concat(t,")"),children:!s&&(0,a.jsx)("animateMotion",{dur:"13s",begin:"-3s",repeatCount:"indefinite",children:(0,a.jsx)("mpath",{href:"#pI-".concat(t)})})})]}),(0,a.jsxs)(n.P.g,{style:{originX:"130px",originY:"130px"},animate:s?{}:{rotate:360},transition:s?void 0:{duration:60,ease:"linear",repeat:1/0},opacity:"0.5",children:[(0,a.jsx)("circle",{cx:"130",cy:"130",r:"36",stroke:"#fad657",strokeWidth:"0.75",strokeOpacity:"0.35"}),Array.from({length:24}).map((e,t)=>(0,a.jsx)("line",{x1:"130",y1:"96",x2:"130",y2:t%6==0?90:93,stroke:"#fad657",strokeWidth:"0.75",strokeOpacity:t%6==0?.6:.28,transform:"rotate(".concat(15*t," 130 130)")},t))]}),(0,a.jsxs)("g",{filter:"url(#glow-".concat(t,")"),children:[(0,a.jsx)("circle",{cx:"130",cy:"130",r:"27",fill:"url(#medal-".concat(t,")"),stroke:"#ffffff",strokeOpacity:"0.28",strokeWidth:"1"}),(0,a.jsx)("path",{d:"M 108,120 A 27 27 0 0 1 152,120",stroke:"#ffffff",strokeOpacity:"0.35",strokeWidth:"1.5",strokeLinecap:"round"}),(0,a.jsx)("image",{href:"".concat("/landing","/stellar-symbol.png"),x:"115",y:"117.3",width:"30",height:"25.4"})]})]})}function L(e){let{lines:t="both"}=e,r=(0,o.I)();return(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0",children:(0,a.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 1440 900",preserveAspectRatio:"none","aria-hidden":"true",children:[("both"===t||"upper"===t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M -40 260 C 420 140, 760 420, 1480 300",fill:"none",stroke:"rgba(250,214,87,0.14)",strokeWidth:1,vectorEffect:"non-scaling-stroke"}),!r&&(0,a.jsx)(n.P.path,{d:"M -40 260 C 420 140, 760 420, 1480 300",fill:"none",stroke:"rgba(250,214,87,0.55)",strokeWidth:1.2,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",pathLength:1470,strokeDasharray:"70 1400",animate:{strokeDashoffset:[0,-1470]},transition:{repeat:1/0,ease:"linear",duration:9}})]}),("both"===t||"lower"===t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M -40 640 C 520 760, 900 520, 1480 660",fill:"none",stroke:"rgba(250,214,87,0.14)",strokeWidth:1,vectorEffect:"non-scaling-stroke"}),!r&&(0,a.jsx)(n.P.path,{d:"M -40 640 C 520 760, 900 520, 1480 660",fill:"none",stroke:"rgba(250,214,87,0.55)",strokeWidth:1.2,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",pathLength:1470,strokeDasharray:"70 1400",animate:{strokeDashoffset:[0,-1470]},transition:{repeat:1/0,ease:"linear",duration:13,delay:2}})]})]})})}function W(){let e=(0,p.useRef)(null),t=(0,o.I)(),{scrollYProgress:r}=(0,l.L)({target:e,offset:["start start","end start"]}),s=(0,c.G)(r,[0,.6],[0,1]);return(0,a.jsxs)("section",{ref:e,className:"relative overflow-hidden",children:[(0,a.jsx)(S,{}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0 bg-[radial-gradient(120%_100%_at_50%_110%,rgba(250,214,87,0.30),rgba(250,214,87,0.12)_45%,rgba(250,214,87,0)_80%),linear-gradient(180deg,rgba(250,214,87,0.03),rgba(250,214,87,0.06)_60%,rgba(250,214,87,0.10)_100%)]"}),!t&&(0,a.jsx)(n.P.div,{"aria-hidden":!0,style:{opacity:s},className:"pointer-events-none absolute inset-0 z-0 bg-[radial-gradient(120%_100%_at_50%_110%,rgba(250,214,87,0.45),rgba(250,214,87,0.18)_45%,rgba(250,214,87,0)_80%),linear-gradient(180deg,rgba(250,214,87,0.05),rgba(250,214,87,0.10)_60%,rgba(250,214,87,0.16)_100%)]"}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 bottom-[-22rem] -translate-x-1/2 w-[70rem] h-[70rem] rounded-full z-0 blur-[30px] bg-[radial-gradient(closest-side,rgba(250,214,87,0.20),transparent_70%)]"}),(0,a.jsx)(M,{depth:30,className:"hidden md:block absolute top-32 -left-10 lg:left-2 w-56 h-56 lg:w-72 lg:h-72 pointer-events-none",children:(0,a.jsx)(n.P.div,{initial:{opacity:0,scale:.9,filter:"blur(8px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},transition:{delay:.2,duration:1.1,ease:[.19,1,.22,1]},className:"w-full h-full",children:(0,a.jsx)(n.P.div,{animate:{y:[0,-12,0]},transition:{duration:9,ease:"easeInOut",repeat:1/0},className:"w-full h-full",children:(0,a.jsx)(T,{uid:"hero"})})})}),(0,a.jsxs)("main",{className:"relative z-10 max-w-7xl mx-auto px-6 md:px-10 pt-14 md:pt-16 pb-24",children:[(0,a.jsx)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.05,duration:.7,ease:[.19,1,.22,1]},className:"flex justify-center",children:(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)] animate-pulse"}),"Verified on-chain • Instant payouts"]})}),(0,a.jsxs)("h1",{className:"mt-8 text-center font-serif font-medium tracking-tight leading-[1.02] text-[9vw] md:text-[4rem] lg:text-[4.5rem] text-[var(--color-content-primary)]",children:[(0,a.jsxs)("span",{className:"block overflow-hidden",children:[(0,a.jsx)(z,{delay:.15,children:"One"}),(0,a.jsx)("span",{className:"ml-3",children:(0,a.jsx)(z,{delay:.25,children:"subscription"})})]}),(0,a.jsxs)("span",{className:"block overflow-hidden mt-1 md:mt-2",children:[(0,a.jsx)(z,{delay:.35,children:"for"}),(0,a.jsx)("span",{className:"ml-3",children:(0,a.jsx)(z,{delay:.45,children:(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] to-[#fad657] bg-clip-text text-transparent",children:"multiple"})})}),(0,a.jsx)("span",{className:"ml-3",children:(0,a.jsx)(z,{delay:.55,children:(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"community perks."})})})]})]}),(0,a.jsx)(n.P.p,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.65,duration:.7,ease:[.19,1,.22,1]},className:"mt-8 max-w-xl mx-auto text-center text-[15px] md:text-[16px] leading-relaxed text-[var(--color-content-secondary)]",children:"One subscription, split on-chain the moment it settles. Soroban routes every payment to the project owner, community manager, and platform, and unlocks perks across partner communities."}),(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.78,duration:.7,ease:[.19,1,.22,1]},className:"mt-9 flex flex-col sm:flex-row items-center justify-center gap-4",children:[(0,a.jsx)(h(),{href:"/dashboard",children:(0,a.jsxs)("button",{className:"group inline-flex items-center gap-3 bg-gradient-to-br from-[#fce27e] via-[#fad657] to-[#c9a83f] text-[var(--color-content-on-accent)] font-semibold text-[14px] tracking-wide pl-7 pr-2.5 py-2.5 rounded-full transition-all hover:shadow-[0_10px_40px_-6px_rgba(250,214,87,0.75)] hover:translate-y-[-1px] shadow-[0_8px_30px_-8px_rgba(250,214,87,0.55)]",children:["Get early access",(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-black/10 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:translate-x-1 group-hover:-translate-y-[1px]",children:"→"})]})}),(0,a.jsx)(h(),{href:"/start",children:(0,a.jsx)(n.P.button,{type:"button",className:"inline-flex items-center border border-solid border-[color-mix(in_srgb,var(--color-content-primary)_25%,transparent)] bg-transparent text-[var(--color-content-primary)] text-[14px] tracking-wide px-7 py-3.5 rounded-full hover:border-[color-mix(in_srgb,var(--color-content-accent)_60%,transparent)] hover:text-[var(--color-content-accent)] transition-colors",children:"Become a partner"})})]}),(0,a.jsx)(n.P.div,{id:"demo",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{delay:.8,duration:.7,ease:[.19,1,.22,1]},className:"mt-16 md:mt-20 relative max-w-4xl mx-auto scroll-mt-24",children:(0,a.jsx)(M,{depth:12,className:"p-[1.5px] rounded-[5.5px] bg-gradient-to-br from-[rgba(250,214,87,0.5)] to-[rgba(250,214,87,0.05)] via-[rgba(250,214,87,0.35)]",children:(0,a.jsxs)("div",{className:"relative rounded-[4px] overflow-hidden bg-[#111110] aspect-video",children:[(0,a.jsx)("video",{src:"".concat("/landing","/demo.mp4"),poster:"".concat("/landing","/demo-poster.jpg"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"absolute inset-0 h-full w-full object-cover"}),(0,a.jsx)("div",{className:"absolute top-4 left-4 text-[10px] tracking-widest text-[color-mix(in_srgb,var(--color-content-primary)_50%,transparent)] border border-[color-mix(in_srgb,var(--color-content-primary)_15%,transparent)] rounded px-2 py-1 bg-black/30",children:"HOW IT WORKS"})]})})}),(0,a.jsx)(O,{})]})]})}let R=[{icon:f.A,title:"Connect your wallet",body:"Connect any Stellar-based wallet. You can use a Freighter wallet, no email, no password, nothing to remember."},{icon:g.A,title:"Pay for a package",body:"Pay for your preferred package using USDC on the Stellar testnet. One payment, no per-partner checkout."},{icon:v.A,title:"Unlock every perk",body:"Get premium access, discounted products, learning resources, and digital assets across multiple community partners."}],A=[.19,1,.22,1];function B(e){let{step:t,index:r,total:s,progress:i}=e,o=t.icon,l=r/s,d=(r+.85)/s,m=(0,c.G)(i,[l,d],[0,1],{clamp:!0}),x=(0,c.G)(m,[0,1],[1,1.08]),p=(0,c.G)(m,[0,1],["#fad657","#201607"]),u=(0,c.G)(m,[0,1],[.5,1]),h=(0,c.G)(i,[l,d],[12,-12]);return(0,a.jsx)(n.P.div,{initial:{opacity:0,y:40,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*r,duration:.8,ease:A},className:"relative",children:(0,a.jsxs)(n.P.div,{className:"group relative card-standard px-6 py-6 md:px-7 md:py-7 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)] overflow-hidden",children:[(0,a.jsx)(n.P.div,{"aria-hidden":"true",className:"card-selected-overlay",style:{opacity:m}}),(0,a.jsx)(n.P.span,{style:{y:h},className:"pointer-events-none absolute top-3 right-4 font-serif text-[5.5rem] leading-none text-[var(--color-content-primary)] select-none",children:r+1}),(0,a.jsxs)("div",{className:"relative flex items-start gap-4",children:[(0,a.jsxs)(n.P.span,{style:{scale:x},className:"relative shrink-0 inline-flex items-center justify-center w-11 h-11 rounded-[var(--radius-md)] bg-[var(--color-bg-accent-tint)] ring-1 ring-[color-mix(in_srgb,var(--color-content-accent)_15%,transparent)] overflow-hidden transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:scale-105",children:[(0,a.jsx)(n.P.span,{style:{opacity:m},className:"absolute inset-0 bg-[var(--color-content-accent)]"}),(0,a.jsx)(n.P.span,{style:{color:p},className:"relative",children:(0,a.jsx)(o,{size:20,strokeWidth:1.4})})]}),(0,a.jsxs)("div",{className:"pt-0.5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)(n.P.span,{style:{opacity:u},className:"text-[11px] tracking-[0.2em] text-[var(--color-content-accent)]",children:["0",r+1]}),(0,a.jsx)("h3",{className:"font-serif text-[1.35rem] leading-tight text-[var(--color-content-primary)]",children:t.title})]}),(0,a.jsx)("p",{className:"mt-2.5 text-[14px] leading-relaxed text-[var(--color-content-secondary)] max-w-md",children:t.body})]})]})]})})}function H(){let e=(0,p.useRef)(null),t=(0,d.d)(0);(0,p.useEffect)(()=>{let r=()=>{let r=e.current;if(!r)return;let a=r.getBoundingClientRect(),n=window.innerHeight,s=(.75*n-a.top)/(.1*n+a.height);t.set(Math.min(1,Math.max(0,s)))};return r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[t]);let r=(0,m.z)(t,{stiffness:90,damping:30,restDelta:.001});return(0,a.jsx)("section",{id:"how",className:"relative overflow-hidden py-28 md:py-40 scroll-mt-8",children:(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10 grid grid-cols-1 lg:grid-cols-[0.85fr_1.15fr] gap-14 lg:gap-20",children:[(0,a.jsx)("div",{className:"lg:sticky lg:top-24 self-start",children:(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"How it works"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.6rem] md:text-[3.4rem] text-[var(--color-content-primary)]",children:["One subscription,",(0,a.jsx)("br",{}),"every"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"partner perk."})]}),(0,a.jsx)("p",{className:"mt-6 max-w-sm text-[15px] leading-relaxed text-[var(--color-content-secondary)]",children:"Komunify brings those pieces into one place: single subscription, multiple partner benefits, discounted products, and automatic revenue distribution powered by Stellar and Soroban smart contracts."}),(0,a.jsx)(h(),{href:"/dashboard",className:"inline-block mt-9",children:(0,a.jsxs)("button",{className:"group inline-flex items-center gap-3 bg-gradient-to-br from-[#fce27e] via-[#fad657] to-[#c9a83f] text-[var(--color-content-on-accent)] font-semibold text-[14px] tracking-wide pl-6 pr-2 py-2 rounded-full transition-all duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] hover:shadow-[0_10px_40px_-6px_rgba(250,214,87,0.75)] active:scale-[0.98] shadow-[0_8px_30px_-8px_rgba(250,214,87,0.55)]",children:["Start now",(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-black/10 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:translate-x-1 group-hover:-translate-y-[1px]",children:"→"})]})})]})}),(0,a.jsxs)("div",{ref:e,className:"relative",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute left-[2.85rem] top-6 bottom-6 w-px bg-[var(--color-border-medium)] hidden md:block"}),(0,a.jsx)(n.P.div,{style:{scaleY:r,transformOrigin:"top"},className:"pointer-events-none absolute left-[2.85rem] top-6 bottom-6 w-px bg-gradient-to-b from-[var(--color-content-accent)] to-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)] hidden md:block"}),(0,a.jsx)("div",{className:"flex flex-col gap-6",children:R.map((e,t)=>(0,a.jsx)(B,{step:e,index:t,total:R.length,progress:r},e.title))})]})]})})}function G(){let e=(0,p.useRef)(null);return(0,a.jsxs)("section",{id:"split",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute top-1/2 left-1/2 w-[36rem] h-[24rem] -translate-x-1/2 -translate-y-1/2 rounded-full blur-[120px] bg-[radial-gradient(closest-side,rgba(250,214,87,0.08),transparent_70%)]"}),(0,a.jsxs)("div",{className:"relative max-w-6xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"relative z-10 max-w-3xl mx-auto text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"Automatic split"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["One payment,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"three payouts."})]}),(0,a.jsx)("p",{className:"mt-6 max-w-2xl mx-auto text-[15px] leading-relaxed text-[var(--color-content-secondary)]",children:"Every subscription is split on-chain the moment it settles. No invoices, no reconciliation: the Soroban contract routes each share instantly."})]}),(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.12,duration:.8,ease:A},className:"relative mt-14 md:mt-16 grid grid-cols-1 lg:grid-cols-[1fr_7rem_1fr] gap-8 lg:gap-0 items-stretch",children:[(0,a.jsxs)("div",{ref:e,onPointerMove:e=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=e.currentTarget.getBoundingClientRect(),r=(e.clientX-t.left)/t.width-.5,a=(e.clientY-t.top)/t.height-.5;e.currentTarget.style.setProperty("--tilt-x","".concat(-(12*a),"deg")),e.currentTarget.style.setProperty("--tilt-y","".concat(12*r,"deg")),e.currentTarget.style.setProperty("--holo-x","".concat((r+.5)*100,"%")),e.currentTarget.style.setProperty("--holo-y","".concat((a+.5)*100,"%")),e.currentTarget.style.setProperty("--shadow-x","".concat(-(10*r),"px")),e.currentTarget.style.setProperty("--shadow-y","".concat(-10*a+2,"px")),e.currentTarget.style.setProperty("--holo-o","1")},onPointerLeave:e=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches||(e.currentTarget.style.setProperty("--tilt-x","0deg"),e.currentTarget.style.setProperty("--tilt-y","0deg"),e.currentTarget.style.setProperty("--shadow-x","0px"),e.currentTarget.style.setProperty("--shadow-y","2px"),e.currentTarget.style.setProperty("--holo-o","0"))},className:"group relative z-10 h-full min-h-72 card-standard px-7 py-8 md:px-9 md:py-10 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)] flex flex-col justify-between overflow-clip",style:{transform:"perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))",transformStyle:"preserve-3d",willChange:"transform",transition:"transform 0.15s ease-out, box-shadow 0.15s ease-out",boxShadow:"var(--shadow-x, 0px) var(--shadow-y, 2px) 12px 0 rgba(0,0,0,0.35)"},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] tracking-[0.22em] text-[var(--color-content-accent)]",children:"YOUR SUBSCRIPTION"}),(0,a.jsxs)("p",{className:"mt-7 font-serif text-[3.2rem] md:text-[4rem] leading-none tracking-tight text-[var(--color-content-primary)]",children:["$10 ",(0,a.jsx)("span",{className:"text-[var(--color-content-accent)]",children:"USDC"})]}),(0,a.jsx)("p",{className:"mt-3 text-[14px] text-[var(--color-content-secondary)]",children:"per month"})]}),(0,a.jsx)("span",{className:"mt-10 self-start inline-flex rounded-full border border-[color-mix(in_srgb,var(--color-content-accent)_20%,transparent)] bg-[var(--color-bg-accent-tint)] px-3 py-1.5 font-mono text-[11px] tracking-wide text-[color-mix(in_srgb,var(--color-content-accent)_80%,transparent)]",children:"29d91130…f96a78"}),(0,a.jsx)("div",{"aria-hidden":!0,className:"card-selected-overlay -z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none"}),(0,a.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 rounded-[inherit]",style:{zIndex:4,mixBlendMode:"overlay",opacity:"var(--holo-o, 0)",transition:"opacity 0.3s",background:"radial-gradient(circle at var(--holo-x, 50%) var(--holo-y, 50%), rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.3) 10%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 60%, transparent 80%)"}})]}),(0,a.jsx)("div",{className:"hidden lg:block relative",children:(0,a.jsxs)("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 300",preserveAspectRatio:"none","aria-hidden":"true",children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"splitGrad",gradientUnits:"userSpaceOnUse",x1:"0",y1:"150",x2:"100",y2:"150",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"rgba(250,214,87,0.85)"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"rgba(250,214,87,0.25)"})]})}),["M -2 150 C 45 150, 45 50, 102 50","M -2 150 L 102 150","M -2 150 C 45 150, 45 250, 102 250"].map((e,t)=>(0,a.jsx)(n.P.path,{d:e,fill:"none",stroke:"url(#splitGrad)",strokeWidth:1.5,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",initial:{pathLength:0,opacity:0},whileInView:{pathLength:1,opacity:1},viewport:{once:!0,margin:"-80px"},transition:{delay:.2+.08*t,duration:.6,ease:A}},e)),(0,a.jsx)("circle",{cx:2,cy:150,r:3,fill:"#fad657"}),(0,a.jsx)("circle",{cx:98,cy:50,r:3,fill:"#fad657"}),(0,a.jsx)("circle",{cx:98,cy:150,r:3,fill:"#fad657"}),(0,a.jsx)("circle",{cx:98,cy:250,r:3,fill:"#fad657"})]})}),(0,a.jsx)("div",{className:"relative flex flex-col justify-between",children:[{name:"Project owner",percentage:"70%",amount:"$7.00"},{name:"Community manager",percentage:"20%",amount:"$2.00"},{name:"Komunify platform",percentage:"10%",amount:"$1.00"}].map((e,t)=>(0,a.jsxs)(n.P.div,{initial:{opacity:0,x:24},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-60px"},transition:{delay:.18+.08*t,duration:.7,ease:A},className:"relative card-standard px-5 py-5 flex items-center justify-between gap-5 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-serif text-[1.05rem] text-[var(--color-content-primary)]",children:e.name}),(0,a.jsx)("p",{className:"mt-1 text-[13px] text-[var(--color-content-secondary)]",children:e.amount})]}),(0,a.jsx)("p",{className:"font-serif text-[2rem] leading-none text-[var(--color-content-accent)]",children:e.percentage})]},e.name))})]})]})]})}let V=[{initial:"D",name:"Dev Web3 Bandung",logo:"/communities/dev-web3-bandung.png",description:"Builder workshops, Soroban study group, and bootcamp recordings.",badge:"+2.4K members"},{initial:"S",name:"Sawargy",logo:"/communities/sawargy.png",description:"Design and freelance collective: client playbooks, portfolio reviews, and working sessions.",badge:"Pilot partner"},{initial:"S",name:"Serenity",logo:"/communities/serenity.webp",description:"Community benefits and member events, onboarding with the first Bandung pilots.",badge:"Pilot partner"},{initial:"M",name:"Manexus",logo:"/communities/manexus.png",description:"Builder community joining the pilot cohort with member resources and events.",badge:"Pilot partner"}],D=[{icon:b.A,title:"Premium access",body:"Members-only channels, office hours, and early event access across every partner."},{icon:y.A,title:"Member discounts",body:"Subscriber pricing on partner products, services, and tokenized listings."},{icon:j.A,title:"Learning resources",body:"Premium educational content: bootcamp recordings, playbooks, and courses."},{icon:w.A,title:"Digital assets",body:"Voucher-like tokenized items and digital resources, verifiable on-chain."}];function F(){return(0,a.jsxs)("section",{id:"communities",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)(L,{lines:"both"}),(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"Communities + perks"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["Real communities,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"real perks."})]})]}),(0,a.jsx)("p",{className:"mt-14 md:mt-16 text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-secondary)]",children:"Our communities"}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-6",children:V.map((e,t)=>(0,a.jsx)(n.P.article,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},className:"group card-standard card-hoverable h-full px-6 py-6 md:px-7 md:py-7 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)] flex flex-col",children:(0,a.jsxs)("div",{className:"relative z-[1] flex flex-1 flex-col",children:[(0,a.jsx)("div",{className:"w-14 h-14 shrink-0 rounded-full overflow-hidden ring-1 ring-[color-mix(in_srgb,var(--color-content-accent)_25%,transparent)]",children:(0,a.jsx)("img",{src:"".concat("/landing").concat(e.logo),alt:e.name,className:"h-full w-full object-cover"})}),(0,a.jsx)("h3",{className:"mt-6 font-serif text-[1.35rem] leading-tight text-[var(--color-content-primary)]",children:e.name}),(0,a.jsx)("p",{className:"mt-3 text-[14px] leading-relaxed text-[var(--color-content-secondary)]",children:e.description})]})},e.name))}),(0,a.jsx)("p",{className:"mt-14 text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-secondary)]",children:"What you unlock"}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-6",children:D.map((e,t)=>{let r=e.icon;return(0,a.jsx)(n.P.article,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},className:"group card-standard card-hoverable h-full px-6 py-6 md:px-7 md:py-7 shadow-[inset_0_1px_1px_rgba(255,255,255,0.04)]",children:(0,a.jsxs)("div",{className:"relative z-[1]",children:[(0,a.jsx)("div",{className:"w-11 h-11 rounded-[var(--radius-md)] bg-[var(--color-bg-accent-tint)] ring-1 ring-[color-mix(in_srgb,var(--color-content-accent)_15%,transparent)] flex items-center justify-center",children:(0,a.jsx)(r,{className:"w-5 h-5 text-[var(--color-content-accent)]"})}),(0,a.jsx)("h3",{className:"mt-6 font-serif text-[1.1rem] leading-tight text-[var(--color-content-primary)]",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-[13px] leading-relaxed text-[var(--color-content-secondary)]",children:e.body})]})},e.title)})})]})]})}function K(){let e=(0,p.useRef)(null),t=(0,d.d)(0);(0,p.useEffect)(()=>{let r=()=>{let r=e.current;if(!r)return;let a=r.getBoundingClientRect(),n=window.innerHeight,s=(.85*n-a.top)/(.55*n);t.set(Math.min(1,Math.max(0,s)))};return r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[t]);let r=(0,m.z)(t,{stiffness:90,damping:30,restDelta:.001});return(0,a.jsx)("section",{id:"roadmap",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"WHERE THIS GOES"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["Testnet today,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"rails tomorrow."})]})]}),(0,a.jsxs)("div",{ref:e,className:"relative mt-12 md:mt-14 grid grid-cols-1 md:grid-cols-3 gap-10 md:gap-12",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"hidden md:block absolute top-0 inset-x-0 h-px bg-[var(--color-border-medium)]"}),(0,a.jsx)(n.P.div,{"aria-hidden":"true",style:{scaleX:r},className:"hidden md:block absolute top-0 inset-x-0 h-px origin-left bg-gradient-to-r from-[var(--color-content-accent)] to-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)]"}),[{marker:"Q3 2026",descriptor:"LIVE ON TESTNET",title:"The full loop works",body:"Wallet connect, subscription payment, automatic 70/20/10 split, and a live on-chain dashboard. Exit metric: loop proven. Every dashboard number is an on-chain read.",nodeOpacity:"opacity-100"},{marker:"Q4 2026",descriptor:"PILOT ONE, WITH NUMBERS",title:"First partner communities",body:"October: Dev Web3 Bandung (2.4K members) goes live. Target funnel: 2,400 members, 250 wallets, 100 paid subscriptions. Pass mark: 100 active on-chain subscriptions, then Sawargy, Manexus, and Serenity follow.",nodeOpacity:"opacity-[0.55]"},{marker:"2027",descriptor:"THE RAILS",title:"Every chapter runs on Komunify",body:"Target: 10 chapters and 1,000 active subscriptions. Self-serve partner onboarding, multi-tier subscriptions, configurable splits, reporting out of the box.",nodeOpacity:"opacity-30"}].map((e,t)=>(0,a.jsxs)(n.P.article,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},className:"relative border-t border-[var(--color-border-medium)] pt-6 md:border-t-0",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute -top-[5px] left-0 w-[9px] h-[9px] rounded-full bg-[var(--color-content-accent)] ".concat(e.nodeOpacity)}),(0,a.jsx)("p",{className:"text-[26px] md:text-[30px] font-semibold tracking-[0.01em] text-[var(--color-content-accent)] leading-none",children:e.marker}),(0,a.jsx)("p",{className:"mt-2.5 text-[11px] tracking-[2px] uppercase text-[var(--color-content-secondary)]",children:e.descriptor}),(0,a.jsx)("h3",{className:"mt-3 font-serif text-[1.35rem] font-semibold leading-tight text-[var(--color-content-primary)]",children:e.title}),(0,a.jsx)("p",{className:"mt-3 max-w-[44ch] text-[13px] leading-relaxed text-[var(--color-content-secondary)]",children:e.body})]},e.marker))]})]})})}function q(){return(0,a.jsxs)("section",{id:"team",className:"relative py-24 md:py-36 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)(L,{lines:"both"}),(0,a.jsxs)("div",{className:"relative max-w-7xl mx-auto px-6 md:px-10",children:[(0,a.jsx)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"relative z-10 md:flex md:items-end md:justify-between",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"THE TEAM"]}),(0,a.jsxs)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.4rem] md:text-[3.2rem] text-[var(--color-content-primary)]",children:["Four builders,"," ",(0,a.jsx)("span",{className:"bg-gradient-to-r from-[#fef0bf] via-[#fad657] to-[#b08d3e] bg-clip-text text-transparent",children:"four communities."})]}),(0,a.jsx)("p",{className:"mt-4 text-[15px] leading-relaxed text-[var(--color-content-secondary)]",children:"We each run a community. We're building the tool we need."})]})}),(0,a.jsx)("div",{className:"relative z-10 mt-12 md:mt-14",children:(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-5 md:gap-8",children:[{initial:"I",name:"Imam Abullaisi",role:"Product + Design",community:"Sawargy",photo:"https://github.com/abullaisi.png",linkedin:"https://www.linkedin.com/in/abullaisi/",x:"https://x.com/abullaisi",niche:"Freelance & design community",memberCount:"950+ members"},{initial:"J",name:"Jason Stanley",role:"Engineering",community:"Dev Web3 Bandung",photo:"/team/jason.jpg?v=2",linkedin:"https://www.linkedin.com/in/jason-stanley-yoman/",x:"https://x.com/jason_yomann",niche:"Web3 builders & hackathons",memberCount:null},{initial:"F",name:"Faris Abdurrahman",role:"Product Manager",community:"Manexus",photo:"/team/faris.jpg?v=2",linkedin:"https://www.linkedin.com/in/faris-abdurrahman/",x:null,niche:"Web3 + AI community hub",memberCount:null},{initial:"N",name:"Qatrun Nada",role:"Business + Partnerships",community:"Serenity",photo:"/team/nada.jpg?v=2",linkedin:"https://www.linkedin.com/in/nadadv/",x:null,niche:null,memberCount:null}].map((e,t)=>(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:32,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.08*t,duration:.8,ease:A},children:[(0,a.jsxs)("div",{className:"relative aspect-[4/5] w-full rounded-[4px] overflow-hidden border border-[var(--color-border-medium)]",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] flex items-center justify-center text-5xl font-extrabold text-[var(--color-content-accent)]",children:e.initial}),e.photo&&(0,a.jsx)("img",{src:e.photo.startsWith("http")?e.photo:"".concat("/landing").concat(e.photo),alt:e.name,className:"absolute inset-0 h-full w-full object-cover",loading:"lazy",onError:e=>{e.currentTarget.style.display="none"}})]}),(0,a.jsxs)("div",{className:"mt-4 space-y-1.5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("p",{className:"text-[15px] font-semibold text-[var(--color-content-primary)]",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.linkedin?(0,a.jsx)("a",{href:e.linkedin,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(e.name," on LinkedIn"),className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 1 1 0-4.124 2.062 2.062 0 0 1 0 4.124zM7.119 20.452H3.555V9h3.564v11.452z"})})}):null,e.x?(0,a.jsx)("a",{href:e.x,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(e.name," on X"),className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}):null]})]}),(0,a.jsx)("p",{className:"text-[12px] text-[var(--color-content-secondary)]",children:e.role}),(0,a.jsx)("p",{className:"text-[11px] tracking-[2px] text-[var(--color-content-accent)]",children:"RUNS ".concat(e.community.toUpperCase())}),e.niche?(0,a.jsx)("p",{className:"text-[12px] text-[var(--color-content-secondary)]",children:e.niche}):null,e.memberCount?(0,a.jsx)("p",{className:"text-[12px] text-[var(--color-content-secondary)]",children:e.memberCount}):null]})]},e.name))})})]})]})}let U=[{question:"What is Komunify?",answer:"Komunify is a Web3 platform that gives members access to benefits from multiple partner communities through a single subscription. It also helps community managers and project owners monetize resources, automate revenue sharing, and track growth on-chain."},{question:"What can be sold on Komunify?",answer:"The platform is designed for tokenized digital products, learning resources, and selected tokenized RWAs made available by partner communities. Subscriber-only pricing and community-specific offers are part of the intended value proposition."},{question:"How are payments and revenue shares handled?",answer:"Komunify uses smart contracts to split and distribute subscription revenue and marketplace fees automatically between the platform, community managers, and project owners. This reduces manual reconciliation and makes the process more transparent."},{question:"Why is Komunify better?",answer:"A single subscription reduces cost, friction, and membership overload for users who want benefits across several communities. It also makes discovery easier by bundling value into one clearer offer."}];function X(e){let{item:t,index:r,isOpen:s,onToggle:i}=e;return(0,a.jsx)(n.P.div,{initial:{opacity:0,y:24,filter:"blur(6px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,margin:"-80px"},transition:{delay:.06*r,duration:.8,ease:A},className:"group",children:(0,a.jsxs)("div",{className:"relative rounded-[4px] transition-colors duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] shadow-[inset_0_1px_1px_rgba(255,255,255,0.04),0_10px_28px_rgba(0,0,0,0.30)] overflow-hidden ".concat(s?"card-selected":"card-standard card-hoverable"),children:[(0,a.jsxs)("button",{type:"button",onClick:i,"aria-expanded":s,className:"relative z-[1] w-full flex items-center justify-between gap-6 px-6 py-5 md:px-7 md:py-6 text-left bg-transparent border-none rounded-none",children:[(0,a.jsx)("span",{className:"font-serif text-[1.05rem] md:text-[1.2rem] leading-snug text-[var(--color-content-primary)]",children:t.question}),(0,a.jsx)("span",{className:"relative shrink-0 inline-flex items-center justify-center w-9 h-9 rounded-full ring-1 transition-colors duration-500 ".concat(s?"bg-[var(--color-content-accent)] ring-[color-mix(in_srgb,var(--color-content-accent)_40%,transparent)]":"bg-[var(--color-bg-accent-tint)] ring-[color-mix(in_srgb,var(--color-content-accent)_15%,transparent)]"),children:(0,a.jsx)(n.P.span,{animate:{rotate:180*!!s},transition:{duration:.4,ease:A},className:s?"text-[var(--color-content-on-accent)]":"text-[var(--color-content-accent)]",children:(0,a.jsx)(N.A,{size:16,strokeWidth:1.5})})})]}),(0,a.jsx)(x.N,{initial:!1,children:s&&(0,a.jsx)(n.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4,ease:A},className:"relative z-[1] overflow-hidden",children:(0,a.jsx)("p",{className:"px-6 md:px-7 pb-6 max-w-2xl text-[14px] leading-relaxed text-[var(--color-content-secondary)]",children:t.answer})})})]})})}function Y(){let[e,t]=(0,p.useState)(0),r=(0,p.useRef)(null),s=(0,o.I)(),i=(0,d.d)(0);(0,p.useEffect)(()=>{let e=()=>{let e=r.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerHeight,n=(a-t.top)/(t.height+.2*a);i.set(Math.min(1,Math.max(0,n)))};return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[i]);let l=(0,m.z)(i,{stiffness:80,damping:26}),x=(0,c.G)(l,[0,1],[.15,1]);return(0,a.jsxs)("section",{ref:r,id:"faq",className:"relative py-24 md:py-40 scroll-mt-24 overflow-hidden",children:[(0,a.jsx)(M,{depth:50,className:"hidden lg:block absolute bottom-4 right-[3%] w-64 h-64 pointer-events-none",children:(0,a.jsx)(n.P.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.5,duration:1.1,ease:[.19,1,.22,1]},className:"w-full h-full",children:(0,a.jsx)(n.P.div,{animate:{y:[0,10,0]},transition:{duration:11,ease:"easeInOut",repeat:1/0},className:"w-full h-full",children:(0,a.jsx)(T,{uid:"echo"})})})}),(0,a.jsx)("div",{className:"pointer-events-none absolute right-0 bottom-0 translate-x-1/2 translate-y-1/2 w-[110rem] h-[110rem] rounded-full blur-[60px] bg-[radial-gradient(closest-side,rgba(250,214,87,0.15),transparent_70%)]"}),!s&&(0,a.jsx)(n.P.div,{"aria-hidden":!0,style:{opacity:x},className:"pointer-events-none absolute inset-0 bg-[radial-gradient(120%_110%_at_85%_108%,rgba(250,214,87,0.30),rgba(250,214,87,0.12)_45%,rgba(250,214,87,0)_80%)]"}),(0,a.jsxs)("div",{className:"relative max-w-3xl mx-auto px-6 md:px-10",children:[(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.7,ease:A},className:"text-center",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full pl-3 pr-4 py-1.5 bg-[color-mix(in_srgb,var(--color-content-accent)_6%,transparent)] text-[11px] tracking-[0.2em] uppercase text-[var(--color-content-accent)]",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-content-accent)]"}),"FAQ"]}),(0,a.jsx)("h2",{className:"mt-7 font-serif font-medium tracking-tight leading-[1.05] text-[2.2rem] md:text-[2.8rem] text-[var(--color-content-primary)]",children:"Questions, answered."})]}),(0,a.jsx)("div",{className:"mt-12 flex flex-col gap-4",children:U.map((r,n)=>(0,a.jsx)(X,{item:r,index:n,isOpen:e===n,onToggle:()=>t(e===n?null:n)},r.question))})]})]})}function J(){return(0,a.jsx)("section",{className:"border-t border-[var(--color-border-medium)] bg-[var(--color-bg-elevated)] py-16 md:py-20 px-6 md:px-10",children:(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.8,ease:A},className:"max-w-6xl mx-auto flex flex-col md:flex-row md:items-center gap-9 md:gap-12",children:[(0,a.jsxs)("div",{className:"flex items-center gap-6 md:gap-9 min-w-0",children:[(0,a.jsx)("img",{src:"".concat("/landing","/logo-mark.png"),alt:"Komunify",className:"w-16 h-16 object-contain shrink-0"}),(0,a.jsx)("div",{className:"w-px h-16 bg-[var(--color-border-medium)] shrink-0"}),(0,a.jsxs)("p",{className:"font-serif font-medium tracking-tight leading-[1.08] text-[1.85rem] sm:text-[2.3rem] md:text-[2.7rem] text-[var(--color-content-primary)]",children:[(0,a.jsx)("span",{className:"block",children:"Single subscription."}),(0,a.jsx)("span",{className:"block text-[var(--color-content-accent)]",children:"Multiple benefits."})]})]}),(0,a.jsx)(h(),{href:"/dashboard",className:"md:ml-auto shrink-0 self-start md:self-auto",children:(0,a.jsxs)("button",{className:"group inline-flex items-center gap-3 bg-gradient-to-br from-[#fce27e] via-[#fad657] to-[#c9a83f] text-[var(--color-content-on-accent)] font-semibold text-[14px] tracking-wide pl-7 pr-2.5 py-2.5 rounded-full transition-all hover:shadow-[0_10px_40px_-6px_rgba(250,214,87,0.75)] hover:translate-y-[-1px] shadow-[0_8px_30px_-8px_rgba(250,214,87,0.55)]",children:["Get early access",(0,a.jsx)("span",{className:"w-8 h-8 rounded-full bg-black/10 flex items-center justify-center transition-transform duration-500 ease-[cubic-bezier(0.19,1,0.22,1)] group-hover:translate-x-1 group-hover:-translate-y-[1px]",children:"→"})]})})]})})}function Q(){return(0,a.jsx)("footer",{className:"border-t border-[var(--color-border-medium)] py-12 px-6 sm:px-12 bg-[var(--color-bg-elevated)]",children:(0,a.jsx)("div",{className:"max-w-6xl mx-auto flex flex-col items-center gap-6",children:(0,a.jsxs)("div",{className:"w-full flex flex-col sm:flex-row items-center justify-between gap-6",children:[(0,a.jsxs)("div",{className:"text-[var(--color-content-secondary)] text-sm text-center sm:text-left",children:["\xa9 2026 Komunify. Built on"," ",(0,a.jsx)("a",{href:"https://stellar.org",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--color-content-accent)] hover:underline",children:"Stellar"})]}),(0,a.jsxs)("div",{className:"flex gap-6 text-sm text-[var(--color-content-secondary)]",children:[(0,a.jsx)("a",{href:"https://github.com/yoms07/stellar-hackathon",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"GitHub"}),(0,a.jsx)("a",{href:"#",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"Documentation"}),(0,a.jsx)("a",{href:"/dashboard",className:"hover:text-[var(--color-content-accent)] transition-colors",children:"App"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("a",{href:"https://x.com/komunifyapp",target:"_blank",rel:"noopener noreferrer","aria-label":"Komunify on X",className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),(0,a.jsx)("a",{href:"https://instagram.com/komunify.app",target:"_blank",rel:"noopener noreferrer","aria-label":"Komunify on Instagram",className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm10.5 1.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"})})}),(0,a.jsx)("a",{href:"https://t.me/komunify",target:"_blank",rel:"noopener noreferrer","aria-label":"Komunify on Telegram",className:"w-8 h-8 border border-[var(--color-border-medium)] rounded-lg flex items-center justify-center text-[var(--color-content-secondary)] hover:text-[var(--color-content-accent)] transition-colors",children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",className:"w-[18px] h-[18px]",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M21.944 2.506a1.5 1.5 0 0 0-1.533-.13L2.9 10.254a1.5 1.5 0 0 0 .122 2.786l4.535 1.518 1.774 5.408a1.5 1.5 0 0 0 2.607.47l2.574-3.078 4.476 3.268a1.5 1.5 0 0 0 2.36-.92l1.137-15.78a1.5 1.5 0 0 0-.541-1.42zM9.051 13.217l8.683-6.018-6.939 7.383-.682 2.932-1.062-4.297zm10.331 5.121-5.128-3.745-2.08 2.488.334-1.435 7.82-8.32-.946 11.012z"})})})]})]})})})}function $(){return(0,a.jsxs)("div",{className:"min-h-screen bg-[var(--color-bg-primary)]",children:[(0,a.jsx)(W,{}),(0,a.jsx)(H,{}),(0,a.jsx)(G,{}),(0,a.jsx)(F,{}),(0,a.jsx)(K,{}),(0,a.jsx)(q,{}),(0,a.jsx)(Y,{}),(0,a.jsx)(J,{}),(0,a.jsx)(Q,{})]})}},3744:(e,t,r)=>{Promise.resolve().then(r.bind(r,981))},8359:(e,t,r)=>{"use strict";r.d(t,{WalletProvider:()=>o,v:()=>l});var a=r(4568),n=r(5620),s=r(7620);let i=(0,s.createContext)(null);function o(e){let{children:t}=e,[r,o]=(0,s.useState)(!1),[l,c]=(0,s.useState)(null),[d,m]=(0,s.useState)(null),[x,p]=(0,s.useState)(!1),[u,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=!0;return(async()=>{let{isConnected:t}=await (0,n.isConnected)();if(!e||(o(t),!t))return;let r=await (0,n.getAddress)();if(e&&!r.error&&r.address){c(r.address);let t=await (0,n.getNetwork)();e&&!t.error&&m(t.network)}})(),()=>{e=!1}},[]),(0,s.useEffect)(()=>{let e=new n.WatchWalletChanges(2e3);return e.watch(e=>{c(t=>t?e.address||null:t),e.network&&m(e.network)}),()=>e.stop()},[]);let v=(0,s.useCallback)(async()=>{p(!0),g(null);try{let{isConnected:t}=await (0,n.isConnected)();if(o(t),!t)throw Error("Freighter is not installed. Get it at https://www.freighter.app");let r=await (0,n.requestAccess)();if(r.error||!r.address){var e;throw Error((null==(e=r.error)?void 0:e.message)||"Access to Freighter was denied")}c(r.address);let a=await (0,n.getNetwork)();a.error||m(a.network)}catch(e){g(e instanceof Error?e.message:"Failed to connect wallet")}finally{p(!1)}},[]),b=(0,s.useCallback)(()=>{c(null)},[]),y=(0,s.useCallback)(async()=>{h(!0);try{let e=await (0,n.getAddress)();!e.error&&e.address&&c(e.address);let t=await (0,n.getNetwork)();t.error||m(t.network)}finally{h(!1)}},[]),j=(0,s.useMemo)(()=>({isInstalled:r,isConnected:!!l,address:l,network:d,connecting:x,refreshing:u,error:f,connect:v,disconnect:b,refresh:y}),[r,l,d,x,u,f,v,b,y]);return(0,a.jsx)(i.Provider,{value:j,children:t})}function l(){let e=(0,s.useContext)(i);if(!e)throw Error("useWallet must be used within a WalletProvider");return e}}},e=>{e.O(0,[221,928,587,18,358],()=>e(e.s=3744)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/start/page-23cbc1550b4e0a00.js b/prototype/landing/_next/static/chunks/app/start/page-23cbc1550b4e0a00.js new file mode 100644 index 0000000..c5aea80 --- /dev/null +++ b/prototype/landing/_next/static/chunks/app/start/page-23cbc1550b4e0a00.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[397],{421:(e,n,t)=>{"use strict";t.d(n,{hO:()=>o,sG:()=>l});var r=t(7620),i=t(7509),a=t(6118),s=t(4568),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let t=(0,a.TL)(`Primitive.${n}`),i=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?t:n,{...a,ref:r})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function o(e,n){e&&i.flushSync(()=>e.dispatchEvent(n))}},541:(e,n,t)=>{"use strict";t.d(n,{StartWizard:()=>w});var r=t(4568),i=t(9664),a=t.n(i),s=t(7620),l=t(4869),o=t(7588),c=t(7592),d=t(9932),u=t(6845),m=t(4710),p=t(488);function h(e){let{steps:n,current:t}=e;return(0,r.jsx)("div",{className:"stepper",role:"list","aria-label":"Onboarding progress",children:n.map((e,n)=>{let i=n(0,r.jsxs)("div",{className:"benefit",children:[(0,r.jsx)("span",{className:"benefit-icon",children:(0,r.jsx)(m.I,{name:e.icon,size:18})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"benefit-title",children:e.title}),(0,r.jsx)("p",{className:"benefit-body",children:e.body})]})]},e.title))}),(0,r.jsxs)(u.$,{type:"button",onClick:()=>O(1),children:[(0,r.jsx)(m.I,{name:"sparkle",size:15})," Create my community"]}),(0,r.jsx)("p",{className:"hint",style:{margin:"var(--space-3) 0 0"},children:"Free to start. You will sign one quick transaction to claim your community on-chain."})]}):null,1===z?(0,r.jsxs)("section",{className:"card",children:[(0,r.jsx)("h2",{style:{marginTop:0},children:"Name your community"}),(0,r.jsx)(o.u,{initial:null,saving:R,error:W,onSave:V,onCancel:()=>O(0),submitLabel:"Create my community",savingLabel:"Check your wallet…"})]}):null,2===z?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{className:"card",children:[(0,r.jsxs)("p",{className:"success",style:{marginTop:0,display:"flex",gap:6,alignItems:"center",fontSize:15},children:[(0,r.jsx)(m.I,{name:"check",size:16})," You are live"]}),(0,r.jsxs)("p",{style:{margin:"0 0 4px",fontWeight:700},children:[null!=(n=null==Y?void 0:Y.name)?n:"Your community"," is now on komunify."]}),(0,r.jsx)("p",{className:"hint",style:{marginTop:0},children:"Add your first piece below so members have something to unlock. You can publish more anytime from your dashboard."}),i?(0,r.jsx)(a(),{href:"/community/".concat(i),target:"_blank",rel:"noreferrer",className:"explorer-link",children:"View your public page →"}):null]}),(0,r.jsx)(d.f,{}),(0,r.jsx)("div",{className:"center",children:(0,r.jsx)(u.$,{asChild:!0,variant:"outline",size:"sm",children:(0,r.jsx)(a(),{href:"/dashboard",children:"Go to dashboard →"})})})]}):null]})}},1715:(e,n,t)=>{"use strict";t.d(n,{s:()=>a});var r=t(7620);function i(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function a(...e){return r.useCallback(function(...e){return n=>{let t=!1,r=e.map(e=>{let r=i(e,n);return t||"function"!=typeof r||(t=!0),r});if(t)return()=>{for(let n=0;n{"use strict";t.d(n,{F:()=>s});var r=t(2902);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=r.$,s=(e,n)=>t=>{var r;if((null==n?void 0:n.variants)==null)return a(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:s,defaultVariants:l}=n,o=Object.keys(s).map(e=>{let n=null==t?void 0:t[e],r=null==l?void 0:l[e];if(null===n)return null;let a=i(n)||i(r);return s[e][a]}),c=t&&Object.entries(t).reduce((e,n)=>{let[t,r]=n;return void 0===r||(e[t]=r),e},{});return a(e,o,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,n)=>{let{class:t,className:r,...i}=n;return Object.entries(i).every(e=>{let[n,t]=e;return Array.isArray(t)?t.includes({...l,...c}[n]):({...l,...c})[n]===t})?[...e,t,r]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},6118:(e,n,t)=>{"use strict";t.d(n,{DX:()=>l,Dc:()=>c,TL:()=>s});var r,i=t(7620),a=t(1715);function s(e){let n=i.forwardRef((n,t)=>{var r;let s,l,{children:c,...u}=n,f=null,x=!1,v=[];m(c)&&"function"==typeof y&&(c=y(c._payload)),i.Children.forEach(c,e=>{var n;if(n=e,i.isValidElement(n)&&"function"==typeof n.type&&"__radixId"in n.type&&n.type.__radixId===o){x=!0;let n="child"in e.props?e.props.child:e.props.children;m(n)&&"function"==typeof y&&(n=y(n._payload)),f=d(e,n),v.push(f?.props?.children)}else v.push(e)}),f?f=i.cloneElement(f,void 0,v):!x&&1===i.Children.count(c)&&i.isValidElement(c)&&(f=c);let g=f?(r=f,(l=(s=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?r.ref:(l=(s=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,j=(0,a.s)(t,g);if(!f){if(c||0===c)throw Error(x?h(e):p(e));return c}let b=function(e,n){let t={...n};for(let r in n){let i=e[r],a=n[r];/^on[A-Z]/.test(r)?i&&a?t[r]=(...e)=>{let n=a(...e);return i(...e),n}:i&&(t[r]=i):"style"===r?t[r]={...i,...a}:"className"===r&&(t[r]=[i,a].filter(Boolean).join(" "))}return{...e,...t}}(u,f.props??{});return f.type!==i.Fragment&&(b.ref=t?j:g),i.cloneElement(f,b)});return n.displayName=`${e}.Slot`,n}var l=s("Slot"),o=Symbol.for("radix.slottable");function c(e){let n=e=>"child"in e?e.children(e.child):e.children;return n.displayName=`${e}.Slottable`,n.__radixId=o,n}var d=(e,n)=>{if("child"in e.props){let n=e.props.child;return i.isValidElement(n)?i.cloneElement(n,void 0,e.props.children(n.props.children)):null}return i.isValidElement(n)?n:null},u=Symbol.for("react.lazy");function m(e){var n;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&"object"==typeof(n=e._payload)&&null!==n&&"then"in n}var p=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,h=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,y=(r||(r=t.t(i,2)))[" use ".trim().toString()]},7469:(e,n,t)=>{Promise.resolve().then(t.bind(t,6263)),Promise.resolve().then(t.bind(t,541))},7541:(e,n,t)=>{"use strict";var r=t(3041);t.o(r,"usePathname")&&t.d(n,{usePathname:function(){return r.usePathname}})}},e=>{e.O(0,[564,31,221,563,558,242,92,587,18,358],()=>e(e.s=7469)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/chunks/app/start/page-ba59f7c8d5f524e9.js b/prototype/landing/_next/static/chunks/app/start/page-ba59f7c8d5f524e9.js deleted file mode 100644 index 15fdfca..0000000 --- a/prototype/landing/_next/static/chunks/app/start/page-ba59f7c8d5f524e9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[397],{421:(e,n,t)=>{"use strict";t.d(n,{hO:()=>o,sG:()=>s});var r=t(7620),i=t(7509),l=t(6118),a=t(4568),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let t=(0,l.TL)(`Primitive.${n}`),i=r.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?t:n,{...l,ref:r})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function o(e,n){e&&i.flushSync(()=>e.dispatchEvent(n))}},1715:(e,n,t)=>{"use strict";t.d(n,{s:()=>l});var r=t(7620);function i(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function l(...e){return r.useCallback(function(...e){return n=>{let t=!1,r=e.map(e=>{let r=i(e,n);return t||"function"!=typeof r||(t=!0),r});if(t)return()=>{for(let n=0;n{"use strict";t.d(n,{StartWizard:()=>w});var r=t(4568),i=t(9664),l=t.n(i),a=t(7620),s=t(4869),o=t(7588),c=t(7592),d=t(9932),u=t(6845),m=t(4710),p=t(488);function h(e){let{steps:n,current:t}=e;return(0,r.jsx)("div",{className:"stepper",role:"list","aria-label":"Onboarding progress",children:n.map((e,n)=>{let i=n(0,r.jsxs)("div",{className:"benefit",children:[(0,r.jsx)("span",{className:"benefit-icon",children:(0,r.jsx)(m.I,{name:e.icon,size:18})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"benefit-title",children:e.title}),(0,r.jsx)("p",{className:"benefit-body",children:e.body})]})]},e.title))}),(0,r.jsxs)(u.$,{type:"button",onClick:()=>P(1),children:[(0,r.jsx)(m.I,{name:"sparkle",size:15})," Create my community"]}),(0,r.jsx)("p",{className:"hint",style:{margin:"var(--space-3) 0 0"},children:"Free to start. You will sign one quick transaction to claim your community on-chain."})]}):null,1===O?(0,r.jsxs)("section",{className:"card",children:[(0,r.jsx)("h2",{style:{marginTop:0},children:"Name your community"}),(0,r.jsx)(o.u,{initial:null,saving:R,error:W,onSave:V,onCancel:()=>P(0),submitLabel:"Create my community",savingLabel:"Check your wallet…"})]}):null,2===O?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{className:"card",children:[(0,r.jsxs)("p",{className:"success",style:{marginTop:0,display:"flex",gap:6,alignItems:"center",fontSize:15},children:[(0,r.jsx)(m.I,{name:"check",size:16})," You are live"]}),(0,r.jsxs)("p",{style:{margin:"0 0 4px",fontWeight:700},children:[null!=(n=null==Y?void 0:Y.name)?n:"Your community"," is now on komunify."]}),(0,r.jsx)("p",{className:"hint",style:{marginTop:0},children:"Add your first piece below so members have something to unlock. You can publish more anytime from your dashboard."}),i?(0,r.jsx)(l(),{href:"/community/".concat(i),target:"_blank",rel:"noreferrer",className:"explorer-link",children:"View your public page →"}):null]}),(0,r.jsx)(d.f,{}),(0,r.jsx)("div",{className:"center",children:(0,r.jsx)(u.$,{asChild:!0,variant:"outline",size:"sm",children:(0,r.jsx)(l(),{href:"/dashboard",children:"Go to dashboard →"})})})]}):null]})}},4085:(e,n,t)=>{Promise.resolve().then(t.bind(t,2922))},4616:(e,n,t)=>{"use strict";t.d(n,{F:()=>a});var r=t(2902);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=r.$,a=(e,n)=>t=>{var r;if((null==n?void 0:n.variants)==null)return l(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:s}=n,o=Object.keys(a).map(e=>{let n=null==t?void 0:t[e],r=null==s?void 0:s[e];if(null===n)return null;let l=i(n)||i(r);return a[e][l]}),c=t&&Object.entries(t).reduce((e,n)=>{let[t,r]=n;return void 0===r||(e[t]=r),e},{});return l(e,o,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,n)=>{let{class:t,className:r,...i}=n;return Object.entries(i).every(e=>{let[n,t]=e;return Array.isArray(t)?t.includes({...s,...c}[n]):({...s,...c})[n]===t})?[...e,t,r]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}},6118:(e,n,t)=>{"use strict";t.d(n,{DX:()=>s,Dc:()=>c,TL:()=>a});var r,i=t(7620),l=t(1715);function a(e){let n=i.forwardRef((n,t)=>{var r;let a,s,{children:c,...u}=n,f=null,x=!1,g=[];m(c)&&"function"==typeof y&&(c=y(c._payload)),i.Children.forEach(c,e=>{var n;if(n=e,i.isValidElement(n)&&"function"==typeof n.type&&"__radixId"in n.type&&n.type.__radixId===o){x=!0;let n="child"in e.props?e.props.child:e.props.children;m(n)&&"function"==typeof y&&(n=y(n._payload)),f=d(e,n),g.push(f?.props?.children)}else g.push(e)}),f?f=i.cloneElement(f,void 0,g):!x&&1===i.Children.count(c)&&i.isValidElement(c)&&(f=c);let v=f?(r=f,(s=(a=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?r.ref:(s=(a=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,j=(0,l.s)(t,v);if(!f){if(c||0===c)throw Error(x?h(e):p(e));return c}let b=function(e,n){let t={...n};for(let r in n){let i=e[r],l=n[r];/^on[A-Z]/.test(r)?i&&l?t[r]=(...e)=>{let n=l(...e);return i(...e),n}:i&&(t[r]=i):"style"===r?t[r]={...i,...l}:"className"===r&&(t[r]=[i,l].filter(Boolean).join(" "))}return{...e,...t}}(u,f.props??{});return f.type!==i.Fragment&&(b.ref=t?j:v),i.cloneElement(f,b)});return n.displayName=`${e}.Slot`,n}var s=a("Slot"),o=Symbol.for("radix.slottable");function c(e){let n=e=>"child"in e?e.children(e.child):e.children;return n.displayName=`${e}.Slottable`,n.__radixId=o,n}var d=(e,n)=>{if("child"in e.props){let n=e.props.child;return i.isValidElement(n)?i.cloneElement(n,void 0,e.props.children(n.props.children)):null}return i.isValidElement(n)?n:null},u=Symbol.for("react.lazy");function m(e){var n;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&"object"==typeof(n=e._payload)&&null!==n&&"then"in n}var p=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,h=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,y=(r||(r=t.t(i,2)))[" use ".trim().toString()]}},e=>{e.O(0,[564,31,221,563,558,242,126,587,18,358],()=>e(e.s=4085)),_N_E=e.O()}]); \ No newline at end of file diff --git a/prototype/landing/_next/static/css/107189fb9877e5d6.css b/prototype/landing/_next/static/css/107189fb9877e5d6.css new file mode 100644 index 0000000..54edbda --- /dev/null +++ b/prototype/landing/_next/static/css/107189fb9877e5d6.css @@ -0,0 +1,5 @@ +@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap");*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: } + +/* +! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-left-10{left:-2.5rem}.-top-\[5px\]{top:-5px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-6{bottom:1.5rem}.bottom-\[-22rem\]{bottom:-22rem}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.left-\[2\.85rem\]{left:2.85rem}.right-0{right:0}.right-4{right:1rem}.right-\[3\%\]{right:3%}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.top-32{top:8rem}.top-4{top:1rem}.top-6{top:1.5rem}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.mx-auto{margin-left:auto;margin-right:auto}.mb-1\.5{margin-bottom:.375rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[4\/5\]{aspect-ratio:4/5}.aspect-video{aspect-ratio:16/9}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[110rem\]{height:110rem}.h-\[18px\]{height:18px}.h-\[24rem\]{height:24rem}.h-\[2px\]{height:2px}.h-\[6px\]{height:6px}.h-\[70rem\]{height:70rem}.h-\[9px\]{height:9px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.min-h-72{min-height:18rem}.min-h-\[72px\]{min-height:72px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-24{width:6rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-64{width:16rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[110rem\]{width:110rem}.w-\[18px\]{width:18px}.w-\[232px\]{width:232px}.w-\[36rem\]{width:36rem}.w-\[6px\]{width:6px}.w-\[70rem\]{width:70rem}.w-\[9px\]{width:9px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[220px\]{max-width:220px}.max-w-\[44ch\]{max-width:44ch}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-1\/2{--tw-translate-x:50%}.translate-x-1\/2,.translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y:50%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.scroll-mt-24{scroll-margin-top:6rem}.scroll-mt-8{scroll-margin-top:2rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-10{gap:2.5rem}.gap-14{gap:3.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-9{gap:2.25rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-\[5\.5px\]{border-radius:5.5px}.rounded-\[inherit\]{border-radius:inherit}.rounded-\[var\(--radius-md\)\]{border-radius:var(--radius-md)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.border{border-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_20\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-accent) 20%,transparent)}.border-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_40\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-accent) 40%,transparent)}.border-\[color-mix\(in_srgb\2c var\(--color-content-primary\)_15\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-primary) 15%,transparent)}.border-\[color-mix\(in_srgb\2c var\(--color-content-primary\)_25\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-primary) 25%,transparent)}.border-\[var\(--color-border-medium\)\]{border-color:var(--color-border-medium)}.border-border{border-color:hsl(var(--border))}.border-input{border-color:hsl(var(--input))}.bg-\[\#111110\]{--tw-bg-opacity:1;background-color:rgb(17 17 16/var(--tw-bg-opacity,1))}.bg-\[\#f3d9a8\]{--tw-bg-opacity:1;background-color:rgb(243 217 168/var(--tw-bg-opacity,1))}.bg-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_6\%\2c transparent\)\]{background-color:color-mix(in srgb,var(--color-content-accent) 6%,transparent)}.bg-\[var\(--color-bg-accent-tint\)\]{background-color:var(--color-bg-accent-tint)}.bg-\[var\(--color-bg-elevated\)\]{background-color:var(--color-bg-elevated)}.bg-\[var\(--color-bg-input\)\]{background-color:var(--color-bg-input)}.bg-\[var\(--color-bg-primary\)\]{background-color:var(--color-bg-primary)}.bg-\[var\(--color-border-medium\)\]{background-color:var(--color-border-medium)}.bg-\[var\(--color-content-accent\)\]{background-color:var(--color-content-accent)}.bg-black\/10{background-color:rgb(0 0 0/.1)}.bg-black\/30{background-color:rgb(0 0 0/.3)}.bg-destructive{background-color:hsl(var(--destructive))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-\[radial-gradient\(120\%_100\%_at_50\%_110\%\2c rgba\(250\2c 214\2c 87\2c 0\.30\)\2c rgba\(250\2c 214\2c 87\2c 0\.12\)_45\%\2c rgba\(250\2c 214\2c 87\2c 0\)_80\%\)\2c linear-gradient\(180deg\2c rgba\(250\2c 214\2c 87\2c 0\.03\)\2c rgba\(250\2c 214\2c 87\2c 0\.06\)_60\%\2c rgba\(250\2c 214\2c 87\2c 0\.10\)_100\%\)\]{background-image:radial-gradient(120% 100% at 50% 110%,rgba(250,214,87,.3),rgba(250,214,87,.12) 45%,rgba(250,214,87,0) 80%),linear-gradient(180deg,rgba(250,214,87,.03),rgba(250,214,87,.06) 60%,rgba(250,214,87,.1))}.bg-\[radial-gradient\(120\%_100\%_at_50\%_110\%\2c rgba\(250\2c 214\2c 87\2c 0\.45\)\2c rgba\(250\2c 214\2c 87\2c 0\.18\)_45\%\2c rgba\(250\2c 214\2c 87\2c 0\)_80\%\)\2c linear-gradient\(180deg\2c rgba\(250\2c 214\2c 87\2c 0\.05\)\2c rgba\(250\2c 214\2c 87\2c 0\.10\)_60\%\2c rgba\(250\2c 214\2c 87\2c 0\.16\)_100\%\)\]{background-image:radial-gradient(120% 100% at 50% 110%,rgba(250,214,87,.45),rgba(250,214,87,.18) 45%,rgba(250,214,87,0) 80%),linear-gradient(180deg,rgba(250,214,87,.05),rgba(250,214,87,.1) 60%,rgba(250,214,87,.16))}.bg-\[radial-gradient\(120\%_110\%_at_85\%_108\%\2c rgba\(250\2c 214\2c 87\2c 0\.30\)\2c rgba\(250\2c 214\2c 87\2c 0\.12\)_45\%\2c rgba\(250\2c 214\2c 87\2c 0\)_80\%\)\]{background-image:radial-gradient(120% 110% at 85% 108%,rgba(250,214,87,.3),rgba(250,214,87,.12) 45%,rgba(250,214,87,0) 80%)}.bg-\[radial-gradient\(closest-side\2c rgba\(250\2c 214\2c 87\2c 0\.08\)\2c transparent_70\%\)\]{background-image:radial-gradient(closest-side,rgba(250,214,87,.08),transparent 70%)}.bg-\[radial-gradient\(closest-side\2c rgba\(250\2c 214\2c 87\2c 0\.15\)\2c transparent_70\%\)\]{background-image:radial-gradient(closest-side,rgba(250,214,87,.15),transparent 70%)}.bg-\[radial-gradient\(closest-side\2c rgba\(250\2c 214\2c 87\2c 0\.20\)\2c transparent_70\%\)\]{background-image:radial-gradient(closest-side,rgba(250,214,87,.2),transparent 70%)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#a97a34\]{--tw-gradient-from:#a97a34 var(--tw-gradient-from-position);--tw-gradient-to:rgb(169 122 52/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#fad657\]{--tw-gradient-from:#fad657 var(--tw-gradient-from-position);--tw-gradient-to:rgb(250 214 87/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#fce27e\]{--tw-gradient-from:#fce27e var(--tw-gradient-from-position);--tw-gradient-to:rgb(252 226 126/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#fef0bf\]{--tw-gradient-from:#fef0bf var(--tw-gradient-from-position);--tw-gradient-to:rgb(254 240 191/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[rgba\(250\2c 214\2c 87\2c 0\.5\)\]{--tw-gradient-from:rgba(250,214,87,0.5) var(--tw-gradient-from-position);--tw-gradient-to:rgba(250,214,87,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[var\(--color-content-accent\)\]{--tw-gradient-from:var(--color-content-accent) var(--tw-gradient-from-position);--tw-gradient-to:rgb(255 255 255/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-\[\#e5a84a\]{--tw-gradient-to:rgb(229 168 74/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#e5a84a var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-\[\#fad657\]{--tw-gradient-to:rgb(250 214 87/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#fad657 var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-\[rgba\(250\2c 214\2c 87\2c 0\.35\)\]{--tw-gradient-to:rgba(250,214,87,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(250,214,87,0.35) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-\[\#b08d3e\]{--tw-gradient-to:#b08d3e var(--tw-gradient-to-position)}.to-\[\#c9a83f\]{--tw-gradient-to:#c9a83f var(--tw-gradient-to-position)}.to-\[\#f3d9a8\]{--tw-gradient-to:#f3d9a8 var(--tw-gradient-to-position)}.to-\[\#fad657\]{--tw-gradient-to:#fad657 var(--tw-gradient-to-position)}.to-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_40\%\2c transparent\)\]{--tw-gradient-to:color-mix(in srgb,var(--color-content-accent) 40%,transparent) var(--tw-gradient-to-position)}.to-\[rgba\(250\2c 214\2c 87\2c 0\.05\)\]{--tw-gradient-to:rgba(250,214,87,0.05) var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.stroke-current{stroke:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-\[1\.5px\]{padding:1.5px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-28{padding-top:7rem;padding-bottom:7rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-24{padding-bottom:6rem}.pb-6{padding-bottom:1.5rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-7{padding-left:1.75rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pt-0\.5{padding-top:.125rem}.pt-14{padding-top:3.5rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-5xl{font-size:3rem;line-height:1}.text-\[1\.05rem\]{font-size:1.05rem}.text-\[1\.1rem\]{font-size:1.1rem}.text-\[1\.35rem\]{font-size:1.35rem}.text-\[1\.85rem\]{font-size:1.85rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[2\.2rem\]{font-size:2.2rem}.text-\[2\.4rem\]{font-size:2.4rem}.text-\[2\.6rem\]{font-size:2.6rem}.text-\[26px\]{font-size:26px}.text-\[2rem\]{font-size:2rem}.text-\[3\.2rem\]{font-size:3.2rem}.text-\[5\.5rem\]{font-size:5.5rem}.text-\[9vw\]{font-size:9vw}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.normal-case{text-transform:none}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-\[1\.02\]{line-height:1.02}.leading-\[1\.05\]{line-height:1.05}.leading-\[1\.08\]{line-height:1.08}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\[0\.01em\]{letter-spacing:.01em}.tracking-\[0\.06em\]{letter-spacing:.06em}.tracking-\[0\.15em\]{letter-spacing:.15em}.tracking-\[0\.22em\]{letter-spacing:.22em}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-\[2px\]{letter-spacing:2px}.tracking-normal{letter-spacing:0}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-\[color-mix\(in_srgb\2c var\(--color-bg-primary\)_85\%\2c transparent\)\]{color:color-mix(in srgb,var(--color-bg-primary) 85%,transparent)}.text-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_80\%\2c transparent\)\]{color:color-mix(in srgb,var(--color-content-accent) 80%,transparent)}.text-\[color-mix\(in_srgb\2c var\(--color-content-primary\)_50\%\2c transparent\)\]{color:color-mix(in srgb,var(--color-content-primary) 50%,transparent)}.text-\[var\(--color-bg-primary\)\]{color:var(--color-bg-primary)}.text-\[var\(--color-content-accent\)\]{color:var(--color-content-accent)}.text-\[var\(--color-content-on-accent\)\]{color:var(--color-content-on-accent)}.text-\[var\(--color-content-primary\)\]{color:var(--color-content-primary)}.text-\[var\(--color-content-secondary\)\]{color:var(--color-content-secondary)}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-\[0\.55\]{opacity:.55}.shadow-\[0_0_10px_rgba\(229\2c 168\2c 74\2c 0\.6\)\]{--tw-shadow:0 0 10px rgba(229,168,74,0.6);--tw-shadow-colored:0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_12px_4px_rgba\(229\2c 168\2c 74\2c 0\.7\)\]{--tw-shadow:0 0 12px 4px rgba(229,168,74,0.7);--tw-shadow-colored:0 0 12px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_8px_30px_-8px_rgba\(250\2c 214\2c 87\2c 0\.55\)\]{--tw-shadow:0 8px 30px -8px rgba(250,214,87,0.55);--tw-shadow-colored:0 8px 30px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_1px_1px_rgba\(255\2c 255\2c 255\2c 0\.04\)\2c 0_10px_28px_rgba\(0\2c 0\2c 0\2c 0\.30\)\]{--tw-shadow:inset 0 1px 1px rgba(255,255,255,0.04),0 10px 28px rgba(0,0,0,0.30);--tw-shadow-colored:inset 0 1px 1px var(--tw-shadow-color),0 10px 28px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_1px_1px_rgba\(255\2c 255\2c 255\2c 0\.04\)\]{--tw-shadow:inset 0 1px 1px rgba(255,255,255,0.04);--tw-shadow-colored:inset 0 1px 1px var(--tw-shadow-color)}.shadow-\[inset_0_1px_1px_rgba\(255\2c 255\2c 255\2c 0\.04\)\],.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_15\%\2c transparent\)\]{--tw-ring-color:color-mix(in srgb,var(--color-content-accent) 15%,transparent)}.ring-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_25\%\2c transparent\)\]{--tw-ring-color:color-mix(in srgb,var(--color-content-accent) 25%,transparent)}.ring-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_40\%\2c transparent\)\]{--tw-ring-color:color-mix(in srgb,var(--color-content-accent) 40%,transparent)}.blur{--tw-blur:blur(8px)}.blur,.blur-\[120px\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[120px\]{--tw-blur:blur(120px)}.blur-\[30px\]{--tw-blur:blur(30px)}.blur-\[30px\],.blur-\[60px\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[60px\]{--tw-blur:blur(60px)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-\[250ms\]{transition-duration:.25s}.ease-\[cubic-bezier\(0\.19\2c 1\2c 0\.22\2c 1\)\]{transition-timing-function:cubic-bezier(.19,1,.22,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{color-scheme:dark;--color-bg-primary:#0b0b0a;--color-bg-elevated:#131311;--color-bg-input:#0d0d0b;--color-bg-accent-tint:rgba(250,214,87,0.12);--color-bg-success-tint:rgba(62,207,142,0.14);--color-bg-warning-tint:rgba(255,138,92,0.14);--color-content-primary:#ecd9c1;--color-content-secondary:#928e85;--color-content-accent:#fad657;--color-content-on-accent:#201607;--color-content-success:#3ecf8e;--color-content-warning:#ff8a5c;--color-content-danger:#ff6b6b;--color-border-medium:#262521;--color-border-accent:#fad657;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:32px;--space-7:48px;--radius-sm:6px;--radius-md:9px;--radius-lg:14px;--radius-full:999px;--font-serif:"Geist",sans-serif;--background:60 5% 4%;--foreground:33 53% 84%;--card:60 6% 7%;--card-foreground:33 53% 84%;--popover:60 6% 7%;--popover-foreground:33 53% 84%;--primary:36 75% 59%;--primary-foreground:36 64% 8%;--secondary:48 7% 14%;--secondary-foreground:33 53% 84%;--muted:60 6% 7%;--muted-foreground:42 6% 55%;--accent:48 7% 14%;--accent-foreground:33 53% 84%;--destructive:0 100% 71%;--destructive-foreground:60 5% 4%;--border:48 7% 14%;--input:48 7% 14%;--ring:36 75% 59%;--radius:0.6875rem}body{background:var(--color-bg-primary);color:var(--color-content-primary);font-family:Geist,sans-serif;font-size:14px;line-height:1.5}.font-serif{font-family:var(--font-serif)}.shell{max-width:520px;margin:0 auto;padding:var(--space-7) var(--space-5) var(--space-6);display:flex;flex-direction:column;gap:var(--space-4)}.app-bar{position:sticky;top:0;z-index:30;justify-content:space-between;gap:var(--space-3);padding:10px var(--space-5);background:var(--color-bg-primary);border-bottom:1px solid var(--color-border-medium)}.app-bar,.app-bar-brand-group{display:flex;align-items:center}.app-bar-brand-group{gap:var(--space-2)}.app-bar-brand{font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--color-content-primary);text-decoration:none}.app-bar-brand:first-letter{color:var(--color-content-accent)}.app-bar-brand-group .pill{text-transform:uppercase;letter-spacing:.04em}.app-bar-wallet{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;justify-content:flex-end}header{text-align:center;margin-bottom:var(--space-2)}.logo{font-size:28px;font-weight:800;letter-spacing:-.02em}.logo:first-letter{color:var(--color-content-accent)}.tagline{font-size:14px;color:var(--color-content-secondary);margin:6px 0 0}.explore-cta{display:inline-flex;align-items:center;gap:7px;margin-top:var(--space-3);padding:8px 16px;border-radius:var(--radius-full);color:var(--color-content-accent);font-size:13px;font-weight:700;text-decoration:none;border:1px solid transparent;transition:border-color .15s ease-out,background .15s ease-out}.explore-cta,.explore-cta:hover{background:var(--color-bg-accent-tint)}.explore-cta:hover{border-color:var(--color-border-accent)}.card{background:var(--color-bg-elevated);border:1px solid var(--color-border-medium);border-radius:var(--radius-lg);padding:var(--space-5)}.card.center{text-align:center;padding:36px var(--space-5)}.card h2{font-size:16px;font-weight:600;margin:0 0 10px}.card-selected,.card-selected-overlay{border:1px solid transparent;border-radius:4px;background:linear-gradient(180deg,rgba(250,214,87,.1),rgba(250,214,87,.03)) padding-box,linear-gradient(var(--color-bg-elevated),var(--color-bg-elevated)) padding-box,linear-gradient(135deg,rgba(250,214,87,.55),rgba(250,214,87,.12) 50%,rgba(250,214,87,.45)) border-box}.card-selected-overlay{position:absolute;inset:0;pointer-events:none}.card-standard{background:linear-gradient(var(--color-bg-elevated),var(--color-bg-elevated)) padding-box,linear-gradient(180deg,var(--color-border-medium),color-mix(in srgb,var(--color-border-medium) 35%,transparent)) border-box}.card-standard,.nav-shell{position:relative;border:1px solid transparent;border-radius:4px}.nav-shell{background:linear-gradient(color-mix(in srgb,var(--color-bg-elevated) 90%,transparent),color-mix(in srgb,var(--color-bg-elevated) 90%,transparent)) padding-box,linear-gradient(180deg,var(--color-border-medium),color-mix(in srgb,var(--color-border-medium) 35%,transparent)) border-box}.card-hoverable:after{content:"";position:absolute;inset:0;z-index:0;border-radius:4px;pointer-events:none;border:1px solid transparent;background:linear-gradient(180deg,rgba(250,214,87,.1),rgba(250,214,87,.03)) padding-box,linear-gradient(var(--color-bg-elevated),var(--color-bg-elevated)) padding-box,linear-gradient(135deg,rgba(250,214,87,.55),rgba(250,214,87,.12) 50%,rgba(250,214,87,.45)) border-box;opacity:0;transition:opacity .45s ease}.card-hoverable:hover:after{opacity:1}.row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3)}.row.tight{justify-content:flex-start;gap:var(--space-2);margin-top:var(--space-1)}.label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--color-content-secondary)}.balance{font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;margin:6px 0 10px}.pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;border-radius:var(--radius-full);padding:3px 9px;background:var(--color-bg-elevated);color:var(--color-content-secondary)}.pill.ok{background:var(--color-bg-success-tint);color:var(--color-content-success)}.pill.warn{background:var(--color-bg-warning-tint);color:var(--color-content-warning)}.pill.accent{background:var(--color-bg-accent-tint);color:var(--color-content-accent)}.stepper{display:flex;align-items:flex-start}.stepper-step{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.stepper-step:not(:last-child):after{content:"";position:absolute;top:13px;left:50%;width:100%;height:1px;background:var(--color-border-medium);z-index:0}.stepper-step.done:not(:last-child):after{background:var(--color-content-accent)}.stepper-node{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:var(--radius-full);border:1px solid var(--color-border-medium);background:var(--color-bg-input);color:var(--color-content-secondary);font-size:13px;font-weight:700}.stepper-step.active .stepper-node{border-color:var(--color-border-accent);background:var(--color-bg-accent-tint);color:var(--color-content-accent)}.stepper-step.done .stepper-node{border-color:transparent;background:var(--color-content-accent);color:var(--color-content-on-accent)}.stepper-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;text-align:center;color:var(--color-content-secondary)}.stepper-step.active .stepper-label{color:var(--color-content-primary)}.benefit{display:flex;gap:var(--space-3);align-items:flex-start;text-align:left}.benefit-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--radius-md);background:var(--color-bg-accent-tint);color:var(--color-content-accent)}.benefit p{margin:0}.benefit-title{font-weight:600;color:var(--color-content-primary)}.benefit-body{font-size:13px;color:var(--color-content-secondary)}button{background:var(--color-content-accent);color:var(--color-content-on-accent);border:none;border-radius:var(--radius-md);padding:10px 18px;font-size:14px;font-weight:700;cursor:pointer;transition:filter .15s ease-out}button:hover:not(:disabled){filter:brightness(1.06)}button:disabled{opacity:.55;cursor:not-allowed}button.ghost{background:transparent;color:var(--color-content-primary);border:1px solid var(--color-border-medium);font-weight:600}form{gap:var(--space-3)}form,label{display:flex;flex-direction:column}label{gap:5px;font-size:13px;color:var(--color-content-secondary)}input,textarea{background:var(--color-bg-input);border:1px solid var(--color-border-medium);border-radius:var(--radius-md);padding:10px 12px;color:var(--color-content-primary);font-size:14px;font-family:inherit}textarea{resize:vertical;min-height:72px;line-height:1.5}input:focus,textarea:focus{outline:none;border-color:var(--color-border-accent)}code{background:var(--color-bg-input);border:1px solid var(--color-border-medium);border-radius:var(--radius-sm);padding:2px 7px}.hint,code{font-size:13px}.hint{color:var(--color-content-secondary);margin:var(--space-2) 0 var(--space-3)}.error{font-size:13px;color:var(--color-content-danger);margin:10px 0 0}.success{font-size:13px;color:var(--color-content-success);margin:var(--space-3) 0 0}.explorer-link{color:var(--color-content-accent);text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;transition:text-decoration-color .15s ease-out}.explorer-link:hover{text-decoration-style:solid}.tx{margin-top:var(--space-3);border-top:1px solid var(--color-border-medium);padding-top:var(--space-3)}.tx-grid{display:grid;grid-template-columns:auto 1fr;gap:6px var(--space-3);align-items:center;margin:var(--space-2) 0 0}.tx-grid dt{margin:0}.tx-grid dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.tx a{color:var(--color-content-accent);text-decoration:none}.tx-link{display:inline-block;font-size:13px}.tx-link,footer{margin-top:var(--space-3)}footer{font-size:12px;color:var(--color-content-secondary);text-align:center}footer a{color:inherit}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:translate-y-\[-1px\]:hover{--tw-translate-y:-1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_60\%\2c transparent\)\]:hover{border-color:color-mix(in srgb,var(--color-content-accent) 60%,transparent)}.hover\:border-\[var\(--color-border-accent\)\]:hover{border-color:var(--color-border-accent)}.hover\:bg-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_10\%\2c transparent\)\]:hover{background-color:color-mix(in srgb,var(--color-content-accent) 10%,transparent)}.hover\:bg-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_6\%\2c transparent\)\]:hover{background-color:color-mix(in srgb,var(--color-content-accent) 6%,transparent)}.hover\:bg-\[var\(--color-bg-accent-tint\)\]:hover{background-color:var(--color-bg-accent-tint)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:text-\[var\(--color-content-accent\)\]:hover{color:var(--color-content-accent)}.hover\:text-\[var\(--color-content-primary\)\]:hover{color:var(--color-content-primary)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-\[0_10px_40px_-6px_rgba\(250\2c 214\2c 87\2c 0\.75\)\]:hover{--tw-shadow:0 10px 40px -6px rgba(250,214,87,0.75);--tw-shadow-colored:0 10px 40px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness:brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:border-ring:focus-visible{border-color:hsl(var(--ring))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-\[var\(--color-content-accent\)\]:focus-visible{--tw-ring-color:var(--color-content-accent)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.active\:scale-\[0\.98\]:active{--tw-scale-x:0.98;--tw-scale-y:0.98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-55:disabled{opacity:.55}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:-translate-y-\[1px\]{--tw-translate-y:-1px}.group:hover .group-hover\:-translate-y-\[1px\],.group:hover .group-hover\:translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-1{--tw-translate-x:0.25rem}.group:hover .group-hover\:scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:text-left{text-align:left}.sm\:text-\[2\.3rem\]{font-size:2.3rem}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mt-14{margin-top:3.5rem}.md\:mt-16{margin-top:4rem}.md\:mt-2{margin-top:.5rem}.md\:mt-20{margin-top:5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-12{gap:3rem}.md\:gap-8{gap:2rem}.md\:gap-9{gap:2.25rem}.md\:self-auto{align-self:auto}.md\:border-t-0{border-top-width:0}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-7{padding-left:1.75rem;padding-right:1.75rem}.md\:px-9{padding-left:2.25rem;padding-right:2.25rem}.md\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-36{padding-top:9rem;padding-bottom:9rem}.md\:py-40{padding-top:10rem;padding-bottom:10rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.md\:pt-16{padding-top:4rem}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-\[1\.2rem\]{font-size:1.2rem}.md\:text-\[16px\]{font-size:16px}.md\:text-\[2\.7rem\]{font-size:2.7rem}.md\:text-\[2\.8rem\]{font-size:2.8rem}.md\:text-\[3\.2rem\]{font-size:3.2rem}.md\:text-\[3\.4rem\]{font-size:3.4rem}.md\:text-\[30px\]{font-size:30px}.md\:text-\[4rem\]{font-size:4rem}}@media (min-width:901px){.min-\[901px\]\:flex{display:flex}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:left-2{left:.5rem}.lg\:top-24{top:6rem}.lg\:block{display:block}.lg\:h-72{height:18rem}.lg\:w-72{width:18rem}.lg\:grid-cols-\[0\.85fr_1\.15fr\]{grid-template-columns:.85fr 1.15fr}.lg\:grid-cols-\[1fr_7rem_1fr\]{grid-template-columns:1fr 7rem 1fr}.lg\:gap-0{gap:0}.lg\:gap-20{gap:5rem}.lg\:text-\[4\.5rem\]{font-size:4.5rem}}.\[\&\>svg\]\:h-\[18px\]>svg{height:18px}.\[\&\>svg\]\:w-\[18px\]>svg{width:18px}.\[\&\>svg\]\:stroke-current>svg{stroke:currentColor}.\[\&\>svg\]\:stroke-\[1\.75\]>svg{stroke-width:1.75}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} \ No newline at end of file diff --git a/prototype/landing/_next/static/css/a5593bed4515eec3.css b/prototype/landing/_next/static/css/a5593bed4515eec3.css deleted file mode 100644 index d73e22a..0000000 --- a/prototype/landing/_next/static/css/a5593bed4515eec3.css +++ /dev/null @@ -1,5 +0,0 @@ -@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap");*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: } - -/* -! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-left-10{left:-2.5rem}.-top-\[5px\]{top:-5px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-6{bottom:1.5rem}.bottom-\[-22rem\]{bottom:-22rem}.left-0{left:0}.left-1\/2{left:50%}.left-4{left:1rem}.left-\[2\.85rem\]{left:2.85rem}.right-0{right:0}.right-4{right:1rem}.right-\[3\%\]{right:3%}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.top-32{top:8rem}.top-4{top:1rem}.top-6{top:1.5rem}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.mx-auto{margin-left:auto;margin-right:auto}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[4\/5\]{aspect-ratio:4/5}.aspect-video{aspect-ratio:16/9}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[110rem\]{height:110rem}.h-\[18px\]{height:18px}.h-\[24rem\]{height:24rem}.h-\[2px\]{height:2px}.h-\[6px\]{height:6px}.h-\[70rem\]{height:70rem}.h-\[9px\]{height:9px}.h-full{height:100%}.h-px{height:1px}.min-h-72{min-height:18rem}.min-h-\[72px\]{min-height:72px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-24{width:6rem}.w-32{width:8rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-64{width:16rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[110rem\]{width:110rem}.w-\[18px\]{width:18px}.w-\[36rem\]{width:36rem}.w-\[6px\]{width:6px}.w-\[70rem\]{width:70rem}.w-\[9px\]{width:9px}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-\[220px\]{max-width:220px}.max-w-\[44ch\]{max-width:44ch}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-1\/2{--tw-translate-x:50%}.translate-x-1\/2,.translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y:50%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.scroll-mt-24{scroll-margin-top:6rem}.scroll-mt-8{scroll-margin-top:2rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10{gap:2.5rem}.gap-14{gap:3.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-9{gap:2.25rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-\[5\.5px\]{border-radius:5.5px}.rounded-\[inherit\]{border-radius:inherit}.rounded-\[var\(--radius-md\)\]{border-radius:var(--radius-md)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.border{border-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_20\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-accent) 20%,transparent)}.border-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_40\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-accent) 40%,transparent)}.border-\[color-mix\(in_srgb\2c var\(--color-content-primary\)_15\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-primary) 15%,transparent)}.border-\[color-mix\(in_srgb\2c var\(--color-content-primary\)_25\%\2c transparent\)\]{border-color:color-mix(in srgb,var(--color-content-primary) 25%,transparent)}.border-\[var\(--color-border-medium\)\]{border-color:var(--color-border-medium)}.border-border{border-color:hsl(var(--border))}.border-input{border-color:hsl(var(--input))}.bg-\[\#111110\]{--tw-bg-opacity:1;background-color:rgb(17 17 16/var(--tw-bg-opacity,1))}.bg-\[\#f3d9a8\]{--tw-bg-opacity:1;background-color:rgb(243 217 168/var(--tw-bg-opacity,1))}.bg-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_6\%\2c transparent\)\]{background-color:color-mix(in srgb,var(--color-content-accent) 6%,transparent)}.bg-\[var\(--color-bg-accent-tint\)\]{background-color:var(--color-bg-accent-tint)}.bg-\[var\(--color-bg-elevated\)\]{background-color:var(--color-bg-elevated)}.bg-\[var\(--color-bg-input\)\]{background-color:var(--color-bg-input)}.bg-\[var\(--color-bg-primary\)\]{background-color:var(--color-bg-primary)}.bg-\[var\(--color-border-medium\)\]{background-color:var(--color-border-medium)}.bg-\[var\(--color-content-accent\)\]{background-color:var(--color-content-accent)}.bg-black\/10{background-color:rgb(0 0 0/.1)}.bg-black\/30{background-color:rgb(0 0 0/.3)}.bg-destructive{background-color:hsl(var(--destructive))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-\[radial-gradient\(120\%_100\%_at_50\%_110\%\2c rgba\(250\2c 214\2c 87\2c 0\.30\)\2c rgba\(250\2c 214\2c 87\2c 0\.12\)_45\%\2c rgba\(250\2c 214\2c 87\2c 0\)_80\%\)\2c linear-gradient\(180deg\2c rgba\(250\2c 214\2c 87\2c 0\.03\)\2c rgba\(250\2c 214\2c 87\2c 0\.06\)_60\%\2c rgba\(250\2c 214\2c 87\2c 0\.10\)_100\%\)\]{background-image:radial-gradient(120% 100% at 50% 110%,rgba(250,214,87,.3),rgba(250,214,87,.12) 45%,rgba(250,214,87,0) 80%),linear-gradient(180deg,rgba(250,214,87,.03),rgba(250,214,87,.06) 60%,rgba(250,214,87,.1))}.bg-\[radial-gradient\(120\%_100\%_at_50\%_110\%\2c rgba\(250\2c 214\2c 87\2c 0\.45\)\2c rgba\(250\2c 214\2c 87\2c 0\.18\)_45\%\2c rgba\(250\2c 214\2c 87\2c 0\)_80\%\)\2c linear-gradient\(180deg\2c rgba\(250\2c 214\2c 87\2c 0\.05\)\2c rgba\(250\2c 214\2c 87\2c 0\.10\)_60\%\2c rgba\(250\2c 214\2c 87\2c 0\.16\)_100\%\)\]{background-image:radial-gradient(120% 100% at 50% 110%,rgba(250,214,87,.45),rgba(250,214,87,.18) 45%,rgba(250,214,87,0) 80%),linear-gradient(180deg,rgba(250,214,87,.05),rgba(250,214,87,.1) 60%,rgba(250,214,87,.16))}.bg-\[radial-gradient\(120\%_110\%_at_85\%_108\%\2c rgba\(250\2c 214\2c 87\2c 0\.30\)\2c rgba\(250\2c 214\2c 87\2c 0\.12\)_45\%\2c rgba\(250\2c 214\2c 87\2c 0\)_80\%\)\]{background-image:radial-gradient(120% 110% at 85% 108%,rgba(250,214,87,.3),rgba(250,214,87,.12) 45%,rgba(250,214,87,0) 80%)}.bg-\[radial-gradient\(closest-side\2c rgba\(250\2c 214\2c 87\2c 0\.08\)\2c transparent_70\%\)\]{background-image:radial-gradient(closest-side,rgba(250,214,87,.08),transparent 70%)}.bg-\[radial-gradient\(closest-side\2c rgba\(250\2c 214\2c 87\2c 0\.15\)\2c transparent_70\%\)\]{background-image:radial-gradient(closest-side,rgba(250,214,87,.15),transparent 70%)}.bg-\[radial-gradient\(closest-side\2c rgba\(250\2c 214\2c 87\2c 0\.20\)\2c transparent_70\%\)\]{background-image:radial-gradient(closest-side,rgba(250,214,87,.2),transparent 70%)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#a97a34\]{--tw-gradient-from:#a97a34 var(--tw-gradient-from-position);--tw-gradient-to:rgb(169 122 52/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#fad657\]{--tw-gradient-from:#fad657 var(--tw-gradient-from-position);--tw-gradient-to:rgb(250 214 87/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#fce27e\]{--tw-gradient-from:#fce27e var(--tw-gradient-from-position);--tw-gradient-to:rgb(252 226 126/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[\#fef0bf\]{--tw-gradient-from:#fef0bf var(--tw-gradient-from-position);--tw-gradient-to:rgb(254 240 191/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[rgba\(250\2c 214\2c 87\2c 0\.5\)\]{--tw-gradient-from:rgba(250,214,87,0.5) var(--tw-gradient-from-position);--tw-gradient-to:rgba(250,214,87,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-\[var\(--color-content-accent\)\]{--tw-gradient-from:var(--color-content-accent) var(--tw-gradient-from-position);--tw-gradient-to:rgb(255 255 255/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-\[\#e5a84a\]{--tw-gradient-to:rgb(229 168 74/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#e5a84a var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-\[\#fad657\]{--tw-gradient-to:rgb(250 214 87/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#fad657 var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-\[rgba\(250\2c 214\2c 87\2c 0\.35\)\]{--tw-gradient-to:rgba(250,214,87,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(250,214,87,0.35) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-\[\#b08d3e\]{--tw-gradient-to:#b08d3e var(--tw-gradient-to-position)}.to-\[\#c9a83f\]{--tw-gradient-to:#c9a83f var(--tw-gradient-to-position)}.to-\[\#f3d9a8\]{--tw-gradient-to:#f3d9a8 var(--tw-gradient-to-position)}.to-\[\#fad657\]{--tw-gradient-to:#fad657 var(--tw-gradient-to-position)}.to-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_40\%\2c transparent\)\]{--tw-gradient-to:color-mix(in srgb,var(--color-content-accent) 40%,transparent) var(--tw-gradient-to-position)}.to-\[rgba\(250\2c 214\2c 87\2c 0\.05\)\]{--tw-gradient-to:rgba(250,214,87,0.05) var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-\[1\.5px\]{padding:1.5px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-28{padding-top:7rem;padding-bottom:7rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-24{padding-bottom:6rem}.pb-6{padding-bottom:1.5rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-7{padding-left:1.75rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-4{padding-right:1rem}.pt-0\.5{padding-top:.125rem}.pt-14{padding-top:3.5rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-5xl{font-size:3rem;line-height:1}.text-\[1\.05rem\]{font-size:1.05rem}.text-\[1\.1rem\]{font-size:1.1rem}.text-\[1\.35rem\]{font-size:1.35rem}.text-\[1\.85rem\]{font-size:1.85rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[2\.2rem\]{font-size:2.2rem}.text-\[2\.4rem\]{font-size:2.4rem}.text-\[2\.6rem\]{font-size:2.6rem}.text-\[26px\]{font-size:26px}.text-\[2rem\]{font-size:2rem}.text-\[3\.2rem\]{font-size:3.2rem}.text-\[5\.5rem\]{font-size:5.5rem}.text-\[9vw\]{font-size:9vw}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.normal-case{text-transform:none}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-\[1\.02\]{line-height:1.02}.leading-\[1\.05\]{line-height:1.05}.leading-\[1\.08\]{line-height:1.08}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\[0\.01em\]{letter-spacing:.01em}.tracking-\[0\.15em\]{letter-spacing:.15em}.tracking-\[0\.22em\]{letter-spacing:.22em}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-\[2px\]{letter-spacing:2px}.tracking-normal{letter-spacing:0}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-\[color-mix\(in_srgb\2c var\(--color-bg-primary\)_85\%\2c transparent\)\]{color:color-mix(in srgb,var(--color-bg-primary) 85%,transparent)}.text-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_80\%\2c transparent\)\]{color:color-mix(in srgb,var(--color-content-accent) 80%,transparent)}.text-\[color-mix\(in_srgb\2c var\(--color-content-primary\)_50\%\2c transparent\)\]{color:color-mix(in srgb,var(--color-content-primary) 50%,transparent)}.text-\[var\(--color-bg-primary\)\]{color:var(--color-bg-primary)}.text-\[var\(--color-content-accent\)\]{color:var(--color-content-accent)}.text-\[var\(--color-content-on-accent\)\]{color:var(--color-content-on-accent)}.text-\[var\(--color-content-primary\)\]{color:var(--color-content-primary)}.text-\[var\(--color-content-secondary\)\]{color:var(--color-content-secondary)}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-\[0\.55\]{opacity:.55}.shadow-\[0_0_10px_rgba\(229\2c 168\2c 74\2c 0\.6\)\]{--tw-shadow:0 0 10px rgba(229,168,74,0.6);--tw-shadow-colored:0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_12px_4px_rgba\(229\2c 168\2c 74\2c 0\.7\)\]{--tw-shadow:0 0 12px 4px rgba(229,168,74,0.7);--tw-shadow-colored:0 0 12px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_8px_30px_-8px_rgba\(250\2c 214\2c 87\2c 0\.55\)\]{--tw-shadow:0 8px 30px -8px rgba(250,214,87,0.55);--tw-shadow-colored:0 8px 30px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_1px_1px_rgba\(255\2c 255\2c 255\2c 0\.04\)\2c 0_10px_28px_rgba\(0\2c 0\2c 0\2c 0\.30\)\]{--tw-shadow:inset 0 1px 1px rgba(255,255,255,0.04),0 10px 28px rgba(0,0,0,0.30);--tw-shadow-colored:inset 0 1px 1px var(--tw-shadow-color),0 10px 28px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_1px_1px_rgba\(255\2c 255\2c 255\2c 0\.04\)\]{--tw-shadow:inset 0 1px 1px rgba(255,255,255,0.04);--tw-shadow-colored:inset 0 1px 1px var(--tw-shadow-color)}.shadow-\[inset_0_1px_1px_rgba\(255\2c 255\2c 255\2c 0\.04\)\],.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_15\%\2c transparent\)\]{--tw-ring-color:color-mix(in srgb,var(--color-content-accent) 15%,transparent)}.ring-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_25\%\2c transparent\)\]{--tw-ring-color:color-mix(in srgb,var(--color-content-accent) 25%,transparent)}.ring-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_40\%\2c transparent\)\]{--tw-ring-color:color-mix(in srgb,var(--color-content-accent) 40%,transparent)}.blur{--tw-blur:blur(8px)}.blur,.blur-\[120px\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[120px\]{--tw-blur:blur(120px)}.blur-\[30px\]{--tw-blur:blur(30px)}.blur-\[30px\],.blur-\[60px\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[60px\]{--tw-blur:blur(60px)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-\[250ms\]{transition-duration:.25s}.ease-\[cubic-bezier\(0\.19\2c 1\2c 0\.22\2c 1\)\]{transition-timing-function:cubic-bezier(.19,1,.22,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{color-scheme:dark;--color-bg-primary:#0b0b0a;--color-bg-elevated:#131311;--color-bg-input:#0d0d0b;--color-bg-accent-tint:rgba(250,214,87,0.12);--color-bg-success-tint:rgba(62,207,142,0.14);--color-bg-warning-tint:rgba(255,138,92,0.14);--color-content-primary:#ecd9c1;--color-content-secondary:#928e85;--color-content-accent:#fad657;--color-content-on-accent:#201607;--color-content-success:#3ecf8e;--color-content-warning:#ff8a5c;--color-content-danger:#ff6b6b;--color-border-medium:#262521;--color-border-accent:#fad657;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:32px;--space-7:48px;--radius-sm:6px;--radius-md:9px;--radius-lg:14px;--radius-full:999px;--font-serif:"Geist",sans-serif;--background:60 5% 4%;--foreground:33 53% 84%;--card:60 6% 7%;--card-foreground:33 53% 84%;--popover:60 6% 7%;--popover-foreground:33 53% 84%;--primary:36 75% 59%;--primary-foreground:36 64% 8%;--secondary:48 7% 14%;--secondary-foreground:33 53% 84%;--muted:60 6% 7%;--muted-foreground:42 6% 55%;--accent:48 7% 14%;--accent-foreground:33 53% 84%;--destructive:0 100% 71%;--destructive-foreground:60 5% 4%;--border:48 7% 14%;--input:48 7% 14%;--ring:36 75% 59%;--radius:0.6875rem}body{background:var(--color-bg-primary);color:var(--color-content-primary);font-family:Geist,sans-serif;font-size:14px;line-height:1.5}.font-serif{font-family:var(--font-serif)}.shell{max-width:520px;margin:0 auto;padding:var(--space-7) var(--space-5) var(--space-6);display:flex;flex-direction:column;gap:var(--space-4)}.app-bar{position:sticky;top:0;z-index:30;justify-content:space-between;gap:var(--space-3);padding:10px var(--space-5);background:var(--color-bg-primary);border-bottom:1px solid var(--color-border-medium)}.app-bar,.app-bar-brand-group{display:flex;align-items:center}.app-bar-brand-group{gap:var(--space-2)}.app-bar-brand{font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--color-content-primary);text-decoration:none}.app-bar-brand:first-letter{color:var(--color-content-accent)}.app-bar-brand-group .pill{text-transform:uppercase;letter-spacing:.04em}.app-bar-wallet{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;justify-content:flex-end}header{text-align:center;margin-bottom:var(--space-2)}.logo{font-size:28px;font-weight:800;letter-spacing:-.02em}.logo:first-letter{color:var(--color-content-accent)}.tagline{font-size:14px;color:var(--color-content-secondary);margin:6px 0 0}.explore-cta{display:inline-flex;align-items:center;gap:7px;margin-top:var(--space-3);padding:8px 16px;border-radius:var(--radius-full);color:var(--color-content-accent);font-size:13px;font-weight:700;text-decoration:none;border:1px solid transparent;transition:border-color .15s ease-out,background .15s ease-out}.explore-cta,.explore-cta:hover{background:var(--color-bg-accent-tint)}.explore-cta:hover{border-color:var(--color-border-accent)}.card{background:var(--color-bg-elevated);border:1px solid var(--color-border-medium);border-radius:var(--radius-lg);padding:var(--space-5)}.card.center{text-align:center;padding:36px var(--space-5)}.card h2{font-size:16px;font-weight:600;margin:0 0 10px}.card-selected,.card-selected-overlay{border:1px solid transparent;border-radius:4px;background:linear-gradient(180deg,rgba(250,214,87,.1),rgba(250,214,87,.03)) padding-box,linear-gradient(var(--color-bg-elevated),var(--color-bg-elevated)) padding-box,linear-gradient(135deg,rgba(250,214,87,.55),rgba(250,214,87,.12) 50%,rgba(250,214,87,.45)) border-box}.card-selected-overlay{position:absolute;inset:0;pointer-events:none}.card-standard{background:linear-gradient(var(--color-bg-elevated),var(--color-bg-elevated)) padding-box,linear-gradient(180deg,var(--color-border-medium),color-mix(in srgb,var(--color-border-medium) 35%,transparent)) border-box}.card-standard,.nav-shell{position:relative;border:1px solid transparent;border-radius:4px}.nav-shell{background:linear-gradient(color-mix(in srgb,var(--color-bg-elevated) 90%,transparent),color-mix(in srgb,var(--color-bg-elevated) 90%,transparent)) padding-box,linear-gradient(180deg,var(--color-border-medium),color-mix(in srgb,var(--color-border-medium) 35%,transparent)) border-box}.card-hoverable:after{content:"";position:absolute;inset:0;z-index:0;border-radius:4px;pointer-events:none;border:1px solid transparent;background:linear-gradient(180deg,rgba(250,214,87,.1),rgba(250,214,87,.03)) padding-box,linear-gradient(var(--color-bg-elevated),var(--color-bg-elevated)) padding-box,linear-gradient(135deg,rgba(250,214,87,.55),rgba(250,214,87,.12) 50%,rgba(250,214,87,.45)) border-box;opacity:0;transition:opacity .45s ease}.card-hoverable:hover:after{opacity:1}.row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3)}.row.tight{justify-content:flex-start;gap:var(--space-2);margin-top:var(--space-1)}.label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--color-content-secondary)}.balance{font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;margin:6px 0 10px}.pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;border-radius:var(--radius-full);padding:3px 9px;background:var(--color-bg-elevated);color:var(--color-content-secondary)}.pill.ok{background:var(--color-bg-success-tint);color:var(--color-content-success)}.pill.warn{background:var(--color-bg-warning-tint);color:var(--color-content-warning)}.pill.accent{background:var(--color-bg-accent-tint);color:var(--color-content-accent)}.stepper{display:flex;align-items:flex-start}.stepper-step{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.stepper-step:not(:last-child):after{content:"";position:absolute;top:13px;left:50%;width:100%;height:1px;background:var(--color-border-medium);z-index:0}.stepper-step.done:not(:last-child):after{background:var(--color-content-accent)}.stepper-node{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:var(--radius-full);border:1px solid var(--color-border-medium);background:var(--color-bg-input);color:var(--color-content-secondary);font-size:13px;font-weight:700}.stepper-step.active .stepper-node{border-color:var(--color-border-accent);background:var(--color-bg-accent-tint);color:var(--color-content-accent)}.stepper-step.done .stepper-node{border-color:transparent;background:var(--color-content-accent);color:var(--color-content-on-accent)}.stepper-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;text-align:center;color:var(--color-content-secondary)}.stepper-step.active .stepper-label{color:var(--color-content-primary)}.benefit{display:flex;gap:var(--space-3);align-items:flex-start;text-align:left}.benefit-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--radius-md);background:var(--color-bg-accent-tint);color:var(--color-content-accent)}.benefit p{margin:0}.benefit-title{font-weight:600;color:var(--color-content-primary)}.benefit-body{font-size:13px;color:var(--color-content-secondary)}button{background:var(--color-content-accent);color:var(--color-content-on-accent);border:none;border-radius:var(--radius-md);padding:10px 18px;font-size:14px;font-weight:700;cursor:pointer;transition:filter .15s ease-out}button:hover:not(:disabled){filter:brightness(1.06)}button:disabled{opacity:.55;cursor:not-allowed}button.ghost{background:transparent;color:var(--color-content-primary);border:1px solid var(--color-border-medium);font-weight:600}form{gap:var(--space-3)}form,label{display:flex;flex-direction:column}label{gap:5px;font-size:13px;color:var(--color-content-secondary)}input,textarea{background:var(--color-bg-input);border:1px solid var(--color-border-medium);border-radius:var(--radius-md);padding:10px 12px;color:var(--color-content-primary);font-size:14px;font-family:inherit}textarea{resize:vertical;min-height:72px;line-height:1.5}input:focus,textarea:focus{outline:none;border-color:var(--color-border-accent)}code{background:var(--color-bg-input);border:1px solid var(--color-border-medium);border-radius:var(--radius-sm);padding:2px 7px}.hint,code{font-size:13px}.hint{color:var(--color-content-secondary);margin:var(--space-2) 0 var(--space-3)}.error{font-size:13px;color:var(--color-content-danger);margin:10px 0 0}.success{font-size:13px;color:var(--color-content-success);margin:var(--space-3) 0 0}.explorer-link{color:var(--color-content-accent);text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;transition:text-decoration-color .15s ease-out}.explorer-link:hover{text-decoration-style:solid}.tx{margin-top:var(--space-3);border-top:1px solid var(--color-border-medium);padding-top:var(--space-3)}.tx-grid{display:grid;grid-template-columns:auto 1fr;gap:6px var(--space-3);align-items:center;margin:var(--space-2) 0 0}.tx-grid dt{margin:0}.tx-grid dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.tx a{color:var(--color-content-accent);text-decoration:none}.tx-link{display:inline-block;font-size:13px}.tx-link,footer{margin-top:var(--space-3)}footer{font-size:12px;color:var(--color-content-secondary);text-align:center}footer a{color:inherit}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:translate-y-\[-1px\]:hover{--tw-translate-y:-1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_60\%\2c transparent\)\]:hover{border-color:color-mix(in srgb,var(--color-content-accent) 60%,transparent)}.hover\:bg-\[color-mix\(in_srgb\2c var\(--color-content-accent\)_10\%\2c transparent\)\]:hover{background-color:color-mix(in srgb,var(--color-content-accent) 10%,transparent)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:text-\[var\(--color-content-accent\)\]:hover{color:var(--color-content-accent)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-\[0_10px_40px_-6px_rgba\(250\2c 214\2c 87\2c 0\.75\)\]:hover{--tw-shadow:0 10px 40px -6px rgba(250,214,87,0.75);--tw-shadow-colored:0 10px 40px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness:brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:border-ring:focus-visible{border-color:hsl(var(--ring))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.active\:scale-\[0\.98\]:active{--tw-scale-x:0.98;--tw-scale-y:0.98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-55:disabled{opacity:.55}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:-translate-y-\[1px\]{--tw-translate-y:-1px}.group:hover .group-hover\:-translate-y-\[1px\],.group:hover .group-hover\:translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:translate-x-1{--tw-translate-x:0.25rem}.group:hover .group-hover\:scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:text-left{text-align:left}.sm\:text-\[2\.3rem\]{font-size:2.3rem}}@media (min-width:768px){.md\:ml-auto{margin-left:auto}.md\:mt-14{margin-top:3.5rem}.md\:mt-16{margin-top:4rem}.md\:mt-2{margin-top:.5rem}.md\:mt-20{margin-top:5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-12{gap:3rem}.md\:gap-8{gap:2rem}.md\:gap-9{gap:2.25rem}.md\:self-auto{align-self:auto}.md\:border-t-0{border-top-width:0}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-7{padding-left:1.75rem;padding-right:1.75rem}.md\:px-9{padding-left:2.25rem;padding-right:2.25rem}.md\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-36{padding-top:9rem;padding-bottom:9rem}.md\:py-40{padding-top:10rem;padding-bottom:10rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.md\:pt-16{padding-top:4rem}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-\[1\.2rem\]{font-size:1.2rem}.md\:text-\[16px\]{font-size:16px}.md\:text-\[2\.7rem\]{font-size:2.7rem}.md\:text-\[2\.8rem\]{font-size:2.8rem}.md\:text-\[3\.2rem\]{font-size:3.2rem}.md\:text-\[3\.4rem\]{font-size:3.4rem}.md\:text-\[30px\]{font-size:30px}.md\:text-\[4rem\]{font-size:4rem}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:left-2{left:.5rem}.lg\:top-24{top:6rem}.lg\:block{display:block}.lg\:h-72{height:18rem}.lg\:w-72{width:18rem}.lg\:grid-cols-\[0\.85fr_1\.15fr\]{grid-template-columns:.85fr 1.15fr}.lg\:grid-cols-\[1fr_7rem_1fr\]{grid-template-columns:1fr 7rem 1fr}.lg\:gap-0{gap:0}.lg\:gap-20{gap:5rem}.lg\:text-\[4\.5rem\]{font-size:4.5rem}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} \ No newline at end of file diff --git a/prototype/landing/community/demo.html b/prototype/landing/community/demo.html index b5e5200..087c138 100644 --- a/prototype/landing/community/demo.html +++ b/prototype/landing/community/demo.html @@ -1 +1 @@ -Komunify · One subscription, every community perk
komunifytestnet

komunify

Community

Content

Subscribe on the dashboard → to unlock and read.

\ No newline at end of file +Komunify · One subscription, every community perk
komunifytestnet

komunify

Community

Content

Subscribe on the dashboard → to unlock and read.

\ No newline at end of file diff --git a/prototype/landing/community/demo.txt b/prototype/landing/community/demo.txt index 8c67deb..54a5f24 100644 --- a/prototype/landing/community/demo.txt +++ b/prototype/landing/community/demo.txt @@ -1,9 +1,9 @@ 1:"$Sreact.fragment" -2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"SmoothScroll"] -3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"QueryProvider"] -4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"WalletProvider"] -5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"TooltipProvider"] -6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"AppHeader"] +2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"SmoothScroll"] +3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"QueryProvider"] +4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"WalletProvider"] +5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"TooltipProvider"] +6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"AppHeader"] 7:I[5341,[],""] 8:I[25,[],""] a:I[5104,[],"OutletBoundary"] @@ -12,8 +12,8 @@ e:I[5104,[],"ViewportBoundary"] 10:I[5104,[],"MetadataBoundary"] 11:"$Sreact.suspense" 13:I[4431,[],""] -:HL["/landing/_next/static/css/a5593bed4515eec3.css","style"] -0:{"P":null,"b":"6YiE5Arqv4HJaFndY-hrg","p":"/landing","c":["","community","demo"],"i":false,"f":[[["",{"children":["community",{"children":[["address","demo","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/a5593bed4515eec3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["community",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["address","demo","d"],["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L9",null,["$","$La",null,{"children":["$Lb",["$","$Lc",null,{"promise":"$@d"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Le",null,{"children":"$Lf"}],null],["$","$L10",null,{"children":["$","div",null,{"hidden":true,"children":["$","$11",null,{"fallback":null,"children":"$L12"}]}]}]]}],false]],"m":"$undefined","G":["$13",[]],"s":false,"S":true} +:HL["/landing/_next/static/css/107189fb9877e5d6.css","style"] +0:{"P":null,"b":"6oSsDFFWxQ97bynFlWBxq","p":"/landing","c":["","community","demo"],"i":false,"f":[[["",{"children":["community",{"children":[["address","demo","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/107189fb9877e5d6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["community",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["address","demo","d"],["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L9",null,["$","$La",null,{"children":["$Lb",["$","$Lc",null,{"promise":"$@d"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Le",null,{"children":"$Lf"}],null],["$","$L10",null,{"children":["$","div",null,{"hidden":true,"children":["$","$11",null,{"fallback":null,"children":"$L12"}]}]}]]}],false]],"m":"$undefined","G":["$13",[]],"s":false,"S":true} 14:I[6185,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","685","static/chunks/app/community/%5Baddress%5D/page-ce4c66e8fb55f531.js"],"CommunityView"] 9:["$","main",null,{"className":"shell","children":["$","$L14",null,{"address":"demo"}]}] f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/prototype/landing/dashboard.html b/prototype/landing/dashboard.html index 27b522d..992d5a2 100644 --- a/prototype/landing/dashboard.html +++ b/prototype/landing/dashboard.html @@ -1 +1 @@ -Komunify · One subscription, every community perk
komunifytestnet

Single subscription multiple benefits

Explore communities & content
Step 1 of 2

Connect your wallet

Your Stellar wallet is your account here. No email, no password. Connect Freighter to get started.

Traction

Every figure is live on-chain state, not a database.

\ No newline at end of file +Komunify · One subscription, every community perk
komunifytestnet

Single subscription multiple benefits

Explore communities & content
Step 1 of 2

Connect your wallet

Your Stellar wallet is your account here. No email, no password. Connect Freighter to get started.

Traction

Every figure is live on-chain state, not a database.

\ No newline at end of file diff --git a/prototype/landing/dashboard.txt b/prototype/landing/dashboard.txt index 8e06c97..d69d018 100644 --- a/prototype/landing/dashboard.txt +++ b/prototype/landing/dashboard.txt @@ -1,22 +1,23 @@ 1:"$Sreact.fragment" -2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"SmoothScroll"] -3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"QueryProvider"] -4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"WalletProvider"] -5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"TooltipProvider"] -6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"AppHeader"] +2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"SmoothScroll"] +3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"QueryProvider"] +4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"WalletProvider"] +5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"TooltipProvider"] +6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"AppHeader"] 7:I[5341,[],""] 8:I[25,[],""] -9:I[8657,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","131","static/chunks/131-147d95869be10e39.js","242","static/chunks/242-5549aec57c3b048c.js","126","static/chunks/126-792128eb3af634df.js","105","static/chunks/app/dashboard/page-57c79f5cdb72e6fa.js"],"DashboardShell"] -a:I[5104,[],"OutletBoundary"] -c:I[7158,[],"AsyncMetadataOutlet"] -e:I[5104,[],"ViewportBoundary"] -10:I[5104,[],"MetadataBoundary"] -11:"$Sreact.suspense" -13:I[4431,[],""] -:HL["/landing/_next/static/css/a5593bed4515eec3.css","style"] -0:{"P":null,"b":"6YiE5Arqv4HJaFndY-hrg","p":"/landing","c":["","dashboard"],"i":false,"f":[[["",{"children":["dashboard",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/a5593bed4515eec3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","main",null,{"className":"shell","children":["$","$L9",null,{}]}],null,["$","$La",null,{"children":["$Lb",["$","$Lc",null,{"promise":"$@d"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Le",null,{"children":"$Lf"}],null],["$","$L10",null,{"children":["$","div",null,{"hidden":true,"children":["$","$11",null,{"fallback":null,"children":"$L12"}]}]}]]}],false]],"m":"$undefined","G":["$13",[]],"s":false,"S":true} -f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -b:null -14:I[6505,[],"IconMark"] -d:{"metadata":[["$","title","0",{"children":"Komunify · One subscription, every community perk"}],["$","meta","1",{"name":"description","content":"Pay one subscription on Stellar and unlock premium access, member discounts, learning resources, and digital assets across partner communities. Soroban splits every payment on-chain."}],["$","link","2",{"rel":"icon","href":"/landing/icon.png?69de32600d54d3ce","type":"image/png","sizes":"700x700"}],["$","$L14","3",{}]],"error":null,"digest":"$undefined"} -12:"$d:metadata" +9:I[6263,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","895","static/chunks/895-362a009af07859ea.js","242","static/chunks/242-5549aec57c3b048c.js","92","static/chunks/92-88d9049bdefca6df.js","105","static/chunks/app/dashboard/page-9c39e857681bfb51.js"],"AppSidenav"] +a:I[8657,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","895","static/chunks/895-362a009af07859ea.js","242","static/chunks/242-5549aec57c3b048c.js","92","static/chunks/92-88d9049bdefca6df.js","105","static/chunks/app/dashboard/page-9c39e857681bfb51.js"],"DashboardShell"] +b:I[5104,[],"OutletBoundary"] +d:I[7158,[],"AsyncMetadataOutlet"] +f:I[5104,[],"ViewportBoundary"] +11:I[5104,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[4431,[],""] +:HL["/landing/_next/static/css/107189fb9877e5d6.css","style"] +0:{"P":null,"b":"6oSsDFFWxQ97bynFlWBxq","p":"/landing","c":["","dashboard"],"i":false,"f":[[["",{"children":["dashboard",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/107189fb9877e5d6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"flex min-h-screen","children":[["$","$L9",null,{}],["$","div",null,{"className":"flex-1","children":["$","main",null,{"className":"shell","children":["$","$La",null,{}]}]}]]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[6505,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"Komunify · One subscription, every community perk"}],["$","meta","1",{"name":"description","content":"Pay one subscription on Stellar and unlock premium access, member discounts, learning resources, and digital assets across partner communities. Soroban splits every payment on-chain."}],["$","link","2",{"rel":"icon","href":"/landing/icon.png?69de32600d54d3ce","type":"image/png","sizes":"700x700"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/prototype/landing/explore.html b/prototype/landing/explore.html index 4f03a60..c4a60d1 100644 --- a/prototype/landing/explore.html +++ b/prototype/landing/explore.html @@ -1 +1 @@ -Komunify · One subscription, every community perk
komunifytestnet

Discover communities. Unlock their libraries with one subscription.

Go to your dashboard →

\ No newline at end of file +Komunify · One subscription, every community perk
komunifytestnet

Discover communities. Unlock their libraries with one subscription.

Go to your dashboard →

\ No newline at end of file diff --git a/prototype/landing/explore.txt b/prototype/landing/explore.txt index 1abbb18..6c93536 100644 --- a/prototype/landing/explore.txt +++ b/prototype/landing/explore.txt @@ -1,22 +1,23 @@ 1:"$Sreact.fragment" -2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"SmoothScroll"] -3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"QueryProvider"] -4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"WalletProvider"] -5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"TooltipProvider"] -6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"AppHeader"] +2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"SmoothScroll"] +3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"QueryProvider"] +4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"WalletProvider"] +5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"TooltipProvider"] +6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"AppHeader"] 7:I[5341,[],""] 8:I[25,[],""] -9:I[6773,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","314","static/chunks/app/explore/page-a560012ae2987c7e.js"],"ExploreView"] -a:I[5104,[],"OutletBoundary"] -c:I[7158,[],"AsyncMetadataOutlet"] -e:I[5104,[],"ViewportBoundary"] -10:I[5104,[],"MetadataBoundary"] -11:"$Sreact.suspense" -13:I[4431,[],""] -:HL["/landing/_next/static/css/a5593bed4515eec3.css","style"] -0:{"P":null,"b":"6YiE5Arqv4HJaFndY-hrg","p":"/landing","c":["","explore"],"i":false,"f":[[["",{"children":["explore",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/a5593bed4515eec3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["explore",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","main",null,{"className":"shell","children":["$","$L9",null,{}]}],null,["$","$La",null,{"children":["$Lb",["$","$Lc",null,{"promise":"$@d"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Le",null,{"children":"$Lf"}],null],["$","$L10",null,{"children":["$","div",null,{"hidden":true,"children":["$","$11",null,{"fallback":null,"children":"$L12"}]}]}]]}],false]],"m":"$undefined","G":["$13",[]],"s":false,"S":true} -f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -b:null -14:I[6505,[],"IconMark"] -d:{"metadata":[["$","title","0",{"children":"Komunify · One subscription, every community perk"}],["$","meta","1",{"name":"description","content":"Pay one subscription on Stellar and unlock premium access, member discounts, learning resources, and digital assets across partner communities. Soroban splits every payment on-chain."}],["$","link","2",{"rel":"icon","href":"/landing/icon.png?69de32600d54d3ce","type":"image/png","sizes":"700x700"}],["$","$L14","3",{}]],"error":null,"digest":"$undefined"} -12:"$d:metadata" +9:I[6263,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","314","static/chunks/app/explore/page-22267a65446a84a1.js"],"AppSidenav"] +a:I[6773,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","314","static/chunks/app/explore/page-22267a65446a84a1.js"],"ExploreView"] +b:I[5104,[],"OutletBoundary"] +d:I[7158,[],"AsyncMetadataOutlet"] +f:I[5104,[],"ViewportBoundary"] +11:I[5104,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[4431,[],""] +:HL["/landing/_next/static/css/107189fb9877e5d6.css","style"] +0:{"P":null,"b":"6oSsDFFWxQ97bynFlWBxq","p":"/landing","c":["","explore"],"i":false,"f":[[["",{"children":["explore",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/107189fb9877e5d6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["explore",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"flex min-h-screen","children":[["$","$L9",null,{}],["$","div",null,{"className":"flex-1","children":["$","main",null,{"className":"shell","children":["$","$La",null,{}]}]}]]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[6505,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"Komunify · One subscription, every community perk"}],["$","meta","1",{"name":"description","content":"Pay one subscription on Stellar and unlock premium access, member discounts, learning resources, and digital assets across partner communities. Soroban splits every payment on-chain."}],["$","link","2",{"rel":"icon","href":"/landing/icon.png?69de32600d54d3ce","type":"image/png","sizes":"700x700"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata" diff --git a/prototype/landing/index.html b/prototype/landing/index.html index dd131ba..20f0223 100644 --- a/prototype/landing/index.html +++ b/prototype/landing/index.html @@ -1 +1 @@ -Komunify · One subscription, every community perk
Verified on-chain • Instant payouts

Onesubscriptionformultiplecommunity perks.

One subscription, split on-chain the moment it settles. Soroban routes every payment to the project owner, community manager, and platform, and unlocks perks across partner communities.

HOW IT WORKS

-+

PARTNERS

-+

MEMBERS

$-k+

PROCESSED ON-CHAIN

How it works

One subscription,
every partner perk.

Komunify brings those pieces into one place: single subscription, multiple partner benefits, discounted products, and automatic revenue distribution powered by Stellar and Soroban smart contracts.

1
01

Connect your wallet

Connect any Stellar-based wallet. You can use a Freighter wallet, no email, no password, nothing to remember.

2
02

Pay for a package

Pay for your preferred package using USDC on the Stellar testnet. One payment, no per-partner checkout.

3
03

Unlock every perk

Get premium access, discounted products, learning resources, and digital assets across multiple community partners.

Automatic split

One payment, three payouts.

Every subscription is split on-chain the moment it settles. No invoices, no reconciliation: the Soroban contract routes each share instantly.

YOUR SUBSCRIPTION

$10 USDC

per month

29d91130…f96a78

Project owner

$7.00

70%

Community manager

$2.00

20%

Komunify platform

$1.00

10%

Communities + perks

Real communities, real perks.

Our communities

Dev Web3 Bandung

Dev Web3 Bandung

Builder workshops, Soroban study group, and bootcamp recordings.

Sawargy

Sawargy

Design and freelance collective: client playbooks, portfolio reviews, and working sessions.

Serenity

Serenity

Community benefits and member events, onboarding with the first Bandung pilots.

Manexus

Manexus

Builder community joining the pilot cohort with member resources and events.

What you unlock

Premium access

Members-only channels, office hours, and early event access across every partner.

Member discounts

Subscriber pricing on partner products, services, and tokenized listings.

Learning resources

Premium educational content: bootcamp recordings, playbooks, and courses.

Digital assets

Voucher-like tokenized items and digital resources, verifiable on-chain.

WHERE THIS GOES

Testnet today, rails tomorrow.

Q3 2026

LIVE ON TESTNET

The full loop works

Wallet connect, subscription payment, automatic 70/20/10 split, and a live on-chain dashboard. Exit metric: loop proven. Every dashboard number is an on-chain read.

Q4 2026

PILOT ONE, WITH NUMBERS

First partner communities

October: Dev Web3 Bandung (2.4K members) goes live. Target funnel: 2,400 members, 250 wallets, 100 paid subscriptions. Pass mark: 100 active on-chain subscriptions, then Sawargy, Manexus, and Serenity follow.

2027

THE RAILS

Every chapter runs on Komunify

Target: 10 chapters and 1,000 active subscriptions. Self-serve partner onboarding, multi-tier subscriptions, configurable splits, reporting out of the box.

THE TEAM

Four builders, four communities.

We each run a community. We're building the tool we need.

I
Imam Abullaisi

Imam Abullaisi

Product + Design

RUNS SAWARGY

Freelance & design community

950+ members

J
Jason Stanley

Jason Stanley

Engineering

RUNS DEV WEB3 BANDUNG

Web3 builders & hackathons

F
Faris Abdurrahman

Faris Abdurrahman

Product Manager

RUNS MANEXUS

Web3 + AI community hub

N
Qatrun Nada

Qatrun Nada

Business + Partnerships

RUNS SERENITY

FAQ

Questions, answered.

Komunify is a Web3 platform that gives members access to benefits from multiple partner communities through a single subscription. It also helps community managers and project owners monetize resources, automate revenue sharing, and track growth on-chain.

Komunify

Single subscription.Multiple benefits.

\ No newline at end of file +Komunify · One subscription, every community perk
Verified on-chain • Instant payouts

Onesubscriptionformultiplecommunity perks.

One subscription, split on-chain the moment it settles. Soroban routes every payment to the project owner, community manager, and platform, and unlocks perks across partner communities.

HOW IT WORKS

-+

PARTNERS

-+

MEMBERS

$-k+

PROCESSED ON-CHAIN

How it works

One subscription,
every partner perk.

Komunify brings those pieces into one place: single subscription, multiple partner benefits, discounted products, and automatic revenue distribution powered by Stellar and Soroban smart contracts.

1
01

Connect your wallet

Connect any Stellar-based wallet. You can use a Freighter wallet, no email, no password, nothing to remember.

2
02

Pay for a package

Pay for your preferred package using USDC on the Stellar testnet. One payment, no per-partner checkout.

3
03

Unlock every perk

Get premium access, discounted products, learning resources, and digital assets across multiple community partners.

Automatic split

One payment, three payouts.

Every subscription is split on-chain the moment it settles. No invoices, no reconciliation: the Soroban contract routes each share instantly. Each package pool defines its own distribution scheme through its DAO; the live demo contract runs 70/20/10.

YOUR SUBSCRIPTION

$10 USDC

per month

29d91130…f96a78

Project owner

$7.00

70%

Community manager

$2.00

20%

Komunify platform

$1.00

10%

Communities + perks

Real communities, real perks.

Our communities

Dev Web3 Bandung

Dev Web3 Bandung

Builder workshops, Soroban study group, and bootcamp recordings.

Sawargy

Sawargy

Design and freelance collective: client playbooks, portfolio reviews, and working sessions.

Serenity

Serenity

Community benefits and member events, onboarding with the first Bandung pilots.

Manexus

Manexus

Builder community joining the pilot cohort with member resources and events.

What you unlock

Premium access

Members-only channels, office hours, and early event access across every partner.

Member discounts

Subscriber pricing on partner products, services, and tokenized listings.

Learning resources

Premium educational content: bootcamp recordings, playbooks, and courses.

Digital assets

Voucher-like tokenized items and digital resources, verifiable on-chain.

WHERE THIS GOES

Testnet today, rails tomorrow.

Q3 2026

LIVE ON TESTNET

The full loop works

Wallet connect, subscription payment, automatic 70/20/10 split, and a live on-chain dashboard. Exit metric: loop proven. Every dashboard number is an on-chain read.

Q4 2026

PILOT ONE, WITH NUMBERS

First partner communities

October: Dev Web3 Bandung (2.4K members) goes live. Target funnel: 2,400 members, 250 wallets, 100 paid subscriptions. Pass mark: 100 active on-chain subscriptions, then Sawargy, Manexus, and Serenity follow.

2027

THE RAILS

Every chapter runs on Komunify

Target: 10 chapters and 1,000 active subscriptions. Self-serve partner onboarding, multi-tier subscriptions, configurable splits, reporting out of the box.

THE TEAM

Four builders, four communities.

We each run a community. We're building the tool we need.

I
Imam Abullaisi

Imam Abullaisi

Product + Design

RUNS SAWARGY

Freelance & design community

950+ members

J
Jason Stanley

Jason Stanley

Engineering

RUNS DEV WEB3 BANDUNG

Web3 builders & hackathons

F
Faris Abdurrahman

Faris Abdurrahman

Product Manager

RUNS MANEXUS

Web3 + AI community hub

N
Qatrun Nada

Qatrun Nada

Business + Partnerships

RUNS SERENITY

FAQ

Questions, answered.

Komunify is a Web3 platform that gives members access to benefits from multiple partner communities through a single subscription. It also helps community managers and project owners monetize resources, automate revenue sharing, and track growth on-chain.

Komunify

Single subscription.Multiple benefits.

\ No newline at end of file diff --git a/prototype/landing/index.txt b/prototype/landing/index.txt index 35d39a6..55d8da0 100644 --- a/prototype/landing/index.txt +++ b/prototype/landing/index.txt @@ -1,21 +1,21 @@ 1:"$Sreact.fragment" -2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"SmoothScroll"] -3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"QueryProvider"] -4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"WalletProvider"] -5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"TooltipProvider"] -6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"AppHeader"] +2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"SmoothScroll"] +3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"QueryProvider"] +4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"WalletProvider"] +5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"TooltipProvider"] +6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"AppHeader"] 7:I[5341,[],""] 8:I[25,[],""] 9:I[1012,[],"ClientPageRoot"] -a:I[981,["221","static/chunks/221-5f3f3fb596c26bbf.js","928","static/chunks/928-115bc6d04c8d41eb.js","974","static/chunks/app/page-b01ba1fc1c0d27f0.js"],"default"] +a:I[981,["221","static/chunks/221-5f3f3fb596c26bbf.js","928","static/chunks/928-2e929f97eacf2d65.js","974","static/chunks/app/page-7b39ff54de385a71.js"],"default"] d:I[5104,[],"OutletBoundary"] f:I[7158,[],"AsyncMetadataOutlet"] 11:I[5104,[],"ViewportBoundary"] 13:I[5104,[],"MetadataBoundary"] 14:"$Sreact.suspense" 16:I[4431,[],""] -:HL["/landing/_next/static/css/a5593bed4515eec3.css","style"] -0:{"P":null,"b":"6YiE5Arqv4HJaFndY-hrg","p":"/landing","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/a5593bed4515eec3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L9",null,{"Component":"$a","searchParams":{},"params":{},"promises":["$@b","$@c"]}],null,["$","$Ld",null,{"children":["$Le",["$","$Lf",null,{"promise":"$@10"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L11",null,{"children":"$L12"}],null],["$","$L13",null,{"children":["$","div",null,{"hidden":true,"children":["$","$14",null,{"fallback":null,"children":"$L15"}]}]}]]}],false]],"m":"$undefined","G":["$16",[]],"s":false,"S":true} +:HL["/landing/_next/static/css/107189fb9877e5d6.css","style"] +0:{"P":null,"b":"6oSsDFFWxQ97bynFlWBxq","p":"/landing","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/107189fb9877e5d6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L9",null,{"Component":"$a","searchParams":{},"params":{},"promises":["$@b","$@c"]}],null,["$","$Ld",null,{"children":["$Le",["$","$Lf",null,{"promise":"$@10"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L11",null,{"children":"$L12"}],null],["$","$L13",null,{"children":["$","div",null,{"hidden":true,"children":["$","$14",null,{"fallback":null,"children":"$L15"}]}]}]]}],false]],"m":"$undefined","G":["$16",[]],"s":false,"S":true} b:{} c:"$0:f:0:1:2:children:1:props:children:0:props:params" 12:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] diff --git a/prototype/landing/start.html b/prototype/landing/start.html index c071194..767c9cd 100644 --- a/prototype/landing/start.html +++ b/prototype/landing/start.html @@ -1 +1 @@ -Komunify · One subscription, every community perk
komunifytestnet

Have premium resources?

Publish your digital assets, private access, and learning resources. Earn payout straight to your wallet anytime. It's free to start and takes about minutes.

\ No newline at end of file +Komunify · One subscription, every community perk
komunifytestnet

Have premium resources?

Publish your digital assets, private access, and learning resources. Earn payout straight to your wallet anytime. It's free to start and takes about minutes.

\ No newline at end of file diff --git a/prototype/landing/start.txt b/prototype/landing/start.txt index d78a1ef..3861ffd 100644 --- a/prototype/landing/start.txt +++ b/prototype/landing/start.txt @@ -1,22 +1,23 @@ 1:"$Sreact.fragment" -2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"SmoothScroll"] -3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"QueryProvider"] -4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"WalletProvider"] -5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"TooltipProvider"] -6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","131","static/chunks/131-147d95869be10e39.js","986","static/chunks/986-dbadb9854814c9a6.js","177","static/chunks/app/layout-b3a6caf9814d7620.js"],"AppHeader"] +2:I[1948,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"SmoothScroll"] +3:I[5286,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"QueryProvider"] +4:I[8359,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"WalletProvider"] +5:I[8422,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"TooltipProvider"] +6:I[1697,["221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","895","static/chunks/895-362a009af07859ea.js","766","static/chunks/766-e373566c7fdece52.js","177","static/chunks/app/layout-70b9ec0d57e1d375.js"],"AppHeader"] 7:I[5341,[],""] 8:I[25,[],""] -9:I[2922,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","126","static/chunks/126-792128eb3af634df.js","397","static/chunks/app/start/page-ba59f7c8d5f524e9.js"],"StartWizard"] -a:I[5104,[],"OutletBoundary"] -c:I[7158,[],"AsyncMetadataOutlet"] -e:I[5104,[],"ViewportBoundary"] -10:I[5104,[],"MetadataBoundary"] -11:"$Sreact.suspense" -13:I[4431,[],""] -:HL["/landing/_next/static/css/a5593bed4515eec3.css","style"] -0:{"P":null,"b":"6YiE5Arqv4HJaFndY-hrg","p":"/landing","c":["","start"],"i":false,"f":[[["",{"children":["start",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/a5593bed4515eec3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["start",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","main",null,{"className":"shell","children":["$","$L9",null,{}]}],null,["$","$La",null,{"children":["$Lb",["$","$Lc",null,{"promise":"$@d"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Le",null,{"children":"$Lf"}],null],["$","$L10",null,{"children":["$","div",null,{"hidden":true,"children":["$","$11",null,{"fallback":null,"children":"$L12"}]}]}]]}],false]],"m":"$undefined","G":["$13",[]],"s":false,"S":true} -f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -b:null -14:I[6505,[],"IconMark"] -d:{"metadata":[["$","title","0",{"children":"Komunify · One subscription, every community perk"}],["$","meta","1",{"name":"description","content":"Pay one subscription on Stellar and unlock premium access, member discounts, learning resources, and digital assets across partner communities. Soroban splits every payment on-chain."}],["$","link","2",{"rel":"icon","href":"/landing/icon.png?69de32600d54d3ce","type":"image/png","sizes":"700x700"}],["$","$L14","3",{}]],"error":null,"digest":"$undefined"} -12:"$d:metadata" +9:I[6263,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","92","static/chunks/92-88d9049bdefca6df.js","397","static/chunks/app/start/page-23cbc1550b4e0a00.js"],"AppSidenav"] +a:I[541,["564","static/chunks/a66e9312-f62ff05e94259332.js","31","static/chunks/fbbf53bf-efa49515ea24f262.js","221","static/chunks/221-5f3f3fb596c26bbf.js","563","static/chunks/563-9e96138583790ab0.js","558","static/chunks/558-a54e9ec86be8d5bc.js","242","static/chunks/242-5549aec57c3b048c.js","92","static/chunks/92-88d9049bdefca6df.js","397","static/chunks/app/start/page-23cbc1550b4e0a00.js"],"StartWizard"] +b:I[5104,[],"OutletBoundary"] +d:I[7158,[],"AsyncMetadataOutlet"] +f:I[5104,[],"ViewportBoundary"] +11:I[5104,[],"MetadataBoundary"] +12:"$Sreact.suspense" +14:I[4431,[],""] +:HL["/landing/_next/static/css/107189fb9877e5d6.css","style"] +0:{"P":null,"b":"6oSsDFFWxQ97bynFlWBxq","p":"/landing","c":["","start"],"i":false,"f":[[["",{"children":["start",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/landing/_next/static/css/107189fb9877e5d6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"delayDuration":150,"children":[["$","$L6",null,{}],["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]}]}]}]}]]}],{"children":["start",["$","$1","c",{"children":[null,["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"flex min-h-screen","children":[["$","$L9",null,{}],["$","div",null,{"className":"flex-1","children":["$","main",null,{"className":"shell","children":["$","$La",null,{}]}]}]]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +c:null +15:I[6505,[],"IconMark"] +e:{"metadata":[["$","title","0",{"children":"Komunify · One subscription, every community perk"}],["$","meta","1",{"name":"description","content":"Pay one subscription on Stellar and unlock premium access, member discounts, learning resources, and digital assets across partner communities. Soroban splits every payment on-chain."}],["$","link","2",{"rel":"icon","href":"/landing/icon.png?69de32600d54d3ce","type":"image/png","sizes":"700x700"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"} +13:"$e:metadata"