/*! For license information please see PostPage.MainContent.793c1f2c.chunk.js.LICENSE.txt */ (self.webpackChunklite=self.webpackChunklite||[]).push([[5531],{38125:(e,n,t)=>{var i=t(14259);e.exports=function(e){return null!=e&&e.length?i(e,0,-1):[]}},68254:e=>{"use strict";var n=Math.floor(1099511627776*Math.random()).toString(16),t=new RegExp('"@__(F|R|D|M|S|U)-'+n+'-(\\d+)__@"',"g"),i=/\{\s*\[native code\]\s*\}/g,a=/function.*?\(/,o=/.*?=>.*?/,l=/[<>\/\u2028\u2029]/g,r=["*","async"],d={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function s(e){return d[e]}e.exports=function e(d,m){m||(m={}),"number"!=typeof m&&"string"!=typeof m||(m={space:m});var c,u=[],p=[],k=[],v=[],g=[],f=[];return m.ignoreFunction&&"function"==typeof d&&(d=void 0),void 0===d?String(d):(c=m.isJSON&&!m.space?JSON.stringify(d):JSON.stringify(d,m.isJSON?null:function(e,t){if(m.ignoreFunction&&function(e){var n=[];for(var t in e)"function"==typeof e[t]&&n.push(t);for(var i=0;i0}));return l.filter((function(e){return-1===r.indexOf(e)})).length>0?(l.indexOf("async")>-1?"async ":"")+"function"+(l.join("").indexOf("*")>-1?"*":"")+n.substr(t):n}(u[l])}))))}},41116:(e,n,t)=>{"use strict";t.d(n,{j:()=>l});var i=t(67294),a=t(47230),o=t(77355),l=function(e){var n=e.children,t=e.href,l=e.width,r=void 0===l?{xs:"100%",sm:"100%",md:"min-width",lg:"min-width",xl:"min-width"}:l;return i.createElement(a.zx,{href:t,buttonStyle:"SUBTLE",width:r},i.createElement(o.x,{textAlign:"center"},n))}},39518:(e,n,t)=>{"use strict";t.r(n),t.d(n,{MainContent:()=>Xo,useLoader:()=>qo});var i=t(96156),a=t(64718),o=t(67294),l=t(51615),r=t(92030),d=t(2059),s=t(90732),m=t(5911),c=t(8575),u=t(90833),p=t(77280),k=t(43487),v=t(78870);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var n=1;n-1?o.createElement(d.$,null):o.createElement(u.l,{to:(0,v.Rk)(n,y,a),replace:!0,isMediumApp:!0}):N.path&&t!==N.path?o.createElement(u.l,{to:(0,v.Rk)(N.path,y,a),replace:!0}):i},N=t(87329),y=t(94078),x=t(78620),b={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MeterClickable_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellClickable_post"}}]}}].concat((0,N.Z)(x.H.definitions))},E=t(68216),F={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FriendLinkSharer_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}].concat((0,N.Z)(E.$m.definitions))},w={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FriendLinkMeter_postContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostContent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validatedShareKey"}},{kind:"Field",name:{kind:"Name",value:"shareKeyCreator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FriendLinkSharer_user"}}]}}]}}].concat((0,N.Z)(F.definitions))},P={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FriendLinkMeter_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FriendLinkMeter_postContent"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FriendLinkSharer_user"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"MeterClickable_post"}}]}}].concat((0,N.Z)(w.definitions),(0,N.Z)(F.definitions),(0,N.Z)(b.definitions))},_={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PostViewerEdgeContentQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}},type:{kind:"NamedType",name:{kind:"Name",value:"PostMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"fullContent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}},{kind:"Field",name:{kind:"Name",value:"validatedShareKey"}},{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostBody_bodyModel"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"FriendLinkMeter_postContent"}}]}}]}}]}}]}}]}}].concat((0,N.Z)(y.Pk.definitions),(0,N.Z)(w.definitions))},T=function(){var e,n,t,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,k.v9)((function(e){return e.navigation.referrer})),d=null!==(e=(0,p.G1)())&&void 0!==e?e:void 0,s={referrer:r,sk:d,source:null!==(n=(0,p.PM)())&&void 0!==n?n:void 0},m=!l&&!d,c=(0,a.a)(_,{variables:{postId:o,postMeteringOptions:s},ssr:!1,skip:!o||m}),u=c.loading,v=c.error,g=c.data,f=null==g||null===(t=g.post)||void 0===t||null===(i=t.viewerEdge)||void 0===i?void 0:i.fullContent;return u?{loading:u}:v?{error:v}:{content:f}},D=t(96370),C=t(66411),I=t(50458),O=t(52521),R=t(68427),L=t(84739),A=t(97480),M=t(77355),Z=t(18634),B=t(20113),V=t(31889),j=t(82053),U=t(4381),W=t(43158),G=t(47459),H=t(21755),z=function(e){return e.filter((function(e){return!(null==e||!e.feedId||null==e||!e.post)}))},Y=function(e){var n=e.item,t=n.feedId,i=n.post,a=e.index,l=e.source,r=e.lastIndex,d=(0,V.F)(),s=(0,k.v9)((function(e){return e.client.viewerIsBot}));return o.createElement(W.P,{size:{xs:12,sm:12,md:6,lg:6,xl:6}},o.createElement(M.x,{paddingBottom:{xs:"32px",sm:"32px",md:"56px",lg:"56px",xl:"56px"},height:"100%"},o.createElement(C.cW,{extendSource:!0,source:{name:l,index:a,feedId:s?void 0:t}},o.createElement(j.w,{index:a,post:i,scale:"S",aspectRatio:U.Pr.TwoToOne,lastIndex:r,dividerBreakpoints:[H.j.xs,H.j.sm],dividerColor:d.colorTokens.border.neutral.tertiary.base,miroImgFetchedWidth:679}))))},K=function(e){var n=e.items,t=e.source;return o.createElement(G.T,{alignItems:"stretch"},n.map((function(e,i){return o.createElement(Y,{key:e.post.id,item:e,index:i,source:t,lastIndex:n.length-1})})))},q=t(41116),X=function(e){var n=e.authorCollectionRecircFeed,t=e.user,i=e.collection,a=(0,V.F)(),l=(null==n?void 0:n.items)||[],r=z(l),d=(0,L.B)(t);if(null==r||!r.length)return null;var s=1===(null==r?void 0:r.length);return o.createElement(o.Fragment,null,o.createElement(D.P,{size:"app"},o.createElement(M.x,{marginTop:"40px",marginBottom:"32px"},o.createElement(B.X6,{scale:"XS"},"More from ",t.name,i&&" and ".concat(i.name))),s?o.createElement(o.Fragment,null,o.createElement(Z.y,{xs:!0,sm:!0},o.createElement(K,{items:r,source:"author_recirc"})),o.createElement(Z.y,{md:!0,lg:!0,xl:!0},o.createElement(O.j,{post:r[0].post,scale:"L",index:0,lastIndex:0,dividerColor:a.colorTokens.border.neutral.tertiary.base}))):o.createElement(K,{items:r,source:"author_recirc"}),o.createElement(A.E,{marginTop:s?{xs:"32px",sm:"32px",md:"24px",lg:"24px",xl:"24px"}:void 0,marginBottom:{xs:"32px",sm:"32px",md:"24px",lg:"24px",xl:"24px"},borderColor:a.colorTokens.border.neutral.tertiary.base}),o.createElement(M.x,{display:"flex",flexDirection:{xs:"column",sm:"column",md:"row",lg:"row",xl:"row"}},o.createElement(q.j,{href:d},"See all from ",null==t?void 0:t.name),i&&o.createElement(Q,{collection:i}))),o.createElement(A.E,{marginTop:{xs:"72px",sm:"72px",md:"96px",lg:"96px",xl:"96px"},borderColor:a.colorTokens.border.neutral.tertiary.base}))},Q=function(e){var n=e.collection,t=(0,R.R)(n);return o.createElement(M.x,{marginTop:{xs:"16px",sm:"16px",md:"0px",lg:"0px",xl:"0px"},marginLeft:{xs:"0",sm:"0",md:"16px",lg:"16px",xl:"16px"}},o.createElement(q.j,{href:t},"See all from ",null==n?void 0:n.name))},J=t(3934),$=t(38004),ee={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromAuthorAndMaybePub_authorCollectionRecircFeedResult"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AuthorCollectionRecircFeedResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GridPostPreview_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"StreamPostPreview_post"}}]}},{kind:"Field",name:{kind:"Name",value:"feedId"}}]}}]}}].concat((0,N.Z)(J.d.definitions),(0,N.Z)($.w.definitions))},ne={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromAuthorAndMaybePub_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}].concat((0,N.Z)(E.$m.definitions))},te={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromAuthorAndMaybePub_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}].concat((0,N.Z)(E.nf.definitions))},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MoreFromAuthorAndMaybePubQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AuthorCollectionRecircFeedInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"authorCollectionRecircFeed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromAuthorAndMaybePub_authorCollectionRecircFeedResult"}}]}}]}}].concat((0,N.Z)(ee.definitions))},ae=t(21043),oe=t(51873),le=t(36764),re=t(93310),de=t(87691),se=t(29746),me=t(92305),ce=t(17583),ue=t(35989),pe=t(25145),ke=t(63459),ve=t(48342),ge=t(73279),fe=t(27323),Se=t(52069),he=t(13663);function Ne(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ye(e){for(var n=1;n6?e.filter((function(e){return!e.hideOnSmallScreen})):e}),[d,i]),m=(0,o.useMemo)((function(){return["Access all member-only stories on Medium"].concat((0,N.Z)(t))}),[t]),c=(0,ze.H)().value,u=(0,xn.A)(),p=(0,o.useCallback)((function(){u.event("paywall.presented",{type:i.type,userId:null==c?void 0:c.id})}),[i.type,null==c?void 0:c.id]),k=(0,Pn.g)({onPresentedFn:p});return o.createElement(Nn,{margin:"0 -24px",ref:k},o.createElement(M.x,{display:"flex",justifyContent:"center",textAlign:"center",sm:{flexDirection:"column"}},o.createElement(M.x,{display:"flex",flexDirection:"column",padding:{xs:"28px 33px 32px",sm:"28px 33px 32px",md:"32px",lg:"32px",xl:"32px"},marginTop:"32px",textAlign:"center",borderRadius:"4px",maxWidth:"100%"},o.createElement($e.H2,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},n),o.createElement(M.x,{marginTop:"32px"},o.createElement(de.F,{scale:"M",color:"DARKER"},"The author made this story available to Medium members only. Upgrade to instantly unlock this story plus other member-only benefits.")),o.createElement(M.x,{margin:"22px auto 34px"},m.map((function(e,n){return o.createElement(M.x,{display:"flex",alignItems:"center",key:"reason-".concat(n),marginTop:"12px",textAlign:"left"},o.createElement(_n.Z,{className:l(Tn)}),o.createElement(de.F,{scale:"M",color:"DARKER"},e))}))),o.createElement(M.x,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",marginBottom:"30px"},s.map((function(e){return o.createElement(M.x,{key:e.name,display:"flex",alignItems:"center",flexDirection:"column",flexGrow:"1",flexShrink:"1",flexBasis:d?"33%":"25%",marginBottom:"32px","data-testid":"creator-spotlight"},o.createElement(Fn.z,{alt:e.name,miroId:e.miroId,diameter:64}),o.createElement(M.x,{marginTop:"8px",textAlign:"center"},o.createElement(de.F,{scale:d?"S":"M",color:"DARKER"},e.name),o.createElement(de.F,{scale:"XS"},e.title),e.company&&o.createElement(de.F,{scale:"XS"},e.company)))}))),o.createElement(En,{id:"paywallButton-programming",postId:a,align:"center",buttonStyle:"STRONG"}))))},Cn=t(57142),In=["Dive deeper into the topics that matter to you",o.createElement(o.Fragment,null,"Get in-depth articles answering thousands of questions"),"Achieve your personal and professional goals"],On=function(e){var n,t=e.paywall,i=e.post,a=(0,ze.H)().value,l=function(e,n){var t=e?(0,Cn.J)(e):null;t=t&&t.length<=13?t:null;var i=n?" from ".concat(n):"";return t?"".concat(t,", read this story").concat(i," — and all the best stories on Medium."):"Read this story".concat(i," — and all the best stories on Medium.")}(null==a?void 0:a.name,null===(n=i.creator)||void 0===n?void 0:n.name);return o.createElement(Dn,{headerText:l,reasonsToUpgrade:In,paywall:t,postId:i.id})},Rn=function(e){switch(e){case"javascript":return"JavaScript";case"ios-development":return"iOS development";case"android-development":return"Android development";default:return e.replace("-"," ").toLowerCase()}},Ln=function(e){var n,t,i=e.paywall,a=e.post,l=(0,ze.H)().value,r=null!==(n=null===(t=a.primaryTopic)||void 0===t?void 0:t.slug)&&void 0!==n?n:null,d=function(e,n){var t=e?(0,Cn.J)(e):null;if(t=t&&t.length<=13?t:null,n){var i=Rn(n);return t?"".concat(t,", read the best stories about ").concat(i," from industry leaders on Medium."):"Read the best stories about ".concat(i," from industry leaders on Medium.")}return t?"".concat(t,", read the best stories from industry leaders on Medium."):"Read the best stories from industry leaders on Medium."}(null==l?void 0:l.name,r),s=(0,o.useMemo)((function(){return function(e){var n=e?Rn(e):"technical";return["Become an expert in your areas of interest","Get in-depth answers to thousands of questions about ".concat(n),"Grow your career or build a new one"]}(r)}),[r]);return o.createElement(Dn,{headerText:d,reasonsToUpgrade:s,paywall:i,postId:a.id})},An=t(6402),Mn=[{kind:"FragmentDefinition",name:{kind:"Name",value:"EntityPaywall_paywall"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostPaywall"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creatorSpotlights"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"company"}},{kind:"Field",name:{kind:"Name",value:"miroId"}},{kind:"Field",name:{kind:"Name",value:"hideOnSmallScreen"}}]}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}],Zn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AspirationalPaywall_paywall"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostPaywall"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EntityPaywall_paywall"}}]}}].concat((0,N.Z)(Mn))},Bn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProgrammingPaywall_paywall"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostPaywall"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EntityPaywall_paywall"}}]}}].concat((0,N.Z)(Mn))},Vn={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Paywall_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"imageId"}}]}},{kind:"Field",name:{kind:"Name",value:"primaryTopic"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"topics"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"AspirationalPaywall_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ProgrammingPaywall_post"}}]}}].concat((0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"AspirationalPaywall_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"ProgrammingPaywall_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"primaryTopic"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}}]))},jn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Paywall"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"paywall"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AspirationalPaywall_paywall"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ProgrammingPaywall_paywall"}}]}}]}}]}}]}}].concat((0,N.Z)(Zn.definitions),(0,N.Z)(Bn.definitions))},Un=function(e){var n,t=e.post,i=(0,ze.H)().value,l=(0,xn.A)();(0,o.useEffect)((function(){l.event("paywall.viewed",{userId:null==i?void 0:i.id})}),[]);var r=(0,a.a)(jn,{ssr:!1,variables:{postId:t.id}}),d=r.data,s=r.error,m=r.loading;(0,o.useEffect)((function(){s&&An.k.error({error:s},"Paywall query error")}),[s]);var c=(0,o.useState)(!1),u=(0,We.Z)(c,2),p=u[0],k=u[1],v=(0,o.useCallback)((function(e,n){p||(k(!0),An.k.error(e,n))}),[p]),g=null==d||null===(n=d.post)||void 0===n?void 0:n.viewerEdge.paywall;if(s||m||!g)return null;switch(g.type){case nn.zB.PROGRAMMING:return o.createElement(Ln,{paywall:g,post:t});case nn.zB.ASPIRATIONAL:return o.createElement(On,{paywall:g,post:t});default:return v({paywall:g},"Unknown paywall type"),null}},Wn=t(39610),Gn=t(26350),Hn=t(28451),zn=t(54935),Yn=t(27393),Kn=t(69862),qn=t(40578),Xn=t(40980),Qn=function(e){var n=e.postId,t=e.susiEntry,i="register",a={operation:i,postId:n},l=(0,zn.j)().openModal;return o.createElement(M.x,{display:"flex",flexDirection:"column",textAlign:"center",margin:{xs:"32px 0",sm:"32px 0",md:"64px 0",lg:"64px 0",xl:"64px"}},o.createElement(Xn.$,{eventData:a},o.createElement(qn.x,{operation:i})),o.createElement(M.x,{marginTop:"10px",sm:{marginTop:"12px"}},o.createElement(Xn.$,{eventData:a},o.createElement(Kn.q,{operation:i}))),o.createElement(M.x,{marginTop:"10px",sm:{marginTop:"12px"}},o.createElement(Xn.$,{eventData:a},o.createElement(Yn.R,{goToEmailAuthStep:function(){l({step:"ENTER_EMAIL",susiEntry:t,operation:i})},operation:i}))))},Jn="post_regwall",$n=function(e){var n=e.post,t=(0,xn.A)(),i="LOCKED_POST_SOURCE_SYNDICATED"===n.lockedSource,a=(0,k.v9)((function(e){return e.navigation.susiEmail})),l=(0,zn.j)().susiModalConfig.operation;(0,o.useEffect)((function(){t.event("meter.viewed",{meterCount:0,postId:n.id,uiType:i?Hn.j.SyndicatedRegwall:Hn.j.RegWall})}),[]);var r=(0,o.useCallback)((function(){t.event("regwall.presented",{})}),[]),d=(0,Pn.g)({onPresentedFn:r});return o.createElement(C.cW,{source:{postId:n.id,susiEntry:Jn}},o.createElement(Nn,{margin:"0px",ref:d},o.createElement(M.x,{display:"flex",textAlign:"center",justifyContent:"center",flexDirection:"column"},o.createElement(M.x,{padding:{xs:"28px 0 48px",sm:"28px 0 48px",md:"56px",lg:"56px",xl:"56px"}},o.createElement($e.H2,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},a?"Check your inbox.":o.createElement(M.x,null,"Create an account to read the full story.")),o.createElement(de.F,{color:"DARKER",scale:"M",tag:"div"},a?o.createElement(o.Fragment,null,o.createElement(M.x,{paddingTop:"12px",paddingBottom:"56px"},"login"===l?"There is an existing account associated with ".concat(a,", and we have just sent a link you can use to sign in."):"Click the link we sent to ".concat(a," to complete your account setup and\n continue reading this story.")),o.createElement(de.F,{color:"LIGHTER",scale:"M"},"Didn't get the link?"," ",o.createElement(Gn.R,{linkStyle:"OBVIOUS",operation:"register",post:n,susiEntry:Jn},"Try again"))):o.createElement(de.F,{color:"DARKER",scale:"L"},o.createElement(M.x,{margin:"32px 0 0"},o.createElement(de.F,{color:"DARKER",scale:"M"},"The author made this story available to Medium members only.",o.createElement("br",null),"If you’re new to Medium, create a new account to read this story on us.")),o.createElement(de.F,{color:"DARKER",scale:"M"},o.createElement(M.x,{display:{xs:"block",sm:"block",md:"none",lg:"none",xl:"none"}},o.createElement(M.x,{margin:"32px 0"},o.createElement(Wn.a,{isButton:!0,buttonSize:"REGULAR",postId:n.id,appEntry:"regwall",copy:"Continue in app"})),o.createElement(M.x,null,"Or, continue in mobile web"))),o.createElement(Qn,{postId:n.id,susiEntry:Jn}),"Already have an account?"," ",o.createElement(Gn.R,{linkStyle:"OBVIOUS",inline:!0,operation:"login",post:n,susiEntry:Jn},"Sign in")))))))},et=function(e){var n=e.post,t=n.id,i=n.content.isLockedPreviewOnly,a=(0,ze.H)(),l=a.value,r=a.loading,d=!!l;if(!T(t,i).loading&&i){if(d)return o.createElement(Un,{post:n});if(!r)return o.createElement($n,{post:n})}return null},nt=t(21919),tt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollaboratorMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addCollaborator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postId"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}]}]}}]},it=t(73776),at=t(10500),ot=t(70405),lt=t(82492),rt=t.n(lt),dt=t(68254),st=t.n(dt),mt=t(20512),ct=t(46696),ut=t(15085);function pt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function kt(e){for(var n=1;n=0;--o){var l=this.tryEntries[o],r=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var d=i.call(l,"catchLoc"),s=i.call(l,"finallyLoc");if(d&&s){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),T(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;T(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:C(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),g}},n}var wi=hi()({loading:function(){return null},loader:function(){return Promise.all([t.e(7084),t.e(372),t.e(6318),t.e(513),t.e(8913)]).then(t.bind(t,41469))},modules:["./ThreadedResponsesSidebarContent"],webpack:function(){return[41469]},render:(0,xi.n)("ThreadedResponsesSidebarContent")}),Pi=function(e){var n,t,i,a,l,r,d,s,m,c=e.isResponsesSidebarVisible,u=e.inResponseToQuote,p=e.setInResponseToQuote,k=e.parentPost,v=e.continueThisThreadPost,g=e.continueThisThreadPostDepth,f=e.showPreviousSidebar,S=e.cleanupSidebar,h=e.initialSidebarRender,N=e.responsesSort,y=N?nn.sV[N]:void 0,x=o.useState(y||nn.sV.TOP),b=(0,We.Z)(x,2),E=b[0],F=b[1],w=o.useState(!1),P=(0,We.Z)(w,2),_=P[0],T=P[1],D=o.useRef(null),I=(0,fi.t)(bi.A,{variables:{postId:k.id,postResponsesPaging:{limit:pi.p4},sortType:E},ssr:!1}),O=(0,We.Z)(I,2),R=O[0],L=O[1],A=L.called,M=L.loading,Z=L.data,B=L.fetchMore;A||v||!c||(R(),wi.preload());var V=null==Z||null===(n=Z.post)||void 0===n?void 0:n.responsesLocked,j=null==Z||null===(t=Z.post)||void 0===t?void 0:t.isLockedResponse,U=(0,pi.aj)(c,h,null==Z||null===(i=Z.post)||void 0===i?void 0:i.threadedPostResponses,v),W=U.responses,G=U.showCreateReplyEditor,H=(null==Z||null===(a=Z.post)||void 0===a||null===(l=a.responseRootPost)||void 0===l||null===(r=l.post)||void 0===r?void 0:r.id)||"",z=g||(null==Z||null===(d=Z.post)||void 0===d||null===(s=d.responseRootPost)||void 0===s?void 0:s.responseDepth)||0,Y=void 0,K=null==W||null===(m=W.pagingInfo)||void 0===m?void 0:m.next;return K&&!v&&(Y=function(){var e=(0,gi.Z)(Fi().mark((function e(){var n;return Fi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!B){e.next=5;break}return K.__typename,n=(0,vi.Z)(K,Ei),e.next=4,B({variables:{postId:k.id,postResponsesPaging:n}});case 4:T(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),o.createElement(yi.N8,null,o.createElement(C.cW,{source:{name:"responses",postId:k.id},extendSource:!0},o.createElement(Ni.I,{sidebarRef:D,cleanupSidebar:S,isResponsesSidebarVisible:c,pagingInfoNext:K,isFetchingNextSetOfResponses:_,setIsFetching:T,fetchMoreWithArguments:Y,initialSidebarRender:h},(function(e){var n=e.responseDistribution,t=e.setResponseDistribution,i=e.closeSidebar;return A||v?o.createElement(wi,{responses:W,parentPost:k,responsesLocked:V,isLockedResponse:j,isLoadingInitialContent:M,isFetchingNextSetOfResponses:_,isResponsesSidebarVisible:c,closeSidebar:i,showPreviousSidebar:f,inResponseToQuote:u,setInResponseToQuote:p,sidebarRef:D,responseDistribution:n,setResponseDistribution:t,responseSortType:E,setResponseSortType:F,rootPostId:H,postDepth:z,isContinueThisThread:!!v,showCreateReplyEditor:G}):null}))))},_i=function(e){var n=e.children,t=e.post,i=(0,o.useState)(void 0),a=(0,We.Z)(i,2),l=a[0],r=a[1],d=(0,o.useCallback)((function(e){return function(n){r(n),e()}}),[]);return o.createElement(ui.E,null,(function(e){var i=e.showPreviousSidebar,a=e.hasLoaded,s=e.initialSidebarRender,m=e.isVisible,c=e.continueThisThreadPosts,u=e.openSidebar,p=e.cleanupSidebar,k=e.responseSortOption;return o.createElement(ci.Q.Provider,{value:{openSidebarToRespondToHighlight:d(u)}},!!t&&a&&o.createElement(Pi,{isResponsesSidebarVisible:m&&0===c.length,parentPost:t,inResponseToQuote:l,setInResponseToQuote:r,showPreviousSidebar:i,cleanupSidebar:p,initialSidebarRender:!!s.current,responsesSort:k}),!!t&&a&&c.map((function(e,n,a){var d=(0,pi.iI)(n);return o.createElement(Pi,{key:t.id,isResponsesSidebarVisible:m&&n===a.length-1,parentPost:t,inResponseToQuote:l,setInResponseToQuote:r,continueThisThreadPost:e,continueThisThreadPostDepth:d,showPreviousSidebar:i,cleanupSidebar:p,initialSidebarRender:!!s.current,responsesSort:k})})),n)}))},Ti=t(66227),Di=t(73917);function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0;--o){var l=this.tryEntries[o],r=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var d=i.call(l,"catchLoc"),s=i.call(l,"finallyLoc");if(d&&s){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),T(t),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;T(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:C(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),g}},n}var Qi=t(68821),Ji=t(81037),$i=t(25735),ea=t(84509);var na=t(92661),ta=t(44266),ia=function(e){var n=e.list,t=(0,xn.A)(),i=(0,C.pK)(),a=(0,o.useCallback)((function(){t.event("list.presented",{listId:n.id,source:i})}),[n.id,i]),l=(0,Pn.g)({onPresentedFn:a});return o.createElement(W.P,{size:{xs:12,sm:12,md:6,lg:6,xl:6},ref:l},o.createElement(ta.S,{catalog:n,titleMargin:"4px"}))},aa=function(e){var n=e.lists,t=(0,V.F)();return o.createElement(o.Fragment,null,o.createElement(A.E,{marginBottom:"40px",borderColor:t.colorTokens.border.neutral.tertiary.base}),o.createElement(B.X6,{scale:"XS"},"Lists"),o.createElement(M.x,{marginTop:"32px"},o.createElement(C.cW,{extendSource:!0,source:{name:"read_next_recirc"}},o.createElement(G.T,{alignItems:"flex-start"},n.map((function(e){return o.createElement(ia,{key:e.id,list:e})}))))),o.createElement(A.E,{marginTop:{xs:"16px",sm:"16px",md:"24px",lg:"24px",xl:"24px"},marginBottom:{xs:"32px",sm:"32px",md:"56px",lg:"56px",xl:"56px"},borderColor:t.colorTokens.border.neutral.tertiary.base}))},oa=function(e){var n=e.recirc,t=e.postCatalogRecirc,i=(0,V.F)(),a=(0,na.qt)("ShowHome",{}),l=null==n?void 0:n.items,r=null==t?void 0:t.catalogs;if(null==l||!l.length)return null;var d=z(l),s=d.slice(0,2),m=d.slice(2);return o.createElement(D.P,{size:"app"},o.createElement(M.x,{paddingTop:"88px",paddingBottom:"40px"},o.createElement(B.X6,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},"Recommended from Medium"),o.createElement(M.x,{marginTop:{xs:"40px",sm:"40px",md:"56px",lg:"56px",xl:"56px"}},o.createElement(K,{items:s,source:"read_next_recirc"})),null!=r&&r.length?o.createElement(aa,{lists:r}):null,o.createElement(K,{items:m,source:"read_next_recirc"}),o.createElement(A.E,{marginBottom:{xs:"32px",sm:"32px",md:"24px",lg:"24px",xl:"24px"},borderColor:i.colorTokens.border.neutral.tertiary.base}),o.createElement(q.j,{href:a},"See more recommendations")))},la=t(937),ra=t(74419),da=t(80350),sa=t(75040),ma=t(5422),ca=t(47834),ua=t(65968),pa=t(64238),ka=t(26700),va=t(31711),ga=t(92780),fa=hi()({loading:function(){return null},loader:function(){return t.e(9076).then(t.bind(t,26766))},modules:["./GiveTipButton"],webpack:function(){return[26766]},render:(0,xi.n)("GiveTipButton")}),Sa=function(e){var n=e.user,t=e.postId,i=(0,ze.H)().value,a=i&&i.id===n.id,l=(0,na.H2)(),r=(0,$i.V)({name:"can_send_tips_v0",placeholder:!1}),d="rgba(26, 137, 23, 1)"!==(0,V.F)().colorTokens.background.accent.primary.base,s=(0,v.Rk)(l("ShowSettingsTab",{setting:sa.B.Account}),{},ma.el);return o.createElement(o.Fragment,null,a?o.createElement(Xe.zx,{buttonStyle:d?"STRONG":"BRAND",size:"SMALL",href:s},o.createElement(M.x,{whiteSpace:"nowrap"},"Edit profile")):o.createElement(C.cW,{source:{name:"publisher_header_actions"},extendSource:!0},o.createElement(M.x,{display:"flex"},o.createElement(va.N,{creator:n,followButtonSize:"REGULAR",susiEntry:"follow_profile",showMembershipUpsellModal:!0,width:"auto",buttonStyleFn:function(e){return function(e){return d?e?"OBVIOUS":"STRONG":e?"SUBTLE":"BRAND"}(e)}}),r&&o.createElement(fa,{creatorId:n.id,postId:t,buttonStyle:d?"STRONG":"BRAND"}))))},ha=function(e){var n,t=e.user,i=e.collection,a=!(null===(n=i.editors)||void 0===n||!n.find((function(e){var n;return(null==e||null===(n=e.user)||void 0===n?void 0:n.id)===t.id}))),l=(0,ga.n)({name:"detail",scale:"M",color:"LIGHTER",clamp:1}),r=(0,wn.I)();return o.createElement("div",{className:r([l,{display:"flex",whiteSpace:"pre-wrap"}])},o.createElement(ge.O,{margin:"0 8px"}),o.createElement(M.x,{tag:"span",flexShrink:"0"},a?"Editor for ":"Writer for "),o.createElement(ka.q,{collection:i,clamp:1}))},Na=function(e){var n=e.user,t=e.postId,i=e.collection,a=(0,V.F)(),l=(0,L.B)(n),r=(0,pa.o)(n),d=(0,ce.s)(),s=d===H.j.xs||d===H.j.sm,m=s?64:72,c=s?24:32;return o.createElement(D.P,{size:"app"},o.createElement(M.x,{marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"flex-end"},o.createElement(ca.j,{author:n,collection:i,authorSize:m,collectionImageSize:c,collectionOffset:"-16px",borderColor:a.colorTokens.background.neutral.tertiary.base}),o.createElement(Z.y,{xs:!0,sm:!0},o.createElement(Sa,{user:n,postId:t}))),o.createElement(M.x,{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},o.createElement(M.x,null,o.createElement(M.x,{display:"flex",alignItems:"center"},o.createElement(re.r,{href:l,rules:{display:"flex",alignItems:"center"}},o.createElement(ra.i,{prefix:"Written by ",publisher:n,scale:"M"})),r&&o.createElement(ua.G,{marginLeft:"2px",marginTop:"1px",size:"M",userId:n.id,alignSelf:{xs:"flex-end",sm:void 0,md:void 0,lg:void 0,xl:void 0}})),o.createElement(M.x,{marginTop:"8px",display:"flex"},o.createElement(M.x,{flexShrink:"0"},o.createElement(da.e,{publisher:n,scale:"M",color:"DARKER",inline:!0,showWhenZero:!0})),i&&o.createElement(ha,{user:n,collection:i})),o.createElement(M.x,{marginTop:"16px"},o.createElement(la.y,{publisher:n,color:"DARKER"}))),o.createElement(Z.y,{md:!0,lg:!0,xl:!0},o.createElement(Sa,{user:n,postId:t}))),o.createElement(A.E,{marginTop:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"},borderColor:a.colorTokens.border.neutral.tertiary.base}))},ya=t(40806),xa=t(70929),ba=t(10654),Ea=t(80536),Fa=t(84130),wa={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MobileFooterPostActions_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"allowResponses"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVote_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenuButton_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AddToCatalogBookmarkButton_post"}}]}}].concat((0,N.Z)(ba.x.definitions),(0,N.Z)(Ea.l.definitions),(0,N.Z)(Fa.G.definitions))},Pa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MobileFooterPostActionsQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MobileFooterPostActions_post"}}]}}]}}].concat((0,N.Z)(wa.definitions))},_a=t(25011),Ta=function(e){var n,t,i=e.post,l=e.isVisible,r=o.useContext(_t.f).openSidebar,d=(0,a.a)(Pa,{variables:{postId:i.id},ssr:!1}),s=d.data,m=d.loading,c=d.error;return m?null:(t=c||null==s||!s.post?i:s.post,o.createElement(_a.p,{isVisible:l,multiVoteButton:o.createElement(Ft.S,{post:t,buttonStyle:"SUBTLE_MARGIN",hasDialog:!0,shouldHideClapsText:!0,shouldShowResponsiveLabelText:!0,susiEntry:"clap_footer",buttonColor:"LIGHTER",countScale:"S"}),responsesButton:o.createElement(Pt.c,{responsesCountScale:"S",trackingData:{postId:t.id},responsesCount:(null===(n=t.postResponses)||void 0===n?void 0:n.count)||null,isLimitedState:t.isLimitedState,isPublished:t.isPublished,handleClick:r,countStylesOverride:{marginLeft:"4px"},allowResponses:t.allowResponses}),saveButton:o.createElement(xa.o,{kind:nn.ej.POST,target:t})}))},Da=t(93661),Ca=t(95729),Ia=t(12722),Oa=["title","includeStar","benefits","onClick","href","buttonText","post"],Ra=function(e){return{"> path":{fill:e.colorTokens.foreground.neutral.primary.base},marginRight:"8px",height:"16px",width:"16px"}},La=function(e){var n=e.title,t=e.includeStar,i=e.benefits,a=e.onClick,l=e.href,r=e.buttonText,d=e.post,s=(0,vi.Z)(e,Oa),m=(0,wn.I)();return o.createElement(M.x,(0,Ge.Z)({borderRadius:"4px",backgroundColor:"BACKGROUND",border:"neutral.primary",padding:"24px",width:{xs:"100%",sm:"100%",md:"320px",lg:"320px",xl:"320px"}},s),o.createElement(M.x,{display:"flex",alignItems:"center"},t&&o.createElement(_n.Z,{className:m(Ra)}),o.createElement(B.X6,{scale:"XS"},n)),o.createElement(M.x,{marginTop:"16px",height:"1px",backgroundColor:"BASE_NORMAL"}),i.map((function(e,n){return o.createElement(M.x,{key:n,marginTop:"16px",display:"flex"},o.createElement(M.x,{marginRight:"12px"},o.createElement(Ia.Z,null)),o.createElement(de.F,{scale:"M",color:"DARKER"},e))})),o.createElement(M.x,{marginTop:"24px",marginBottom:"16px",height:"1px",backgroundColor:"BASE_NORMAL"}),o.createElement(Gn.R,{operation:"register",susiEntry:"lo_non_moc_upsell",isButton:!0,buttonStyle:"BRAND",redirectTo:l,additionalClickActions:a,buttonWidth:"100%",post:d},r))},Aa=t(66802),Ma={xs:"440px",sm:"440px",md:"1192px",lg:"1192px",xl:"1192px"},Za={height:{xs:"22px",sm:"22px",md:"32px",lg:"32px",xl:"32px"},marginBottom:{xs:"16px",sm:"16px",md:"32px",lg:"32px",xl:"32px"}},Ba={position:"absolute",bottom:"0",left:"0",zIndex:"-1"},Va=["Distraction-free reading. No ads.","Organize your knowledge with lists and highlights.","Tell your story. Find your audience."],ja=["Access the best member-only stories.","Support independent authors.","Listen to audio narrations.","Read offline.","Join the Partner Program and earn for your writing."],Ua=function(e){var n=e.onClick,t=e.post,i=(0,wn.I)(),a=(0,Da.kr)({membershipType:Da.FM.Monthly}),l=a.amount,r=a.currency,d=(0,na.H2)();return o.createElement(M.x,{display:"flex",flexDirection:{xs:"column",sm:"column",md:"column",lg:"column",xl:void 0},alignItems:"center"},o.createElement(U.UV,{miroId:"5c50caa54067fd622d2f0fac18392213bf92f6e2fae89b691e62bceb40885e74",rules:Ba}),o.createElement(M.x,{marginRight:{xs:void 0,sm:void 0,md:void 0,lg:void 0,xl:"64px"},marginBottom:{xs:"24px",sm:"24px",md:"48px",lg:"48px",xl:void 0},textAlign:{xs:"center",sm:"center",md:"center",lg:"center",xl:void 0}},o.createElement(Ca.Z,{className:i(Za)}),o.createElement($e.H2,{scale:{xs:"XS",sm:"XS",md:"S",lg:"S",xl:"S"},color:"DARKER"},"Sign up to discover human stories that deepen your understanding of the world.")),o.createElement(M.x,{display:"flex",flexDirection:{xs:"column",sm:"column",md:void 0,lg:void 0,xl:void 0},alignItems:"center"},o.createElement(La,{title:"Free",benefits:Va,buttonText:"Sign up for free",onClick:n,post:t,marginBottom:{xs:"24px",sm:"24px",md:void 0,lg:void 0,xl:void 0},marginRight:{xs:void 0,sm:void 0,md:"40px",lg:"40px",xl:"32px"}}),o.createElement(La,{title:"Membership",includeStar:!0,benefits:ja,buttonText:"Try for ".concat((0,Aa.xG)({amount:l,currency:r,floatingDigits:[0,2]}),"/month"),onClick:n,href:d("ShowPay",{}),post:t})))},Wa=t(5129),Ga=t(19374),Ha=function(e){return function(n){return{backgroundColor:n.colorTokens.background.neutral.tertiary.base,borderTop:"1px solid ".concat(n.colorTokens.border.neutral.secondary.base),position:"fixed",width:"100%",visibility:e?"visible":"hidden"}}},za=function(e){var n=e.hide,t=e.click,i=e.height,a=e.containerRef,l=e.post,r=e.isVisible,d=e.setIsVisible,s=(0,o.useRef)(0),m=(0,o.useRef)(0),c=(0,ce.s)();return(0,o.useEffect)((function(){if(i>0&&!r&&d(!0),c&&c!==H.j.xl&&!(iwindow.innerHeight?n:Math.min(i/2,n),o=e<=0?0:Math.min(t,m.current+e-s.current);m.current=Math.max(0,o),s.current=e,a.current&&(a.current.style.removeProperty("bottom"),0===m.current?a.current.style.top="50vh":a.current.style.top="calc(50vh - ".concat(m.current,"px)"))};return e(),window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}a.current&&(a.current.style.removeProperty("top"),a.current.style.bottom="0")}),[i,c]),o.createElement(M.x,{maxWidth:Ma},o.createElement(Ga.L,{onClose:n,containerProps:{position:"absolute",top:"16px",right:"16px",padding:"0"}}),o.createElement(Ua,{onClick:t,post:l}))},Ya=function(e){var n=e.hide,t=e.click,i=e.post,a=(0,o.useState)(0),l=(0,We.Z)(a,2),r=l[0],d=l[1],s=(0,o.useState)(!1),m=(0,We.Z)(s,2),c=m[0],u=m[1];return o.createElement(Wa.S,{height:r,setHeight:d,isVisible:!0,hideDirection:"down",containerRules:Ha(c),onHide:n,contentProps:{flexDirection:"column",padding:{xs:"32px 24px 28px",sm:"32px 24px 28px",md:"56px 24px 40px",lg:"56px 24px 40px",xl:"56px 24px 40px"},alignItems:"center"},hideOnEscapeKey:!0},(function(e){var n=e.hide,a=e.containerRef;return o.createElement(za,{height:r,hide:n,click:t,containerRef:a,post:i,isVisible:c,setIsVisible:u})}))},Ka=t(68894),qa=t(3013),Xa=30*qi.pU,Qa=function(){return null},Ja=["9db0094a1e0f","f03bf92035c9"],$a=function(e){var n=e.post,t=e.postIsLocked,i=(0,ce.s)(),a=i===H.j.xs||i===H.j.sm,r=function(e,n){var t,i=(0,k.v9)((function(e){return e.client.hydrated})),a=(0,xn.A)(),r=(0,ze.H)(),d=r.value,s=r.error,m=r.loading,c=!m&&!s&&!d,u=(0,Ka.O)((0,qa.V)((0,di.D4)(),Xa)),p=(0,We.Z)(u,2),v=p[0],g=p[1],f=(0,o.useCallback)((function(){(0,di.Fv)(new Date),a.event("upsell.dismissed",{dimension:"post_footer_upsell"}),g()}),[a,g]),S=(0,o.useCallback)((function(){a.event("upsell.clicked",{dimension:"post_footer_upsell"})}),[a]),h=(0,l.TH)(),N=(0,na.$B)(h.pathname),y="post"===(null==N||null===(t=N.route)||void 0===t?void 0:t.mediumAppPage);return!i||m?{isLoading:!0,isVisible:!1,hide:Qa,click:Qa}:Ja.includes(e)||n||!y||!c||!i||v?{isLoading:!1,isVisible:!1,hide:Qa,click:Qa}:{isLoading:!1,isVisible:!0,hide:f,click:S}}(n.id,t),d=r.isLoading,s=r.isVisible,m=r.hide,c=r.click,u=a&&!s&&!d;if(!u&&!s)return null;var p=u?Ve.y:0;return o.createElement(ya.o,{maxHeightToHideOnScroll:p,isUpsellVisible:s},(function(e){var t=e.isStuck;return o.createElement(o.Fragment,null,s&&o.createElement(C.cW,{extendSource:!0,source:{dimension:"post_footer_upsell",postId:n.id}},o.createElement(yi.N8,null,o.createElement(Ya,{hide:m,click:c,post:n}))),u&&o.createElement(Ta,{post:n,isVisible:t}))}))},eo=function(e){var n=e.post,t=e.recirc,i=e.postCatalogRecirc,r=e.catalog,d=e.authorCollectionRecircFeed,s=e.postViewerEdgeLoading,m=(0,V.F)(),c=o.useRef(null),u=(0,ze.H)().value,v=n.isLocked,g=n.collection,f=n.creator,S=n.content.isLockedPreviewOnly,h=(0,at.D)({post:n,postBodyRef:c,postViewerEdgeLoading:s}),N=!!n.inResponseToEntityType,y=v?{className:"meteredContent"}:{},x=(g||{}).googleAnalyticsId;return(0,Be.t)({ids:x?[x]:null}),(0,Qi.V)(c,n),function(e,n,t){var i=(0,xn.A)(),a=(0,C.pK)(),l=(0,o.useState)(!1),r=(0,We.Z)(l,2),d=r[0],s=r[1],m=(0,He.I0)(),c=(0,Ji.k)(),u=function(){var e=(0,Ji.k)(),n=(0,$i.V)({name:"enable_member_nps_survey",placeholder:!1}),t=(0,ze.H)(),i=t.loading,a=t.value;return(0,o.useCallback)((function(){n&&!i&&a&&e&&(a.membership&&(e.setLocalAttribute("membership.tier",a.membership.tier),e.setLocalAttribute("membership.memberSince",a.membership.memberSince),e.setLocalAttribute("membership.friendSince",a.membership.friendSince)),e.fireEvent("user.postClientRead"))}),[n,i,a,e])}();(0,o.useEffect)((function(){if(!d&&t){var o=function(){if(n.current&&!d){var o,l=(0,ea.L6)(n.current),r=(0,ea.tM)(l),p=r.top+r.height,k=(0,ea.tM)((0,ea.t_)()),v=k.top+k.height;if(!t.content.isLockedPreviewOnly&&v>=p-100&&a.includes("post_page")){s(!0),m((0,tn.C2)(!0));var g={source:a,postId:t.id,collectionSlug:t.collection?t.collection.slug:"",sequenceId:t.sequence?t.sequence.sequenceId:""};i.event("post.clientRead",g),c&&(c.setLocalAttribute("latest.post.clientRead.url",window.location.href),g.postId&&c.setLocalAttribute("latest.post.clientRead.postId",g.postId),g.source&&c.setLocalAttribute("latest.post.clientRead.source",g.source)),u(),e||(o=t.id,oi($t,o,Date.now()))}}};return en.V6.on("scroll_end",o),function(){en.V6.off("scroll_end",o)}}}),[d,t,c,u]),(0,o.useEffect)((function(){return function(){m((0,tn.C2)(!1))}}),[])}(!!u,c,n),function(e){var n=e.post,t=e.clientViewedContext,i=void 0===t?1:t,l=e.overrideCommonData,r=void 0===l?{}:l,d=e.postViewerEdgeLoading;(function(e){var n,t,i=e.post,o=(0,k.v9)((function(e){return e.config.authDomain})),l=null==i?void 0:i.id,r=(0,Xt.Pd)(null==i?void 0:i.creator),d=r.viewerEdge,s=r.loading,m=(0,Ye.g)(null==i?void 0:i.collection),c=m.viewerEdge,u=m.loading,p=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,a.a)(qt,{variables:{topicId:n},ssr:!1,skip:!n}),i=t.loading,o=t.error,l=t.data;return i?{loading:i}:o?{error:o}:{viewerEdge:null==l||null===(e=l.topic)||void 0===e?void 0:e.viewerEdge}}(null==i||null===(n=i.primaryTopic)||void 0===n?void 0:n.id),v=p.viewerEdge,g=p.loading,f=u||s||g;(0,Kt.e)({data:{canonicalUrl:l&&null!=i&&null!==(t=i.collection)&&void 0!==t&&t.domain?(0,I.o2)(o,l):void 0,creatorViewerEdge:d,collectionViewerEdge:c,post:i||void 0,topicViewerEdge:v},loading:!l||f||!(null!=i&&i.isPublished),show:!0})})({post:n}),function(e){var n=e.post,t=e.clientViewedContext,i=e.overrideCommonData,a=void 0===i?{}:i,l=e.postViewerEdgeLoading,r=(0,xn.A)(),d=(0,li.r)(),s=d.loading,m=d.viewerId,c=m&&(0,ri.Q)(m),u=(null==n?void 0:n.collection)||{},p=u.id,k=u.slug,v=((null==n?void 0:n.content)||{}).validatedShareKey,g=null==n?void 0:n.id;o.useEffect((function(){!s&&g&&m&&!l&&(null!=n&&n.isPublished?(c||(n.isLocked?(0,di.yB)():(0,di.B8)()),r.event("post.clientViewed",{postId:g,collectionId:p,collectionSlug:k,context:t,isFriendLink:!!v,source:"post_page",isTruncated:n.content.isLockedPreviewOnly,postShareKey:v},a)):r.event("post.draftViewed",{postId:g}),c||function(e){oi(Jt,e,Date.now())}(g))}),[g,m,s,l,v])}({post:n,clientViewedContext:i,overrideCommonData:r,postViewerEdgeLoading:d})}({post:n,postViewerEdgeLoading:s}),function(e){var n=(0,ze.H)().value,t=(0,nt.D)(tt,{variables:{postId:e.id}}),i=(0,We.Z)(t,2),a=i[0],l=i[1].called;o.useEffect((function(){e.isPublished||null==n||!n.id||l||a()}),[n])}(n),function(){var e=(0,tn.w)(),n=(0,o.useState)(!0),t=(0,We.Z)(n,2),i=t[0],a=t[1],l=(0,ze.H)().value,r=(0,k.p9)((function(e){return e.session.xsrf})),d=(0,p.PM)(),s=(0,C.P7)(d||"").name;(0,o.useEffect)((function(){function e(){return(e=(0,gi.Z)(Xi().mark((function e(){var n;return Xi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,di.vA)(l.id,r);case 4:n=e.sent,a(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[null==l?void 0:l.id,r]),(0,o.useEffect)((function(){var n;null!=l&&null!==(n=l.viewerEdge)&&void 0!==n&&n.createdAt&&(new Date).getTime()-l.viewerEdge.createdAt>5*qi.uD&&!i&&"login"===s&&(e({toastStyle:"SIGN_IN_CONFIRMATION",duration:"FOREVER"}),a(!0),(0,di.oy)(l.id,r))}),[l,i,e,s,r])}(),function(e){var n,t,i,r,d=function(){var e,n=(0,l.TH)().hash;if(n.startsWith("#id_token"))return{};var t=null==n||null===(e=n.replace("#",""))||void 0===e?void 0:e.split("-"),i=(0,We.Z)(t,2);return{activeGrafId:i[0],activeNoteId:i[1]}}(),s=d.activeGrafId,m=d.activeNoteId,c=(0,k.v9)((function(e){return e.navigation.referrer})),u=(0,p.G1)(),v=(0,p.PM)(),g=(0,a.a)(mi,{variables:{postId:null==e?void 0:e.id,postMeteringOptions:{referrer:c,sk:u,source:v}},ssr:!1,skip:!m}),f=g.loading,S=g.error,h=g.data,N=(null!=h?h:{}).post,y=null==N||null===(n=N.privateNotes)||void 0===n?void 0:n.find((function(e){return(null==e?void 0:e.id)===m})),x=null!==(t=null==N||null===(i=N.content)||void 0===i||null===(r=i.bodyModel)||void 0===r?void 0:r.paragraphs)&&void 0!==t?t:[],b=new Set(x.map((function(e){return e.name})).filter(si.bb)),E=!!y&&!!s&&b.has(s),F=!(f||S||!m||E),w=(0,He.I0)();(0,o.useEffect)((function(){F&&w((0,tn.Dx)({duration:"NEXTPAGE",message:"The note you're looking for was deleted."}))}),[F,w,tn.Dx])}(n),o.createElement(M.x,null,o.createElement(C.cW,{source:{dimension:"post_top_nav_upsell"}},o.createElement(gn.T,{isPostLocked:!!v})),o.createElement(_i,{post:n},o.createElement(Nt,{post:n}),o.createElement(Ki,null),o.createElement(Vi.L,{post:n,user:f,forceLoad:(null==u?void 0:u.id)===(null==f?void 0:f.id)}),o.createElement(M.x,{marginBottom:{xs:"4px",sm:"4px",md:"68px",lg:"68px",xl:"68px"}},o.createElement(D.P,{size:"app"},N&&o.createElement(M.x,{marginTop:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"},marginBottom:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"}},o.createElement(it.h,{post:n}))),o.createElement("article",y,o.createElement(M.x,null,o.createElement(Bi,{post:n},o.createElement(M.x,null,o.createElement(yt.b,{isAuroraPostPageEnabled:!0,post:n,ref:c,richTextStyle:"FULL_PAGE",postBodyInserts:h}))))),o.createElement(D.P,{size:"app"},o.createElement(et,{post:n}))),o.createElement($a,{post:n,postIsLocked:!!v}),!S&&o.createElement(Yt,{post:n}),o.createElement(Ue,{isDockingEnabled:!1,undockedBackgroundColor:"BACKGROUND",maxWidthSize:"app",marginBottom:{xs:"80px",sm:"80px",md:"88px",lg:"88px",xl:"88px"}},o.createElement(Tt,{post:n,socialPopoverPosition:"end"}))),"Catalog"===(null==r?void 0:r.__typename)&&o.createElement(be,{currentPostId:n.id,catalog:r}),o.createElement(M.x,{backgroundColor:"BASE_LIGHT",paddingTop:{xs:"48px",sm:"48px",md:"72px",lg:"72px",xl:"72px"}},f&&o.createElement(o.Fragment,null,o.createElement(Na,{user:f,postId:n.id,collection:g}),o.createElement(X,{postId:n.id,authorCollectionRecircFeed:d,user:f,collection:g})),o.createElement(oa,{recirc:t,postCatalogRecirc:i}),o.createElement(Z.y,{lg:!0,xl:!0},o.createElement(A.E,{marginTop:"72px",borderColor:m.colorTokens.border.neutral.tertiary.base}),o.createElement(D.P,{size:"app"},o.createElement(vn.q,{padding:"24px 0",spacing:"L",detailScale:"S"})))),o.createElement(kn,{post:n}))},no=t(82377),to=t(9970),io=t(57831),ao=t(1279),oo=t(84492),lo=t(84683),ro={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostAuthorInfo_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"mediumMemberAt"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherName_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherFollowersCount_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherDescription_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"FollowAndSubscribeButtons_user"}}]}}].concat((0,N.Z)(we.H.definitions),(0,N.Z)(to.g.definitions),(0,N.Z)(io.h.definitions),(0,N.Z)(ao.m.definitions),(0,N.Z)(oo.i.definitions))},so={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostAuthorInfo_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"editors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionLinkWithPopover_collection"}}]}}].concat((0,N.Z)(lo.d.definitions),(0,N.Z)(Pe.W.definitions))},mo=t(24176),co=t(55193),uo=t(98007),po={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RegWall_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"lockedSource"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_post"}}]}}].concat((0,N.Z)(uo.qU.definitions))},ko={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Wall_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}}]}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"isMarkedPaywallOnly"}},{kind:"FragmentSpread",name:{kind:"Name",value:"RegWall_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Paywall_post"}}]}}].concat((0,N.Z)(po.definitions),(0,N.Z)(Vn.definitions))},vo=t(36299),go=t(62236),fo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ThreadedResponsesSidebarContent_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isEditor"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ThreadedReplies_post"}}]}}].concat((0,N.Z)(go.e9.definitions))},So={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ThreadedResponsesSidebar_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ThreadedResponsesSidebarContent_post"}}]}}].concat((0,N.Z)(fo.definitions))},ho={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"WithResponsesSidebar_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ThreadedResponsesSidebar_post"}}]}}].concat((0,N.Z)(So.definitions))},No=t(31228),yo=t(32934),xo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostJsonLd_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"logo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostJsonLd_logo"}}]}}]}}].concat((0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostJsonLd_logo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}}]}}]))},bo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostJsonLd_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostJsonLd_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}}]}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"isShortform"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getTitleForPost_post"}}]}}].concat((0,N.Z)(E.$m.definitions),(0,N.Z)(xo.definitions),(0,N.Z)(yo.bq.definitions))},Eo=t(97849),Fo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostMetadata_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"socialTitle"}},{kind:"Field",name:{kind:"Name",value:"socialDek"}},{kind:"Field",name:{kind:"Name",value:"noIndex"}},{kind:"Field",name:{kind:"Name",value:"canonicalUrl"}},{kind:"Field",name:{kind:"Name",value:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"metaDescription"}},{kind:"Field",name:{kind:"Name",value:"latestPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"isLimitedState"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"twitterScreenName"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"twitterUsername"}},{kind:"Field",name:{kind:"Name",value:"facebookPageId"}}]}},{kind:"Field",name:{kind:"Name",value:"previewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}},{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"alt"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}},{kind:"Field",name:{kind:"Name",value:"isShortform"}},{kind:"Field",name:{kind:"Name",value:"noIndex"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostJsonLd_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"postMetaDescription_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"shortformPostMetaDescription_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"shouldIndexPost_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"shortformPostTitle_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getTitleDetails_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getTitleForPost_post"}}]}}].concat((0,N.Z)(E.$m.definitions),(0,N.Z)(bo.definitions),(0,N.Z)(Eo.i.definitions),(0,N.Z)(Eo.m.definitions),(0,N.Z)(yo.HF.definitions),(0,N.Z)(yo.Pz.definitions),(0,N.Z)(yo.dm.definitions),(0,N.Z)(yo.bq.definitions))},wo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostFooterInfo_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"license"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostFooterTags_post"}}]}}].concat((0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostFooterTags_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"displayTitle"}},{kind:"Field",name:{kind:"Name",value:"normalizedTagSlug"}}]}}]}}]))},Po=t(22330),_o=t(78693),To={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AuthorByline_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserFollowButton_user"}}]}}].concat((0,N.Z)(we.H.definitions),(0,N.Z)(E.$m.definitions),(0,N.Z)(Ee.O.definitions),(0,N.Z)(_o.s.definitions))},Do=t(17828),Co={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionByline_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"shouldShowPublishedInStatus_post"}}]}}].concat((0,N.Z)(Do.w.definitions))},Io=t(62549),Oo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostBylineDescription_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isNewsletter"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionLinkWithPopover_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionByline_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"DraftStatus_post"}}]}}].concat((0,N.Z)(Pe.W.definitions),(0,N.Z)(Co.definitions),(0,N.Z)(Io.t.definitions))},Ro=t(93403),Lo=t(8045),Ao={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostByline_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AuthorByline_user"}}]}}].concat((0,N.Z)(To.definitions))},Mo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostByline_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"allowResponses"}},{kind:"Field",name:{kind:"Name",value:"isLimitedState"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostBylineDescription_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVote_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BookmarkButton_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MaybeTextToSpeech_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostSharePopover_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenuButton_post"}}]}}].concat((0,N.Z)(Oo.definitions),(0,N.Z)(ba.x.definitions),(0,N.Z)(Ro.z.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"MaybeTextToSpeech_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"detectedLanguage"}},{kind:"Field",name:{kind:"Name",value:"wordCount"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}}]}}]),(0,N.Z)(Lo.G.definitions),(0,N.Z)(Ea.l.definitions))},Zo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPageMeter_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"FriendLinkMeter_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MeterClickable_post"}}]}}].concat((0,N.Z)(P.definitions),(0,N.Z)(b.definitions))},Bo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostBodyInserts_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OverlappingAvatars_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OverlappingAvatars_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostByline_user"}}]}},{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"isShortform"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}},{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostBodyInserts_paragraph"}}]}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startIndex"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostByline_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useShouldShowPostPageMeter_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPageMeter_post"}}]}}].concat((0,N.Z)(Po.RD.definitions),(0,N.Z)(Po.Ki.definitions),(0,N.Z)(Ao.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostBodyInserts_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]),(0,N.Z)(Mo.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"useShouldShowPostPageMeter_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"lockedSource"}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}},{kind:"Field",name:{kind:"Name",value:"validatedShareKey"}}]}}]}}]),(0,N.Z)(Zo.definitions))},Vo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"usePostBranchView_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"domain"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"buildBranchViewData_post"}}]}}].concat((0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"buildBranchViewData_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"layerCake"}},{kind:"Field",name:{kind:"Name",value:"primaryTopic"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}}]}}]}}]))},jo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"usePostTracking_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"usePostClientViewedReporter_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostBranchView_post"}}]}}].concat((0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"usePostClientViewedReporter_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"validatedShareKey"}},{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}}]}}]}}]),(0,N.Z)(Vo.definitions))},Uo=t(56785),Wo={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PostPageQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}},type:{kind:"NamedType",name:{kind:"Name",value:"PostMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostResultError_postResult"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"googleAnalyticsId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostAuthorInfo_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromAuthorAndMaybePub_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MastodonVerificationLink_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SuspendedBannerLoader_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostAuthorInfo_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromAuthorAndMaybePub_user"}}]}},{kind:"Field",name:{kind:"Name",value:"inResponseToEntityType"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Wall_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"InteractivePostBody_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"WithResponsesSidebar_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostCanonicalizer_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostFooterActionsBar_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostReadTracker_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostMetadata_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SuspendedBannerLoader_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostFooterInfo_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostBodyInserts_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostNoteMissingToast_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostTracking_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"InResponseToEntityPreview_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPublishedDialog_prerequisite_post"}}]}}]}}]}}].concat((0,N.Z)(no.i.definitions),(0,N.Z)(so.definitions),(0,N.Z)(te.definitions),(0,N.Z)(mo.G.definitions),(0,N.Z)(co.v.definitions),(0,N.Z)(ro.definitions),(0,N.Z)(ne.definitions),(0,N.Z)(ko.definitions),(0,N.Z)(vo.Uw.definitions),(0,N.Z)(ho.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostCanonicalizer_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mediumUrl"}}]}}]),(0,N.Z)(No.R.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostReadTracker_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"sequence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sequenceId"}}]}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLockedPreviewOnly"}}]}}]}}]),(0,N.Z)(Fo.definitions),(0,N.Z)(co.Q.definitions),(0,N.Z)(wo.definitions),(0,N.Z)(Bo.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostNoteMissingToast_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]),(0,N.Z)(jo.definitions),(0,N.Z)(Uo.V.definitions),(0,N.Z)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPublishedDialog_prerequisite_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]))},Go=t(60600),Ho=function(){var e=(0,ce.s)()||H.j.lg,n=e===H.j.xs||e===H.j.sm?2:3;return o.createElement(M.x,{height:"100vh"},o.createElement(M.x,{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"16px",width:"100%",marginTop:"48px"},o.createElement(M.x,{width:"80%",height:{xs:"40px",sm:"40px",md:"48px",lg:"48px",xl:"48px"},marginBottom:"24px",backgroundColor:"BASE_NORMAL"}),o.createElement(M.x,{display:"flex",marginBottom:{xs:"44px",sm:"44px",md:"52px",lg:"52px",xl:"52px"}},o.createElement(M.x,{height:"44px",width:"44px",backgroundColor:"BASE_NORMAL",borderRadius:"50%",marginRight:"12px"}),o.createElement(M.x,{margin:"auto 0"},o.createElement(M.x,{height:"16px",marginBottom:"4px",width:"120px",backgroundColor:"BASE_NORMAL"}),o.createElement(M.x,{height:"16px",width:"80px",backgroundColor:"BASE_NORMAL"}))),Array.from(Array(n)).map((function(e,n){return o.createElement(M.x,{key:n,width:"100%",marginBottom:{xs:"32px",sm:"32px",md:"48px",lg:"48px",xl:"48px"}},o.createElement(M.x,{width:"96%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(M.x,{width:"98%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(M.x,{width:"100%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(M.x,{width:"98%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(M.x,{width:"81%",height:"24px",backgroundColor:"BASE_NORMAL"}))}))))},zo=function(){return o.createElement(Go.f,{itemPlaceholder:Ho,numPlaceholders:1})};function Yo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ko(e){for(var n=1;n{"use strict";t.d(n,{G:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MastodonVerificationLink_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"linkedAccounts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mastodon"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"username"}}]}}]}}]}}]}},90732:(e,n,t)=>{"use strict";t.d(n,{$:()=>o});var i=t(67294),a=t(77355),o=function(e){var n,t,o,l,r=e.user,d=null===(n=r.linkedAccounts)||void 0===n||null===(t=n.mastodon)||void 0===t?void 0:t.domain,s=null===(o=r.linkedAccounts)||void 0===o||null===(l=o.mastodon)||void 0===l?void 0:l.username;return d&&s?i.createElement(a.x,{display:"none"},i.createElement("a",{rel:"me",href:"https://".concat(d,"/@").concat(s)},"Mastodon")):null}},1279:(e,n,t)=>{"use strict";t.d(n,{m:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherDescription_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bio"}}]}}]}}]}},937:(e,n,t)=>{"use strict";t.d(n,{y:()=>r});var i=t(67294),a=t(14294),o=t(38882),l=t(87691),r=function(e){var n=e.publisher,t=e.color,r="Collection"===n.__typename?n.description:n.bio;return r?i.createElement(l.F,{scale:"M",color:t},i.createElement(o.c.Provider,{value:!0},i.createElement(a.P,{wrapLinks:!0},r))):null}},74419:(e,n,t)=>{"use strict";t.d(n,{i:()=>l});var i=t(67294),a=t(20113),o=t(14646),l=function(e){var n=e.publisher,t=e.scale,l=void 0===t?"XS":t,r=e.prefix,d=(0,o.I)();return n.name?i.createElement(a.X6,{playwrightClassName:"pw-author-name",scale:l},i.createElement("span",{className:d({wordBreak:"break-word"})},r,n.name)):null}},80350:(e,n,t)=>{"use strict";t.d(n,{t:()=>s,e:()=>m});var i=t(67294),a=t(68427),o=t(84739),l=t(93310),r=t(87691),d=t(21372),s=function(e){var n,t,i=null!==(n="Collection"===e.__typename?e.subscriberCount:null===(t=e.socialStats)||void 0===t?void 0:t.followerCount)&&void 0!==n?n:0;return{followerCount:i,isFollowerCountVisible:i>0}},m=function(e){var n=e.disableLink,t=void 0!==n&&n,m=e.scale,c=void 0===m?"L":m,u=e.publisher,p=e.color,k=e.linkStyle,v=void 0===k?"SUBTLE":k,g=e.inline,f=e.showWhenZero,S=(0,a.B)(),h=(0,o.I)(),N=s(u),y=N.followerCount,x=N.isFollowerCountVisible;if(!f&&!x)return null;var b="".concat((0,d.pY)(y)," Follower").concat(1===y?"":"s");return i.createElement(r.F,{playwrightClassName:"pw-follower-count",tag:"span",scale:c,color:p},y>0&&!t?i.createElement(l.r,{href:"".concat("Collection"===u.__typename?S(u):h(u),"/followers"),linkStyle:v,inline:g},b):b)}},22330:(e,n,t)=>{"use strict";t.d(n,{RD:()=>o,Ki:()=>l,lt:()=>r});var i=t(87329),a=t(68216),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlappingAvatars_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlappingAvatars_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}].concat((0,i.Z)(a.$m.definitions))},r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlappingAvatars_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatarImageId"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OverlappingAvatars_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OverlappingAvatars_user"}}]}}]}}].concat((0,i.Z)(o.definitions),(0,i.Z)(l.definitions))}},7834:(e,n,t)=>{"use strict";t.d(n,{b:()=>y});var i=t(22122),a=t(34699),o=t(38460),l=t(67294),r=t(38882),d=t(75119),s=t(58730),m=t(10374),c=t(90504),u=t(83363),p=t(96156),k=t(39202);function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n{"use strict";t.d(n,{A:()=>s});var i=t(87329),a=t(52831),o=t(76075),l=t(33960),r=t(19830),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PagedThreadedPostResponses_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoryResponse_threadedStoryResponse_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SimpleResponse_threadedSimpleResponse_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SimpleResponse_threadedSimpleResponse_defaultPostResponses"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ResponseHeader_post"}}]}}].concat((0,i.Z)(o.tt.definitions),(0,i.Z)(l.Df.definitions),(0,i.Z)(l.K5.definitions),(0,i.Z)(r.FN.definitions))},s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PagedThreadedPostResponsesQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postResponsesPaging"}},type:{kind:"NamedType",name:{kind:"Name",value:"PagingOptions"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortType"}},type:{kind:"NamedType",name:{kind:"Name",value:"ResponseSortType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CloseDiscussion_post"}},{kind:"Field",name:{kind:"Name",value:"responsesCount"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"responseRootPost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"responseDepth"}}]}},{kind:"Field",name:{kind:"Name",value:"threadedPostResponses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"Variable",name:{kind:"Name",value:"postResponsesPaging"}}},{kind:"Argument",name:{kind:"Name",value:"sortType"},value:{kind:"Variable",name:{kind:"Name",value:"sortType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"autoExpandedPostIds"}},{kind:"Field",name:{kind:"Name",value:"pagingInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"next"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"}},{kind:"Field",name:{kind:"Name",value:"to"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PagedThreadedPostResponses_post"}}]}}]}}]}}]}}].concat((0,i.Z)(a.Z.definitions),(0,i.Z)(d.definitions))}},52831:(e,n,t)=>{"use strict";t.d(n,{Z:()=>a,EI:()=>o,Fe:()=>l,eS:()=>r});var i=t(87329),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CloseDiscussion_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"responsesLocked"}},{kind:"Field",name:{kind:"Name",value:"isLockedResponse"}}]}}]},o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchPostResponsesLockedQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CloseDiscussion_post"}}]}}]}}].concat((0,i.Z)(a.definitions))},l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LockResponsesOnPostMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lockResponsesOnPost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postId"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}]}]}}]},r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnlockResponsesOnPostMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unlockResponsesOnPost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postId"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}]}]}}]}},76412:(e,n,t)=>{"use strict";t.d(n,{I:()=>v});var i=t(34699),a=t(15303),o=t(67294),l=t(82186),r=t(80745),d=t(14646),s=t(75221),m=t(96156),c=t(97489),u=function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"white";return function(a){var o=n?"0.6s":"0s";return(0,m.Z)({width:t,position:"fixed",zIndex:520,backgroundColor:i,left:"100%",top:"0px",height:"100%",boxSizing:"border-box",overflow:"auto","-ms-overflow-style":"-ms-autohiding-scrollbar",boxShadow:"rgba(0, 0, 0, 0.15) 0px 4px 12px",opacity:1,transform:e?"translateX(-".concat(t,")"):"translateX(0px)",transition:"transform ".concat(o," cubic-bezier(0.23, 1, 0.32, 1) 0s, opacity ").concat(o," cubic-bezier(0.23, 1, 0.32, 1) 0s"),visibility:e?"visible":"hidden"},(0,c.sm)(a),{left:0,width:"100%",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",transform:e?"translateY(30px)":"translateY(100%)","-webkit-overflow-scrolling":"touch"})}},p=function(e){var n={top:"0px",left:"0px",width:"100%",height:"100%",position:"fixed",backgroundColor:"rgba(0, 0, 0, 0.08)",zIndex:510,cursor:"pointer",opacity:0,pointerEvents:"none"};return e&&(n.transition="opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0s"),n},k={"@media print":{display:"none"}},v=function(e){var n=e.cleanupSidebar,t=e.children,m=e.isResponsesSidebarVisible,c=e.pagingInfoNext,v=e.isFetchingNextSetOfResponses,g=e.setIsFetching,f=e.fetchMoreWithArguments,S=e.initialSidebarRender,h=e.sidebarRef,N=(0,d.I)(),y=o.useRef(null),x=o.useState(null),b=(0,i.Z)(x,2),E=b[0],F=b[1],w=o.useState(s.Et.NOT_DISTRIBUTED),P=(0,i.Z)(w,2),_=P[0],T=P[1];o.useEffect((function(){var e=y.current;if(e&&m){if(!E){var n=(0,a.v)(e,{initialFocus:e,fallbackFocus:e,preventScroll:!0,allowOutsideClick:function(e){var n;return!(null===(n=e.target)||void 0===n||!n.closest("reach-portal"))}});n.activate(),F(n)}return function(){E&&(E.deactivate(),F(null))}}}),[y.current,E,F,m]);var D,C=o.useCallback((function(){T(s.Et.NOT_DISTRIBUTED),n()}),[n]);return o.createElement("div",{className:N(k),role:"dialog","aria-modal":"true",ref:y,tabIndex:-1},o.createElement("div",{className:N([p(S),(D=m,D?{opacity:1,pointerEvents:"all"}:{})]),onClick:C,onKeyUp:function(e){13===e.keyCode&&C()},"aria-hidden":!m,role:"presentation"}),o.createElement("div",{className:N([u(m,S,l.ZR)]),"aria-hidden":!m,onScroll:function(e){return(0,r.vL)(e,c,v,g,f)},ref:h},t({responseDistribution:_,setResponseDistribution:T,closeSidebar:C})))}},16793:(e,n,t)=>{"use strict";t.d(n,{Z:()=>i});const i=t(3863).N.Consumer}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/PostPage.MainContent.793c1f2c.chunk.js.map