티스토리 수익 글 보기
!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@cdd116e”};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=”1d2bc69a-dbec-4316-96cd-c595aff03848″,e._sentryDebugIdIdentifier=”sentry-dbid-1d2bc69a-dbec-4316-96cd-c595aff03848″)}catch(e){}}();”use strict”;(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([[“27816″],{42383:function(e,t,i){i.d(t,{A:()=>n});let n={customThemeHeader:”customThemeHeader-hnC_lZ”,headerImageContainer:”headerImageContainer-RUy6uK”,portraitImage:”portraitImage-IxD7Ka”,fullWidthImageHeader:”fullWidthImageHeader-t5EqiB”,fullWidthHeaderContent:”fullWidthHeaderContent-HjaASe”,fullWidthHeaderSubtitle:”fullWidthHeaderSubtitle-VOunOK”,titleAndImageContainer:”titleAndImageContainer-Eb9L9t”,titleAndImageHeader:”titleAndImageHeader-IHm_Y5″,noImage:”noImage-uj9DyC”,image:”image-_uMo6d”,thickRule:”thickRule-aN1kyk”,”portrait-image-container”:”portrait-image-container-zwwsEI”,portraitImageContainer:”portrait-image-container-zwwsEI”,”landscape-image-container”:”landscape-image-container-QgDAqQ”,landscapeImageContainer:”landscape-image-container-QgDAqQ”,bylineWrapper:”bylineWrapper-AHoCt5″,bylineContainer:”bylineContainer-TXwfpr”,copy:”copy-WXqCFN”,eagleStampContainer:”eagleStampContainer-UIFpMk”,eagleStampImage:”eagleStampImage-EG5gS3″,america250Logo:”america250Logo-Mg4J2n”}},52077:function(e,t,i){i.d(t,{Ay:()=>V,Ui:()=>j,vo:()=>K});var n=i(69277),o=i(70408),s=i(4006),a=i(32485),r=i.n(a),l=i(78659),c=i.n(l),d=i(90128),u=i.n(d),p=i(63375),h=i.n(p),m=i(16858),_=i(31050),b=i(56808),f=i(750),g=i(17402),v=i(15734),y=i.n(v),w=i(69715),Y=i(23623),S=i(58925),k=i(54014),C=i(84605),T=i(95064),I=i(39598),P=i(26289),A=i(86500),E=i(90250),N=i(89490),F=i(76977),D=i(22602),R=i(63136),x=i(59294),M=i(50874),U=i(82776),O=i(92967),L=i(7642),B=i(91086);function V(e){var t,i;let{disableSelection:a,player:r,postId:l,renderTranscriptionChunk:d,transcription:u,onUpdateActiveRowIndex:p}=e,{iString:m}=(0,C.GO)(),{onStartClipping:_}=(0,w.MC)(),b=(0,g.useRef)(null),{selection:f,clearSelection:v,selectEndRef:Y,selectStartRef:S}=(0,x.MB)({containerRef:b,disable:null!=a&&a,playerRef:r}),[N,D]=(0,g.useState)(!0),[U,O]=(0,g.useState)(),[L,V]=(0,g.useState)([“nick”,”mills”]),[j,K]=(0,g.useState)({}),[z,G]=(0,g.useState)(!1),[J,Z]=(0,g.useState)(!1),[$,X]=(0,g.useState)(),{currentTime:Q,isPlaying:ee}=(0,P.yr)(r),et=j?Object.values(j).filter(e=>e):[],ei=!!((null==L?void 0:L.length)&&et.length),{setItems:en}=(0,T.IS)(),eo=null==U?void 0:U.findIndex(e=>e.start<=Q&&e.end>Q);if((0,g.useEffect)(()=>{p&&void 0!==eo&&-1!==eo&&p(eo)},[eo,p]),(0,g.useEffect)(()=>{D(!0),u.cdn_url&&y().get(u.cdn_url).then(e=>{if(!e.text)return;let t=JSON.parse(e.text),i=(0,M.qD)({rows:t});O(i),en(i);let n=h()(i.map(e=>{var t;return null!=(t=e.speaker)?t:””})).filter(e=>e).sort();n.length&&V(n)}).finally(()=>{D(!1)}),u.speaker_map&&Object.values(u.speaker_map).length&&K(u.speaker_map)},[null==U?void 0:U.length,en,u.cdn_url,u.cdn_unaligned_url,u.speaker_map]),N)return(0,s.Y)(H,{});if(!(null==U?void 0:U.length))return(0,s.Y)(“div”,{className:B.A.transcriptionStatus,children:(0,s.Y)(R.EY.Meta,{children:m((null==u?void 0:u.status)===”in_progress”?”Transcription in progress…”:”No transcript…”)})});let es=(null==r||null==(i=r.current)||null==(t=i.player)?void 0:t.tagName)===”VIDEO”,ea=es?”videogram”:”audiogram”;return(0,s.FD)(F.I1,{ref:b,children:[f&&(0,s.Y)(W,{isVideo:es,selection:f,onSelect:es?()=>{if(!f||!U||!S.current||!Y.current)return;let e=S.current,t=Y.current;(e.rowIndex>t.rowIndex||e.rowIndex===t.rowIndex&&e.offset>t.offset)&&([e,t]=[t,e]);let i=(0,E.At)({startRow:U[e.rowIndex],endRow:U[t.rowIndex],startOffset:e.offset,endOffset:t.offset,startNodeText:e.text,endNodeText:t.text});v(),_((0,o._)((0,n._)({},i),{source:”transcription”,title:null}))}:function(){if(f&&Y.current&&S.current&&U){let e=(0,n._)({},S.current),t=(0,n._)({},Y.current),[i,o]=(0,E.fE)({selectStart:e,selectEnd:t,alignedRows:U});i>o&&([i,o]=[o,i]),G(!0),y().post(“/api/v1/audiogram”).send({post_id:l,start_idx:i,end_idx:o,use_draft:!1}).then(e=>{var t,i;(null==(t=e.body)?void 0:t.data)&&(X(e.body.data),v(),(null==r||null==(i=r.current)?void 0:i.player)&&r.current.player.pause())}).finally(()=>G(!1))}}}),d&&U.map((e,t)=>{var i;return d({isPlaying:ee,row:e,rowIndex:t,words:e.words,showSpeaker:(0===t||null==(i=U[t-1])?void 0:i.speaker)!==e.speaker,speakerName:ei&&e.speaker?j[e.speaker]:void 0,onPause:()=>{var e;(null==r||null==(e=r.current)?void 0:e.player)&&r.current.player.pause()},onPlay:()=>{var t;(null==r||null==(t=r.current)?void 0:t.player)&&(r.current.player.currentTime=e.start+1e-4,r.current.player.play())}})}),!d&&U.map((e,t)=>(0,s.Y)(q,{idx:t,row:e,rows:U,speakerName:ei&&e.speaker?j[e.speaker]:void 0,onReassign:()=>Z(!0),currentTime:Q,isPlaying:ee,isSelected:!!(f&&Y.current&&S.current&&t===c()(t,Math.min(S.current.rowIndex,Y.current.rowIndex),Math.max(S.current.rowIndex,Y.current.rowIndex))),onClick:()=>{v()},onPause:()=>{var e;(null==r||null==(e=r.current)?void 0:e.player)&&r.current.player.pause()},onPlay:()=>{var t;(null==r||null==(t=r.current)?void 0:t.player)&&(r.current.player.currentTime=e.start+1e-4,r.current.player.play())}},t)),(0,s.Y)(I.B,{isOpen:!!(z||$),onClose:()=>X(void 0),isGenerating:z,finishedGram:$,noun:ea,postId:l,onDownload:function(e){return(0,A.u4)(A.qY.AUDIOGRAM_DOWNLOAD_CLICKED,{post_id:l,audiogram_id:null==$?void 0:$.id,media_upload_id:u.media_upload_id}),fetch(e,{method:”GET”}).then(e=>e.blob()).then(e=>{var t;let i=null==$||null==(t=$.video_url)?void 0:t.split(“/”).pop(),n=null==i?void 0:i.match(/^([^-]+-[^_]+)_/),o=(null==n?void 0:n[1])||””,s=URL.createObjectURL(e),a=document.createElement(“a”);a.href=s,a.download=”substack-“.concat(ea,”-“).concat(l,”-“).concat(o,”.mp4″),document.body.appendChild(a),a.click(),URL.revokeObjectURL(s),a.remove()})}}),(0,s.Y)(k.j,{isOpen:L&&!!L.length&&!!J,onClose:()=>Z(!1),speakers:L,speakerMap:j,onChangeSpeakerMap:K,postId:l})]})}function W(e){var t,i;let{isVideo:n,selection:o,onSelect:a}=e,{iString:l}=(0,C.GO)(),c=null==(i=o.anchorNode)||null==(t=i.parentElement)?void 0:t.getBoundingClientRect();return c?(0,s.Y)(Y.a,{children:(0,s.Y)(F.I1,{style:{top:(0,U.isTouchDevice)()?Math.max(c.y,0)+c.height+12:Math.max(c.bottom,0)+12,left:c.x+c.width/2,transform:”translateX(-50%)”,pointerEvents:”auto”,maxWidth:240},justifyContent:”center”,outline:”detail”,shadow:”md”,radius:”md”,className:r()(L.A.popover,L.A.mounted),padding:4,gap:4,children:n?(0,s.FD)(S.ut,{onClick:a,children:[(0,s.Y)(m.A,{stroke:”var(–color-utility-white)”,size:20}),(0,s.Y)(R.EY.B4,{color:”white”,weight:”medium”,children:l(“Create clip”)})]}):(0,s.FD)(S.ut,{onClick:a,children:[(0,s.Y)(_.A,{stroke:”var(–color-utility-white)”,size:20}),(0,s.Y)(R.EY.B4,{color:”white”,weight:”medium”,children:l(“Make audiogram”)})]})})}):null}function H(){return(0,s.FD)(F.VP,{gap:12,children:[(0,s.Y)(D.O,{width:”80%”,height:24}),(0,s.Y)(D.O,{width:”34%”,height:24}),(0,s.Y)(D.O,{width:”75%”,height:24}),(0,s.Y)(D.O,{width:”100%”,height:24}),(0,s.Y)(D.O,{width:”68%”,height:24})]})}function j(e){if(!e)return”Unknown Speaker”;let t=e.split(“_”),i=parseInt(t[1]);return””.concat(u()(t[0]),” “).concat(i+1)}function q(e){let{row:t,currentTime:i,onPlay:a,isPlaying:l,onPause:c,isSelected:d,onClick:u,idx:p,rows:h,onReassign:m,speakerName:_}=e,[v,y]=(0,g.useState)(!1),w=(0,g.useRef)(null),Y=t.start<=i&&t.end>=i,S=t.words.map(e=>e.start<=i&&e.end>=i?(0,s.FD)(s.FK,{children:[(0,s.Y)(“span”,{className:B.A.activeWord,children:e.word}),” “]}):””.concat(e.word,” “));S.length||(S=t.text.split(” “).map(e=>(0,s.FD)(“span”,{children:[e,” “]})));let k=null;if(t.speaker&&_){var C;let e=0===p||null==(C=h[p-1])?void 0:C.speaker;t.speaker!==e&&(k=(0,s.Y)(“div”,{className:B.A.speakerText,onClick:m,children:_}))}return(0,s.FD)(“div”,{ref:w,onClick:u,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),style:{display:”flex”,width:”100%”,alignItems:”center”},children:[l&&(!v||Y)?(0,s.Y)(f.A,{onClick:c,size:24,className:B.A.playCircle,style:(0,o._)((0,n._)({},v&&{color:”var(–color-accent-themed)”}),{visibility:Y||v?”visible”:”hidden”})}):(0,s.Y)(b.A,{onClick:a,size:24,className:B.A.playCircle,style:(0,o._)((0,n._)({},v&&{color:”var(–color-accent-themed)”}),{visibility:Y||v?”visible”:”hidden”})}),(0,s.FD)(“div”,{className:r()(B.A.transcriptionChunk,{[B.A.activeRow]:Y||d,[B.A.hoverChunk]:v}),”data-chunk-index”:p,children:[(0,s.Y)(“div”,{className:r()(B.A.rowIndicator,{[B.A.hoverRow]:v})}),(0,s.FD)(“div”,{style:{display:”flex”,flexDirection:”column”,flex:1,padding:”5px 0″},children:[k,(0,s.Y)(“div”,{className:B.A.rowText,”data-chunk-index”:p,children:S})]})]})]})}let K=e=>{let{isActiveRow:t,isPlaying:i,row:n,rowIndex:o,onPause:a,onPlay:l,postId:c,children:d,className:u,activeClassName:p,editable:h}=e,m=t&&i;return(0,s.Y)(N.az,{id:”transcription-“.concat(o),paddingRight:16,className:r()(u,{[null!=p?p:””]:m}),onClick:()=>{var e;null!=(e=window.getSelection())&&e.toString()||h||((0,A.u4)(A.qY.TRANSCRIPTION_TIMESTAMP_CLICKED,{post_id:c,timestamp:(0,O.kq)(n.start)}),m?a():l())},children:d})}},31793:function(e,t,i){i.d(t,{E:()=>P});var n=i(69277),o=i(70408),s=i(4006),a=i(83673),r=i.n(a),l=i(38970),c=i.n(l),d=i(17402),u=i(15734),p=i.n(u),h=i(89160),m=i(79796),_=i(27428),b=i(95691),f=i(84605),g=i(25006),v=i(46271),y=i(12501),w=i(68349),Y=i(36372),S=i(56458),k=i(4016),C=i(96301),T=i(77124),I=i(39318);let P=()=>{let e=(0,v.Jd)(),t=(0,g.df)(),i=(0,Y.d)(),{iString:a}=(0,f.GO)(),[l,u]=(0,d.useState)((null==e?void 0:e.name)||””),[P,A]=(0,d.useState)((null==e?void 0:e.email)||””),[E,N]=(0,d.useState)(!1),[F,D]=(0,d.useState)(!1),[R,x]=(0,d.useState)(null),[M,U]=(0,d.useState)(null),[O,L]=(0,d.useState)(!1),[B,V]=(0,d.useState)(!1),[W]=(0,d.useState)(0),[H,j]=(0,d.useState)(new Set),{ids:q}=(0,m.i)({pub:t}),{ids:K}=(0,m.i)({pub:t,pubSetting:”fp_primary_column_section_ids”}),{ids:z}=(0,T.q)({pub:null!=t?t:void 0}),{ids:G}=(0,b.P)({pub:null!=t?t:void 0}),{ids:J}=(0,_.M)({pub:null!=t?t:void 0}),{ids:Z}=(0,h.G)({pub:null!=t?t:void 0}),{result:$,isLoading:X,refetch:Q}=(0,y.st)({pathname:”/api/v1/subscription”,auto:!0}),{refetch:ee,isLoading:et}=(0,y.st)({pathname:”/api/v1/subscription/sections/email”,auto:!1,method:”PATCH”}),{refetch:ei}=(0,y.st)({pathname:”/api/v1/subscription/email”,auto:!1,method:”POST”});(0,d.useEffect)(()=>{!X&&(null==$?void 0:$.email_settings)&&j(new Set(Object.keys($.email_settings).filter(e=>{var t;return”individual”===(null==(t=$.email_settings)?void 0:t[e])}).map(e=>Number(e))))},[X,$]);let en=(0,d.useCallback)(async e=>{if(e&&e!==l){N(!0),x(null);try{await p().put(“/api/v1/user/profile”).send({name:e}),u(e)}catch(e){x((0,w.uX)(e)),console.error(“Name update failed:”,e)}finally{N(!1)}}},[l]),eo=(0,d.useCallback)(async()=>{if(!(null==e?void 0:e.email))return{success:!1};L(!0);try{return await p().post(“/api/v1/forgot”).send({email:e.email,for_pub:null==t?void 0:t.subdomain,redirect:window.location.pathname}),i.popToast(()=>(0,s.Y)(Y.y,{text:”Password reset email sent. Please check your inbox.”})),{success:!0}}catch(e){return console.error(“Password reset failed:”,e),i.popToast(()=>(0,s.Y)(Y.y,{text:(0,w.uX)(e)})),{success:!1}}finally{L(!1)}},[null==e?void 0:e.email,i]),es=(0,d.useCallback)(async(e,i)=>{if(e&&e!==P){if(e!==i)return void U(“Email addresses do not match”);D(!0),U(null);try{await p().put(“/api/v1/user/email”).send({email:e,email_doublecheck:i}),A(e),(0,w.V2)((0,I.bgT)({redirect:”/subscribe?isSignInAttempt=true”,for_pub:null==t?void 0:t.subdomain}))}catch(e){var n;(null==(n=e.response)?void 0:n.status)===403?U(“This email is already associated with another account”):U((0,w.uX)(e)),console.error(“Email update failed:”,e)}finally{D(!1)}}},[P]),ea=(0,d.useMemo)(()=>t?(0,S.Jh)({pub:t,includeMainPub:!(0,k.lu)({pub:t})}):[],[t]),er=(0,d.useMemo)(()=>ea.filter(e=>{var t,i,n,o;return!z.includes(null!=(t=e.sectionId)?t:-1)&&!G.includes(null!=(i=e.sectionId)?i:-1)&&!J.includes(null!=(n=e.sectionId)?n:-1)&&!Z.includes(null!=(o=e.sectionId)?o:-1)}),[ea,z,G,J,Z]),el=(0,d.useMemo)(()=>{let e=c()(ea,”sectionId”),t=[…z,…G].filter(e=>!Z.includes(e));return r()(t.map(t=>e[t]))},[ea,z,G,Z]),ec=(0,d.useCallback)(async(e,i)=>{if(!e||!t)return;let n=new Set(H);i?n.add(e):n.delete(e);try{await ee({json:er.reduce((t,n)=>(n.sectionId===e&&(t[n.sectionId]={setting:i?”individual”:”disabled”}),t),{})}),i&&(null==$?void 0:$.email_disabled)&&(await ei({json:{publication_id:t.id,email_disabled:!1,receive_podcast_emails:!0,source:”account_settings”}}),await Q()),j(n)}catch(e){console.error(“Failed to update newsletter subscription:”,e)}},[t,H,er,ee,ei,$,Q]),ed=(0,d.useCallback)(async(e,i)=>{if(!t)return;let n=[];”fromTheFreePress”===e?n=K:”featured”===e?n=q.filter(e=>!K.includes(e)):”topic”===e?n=er.filter(e=>!K.includes(e.sectionId||0)&&!q.includes(e.sectionId||0)).map(e=>e.sectionId||0):”video”===e&&(n=el.map(e=>e.sectionId).filter(e=>null!=e));let o=new Set(H);n.forEach(e=>{i?o.add(e):o.delete(e)});try{let e=n.reduce((e,t)=>(e[t]={setting:i?”individual”:”disabled”},e),{});await ee({json:e}),i&&(null==$?void 0:$.email_disabled)&&(await ei({json:{publication_id:t.id,email_disabled:!1,receive_podcast_emails:!0,source:”account_settings”}}),await Q()),j(o)}catch(e){console.error(“Failed to update newsletter group:”,e)}},[t,K,q,H,ee,ei,$,Q]),eu=(0,d.useCallback)(async()=>{if(t&&e)try{let e=er.filter(e=>e.sectionId).map(e=>e.sectionId);if(e.length>0){let t=e.reduce((e,t)=>(e[t]={setting:”disabled”},e),{});await ee({json:t})}await ei({json:{publication_id:t.id,email_disabled:!0,receive_podcast_emails:!1,source:”account_settings”}}),await Q(),j(new Set),i.popToast(()=>(0,s.Y)(Y.y,{text:”Successfully unsubscribed from all emails.”}))}catch(e){console.error(“Failed to unsubscribe from all emails:”,e),i.popToast(()=>(0,s.Y)(Y.y,{text:(0,w.uX)(e)}))}},[t,e,er,ee,ei,Q,i]),ep=(0,d.useCallback)(async()=>{if(confirm(a(“Are you sure? Time paid will not be refunded”)))try{await p().del(“/api/v1/subscription”).send({force_now:!0}),i.popToast(()=>(0,s.Y)(Y.y,{text:”Subscription cancelled successfully.”})),setTimeout(()=>{window.location.reload()},1e3)}catch(e){console.error(“Failed to delete subscription:”,e),i.popToast(()=>(0,s.Y)(Y.y,{text:(0,w.uX)(e)}))}},[a,i]),eh=(0,d.useCallback)(async()=>{V(!0);try{await p().post(“/api/v1/subscription/reactivate”).send({}),i.popToast(()=>(0,s.Y)(Y.y,{text:”Your subscription is set to renew.”})),await Q()}catch(e){console.error(“Failed to set to renew:”,e),i.popToast(()=>(0,s.Y)(Y.y,{text:(0,w.uX)(e)}))}finally{V(!1)}},[i,Q]),em=c()(er,”sectionId”),e_=t&&K?{name:”From The Free Press”,newsletters:r()(K.map(e=>em[e])).map(e=>(0,o._)((0,n._)({},e),{selected:H.has(e.sectionId||0),onToggle:t=>ec(e.sectionId||0,t)}))}:{name:”From The Free Press”,newsletters:[]},eb=t&&K?{name:”All”,newsletters:r()(er.filter(e=>e.sectionId).map(e=>(0,o._)((0,n._)({},e),{selected:H.has(e.sectionId||0),onToggle:t=>ec(e.sectionId||0,t)})))}:{name:”All”,newsletters:[]},ef=t&&q?{name:”Featured”,newsletters:r()(q.filter(e=>!K.includes(e)).map(e=>em[e])).map(e=>(0,o._)((0,n._)({},e),{selected:H.has(e.sectionId||0),onToggle:t=>ec(e.sectionId||0,t)}))}:{name:”Featured”,newsletters:[]},eg=t&&er?{name:”Topic Alerts”,newsletters:r()(er.filter(e=>!!e.sectionId&&!K.includes(e.sectionId)&&!q.includes(e.sectionId)).map(e=>(0,o._)((0,n._)({},e),{selected:H.has(e.sectionId||0),onToggle:t=>ec(e.sectionId||0,t)})))}:{name:”Topic Alerts”,newsletters:[]},ev=t&&er?{name:”Podcast and Video Alerts”,newsletters:r()(el.map(e=>(0,o._)((0,n._)({},e),{selected:H.has(e.sectionId||0),onToggle:t=>ec(e.sectionId||0,t)})))}:{name:”Podcast and Video Alerts”,newsletters:[]},ey=(null==$?void 0:$.status)===”trialing”,ew=null;return ey&&($.current_period_end?ew=new Date(1e3*$.current_period_end):$.expiry&&(ew=new Date($.expiry))),{name:l,email:P,updateName:en,updateEmail:es,isUpdatingName:E,isUpdatingEmail:F,nameError:R,emailError:M,isSendingReset:O,handlePasswordChange:eo,newsletters:{isLoading:X||et,fromTheFreePress:e_,all:eb,featured:ef,topic:eg,video:ev,updateNewsletter:ec,updateNewsletterGroup:ed,unsubscribeFromAllEmails:eu,pubEmailsDisabled:!!(null==$?void 0:$.email_disabled)},plan:null==$?void 0:$.plan,totalAmount:null==$?void 0:$.totalAmount,currency:null==$?void 0:$.currency,isLifetime:(null==$?void 0:$.type)===”lifetime”||(null==$?void 0:$.never_ends)||!1,isComped:(null==$?void 0:$.is_comped)||!1,isTrial:ey,giftCount:W,trialEnd:ew,canChangeSubscription:!!$&&(0,C.GU)($),subscription:null!=$?$:void 0,renewing:B,onSetToRenew:eh,onUnsubscribeNow:ep}}},6212:function(e,t,i){i.d(t,{$f:()=>eG,$y:()=>e7,DZ:()=>e1,HA:()=>eJ,I0:()=>e4,L4:()=>eX,RR:()=>e0,sT:()=>eZ});var n=i(99851),o=i(69277),s=i(70408),a=i(79785),r=i(4006),l=i(32485),c=i.n(l),d=i(84934),u=i(17402),p=i(15734),h=i.n(p),m=i(43262),_=i(3526),b=i(70997),f=i(76609),g=i(76219),v=i(95337),y=i(71328),w=i(36449),Y=i(70345),S=i(27437),k=i(15052),C=i(9615),T=i(34746),I=i(71857),P=i(13918),A=i(65754),E=i(90177),N=i(41935),F=i(20674),D=i(47789),R=i(3338),x=i(37494),M=i(76185),U=i(58398),O=i(79391),L=i(65207),B=i(64591),V=i(69656),W=i(77921),H=i(1842),j=i(90847),q=i(49984),K=i(81668),z=i(56778),G=i(52820),J=i(84565),Z=i(84605),$=i(13505),X=i(53989),Q=i(86500),ee=i(53928),et=i(66565),ei=i(94729),en=i(64595),eo=i(13022),es=i(1459),ea=i(68349),er=i(24078),el=i(89490),ec=i(35369),ed=i(16074),eu=i(76977),ep=i(20500),eh=i(63136),em=i(36372),e_=i(56007),eb=i(36375),ef=i(61554),eg=i(49095),ev=i(98111),ey=i(56458),ew=i(4016),eY=i(96301),eS=i(83873),ek=i(39318),eC=i(41086),eT=i(49807),eI=i(98949),eP=i(82776),eA=i(57324),eE=i(96063);function eN(){let e=(0,a._)([“The full video is for subscribers in the “,” plan”]);return eN=function(){return e},e}function eF(){let e=(0,a._)([“The full video is for subscribers in the Founding Member plan”]);return eF=function(){return e},e}function eD(){let e=(0,a._)([“The full video is for paid subscribers”]);return eD=function(){return e},e}function eR(){let e=(0,a._)([“This email is for subscribers in the “,” plan”]);return eR=function(){return e},e}function ex(){let e=(0,a._)([“This email is for subscribers in the Founding Member plan”]);return ex=function(){return e},e}function eM(){let e=(0,a._)([“This email is for paid subscribers”]);return eM=function(){return e},e}function eU(){let e=(0,a._)([“Continue reading this post for free, courtesy of “,”.”]);return eU=function(){return e},e}function eO(){let e=(0,a._)([“This post is for subscribers in the “,” plan”]);return eO=function(){return e},e}function eL(){let e=(0,a._)([“This post is for subscribers in the Founding Member plan”]);return eL=function(){return e},e}function eB(){let e=(0,a._)([“This post is for paid subscribers”]);return eB=function(){return e},e}function eV(){let e=(0,a._)([“Subscribe to “,” to continue reading”]);return eV=function(){return e},e}function eW(){let e=(0,a._)([“Visit the author’s Substack to subscribe and read more.”]);return eW=function(){return e},e}function eH(){let e=(0,a._)([“Visit “,””]);return eH=function(){return e},e}function ej(){let e=(0,a._)([“Support “,””]);return ej=function(){return e},e}function eq(){let e=(0,a._)([“Subscribe to “,””]);return eq=function(){return e},e}function eK(){let e=(0,a._)([“By “,””]);return eK=function(){return e},e}function ez(){let e=(0,a._)([“Subscribe to “,””]);return ez=function(){return e},e}let eG=”focus-comment-input”,eJ=(e,t)=>!!e&&!e.invite_only&&!!t&&t.has_publication&&!t.is_admin&&!t.is_contributor&&!t.is_public_admin&&(0,es.e)(t,e),eZ=(e,t,i,n)=>”enabled”===e.payments_state?!(null==t?void 0:t.is_subscribed):(null==t?void 0:t.is_free_subscribed)&&”disabled”===e.payments_state&&!e.invite_only?!n&&i&&!(null==t?void 0:t.is_pledged):!(null==t?void 0:t.is_free_subscribed);class e$ extends u.Component{async loadReactors(){let e=await h().get(“/api/v1/post/”.concat(this.props.post.id,”/facepile”));this.setState({reactors:e.body.reactors,restackers:e.body.restackers})}async componentDidMount(){var e,t,i,n;if(this.props.paywall&&!this.props.postPreview&&this.props.post.hidden)if(“forced_registration”!==this.props.post.meter_type||this.props.user){if((0,Q.u4)(Q.qY.POST_PAYWALL_SHOWN,{post_id:this.props.post.id,post_audience:this.props.post.audience,post_type:this.props.post.type,user_id:null==(t=this.props.user)?void 0:t.id,paywall_variant:this.getPaywallConfiguration(this.state.bypassPostUnlockSubscriptionCheck).variant}),(0,ee.jN)(ee.ti.TRACK_PAYWALL_SHOWN),(0,ew.lu)({pub:this.props.pub})){let e=null==(n=window)||null==(i=n._analyticsConfig)?void 0:i.anonymousId;(0,et.BU)(“paywall_shown”,(0,o._)({post_id:this.props.post.id},this.props.user?{user_id:this.props.user.id,user_email:this.props.user.email,membership_type:this.props.user.is_subscribed?”paid”:this.props.user.is_free_subscribed?”free”:”none”}:e?{anonymousId:e}:{}))}}else(0,Q.u4)(Q.qY.POST_REGWALL_SHOWN,{post_id:this.props.post.id,post_audience:this.props.post.audience,post_type:this.props.post.type});this._triggerShare=()=>this.triggerShare(),null==(e=this.containerRef.current)||e.addEventListener(“share-post”,this._triggerShare),this.props.post&&this.loadReactors(),.001>Math.random()&&(0,Q.kE)({post:this.props.post});let s=(0,eC.y)(“subscribe_prompt”);s&&(“paid”===s?this.props.popToast(()=>(0,r.Y)(em.y,{text:”Subscription purchased for “.concat(this.props.pub.name)})):this.props.popToast(()=>(0,r.Y)(em.y,{text:”Subscribed to “.concat(this.props.pub.name)})));let a=null;0x9f7afc3===this.props.post.id&&alert(“userAgent: “.concat(navigator.userAgent)),(0,eI.Fr)({checkFirst4:!0})&&(/Instagram/i.test(navigator.userAgent)?a=”instagram”:/(Messenger|FBAN|FBAV|FB_IAB)/i.test(navigator.userAgent)?a=”facebook”:/LinkedIn/i.test(navigator.userAgent)&&(a=”linkedin”)),a?this.setWebviewModalState(a):this.setPostPromptState()}componentWillUnmount(){if(this._triggerShare){var e;null==(e=this.containerRef.current)||e.removeEventListener(“share-post”,this._triggerShare)}this.props.stopInterval&&this.props.stopInterval()}getPaywallConfiguration(e){let{freeSignup:t,freeTrialCoupon:i,getSettingFor:n,post:o,pub:s,user:a}=this.props,r=!0===this.props.paywall&&s.paywall_free_trial_enabled&&i,l=!!(n(“paywall_unlock_tokens”)&&”only_paid”===o.audience&&o.teaser_post_eligible&&!(null==a?void 0:a.is_subscribed)&&((null==a?void 0:a.is_free_subscribed)||t||e)&&!(null==a?void 0:a.has_redeemed_post_unlock_token)&&!this.state.hasPostUnlockFailed);return{variant:r?”free_trial”:l?”post_unlock”:”regular”,showPostUnlockPrompt:l}}async setWebviewModalState(e){this.setState({showWebViewModal:{action:”facebook”===e?”read”:”follow”,platform:e}})}async setPostPromptState(){let{post:e,disableSubscribePrompt:t,readerIsSearchCrawler:i,pub:n,user:o,referringUser:s,forceFollowPrompt:a}=this.props,r=”newsletter”===e.type&&!0===this.props.getSettingFor(“enable_post_page_conversion”)&&!t&&!(0,ea.ar)()&&!i,l=this.props.skipFollowPrompt,c=!1;if(a)c=!0;else if(!eP.PUB_IDS_TO_NOT_SHOW_FOLLOW_PROMPT_ON.includes(n.id)&&!l&&r&&s&&s.name&&s.id!==(null==o?void 0:o.id)&&n.author_id!==s.id&&n.contributors.every(e=>e.user_id!==s.id)){let e=[];if(o)try{e=await (0,ei.x6)(“/api/v1/feed/following”)}catch(e){console.warn(“Failed to fetch following state”,e)}c=!e.includes(s.id)}let d=r&&!c&&!this.props.paywall&&!this.props.freeSignup&&!o;this.setState({shouldShowFollowPrompt:c,shouldShowSubscribePrompt:d})}triggerShare(){let{fromEmail:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState({shareModalOpen:!0,shareModalMedium:e?”email”:”web”})}onBottomReached(e){this.state.bottomReached||this.props.postPreview||(this.setState({bottomReached:!0}),(0,Q.sM)({post:this.props.post,hasPaywall:e,surface:”publication”,trackerUuid:this.props.getCurrentUuid()}))}shouldShowUFI(){let{fromPostPage:e,user:t,pub:i,getSettingFor:n}=this.props,{canShowSubscribeFooterAfterPost:o}=this.state;return!!e&&!!o&&eZ(i,t,!!n(“payment_pledges_enabled”),this.shouldShowRecommendCta)}shouldTrackPaywallPostSeen(){if(“undefined”==typeof window)return!1;let e=document.createElement(“div”);e.innerHTML=this.props.post.body_html;let t=this.props.pub.post_preview_limit||eP.DEFAULT_PREVIEW_LIMIT,i=””,n=!1;for(let o=e.childNodes.length-1;o>=0;o–){let s=e.childNodes[o];if(s&&(i+=s.textContent).length>t){n=!0;break}}return n}render(){var e,t,i,n,s,a,l,u,p;let{user:h,pub:b,post:v,freeSignup:S,freeSignupEmail:k,isServingFreePodcastUrl:C,isShowsPost:E,isTheFreePressTheme:F,reaction_token:O,invisible:q,paywall:G,onChange:J,hideTitle:Z,noTitleLink:$,showComments:X,fromPostPage:ee,freeTrialCoupon:et,showRestackModal:ei,stripe_publishable_key:es,crossPostInfo:ea,iString:er,iTemplate:el,themeVariables:ed,referringUser:ep,renderComments:eh,renderContent:e_,startInterval:ef,forceFollowPrompt:eg}=this.props,{showTranscription:ev,truncated:eY,autoPlayVoiceOver:eC,reactors:eP,restackers:eA,shouldShowFollowPrompt:eV,shouldShowSubscribePrompt:eW,showWebViewModal:eH,bypassPostUnlockSubscriptionCheck:ej}=null!=(n=this.state)?n:{};if(v.is_geoblocked)return(0,r.Y)(e8,{});let eq=(0,ew.lu)({pub:b}),eK=!!this.context.getConfigFor(“like_posts_enabled”),ez=(0,w.Rv)(null!=(s=eY||v.body_html)?s:””,eq?”h1, h2, h3″:”h1, h2, h3, h4″),eG=!G||G&&this.shouldTrackPaywallPostSeen();ef&&eG&&ef({postId:this.props.post.id,containerElementRef:this.containerRef,elementIsStatic:!0});let eJ=”video”===v.type&&!G&&(null==(e=v.videoUpload)?void 0:e.transcription),eZ=this.shouldShowUFI()&&!(0,ew.lu)({pub:b}),e$=(0,I.M)(v),eX=!!eP&&eP.length>0,{showPostUnlockPrompt:e1}=this.getPaywallConfiguration(ej),e7=(0,eI.Fr)({checkFirst4:!0}),e5=””;e5=”video”===v.type?”founding”===v.audience&&(0,ey.m4)(b)?el(eN(),null!=(a=(0,ey.m4)(b))?a:””):el(“founding”===v.audience?eF():eD()):”adhoc_email”===v.type?”founding”===v.audience&&(0,ey.m4)(b)?el(eR(),null!=(l=(0,ey.m4)(b))?l:””):el(“founding”===v.audience?ex():eM()):e1?e7?er(“Continue reading this post for free in the Substack app”):el(eU(),b.author_name||b.name):”founding”===v.audience&&(0,ey.m4)(b)?el(eO(),null!=(u=(0,ey.m4)(b))?u:””):el(“founding”===v.audience?eL():eB());let e3=(0,r.FD)(j.Z,{disabled:!F,post:v,isShowsPost:E,children:[(0,r.Y)(D.I,{post:v,user:h,onChange:J,reaction_token:O,children:e=>(0,r.FD)(r.FK,{children:[(0,r.Y)(“div”,{className:”available-content”,children:ev?(0,r.Y)(“div”,{className:”container”,children:(0,r.Y)(eb.A,{post:v,pub:b,user:h,playerRef:this.videoPlayer})}):(0,r.Y)(x.A,{html:eY||v.body_html||null,pub:b,trackSelection:!0,post:v,themeVariables:ed,user:h,freeSignup:S,freeSignupEmail:k,paywall:G,showing_behind_paywall:!!v.post_paywall_content_for_google,onLike:e})}),v.post_paywall_content_for_google&&(0,r.Y)(“div”,{className:”paywall-content”,children:(0,r.Y)(x.A,{html:v.post_paywall_content_for_google,pub:b,trackSelection:!1,post:v,user:h,freeSignup:S,freeSignupEmail:k,paywall:G,onLike:e})})]})}),!q&&eG&&(0,r.Y)(z.A,{onVisible:()=>this.onBottomReached(!!G)})]}),e9=(0,ew.S2)({pub:b}),te=(0,en.h8)({post:v,pub:b}),tt=this.context.getConfigFor(“thefp_show_fixed_footer_paywall”),ti=eq?(0,r.Y)(W.n,{post:v,user:h,pub:b,freeSignupEmail:k}):(0,r.Y)(T.pU,(0,o._)({user:h,freeSignupEmail:k,freeSignup:S,publication:b,post:v,coupon:!0===this.props.paywall&&this.props.pub.paywall_free_trial_enabled?et:null,showPostUnlockPrompt:e1,magicToken:O,isUnsubscribedPostUnlockUpsell:ej,onOpenPostUnlockModal:ej?()=>this.setState({showPostUnlockModal:!0}):void 0,hasCompletedUnsubscribedUnlock:!!this.state.hasCompletedUnsubscribedUnlock,onPostUnlockError:()=>this.props.popToast(()=>(0,r.Y)(em.y,{text:er(“Teaser posts are not currently available for this content”)}))},Object.assign({title:e5,reauthenticationTitle:er(“To read this, please re-authenticate.”)},G)));return(0,r.FD)(“article”,{className:c()(“typography “.concat(v.type,”-post post”),{“shows-post”:E,”full-width-image-header”:(null==(t=v.postTheme)?void 0:t.header_variant)===”full-width-image”,[null!=(p=eE.A.bottomWithTos)?p:”undefined”]:b.has_custom_tos}),ref:this.containerRef,children:[(null==h?void 0:h.is_contributor)&&(null==v?void 0:v.id)&&(null==v?void 0:v.type)===”page”&&(0,r.Y)(ec.$n,{priority:”secondary”,href:(0,eT.I_S)(b,v.id,{params:{back:document.location.href}}),localNavigation:!1,leading:(0,r.Y)(d.A,{size:20}),children:er(“Edit”)}),(0,r.Y)(e2,{post:v,user:h,onChange:J}),(0,r.Y)(U.Z,{isOpen:!!this.state.shareModalOpen,onClose:()=>this.setState({shareModalOpen:!1,shareModalMedium:void 0}),user:h,pub:b,post:v,reaction_token:O,medium:this.state.shareModalMedium||”web”}),this.state.showPostUnlockModal&&(0,r.Y)(R.V,{post:v,pub:b,user:h,freeSignupEmail:k,magicToken:O,onClose:()=>this.setState({showPostUnlockModal:!1}),onSubscriptionComplete:()=>{if(this.setState({hasCompletedUnsubscribedUnlock:!0}),”undefined”!=typeof window&&window.history.replaceState){let e=(0,ek.oRR)({has_completed_unsubscribed_unlock:”true”});window.history.replaceState({},document.title,e)}},onUnlockFailed:()=>{this.setState({hasPostUnlockFailed:!0})},hasCompletedUnlock:!!this.state.hasCompletedUnsubscribedUnlock}),eV&&(0,r.Y)(Y.y$,{pub:b,post:v,referringUser:ep,freeSignupEmail:k,forceFollowPrompt:eg,surface:”post-follow-referrer-prompt”}),eW&&(0,r.Y)(L.F,{pub:b,post:v,stripe_publishable_key:es,sharer:ep}),eH&&(0,r.Y)(_.D,{pub:b,slug:v.slug,action:eH.action,platform:eH.platform}),e_?(0,r.FD)(r.FK,{children:[!q&&(0,r.Y)(z.A,{onVisible:()=>{this.onTopReached(!!G)}}),e_({comments:eh?eh():null,crossPostInfo:ea,postContent:(0,r.FD)(r.FK,{children:[e3,!!(G&&!v.post_paywall_content_for_google&&!C)&&ti]})})]}):(0,r.FD)(r.FK,{children:[(0,r.Y)(e4,{user:null!=h?h:null,pub:b,post:v,isOnPostPage:!0,reaction_token:O,allowEdit:!0,showShare:!0,showSubtitle:!0,showPhoto:!0,showCommentRestack:!b.hide_post_restacks,hideTitle:!!Z,noTitleLink:!!$,onChange:J,hideDate:”page”===v.type,hideAudience:”page”===v.type,showReactions:eK,showComments:!!X,showLabel:!0,fromPostPage:!!ee,onClickCommentButton:this.onCommentButtonClicked,reactors:eP,showRestackModal:!!ei,showTranscriptionButton:!!eJ,onTranscriptionClick:this.onTranscriptionClick,autoPlayVoiceOver:eC}),v.age_verification&&v.age_verification.status!==eS.Y.CompletedAdult&&(0,r.Y)(m.J,{content:v,description:v.subtitle,source:”post”}),!q&&eG&&(0,r.Y)(z.A,{onVisible:()=>this.onTopReached(!!G)}),(v.has_voiceover||!!v.voiceoverUpload)&&!F&&(0,r.Y)(f.g,{pub:b,post:v,mediaUploadId:v.voiceover_upload_id,duration:null==(i=v.voiceoverUpload)?void 0:i.duration,autoPlay:eC,href:v.canonical_url,isPaywalled:!v.voiceover_upload_id}),!v.voiceoverUpload&&eC&&e$&&(0,r.Y)(K.w,{postId:v.id,onClose:()=>{(0,Q.u4)(Q.qY.LISTEN_TO_THIS_POST_MODAL_DISMISSED,{post_id:v.id}),this.setState({autoPlayVoiceOver:!1})}}),ea?(0,r.Y)(y.k,{postType:v.type,crossPostInfo:ea}):null,(0,r.FD)(“div”,{children:[ez&&eq&&(0,r.Y)(H._,{postId:null==v?void 0:v.id,toc:ez,leftMargin:24,title:v.title,commentCount:v.comment_count,showComments:!0,wordCount:v.wordcount}),ez&&!eq&&(0,r.Y)(B.M,{toc:ez,position:”fixed”}),e3,te&&(0,r.Y)(g.u,{doiUrl:te.doiUrl,pdfUrl:te.pdfUrl}),G&&!v.post_paywall_content_for_google?(0,r.FD)(r.FK,{children:[ti,(0,r.Y)(A.e,{post:v})]}):eY?(0,r.Y)(“p”,{children:(0,r.FD)(ec.$n,{className:”expander”,onClick:()=>this.setState({truncated:null}),children:[“+ “,er(“show full post”)]})}):![“page”].includes(null==v?void 0:v.type)&&(0,r.FD)(r.FK,{children:[eZ&&(0,r.Y)(e0,{pub:b,post:v,user:h,freeSignup:!!S,freeSignupEmail:k}),!eZ&&this.shouldShowRecommendCta&&(0,r.Y)(M.R,{pub:b}),ea&&(“only_paid”===v.audience||”founding”===v.audience)&&(0,r.Y)(eQ,{pub:b}),(0,eo.Ay)(“like_posts_enabled”)&&b.community_enabled&&eX&&!F&&(0,r.Y)(eu.fI,{borderTop:”detail-themed”,paddingY:16,children:(0,r.Y)(P.d2,{post:v,pub:b,user:h,reactors:eP,secondaryFaces:eA})}),!F&&(0,r.Y)(r.FK,{children:(0,r.Y)(“div”,{className:”post-footer”,children:(0,r.Y)(N.bW,{post:v,pub:b,user:h,onChange:J,postReactionToken:O,position:”post-footer”})})}),(0,r.Y)(A.e,{post:v})]}),v.show_guest_bios&&”podcast”!==v.type&&!eq&&!e9&&(0,r.Y)(e6,{user:h,post:v})]})]}),eq&&G&&!(null==h?void 0:h.is_subscribed)&&tt&&”everyone”!==v.audience&&(0,r.Y)(V.Q,{pub:b})]})}constructor(e,t){var i,o,s;super(e,t),(0,n._)(this,”containerRef”,void 0),(0,n._)(this,”podcastCommentInput”,void 0),(0,n._)(this,”podcastPlayer”,void 0),(0,n._)(this,”videoPlayer”,void 0),(0,n._)(this,”shouldShowRecommendCta”,void 0),(0,n._)(this,”_triggerShare”,void 0),(0,n._)(this,”onTopReached”,e=>{this.state.topReached||this.props.postPreview||(this.setState({topReached:!0}),(0,Q.Jw)({post:this.props.post,hasPaywall:e,surface:”publication”,markRead:!!this.props.user&&!this.props.noPageView,user:this.props.user,trackerUuid:this.props.getCurrentUuid()}))}),(0,n._)(this,”onTranscriptionClick”,()=>{this.setState(e=>({showTranscription:!e.showTranscription}))}),(0,n._)(this,”onCommentButtonClicked”,e=>{this.props.showComments&&!this.props.post.comment_count&&(e.stopPropagation(),e.preventDefault(),document.dispatchEvent(new CustomEvent(eG)))});const a=”true”===(0,eC.y)(“has_completed_unsubscribed_unlock”)&&(null==(i=this.props.user)?void 0:i.is_free_subscribed),r=!0===this.props.paywall&&”only_paid”===this.props.post.audience&&this.props.post.teaser_post_eligible,l=!this.props.user&&r,c=this.props.user&&r&&!this.props.user.is_subscribed&&!this.props.user.reader_installed_at&&(a||!this.props.user.is_free_subscribed&&!this.props.user.has_redeemed_post_unlock_token),d={bypassPostUnlockSubscriptionCheck:!!(l||c),showTranscription:!1,autoPlay:!1,autoPlayVoiceOver:!1,commentSort:null!=(s=e.post.default_comment_sort)?s:”best_first”,loadedWithHeaderLink:”undefined”!=typeof window&&(null==(o=window.location.hash)?void 0:o.startsWith(“#”.concat(encodeURIComponent(“\xa7”)))),reactors:null,feedUrl:null,shouldShowSubscribePrompt:!1,shouldShowFollowPrompt:!1,hasCompletedUnsubscribedUnlock:a};e.paywall||e.post.hidden||!e.post.body_html||(d.canShowSubscribeFooterAfterPost=e7(e.post.body_html),d.truncated=e.truncateAt?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(“undefined”==typeof window)return null;let n=document.createElement(“div”);if(n.innerHTML=e,null===n.textContent||n.textContent.length1&&n.textContent.length>i);return n.innerHTML}(e.post.body_html,e.truncateAt,e.truncateTo):null),”undefined”!=typeof window&&window.history.replaceState&&(“true”===(0,eC.y)(“autoPlay”)&&(window.history.replaceState({},document.title,(0,ek.oRR)({autoPlay:null})),d.autoPlay=!0),”true”===(0,eC.y)(“play_audio”)&&(window.history.replaceState({},document.title,(0,ek.oRR)({play_audio:null})),d.autoPlayVoiceOver=!0)),this.state=d,this.containerRef=(0,u.createRef)(),this.podcastCommentInput=(0,u.createRef)(),this.podcastPlayer=(0,u.createRef)(),this.videoPlayer=(0,u.createRef)(),this.shouldShowRecommendCta=eJ(e.pub,e.user)}}(0,n._)(e$,”contextType”,J.Ke),(0,n._)(e$,”displayName”,”Post”);let eX=(0,e_.Ho)((0,G.WR)((0,X.S0)((0,Z.wr)((0,$.BF)(e$))))),eQ=e=>{let{pub:t}=e,{iTemplate:i}=(0,Z.GO)();return(0,r.FD)(r.FK,{children:[(0,r.Y)(ed.c,{paddingTop:16}),(0,r.FD)(eu.VP,{gap:16,paddingY:32,alignItems:”center”,children:[(0,r.FD)(eu.VP,{gap:8,paddingBottom:8,children:[(0,r.Y)(eh.EY.H4,{flex:”grow”,align:”center”,children:i(eV(),t.name)}),(0,r.Y)(eh.EY.B3,{flex:”grow”,align:”center”,color:”secondary”,children:i(eW())})]}),(0,r.Y)(ec.$n,{priority:”primary”,onClick:()=>{(0,Q.u4)(Q.qY.POST_END_CTA_CLICKED,{type:”cross-post”}),(0,ea.V2)((0,eT.eV6)(t,{params:{utm_source:eA.VU.postEndCta,addBase:!0}}),{local_navigation:!1})},children:i(eH(),t.name)})]})]})},e0=e=>{let{pub:t,post:i,user:n,freeSignup:o,freeSignupEmail:s,overridePledgesEnabled:a}=e,{iString:l,iTemplate:c}=(0,Z.GO)(),{getSettingFor:d}=(0,X.Pu)(),[p,h]=(0,u.useState)(null),m=(0,eC.y)(“just_subscribed”),_=”disabled”===t.payments_state&&!t.invite_only&&(d(“payment_pledges_enabled”)||a),b=”enabled”===t.payments_state&&(null==n?void 0:n.is_free_subscribed)&&!(null==n?void 0:n.is_subscribed)?”paid_upsell”:_&&(null==n?void 0:n.is_free_subscribed)&&!(null==n?void 0:n.is_pledged)?”pledge_upsell”:”free_upsell”,f=_&&(null==n?void 0:n.is_free_subscribed)&&!(null==n?void 0:n.is_pledged);(0,u.useEffect)(()=>{(0,Q.u4)(Q.qY.POST_END_CTA_RENDERED,{pub_id:t.id,post_id:i.id,type:b})},[t.id,i.id,b,f,null==n?void 0:n.is_free_subscribed]);let g=(0,eP.getByLine)(t);return(0,r.FD)(r.FK,{children:[(0,r.Y)(ed.c,{paddingTop:16}),(0,r.Y)(z.A,{onVisible:()=>{(0,Q.u4)(Q.qY.POST_END_CTA_SEEN,{pub_id:t.id,post_id:i.id,type:b})}}),(0,r.FD)(eu.VP,{gap:16,paddingY:32,children:[(0,r.FD)(eu.VP,{gap:8,paddingBottom:8,children:[(0,r.Y)(eh.EY.H4,{flex:”grow”,align:”center”,children:_&&(null==n?void 0:n.is_free_subscribed)?c(ej(),t.name):c(eq(),t.name)}),(0,r.FD)(eh.EY.B3,{flex:”grow”,align:”center”,color:”secondary”,children:[g?c(eK(),g):null,g&&t.rankingDetail?” \xb7 “:null,t.rankingDetail]}),t.hero_text&&(0,r.Y)(eh.EY.B3,{color:”primary”,flex:”grow”,align:”center”,children:t.hero_text})]}),(0,r.Y)(eu.VP,{alignItems:”center”,gap:16,children:f?(0,r.Y)(ec.$n,{priority:”primary”,onClick:()=>{(0,Q.u4)(Q.qY.POST_END_CTA_CLICKED,{type:”pledge”}),(0,ea.V2)((0,eT.eV6)(t,{params:{utm_source:eA.VU.postEndCta}}),{local_navigation:!1})},children:l(“Pledge your support”)}):(0,r.FD)(r.FK,{children:[(0,r.Y)(O.A,{pub:t,post:i,user:n,freeSignup:o,freeSignupEmail:s,isStatic:!1,onPrepareData:()=>{h(null)},source:”post-end-cta”,className:eE.A.subscribeWidget}),p&&(0,r.Y)(ep.yn,{align:”center”,children:p}),!(null==n?void 0:n.is_free_subscribed)&&!m&&(0,r.Y)(eu.VP,{maxWidth:400,children:(0,r.Y)(ef.U,{includeCheckbox:!1,addSubscribePreamble:!0,color:”secondary”,textAlign:”center”})})]})})]})]})},e1=e=>{let{pub:t}=e;return(0,r.FD)(“div”,{className:”post-silhouette”,children:[(0,r.Y)(“div”,{className:”post-silhouette-title”}),(0,r.Y)(“div”,{className:”post-silhouette-meta “.concat(t&&t.bylines_enabled&&t.byline_images_enabled?”with-byline-image”:””)}),(0,r.Y)(“div”,{className:”post-silhouette-body”})]})},e4=e=>{var t,i,n,o;let s,{allowEdit:a,allowSendEmail:l,allowTruncate:d,base_url:u,children:p,className:h,hideAudience:m,hideDate:_,hideTitle:f,hidePinning:g,noTitleLink:y,isStatic:w,isFreePreview:Y,is_draft:S,onChange:T,post:A,pub:D,reaction_token:R,showComments:x,showDatetime:M,showEmailSent:U,showReactions:O,showShare:L,showAppUpsell:B,showSubtitle:V,showPhoto:W,showLabel:H,showRestack:j,showCommentRestack:K,hideAuthor:z,user:G,utm_source:J,fromPostPage:$,onClickCommentButton:X,reactors:Q,inThreadHead:ee,publishedPost:et,compEndsSoon:ei,compEndedRecently:en,siteConfigValues:eo={},eligibleForTTS:es,showRestackModal:ea,showIcon:er,isOnPostPage:el,showTranscriptionButton:ec,onTranscriptionClick:ed,isAppMode:ep=!1,republishingPost:em,autoPlayVoiceOver:e_=!1,readInAppText:eb}=e,{iString:ef}=(0,Z.GO)(),eg=(0,eI.Fr)({checkFirst4:!0}),ey=em||A,eS=”number”==typeof d?d:45,ek=A.title&&A.title.length>eS,eC=S?A.draft_title:A.title,eN=[(er||”thread”===A.type)&&(0,r.Y)(k.A,{isStatic:w,height:15,className:A.type}),ek&&d?(0,eP.truncateWords)(eC,eS):eC],eF=S?A.draft_subtitle:A.subtitle;A.section_id&&D.sections&&D.sections.length&&(A.section=D.sections.find(e=>e.id===A.section_id));let eD=(0,eY.ZA)({pub:D,subscriptionType:null==G?void 0:G.subscription_type}),eR=![“page”].includes(null==A?void 0:A.type),ex=eR&&w&&ei&&!eD&&(null==eo?void 0:eo.continue_support_cta_in_newsletter_emails),eM=(0,I.M)(A)||es||A.voiceoverUpload,eU=(null==A?void 0:A.type)===”adhoc_email”,eO=eR&&w&&!eU&&!ep,eL=(0,ew.lu)({pub:D})&&(!!A.postTheme||[“video”,”podcast”].includes(A.type)&&ee);s=A.post_url_override?A.post_url_override:w&&ep?ev.T.POST_TITLE_APP_MODE_URL:w&&(null==eo?void 0:eo.publication_has_own_app)?ev.T.POST_URL:w?ev.T.POST_TITLE_URL:””.concat((0,eT.wu9)(D,A)).concat(J?”?utm_source=”.concat(J):””);let eB=””.concat(D.base_url+(ey.section?(0,eT.Dor)(D,{section:ey.section}):””),”/?utm_source=”).concat(eA.VU.substack,”&utm_medium=”).concat(eA.Jn.menu);return eL?(0,r.Y)(q.Xl,{post:A,postTheme:A.postTheme,title:eC,subtitle:eF,pub:D,inThreadHead:!!ee,autoPlayVoiceOver:e_}):(0,r.FD)(“div”,{className:c()(“post-header”,h),role:”region”,”aria-label”:ef(“Post header”),children:[(0,ew.S2)({pub:D})&&(null!=(o=null==(t=A.postTags)?void 0:t.length)?o:0)>0&&(0,r.Y)(eu.fI,{alignItems:”center”,gap:4,paddingBottom:8,children:null==(i=A.postTags)?void 0:i.map((e,t)=>(0,r.FD)(r.FK,{children:[0!==t&&(0,r.Y)(eh.EY.Meta,{children:”—”}),(0,r.Y)(eh.EY.Meta,{as:”a”,size:14,href:(0,eT.ii9)(D,e),children:e.name})]}))}),H&&A.section&&(0,r.Y)(eu.fI,{className:”post-label”,children:(0,r.Y)(eh.EY.Meta,{as:”a”,size:14,href:eB,children:null==(n=ey.section)?void 0:n.name})}),ex&&(0,r.Y)(v.K,{post:A,compAlreadyExpired:en}),!f&&(0,r.Y)(“h1”,{className:c()(“post-title”,A.is_published?”published”:”restack”!==A.type||em?”adhoc_email”===A.type?”adhoc”:”unpublished”:”email-only-cross-post”,{“post-title–the-pillar”:(0,ew.S2)({pub:D})},eE.A.title),dir:”auto”,children:y?eN:(0,r.Y)(“a”,{href:s,children:eN})}),V&&eF&&(0,r.Y)(“h3”,{className:c()(“subtitle”,{“subtitle–the-pillar”:(0,ew.S2)({pub:D})},eE.A.subtitle),dir:”auto”,children:eF}),”page”===A.type?(0,r.Y)(“div”,{style:{height:32}}):el&&!w?(0,r.FD)(eu.VP,{paddingBottom:16,”aria-label”:ef(“Post UFI”),role:”region”,children:[(0,r.FD)(eu.fI,{paddingY:16,justifyContent:”space-between”,alignItems:”center”,children:[(0,r.Y)(F.D,{post:A,pub:D}),(0,r.Y)(C.C,{post:A,pub:D,user:G})]}),(0,r.Y)(b.p,{user:G,isMobile:eg,post:A}),eg?$&&(0,r.Y)(N.I2,{post:A,pub:D,user:G,isStatic:!!w,postReactionToken:R,onChange:T,allowEdit:a,hidePinning:g,showEmailSent:U,allowSendEmail:l,hideComments:!x,onCommentsClick:X,showRestackModal:ea}):(0,r.Y)(N.bW,{post:A,pub:D,user:G,onChange:T,showRestackModal:ea,showTranscriptionButton:ec,onTranscriptionClick:ed,showClipping:”video”===A.type,postReactionToken:R,position:”post-header”})]}):(0,r.FD)(r.FK,{children:[!eR||w||et||ee?eR&&!w&&et?(0,r.Y)(N.xx,{post:A,pub:D,user:G,variant:”compressed”,labelStyle:”counts-or-none”,postReactionToken:R,showEmailSent:U,hideShare:!L||”restack”===A.type,hideComments:”restack”===A.type,hideSavePost:”restack”===A.type,hideReactions:”restack”===A.type,showPreamble:!0,onChange:void 0,allowEdit:a,allowSendEmail:l,editButtonIsLast:!0,preambleConfig:{showAudience:!m,showDate:!_,showDatetime:M,showAuthor:!z},isStatic:w,position:”publisher-post-list”}):ee&&!w?(0,r.Y)(N.xx,{post:A,pub:D,user:G,variant:”compressed”,labelStyle:”counts-or-none”,postReactionToken:R,hideSavePost:!0,showPreamble:!0,allowEdit:a,allowSendEmail:l,editButtonIsLast:!0,onChange:T,preambleConfig:{showAudience:!m,showDate:!_,showDatetime:M,showAuthor:!z},hideShare:!L,position:”publisher-post-list”,isStatic:w}):eR?(0,r.Y)(P.u3,{user:G,pub:D,post:A,showDate:!_,showDatetime:M,showEmailSent:U,showAudience:!m,showReactions:!eO&&O,showComments:!eO&&x,showShare:!eO&&L,showRestack:!eO&&j,reaction_token:R,onChange:T,isStatic:w,isFreePreview:Y,sharedShareDialog:!0,base_url:u,allowSendEmail:l,allowEdit:a,showAuthor:!z,showPhoto:W,hidePinning:g,inThreadHead:ee,fromPostPage:$,onClickCommentButton:X,reactors:Q,isAppMode:ep}):(0,r.Y)(“div”,{className:”spacer”,style:{height:24}}):(0,r.Y)(E.s,{className:”meta-subheader”,pub:D,post:A,user:G,showDate:!_,showDatetime:!!M,isStatic:!!w,postReactionToken:R,onChange:T,allowEdit:a,hidePinning:g,showEmailSent:U,allowSendEmail:l,allowMobileFooter:$,onCommentsClick:X,showRestackModal:ea}),eR&&eO&&(0,r.Y)(N.fz,{readInAppText:eb,customization:{showShare:L,showComments:x,showReactions:O,showListen:!j&&!Y&&!!eM,showSave:!j,showRestack:j,showCommentRestack:K,showAppUpsell:B}}),eU&&(0,r.Y)(“div”,{className:”email-ufi-2-empty”})]}),p]})},e6=e=>{let{user:t,post:i}=e,{iString:n,iTemplate:o}=(0,Z.GO)(),s=(0,eP.getBylineUsers)(i).filter(e=>e.is_guest);return 0===s.length?null:(0,r.FD)(“div”,{className:”post-contributor-footer”,children:[(0,r.Y)(“div”,{className:”container-border”}),s.map(e=>{let i=(0,eP.guessFirstName)(e.name),s=e.primaryPublicationSubscribeUrl;s&&(null==t?void 0:t.email)&&(s=(0,ek.oRR)(s,{email:t.email,autoSubmit:!0,utm_source:eA.VU.substack,utm_campaign:eA._9.guestPostBio,utm_medium:eA.Jn.web}));let a=(0,ek.oRR)((0,eT.gYq)(e),{utm_campaign:eA._9.guestPostBio,utm_medium:eA.Jn.web}),l=!!e.photo_url;return(0,r.Y)(“div”,{className:c()(“post-contributor-bio”,{“post-contributor-bio-no-text”:!e.bio}),”data-user-id”:e.id,children:(0,r.Y)(“table”,{cellpadding:”0″,cellspacing:”0″,className:”post-contributor-bio-table”,children:(0,r.FD)(“tr”,{className:”post-contributor-bio-table-row”,children:[l&&(0,r.Y)(“td”,{className:”post-contributor-bio-userhead-cell post-contributor-bio-userhead-cell-web”,children:(0,r.Y)(er.tp,{size:52,user:e,utmSource:”byline”})}),(0,r.Y)(“td”,{className:”post-contributor-bio-body-cell post-contributor-bio-body-cell-web”,children:(0,r.FD)(“div”,{className:”post-contributor-bio-body”,children:[e.bio&&(0,r.Y)(“div”,{className:”post-contributor-bio-preamble”,children:n(“A guest post by”)}),(0,r.Y)(“table”,{cellpadding:”0″,cellspacing:”0″,className:”post-contributor-bio-body-table”,children:(0,r.FD)(“tr”,{className:”post-contributor-bio-body-table-row”,children:[(0,r.FD)(“td”,{className:”post-contributor-bio-copy-cell”,children:[!e.bio&&(0,r.Y)(“div”,{className:”post-contributor-bio-preamble”,children:n(“A guest post by”)}),(0,r.FD)(eu.fI,{gap:4,alignItems:”center”,paddingBottom:4,children:[(0,r.Y)(S.ProfileHoverCard,{subject:e,utmSource:”byline”,trigger:(0,r.Y)(“a”,{className:”post-contributor-bio-title no-margin”,href:a,”data-native”:!0,children:e.name})}),(0,r.Y)(eg.UserStatusSymbols,{size:”sm”,tier:e.bestseller_tier,userId:e.id})]}),e.bio&&(0,r.Y)(“div”,{className:”post-contributor-bio-text”,children:e.bio})]}),(0,r.Y)(“td”,{className:”post-contributor-bio-controls-cell post-contributor-bio-controls-cell-web”,children:(0,r.Y)(“div”,{className:”post-contributor-bio-controls”,children:s&&(0,r.Y)(“a”,{className:”post-contributor-bio-subscribe-button button primary”,href:s,”data-native”:!0,children:(0,r.Y)(“span”,{className:”post-contributor-bio-subscribe-button-label”,children:o(ez(),i)})})})})]})})]})})]})})})})]})};function e7(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;if(“undefined”==typeof window)return!1;let i=document.createElement(“div”);i.innerHTML=e;let n=””,o=!1;for(let e=i.childNodes.length-1;e>=0;e–){let s=i.childNodes[e];if(s){if((0,ea.nB)(s,”button-wrapper”)||(0,ea.nB)(s,”subscription-widget-wrap”)||(0,ea.nB)(s,”subscribe-widget”)){o=!0;break}if((n+=s.textContent).length>t)break}}return!o}function e2(e){let{post:t,user:i,onChange:n}=e,{onSave:a}=(0,N.Jj)({post:t,isSaved:!1});return(0,u.useEffect)(()=>{if(“save”===new URL(location).searchParams.get(“action”)&&(history.replaceState({},””,(0,ek.oRR)({action:null})),i)){let e=a();n({post:(0,s._)((0,o._)({},t),{is_saved:e})})}},[]),null}let e8=()=>(0,r.Y)(“article”,{className:c()(“typography post”,{“shows-post”:!1}),children:(0,r.Y)(el.az,{className:”container”,padding:12,children:(0,r.Y)(“p”,{align:”center”,children:(0,r.Y)(eh.EY,{translated:!0,as:”span”,children:”This content has been withheld in your country in response to a legal requirement.”})})})})},13918:function(e,t,i){i.d(t,{Dq:()=>Z,d2:()=>z,u3:()=>K});var n=i(99851),o=i(69277),s=i(70408),a=i(4006),r=i(32485),l=i.n(r),c=i(83673),d=i.n(c),u=i(93893),p=i(17402),h=i(34615),m=i(27437),_=i(17436),b=i(54158),f=i(89839),g=i(18325),v=i(59821),y=i(26184),w=i(97683),Y=i(11333),S=i(41935),k=i(55136),C=i(84605),T=i(85478),I=i(6049),P=i(86500),A=i(12501),E=i(24078),N=i(22057),F=i(76977),D=i(63136),R=i(83629),x=i(16291),M=i(41232),U=i(98111),O=i(56458),L=i(56262),B=i(39318),V=i(70189),W=i(49807),H=i(82776),j=i(57324);class q extends p.Component{componentWillUnmount(){this.unmounted=!0}render(){let{pub:e,post:t,showAuthor:i,showPhoto:n,fromPostPage:r}=this.props;return(0,S.AS)({pub:e,post:t,showAuthor:i,showPhoto:n})||(0,S.o$)({pub:e,post:t,showAuthor:i})||(0,S.Bq)({pub:e,post:t,showAuthor:i})?this.withAuthorLine(this.props,this.state):(0,a.Y)(X,(0,s._)((0,o._)({},this.props),{className:”alternative-meta”,isMobileWidth:this.state.isMobileWidth,actionBarStyle:r?”post-header-compact”:”post-preview”}))}constructor(e,t){var i;if(super(e,t),(0,n._)(this,”unmounted”,void 0),(0,n._)(this,”withAuthorLine”,(e,t)=>{let{pub:i,post:n,showAuthor:o,showPhoto:s,getConfigFor:r,isAppMode:c}=e,d=”adhoc_email”===n.type,u=(0,H.getBylineUsers)(n).length,p=1===u&&(0,H.getBylineUsers)(n)[0],h=p&&p.is_guest&&!r(“dont_show_guest_byline”)&&!d,m=e.showDate||e.showDatetime,_=!n.is_published&&!e.inThreadHead&&m&&!d,b=e.isFreePreview&&e.showAudience&&m&&!d,f=(0,L.isFoundingAudience)(n.audience)&&e.showAudience&&!b&&m&&!d&&!(0,O.Ed)({post:n}),g=(0,L.isPaidAudience)(n.audience)&&e.showAudience&&!f&&!b&&m&&!d&&!(0,O.Ed)({post:n}),v=(0,S.AS)({pub:i,post:n,showAuthor:o,showPhoto:s});return(0,a.Y)(I.h2,{width:”100%”,className:l()(“post-meta”),children:(0,a.FD)(“tr”,{children:[(0,a.Y)(“td”,{children:(0,a.FD)(I.jJ,{children:[(0,a.Y)(I.ZB,{gap:4,children:(0,a.Y)(D.EY.Meta,{color:”primary”,className:M.A.postAuthor,children:u>0?(0,H.oxfordComma)((0,H.getBylineUsers)(n).map(e=>(0,a.Y)(D.EY.Meta,{as:”a”,href:c?(0,W.gTK)({user_id:e.id,user_name:e.name,redirect:”app-store-no-desktop”}):(0,B.laT)(e,i),color:”primary”,style:{textDecoration:”none”},children:e.name}))):(0,H.getPrintedByline)(i,n)})}),(0,a.FD)(I.ZB,{gap:4,children:[(0,a.Y)(D.EY.Meta,{children:(e.showDate||e.showDatetime)&&n.post_date&&(0,a.Y)(“time”,{dateTime:(0,x.A)(n.post_date).toISOString(),children:(0,x.A)(n.post_date).locale(this.context.language).standardDate()})}),g&&(0,a.FD)(I.ZB,{gap:4,children:[(0,a.Y)(D.EY.Meta,{children:”∙”}),(0,a.Y)(D.EY.Meta,{color:”paid”,translated:!0,children:”Paid”})]}),f&&(0,a.FD)(I.ZB,{gap:4,children:[(0,a.Y)(D.EY.Meta,{children:”∙”}),(0,a.Y)(D.EY.Meta,{color:”paid”,children:this.context.iString((0,O.G8)(i,n))})]}),b&&(0,a.FD)(I.ZB,{gap:4,children:[(0,a.Y)(D.EY.Meta,{children:”∙”}),(0,a.Y)(D.EY.Meta,{color:”paid”,translated:!0,children:”Preview”})]}),h&&(0,a.FD)(I.ZB,{gap:4,children:[(0,a.Y)(D.EY.Meta,{children:”∙”}),(0,a.Y)(D.EY.Meta,{translated:!0,children:”Guest post”})]}),_&&(0,a.FD)(I.ZB,{gap:4,children:[(0,a.Y)(D.EY.Meta,{children:”∙”}),(0,a.Y)(D.EY.Meta,{translated:!0,children:”Draft”})]})]})]})}),v&&(0,a.Y)(“td”,{align:”right”,children:(0,a.Y)(I.ZB,{gap:4,children:u>0&&(0,H.getBylineUsers)(n).map((e,t)=>{var n;return t<4&&(0,a.Y)("a",{href:c?(0,W.gTK)({user_id:e.id,user_name:e.name,redirect:"app-store-no-desktop"}):(0,B.laT)(e,i),children:(0,a.Y)(I.Kb,{src:null!=(n=e.photo_url)?n:"",size:u>1?32:40})})})})})]})})}),”undefined”!=typeof window&&(null==(i=window)?void 0:i.matchMedia)){const e=window.matchMedia(“screen and (max-width: 650px)”);this.state={isMobileWidth:e.matches};const t=e=>{this.unmounted||this.setState({isMobileWidth:e.matches})};e.addEventListener?e.addEventListener(“change”,t):e.addListener&&e.addListener(t)}}}(0,n._)(q,”contextType”,C.OW);let K=(0,T.P_)(q);function z(e){var t,i;let{pub:n,post:s,user:r,reactors:l,secondaryFaces:c,mediaClipId:d}=e,[u,m]=(0,p.useState)(null),[_,b]=(0,p.useState)(!1),f=(0,A.st)({pathname:”primary”===u?”/api/v1/post/”.concat(s.id,”/reactors”):”/api/v1/”.concat(d?”media_clip”:”post”,”/”).concat(null!=d?d:s.id,”/restackers”),auto:!!u,deps:[s.id,u]}),g=$(l,r,!!s.reaction,n),v=$(c,r,!!s.restacked,n),y=g.concat(v.filter(e=>!!e.photo_url&&!g.find(t=>t.id===e.id))),w=Math.max(null!=(t=s.reactions[“❤”])?t:0,(null!=g?g:[]).length),Y=n.hide_post_restacks?0:null!=(i=s.restacks)?i:0,S=w>0?(0,H.pluralize)(w,”Like”):””,k=””;return Y>0&&(k=””.concat((0,H.pluralize)(Y,”Restack”))),(0,a.FD)(a.FK,{children:[(0,a.FD)(F.fI,{gap:16,alignItems:”center”,color:”secondary”,children:[(0,a.Y)(N.Z,{users:y,renderAvatar:e=>(0,a.Y)(E.tp,(0,o._)({},e)),direction:”rtl”,renderCount:()=>(0,a.Y)(p.Fragment,{})}),(0,a.Y)(D.EY.B4,{color:”secondary”,children:(0,a.FD)(F.fI,{gap:4,alignItems:”center”,children:[(0,a.Y)(G,{label:S,onClick:()=>{w&&((0,P.u4)(P.qY.POST_REACTIONS_MODAL_VIEWED,{post_id:s.id}),m(“primary”),b(!0))}}),S&&k&&”∙”,(0,a.Y)(J,{post:s,label:k})]})})]}),f.result&&(0,a.Y)(h.K,{isOpen:_,modalLabel:S,faces:f.result,totalCount:w,onClose:()=>{b(!1),m(null)},utmSource:”post-reactions-modal”})]})}let G=e=>{let{label:t,onClick:i}=e;return(0,a.Y)(D.Yq,{onClick:i,color:”secondary”,cursor:”pointer”,children:t})},J=e=>{let{label:t,post:i}=e;return(0,a.Y)(D.EY.B4,{color:”secondary”,children:(0,a.Y)(D.Yq,{href:(0,V.so)(i.id,{noBase:R.Z,urlParams:{utm_source:j.VU.substack,utm_content:j.fL.facepileRestacks}}),color:”secondary”,children:t})})};function Z(e){var t,i;let{post:n,user:s,pub:r,mediaClipId:l}=e,c=(0,A.st)({pathname:”/api/v1/post/”.concat(n.id,”/facepile”),auto:!0,deps:[n.id,l],query:{media_clip_id:l}});return(0,a.Y)(z,(0,o._)({reactors:$(null==(t=c.result)?void 0:t.reactors,s,!!n.reaction,r),secondaryFaces:$(null==(i=c.result)?void 0:i.restackers,s,!!n.restacked,r)},e))}function $(e,t,i,n){if(!e)return[];if(t){let o=e.findIndex(e=>e.id===t.id);i&&(“private”!==t.subscription_visibility||46438===n.id)&&t.activity_likes_enabled&&o<0?e.splice(0,0,{id:t.id,name:t.name,photo_url:t.photo_url}):!i&&o>=0&&e.splice(o,1)}return e}function X(e){var t;let i,{additionalCommentCount:n=0,className:o,user:s,pub:r,post:c,showAudience:p=!1,showDate:h=!1,showEmailSent:f=!1,showDatetime:C=!1,showReactions:T=!0,showComments:I=!0,showShare:P=!1,showRestack:A=!1,showPublicationName:E=!1,hidePinning:N=!1,reaction_token:F,onClick:R,onChange:M,isStatic:O=!1,isFreePreview:V=!1,allowSendEmail:W=!1,allowEdit:q=!1,shareTooltipText:K,showPins:z,sharedShareDialog:G,onClickCommentButton:J,showAuthor:Z,showPhoto:$,fromPostPage:X,isMobileWidth:ee,actionBarStyle:et=”post-header-compact”}=e,ei=r.id===c.publication_id?r:void 0,en=”post-footer”===et,eo=en?20:”post-preview”===et?14:18,es=”post-header-large”===et?20:”post-preview”===et?16:”thread-head”===et||en?14:18;i=c.comment_url_override?c.comment_url_override:O?””.concat(U.T.HALF_MAGIC_COMMENTS_URL,”&utm_source=”).concat(j.VU.substack,”&utm_medium=”).concat(j.Jn.email):(0,B.wu9)(r,c,{comments:!0});let ea=n+(null!=(t=c.comment_count)?t:0),er=I&&!V&&(0,H.showCommentsOnPost)({publication:r,post:c})&&”restack”!==c.type,el=T&&!V&&![“adhoc_email”,”restack”].includes(c.type),ec=(h||C)&&c.post_date&&!c.is_draft,ed=f?!!c.email_sent_at:null,eu=d()([f&&ed&&{className:”email-sent”,title:”This post was sent as an email”,content:(0,a.Y)(_.A,{className:”post-meta-icon”,height:eo,isStatic:O})},z&&c.is_section_pinned&&{className:”icon pinned”,content:(0,a.Y)(y.A,{className:”post-meta-icon”,isStatic:O})},”adhoc_email”===c.type?{className:”audience-adhoc”,content:(0,a.Y)(u.A,{className:”post-meta-icon”,size:16})}:p&&(0,L.isPaidAudience)(c.audience)&&{className:”audience-lock”,content:(0,a.Y)(b.A,{color:”#666666″,height:eo,isStatic:O})},(0,S.uC)({pub:r,post:c,showAuthor:Z,showPhoto:$,isMobileWidth:ee})&&{className:”author”,content:(0,H.getBylineUsers)(c).length>0?(0,H.oxfordComma)((0,H.getBylineUsers)(c).map(e=>(0,a.Y)(m.ProfileHoverCard,{disabled:O,subject:e,utmSource:”byline”,trigger:(0,a.Y)(“a”,{href:(0,B.laT)(e,r),onClick:e=>e.stopPropagation(),children:e.name})}))):(0,H.getPrintedByline)(r,c)},E&&{className:”post-publication-name”,content:r.name},q&&!O&&s&&s.is_contributor&&{className:”post-meta-item icon edit-icon”,onClick:e=>e.stopPropagation(),content:(0,a.Y)(w.B,{pub:r,post:c,iconHeight:eo,hidePinning:N,user:s,emailSent:ed,allowSendEmail:W})},ec&&{className:”post-date”,title:(0,x.A)(c.post_date).toISOString(),content:(0,a.Y)(D.EY.Meta,{children:(0,a.Y)(“time”,{dateTime:(0,x.A)(c.post_date).toISOString(),children:(0,S.sq)({post:c,showDatetime:C,isStatic:O,fromPostPage:X,showReactions:el})})})},(null==ei?void 0:ei.community_enabled)&&c.slug&&el&&!c.is_draft&&{className:”icon”,onClick:e=>e.stopPropagation(),content:(0,a.Y)(k.cy,{user:s,pub:r,post:c,token:F,onChange:e=>{null==M||M(e)},height:es,isStatic:O,buttonStyle:en,className:”post-meta-icon like-reaction-button”,hideReactionCount:en&&!O})},s&&{className:”icon”,onClick:e=>e.stopPropagation(),content:(0,a.Y)(Q,{post:c,isPostFooter:en,isStatic:O,lucideIconHeight:es,onChange:M})},(null==ei?void 0:ei.community_enabled)&&c.slug&&er&&!c.is_draft&&{className:”icon”,onClick:e=>e.stopPropagation(),content:(0,a.FD)(“a”,{className:en?”post-meta-button button”:””,href:i,”data-native”:ei&&(0,B.dVy)(document.location.pathname)?””:void 0,onClick:J,children:[(0,a.Y)(g.A,{className:”comment-icon post-meta-icon”,isStatic:O,height:es,alt:”Comment”,stroke:”#757575″,fill:”transparent”,strokeWidth:O?1:1.5,ampProps:{layout:”fixed”}}),!ea&&en&&(0,a.Y)(“span”,{className:”meta-button-label”,children:”Comment”}),ea>0&&(0,a.Y)(“span”,{className:”comment-count”,children:(0,H.numberToString)(ea)})]})},A&&!en&&{className:”icon”,onClick:e=>e.stopPropagation(),content:(0,a.FD)(“a”,{href:U.T.RESTACK_URL,className:en?”button post-meta-button”:void 0,children:[(0,a.Y)(v.A,{className:”recommend-icon post-meta-icon”,isStatic:O,height:es,alt:”Recommend”,stroke:”#757575″,fill:”transparent”,strokeWidth:O?1:1.5,ampProps:{layout:”fixed”}}),en&&(0,a.Y)(“span”,{className:”meta-button-label”,children:”Recommend”})]})},P&&”only_free”!==c.audience&&!c.is_draft&&!V&&{className:”icon”,onClick:e=>e.stopPropagation(),content:(0,a.FD)(Y._,{user:s,pub:ei,post:c,reaction_token:F,height:es,onChange:M,isStatic:O,sharedShareDialog:G,position:”post-footer”===et?”post-footer”:”post-header”,linkClassName:en?”button post-meta-button”:void 0,children:[en&&(0,a.Y)(“span”,{className:”meta-button-label”,children:”Share”}),K&&(0,a.Y)(“div”,{className:”share-tooltip-wrap”,children:(0,a.Y)(“div”,{className:”share-tooltip”,children:K})})]})}]);return O?(0,a.Y)(“table”,{className:l()(“post-meta custom”,{big:en},o),cellpadding:”0″,cellspacing:”0″,onClick:R,children:(0,a.Y)(“tr”,{children:eu.map(e=>{let{className:t,title:i,onClick:n,content:o}=e;return(0,a.Y)(“td”,{className:l()(“post-meta-item”,t),title:i,onClick:n,children:o})})})}):(0,a.Y)(“div”,{className:l()(“post-meta post-meta-actions-web custom”,{big:en},o),onClick:R,children:eu.map(e=>{let{className:t,title:i,onClick:n,content:o}=e;return(0,a.Y)(“div”,{className:l()(“post-meta-item”,t),title:i,onClick:n,children:o})})})}function Q(e){let{post:t,isPostFooter:i,isStatic:n,lucideIconHeight:r,onChange:c}=e,{onSave:d,isSaved:u}=(0,S.Jj)({post:t,isSaved:t.is_saved});return(0,a.FD)(“a”,{className:l()(“post-meta-save-button”,i?”post-meta-button button”:””,{isSaved:u}),href:n&&U.T.SAVE_POST_URL||void 0,onClick:()=>{let e=d();null==c||c({post:(0,s._)((0,o._)({},t),{is_saved:e})})},children:[(0,a.Y)(f.A,{isStatic:n,height:r,stroke:”#757575″,strokeWidth:n?1:1.5}),i&&(0,a.Y)(“span”,{className:”meta-button-label”,children:”Save”})]})}},66665:function(e,t,i){i.d(t,{A:()=>Y});var n=i(69277),o=i(70408),s=i(4006),a=i(75107),r=i(49436),l=i(17402),c=i(31793),d=i(63446),u=i(15894),p=i(32600),h=i(25006),m=i(46271),_=i(17306),b=i(12501),f=i(76977),g=i(39318),v=i(57324);let y=”description-RcyL9U”,w=”isCollapsed-VgTQX_”,Y=e=>{var t,i;let{post:Y}=e,S=Y.publishedBylines,{sectionId:k}=(0,p.C)(null!=(i=null==(t=S[0])?void 0:t.id)?i:-1),C=(0,h.df)(),T=(0,m.Jd)(),{newsletters:I}=(0,c.E)(),P=I.topic.newsletters.map(e=>e.sectionId).includes(Y.section_id),[A,E]=(0,l.useState)(!1),N=k||(P?Y.section_id:null),[F,D]=(0,l.useState)(null),[R,x]=(0,l.useState)(null),{markdownProps:M}=(0,_.$)(F),{result:U,refetch:O}=(0,b.st)({pathname:”/api/v1/subscription”,auto:!1}),{refetch:L}=(0,b.st)({pathname:”/api/v1/subscription/sections/email”,auto:!1,method:”PATCH”}),B=async(e,t)=>{await L({json:{[e]:{setting:t?”individual”:”disabled”}}})};if((0,l.useEffect)(()=>{if(N&&C){var e;let t=C.sections.find(e=>e.id===N);D((null==t||null==(e=t.custom_config)?void 0:e.short_description)||(null==t?void 0:t.description)||null),x((null==t?void 0:t.name)||null)}},[N,C]),(0,l.useEffect)(()=>{O()},[]),!N)return null;let V=!!k,W=(null==U?void 0:U.email_settings[N])===”individual”,H=!!(null==T?void 0:T.subscription_id)||!!(null==T?void 0:T.is_free_subscribed),j=async()=>{if(N){if(!H&&C){var e;let t=null==(e=C.sections.find(e=>e.id===N))?void 0:e.slug;if(!t)return;let i=(0,g.eV6)(C,{addBase:!0,sectionSlug:t,next:(0,g.yRP)(window.location.href,{follow:!0}),utm_source:v.VU.followAuthorCta,utm_medium:v.Jn.web});window.location.href=i;return}await B(N,!W)}};return(0,s.FD)(“div”,{className:”container-Z8NWXZ”,children:[(0,s.FD)(f.Ye,{alignItems:”start”,className:”header-ih4JRy”,justifyContent:”space-between”,children:[V?(0,s.Y)(u.T,(0,o._)((0,n._)({},M),{className:””.concat(y,” “).concat(A?””:w),preset:”d4-serif”})):(0,s.Y)(u.T,{className:”topicTitle-qCRICs”,preset:”d4-serif-bold”,children:R||”No description available.”}),(0,s.Y)(d.v,{style:{padding:”0 4px”},variant:”tertiary”,onClick:()=>E(!A),children:(0,s.Y)(a.A,{className:”chevron-EHp9xB”,stroke:”red”,style:{transform:A?”rotate(180deg)”:”rotate(0deg)”}})})]}),!V&&(0,s.Y)(u.T,(0,o._)((0,n._)({},M),{className:””.concat(y,” “).concat(A?””:w),preset:”d4-serif”})),(0,s.Y)(d.v,{size:”sm”,variant:”tertiary”,onClick:async()=>{await j(),await O()},children:(0,s.FD)(f.Ye,{alignItems:”center”,gap:8,children:[W?”FOLLOWED”:”FOLLOW “.concat(V?”COLUMN”:”TOPIC”),” “,(0,s.Y)(r.A,{className:”bellIcon-Q6Vwqc”})]})})]})}},46360:function(e,t,i){i.d(t,{L:()=>h});var n=i(4006),o=i(32485),s=i.n(o),a=i(99927),r=i(86673),l=i(47791),c=i(85478),d=i(76977),u=i(82776),p=i(74213);let h=e=>{var t;let{post:i,pub:o,user:h,autoPlayVoiceOver:m,variant:_}=e,{getConfigFor:b}=(0,c.mJ)(),f=i.has_voiceover||!!i.voiceoverUpload,g=”newsletter-post”===_&&(0,u.showCommentsOnPost)({publication:o,post:i}),v=”newsletter-post”===_&&o.community_enabled,y=”newsletter-post”===_,w=!!(null==h?void 0:h.is_contributor),Y=”newsletter-post”===_&&!!b(“show_open_post_as_pdf_button”);return g||v||y||w?(0,n.FD)(d.pT,{className:s()(p.A.postUFI,{[p.A.hasVoiceover||””]:f}),gap:24,justifyContent:”end”,children:[f&&(0,n.Y)(l.A,{autoPlay:m,duration:null==(t=i.voiceoverUpload)?void 0:t.duration,href:i.canonical_url,isPaywalled:!(null==h?void 0:h.is_subscribed),mediaUploadId:i.voiceover_upload_id,post:i,pub:o,user:h}),(0,n.FD)(d.Ye,{alignItems:”center”,gap:16,children:[g&&(0,n.Y)(r.qS,{post:i,pub:o,size:”large”}),v&&(0,n.Y)(r.ct,{post:i,pub:o,size:”large”,user:h}),y&&(0,n.Y)(r.wu,{post:i,pub:o,user:h}),Y&&(0,n.Y)(a.V,{post:i,pub:o,user:h}),w&&(0,n.Y)(r.xn,{className:p.A.editButtonContainer,context:”post-page”,post:i,pub:o,user:h})]})]}):null}},32600:function(e,t,i){i.d(t,{C:()=>c});var n=i(17402),o=i(25006),s=i(46271),a=i(12501),r=i(39318),l=i(57324);let c=e=>{var t;let[i,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!0),[m,_]=(0,n.useState)(!1),b=(0,o.df)(),f=(0,s.Jd)(),g=null!=(t=null==b?void 0:b.authorPagesInfo)?t:[],v=null==g?void 0:g.find(t=>t.user_id===e),y=(null==v?void 0:v.primary_section_id)===0||null==v?void 0:v.primary_section_id,w=!!(null==f?void 0:f.subscription_id)||!!(null==f?void 0:f.is_free_subscribed),{result:Y,refetch:S}=(0,a.st)({pathname:”/api/v1/subscription”,auto:!1}),{refetch:k}=(0,a.st)({pathname:”/api/v1/subscription/sections/email”,auto:!1,method:”PATCH”,cacheTtl:6e4});(0,n.useEffect)(()=>{(async()=>{h(!0);try{_(!!y);let t=await S(),i=new URLSearchParams(window.location.search),n=”true”===i.get(“follow”);if(i.has(“follow”)){i.delete(“follow”);let e=i.toString()?””.concat(window.location.pathname,”?”).concat(i.toString()):window.location.pathname;window.history.replaceState({},””,e)}if(n&&y&&w&&!(t instanceof Error)){var e;(null==t||null==(e=t.email_settings)?void 0:e[y])!==”individual”&&(await k({json:{[y]:{setting:”individual”}}}),c(!0))}}finally{h(!1)}})()},[e,b]),(0,n.useEffect)(()=>{u(w)},[w]),(0,n.useEffect)(()=>{(null==Y?void 0:Y.email_settings)&&y&&(c(“individual”===Y.email_settings[y]),u(w))},[Y,y,w]);let C=async()=>{if(!y)return;if(!w&&b){var e;let t=null==(e=b.sections.find(e=>e.id===y))?void 0:e.slug,i=(0,r.eV6)(b,{addBase:!0,sectionSlug:t,next:(0,r.yRP)(window.location.href,{follow:!0}),utm_source:l.VU.followAuthorCta,utm_medium:l.Jn.web});window.location.href=i;return}let t=!i;await k({json:{[y]:{setting:t?”individual”:”disabled”}}}),c(t)};return{isSubscribedToAuthor:i,isSubscribedToPub:d,isLoading:p,hasSection:m,toggleSubscription:C,sectionId:y,currentUserSubscriptions:Y}}},53293:function(e,t,i){i.d(t,{T:()=>r,l:()=>l});var n=i(4006),o=i(17402),s=i(4016);let a=(0,o.createContext)({theme:null,setTheme:()=>void 0}),r=()=>(0,o.useContext)(a),l=e=>{var t;let{pub:i,post:r,children:l}=e,[c,d]=(0,o.useState)(null!=(t=null==r?void 0:r.postTheme)?t:null);return(0,s.lu)({pub:i})?(0,n.Y)(a.Provider,{value:{theme:c,setTheme:d},children:l}):(0,n.Y)(n.FK,{children:l})}},95064:function(e,t,i){i.d(t,{IS:()=>k,Of:()=>S,Qj:()=>C});var n=i(4006),o=i(38221),s=i.n(o),a=i(69843),r=i.n(a);if(48981!=i.j)var l=i(98445);if(48981!=i.j)var c=i(48697);if(48981!=i.j)var d=i(72102);if(48981!=i.j)var u=i(75107);var p=i(17402),h=i(44518),m=i(84605);i(77441);var _=i(86500),b=i(68410),f=i(35369),g=i(76977);i(88774);var v=i(63136),y=i(17836);i(16291),i(50874),i(82776);var w=i(38610);let Y=(0,p.createContext)({isSearching:!1,items:[],setIsSearching:()=>void 0,setItems:()=>void 0,focusedItemStart:null,setFocusedItemStart:()=>void 0,filteredItems:[],searchTerm:null,setSearchTerm:()=>void 0,hasFiltered:!1}),S=e=>{let{children:t}=e,[i,o]=(0,p.useState)(!1),[s,a]=(0,p.useState)([]),[r,l]=(0,p.useState)(null),[c,d]=(0,p.useState)(null),{filteredItems:u,setQuery:m,hasFiltered:_}=(0,h.S)({items:s,getKeys:e=>[e.text],sortFunc:(e,t)=>e.start-t.start});return(0,p.useEffect)(()=>{var e,t;l(null!=(t=null==(e=u[0])?void 0:e.start)?t:null)},[u]),(0,n.Y)(Y.Provider,{value:{isSearching:i,setIsSearching:o,items:s,setItems:a,focusedItemStart:r,setFocusedItemStart:l,filteredItems:u,hasFiltered:_,searchTerm:c,setSearchTerm:e=>{d(e),m(e)}},children:t})},k=()=>(0,p.useContext)(Y),C=e=>{let{postId:t,closeAlwaysVisible:i=!0}=e,{iString:o}=(0,m.GO)(),{isMobile:a}=(0,b.sM)(),h=(0,p.useRef)(null),{setSearchTerm:Y,setIsSearching:S,hasFiltered:C,filteredItems:T,setFocusedItemStart:I,focusedItemStart:P,searchTerm:A}=k();(0,p.useEffect)(()=>{!A&&h.current&&(h.current.value=””)},[A]);let E=T.findIndex(e=>e.start===P),N=()=>{let e=E+1>=T.length?0:E+1,t=T[e];r()(t)?console.warn(“nextItem not found at index “.concat(e)):I(t.start)},F=()=>{Y(“”),S(!1),(0,_.u4)(_.qY.TRANSCRIPTION_SEARCH_CANCELLED,{post_id:t})};return(0,n.FD)(g.Ye,{gap:8,justifyContent:”space-between”,alignItems:”center”,className:w.A.searchForm,children:[(0,n.Y)(y.c,{ref:h,leftIcon:(0,n.Y)(g.Ye,{children:(0,n.Y)(l.A,{size:16})}),rightIcon:(0,n.Y)(g.Ye,{cursor:”pointer”,onClick:F,children:A||i?(0,n.Y)(c.A,{size:16}):null}),placeholder:o(“Search”),onChange:s()(e=>{Y(e.target.value),(0,_.u4)(_.qY.TRANSCRIPTION_SEARCHED,{post_id:t})},100),onKeyDown:e=>{“Enter”===e.key&&N(),”Escape”===e.key&&F()}}),C&&(0,n.Y)(g.Ye,{gap:8,paddingRight:8*!!a,children:(0,n.FD)(g.Ye,{alignItems:”center”,gap:8,children:[(0,n.Y)(v.EY.B4,{paddingLeft:a?4:16,className:w.A.resultsValue,color:”primary”,weight:”semibold”,children:””.concat(E+1,” / “).concat(T.length)}),(0,n.FD)(g.Ye,{children:[(0,n.Y)(f.K0,{priority:”tertiary”,size:”sm”,onClick:()=>{let e=E-1<0?T.length-1:E-1,t=T[e];r()(t)?console.warn("lastItem not found at index ".concat(e)):I(t.start)},children:(0,n.Y)(d.A,{size:20})}),(0,n.Y)(f.K0,{priority:"tertiary",size:"sm",onClick:N,children:(0,n.Y)(u.A,{size:20})})]})]})})]})}},39598:function(e,t,i){i.d(t,{B:()=>h});var n=i(79785),o=i(4006),s=i(48309),a=i(84605),r=i(86500),l=i(35369),c=i(28911),d=i(57820);function u(){let e=(0,n._)([“Generating “,”…”]);return u=function(){return e},e}function p(){let e=(0,n._)([“Shareable “,””]);return p=function(){return e},e}function h(e){let{isOpen:t,onClose:i,isGenerating:n,finishedGram:h,noun:m,postId:_,onDownload:b}=e,{iString:f,iTemplate:g}=(0,a.GO)();return(0,o.FD)(c.aF,{isOpen:t,onClose:i,children:[(0,o.Y)(c.rQ,{title:g(n?u():p(),m),showDivider:!0,onClose:i}),(0,o.Y)(c.cw,{children:h?(0,o.Y)(“video”,{src:h.cdn_url,style:{borderRadius:12},controls:!0,download:!0,width:400}):(0,o.Y)(d.y$,{alignItems:”center”,justifyContent:”center”,minHeight:220})}),h&&(0,o.Y)(c.jl,{direction:”column”,primaryButton:(0,o.Y)(l.$n,{priority:”primary”,leading:(0,o.Y)(s.A,{size:20}),onClick:()=>{(0,r.u4)(r.qY.AUDIOGRAM_DOWNLOAD_CLICKED,{post_id:_,audiogram_id:null==h?void 0:h.id,media_upload_id:null==h?void 0:h.media_upload_id}),b(h.cdn_url)},children:f(“Download”)})})]})}},17306:function(e,t,i){i.d(t,{$:()=>o});var n=i(17402);let o=e=>{let[t,o]=(0,n.useState)();return(0,n.useEffect)(()=>{“string”==typeof e&&i.e(“68868″).then(i.bind(i,36815)).then(t=>{let{micromark:i}=t;o(i(e))})},[e]),{markdownProps:”string”==typeof e?{dangerouslySetInnerHTML:{__html:null!=t?t:e.replace(/\*\*(.*?)\*\*/g,”$1″).replace(/__(.*?)__/g,”$1″).replace(/\*(.*?)\*/g,”$1″).replace(/_(.*?)_/g,”$1″)},style:{opacity:+!!t}}:{children:e}}}},3142:function(e,t,i){i.d(t,{J:()=>s,_:()=>o});var n=i(17402);function o(){let e=e=>{var t,i;”https://embed.bsky.app”===e.origin?function(e){if(!e.data.id||!e.data.height)return;let t=document.querySelector(‘[data-bluesky-id=”‘.concat(e.data.id,'”]’));t&&(t.style.height=””.concat(e.data.height,”px”))}(e):(“3pc.supported”===e.data||”3pc.unsupported”===e.data)&&(“3pc.supported”===e.data&&Array.from(document.getElementsByClassName(“tiktok-wrap outer”)).forEach(e=>{var t,i;let n=e.querySelector(“.tiktok-iframe”);if(!n)return;n.classList.add(“visible”),null==(t=e.querySelector(“.tiktok-wrap.static”))||t.classList.add(“hidden”);let o=e.querySelector(“.fallback-failure”);null==o||o.classList.add(“no-border”);try{let e=n.contentDocument||(null==(i=n.contentWindow)?void 0:i.document);(null==e?void 0:e.readyState)==”complete”&&(null==o||o.classList.add(“visible”))}catch(e){}n.onload=()=>{null==o||o.classList.add(“visible”)},n.onerror=()=>{null==o||o.classList.add(“visible”)},n.onabort=()=>{null==o||o.classList.add(“visible”)}}),null==(i=Array.from(document.getElementsByClassName(“third-party-cookie-check-iframe”)))||null==(t=i.forEach)||t.call(i,e=>e.remove()))};return window.addEventListener(“message”,e),()=>{window.removeEventListener(“message”,e)}}function s(){(0,n.useEffect)(o,[])}},57568:function(e,t,i){i.d(t,{f:()=>o});var n=i(17988);let o=()=>({isPrint:(0,n.useMediaQuery)({query:”print”})})}}]);