1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f607d072-b6d9-e626-f3f8-0e20c8a4d45e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,531687,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(534321),a=e.i(85035),s=e.i(915802),n=e.i(768951);e.s(["default",0,function(e){let l,o,c,u=(0,r.c)(12),{wallets:d,ready:h}=(0,a.useWallets)(),{connectWallet:m}=(0,i.useConnectWallet)(),p=0!==d.length?d[0].address:"Connect wallet";u[0]!==m||u[1]!==d.length?(l=e=>{e.preventDefault(),0===d.length&&m()},u[0]=m,u[1]=d.length,u[2]=l):l=u[2];let f=!h;return u[3]!==p||u[4]!==h?(o=h?p:(0,t.jsx)(s.default,{width:4,height:4}),u[3]=p,u[4]=h,u[5]=o):o=u[5],u[6]!==e.className||u[7]!==e.variant||u[8]!==l||u[9]!==f||u[10]!==o?(c=(0,t.jsx)(n.Button,{type:"button",onClick:l,disabled:f,className:e.className,variant:e.variant,children:o}),u[6]=e.className,u[7]=e.variant,u[8]=l,u[9]=f,u[10]=o,u[11]=c):c=u[11],c}])},915802,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.s(["default",0,function(e){let i,a,s,n,l,o=(0,r.c)(7),{height:c,width:u}=e,d=`w-${void 0===u?8:u} h-${void 0===c?8:c} mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600`;return o[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a=(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),o[0]=i,o[1]=a):(i=o[0],a=o[1]),o[2]!==d?(s=(0,t.jsxs)("svg",{"aria-hidden":"true",className:d,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i,a]}),o[2]=d,o[3]=s):s=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("span",{className:"sr-only",children:"Loading..."}),o[4]=n):n=o[4],o[5]!==s?(l=(0,t.jsxs)("div",{role:"status",children:[s,n]}),o[5]=s,o[6]=l):l=o[6],l}])},32708,e=>{"use strict";var t=e.i(843476),r=e.i(534321),i=e.i(760334),a=e.i(85035),s=e.i(271645),n=e.i(915802),l=e.i(768951);let o=s.forwardRef(({children:e,onClick:o,onAfterWalletConnect:c,loadingText:u="Connecting...",disabled:d,...h},m)=>{let{ready:p}=(0,i.usePrivy)(),{wallets:f}=(0,a.useWallets)(),{connectWallet:x}=(0,r.useConnectWallet)(),[g,v]=s.useState(!1),w=s.useRef(!1),b=s.useRef([]),y=s.useRef(null);s.useEffect(()=>{let e=0===b.current.length,t=f.length>0;e&&t&&w.current&&c&&(c(f[0].address),v(!1),w.current=!1,y.current&&(clearTimeout(y.current),y.current=null)),b.current=f},[f,c]),s.useEffect(()=>{if(!g)return;let e=e=>{"Escape"===e.key&&setTimeout(()=>{0===f.length&&(v(!1),w.current=!1)},100)},t=()=>{setTimeout(()=>{0===f.length&&(v(!1),w.current=!1)},100)};y.current=setTimeout(()=>{v(!1),w.current=!1},6e4);let r=setTimeout(()=>{document.addEventListener("keydown",e),document.addEventListener("click",t)},1e3);return()=>{clearTimeout(r),document.removeEventListener("keydown",e),document.removeEventListener("click",t),y.current&&(clearTimeout(y.current),y.current=null)}},[g,f.length]);let j=s.useCallback(e=>{if(p){if(0===f.length){e.preventDefault(),v(!0),w.current=!0,x();return}o&&o(e)}},[p,f.length,o,x]),C=!p||g,S=C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{width:4,height:4}),(0,t.jsx)("span",{className:"ml-2",children:u})]}):e;return(0,t.jsx)(l.Button,{ref:m,onClick:j,disabled:d||C,...h,children:S})});o.displayName="WalletConnectButton",e.s(["WalletConnectButton",0,o])},666290,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.s(["default",0,function(e){let i,a,s,n,l=(0,r.c)(10),{className:o,size:c,color:u}=e,d=void 0===o?"":o,h=void 0===c?30:c,m=void 0===u?"currentColor":u;return l[0]!==m?(i=(0,t.jsx)("path",{d:"M6 0V76.1345H81",stroke:m,strokeWidth:"10.6585",strokeMiterlimit:"10"}
2),a=(0,t.jsx)("path",{d:"M34.4067 5.30176L6 76.1337L76.0722 46.9673",stroke:m,strokeWidth:"10.6585",strokeLinejoin:"round"}),s=(0,t.jsx)("path",{d:"M6 76.129L59.0302 21.5845",stroke:m,strokeWidth:"10.6585",strokeMiterlimit:"10"}),l[0]=m,l[1]=i,l[2]=a,l[3]=s):(i=l[1],a=l[2],s=l[3]),l[4]!==d||l[5]!==h||l[6]!==i||l[7]!==a||l[8]!==s?(n=(0,t.jsxs)("svg",{className:d,width:h,height:h,viewBox:"0 0 81 82",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i,a,s]}),l[4]=d,l[5]=h,l[6]=i,l[7]=a,l[8]=s,l[9]=n):n=l[9],n}])},74698,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.s(["default",0,function(e){let i,a,s=(0,r.c)(7),{width:n,height:l,color:o,className:c}=e,u=void 0===n?24:n,d=void 0===l?23:l,h=void 0===o?"currentColor":o,m=void 0===c?"":c;return s[0]!==h?(i=(0,t.jsx)("path",{d:"M0.256759 0L9.36588 12.1823L0.200012 22.0873H2.26348L10.289 13.4158L16.7728 22.0873H23.7935L14.1723 9.21978L22.7043 0H20.6409L13.2506 7.98633L7.27889 0H0.258127H0.256759ZM3.29035 1.52002H6.51495L20.7571 20.5673H17.5325L3.29035 1.52002Z",fill:h}),s[0]=h,s[1]=i):i=s[1],s[2]!==m||s[3]!==d||s[4]!==i||s[5]!==u?(a=(0,t.jsx)("svg",{width:u,height:d,viewBox:"0 0 24 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:m,children:i}),s[2]=m,s[3]=d,s[4]=i,s[5]=u,s[6]=a):a=s[6],a}])},100554,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(29270);e.s(["CollectorAvatarGroupWrapper",0,function(e){let a,s=(0,r.c)(7),{avatars:n,total:l,textClassName:o,small:c,position:u,variant:d}=e,h=`${l} collected`;return s[0]!==n||s[1]!==u||s[2]!==c||s[3]!==h||s[4]!==o||s[5]!==d?(a=(0,t.jsx)(i.default,{avatars:n,small:c,textClassName:o,text:h,position:u,variant:d}),s[0]=n,s[1]=u,s[2]=c,s[3]=h,s[4]=o,s[5]=d,s[6]=a):a=s[6],a},"CollectorAvatarWrapper",0,function(e){let i,a=(0,r.c)(2),{children:s}=e;return a[0]!==s?(i=(0,t.jsx)("div",{className:"collectors",children:s}),a[0]=s,a[1]=i):i=a[1],i}])},639970,e=>{"use strict";var t=e.i(843476),r=e.i(500932);let i=(0,e.i(796019).default)("Share",[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]]);var a=e.i(618566),s=e.i(271645),n=e.i(768951),l=e.i(380750),o=e.i(483373),c=e.i(267233),u=e.i(216049);let d=["share","published","coined","remixed","purchased"];e.s(["ShareDialog",0,function(e){let h,m,p,f,x,g,v,w,b,y,j,C,S,N,k=(0,r.c)(27),{baseUrl:_,postId:E,imageSrc:L,postTitle:T,showText:A}=e,B=(0,a.useRouter)(),[M,D]=(0,s.useState)("share"),[P,$]=(0,s.useState)(),[R,G]=(0,s.useState)(null);k[0]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{!async function(){if(!await (0,c.isUserLoggedIn)())return;let e=await (0,o.getLoggedInUser)();G(e?.wallet_address||e?.lowercase_wallet_address||null)}()},m=[],k[0]=h,k[1]=m):(h=k[0],m=k[1]),(0,s.useEffect)(h,m);e:{if(R){p=`${_}?referrer=${R}`;break e}p=_}let H=p;switch(k[2]!==P?(f=()=>{if(void 0===P){let e=new URLSearchParams(window.location.search);"true"===e.get("share")&&$(!0);let t=e.get("dialog");t&&d.includes(t)&&"share"!==t&&D(t)}},x=[P],k[2]=P,k[3]=f,k[4]=x):(f=k[3],x=k[4]),(0,s.useEffect)(f,x),M){case"published":g="Post published! ð",v="Share your post to get more views.";break;case"coined":case"remixed":g="You're all set! ð",v="Let your friends & followers know and help bring in the next wave of supporters.";break;case"purchased":g="You're all set! ð",v="You supported this post â let your friends & followers know and help bring in the next wave of supporters.";break;default:g="Share this post to show your support",v="Help the author reach more readers and introduce your friends to great writing."}k[5]!==B?(w=e=>{e||"true"===new URLSearchParams(window.location.search).get("share")&&B.replace(window.location.pathname),$(e)},k[5]=B,k[6]=w):w=k[6],k[7]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(l.DialogDescription,{className:"sr-only",children:" Share Dialog"}),k[7]=b):b=k[7];let W=A?"default":"icon",I=`flex gap-2${A?" sm:w-fit w-full":""}`;return k[8]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(i,{className:"h-4 w-4"}),k[8]=y):y=k[8],k[9]!==A?(j=A&&(0,t.jsx)("span",{children:"Share"}),k[9]=A,k[10]=j):j=k[10],k[11]!==j||k[12]!==W||k[13]!==I?(C=(0,t.jsx)(l.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{variant:"outline",size:W,"aria-label":"Share this post",className:I,children:[y,j]})}),k[11]=j,k[12]=W,k[13]=I,k[14]=C):C=k[14],k[15]!==v||k[16]!==L||k[17]!==E||k[18]!==T||k[19]!==g||k[20]!==H?(S=(0,t.jsx)(l.DialogContent,{className:"gap-1",children:(0,t.jsx)(u.ShareDialogContent,{imageSrc:L,url:H,postId:E,text:T,title:g,description:v})}
2),k[15]=v,k[16]=L,k[17]=E,k[18]=T,k[19]=g,k[20]=H,k[21]=S):S=k[21],k[22]!==P||k[23]!==C||k[24]!==S||k[25]!==w?(N=(0,t.jsxs)(l.Dialog,{open:P,onOpenChange:w,children:[b,C,S]}),k[22]=P,k[23]=C,k[24]=S,k[25]=w,k[26]=N):N=k[26],N}],639970)},460897,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(974449),a=e.i(506659),s=e.i(380750),n=e.i(731876),l=e.i(216049);e.s(["SharePublicationDialog",0,function(e){let o,c,u,d,h,m,p,f=(0,r.c)(16),{url:x,imageSrc:g,publicationName:v,publicationSummary:w,className:b,open:y,onOpenChange:j}=e;f[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(s.DialogDescription,{className:"sr-only",children:"Share Publication Dialog"}),f[0]=o):o=f[0],f[1]!==b?(c=(0,n.cn)("flex items-center gap-2 h-10 px-4 cursor-pointer text-sm",b),f[1]=b,f[2]=c):c=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.Share2,{className:"h-4 w-4 mr-2"}),d=(0,t.jsx)("span",{children:"Share publication"}),f[3]=u,f[4]=d):(u=f[3],d=f[4]),f[5]!==c?(h=(0,t.jsx)(s.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(a.GlassBubble,{variant:"pill",className:c,role:"button",tabIndex:0,"aria-label":"Share this publication",children:[u,d]})}),f[5]=c,f[6]=h):h=f[6];let C=`Check out ${v}${w?`: ${w}`:""}`;return f[7]!==g||f[8]!==C||f[9]!==x?(m=(0,t.jsx)(s.DialogContent,{className:"gap-1",children:(0,t.jsx)(l.ShareDialogContent,{imageSrc:g,url:x,text:C,title:"Share your publication",description:"Help grow your audience by sharing your publication with friends and followers."})}),f[7]=g,f[8]=C,f[9]=x,f[10]=m):m=f[10],f[11]!==j||f[12]!==y||f[13]!==h||f[14]!==m?(p=(0,t.jsxs)(s.Dialog,{open:y,onOpenChange:j,children:[o,h,m]}),f[11]=j,f[12]=y,f[13]=h,f[14]=m,f[15]=p):p=f[15],p}])},633695,e=>{"use strict";let t=(0,e.i(796019).default)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],633695)},43343,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(87220),a=e.i(909069),s=e.i(583425);e.s(["AllSupportersDialog",0,function(e){let n,l,o,c,u=(0,r.c)(17),{initialData:d,coinId:h,isOnlyAvatars:m,blog:p,postTitle:f,post:x}=e;u[0]!==h||u[1]!==d.all?(n={initialData:d.all,limit:10,coinId:h},u[0]=h,u[1]=d.all,u[2]=n):n=u[2];let{allSupporters:g}=(0,i.useAllSupporters)(n);u[3]!==h||u[4]!==d.allAvatar?(l={initialData:d.allAvatar,coinId:h},u[3]=h,u[4]=d.allAvatar,u[5]=l):l=u[5];let{allAvatarSupporters:v}=(0,i.useAllAvatarSupporters)(l);u[6]!==v||u[7]!==g?(o=(0,a.getAvatars)(v,g),u[6]=v,u[7]=g,u[8]=o):o=u[8];let w=o;
2return g&&w?(u[9]!==g||u[10]!==w||u[11]!==p||u[12]!==h||u[13]!==m||u[14]!==x||u[15]!==f?(c=(0,t.jsx)(s.default,{avatars:w,supporters:g,coinId:h,isOnlyAvatars:m,blog:p,postTitle:f,post:x}),u[9]=g,u[10]=w,u[11]=p,u[12]=h,u[13]=m,u[14]=x,u[15]=f,u[16]=c):c=u[16],c):null}])},971055,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(198983),a=e.i(460897);e.s(["SharePublicationButton",0,function(e){let s,n,l=(0,r.c)(8),{blog:o,className:c}=e;l[0]!==o?(s=(0,i.getBlogUrl)(o),l[0]=o,l[1]=s):s=l[1];let{fullUrl:u}=s;return l[2]!==o.logo_url||l[3]!==o.name||l[4]!==o.summary||l[5]!==c||l[6]!==u?(n=(0,t.jsx)(a.SharePublicationDialog,{url:u,imageSrc:o.logo_url,publicationName:o.name,publicationSummary:o.summary,className:c}),l[2]=o.logo_url,l[3]=o.name,l[4]=o.summary,l[5]=c,l[6]=u,l[7]=n):n=l[7],n}])},805318,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(68688),a=e.i(618566),s=e.i(271645),n=e.i(506659),l=e.i(731876);e.s(["default",0,function(e){let o,c,u,d,h,m,p,f,x,g=(0,r.c)(28),{children:v,url:w,isSubscribed:b,className:y,hoverEffect:j}=e,[C,S]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),_=(0,a.useRouter)();g[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{S(!0)},c=[],g[0]=o,g[1]=c):(o=g[0],c=g[1]),(0,s.useEffect)(o,c),g[2]!==C?(u=()=>{C&&k(!1)},d=[C],g[2]=C,g[3]=u,g[4]=d):(u=g[3],d=g[4]),(0,s.useEffect)(u,d),g[5]!==_||g[6]!==w?(h=()=>{k(!0),_.push(w)},g[5]=_,g[6]=w,g[7]=h):h=g[7];let E=h;if(b){let e,r,i;return g[8]!==y?(e=(0,l.cn)("opacity-60 cursor-not-allowed",y),g[8]=y,g[9]=e):e=g[9],g[10]!==v?(r=(0,t.jsx)("span",{className:"px-4 py-2.5 text-sm flex items-center justify-center w-full",children:v}),g[10]=v,g[11]=r):r=g[11],g[12]!==j||g[13]!==e||g[14]!==r?(i=(0,t.jsx)(n.GlassBubble,{variant:"pill",color:"accent",hoverEffect:j,className:e,children:r}),g[12]=j,g[13]=e,g[14]=r,g[15]=i):i=g[15],i}return g[16]!==y?(m=(0,l.cn)("cursor-pointer",y),g[16]=y,g[17]=m):m=g[17],g[18]!==N?(p=N?(0,t.jsx)(i.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):null,g[18]=N,g[19]=p):p=g[19],g[20]!==v||g[21]!==p?(f=(0,t.jsxs)("span",{className:"px-4 py-2.5 text-sm flex items-center",children:[p,v]}),g[20]=v,g[21]=p,g[22]=f):f=g[22],g[23]!==E||g[24]!==j||g[25]!==m||g[26]!==f?(x=(0,t.jsx)(n.GlassBubble,{variant:"pill",color:"accent",hoverEffect:j,className:m,onClick:E,children:f}),g[23]=E,g[24]=j,g[25]=m,g[26]=f,g[27]=x):x=g[27],x}])},958870,943870,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(522016),a=e.i(959173),s=e.i(805318),n=e.i(532098),l=e.i(271645);e.i(380266);var o=e.i(731876);function c(e){let i,a,s,n,c=(0,r.c)(16),{text:u,maxLength:d,buttonClassName:h,className:m}=e,p=void 0===d?100:d,f=void 0===h?"":h,x=void 0===m?"":m,[g,v]=(0,l.useState)(!1),w=u.length>p;c[0]!==g||c[1]!==p||c[2]!==u?(i=g?u:u.slice(0,p),c[0]=g,c[1]=p,c[2]=u,c[3]=i):i=c[3];let b=i,y=g?"View Less":"View More";c[4]!==g?(a=()=>v(!g),c[4]=g,c[5]=a):a=c[5];let j=a,C=w&&!g&&"...";return c[6]!==f||c[7]!==y||c[8]!==w||c[9]!==j?(s=w&&(0,t.jsx)("button",{onClick:j,className:(0,o.cn)("inline-block ml-1 text-primary-button",f),children:y}),c[6]=f,c[7]=y,c[8]=w,c[9]=j,c[10]=s):s=c[10],c[11]!==x||c[12]!==b||c[13]!==C||c[14]!==s?(n=(0,t.jsxs)("p",{className:x,children:[b,C,s]}),c[11]=x,c[12]=b,c[13]=C,c[14]=s,c[15]=n):n=c[15],n}e.s(["default",0,c],943870);var u=e.i(257198),d=e.i(393178);function h(e){let a,s,n,c,u,h,m,p,f,x,g=(0,r.c)(27),{trigger:v,children:w,className:b,triggerClassName:y,profileUrl:j,disableClickOpen:C}=e,S=void 0===b?"":b,N=void 0===y?"":y,[k,_]=(0,l.useState)(!1),E=(0,l.useId)();g[0]!==E?(a=()=>{let e=e=>{e.detail?.id!==E&&_(!1)};return window.addEventListener("paragraph-hovercard-open",e),()=>{window.removeEventListener("paragraph-hovercard-open",e)}},s=[E],g[0]=E,g[1]=a,g[2]=s):(a=g[1],s=g[2]),(0,l.useEffect)(a,s),g[3]!==E?(n=e=>{_(e),e&&window.dispatchEvent(new CustomEvent("paragraph-hovercard-open",{detail:{id:E}}))},g[3]=E,g[4]=n):n=g[4];let L=n;g[5]!==j||g[6]!==v?(c=j?(0,t.jsx)(i.default,{href:j,className:"rounded-full",children:v}):v,g[5]=j,g[6]=v,g[7]=c):c=g[7];let T=c;return g[8]!==C||g[9]!==j?(u=e=>{j||C||(e.preventDefault(),_(!0))},g[8]=C,g[9]=j,g[10]=u):u=g[10],g[11]!==N?(h=(0,o.cn)("cursor-pointer z-10",N),g[11]=N,g[12]=h):h=g[12],g[13]!==u||g[14]!==h||g[15]!==T?(m=(0,t.jsx)(d.HoverCardTrigger,{onClick:u,className:h,asChild:!0,children:T}),g[13]=u,g[14]=h,g[15]=T,g[16]=m):m=g[16],g[17]!==S?(p=(0,o.cn)("pb-2 px-5 py-4 shadow-none border border-border/60 rounded-2xl min-w-72",S),g[17]=S,g[18]=p):p=g[18],g[19]!==w||g[20]!==p?(f=(0,t.jsx)(d.HoverCardPortal,{children:(0,t.jsx)(d.HoverCardContent,{side:"top",collisionPadding:16,className:p,children:w})}),g[19]=w,g[20]=p,g[21]=f):f=g[21],g[22]!==L||g[23]!==k||g[24]!==f||g[25]!==m?(x=(0,t.jsxs)(d.HoverCard,{openDelay:80,open:k,onOpenChange:L,children:[m,f]}),g[22]=L,g[23]=k,g[24]=f,g[25]=m,g[26]=x):x=g[26],x}e.s(["default",0,function(e){let l,d,m,p,f,x,g,v,w,b,y,j,C=(0,r.c)(38),{author:S,className:N,avatarSize:k,avatarClassName:_,blogSlug:E,blog:L,isSubscribed:T,disableClickOpen:A,children:B,trigger:M}=e,D=void 0===N?"":N,P=void 0===k?40:k,$=void 0===_?"h-10 w-10 dark:border-none ring ring-background":_;C[0]!==E?(l=(0,n.getModalPath)(n.ModalRoute.ENTER_EMAIL,E?{lowercase_url:E}:void 0),C[0]=E,C[1]=l):l=C[1];let R=l,G=S.authorBio||L?.summary||L?.about,H="lowercase_wallet_address"in S?S.lowercase_wallet_address:void 0,W=H?`${u.host}/${H}`:null,I="displayName"in S&&S.displayName?S.displayName.name:S.authorName;C[2]!==$?(d=(0,o.cn)($),C[2]=$,C[3]=d):d=C[3],C[4]!==S||C[5]!==P||C[6]!==d?(m=(0,t.jsx)("div",{className:"cursor-pointer relative rounded-full",children:(0,t.jsx)(a.AuthorAvatar,{user:S,size:P,className:d})}),C[4]=S,C[5]=P,C[6]=d,C[7]=m):m=C[7];let U=m;C[8]!==D?(p=(0,o.cn)("rounded-2xl",D),C[8]=D,C[9]=p):p=C[9];let z=W??void 0,O=M??U;return C[10]!==S||C[11]!==W?(f=W?(0,t.jsx)(i.default,{href:W,className:"block shrink-0 h-10 w-10 rounded-full overflow-hidden",children:(0,t.jsx)(a.AuthorAvatar,{user:S,size:40,className:"h-10 w-10"})}):(0,t.jsx)(a.AuthorAvatar,{user:S,size:40,className:"h-10 w-10 shrink-0"}),C[10]=S,C[11]=W,C[12]=f):f=C[12],C[13]!==I||C[14]!==W?(x=W?(0,t.jsx)(i.default,{href:W,className:"text-base font-semibold text-foreground leading-tight hover:underline",children:I}):(0,t.jsx)("p",{className:"text-base font-semibold text-foreground leading-tight",children:I}),C[13]=I,C[14]=W,C[15]=x):x=C[15],C[16]!==f||C[17]!==x?(g=(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[f,x]}),C[16]=f,C[17]=x,C[18]=g):g=C[18],C[19]!==G?(v=G&&(0,t.jsx)(c,{maxLength:120,text:G,className:"text-sm font-normal text-muted-foreground"}),C[19]=G,C[20]=v):v=C[20],C[21]!==B?(w=B&&(0,t.jsx)("div",{className:"flex flex-col gap-3",children:B}),C[21]=B,C[22]=w):w=C[22],C[23]!==E||C[24]!==T||C[25]!==R?(b=E&&(0,t.jsx)(s.default,{url:R,isSubscribed:T,className:"h-10 w-full justify-center text-sm font-medium",children:T?"Subscribed":"Subscribe"}),C[23]=E,C[24]=T,C[25]=R,C[26]=b):b=C[26],C[27]!==g||C[28]!==v||C[29]!==w||C[30]!==b?(y=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[g,v,w,b]}),C[27]=g,C[28]=v,C[29]=w,C[30]=b,C[31]=y):y=C[31],C[32]!==A||C[33]!==y||C[34]!==p||C[35]!==z||C[36]!==O?(j=(0,t.jsx)(h,{className:p,profileUrl:z,disableClickOpen:A,trigger:O,children:y}),C[32]=A,C[33]=y,C[34]=p,C[35]=z,C[36]=O,C[37]=j):j=C[37],j}],958870)},911883,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.s(["default",0,function(e){let i,a,s,n,l=(0,r.c)(6),{code:o}=e;return l[0]!==o?(i=()=>{navigator.clipboard.writeText(o)},l[0]=o,l[1]=i):i=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),s=(0,t.jsx)("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}),l[2]=a,l[3]=s):(a=l[2],s=l[3]),l[4]!==i?(n=(0,t.jsxs)("svg",{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",className:"lucide lucide-copy absolute top-2 right-2 cursor-pointer text-white hover:text-gray-200 w-4 h-4",onClick:i,children:[a,s]}),l[4]=i,l[5]=n):n=l[5],n}])},478921,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645);e.s(["default",0,function(e){let a,s,n,l,o,c,u,d,h=(0,r.c)(14),{html:m}=e;h[0]!==m?(a=/width="([^"]*)" height="([^"]*)"/.exec(m)||[],h[0]=m,h[1]=a):a=h[1];let[,p,f]=a,x=f&&p?(Number(f)/Number(p)*100).toPrecision(4)+"%":null;h[2]!==m?(s=m.match(/src="([^"]*)"/)?.[1],h[2]=m,h[3]=s):s=h[3];let g=s,[v,w]=(0,i.useState)(!1);if(h[4]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{w(!0)},l=[],h[4]=n,h[5]=l):(n=h[4],l=h[5]),(0,i.useEffect)(n,l),!v)return null;let b=x||0;return h[6]!==b?(o={paddingBottom:b},h[6]=b,h[7]=o):o=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(c={position:"absolute",top:0,left:0,width:"100%",height:"100%"},h[8]=c):c=h[8],h[9]!==g?(u=(0,t.jsx)("iframe",{suppressHydrationWarning:!0,src:g,allowFullScreen:!0,style:c}
2),h[9]=g,h[10]=u):u=h[10],h[11]!==o||h[12]!==u?(d=(0,t.jsx)("div",{className:"responsive-object my-5",style:o,children:u}),h[11]=o,h[12]=u,h[13]=d):d=h[13],d}])},657766,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(657688),a=e.i(271645);e.s(["ResponsiveImage",0,function(e){let s,n,l,o=(0,r.c)(12),{alt:c,src:u,blurDataURL:d,sizes:h}=e,m=void 0===h?"(min-width: 1024px) 832px, 100vw":h,[p,f]=(0,a.useState)();o[0]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{let{naturalWidth:t,naturalHeight:r}=e.currentTarget;t&&r&&f(e=>e&&e.width===t&&e.height===r?e:{width:t,height:r})},o[0]=s):s=o[0];let x=s,g=c||"",v=p?.width??800,w=p?.height??450,b=d?"blur":"empty",y=p?void 0:"16/9";return o[1]!==y?(n={width:"100%",height:"auto",aspectRatio:y},o[1]=y,o[2]=n):n=o[2],o[3]!==d||o[4]!==m||o[5]!==u||o[6]!==g||o[7]!==v||o[8]!==w||o[9]!==b||o[10]!==n?(l=(0,t.jsx)(i.default,{className:"image-node",src:u,alt:g,width:v,height:w,sizes:m,blurDataURL:d,placeholder:b,onLoad:x,style:n}),o[3]=d,o[4]=m,o[5]=u,o[6]=g,o[7]=v,o[8]=w,o[9]=b,o[10]=n,o[11]=l):l=o[11],l}])},797863,e=>{e.v({anchorButton:"AnchorButton-module__cAZ9FG__anchorButton",headingContainer:"AnchorButton-module__cAZ9FG__headingContainer",linkIcon:"AnchorButton-module__cAZ9FG__linkIcon"})},769507,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(271645),a=e.i(846696),s=e.i(797863);e.i(302125),e.s(["AnchorButton",0,function(e){let n,l,o,c,u,d=(0,r.c)(8),{headingId:h,className:m}=e,[,p]=(0,i.useState)(!1);d[0]!==h?(n=async e=>{let t;e.preventDefault(),e.stopPropagation();let r=((t=new URL(window.location.href)).hash=h,t.toString());try{await navigator.clipboard.writeText(r),a.toast.success("Link copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard:",e),a.toast.error("Failed to copy link")}},d[0]=h,d[1]=n):n=d[1];let f=n,x=`${s.default.anchorButton} ${m||""}`;return d[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),o=()=>p(!1),d[2]=l,d[3]=o):(l=d[2],o=d[3]),d[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s.default.linkIcon,children:[(0,t.jsx)("path",{d:"M6.879 9.934a2.991 2.991 0 0 1 0-4.131l1.867-1.867a3 3 0 0 1 4.242 4.242l-1.045 1.046",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M9.121 6.066a2.991 2.991 0 0 1 0 4.131l-1.867 1.867a3 3 0 0 1-4.242-4.242l1.045-1.046",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),d[4]=c):c=d[4],d[5]!==f||d[6]!==x?(u=(0,t.jsx)("button",{className:x,onClick:f,onMouseEnter:l,onMouseLeave:o,"aria-label":"Copy link to this heading",title:"Copy link to this heading",type:"button",children:c}),d[5]=f,d[6]=x,d[7]=u):u=d[7],u}],769507)},962188,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(768951);function a(){return window.location.replace(`${window.location.href}?share=true`)}e.s(["ShareButton",0,function(){let e,s=(0,r.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(i.Button,{onClick:a,"aria-label":"Share this post",children:"Share"}),s[0]=e):e=s[0],e}
2])},115034,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(43327),a=e.i(971055),s=e.i(805318),n=e.i(532098),l=e.i(731876);e.s(["default",0,function(e){let o,c,u,d=(0,r.c)(17),{blog:h,className:m,secondary:p,hoverEffect:f}=e,x=(0,i.useBlogViewerState)(h);d[0]!==h?(o=(0,n.getModalPath)(n.ModalRoute.ENTER_EMAIL,h),d[0]=h,d[1]=o):o=d[1];let g=o;if(x.isResolved&&x.isAdmin){let e,r;return d[2]!==m?(e=(0,l.cn)("font-sans w-fit",m),d[2]=m,d[3]=e):e=d[3],d[4]!==h||d[5]!==p||d[6]!==e?(r=(0,t.jsx)(a.SharePublicationButton,{blog:h,className:e,secondary:p}),d[4]=h,d[5]=p,d[6]=e,d[7]=r):r=d[7],r}let v=x.isSubscribed;d[8]!==m?(c=(0,l.cn)("font-sans w-full mx-auto",m),d[8]=m,d[9]=c):c=d[9];let w=x.isSubscribed?"Subscribed":"Subscribe";return d[10]!==f||d[11]!==p||d[12]!==c||d[13]!==w||d[14]!==g||d[15]!==x.isSubscribed?(u=(0,t.jsx)(s.default,{url:g,isSubscribed:v,className:c,secondary:p,hoverEffect:f,children:w}),d[10]=f,d[11]=p,d[12]=c,d[13]=w,d[14]=g,d[15]=x.isSubscribed,d[16]=u):u=d[16],u}])},791948,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(687922),a=e.i(935564),s=e.i(959386),n=e.i(770703),l=e.i(271645),o=e.i(768951),c=e.i(427516),u=e.i(482913),d=e.i(793205),h=e.i(208125);let m=(0,n.default)(()=>e.A(134078).then(e=>e.X402Modal),{loadableGenerated:{modules:[402144]},ssr:!1});function p(e){let s,n,o,c,u=(0,r.c)(8),{instructions:d}=e,[h,m]=(0,l.useState)(!1);u[0]!==d?(s=()=>{navigator.clipboard.writeText(d),m(!0),setTimeout(()=>m(!1),2e3)},u[0]=d,u[1]=s):s=u[1];let p=s;return u[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("span",{className:"text-muted-foreground",children:"Copy instructions for your agent"}),u[2]=n):n=u[2],u[3]!==h?(o=h?(0,t.jsx)(i.Check,{className:"h-4 w-4 text-green-500"}):(0,t.jsx)(a.Copy,{className:"h-4 w-4 text-muted-foreground"}),u[3]=h,u[4]=o):o=u[4],u[5]!==p||u[6]!==o?(c=(0,t.jsxs)("button",{onClick:p,className:"mt-5 flex w-full items-center justify-between rounded-lg bg-secondary px-4 py-3 text-left text-sm transition-colors hover:bg-secondary/80",children:[n,o]}),u[5]=p,u[6]=o,u[7]=c):c=u[7],c}e.s(["X402GateClient",0,function(e){let i,a,n,f,x,g,v,w,b,y=(0,r.c)(26),{src:j}=e,[C,S]=(0,l.useState)(!1),[N,k]=(0,l.useState)(!1),[_,E]=(0,l.useState)(null),L=(0,d.parseX402Url)(j),T=L?.slug||"",A=L?.chain||"tempo",{details:B}=(0,u.useX402Details)({slug:T});if(!L)return null;let M=()=>{(0,h.trackX402RevealClicked)({slug:T,chain:A}),S(!0)},D=async e=>{S(!1);let{content:t}=await (0,d.handleX402Response)(e);E(t),k(!0),(0,h.trackX402ContentRevealed)({slug:T,chain:A})};if(N&&_){let e;return y[0]!==_?(e=(0,t.jsx)("div",{className:"my-5",children:(0,t.jsx)(c.X402UnlockedContent,{content:_})}),y[0]=_,y[1]=e):e=y[1],e}let P=function({src:e,slug:t,title:r,description:i,price:a}){let s=`https://publish.new/${t}`,n=[r&&`**${r}**`,i,"number"==typeof a&&`$${a}`].filter(Boolean).join(" · ");return`# Unlock x402 Content 3 4${n?`${n} 5 6`:""}This content is gated with x402 micropayments. To access it, you need to pay via one of the methods below. 7 8Pick the first method that works for your environment: 9 10## 1. You have an x402-compatible HTTP client 11 12If your HTTP client already handles x402 (e.g. AgentCash \`fetch\`, Coinbase x402), just GET: 13 14\`\`\` 15GET ${e} 16\`\`\` 17 18Your client will handle the 402 challenge and payment automatically. 19 20## 2. You have shell access 21 22Install the Tempo CLI and use it to make the paid request: 23 24\`\`\`bash 25curl -fsSL https://tempo.xyz/install | bash 26"$HOME/.tempo/bin/tempo" wallet login 27"$HOME/.tempo/bin/tempo" request -t -X GET "${e}" 28\`\`\` 29 30- \`wallet login\` opens a browser for passkey auth â wait for the user to complete it before continuing. 31- \`tempo request\` handles x402 payment negotiation automatically â no private keys or wallet setup needed. 32 33## 3. You can sign ERC-20 transactions 34 35Send a GET to the content URL, parse the 402 response, pay on-chain, and retry with proof: 36 37\`\`\` 38GET ${e} â HTTP 402 39\`\`\` 40 41- **x402 protocol**: base64-decode the \`PAYMENT-REQUIRED\` header â \`{ amount, asset, payTo, network }\`. Sign the ERC-20 transfer, retry with \`PAYMENT-SIGNATURE: <base64 proof>\`. 42- **MPP protocol**: read the \`WWW-Authenticate: Payment\` header. Complete the payment, retry with \`Authorization: Payment <proof>\`. 43 44Full protocol spec: https://paragraph.com/.well-known/x402.md 45 46## 4. None of the above 47 48Show the user this link so they can pay and access the content themselves: ${s} 49 50--- 51 52## Endpoints 53 54| Endpoint | Description | 55|---|---| 56| \`GET ${e}\` | Content (x402-gated) | 57| \`GET ${e}/details\` | Metadata (title, price) | 58| \`GET ${e}/price\` | Price in USD â \`{ "price": <number> }\` |`}
58({src:j,slug:T,title:B?.title,description:B?.description,price:B?.price});y[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-secondary",children:(0,t.jsx)(s.Lock,{className:"h-4 w-4 text-muted-foreground"})}),y[2]=i):i=y[2];let $=B?.title||"Gated content";return y[3]!==$?(a=(0,t.jsx)("span",{className:"mt-3 font-medium",children:$}),y[3]=$,y[4]=a):a=y[4],y[5]!==B?(n=(B?.description||B?.price)&&(0,t.jsxs)("span",{className:"mt-1 text-sm text-muted-foreground",children:[B?.description,B?.description&&B?.price&&" · ",B?.price&&`$${B.price}`]}),y[5]=B,y[6]=n):n=y[6],y[7]!==M?(f=(0,t.jsx)(o.Button,{className:"mt-4",size:"sm",onClick:M,children:"Pay to unlock"}),y[7]=M,y[8]=f):f=y[8],y[9]!==D||y[10]!==C||y[11]!==T?(x=C&&(0,t.jsx)(m,{isOpen:C,onClose:()=>S(!1),slug:T,onSuccess:D}),y[9]=D,y[10]=C,y[11]=T,y[12]=x):x=y[12],y[13]!==P?(g=(0,t.jsx)(p,{instructions:P}),y[13]=P,y[14]=g):g=y[14],y[15]!==a||y[16]!==n||y[17]!==f||y[18]!==x||y[19]!==g?(v=(0,t.jsxs)("div",{className:"not-prose flex flex-col items-center rounded-xl bg-muted/50 border border-dashed px-6 py-8 text-center",children:[i,a,n,f,x,g]}),y[15]=a,y[16]=n,y[17]=f,y[18]=x,y[19]=g,y[20]=v):v=y[20],y[21]!==P?(w=(0,t.jsx)("pre",{className:"sr-only",children:P}),y[21]=P,y[22]=w):w=y[22],y[23]!==v||y[24]!==w?(b=(0,t.jsxs)("div",{className:"my-5",children:[v,w]}),y[23]=v,y[24]=w,y[25]=b):b=y[25],b}],791948)},743106,e=>{"use strict";var t=e.i(843476),r=e.i(500932),i=e.i(534321),a=e.i(760334),s=e.i(271645),n=e.i(715571),l=e.i(768951),o=e.i(775003);e.s(["CoinsActionBarSupportButton",0,function(e){let c,u,d,h,m,p,f=(0,r.c)(19),{blog:x,className:g}=e,[v,w]=(0,s.useState)(!1),{address:b}=(0,n.useAccount)(),{connectWallet:y}=(0,i.useConnectWallet)(),{ready:j}=(0,a.usePrivy)(),C=(0,s.useRef)(b),{openSupport:S,prefetchSupportData:N}=(0,o.useSupportModal)();f[0]!==x||f[1]!==N?(c=()=>{N(x)},u=[N,x],f[0]=x,f[1]=N,f[2]=c,f[3]=u):(c=f[2],u=f[3]),(0,s.useEffect)(c,u),f[4]!==b||f[5]!==x||f[6]!==S||f[7]!==v?(d=()=>{v&&b&&!C.current&&(S(x),w(!1)),C.current=b},h=[b,v,x,S],f[4]=b,f[5]=x,f[6]=S,f[7]=v,f[8]=d,f[9]=h):(d=f[8],h=f[9]),(0,s.useEffect)(d,h),f[10]!==b||f[11]!==x||f[12]!==y||f[13]!==S?(m=e=>{e.preventDefault(),e.stopPropagation(),b?S(x):(w(!0),y({walletChainType:"ethereum-only"}))},f[10]=b,f[11]=x,f[12]=y,f[13]=S,f[14]=m):m=f[14];let k=m,_=!j;return f[15]!==g||f[16]!==k||f[17]!==_?(p=(0,t.jsx)(l.Button,{className:g,onClick:k,type:"button",disabled:_,children:"Support"}),f[15]=g,f[16]=k,f[17]=_,f[18]=p):p=f[18],p}])}]); 59 60//# debugId=f607d072-b6d9-e626-f3f8-0e20c8a4d45e
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.