!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@538433c"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7192016f-d40e-416e-881f-d8f74ade0a76",e._sentryDebugIdIdentifier="sentry-dbid-7192016f-d40e-416e-881f-d8f74ade0a76")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["95468"],{81675:function(e,n,t){t.d(n,{A:()=>r});let r={iframe:"iframe-_GPXZ7"}},41196:function(e,n,t){t.d(n,{b:()=>o,o:()=>d});var r=t(4006),i=t(84605),l=t(17028),a=t(80856);function o(e){let{publisherTerms:n,utm_source:t}=e,{iString:o}=(0,i.GO)();return(0,r.FD)(r.FK,{children:[o("By registering you agree to")," ",n&&(0,r.FD)(r.FK,{children:[n,", "]}),(0,r.FD)(l.EY,{as:"span",translated:!0,children:["Substack's ",(0,r.Y)(d,{href:(0,a.lk)({utm_source:t}),children:"Terms of Service"})]}),(0,r.FD)(l.EY,{as:"span",translated:!0,children:[", our ",(0,r.Y)(d,{href:(0,a.gB)({utm_source:t}),children:"Privacy Policy"})]}),(0,r.FD)(l.EY,{as:"span",translated:!0,children:[", and our ",(0,r.Y)(d,{href:(0,a.iQ)({utm_source:t}),children:"Information Collection Notice"})]}),"."]})}function d(e){let{href:n,children:t}=e;return(0,r.Y)("a",{className:(0,l.iF)({decoration:"underline"}),href:n,target:"_blank",rel:"noopener",children:t})}},77851:function(e,n,t){t.d(n,{k:()=>F});var r=t(69277),i=t(4006),l=t(45773),a=t(54718),o=t(93164),d=t(16858),c=t(60996),s=t(83126),u=t(49031),p=t(63892),f=t(34581),_=t(61039),h=t(3110),m=t(36135),Y=t(23571),g=t(70357),A=t(38685),b=t(33460),y=t(9979),v=t(84605),C=t(40691),k=t(46271),E=t(86500),D=t(35369),w=t(76977),N=t(45859),I=t(57324);let S={size:20,stroke:"var(--color-fg-primary)"},B={size:64};function F(e){let n=(0,k.Jd)(),{openModal:t,closeModal:F}=(0,C.hS)(),{iString:T}=(0,v.GO)(),{handleCopyLink:O,justCopied:x}=(0,y._m)();return(0,i.FD)(w.Ye,{justifyContent:"space-between",gap:12,children:[(0,i.Y)(D.fv,(0,r._)({onClick:()=>O((0,r._)({},e)),icon:x?(0,i.Y)(l.A,(0,r._)({},S)):(0,i.Y)(_.A,(0,r._)({},S)),label:T(x?"Copied":"Copy link")},B)),(0,i.Y)(D.fv,(0,r._)({onClick:()=>(0,y.aE)((0,r._)({},e)),icon:(0,i.Y)(u.A,(0,r._)({},S)),label:T("Facebook")},B)),(0,i.Y)(D.fv,(0,r._)({onClick:()=>(0,y.Et)((0,r._)({},e)),icon:(0,i.Y)(h.A,(0,r._)({},S)),label:T("Email")},B)),(0,i.Y)(D.fv,(0,r._)({onClick:()=>(0,y.HT)((0,r._)({},e)),icon:(0,i.Y)(g.A,(0,r._)({},S)),label:T("Notes")},B)),(0,i.FD)(N.W1,{trigger:(0,i.Y)(D.fv,(0,r._)({label:T("More"),icon:(0,i.Y)(a.A,(0,r._)({},S))},B)),onOpen:()=>{(0,E.u4)(E.qY.SHARE_DIALOG_MORE_OPTION_CLICKED,{medium:e.medium||"web",post_id:e.post?e.post.id:null,utm_campaign:e.utm_campaign||I._9.default})},children:[(0,i.Y)(N.Dr,{onClick:()=>(0,y.PB)((0,r._)({},e)),leading:(0,i.Y)(s.A,{}),children:T("Bluesky")}),(0,i.Y)(N.Dr,{onClick:()=>(0,y.NH)((0,r._)({},e)),leading:(0,i.Y)(A.A,{}),children:T("X (Twitter)")}),(0,i.Y)(N.Dr,{onClick:()=>(0,y.Uy)((0,r._)({},e)),leading:(0,i.Y)(f.A,{}),children:T("LinkedIn")}),(0,i.Y)(N.Dr,{onClick:()=>(0,y.sx)((0,r._)({},e)),leading:(0,i.Y)(Y.A,{}),children:T("Reddit")}),(0,i.Y)(N.Dr,{onClick:()=>(0,y.QY)((0,r._)({},e)),leading:(0,i.Y)(m.A,{}),children:T("Pinterest")}),(0,i.Y)(N.Dr,{onClick:()=>(0,y.Bg)((0,r._)({},e)),leading:(0,i.Y)(p.A,{}),children:T("Hacker News")}),(0,i.FD)(N.H9,{children:[n&&(0,i.Y)(b.Eg,{url:e.shareUrl,onShare:()=>{var n;(0,E.u4)(E.qY.SHARE_LINK_CLICKED,{name:"direct_message",post_id:null==(n=e.post)?void 0:n.id,source:"share_post"})}}),(0,i.Y)(N.Dr,{leading:(0,i.Y)(o.A,{}),onClick:()=>{var n;t({children:(0,i.Y)(c.k,{post:e.post,pub:null!=(n=e.pub)?n:void 0,onClose:F}),width:540})},children:T("Embed")})]}),e.showClipping&&(0,i.Y)(N.H9,{children:(0,i.Y)(w.I1,{paddingX:8,paddingTop:4,paddingBottom:8,children:(0,i.Y)(D.$n,{leading:(0,i.Y)(d.A,{size:16}),disabled:e.disableClipping,priority:"primary",onClick:e.handleOnClipClick,children:T("Create clip")})})})]})]})}},64839:function(e,n,t){t.d(n,{W:()=>u});var r=t(69277),i=t(32641),l=t(17402),a=t(9979),o=t(86500),d=t(17186),c=t(68349),s=t(57324);let u=e=>{var{isOpen:n,onClose:t,shareUrl:u,post:p,pub:f,profile:_,comments:h,commentId:m,medium:Y,utm_campaign:g}=e,A=(0,i._)(e,["isOpen","onClose","shareUrl","post","pub","profile","comments","commentId","medium","utm_campaign"]);let[b,y]=(0,l.useState)(null);return(0,l.useEffect)(()=>{n&&(async()=>{let e={title:(0,a.ZE)({post:p,pub:f,profile:_}),url:u||(0,a.x5)("direct",(0,r._)({medium:Y,post:p,pub:f,profile:_,comments:h,commentId:m,utm_campaign:g},A))};if((0,c.rr)()&&navigator.share&&navigator.canShare&&navigator.canShare(e))try{return await navigator.share(e),(0,o.u4)(o.qY.NATIVE_SHARE_SUCCESS,{medium:Y||"web",post_id:p?p.id:null,utm_campaign:b||g||"default"}),(0,d.X3)("".concat(null==f?void 0:f.subdomain," shared"),!0),t(),!0}catch(e){if("AbortError"===e.name)return t(),!0;(0,o.u4)(o.qY.NATIVE_SHARE_FAILED,{errorName:e.name,errorMessage:e.message})}return!1})().then(e=>{e||(0,o.u4)(o.qY.SHARE_DIALOG_OPENED,{medium:Y||"web",post_id:p?p.id:null,utm_campaign:b||g||s._9.default})})},[n]),{handleClose:()=>{y(null),t()},internalUtmCampaign:b,setInternalUtmCampaign:y}}},45064:function(e,n,t){t.d(n,{c:()=>c});var r=t(4006),i=t(45773),l=t(35404),a=t(9979),o=t(91609),d=t(48625);function c(e){let{value:n,confirmationText:t,testId:c}=e,{handleCopyLink:s,justCopied:u}=(0,a._m)(t);return(0,r.Y)(o.Y,{readOnly:!0,value:n,button:(0,r.Y)(d.f,{priority:"tertiary",pressed:u,onClick:()=>{s({shareUrl:n})},children:e=>{let{pressed:n}=e;return n?(0,r.Y)(i.A,{size:16}):(0,r.Y)(l.A,{size:16})}}),onClick:e=>{e.currentTarget.select()},"data-testid":c})}},91609:function(e,n,t){t.d(n,{Y:()=>Y,x:()=>m});var r=t(69277),i=t(70408),l=t(32641),a=t(4006),o=t(32485),d=t.n(o),c=t(17402),s=t(35369),u=t(16074),p=t(76977),f=t(79661),_=t(48625),h=t(24311);let m=(0,c.forwardRef)((e,n)=>{var{className:t,placement:o="end",priority:_="secondary-outline",button:m,type:Y="text"}=e,g=(0,l._)(e,["className","placement","priority","button","type"]);let A=c.default.isValidElement(m)&&null!=m&&m.type===s.$n?(0,c.cloneElement)(m,{className:d()(m.props.className,h.A.inputWithButtonButton,h.A[o])}):null;return(0,a.FD)(p.pT,{direction:"start"===o?"row-reverse":"row",position:"relative",className:d()(h.A.inputWithButtonWrapper,_&&h.A[_]),children:[(0,a.Y)(f.pd,(0,i._)((0,r._)({},g),{ref:n,type:Y,flex:"grow",className:d()(t,h.A.inputWithButtonInput,_&&h.A[_],A&&h.A[o])})),(0,a.Y)(u.c,{orientation:"vertical",flex:"auto"}),A]})}),Y=(0,c.forwardRef)((e,n)=>{var{className:t,placement:o="end",priority:m="secondary-outline",button:Y,type:g="text"}=e,A=(0,l._)(e,["className","placement","priority","button","type"]);let b=c.default.isValidElement(Y)&&null!=Y&&(Y.type===s.K0||Y.type===_.f)?(0,c.cloneElement)(Y,{className:d()(Y.props.className,h.A.inputWithButtonButton,h.A[o])}):null;return(0,a.FD)(p.pT,{direction:"start"===o?"row-reverse":"row",position:"relative",className:"hidden"===g?void 0:d()(h.A.inputWithButtonWrapper,m&&h.A[m]),children:[(0,a.Y)(f.pd,(0,i._)((0,r._)({},A),{ref:n,type:g,flex:"grow",className:d()(t,h.A.inputWithButtonInput,m&&h.A[m],b&&h.A[o])})),(0,a.Y)(u.c,{orientation:"vertical",flex:"auto"}),"hidden"!==g&&b]})})},58526:function(e,n,t){t.d(n,{U:()=>c});var r=t(4006),i=t(28001),l=t(32485),a=t.n(l),o=t(11510),d=t(53168);function c(e){let{offset:n}=e,t=(0,o.Iu)();return(0,r.Y)(i.LM,{className:a()("viewport-_BM4Bg",t&&"mobile-NByTHz"),style:{"--offset":"".concat(n,"px"),zIndex:d.GJ}})}},65942:function(e,n,t){t.d(n,{A:()=>r});function r(e){return(e||"").replace(/&#(\d+);/g,(e,n)=>String.fromCharCode(n))}}}]);