3 lines
187 KiB
JavaScript
3 lines
187 KiB
JavaScript
/*! For license information please see PostPage.MainContent.6aeac6a8.chunk.js.LICENSE.txt */
|
||
(self.webpackChunklite=self.webpackChunklite||[]).push([[5304],{50014:(e,n,i)=>{var t=i(15389),a=i(55765);e.exports=function(e,n){return e&&e.length?a(e,t(n,2)):[]}},65507:(e,n,i)=>{"use strict";i.d(n,{r:()=>l});var t=i(96540),a=i(99731),o=i(52290),l=function(e){var n=e.children,i=e.href,l=e.width,r=void 0===l?{xs:"100%",sm:"100%",md:"min-width",lg:"min-width",xl:"min-width"}:l;return t.createElement(a.$n,{href:i,buttonStyle:"SUBTLE",width:r},t.createElement(o.a,{textAlign:"center"},n))}},41679:(e,n,i)=>{"use strict";i.r(n),i.d(n,{MainContent:()=>fl,useLoader:()=>gl});var t=i(64467),a=i(39181),o=i(96540),l=i(54239),r=i(26365),d=i(51622),s=i(42680),m=i(69699),c=i(9942),u=i(50684),p=i(39160),k=i(79959);function v(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function g(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?v(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var f=["blog.coinbase.com","moody-pub.medium.fail"],S=function(e){var n,i=e.post.mediumUrl,t=e.matchedPath,a=e.children,l=(0,p.d4)((function(e){return e.navigation.currentHash})),r=(0,u.pE)("postPublishedType"),s=(0,u.pE)("responsesOpen"),m=(0,u.MW)(),v=(0,u.WZ)(),S=(0,p.d4)((function(e){return e.navigation.host})),N=(0,k.GA)();if(!i||N)return a;try{n=new URL(i)}catch(e){return a}var h=g(g(g(g({},m?{source:m}:{}),v?{sk:v}:{}),r?{postPublishedType:r}:{}),s?{responsesOpen:s}:{});if(S!==n.host)return f.indexOf(S)>-1?o.createElement(d.u,null):o.createElement(c.r,{to:(0,k.ST)(i,h,l),replace:!0});var y=n.pathname+n.search;return y&&t!==decodeURIComponent(y)?o.createElement(c.r,{to:(0,k.ST)(y,h,l),replace:!0}):a},N=i(45458),h=i(81666),y=i(50112),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.A)(y.f.definitions))},F=i(59265),E={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.A)(F.v0.definitions))},x={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.A)(E.definitions))},w={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.A)(x.definitions),(0,N.A)(E.definitions),(0,N.A)(b.definitions))},A={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.A)(h.Rq.definitions),(0,N.A)(x.definitions))},_=function(){var e,n,i,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=(0,p.d4)((function(e){return e.navigation.referrer})),d=null!==(e=(0,u.WZ)())&&void 0!==e?e:void 0,s={referrer:r,sk:d,source:null!==(n=(0,u.MW)())&&void 0!==n?n:void 0},m=!l&&!d,c=(0,a.I)(A,{variables:{postId:o,postMeteringOptions:s},ssr:!1,skip:!o||m}),k=c.loading,v=c.error,g=c.data,f=null==g||null===(i=g.post)||void 0===i||null===(t=i.viewerEdge)||void 0===t?void 0:t.fullContent;return k?{loading:k}:v?{error:v}:{content:f}},P=i(28072),C=i(49287),T=i(46879),D=i(35642),I=i(60213),R=i(64122),O=i(88726),L=i(52290),M=i(85050),B=i(56942),V=i(20239),j=i(18302),U=i(90280),W=i(615),G=i(20621),z=i(27049),Z=function(e){return e.filter((function(e){return!(null==e||!e.feedId||null==e||!e.post)}))},H=function(e){var n=e.item,i=n.feedId,t=n.post,a=e.index,l=e.source,r=e.lastIndex,d=(0,V.D)(),s=(0,p.d4)((function(e){return e.client.viewerIsBot}));return o.createElement(W.E,{size:{xs:12,sm:12,md:6,lg:6,xl:6}},o.createElement(L.a,{paddingBottom:{xs:"32px",sm:"32px",md:"56px",lg:"56px",xl:"56px"},height:"100%"},o.createElement(C.Ne,{extendSource:!0,source:{name:l,index:a,feedId:s?void 0:i}},o.createElement(j.h,{index:a,post:t,scale:"S",aspectRatio:U.l8.TwoToOne,lastIndex:r,dividerBreakpoints:[z.i.xs,z.i.sm],dividerColor:d.colorTokens.border.neutral.tertiary.base,miroImgFetchedWidth:679}))))},Y=function(e){var n=e.items,i=e.source;return o.createElement(G.E,{alignItems:"stretch"},n.map((function(e,t){return o.createElement(H,{key:e.post.id,item:e,index:t,source:i,lastIndex:n.length-1})})))},q=i(65507),K=function(e){var n=e.authorCollectionRecircFeed,i=e.user,t=e.collection,a=(0,V.D)(),l=(null==n?void 0:n.items)||[],r=Z(l),d=(0,R.f)(i);if(null==r||!r.length)return null;var s=1===(null==r?void 0:r.length);return o.createElement(o.Fragment,null,o.createElement(P.P,{size:"app"},o.createElement(L.a,{marginTop:"40px",marginBottom:"32px"},o.createElement(B.DZ,{scale:"XS"},"More from ",i.name,t&&" and ".concat(t.name))),s?o.createElement(o.Fragment,null,o.createElement(M.V,{xs:!0,sm:!0},o.createElement(Y,{items:r,source:"author_recirc"})),o.createElement(M.V,{md:!0,lg:!0,xl:!0},o.createElement(D.$,{post:r[0].post,scale:"L",index:0,lastIndex:0,dividerColor:a.colorTokens.border.neutral.tertiary.base}))):o.createElement(Y,{items:r,source:"author_recirc"}),o.createElement(O.i,{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(L.a,{display:"flex",flexDirection:{xs:"column",sm:"column",md:"row",lg:"row",xl:"row"}},o.createElement(q.r,{href:d},"See all from ",null==i?void 0:i.name),t&&o.createElement(Q,{collection:t}))),o.createElement(O.i,{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,i=(0,I.z)(n);return o.createElement(L.a,{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.r,{href:i},"See all from ",null==n?void 0:n.name))},X=i(18591),$=i(8075),J={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.A)(X.e.definitions),(0,N.A)($.Y.definitions))},ee={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.A)(F.v0.definitions))},ne={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.A)(F.dl.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.A)(J.definitions))},te=i(46225),ae=i(7367),oe=i(77206),le=i(86527),re=i(36557),de=i(12378),se=i(15371),me=i(46963),ce=i(39204),ue=i(54204),pe=i(83812),ke=i(67459),ve=i(66356),ge=i(5562),fe=i(86975),Se=i(39410),Ne=i(21771),he=(0,o.forwardRef)((function(e,n){var i=e.post,t=(0,pe._)(),a=i.collection,l=i.creator,r=i.title,d=i.isLocked,s=i.createdAt,m=(0,ke.J)(i);return o.createElement(L.a,{marginRight:"16px",flexShrink:"0",ref:n},o.createElement(Ne.V,{post:i,presentationContext:"POST_PREVIEW",shouldReportClientViewed:!1,isFullPost:!1},o.createElement(fe.D,{href:m},o.createElement(L.a,{borderRadius:"4px",border:"neutral.primary",width:"240px",height:"148px",padding:"24px",display:"flex",flexDirection:"column"},o.createElement(L.a,{flexGrow:"1",flexBasis:"0%"},l&&o.createElement(o.Fragment,null,t?o.createElement(ue.O,{post:i,marginBottom:"8px",trackingV2:!0}):o.createElement(L.a,{display:"flex",alignItems:"center",marginBottom:"8px"},o.createElement(oe.V,{author:l,collection:a,includeAvatar:!0,includeVerifiedAuthorBadge:!0}))),o.createElement(Se.hE,{scale:"XS",clamp:2},r)),o.createElement(L.a,{display:"flex",alignItems:"center"},d&&o.createElement(o.Fragment,null,o.createElement(ce.F,{post:i,hideLabelDesktop:!0}),o.createElement(ge.d,{margin:"0 8px"})),s&&o.createElement(re.kZ,{scale:"S"},o.createElement(ve.c,{timestamp:s,isShorthand:!0})))))))})),ye=function(e){var n,i,t=e.catalog,a=e.currentPostId,l=(0,V.D)(),r=(0,p.d4)((function(e){return e.config.authDomain})),d=(0,me.U)(),s=(0,o.useRef)(null),m=d===z.i.xs||d===z.i.sm?300:600,c=(0,T.n1u)(t,r),u=null==t||null===(n=t.itemsConnection)||void 0===n||null===(i=n.items)||void 0===i?void 0:i.map((function(e){var n;return"Post"===(null===(n=e.entity)||void 0===n?void 0:n.__typename)?e.entity:void 0})).filter((function(e){return!!e&&e.id!==a})).slice(0,10);return u.length?o.createElement(C.Ne,{extendSource:!0,source:{name:"list_recirc",catalogId:t.id}},o.createElement(L.a,{marginBottom:{xs:"40px",sm:"40px",md:"52px",lg:"52px",xl:"52px"}},o.createElement(O.i,{borderColor:l.colorTokens.border.neutral.primary.base,marginBottom:{xs:"30px",sm:"30px",md:"50px",lg:"50px",xl:"50px"}}),o.createElement(P.P,{size:"app"},o.createElement(B.DZ,{scale:"XS"},o.createElement(le.N,{href:c},'More from the list: "',(0,se.DX)(t),'"')),o.createElement(L.a,{display:"flex",marginTop:"8px",alignItems:"center"},o.createElement(L.a,{flexShrink:"0",whiteSpace:"nowrap",marginRight:"4px"},o.createElement(re.kZ,{scale:"S"},"Curated by")),o.createElement(oe.V,{author:t.creator}))),o.createElement(L.a,{margin:"24px 0",position:"relative"},o.createElement(ae.x5,{firstItemRef:s,scrollPixels:m,arrowPadding:"8px"},o.createElement(L.a,{flexShrink:"0",width:"calc(50% - ".concat(te.g_/2,"px)"),xs:{width:(0,de.c)(te.mW)},sm:{width:(0,de.c)(te.mW)}}),u.map((function(e,n){return o.createElement(he,{key:"".concat(e.id,"-").concat(n),post:e,ref:0===n?s:null})})))),o.createElement(P.P,{size:"app"},o.createElement(re.kZ,{scale:"S",color:"ACCENT"},o.createElement(le.N,{href:c},"View list"))))):null},be=i(23445),Fe=i(77485),Ee=i(55918),xe=i(3531),we=i(25703),Ae=i(4424),_e=i(22071),Pe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromListPostCard_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}}].concat((0,N.A)(Fe.R.definitions),(0,N.A)(F.v0.definitions),(0,N.A)(be.pB.definitions),(0,N.A)(Ee.s.definitions))},Ce={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromListPostCard_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:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromListPostCard_user"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionLinkWithPopover_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostUrl_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Star_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewByLine_post"}}]}}].concat((0,N.A)(Pe.definitions),(0,N.A)(xe.v.definitions),(0,N.A)(we.c.definitions),(0,N.A)(Ae.c.definitions),(0,N.A)(_e.T.definitions))},Te={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromList_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"catalogUrl_catalog"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}}]}},{kind:"Field",name:{kind:"Name",value:"itemsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pagingOptions"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogItemId"}},{kind:"Field",name:{kind:"Name",value:"entity"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromListPostCard_post"}}]}}]}}]}}]}}].concat((0,N.A)(F.Rm.definitions),(0,N.A)(be.pB.definitions),(0,N.A)(Ce.definitions))},De={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MoreFromListQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromList_catalog"}}]}}]}}]}}].concat((0,N.A)(Te.definitions))},Ie=i(1422),Re={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromMedium_rexRecircResult"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RexRecircResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RexRecircItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"feedId"}},{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GridPostPreview_post"}}]}}]}}]}}]}}].concat((0,N.A)(X.e.definitions))},Oe={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MoreFromMedium_catalogsConnection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CatalogsConnection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogPreview_catalog"}}]}}]}}].concat((0,N.A)(Ie.I.definitions))},Le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MoreFromMediumRecircQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recirc"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"6"}}]}},{kind:"Argument",name:{kind:"Name",value:"postId"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromMedium_rexRecircResult"}}]}}]}}].concat((0,N.A)(Re.definitions))},Me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MoreFromMediumRecommendedListsQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postCatalogRecirc"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postId"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}},{kind:"Argument",name:{kind:"Name",value:"pagingOptions"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"4"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoreFromMedium_catalogsConnection"}}]}}]}}].concat((0,N.A)(Oe.definitions))},Be=i(10517),Ve=i(7066),je=i(68436),Ue=function(e){var n=e.isDockingEnabled,i=void 0!==n&&n,t=e.undockedBackgroundColor,a=e.maxWidthSize,l=void 0===a?"inset":a,r=e.children,d=e.marginBottom,s=void 0===d?{xs:"10px",sm:"10px",md:"26px",lg:"26px",xl:"26px"}:d,m=(0,je._)(i),c=m.dockRef,u=m.markerRef,p=m.isStuck;return o.createElement(o.Fragment,null,o.createElement(L.a,{ref:u}),o.createElement(L.a,{tag:"footer",ref:c,display:"flex",alignItems:"center",boxSizing:"content-box",height:(0,de.c)(Ve.S),maxHeight:(0,de.c)(Ve.S),zIndex:"1",position:i?{xs:"static",sm:"static",md:"sticky",lg:"sticky",xl:"sticky"}:"static",bottom:i?{xs:void 0,sm:void 0,md:"0",lg:"0",xl:"0"}:void 0,backgroundColor:p?"BACKGROUND":t,borderTop:p?{xs:"NONE",sm:"NONE",md:"neutral.primary",lg:"neutral.primary",xl:"neutral.primary"}:"NONE",marginBottom:s},o.createElement(L.a,{flexGrow:"1"},o.createElement(P.P,{size:l},r))))},We=i(80296),Ge=i(58168),ze=i(69733),Ze=i(27721),He=i(86329),Ye=i(1722),qe=i(79647),Ke=i(99731),Qe=i(3005),Xe=i(48198),$e=i(95107),Je=i(66305),en=i(42976),nn=i(91830),tn=i(18642),an=i(27507),on=i(48642),ln=i(56921),rn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PostPublishedDialogQuery"},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:"PostPublishedDialog_post"}}]}}]}}].concat((0,N.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPublishedDialog_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:"inResponseToPostResult"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"inResponseToCatalogResult"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"curationEligibleAt"}},{kind:"Field",name:{kind:"Name",value:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"isNewsletter"}},{kind:"Field",name:{kind:"Name",value:"isPublishToEmail"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"isMarkedPaywallOnly"}}]}}]))},dn=function(){return o.createElement(L.a,null,o.createElement(le.N,{inline:!0,linkStyle:"OBVIOUS",href:(0,T.BdX)()},"Learn more")," ","about what happens to your post when you publish.")};var sn,mn=function(e){var n=e.url,i=e.label,t=e.post,a=e.isFriendLink,l=void 0!==a&&a,r=e.testId,d={postId:null==t?void 0:t.id,source:"post_publish_dialog"};return o.createElement(ln.B,(0,Ge.A)({url:n},d),(function(e){return o.createElement(L.a,{marginBottom:"8px"},o.createElement(Ke.$n,{"data-testid":null!=r?r:"publishSuccessCopyLinkButton",buttonStyle:"SOCIAL",size:"LARGE",padding:Ke.Rc,width:Ke.Gk,onClick:function(e){return e}},o.createElement(L.a,{display:"flex",alignItems:"center",justifyContent:"space-between"},l?o.createElement(an.A,null):o.createElement(on.A,null),e?"Copied!":i,o.createElement(L.a,{height:"24px",width:"24px"}))))}))},cn=function(e){var n=e.post,i=e.isUnlisted,t=e.postPath;return o.createElement(L.a,{display:"flex",flexDirection:"column",alignItems:"center"},o.createElement(re.kZ,{color:"DARKER",scale:"L"},function(e){return e?"Share your story outside Medium.":"Share your story with the world."}(i)),o.createElement(L.a,{marginTop:"20px"},!i&&o.createElement(o.Fragment,null,o.createElement(qe._,{socialPlatform:"FACEBOOK",buttonStyle:"BUTTON_BRANDED",postId:n.id,testId:"publishSuccessShareFbButton"}),o.createElement(L.a,{marginBottom:"12px"}),o.createElement(qe._,{socialPlatform:"TWITTER",buttonStyle:"BUTTON_BRANDED",postId:n.id,testId:"publishSuccessShareTwitterButton"}),o.createElement(L.a,{marginBottom:"12px"}),o.createElement(qe._,{socialPlatform:"LINKEDIN",buttonStyle:"BUTTON_BRANDED",postId:n.id,testId:"publishSuccessShareLinkedinButton"}),o.createElement(L.a,{marginBottom:"12px"})),o.createElement(mn,{url:t,label:"Copy link",post:n})))},un=function(e){var n=e.viewerId,i=e.isVisible,t=e.hide,a=e.post,l=a.id,r=a.visibility,d=a.curationEligibleAt,s=a.mediumUrl,m=a.isNewsletter,c=a.isPublishToEmail,u=a.isMarkedPaywallOnly,v=a.creator,g=(0,Ye.h)(a),f=g.viewerEdge,S=g.loading,N="UNLISTED"===r,h=!!d,y=(null==f?void 0:f.creatorPartnerProgramEnrollmentStatus)===en.$X.ENROLLED,b=null==f?void 0:f.shareKey,F=(0,p.d4)((function(e){return e.config.productName})),E="Your story is published!";return c&&n===(null==v?void 0:v.id)?E="Your story has been published and sent!":m&&(E="Your newsletter is on its way!"),S?null:o.createElement(Qe.l,{isVisible:i,hide:t,withAnimation:!0,withCloseButton:!1},o.createElement(L.a,{background:tn.ON,borderRadius:"4px",boxShadow:"0 2px 10px ".concat((0,tn.qy)(.15)),position:"relative",textAlign:"center",width:{xs:"calc(100vw - 128px)",sm:"calc(100vw - 128px)",md:"600px",lg:"900px",xl:"900px"}},o.createElement(L.a,{padding:"56px",display:"flex",flexDirection:"column",justifyContent:"center",minHeight:"485px"},o.createElement(L.a,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},o.createElement($e.mz,{scale:"L",tag:"h3",testId:"publishSuccessTitleText"},E),o.createElement(L.a,{maxWidth:"520px",marginTop:"20px"},o.createElement(re.kZ,{color:"DARKER",scale:"L",testId:"publishSuccessBodyText"},function(e,n,i,t,a,l){return t?function(e,n){return e?"Your email will be delivered to your newsletter subscribers and editors, but will not appear publicly on ".concat(n,"."):o.createElement(o.Fragment,null,"Your subscribers and editors should have it soon. It’ll also show up on ",n," readers’ homepages and Digest emails depending on their interests."," ",o.createElement(le.N,{inline:!0,linkStyle:"OBVIOUS",href:"https://help.medium.com/hc/en-us/articles/115004682167-How-to-use-Newsletters"},"Learn more"))}(e,l):e?"Your unlisted story will not appear publicly on ".concat(l,", but you can still share it."):a?"You've chosen this story to be member-only. Anyone can see a short preview but only paying members can read the full story.":i?n?o.createElement(o.Fragment,null,"As a member of the Partner Program, you’ve chosen to make this story eligible to earn money by placing it behind the paywall.",o.createElement(dn,null)):o.createElement(o.Fragment,null,"You did not choose to paywall this story, so it won't be eligible to earn money.",o.createElement(dn,null)):o.createElement(o.Fragment,null,"This story isn’t currently eligible to earn money. To make this story eligible, join the"," ",l," Partner Program."," ",o.createElement(le.N,{inline:!0,linkStyle:"OBVIOUS",href:"https://medium.com/earn"},"Learn more."))}(N,h,y,m,null!=u&&u,F))),o.createElement(L.a,{paddingTop:"20px"},h&&!N&&s&&b&&o.createElement(mn,{url:(0,k.ST)((0,T.us)(a),{sk:b}),label:"Copy Friend Link",post:a,isFriendLink:!0,testId:"publishSuccessCopyFriendLinkButton"})),o.createElement(L.a,{borderBottom:"neutral.primary",width:"100%",margin:"20px 0"})),l&&s&&o.createElement(cn,{post:a,isUnlisted:N,postPath:(0,T.us)(a)})),o.createElement(Xe.J,{onClick:t,size:"LARGE",testId:"publishSuccessCloseButton"})))};!function(e){e.initial="initial",e.repub="repub"}(sn||(sn={}));var pn=function(e){var n,i=e.post,t=(0,u.pE)("postPublishedType"),l=(0,a.I)(rn,{variables:{postId:i.id},skip:t!==sn.initial}),r=l.data,d=(r=void 0===r?{}:r).post,s=l.loading,m=(0,Ze.R)().value,c=(0,o.useState)(!1),p=(0,We.A)(c,2),k=p[0],v=p[1],g=(0,o.useCallback)((function(){return v(!1)}),[v]),f=(0,ze.wA)(),S=(0,He.J)(i.collection).viewerEdge,N=(null==m?void 0:m.id)===(null===(n=i.creator)||void 0===n?void 0:n.id)||i.collection&&(null==S?void 0:S.isEditor);(0,o.useEffect)((function(){switch(t){case sn.initial:v(!0);break;case sn.repub:f((0,nn.MZ)({duration:3e3,message:"Your changes have been published."}))}}),[t]);var h=(0,o.useState)(!1),y=(0,We.A)(h,2),b=y[0],F=y[1];return b?s||!d||d.inResponseToPostResult||d.inResponseToCatalogResult?null:m&&N?o.createElement(un,{isVisible:k,hide:g,post:d,viewerId:m.id}):null:(Je.R5.on("load",(function(){return F(!0)})),null)},kn=i(5811),vn=i(64074),gn=/rgba\(([\d]+),\s*([\d]+),\s*([\d]+),\s*([\d]+|[\d]*.[\d]+)\)/,fn=function(){var e,n,i=(0,V.D)();return o.createElement(L.a,{marginTop:"-240px",background:"linear-gradient(".concat((e=i.backgroundColor,n=e.match(gn),n?"rgba(".concat(n[1],", ").concat(n[2],", ").concat(n[3],", 0)"):(0,tn.u7)(0)),", ").concat(i.backgroundColor,")"),height:"250px",position:"relative",width:"100%"})},Sn=function(e){var n=e.children,i=e.forwardedRef,t=e.margin;return o.createElement(o.Fragment,null,o.createElement(fn,null),o.createElement(L.a,{backgroundColor:"BACKGROUND",ref:i},o.createElement(L.a,{margin:"auto",maxWidth:"760px",sm:{margin:null!=t?t:"0 24px 0"}},n)))},Nn=(0,o.forwardRef)((function(e,n){return o.createElement(Sn,(0,Ge.A)({},e,{forwardedRef:n}))})),hn=(0,o.memo)(Nn),yn=i(30572),bn=i(72130),Fn=i(71836),En=function(e){var n=e.postId,i=e.align,t=e.entityId,a=e.id,l=e.buttonStyle,r=void 0===l?"STRONG":l,d=e.onClick,s=(0,Ze.R)().value,m=(0,bn.$L)(),c=(0,p.d4)((function(e){return e.config.authDomain})),u=null==s?void 0:s.hasPastMemberships,v=(0,k.ST)((0,T.Qok)(c),{subscribeToUserId:t||"",susiEntry:"post_paywall"}),g=o.useCallback((function(){m.event("paywall.upgradeClicked",{postId:n,userId:null==s?void 0:s.id}),null==d||d()}),[n,null==s?void 0:s.id]),f=u?"182px":"104px",S=u?"Resume membership":"Upgrade";return o.createElement(Fn.C,{source:"upgrade_membership",dimension:"post_limit",sourceProviderData:{postId:n},eventData:{postId:n}},o.createElement(L.a,{display:"flex",textAlign:"center",justifyContent:"left"===i?"flex-start":"center"},o.createElement(yn.a,{isButton:!0,onClick:g,buttonStyle:r,width:f,redirectUrl:v,id:a},S)))},xn=i(7580),wn=i(44402),An=i(79429),_n=i(21835),Pn=function(){return{flexShrink:0,marginRight:"12px",width:"16px",height:"16px"}},Cn=function(e){var n=e.headerText,i=e.reasonsToUpgrade,t=e.paywall,a=e.postId,l=(0,wn.l)(),r=(0,me.U)(),d="xs"===r||"sm"===r,s=(0,o.useMemo)((function(){var e=(null==t?void 0:t.creatorSpotlights)||[];return d&&e.length>6?e.filter((function(e){return!e.hideOnSmallScreen})):e}),[d,t]),m=(0,o.useMemo)((function(){return["Access all member-only stories on Medium"].concat((0,N.A)(i))}),[i]),c=(0,Ze.R)().value,u=(0,bn.$L)(),p=(0,o.useCallback)((function(){u.event("paywall.presented",{type:t.type,userId:null==c?void 0:c.id})}),[t.type,null==c?void 0:c.id]),k=(0,An.s)({onPresentedFn:p});return o.createElement(hn,{margin:"0 -24px",ref:k},o.createElement(L.a,{display:"flex",justifyContent:"center",textAlign:"center",sm:{flexDirection:"column"}},o.createElement(L.a,{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.mz,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},n),o.createElement(L.a,{marginTop:"32px"},o.createElement(re.kZ,{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(L.a,{margin:"22px auto 34px"},m.map((function(e,n){return o.createElement(L.a,{display:"flex",alignItems:"center",key:"reason-".concat(n),marginTop:"12px",textAlign:"left"},o.createElement(_n.A,{className:l(Pn)}),o.createElement(re.kZ,{scale:"M",color:"DARKER"},e))}))),o.createElement(L.a,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",marginBottom:"30px"},s.map((function(e){return o.createElement(L.a,{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(xn.r,{alt:e.name,miroId:e.miroId,diameter:64}),o.createElement(L.a,{marginTop:"8px",textAlign:"center"},o.createElement(re.kZ,{scale:d?"S":"M",color:"DARKER"},e.name),o.createElement(re.kZ,{scale:"XS"},e.title),e.company&&o.createElement(re.kZ,{scale:"XS"},e.company)))}))),o.createElement(En,{id:"paywallButton-programming",postId:a,align:"center",buttonStyle:"STRONG"}))))},Tn=i(91317),Dn=["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"],In=function(e){var n,i=e.paywall,t=e.post,a=(0,Ze.R)().value,l=function(e,n){var i=e?(0,Tn.E)(e):null;i=i&&i.length<=13?i:null;var t=n?" from ".concat(n):"";return i?"".concat(i,", read this story").concat(t," — and all the best stories on Medium."):"Read this story".concat(t," — and all the best stories on Medium.")}(null==a?void 0:a.name,null===(n=t.creator)||void 0===n?void 0:n.name);return o.createElement(Cn,{headerText:l,reasonsToUpgrade:Dn,paywall:i,postId:t.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()}},On=function(e){var n,i,t=e.paywall,a=e.post,l=(0,Ze.R)().value,r=null!==(n=null===(i=a.primaryTopic)||void 0===i?void 0:i.slug)&&void 0!==n?n:null,d=function(e,n){var i=e?(0,Tn.E)(e):null;if(i=i&&i.length<=13?i:null,n){var t=Rn(n);return i?"".concat(i,", read the best stories about ").concat(t," from industry leaders on Medium."):"Read the best stories about ".concat(t," from industry leaders on Medium.")}return i?"".concat(i,", 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(Cn,{headerText:d,reasonsToUpgrade:s,paywall:t,postId:a.id})},Ln=i(47517),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"}}]}}],Bn={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.A)(Mn))},Vn={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.A)(Mn))},jn={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.A)([{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.A)([{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"}}]}}]}}]))},Un={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.A)(Bn.definitions),(0,N.A)(Vn.definitions))},Wn=function(e){var n,i=e.post,t=(0,Ze.R)().value,l=(0,bn.$L)();(0,o.useEffect)((function(){l.event("paywall.viewed",{userId:null==t?void 0:t.id})}),[]);var r=(0,a.I)(Un,{ssr:!1,variables:{postId:i.id}}),d=r.data,s=r.error,m=r.loading;(0,o.useEffect)((function(){s&&Ln.v.error({error:s},"Paywall query error")}),[s]);var c=(0,o.useState)(!1),u=(0,We.A)(c,2),p=u[0],k=u[1],v=(0,o.useCallback)((function(e,n){p||(k(!0),Ln.v.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 en.nQ.PROGRAMMING:return o.createElement(P.P,{size:"app"},o.createElement(On,{paywall:g,post:i}));case en.nQ.ASPIRATIONAL:return o.createElement(P.P,{size:"app"},o.createElement(In,{paywall:g,post:i}));default:return v({paywall:g},"Unknown paywall type"),null}},Gn=i(60301),zn=i(43634),Zn=i(79197),Hn=i(28263),Yn=i(4765),qn=i(71336),Kn=i(88909),Qn=i(67033),Xn=function(e){var n=e.postId,i=e.susiEntry,t="register",a={operation:t,postId:n},l=(0,Hn.C)().openModal;return o.createElement(L.a,{display:"flex",flexDirection:"column",textAlign:"center",margin:{xs:"32px 0",sm:"32px 0",md:"64px 0",lg:"64px 0",xl:"64px"}},o.createElement(Qn.b,{eventData:a},o.createElement(Kn.s,{operation:t})),o.createElement(L.a,{marginTop:"10px",sm:{marginTop:"12px"}},o.createElement(Qn.b,{eventData:a},o.createElement(qn.N,{operation:t}))),o.createElement(L.a,{marginTop:"10px",sm:{marginTop:"12px"}},o.createElement(Qn.b,{eventData:a},o.createElement(Yn.P,{goToEmailAuthStep:function(){l({step:"ENTER_EMAIL",susiEntry:i,operation:t})},operation:t}))))},$n="post_regwall",Jn=function(e){var n=e.post,i=(0,bn.$L)(),t="LOCKED_POST_SOURCE_SYNDICATED"===n.lockedSource,a=(0,p.d4)((function(e){return e.navigation.susiEmail})),l=(0,Hn.C)().susiModalConfig.operation;(0,o.useEffect)((function(){i.event("meter.viewed",{meterCount:0,postId:n.id,uiType:t?Zn.H.SyndicatedRegwall:Zn.H.RegWall})}),[]);var r=(0,o.useCallback)((function(){i.event("regwall.presented",{})}),[]),d=(0,An.s)({onPresentedFn:r});return o.createElement(C.Ne,{source:{postId:n.id,susiEntry:$n}},o.createElement(hn,{margin:"0px",ref:d},o.createElement(L.a,{display:"flex",textAlign:"center",justifyContent:"center",flexDirection:"column"},o.createElement(L.a,{padding:{xs:"28px 0 48px",sm:"28px 0 48px",md:"56px",lg:"56px",xl:"56px"}},o.createElement($e.mz,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},a?"Check your inbox.":o.createElement(L.a,null,"Create an account to read the full story.")),o.createElement(re.kZ,{color:"DARKER",scale:"M",tag:"div"},a?o.createElement(o.Fragment,null,o.createElement(L.a,{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(re.kZ,{color:"LIGHTER",scale:"M"},"Didn't get the link?"," ",o.createElement(zn.r,{linkStyle:"OBVIOUS",operation:"register",post:n,susiEntry:$n},"Try again"))):o.createElement(re.kZ,{color:"DARKER",scale:"L"},o.createElement(L.a,{margin:"32px 0 0"},o.createElement(re.kZ,{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(re.kZ,{color:"DARKER",scale:"M"},o.createElement(L.a,{display:{xs:"block",sm:"block",md:"none",lg:"none",xl:"none"}},o.createElement(L.a,{margin:"32px 0"},o.createElement(Gn.z,{isButton:!0,buttonSize:"REGULAR",postId:n.id,appEntry:"regwall",copy:"Continue in app"})),o.createElement(L.a,null,"Or, continue in mobile web"))),o.createElement(Xn,{postId:n.id,susiEntry:$n}),"Already have an account?"," ",o.createElement(zn.r,{linkStyle:"OBVIOUS",inline:!0,operation:"login",post:n,susiEntry:$n},"Sign in")))))))},ei=function(e){var n=e.post,i=n.id,t=n.content.isLockedPreviewOnly,a=(0,Ze.R)(),l=a.value,r=a.loading,d=!!l;if(!_(i,t).loading&&t){if(d)return o.createElement(Wn,{post:n});if(!r)return o.createElement(P.P,{size:"app"},o.createElement(Jn,{post:n}))}return null},ni=i(95420),ii={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"}}}]}]}}]},ti=i(39586),ai=i(27394),oi=i(80545),li=i(55364),ri=i.n(li),di=i(3459),si=i.n(di),mi=i(30758),ci=i(90383),ui=i(59162);function pi(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function ki(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?pi(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):pi(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var vi=(0,ze.Ng)((function(e){var n=e.config,i=n.productName,t=n.defaultImages,a=n.collectionStructuredData,o=e.navigation;return{currentLocation:o.currentLocation,host:o.host,productName:i,defaultImages:t,collectionStructuredData:a}}))((function(e){var n=e.currentLocation,i=e.host,t=e.post,a=e.postDescription,l=e.productName,r=e.defaultImages,d=e.collectionStructuredData,s=t.collection,m=t.creator,c=t.id,u=t.mediumUrl,p=t.isLocked,v=t.previewImage,g=t.firstPublishedAt,f=t.updatedAt,S=(0,ui._y)(t,l),N={id:r.postLogo.imageId,originalWidth:r.postLogo.width,originalHeight:r.postLogo.height},h={id:r.orgLogo.imageId,originalWidth:r.orgLogo.width,originalHeight:r.orgLogo.height},y=s?{"@type":"Organization",name:s.name,url:s.domain||(0,k.jp)(i,(0,T.eBL)(s,n)),logo:function(e){if(!e||!e.logo||!e.logo.id)return(0,mi.YT)(h);var n=(0,mi.YT)(e.logo);return n&&60===n.height&&n.width<=600?n:(0,mi.YT)(h)}(s)}:{"@type":"Organization",name:l,url:(0,k.jp)(i,"/"),logo:(0,mi.YT)(h)};s&&d&&d[s.id]&&ri()(y,d[s.id].data);var b=v&&v.id?(0,mi.Yq)(ki(ki({},v),{},{miroId:v.id,croppedWidth:1200})):(0,mi.Cj)({url:(0,ci.rP)({miroId:N.id,width:N.originalWidth}),height:N.originalHeight,width:N.originalWidth}),F=a||"",E=p?{isAccessibleForFree:"False",hasPart:{"@type":"WebPageElement",isAccessibleForFree:"False",cssSelector:".meteredContent"}}:{},x=ki({"@type":"NewsArticle",image:b,url:u,dateCreated:g&&new Date(g).toISOString(),datePublished:g&&new Date(g).toISOString(),dateModified:f&&new Date(f).toISOString(),headline:S,name:S,description:F,identifier:c,author:m&&m.name&&m.username?{"@type":"Person",name:m.name||m.username,url:(0,T.EpC)(m,i)}:null,creator:m&&[m.name],publisher:y,mainEntityOfPage:u},E),w=ki(ki({},{"@context":"http://schema.org"}),x);return o.createElement(oi.mg,null,o.createElement("script",{type:"application/ld+json"},si()(w,{isJSON:!0})))})),gi=i(27715),fi=i(7897);function Si(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function Ni(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Si(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Si(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var hi=(0,ze.Ng)((function(e){return{authDomain:e.config.authDomain,host:e.navigation.host,productName:e.config.productName}}))((function(e){var n,i,t,a,l=e.authDomain,r=e.productName,d=e.post,s=d.canonicalUrl,m=d.collection,c=d.creator,u=d.id,p=d.latestPublishedAt,k=d.mediumUrl,v=d.previewContent,g=d.socialTitle,f=d.socialDek,S=d.visibility,N=d.isShortform,h="UNLISTED"===S,y=!d.firstPublishedAt,b=null==c?void 0:c.name,F=(0,ui.Hg)(d),E=d.title||"",x=F.latestTitle||E;if(N){var w=Ni(Ni({},d),{},{title:x});t=(0,ui.T7)(w,r,F.hasTitleGraf).trim(),a=(0,fi.a)(d,F.hasTitleGraf)}else t=(0,ui._y)(d,r,F,!0).trim(),a=(0,fi._)(d);var A,_,P,C=f||(null==v?void 0:v.subtitle)||a;if(null!=d&&null!==(n=d.previewImage)&&void 0!==n&&n.id&&!d.isLimitedState){var D=d.previewImage;A=(0,ci.As)({miroId:D.id,aspectRatio:1.9,croppedWidth:D.originalWidth?Math.min(D.originalWidth,1200):1200,originalWidth:D.originalWidth,originalHeight:D.originalHeight,focusPercentX:D.focusPercentX,focusPercentY:D.focusPercentY}),d.previewImage.alt&&(_=d.previewImage.alt)}else if(d.isLimitedState){var I={id:"1*3SjgcTt7wCYYS10ff6-0JQ.png",originalWidth:748,originalHeight:390,focusPercentX:50,focusPercentY:40};A=(0,ci.As)({miroId:I.id,aspectRatio:1.9,croppedWidth:I.originalWidth?Math.min(I.originalWidth,1200):1200,originalWidth:I.originalWidth,originalHeight:I.originalHeight,focusPercentX:I.focusPercentX,focusPercentY:I.focusPercentY}),_="This image was reported as a potential violation of Medium's rules and is under investigation."}null!=c&&c.username&&(P=(0,T.EpC)(c,l));var R=(0,T.Pu1)(u),O=!(null!==(i=(0,ui.ek)(d))&&void 0!==i&&i.shouldIndexPost),L=p&&new Date(p).toISOString(),M=(0,gi.M8)(d.readingTime||0),B=null==c?void 0:c.twitterScreenName,V=(null==m?void 0:m.twitterUsername)||"Medium",j=null==m?void 0:m.facebookPageId,U=g||E||x;d.isLimitedState&&(U="");var W=d.isLimitedState?"":C,G=(0,o.useMemo)((function(){var e;return o.createElement(oi.mg,null,o.createElement("meta",{property:"og:type",content:"article"}),L&&o.createElement("meta",{property:"article:published_time",content:L}),o.createElement("title",null,t),o.createElement("meta",{name:"title",content:t}),o.createElement("meta",{property:"og:title",content:U}),j&&o.createElement("meta",{property:"fb:pages",content:j}),o.createElement("meta",{property:"al:android:url",content:R}),o.createElement("meta",{property:"al:ios:url",content:R}),o.createElement("meta",{property:"al:android:app_name",content:"Medium"}),a&&o.createElement("meta",{name:"description",content:a}),C&&o.createElement("meta",{property:"og:description",content:W}),o.createElement("meta",{property:"og:url",content:null!=k?k:void 0}),o.createElement("meta",{property:"al:web:url",content:null!=k?k:void 0}),A&&o.createElement("meta",{property:"og:image",content:A}),_&&o.createElement("meta",{property:"og:image:alt",content:_}),P&&o.createElement("meta",{property:"article:author",content:P}),P&&o.createElement("link",{rel:"author",href:P}),b&&o.createElement("meta",{name:"author",content:b}),o.createElement("link",{rel:"canonical",href:null!==(e=s||k)&&void 0!==e?e:void 0}),o.createElement("link",{rel:"alternate",href:(0,T.pNp)((0,T.KI2)("medium.com",d.id))}),o.createElement("meta",{name:"robots",content:"".concat(O?"noindex":"index",",noarchive,follow,max-image-preview:large")}),o.createElement("meta",{name:"referrer",content:h||y?"origin":"unsafe-url"}),o.createElement("meta",{property:"twitter:title",content:U}),o.createElement("meta",{name:"twitter:site",content:"@".concat(V)}),o.createElement("meta",{name:"twitter:app:url:iphone",content:R}),C&&o.createElement("meta",{property:"twitter:description",content:W}),A&&o.createElement("meta",{name:"twitter:image:src",content:A}),_&&o.createElement("meta",{name:"twitter:image:alt",content:_}),o.createElement("meta",{name:"twitter:card",content:A?"summary_large_image":"summary"}),B&&o.createElement("meta",{name:"twitter:creator",content:"@".concat(B)}),o.createElement("meta",{name:"twitter:label1",content:"Reading time"}),o.createElement("meta",{name:"twitter:data1",content:"".concat(M," min read")}))}),[t,s,k,A,_,u,g,a,P,b,B,R,O,p,L]);return o.createElement(o.Fragment,null,G,o.createElement(vi,{post:d,postDescription:a}))})),yi=i(44054),bi=i(28160),Fi=i(96783),Ei=i(46696),xi=i(57975),wi=i(62262),Ai=i(26311),_i=i(23406),Pi=function(e){var n,i=e.post,t=e.socialPopoverPosition,a=void 0===t?"beginning":t,l=o.useContext(_i.u).openSidebar,r=!!(0,Ze.R)().value,d=i.creator,s="clap_footer",m={post:i,source:"post_actions_footer"},c=(null==i||null===(n=i.postResponses)||void 0===n?void 0:n.count)||null;return o.createElement(C.Ne,{source:{dimension:"footer_actions"},extendSource:!0},o.createElement(L.a,{display:"flex",justifyContent:"space-between",print:{display:"none"}},o.createElement(L.a,{display:"flex",flexDirection:"row",alignItems:"center"},o.createElement(L.a,{maxWidth:"155px"},o.createElement(wi.U,null,o.createElement(xi.W,{post:i,buttonStyle:"SUBTLE_MARGIN",hasDialog:!0,shouldShowResponsiveLabelText:!0,shouldHideClapsText:!0,susiEntry:s,buttonColor:"LIGHTER",countScale:"S",testId:"footerClapButton"})),o.createElement(wi.F,null,o.createElement(xi.W,{post:i,buttonStyle:"SUBTLE_MARGIN",hasDialog:!0,shouldHideClapsText:!0,susiEntry:s,buttonColor:"LIGHTER",countScale:"S",testId:"footerClapButton"}))),o.createElement(C.Ne,{source:{susiEntry:"follow_footer"},extendSource:!0},o.createElement(L.a,{display:"flex",marginLeft:"24px"},o.createElement(Ai._,{trackingData:{postId:i.id},responsesCount:c,allowResponses:i.allowResponses,isLimitedState:i.isLimitedState,isPublished:i.isPublished,handleClick:l,iconStylesOverride:{marginTop:"0px"},countStylesOverride:{marginLeft:"4px",marginTop:"0px"},testId:"footerResponseButton"})))),o.createElement(L.a,{display:"flex",alignItems:"center"},"beginning"===a&&o.createElement(Ei.b,m),o.createElement(L.a,{flexGrow:"0",marginLeft:"beginning"===a?"20px":void 0,marginRight:"20px"},o.createElement(Fi.T,{post:i,susiEntry:"bookmark_footer",testId:"footerBookmarkButton"})),"end"===a&&o.createElement(L.a,{flexGrow:"0",marginRight:"20px"},o.createElement(Ei.b,(0,Ge.A)({},m,{testId:"footerSocialShareButton"}))),i&&d&&r&&o.createElement(bi.G,{post:i,testId:"footerStoryOptionsButton",trackingV2:!0}))))},Ci=i(57426),Ti=i(5600),Di=i(95320),Ii=i(32010),Ri=i(71003),Oi=i(49753),Li=i(10103),Mi=function(e){return{fill:e.colorTokens.foreground.neutral.secondary.base}};function Bi(e){switch(e){case"PUBLIC_DOMAIN":return"Except where otherwise noted, this work is in the public domain.";case"CC_40_ZERO":return"Except where otherwise noted, this work has been dedicated to the public domain using CC0.";default:return"Except where otherwise noted, this work is licensed under a ".concat(ji(e,"title")," license by the author.")}}var Vi={PUBLIC_DOMAIN:{title:"Public Domain",link:"https://creativecommons.org/publicdomain/mark/1.0/"},CC_40_ZERO:{title:"Creative Commons copyright waiver",link:"http://creativecommons.org/publicdomain/zero/1.0/"},CC_40_BY:{title:"Creative Commons Attribution 4.0 International",link:"http://creativecommons.org/licenses/by/4.0/"},CC_40_BY_ND:{title:"Creative Commons Attribution-NoDerivatives 4.0 International",link:"https://creativecommons.org/licenses/by-nd/4.0/"},CC_40_BY_SA:{title:"Creative Commons Attribution-ShareAlike 4.0 International",link:"https://creativecommons.org/licenses/by-sa/4.0/"},CC_40_BY_NC:{title:"Creative Commons Attribution-NonCommercial 4.0 International",link:"https://creativecommons.org/licenses/by-nc/4.0/"},CC_40_BY_NC_ND:{title:"Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International",link:"https://creativecommons.org/licenses/by-nc-nd/4.0/"},CC_40_BY_NC_SA:{title:"Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International",link:"https://creativecommons.org/licenses/by-nc-sa/4.0/"}};function ji(e,n){return Vi[e][n]}var Ui,Wi,Gi=function(e){var n=e.license,i=(0,wn.l)();return n?o.createElement(L.a,{display:"inline"},o.createElement(L.a,{display:"inline-block"},o.createElement(re.kZ,{scale:"M"},o.createElement(Ti.G,{tooltipText:Bi(n),maxWidth:300},o.createElement(le.N,{disableSourceParam:!0,href:ji(n,"link"),linkStyle:"SUBTLE",inline:!0,target:"_blank"},function(e){switch(e){case"PUBLIC_DOMAIN":return"Public domain.";case"CC_40_ZERO":return"No rights reserved";default:return"Some rights reserved"}}(n))))),o.createElement(L.a,{display:"inline-block"},o.createElement(re.kZ,{scale:"M"},"CC_40_ZERO"===n&&o.createElement("span",null," by the author."),o.createElement("span",{className:i(Mi),style:{marginLeft:"5px",verticalAlign:"text-bottom"}},function(e){return{CC_40_ZERO:o.createElement(Li.A,null),CC_40_BY:o.createElement(Di.A,null),CC_40_BY_ND:o.createElement(o.Fragment,null,o.createElement(Di.A,null),o.createElement(Ri.A,null)),CC_40_BY_SA:o.createElement(o.Fragment,null,o.createElement(Di.A,null),o.createElement(Oi.A,null)),CC_40_BY_NC:o.createElement(o.Fragment,null,o.createElement(Di.A,null),o.createElement(Ii.A,null)),CC_40_BY_NC_ND:o.createElement(o.Fragment,null,o.createElement(Di.A,null),o.createElement(Ii.A,null),o.createElement(Ri.A,null)),CC_40_BY_NC_SA:o.createElement(o.Fragment,null,o.createElement(Di.A,null),o.createElement(Ii.A,null),o.createElement(Oi.A,null)),PUBLIC_DOMAIN:o.createElement(o.Fragment,null)}[e]}(n))))):null},zi=i(16635),Zi=function(e){var n=e.post,i=e.marginBottom,t=(null==n?void 0:n.tags)||[];return t.length?o.createElement(L.a,{display:"flex",flexWrap:"wrap","align-items":"flex-start",marginTop:"6px",marginBottom:i},t.map((function(e){return o.createElement(L.a,{display:"flex",marginTop:"8px",key:e.id},o.createElement(Ci.v,{topic:e,trackingV2:!0}))}))):null},Hi=function(){return o.createElement(L.a,{padding:"0 8px",display:"inline"},o.createElement(ge.d,{display:"inline",scale:"M"}))},Yi=function(e){var n,i=e.post,t=i.visibility,a=i.license,l="UNLISTED"===t,r=!(!a||"ALL_RIGHTS_RESERVED"===a),d=!(null===(n=i.tags)||void 0===n||!n.length),s=l||r;return d||s?o.createElement(P.P,{size:"app"},o.createElement(Zi,{post:i,marginBottom:s?"40px":"26px"}),s&&o.createElement(L.a,{marginTop:d?"0px":"12px",marginBottom:"26px"},l&&o.createElement(L.a,{display:"inline"},o.createElement(re.kZ,{scale:"M",tag:"span"},o.createElement(zi.A,null)," Unlisted")),l&&r&&o.createElement(Hi,null),r&&o.createElement(Gi,{license:a}))):null},qi=i(49912),Ki={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TopicViewerEdge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"topicId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"topic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"topicId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Topic"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TopicViewerEdge_topicViewerEdge"}}]}}]}}]}}]}}].concat((0,N.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"TopicViewerEdge_topicViewerEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TopicViewerEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}}]}}]))},Qi=i(21335),Xi=i(66973),$i="post-view",Ji="post-read",et="topic-view",nt="medium-search",it="external-search",tt=(Ui={},(0,t.A)(Ui,$i,200),(0,t.A)(Ui,Ji,200),(0,t.A)(Ui,et,200),(0,t.A)(Ui,nt,200),(0,t.A)(Ui,it,200),Ui),at=(Wi={},(0,t.A)(Wi,$i,new Xi.A("pv")),(0,t.A)(Wi,Ji,new Xi.A("pr")),(0,t.A)(Wi,et,new Xi.A("tv")),(0,t.A)(Wi,nt,new Xi.A("ms")),(0,t.A)(Wi,it,new Xi.A("es")),Wi),ot=function(e,n,i){var t=at[e];t.getCount()===tt[e]&&t.clean();try{t.set(n,i)}catch(e){t.clean()}},lt=i(2550),rt=i(65138),dt=i(78968),st=i(11517),mt=i(24023),ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PostNoteMissingToastQuery"},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:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"privateNotes"},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:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]}}]}}]},ut=i(21874),pt=i(658),kt=i(79756),vt=i(82284),gt=i(80045),ft=i(10467),St=i(77969),Nt=i(53259),ht=i.n(Nt),yt=i(91052),bt=i(84274),Ft=i(19228),Et=i(31905),xt=i(51387),wt=["__typename"];function At(){At=function(){return n};var e,n={},i=Object.prototype,t=i.hasOwnProperty,a=Object.defineProperty||function(e,n,i){e[n]=i.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function s(e,n,i){return Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,i){return e[n]=i}}function m(e,n,i,t){var o=n&&n.prototype instanceof f?n:f,l=Object.create(o.prototype),r=new C(t||[]);return a(l,"_invoke",{value:w(e,i,r)}),l}function c(e,n,i){try{return{type:"normal",arg:e.call(n,i)}}catch(e){return{type:"throw",arg:e}}}n.wrap=m;var u="suspendedStart",p="suspendedYield",k="executing",v="completed",g={};function f(){}function S(){}function N(){}var h={};s(h,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==i&&t.call(b,l)&&(h=b);var F=N.prototype=f.prototype=Object.create(h);function E(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function x(e,n){function i(a,o,l,r){var d=c(e[a],e,o);if("throw"!==d.type){var s=d.arg,m=s.value;return m&&"object"==(0,vt.A)(m)&&t.call(m,"__await")?n.resolve(m.__await).then((function(e){i("next",e,l,r)}),(function(e){i("throw",e,l,r)})):n.resolve(m).then((function(e){s.value=e,l(s)}),(function(e){return i("throw",e,l,r)}))}r(d.arg)}var o;a(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,a){i(e,t,n,a)}))}return o=o?o.then(a,a):a()}})}function w(n,i,t){var a=u;return function(o,l){if(a===k)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw l;return{value:e,done:!0}}for(t.method=o,t.arg=l;;){var r=t.delegate;if(r){var d=A(r,t);if(d){if(d===g)continue;return d}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(a===u)throw a=v,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);a=k;var s=c(n,i,t);if("normal"===s.type){if(a=t.done?v:p,s.arg===g)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(a=v,t.method="throw",t.arg=s.arg)}}}function A(n,i){var t=i.method,a=n.iterator[t];if(a===e)return i.delegate=null,"throw"===t&&n.iterator.return&&(i.method="return",i.arg=e,A(n,i),"throw"===i.method)||"return"!==t&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+t+"' method")),g;var o=c(a,n.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var l=o.arg;return l?l.done?(i[n.resultName]=l.value,i.next=n.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):l:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function _(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function P(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(n){if(n||""===n){var i=n[l];if(i)return i.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,o=function i(){for(;++a<n.length;)if(t.call(n,a))return i.value=n[a],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError((0,vt.A)(n)+" is not iterable")}return S.prototype=N,a(F,"constructor",{value:N,configurable:!0}),a(N,"constructor",{value:S,configurable:!0}),S.displayName=s(N,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===S||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,s(e,d,"GeneratorFunction")),e.prototype=Object.create(F),e},n.awrap=function(e){return{__await:e}},E(x.prototype),s(x.prototype,r,(function(){return this})),n.AsyncIterator=x,n.async=function(e,i,t,a,o){void 0===o&&(o=Promise);var l=new x(m(e,i,t,a),o);return n.isGeneratorFunction(i)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},E(F),s(F,d,"Generator"),s(F,l,(function(){return this})),s(F,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),i=[];for(var t in n)i.push(t);return i.reverse(),function e(){for(;i.length;){var t=i.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},n.values=T,C.prototype={constructor:C,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!n)for(var i in this)"t"===i.charAt(0)&&t.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function a(t,a){return r.type="throw",r.arg=n,i.next=t,a&&(i.method="next",i.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],r=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var d=t.call(l,"catchLoc"),s=t.call(l,"finallyLoc");if(d&&s){if(this.prev<l.catchLoc)return a(l.catchLoc,!0);if(this.prev<l.finallyLoc)return a(l.finallyLoc)}else if(d){if(this.prev<l.catchLoc)return a(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return a(l.finallyLoc)}}}},abrupt:function(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&t.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=e,l.arg=n,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),P(i),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===e){var t=i.completion;if("throw"===t.type){var a=t.arg;P(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,i,t){return this.delegate={iterator:T(n),resultName:i,nextLoc:t},"next"===this.method&&(this.arg=e),g}},n}var _t,Pt,Ct,Tt,Dt=ht()({loading:function(){return null},loader:function(){return Promise.all([i.e(8414),i.e(6244),i.e(3974),i.e(2098),i.e(8247)]).then(i.bind(i,55842))},modules:["./ThreadedResponsesSidebarContent"],webpack:function(){return[55842]},render:(0,Et.X)("ThreadedResponsesSidebarContent")}),It=function(e){var n,i,t,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,N=e.initialSidebarRender,h=e.responsesSort,y=h?en.CD[h]:void 0,b=o.useState(y||en.CD.TOP),F=(0,We.A)(b,2),E=F[0],x=F[1],w=o.useState(!1),A=(0,We.A)(w,2),_=A[0],P=A[1],T=o.useRef(null),D=(0,St._)(yt.i),I=(0,We.A)(D,2),R=I[0],O=I[1],L=O.called,M=O.loading,B=O.data,V=(0,St._)(xt.t,{variables:{postId:k.id,postResponsesPaging:{limit:kt.TC},sortType:E},ssr:!1}),j=(0,We.A)(V,2),U=j[0],W=j[1],G=W.called,z=W.loading,Z=W.data,H=W.fetchMore;G||v||!c||(U(),L||R(),Dt.preload());var Y=null==Z||null===(n=Z.post)||void 0===n?void 0:n.responsesLocked,q=null==Z||null===(i=Z.post)||void 0===i?void 0:i.isLockedResponse,K=(0,kt.J6)(c,N,null==Z||null===(t=Z.post)||void 0===t?void 0:t.threadedPostResponses,v),Q=K.responses,X=K.showCreateReplyEditor,$=(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)||"",J=g||(null==Z||null===(d=Z.post)||void 0===d||null===(s=d.responseRootPost)||void 0===s?void 0:s.responseDepth)||0,ee=void 0,ne=null==Q||null===(m=Q.pagingInfo)||void 0===m?void 0:m.next;return ne&&!v&&(ee=function(){var e=(0,ft.A)(At().mark((function e(){var n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!H){e.next=5;break}return ne.__typename,n=(0,gt.A)(ne,wt),e.next=4,H({variables:{postId:k.id,postResponsesPaging:n}});case 4:P(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),o.createElement(Ft.Cq,null,o.createElement(C.Ne,{source:{name:"responses",postId:k.id},extendSource:!0},o.createElement(bt.p,{sidebarRef:T,cleanupSidebar:S,isResponsesSidebarVisible:c,pagingInfoNext:ne,isFetchingNextSetOfResponses:_,setIsFetching:P,fetchMoreWithArguments:ee,initialSidebarRender:N},(function(e){var n,i=e.responseDistribution,t=e.setResponseDistribution,a=e.closeSidebar;return G||v?o.createElement(Dt,{responses:Q,parentPost:k,responsesLocked:Y,isLockedResponse:q,isLoadingInitialContent:z||M,isFetchingNextSetOfResponses:_,isResponsesSidebarVisible:c,closeSidebar:a,showPreviousSidebar:f,inResponseToQuote:u,setInResponseToQuote:p,sidebarRef:T,responseDistribution:i,setResponseDistribution:t,responseSortType:E,setResponseSortType:x,rootPostId:$,postDepth:J,isContinueThisThread:!!v,showCreateReplyEditor:X,viewerPronouns:null!==(n=null==B?void 0:B.viewer)&&void 0!==n?n:void 0}):null}))))},Rt=function(e){var n=e.children,i=e.post,t=(0,o.useState)(void 0),a=(0,We.A)(t,2),l=a[0],r=a[1],d=(0,o.useCallback)((function(e){return function(n){r(n),e()}}),[]);return o.createElement(pt.i,null,(function(e){var t=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(ut.h.Provider,{value:{openSidebarToRespondToHighlight:d(u)}},!!i&&a&&o.createElement(It,{isResponsesSidebarVisible:m&&0===c.length,parentPost:i,inResponseToQuote:l,setInResponseToQuote:r,showPreviousSidebar:t,cleanupSidebar:p,initialSidebarRender:!!s.current,responsesSort:k}),!!i&&a&&c.map((function(e,n,a){var d=(0,kt.G$)(n);return o.createElement(It,{key:i.id,isResponsesSidebarVisible:m&&n===a.length-1,parentPost:i,inResponseToQuote:l,setInResponseToQuote:r,continueThisThreadPost:e,continueThisThreadPostDepth:d,showPreviousSidebar:t,cleanupSidebar:p,initialSidebarRender:!!s.current,responsesSort:k})})),n)}))},Ot=i(75636),Lt=i(85864),Mt=i(24960);function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Bt.apply(null,arguments)}const Vt=function(e){return o.createElement("svg",Bt({xmlns:"http://www.w3.org/2000/svg",width:49,height:57,fill:"none",viewBox:"0 0 49 57"},e),_t||(_t=o.createElement("path",{fill:"#fff",d:"M0 0h49v57H0z"})),Pt||(Pt=o.createElement("path",{fill:"#757575",d:"m45.95 17.534-.002-.04c-.022-.478-.036-.985-.045-1.55-.041-2.75-2.255-5.024-5.04-5.178-5.805-.32-10.296-2.19-14.134-5.885l-.032-.03a3.26 3.26 0 0 0-4.392 0l-.033.03c-3.838 3.695-8.329 5.565-14.135 5.885-2.784.154-4.998 2.429-5.039 5.18-.008.56-.023 1.066-.045 1.549l-.003.09c-.112 5.848-.253 13.126 2.212 19.732 1.356 3.633 3.408 6.79 6.1 9.386 3.067 2.957 7.084 5.304 11.939 6.976a3.7 3.7 0 0 0 1.2.201 3.7 3.7 0 0 0 1.201-.202c4.85-1.675 8.862-4.023 11.926-6.979 2.691-2.597 4.744-5.755 6.1-9.389 2.474-6.626 2.334-13.917 2.222-19.776m-5.002 18.764c-2.6 6.962-7.906 11.744-16.224 14.617a.671.671 0 0 1-.448 0c-8.325-2.868-13.636-7.647-16.233-14.61-2.272-6.089-2.144-12.77-2.03-18.664v-.033a52 52 0 0 0 .048-1.62c.018-1.22 1.003-2.231 2.242-2.3 3.285-.18 6.171-.808 8.823-1.917 2.649-1.107 5.001-2.668 7.191-4.772a.276.276 0 0 1 .367 0c2.19 2.104 4.543 3.665 7.19 4.772 2.653 1.11 5.54 1.736 8.825 1.918 1.239.068 2.223 1.078 2.241 2.3.01.586.025 1.116.048 1.62.113 5.9.239 12.586-2.04 18.689"})),Ct||(Ct=o.createElement("path",{fill:"#757575",d:"M24.501 17.762c-7.113 0-12.9 5.4-12.9 12.04 0 6.638 5.787 12.04 12.9 12.04s12.9-5.402 12.9-12.04c0-6.64-5.787-12.04-12.9-12.04m0 21.244c-5.438 0-9.863-4.129-9.863-9.205 0-5.075 4.425-9.205 9.863-9.205s9.862 4.13 9.862 9.205-4.424 9.205-9.862 9.205"})),Tt||(Tt=o.createElement("path",{fill:"#757575",d:"m28.077 25.098-5.635 6.12-1.53-1.66a1.35 1.35 0 0 0-2.02 0 1.65 1.65 0 0 0 0 2.193l2.54 2.758c.28.303.645.454 1.01.454.366 0 .731-.15 1.01-.454l6.645-7.217a1.65 1.65 0 0 0 0-2.194 1.35 1.35 0 0 0-2.02 0"})))};var jt=(0,ze.Ng)()((function(e){var n=e.dispatch,i=e.isVisible,t=e.hide,a="limitedStateInterstitialDialogPopover";return o.createElement(Qe.l,{isVisible:i,hide:t,withCloseButton:!1,customBackgroundColor:"rgba(255, 255, 255, 0.94)"},o.createElement(L.a,{display:"flex",justifyContent:"center",paddingTop:"100px"},o.createElement(L.a,{height:"550px",width:"900px",background:tn.ON,borderRadius:"4px",display:"flex",flexDirection:"column",justifyContent:"center",textAlign:"center",boxShadow:"0 2px 10px ".concat((0,tn.qy)(.15)),paddingBottom:"14px",md:{width:"600px",height:"auto",padding:"14px 8px"},sm:{width:"95vw !important",padding:"14px 8px"}},o.createElement(L.a,{display:"flex",flexDirection:"column",justifyContent:"center",height:"100%"},o.createElement(L.a,{paddingBottom:"24px"},o.createElement(Vt,null)),o.createElement(L.a,{paddingBottom:"24px",paddingRight:"24px",paddingLeft:"24px"},o.createElement(B.DZ,{scale:"L"},"The following content was reported as a potential violation of Medium’s rules and is under investigation.")),o.createElement(L.a,{padding:"0 0 24px 0"},o.createElement(Ke.$n,{buttonStyle:"BRAND",size:"REGULAR",onClick:function(){t(),n((0,nn.MZ)({duration:"FOREVER",toastStyle:"LIMITED_STATE_BANNER"}))}},"I understand and want to proceed anyway"),o.createElement(Lt.B,null,(function(e){var n=e.isVisible,i=e.toggle,t=e.hide;return o.createElement(Mt.A,{ariaId:a,isVisible:n,hide:t,display:"block",customZIndex:800,popoverRenderFn:function(){return o.createElement(L.a,{padding:"15px 20px",width:"400px"},o.createElement(re.kZ,{scale:"S"},"Anyone can publish on Medium, provided the content adheres to Medium’s rules and policies. When Medium is made aware of potential violations, the content is manually evaluated and appropriate action taken. Some features may be disabled while the content is under review."))},placement:"top",targetDistance:15},o.createElement(L.a,{paddingTop:"10px"},o.createElement(le.N,{"aria-controls":a,"aria-expanded":n?"true":"false",onClick:i},o.createElement("u",null,o.createElement(re.kZ,{scale:"S"},"Why am I seeing this?")))))})))),o.createElement(L.a,{display:"flex",justifyContent:"center"},o.createElement(re.kZ,{scale:"M"},"View our"," ",o.createElement(le.N,{href:"https://medium.com/policy/medium-rules-30e5502c4eb4",linkStyle:"OBVIOUS",inline:!0},"Rules,")," ",o.createElement(le.N,{href:"https://medium.com/policy/medium-terms-of-service-9db0094a1e0f",linkStyle:"OBVIOUS",inline:!0},"Terms of Service")," ","&"," ",o.createElement(le.N,{href:"https://medium.com/policy/medium-partner-program-terms-fcfe9cf777b8",linkStyle:"OBVIOUS",inline:!0},"Partner Program Terms"))))))})),Ut=function(e){return function(){return{filter:e?"blur(10px)":"blur(0)"}}};function Wt(e){var n=e.post,i=n.creator,t=n.isLimitedState,a=e.children,l=(0,Ze.R)().value,r=null==l?void 0:l.id,d=(0,wn.l)(),s=o.useState(!1),m=(0,We.A)(s,2),c=m[0],u=m[1];return o.useEffect((function(){u(!0)}),[]),t&&(i&&i.id)!==r?o.createElement(Lt.B,{initialVisibility:!0},(function(e){var n=e.isVisible,i=e.hide;return o.createElement(o.Fragment,null,o.createElement("div",{className:d(Ut(n))},a),c&&o.createElement(jt,{isVisible:n,hide:i}))})):a}var Gt=i(37075),zt=i(65364),Zt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserSocialLoginsQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userSocialLogins"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserSocialLogins_userSocialLogins"}}]}}]}}].concat((0,N.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"UserSocialLogins_userSocialLogins"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UserSocialLogins"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"twitter"}},{kind:"Field",name:{kind:"Name",value:"facebook"}},{kind:"Field",name:{kind:"Name",value:"google"}},{kind:"Field",name:{kind:"Name",value:"redactedEmailAddress"}},{kind:"Field",name:{kind:"Name",value:"isMember"}},{kind:"Field",name:{kind:"Name",value:"emailAddress"}},{kind:"Field",name:{kind:"Name",value:"userAvatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"mediumMemberAt"}}]}}]}}]))};function Ht(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function Yt(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Ht(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ht(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var qt=function(e){var n=e.children,i=e.postRenderCallback,t=(0,bn.$L)(),a=(0,C.Zj)(),l=(0,u.MW)(),r=(0,C.PJ)(l||""),d=r.userId,s=r.name,m=o.useState({shouldRun:!1,showSuggestedAccount:!1,userSocialLogins:{facebook:!1,google:!1,twitter:!1,redactedEmailAddress:"",emailAddress:"",userAvatar:{__typename:"UserAvatar",username:"",name:"",imageId:"",mediumMemberAt:0},userId:"",isMember:!1}}),c=(0,We.A)(m,2),p=c[0],k=c[1];o.useEffect((function(){var e=p.shouldRun,n=p.showSuggestedAccount,t=p.userSocialLogins;e&&(null==i||i(v,n,t))}),[p.shouldRun]);var v=(0,Ze.R)().value,g=!("email"!==s||v&&v.membership||!d);return g&&d?o.createElement(zt.X,{query:Zt,variables:{userId:d}},(function(e){var o=e.loading,l=e.error,r=e.data,d=(r=void 0===r?{}:r).userSocialLogins,s=!(o||l||!d||v&&!d.isMember||!d.facebook&&!d.google&&!d.twitter&&!d.redactedEmailAddress),m=Yt({loading:o,showSuggestedAccount:s},s&&{userSocialLogins:d,declineSuggestedAccount:function(){var e=(0,Tn.g)(d);t.event("susi.suggestNotYou",{entryPoint:a,susiMethod:e})}});return!i||o||p.shouldRun||k({shouldRun:!0,showSuggestedAccount:s,userSocialLogins:d}),(null==n?void 0:n(m))||null})):(i&&!p.shouldRun&&k(Yt(Yt({},p),{},{shouldRun:!0})),(null==n?void 0:n({showSuggestedAccount:g,loading:!1}))||null)},Kt=i(90384),Qt=i(25548),Xt=function(){var e=(0,ze.wA)(),n=(0,nn.zF)(),i=(0,o.useState)("loading"),t=(0,We.A)(i,2),a=t[0],l=t[1],r=(0,o.useCallback)((function(i,t,a){l(t?"rendered":"not_eligible"),t&&(e((0,Kt.J)(!0)),n({toastStyle:"ALTERNATE_USER",duration:"FOREVER",extraParams:{userSocialLogins:a}}))}),[n]);return(0,o.useEffect)((function(){e((0,Qt.j)(!0))}),[]),(0,o.useEffect)((function(){"not_eligible"===a&&e((0,Qt.j)(!1))}),[a]),o.createElement(qt,{postRenderCallback:r})},$t=i(42600);function Jt(){Jt=function(){return n};var e,n={},i=Object.prototype,t=i.hasOwnProperty,a=Object.defineProperty||function(e,n,i){e[n]=i.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function s(e,n,i){return Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,i){return e[n]=i}}function m(e,n,i,t){var o=n&&n.prototype instanceof f?n:f,l=Object.create(o.prototype),r=new C(t||[]);return a(l,"_invoke",{value:w(e,i,r)}),l}function c(e,n,i){try{return{type:"normal",arg:e.call(n,i)}}catch(e){return{type:"throw",arg:e}}}n.wrap=m;var u="suspendedStart",p="suspendedYield",k="executing",v="completed",g={};function f(){}function S(){}function N(){}var h={};s(h,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==i&&t.call(b,l)&&(h=b);var F=N.prototype=f.prototype=Object.create(h);function E(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function x(e,n){function i(a,o,l,r){var d=c(e[a],e,o);if("throw"!==d.type){var s=d.arg,m=s.value;return m&&"object"==(0,vt.A)(m)&&t.call(m,"__await")?n.resolve(m.__await).then((function(e){i("next",e,l,r)}),(function(e){i("throw",e,l,r)})):n.resolve(m).then((function(e){s.value=e,l(s)}),(function(e){return i("throw",e,l,r)}))}r(d.arg)}var o;a(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,a){i(e,t,n,a)}))}return o=o?o.then(a,a):a()}})}function w(n,i,t){var a=u;return function(o,l){if(a===k)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw l;return{value:e,done:!0}}for(t.method=o,t.arg=l;;){var r=t.delegate;if(r){var d=A(r,t);if(d){if(d===g)continue;return d}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(a===u)throw a=v,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);a=k;var s=c(n,i,t);if("normal"===s.type){if(a=t.done?v:p,s.arg===g)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(a=v,t.method="throw",t.arg=s.arg)}}}function A(n,i){var t=i.method,a=n.iterator[t];if(a===e)return i.delegate=null,"throw"===t&&n.iterator.return&&(i.method="return",i.arg=e,A(n,i),"throw"===i.method)||"return"!==t&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+t+"' method")),g;var o=c(a,n.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var l=o.arg;return l?l.done?(i[n.resultName]=l.value,i.next=n.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):l:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function _(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function P(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(n){if(n||""===n){var i=n[l];if(i)return i.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,o=function i(){for(;++a<n.length;)if(t.call(n,a))return i.value=n[a],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError((0,vt.A)(n)+" is not iterable")}return S.prototype=N,a(F,"constructor",{value:N,configurable:!0}),a(N,"constructor",{value:S,configurable:!0}),S.displayName=s(N,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===S||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,s(e,d,"GeneratorFunction")),e.prototype=Object.create(F),e},n.awrap=function(e){return{__await:e}},E(x.prototype),s(x.prototype,r,(function(){return this})),n.AsyncIterator=x,n.async=function(e,i,t,a,o){void 0===o&&(o=Promise);var l=new x(m(e,i,t,a),o);return n.isGeneratorFunction(i)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},E(F),s(F,d,"Generator"),s(F,l,(function(){return this})),s(F,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),i=[];for(var t in n)i.push(t);return i.reverse(),function e(){for(;i.length;){var t=i.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},n.values=T,C.prototype={constructor:C,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!n)for(var i in this)"t"===i.charAt(0)&&t.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function a(t,a){return r.type="throw",r.arg=n,i.next=t,a&&(i.method="next",i.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],r=l.completion;if("root"===l.tryLoc)return a("end");if(l.tryLoc<=this.prev){var d=t.call(l,"catchLoc"),s=t.call(l,"finallyLoc");if(d&&s){if(this.prev<l.catchLoc)return a(l.catchLoc,!0);if(this.prev<l.finallyLoc)return a(l.finallyLoc)}else if(d){if(this.prev<l.catchLoc)return a(l.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return a(l.finallyLoc)}}}},abrupt:function(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&t.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=e,l.arg=n,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),g},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),P(i),g}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===e){var t=i.completion;if("throw"===t.type){var a=t.arg;P(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,i,t){return this.delegate={iterator:T(n),resultName:i,nextLoc:t},"next"===this.method&&(this.arg=e),g}},n}var ea=i(58262),na=i(78723),ia=i(74169);var ta=i(51260),aa=i(85259),oa=function(e){var n=e.list,i=(0,bn.$L)(),t=(0,C.jI)(),a=(0,o.useCallback)((function(){i.event("list.presented",{listId:n.id,source:t})}),[n.id,t]),l=(0,An.s)({onPresentedFn:a});return o.createElement(W.E,{size:{xs:12,sm:12,md:6,lg:6,xl:6},ref:l},o.createElement(aa.W,{catalog:n,titleMargin:"4px"}))},la=function(e){var n=e.lists,i=(0,V.D)();return o.createElement(o.Fragment,null,o.createElement(O.i,{marginBottom:"40px",borderColor:i.colorTokens.border.neutral.tertiary.base}),o.createElement(B.DZ,{scale:"XS"},"Lists"),o.createElement(L.a,{marginTop:"32px"},o.createElement(C.Ne,{extendSource:!0,source:{name:"read_next_recirc"}},o.createElement(G.E,{alignItems:"flex-start"},n.map((function(e){return o.createElement(oa,{key:e.id,list:e})}))))),o.createElement(O.i,{marginTop:{xs:"16px",sm:"16px",md:"24px",lg:"24px",xl:"24px"},marginBottom:{xs:"32px",sm:"32px",md:"56px",lg:"56px",xl:"56px"},borderColor:i.colorTokens.border.neutral.tertiary.base}))},ra=function(e){var n=e.recirc,i=e.postCatalogRecirc,t=(0,V.D)(),a=(0,ta.Nw)("ShowHome",{}),l=null==n?void 0:n.items,r=null==i?void 0:i.catalogs;if(null==l||!l.length)return null;var d=Z(l),s=d.slice(0,2),m=d.slice(2);return o.createElement(P.P,{size:"app"},o.createElement(L.a,{paddingTop:"88px",paddingBottom:"40px"},o.createElement(B.DZ,{scale:{xs:"S",sm:"S",md:"M",lg:"M",xl:"M"}},"Recommended from Medium"),o.createElement(L.a,{marginTop:{xs:"40px",sm:"40px",md:"56px",lg:"56px",xl:"56px"}},o.createElement(Y,{items:s,source:"read_next_recirc"})),null!=r&&r.length?o.createElement(la,{lists:r}):null,o.createElement(Y,{items:m,source:"read_next_recirc"}),o.createElement(O.i,{marginBottom:{xs:"32px",sm:"32px",md:"24px",lg:"24px",xl:"24px"},borderColor:t.colorTokens.border.neutral.tertiary.base}),o.createElement(q.r,{href:a},"See more recommendations")))},da=i(71267),sa=i(65938),ma=i(10974),ca=i(22805),ua=i(97078),pa=i(15088),ka=i(36469),va=i(88474),ga=i(43002),fa=i(33735),Sa=i(39),Na=ht()({loading:function(){return null},loader:function(){return i.e(6999).then(i.bind(i,14701))},modules:["./GiveTipButton"],webpack:function(){return[14701]},render:(0,Et.X)("GiveTipButton")}),ha=function(e){var n=e.user,i=e.postId,t=(0,Ze.R)().value,a=t&&t.id===n.id,l=(0,ta.au)(),r=(0,Ot.z)({name:"can_send_tips_v0",placeholder:!1}),d="rgba(26, 137, 23, 1)"!==(0,V.D)().colorTokens.background.accent.primary.base,s=(0,k.ST)(l("ShowSettingsTab",{setting:ca.W.Account}),{},ua.cZ);return o.createElement(o.Fragment,null,a?o.createElement(Ke.$n,{buttonStyle:d?"STRONG":"BRAND",size:"SMALL",href:s},o.createElement(L.a,{whiteSpace:"nowrap"},"Edit profile")):o.createElement(L.a,{display:"flex"},o.createElement(fa.m,{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)},trackingV2:!0}),r&&o.createElement(Na,{creatorId:n.id,postId:i,buttonStyle:d?"STRONG":"BRAND"})))},ya=function(e){var n,i=e.user,t=e.collection,a=!(null===(n=t.editors)||void 0===n||!n.find((function(e){var n;return(null==e||null===(n=e.user)||void 0===n?void 0:n.id)===i.id}))),l=(0,Sa.Z)({name:"detail",scale:"M",color:"LIGHTER",clamp:1}),r=(0,wn.l)();return o.createElement("div",{className:r([l,{display:"flex",whiteSpace:"pre-wrap"}])},o.createElement(ge.d,{margin:"0 8px"}),o.createElement(L.a,{tag:"span",flexShrink:"0"},a?"Editor for ":"Writer for "),o.createElement(ga.w,{collection:t,clamp:1,trackingV2:!0}))},ba=function(e){var n=e.user,i=e.postId,t=e.collection,a=(0,V.D)(),l=(0,R.f)(n),r=(0,va.E)(n),d=(0,me.U)(),s=d===z.i.xs||d===z.i.sm,m=s?64:72,c=s?24:32;return o.createElement(C.Ne,{source:{dimension:"post_author_info"},extendSource:!0},o.createElement(P.P,{size:"app"},o.createElement(L.a,{marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"flex-end"},o.createElement(pa.h,{author:n,collection:t,authorSize:m,collectionImageSize:c,collectionOffset:"-16px",borderColor:a.colorTokens.background.neutral.tertiary.base}),o.createElement(M.V,{xs:!0,sm:!0},o.createElement(ha,{user:n,postId:i}))),o.createElement(L.a,{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},o.createElement(L.a,null,o.createElement(L.a,{display:"flex",alignItems:"center"},o.createElement(le.N,{href:l,rules:{display:"flex",alignItems:"center"}},o.createElement(sa.y,{prefix:"Written by ",publisher:n,scale:"M"})),r&&o.createElement(ka.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(L.a,{marginTop:"8px",display:"flex"},o.createElement(L.a,{flexShrink:"0"},o.createElement(ma.T,{publisher:n,scale:"M",color:"DARKER",inline:!0,showWhenZero:!0})),t&&o.createElement(ya,{user:n,collection:t})),o.createElement(L.a,{marginTop:"16px"},o.createElement(da.F,{publisher:n,color:"DARKER"}))),o.createElement(M.V,{md:!0,lg:!0,xl:!0},o.createElement(ha,{user:n,postId:i}))),o.createElement(O.i,{marginTop:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"},borderColor:a.colorTokens.border.neutral.tertiary.base})))},Fa=i(55127),Ea=i.n(Fa),xa=i(14500),wa=i(91271),Aa=i(26073),_a=i(49341),Pa=i(11334),Ca=i(56774),Ta=i(40064),Da=function(e){var n,i,t=e.publisher,a=(0,Sa.Z)({name:"detail",scale:"M",color:"LIGHTER"}),l=(0,wn.l)(),r="Collection"===t.__typename&&(null===(n=t.latestPostsConnection)||void 0===n?void 0:n.posts),d=r&&r.length>0?r[0].latestPublishedAt:null,s="User"===t.__typename?null===(i=t.userPostCounts)||void 0===i?void 0:i.publishedRootPosts:null;return d||s?o.createElement("div",{className:l([a,{display:"flex",whiteSpace:"pre-wrap"}])},o.createElement(ge.d,{margin:"0 8px"}),s&&o.createElement(L.a,{tag:"span",flexShrink:"0"},(0,gi.Ct)(s)," ",Ea()("Story",s)),d&&o.createElement(o.Fragment,null,o.createElement(L.a,{tag:"span",flexShrink:"0"},"Last published "),o.createElement(wa.n9,{timestamp:d,isShorthand:!0}))):null},Ia=function(e){var n=e.publisher,i=e.postId,t=(0,Ze.R)().value,a=(0,ta.au)(),l=(0,Ot.z)({name:"can_send_tips_v0",placeholder:!1}),r=(0,V.D)(),d=(0,Ft.qt)().baseTheme,s=(0,Ta._I)(r,d),m="User"===n.__typename,c=t&&t.id===n.id,u=(0,k.ST)(a("ShowSettingsTab",{setting:ca.W.Account}),{},ua.cZ);return o.createElement(Pa.N,{theme:s},c?o.createElement(Ke.$n,{buttonStyle:"BRAND",size:"REGULAR",href:u},o.createElement(L.a,{whiteSpace:"nowrap"},"Edit profile")):o.createElement(L.a,{display:"flex"},o.createElement(_a.o,{publisher:n,buttonSize:"REGULAR",susiEntry:"follow_profile",buttonStyleFn:function(e){return e?"SUBTLE":"BRAND"},trackingV2:!0}),l&&m&&o.createElement(Na,{creatorId:n.id,postId:i,buttonStyle:"BRAND"})))},Ra=function(e){var n=e.publisher,i=e.postId,t="User"===n.__typename,a=(0,va.E)(t?n:void 0),l=(0,Ca.X)({entity:n,trackingV2:!0});return o.createElement(L.a,{display:"flex",flexDirection:{xl:"row",lg:"row",md:"row",sm:"column",xs:"column"},ref:l},o.createElement(L.a,{marginRight:{xl:"24px",lg:"24px",md:"24px",sm:"0",xs:"0"},marginBottom:{xl:"0",lg:"0",md:"0",sm:"16px",xs:"16px"},display:"flex",justifyContent:"space-between"},o.createElement(Aa.K,{publisher:n,scale:"L",link:!0}),o.createElement(M.V,{sm:!0,xs:!0,alignSelf:"flex-end"},o.createElement(Ia,{publisher:n,postId:i}))),o.createElement(L.a,{display:"flex",flexDirection:"column",flexGrow:"1",flexShrink:"1"},o.createElement(L.a,{maxWidth:{xl:"500px",lg:"500px",md:"500px",sm:"100%",xs:"100%"}},o.createElement(xa.B,{publisher:n,rules:{display:"flex",alignItems:"center"}},o.createElement(sa.y,{prefix:t?"Written by ":"Published in ",publisher:n,scale:"M"}),t&&a&&o.createElement(ka.G,{marginLeft:"2px",marginTop:"1px",size:"M",userId:n.id})),o.createElement(L.a,{marginTop:"8px",display:"flex",alignItems:"baseline"},o.createElement(L.a,{flexShrink:"0"},o.createElement(ma.T,{publisher:n,scale:"M",color:"LIGHTER",inline:!0,showWhenZero:!0})),o.createElement(Da,{publisher:n})),o.createElement(L.a,{marginTop:"16px"},o.createElement(da.F,{publisher:n,color:"DARKER"})))),o.createElement(M.V,{xl:!0,lg:!0,md:!0},o.createElement(Ia,{publisher:n,postId:i})))},Oa=function(e){var n=e.user,i=e.collection,t=e.postId,a=(0,V.D)();return o.createElement(P.P,{size:"app"},o.createElement(C.Ne,{source:{dimension:"post_author_info"},extendSource:!0},o.createElement(Ra,{publisher:n,postId:t})),i&&o.createElement(L.a,{marginTop:{xs:"48px",sm:"48px",md:"56px",lg:"56px",xl:"56px"}},o.createElement(C.Ne,{source:{dimension:"post_publication_info"},extendSource:!0},o.createElement(Ra,{publisher:i,postId:t}))),o.createElement(O.i,{marginTop:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"},borderColor:a.colorTokens.border.neutral.tertiary.base}))},La=i(30749),Ma=i(62464),Ba=i(97595),Va=i(14153),ja=i(52144),Ua={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.A)(Ba.D.definitions),(0,N.A)(Va.p.definitions),(0,N.A)(ja.P.definitions))},Wa={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.A)(Ua.definitions))},Ga=i(27895),za=function(e){var n,i,t=e.post,l=e.isVisible,r=o.useContext(_i.u).openSidebar,d=(0,a.I)(Wa,{variables:{postId:t.id},ssr:!1}),s=d.data,m=d.loading,c=d.error;return m?null:(i=c||null==s||!s.post?t:s.post,o.createElement(Ga.$,{isVisible:l,multiVoteButton:o.createElement(xi.W,{post:i,buttonStyle:"SUBTLE_MARGIN",hasDialog:!0,shouldHideClapsText:!0,shouldShowResponsiveLabelText:!0,susiEntry:"clap_footer",buttonColor:"LIGHTER",countScale:"S"}),responsesButton:o.createElement(Ai._,{responsesCountScale:"S",trackingData:{postId:i.id},responsesCount:(null===(n=i.postResponses)||void 0===n?void 0:n.count)||null,isLimitedState:i.isLimitedState,isPublished:i.isPublished,handleClick:r,countStylesOverride:{marginLeft:"4px"},allowResponses:i.allowResponses}),saveButton:o.createElement(Ma.Q,{kind:en.Bd.POST,target:i})}))},Za=i(70663),Ha=i(78493),Ya=i(14852),qa=i(80890),Ka=["title","includeStar","benefits","onClick","href","buttonContent","post","highlightText"],Qa={marginRight:"8px",height:"16px",width:"16px"},Xa=function(e){return{backgroundColor:e.colorTokens.foreground.utilityYellow.primary.base,marginLeft:"16px",borderRadius:"4px",fontFamily:qa.p0,fontWeight:500,fontSize:"12px",lineHeight:"132%",letterSpacing:"-0.192px",padding:"4px 8px"}},$a=function(e){var n=e.title,i=e.includeStar,t=e.benefits,a=e.onClick,l=e.href,r=e.buttonContent,d=e.post,s=e.highlightText,m=(0,gt.A)(e,Ka),c=(0,wn.l)();return o.createElement(L.a,(0,Ge.A)({borderRadius:"4px",backgroundColor:"BACKGROUND",border:"neutral.primary",padding:"24px",width:{xs:"100%",sm:"100%",md:"320px",lg:"320px",xl:"320px"},display:"flex",flexDirection:"column",justifyContent:"space-between"},m),o.createElement(L.a,null,o.createElement(L.a,{display:"flex",alignItems:"center",justifyContent:"space-between"},o.createElement(L.a,{display:"flex",alignItems:"center"},i&&o.createElement(_n.A,{className:c(Qa)}),o.createElement(B.DZ,{scale:"XS"},n)),s&&o.createElement("div",{className:c(Xa)},s)),o.createElement(L.a,{marginTop:"16px",height:"1px",backgroundColor:"BASE_NORMAL"}),t.map((function(e,n){return o.createElement(L.a,{key:n,marginTop:"16px",display:"flex"},o.createElement(L.a,{marginRight:"12px"},o.createElement(Ya.a,{size:"16"})),o.createElement(re.kZ,{scale:"M",color:"DARKER"},e))}))),o.createElement(L.a,null,o.createElement(L.a,{marginTop:"24px",marginBottom:"16px",height:"1px",backgroundColor:"BASE_NORMAL"}),o.createElement(zn.r,{operation:"register",susiEntry:"lo_non_moc_upsell",isButton:!0,buttonStyle:"BRAND",redirectTo:l,additionalClickActions:a,buttonWidth:"100%",post:d},r)))},Ja=i(77587),eo=i(20026),no={xs:"440px",sm:"440px",md:"1192px",lg:"1192px",xl:"1192px"},io={position:"absolute",bottom:"0",left:"0",zIndex:"-1"},to=["Distraction-free reading. No ads.","Organize your knowledge with lists and highlights.","Tell your story. Find your audience."],ao=function(e){var n=e.post,i=(0,bn.$L)(),t=(0,Ha.xu)({membershipType:Ha.yV.Monthly}),a=t.amount,l=t.currency,r=(0,ta.au)(),d=(0,o.useCallback)((function(){i.event("upsell.clicked",{dimension:"post_footer_upsell",entryPoint:"free_benefits"})}),[i]),s=(0,o.useCallback)((function(){i.event("upsell.clicked",{dimension:"post_footer_upsell",entryPoint:"membership_benefits"})}),[i]);return o.createElement(L.a,{display:"flex",flexDirection:{xs:"column",sm:"column",md:"column",lg:"column",xl:void 0},alignItems:"center"},o.createElement(U.pg,{miroId:"5c50caa54067fd622d2f0fac18392213bf92f6e2fae89b691e62bceb40885e74",rules:io}),o.createElement(L.a,{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(M.V,{marginBottom:"16px",xs:!0,sm:!0},o.createElement(Za.S,{size:"XS"})),o.createElement(M.V,{marginBottom:"32px",md:!0,lg:!0,xl:!0},o.createElement(Za.S,{size:"M"})),o.createElement($e.mz,{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(L.a,{display:"flex",flexDirection:{xs:"column",sm:"column",md:void 0,lg:void 0,xl:void 0},alignItems:"stretch"},o.createElement($a,{title:"Free",benefits:to,buttonContent:"Sign up for free",onClick:d,post:n,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($a,{title:"Membership",includeStar:!0,benefits:[Ja.$7,Ja.Rz,Ja.Xo].concat((0,N.A)(Ja.Mu)),buttonContent:"Try for ".concat((0,eo.vv)({amount:a,currency:l,floatingDigits:[0,2]}),"/month"),onClick:s,href:r("ShowPay",{}),post:n})))},oo=i(3326),lo=i(72113),ro=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"}}},so=function(e){var n=e.hide,i=e.height,t=e.containerRef,a=e.post,l=e.isVisible,r=e.setIsVisible,d=(0,o.useRef)(0),s=(0,o.useRef)(0),m=(0,me.U)();return(0,o.useEffect)((function(){if(i>0&&!l&&r(!0),m&&m!==z.i.xl&&!(i<window.innerHeight/2)){var e=function(){var e=window.scrollY,n=i-window.innerHeight/2,a=i>window.innerHeight?n:Math.min(i/2,n),o=e<=0?0:Math.min(a,s.current+e-d.current);s.current=Math.max(0,o),d.current=e,t.current&&(t.current.style.removeProperty("bottom"),0===s.current?t.current.style.top="50vh":t.current.style.top="calc(50vh - ".concat(s.current,"px)"))};return e(),window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}t.current&&(t.current.style.removeProperty("top"),t.current.style.bottom="0")}),[i,m]),o.createElement(L.a,{maxWidth:no},o.createElement(lo.I,{onClose:n,containerProps:{position:"absolute",top:"16px",right:"16px",padding:"0"}}),o.createElement(ao,{post:a}))},mo=function(e){var n=e.hide,i=e.post,t=(0,bn.$L)(),a=(0,o.useState)(0),l=(0,We.A)(a,2),r=l[0],d=l[1],s=(0,o.useState)(!1),m=(0,We.A)(s,2),c=m[0],u=m[1];return(0,o.useEffect)((function(){t.event("upsell.viewed",{dimension:"post_footer_upsell",postId:i.id})}),[i.id]),o.createElement(oo.r,{height:r,setHeight:d,isVisible:!0,hideDirection:"down",containerRules:ro(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,t=e.containerRef;return o.createElement(so,{height:r,hide:n,containerRef:t,post:i,isVisible:c,setIsVisible:u})}))},co=i(60603),uo=i(4441),po=30*$t.ei,ko=function(){return null},vo=["9db0094a1e0f","f03bf92035c9"],go=function(e){var n=e.post,i=e.postIsLocked,t=(0,me.U)(),a=t===z.i.xs||t===z.i.sm,r=function(e,n){var i,t=(0,p.d4)((function(e){return e.client.hydrated})),a=(0,bn.$L)(),r=(0,Ze.R)(),d=r.value,s=r.error,m=r.loading,c=!m&&!s&&!d,u=(0,co.e)(!1),k=(0,We.A)(u,2),v=k[0],g=k[1],f=(0,uo.y)((0,dt.D9)(),po),S=(0,o.useCallback)((function(){(0,dt.pm)(new Date),a.event("upsell.dismissed",{dimension:"post_footer_upsell"}),g()}),[a,g]),N=(0,l.zy)(),h=(0,ta.W5)(N.pathname),y="post"===(null==h||null===(i=h.route)||void 0===i?void 0:i.mediumAppPage);return!t||m?{isLoading:!0,isVisible:!1,hide:ko,click:ko,isDiscount:!1}:vo.includes(e)||n||!y||!c||!t||v||f?{isLoading:!1,isVisible:!1,hide:ko}:{isLoading:!1,isVisible:!0,hide:S}}(n.id,i),d=r.isLoading,s=r.isVisible,m=r.hide,c=a&&!s&&!d;if(!c&&!s)return null;var u=c?Ve.x:0;return o.createElement(La.N,{maxHeightToHideOnScroll:u,isUpsellVisible:s},(function(e){var i=e.isStuck;return o.createElement(o.Fragment,null,s&&o.createElement(C.Ne,{extendSource:!0,source:{dimension:"post_footer_upsell",postId:n.id}},o.createElement(Ft.Cq,null,o.createElement(mo,{hide:m,post:n}))),c&&o.createElement(za,{post:n,isVisible:i}))}))},fo=function(e){var n=e.post,i=e.recirc,t=e.postCatalogRecirc,r=e.catalog,d=e.authorCollectionRecircFeed,s=e.postViewerEdgeLoading,m=(0,V.D)(),c=o.useRef(null),k=(0,Ze.R)().value,v=(0,pe._)(),g=n.isLocked,f=n.collection,S=n.creator,N=n.content.isLockedPreviewOnly,h=(0,Ot.z)({name:"enable_prototype_boost_labeling",placeholder:!1}),y=(0,st.N)({post:n,includeFirstBoostedAt:!!h}).firstBoostedAt,b=(0,ai.D)({post:n,postBodyRef:c,postViewerEdgeLoading:s,firstBoostedAt:y}),F=!!n.inResponseToEntityType,E=g?{className:"meteredContent"}:{},x=(f||{}).googleAnalyticsId;return(0,Be.j)({ids:x?[x]:null}),(0,ea.n)(c,n),function(e,n,i){var t=(0,bn.$L)(),a=(0,C.jI)(),l=(0,o.useState)(!1),r=(0,We.A)(l,2),d=r[0],s=r[1],m=(0,ze.wA)(),c=(0,na.L)(),u=function(){var e=(0,na.L)(),n=(0,Ot.z)({name:"enable_member_nps_survey",placeholder:!1}),i=(0,Ze.R)(),t=i.loading,a=i.value;return(0,o.useCallback)((function(){n&&!t&&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,t,a,e])}();(0,o.useEffect)((function(){if(!d&&i){var o=function(){if(n.current&&!d){var o,l=(0,ia.G9)(n.current),r=(0,ia.$5)(l),p=r.top+r.height,k=(0,ia.$5)((0,ia.$S)()),v=k.top+k.height;if(!i.content.isLockedPreviewOnly&&v>=p-100&&a.includes("post_page")){s(!0),m((0,nn.jo)(!0));var g={source:a,postId:i.id,collectionSlug:i.collection?i.collection.slug:"",sequenceId:i.sequence?i.sequence.sequenceId:""};t.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=i.id,ot(Ji,o,Date.now()))}}};return Je.R5.on("scroll_end",o),function(){Je.R5.off("scroll_end",o)}}}),[d,i,c,u]),(0,o.useEffect)((function(){return function(){m((0,nn.jo)(!1))}}),[])}(!!k,c,n),function(e){var n=e.post,i=e.clientViewedContext,t=void 0===i?1:i,l=e.overrideCommonData,r=void 0===l?{}:l,d=e.postViewerEdgeLoading;(function(e){var n,i,t=e.post,o=(0,p.d4)((function(e){return e.config.authDomain})),l=null==t?void 0:t.id,r=(0,Qi.cd)(null==t?void 0:t.creator),d=r.viewerEdge,s=r.loading,m=(0,He.J)(null==t?void 0:t.collection),c=m.viewerEdge,u=m.loading,k=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=(0,a.I)(Ki,{variables:{topicId:n},ssr:!1,skip:!n}),t=i.loading,o=i.error,l=i.data;return t?{loading:t}:o?{error:o}:{viewerEdge:null==l||null===(e=l.topic)||void 0===e?void 0:e.viewerEdge}}(null==t||null===(n=t.primaryTopic)||void 0===n?void 0:n.id),v=k.viewerEdge,g=k.loading,f=u||s||g;(0,qi.O)({data:{canonicalUrl:l&&null!=t&&null!==(i=t.collection)&&void 0!==i&&i.domain?(0,T.KI2)(o,l):void 0,creatorViewerEdge:d,collectionViewerEdge:c,post:t||void 0,topicViewerEdge:v},loading:!l||f||!(null!=t&&t.isPublished),show:!0})})({post:n}),function(e){var n=e.post,i=e.clientViewedContext,t=e.overrideCommonData,a=void 0===t?{}:t,l=e.postViewerEdgeLoading,r=(0,bn.$L)(),d=(0,lt.A)(),s=d.loading,m=d.viewerId,c=m&&(0,rt.C)(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,f=(0,C.jI)();o.useEffect((function(){!s&&g&&m&&!l&&(null!=n&&n.isPublished?(c||(n.isLocked?(0,dt.$r)():(0,dt.qo)()),r.event("post.clientViewed",{postId:g,collectionId:p,collectionSlug:k,context:i,isFriendLink:!!v,source:f,isTruncated:n.content.isLockedPreviewOnly,postShareKey:v},a)):r.event("post.draftViewed",{postId:g}),c||function(e){ot($i,e,Date.now())}(g))}),[g,m,s,l,v])}({post:n,clientViewedContext:t,overrideCommonData:r,postViewerEdgeLoading:d})}({post:n,postViewerEdgeLoading:s}),function(e){var n=(0,Ze.R)().value,i=(0,ni.n)(ii,{variables:{postId:e.id}}),t=(0,We.A)(i,2),a=t[0],l=t[1].called;o.useEffect((function(){e.isPublished||null==n||!n.id||l||a()}),[n])}(n),function(){var e=(0,nn.zF)(),n=(0,o.useState)(!0),i=(0,We.A)(n,2),t=i[0],a=i[1],l=(0,Ze.R)().value,r=(0,p.ZA)((function(e){return e.session.xsrf})),d=(0,u.MW)(),s=(0,C.PJ)(d||"").name;(0,o.useEffect)((function(){function e(){return(e=(0,ft.A)(Jt().mark((function e(){var n;return Jt().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,dt.V7)(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*$t.CJ&&!t&&"login"===s&&(e({toastStyle:"SIGN_IN_CONFIRMATION",duration:"FOREVER"}),a(!0),(0,dt.u2)(l.id,r))}),[l,t,e,s,r])}(),function(e){var n,i,t,r,d=function(){var e,n=(0,l.zy)().hash;if(n.startsWith("#id_token"))return{};var i=null==n||null===(e=n.replace("#",""))||void 0===e?void 0:e.split("-"),t=(0,We.A)(i,2);return{activeGrafId:t[0],activeNoteId:t[1]}}(),s=d.activeGrafId,m=d.activeNoteId,c=(0,p.d4)((function(e){return e.navigation.referrer})),k=(0,u.WZ)(),v=(0,u.MW)(),g=(0,a.I)(ct,{variables:{postId:null==e?void 0:e.id,postMeteringOptions:{referrer:c,sk:k,source:v}},ssr:!1,skip:!m}),f=g.loading,S=g.error,N=g.data,h=(null!=N?N:{}).post,y=null==h||null===(n=h.privateNotes)||void 0===n?void 0:n.find((function(e){return(null==e?void 0:e.id)===m})),b=null!==(i=null==h||null===(t=h.content)||void 0===t||null===(r=t.bodyModel)||void 0===r?void 0:r.paragraphs)&&void 0!==i?i:[],F=new Set(b.map((function(e){return e.name})).filter(mt.se)),E=!!y&&!!s&&F.has(s),x=!(f||S||!m||E),w=(0,ze.wA)();(0,o.useEffect)((function(){x&&w((0,nn.MZ)({duration:"NEXTPAGE",message:"The note you're looking for was deleted."}))}),[x,w,nn.MZ])}(n),o.createElement(L.a,null,o.createElement(C.Ne,{source:{dimension:"post_top_nav_upsell"}},o.createElement(vn.w,{isPostLocked:!!g})),o.createElement(Rt,{post:n},o.createElement(hi,{post:n}),o.createElement(Xt,null),o.createElement(Gt.f,{post:n,user:S,forceLoad:(null==k?void 0:k.id)===(null==S?void 0:S.id)}),o.createElement(L.a,{marginBottom:{xs:"4px",sm:"4px",md:"68px",lg:"68px",xl:"68px"}},o.createElement(P.P,{size:"app"},F&&o.createElement(L.a,{marginTop:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"},marginBottom:{xs:"32px",sm:"32px",md:"40px",lg:"40px",xl:"40px"}},o.createElement(ti.d,{post:n}))),o.createElement("article",E,o.createElement(L.a,null,o.createElement(Wt,{post:n},o.createElement(L.a,null,o.createElement(yi.N,{isAuroraPostPageEnabled:!0,post:n,ref:c,richTextStyle:"FULL_PAGE",postBodyInserts:b}))))),o.createElement(ei,{post:n})),o.createElement(go,{post:n,postIsLocked:!!g}),!N&&o.createElement(Yi,{post:n}),o.createElement(Ue,{isDockingEnabled:!1,undockedBackgroundColor:"BACKGROUND",maxWidthSize:"app",marginBottom:{xs:"80px",sm:"80px",md:"88px",lg:"88px",xl:"88px"}},o.createElement(C.Ne,{source:{dimension:"footer_actions"},extendSource:!0},o.createElement(Pi,{post:n,socialPopoverPosition:"end"})))),"Catalog"===(null==r?void 0:r.__typename)&&o.createElement(ye,{currentPostId:n.id,catalog:r}),o.createElement(L.a,{backgroundColor:"BASE_LIGHT",paddingTop:{xs:"48px",sm:"48px",md:"72px",lg:"72px",xl:"72px"}},S&&o.createElement(o.Fragment,null,v?o.createElement(Oa,{user:S,collection:f,postId:n.id}):o.createElement(ba,{user:S,postId:n.id,collection:f}),o.createElement(K,{postId:n.id,authorCollectionRecircFeed:d,user:S,collection:f})),o.createElement(ra,{recirc:i,postCatalogRecirc:t}),o.createElement(M.V,{lg:!0,xl:!0},o.createElement(O.i,{marginTop:"72px",borderColor:m.colorTokens.border.neutral.tertiary.base}),o.createElement(P.P,{size:"app"},o.createElement(kn.j,{padding:"24px 0",spacing:"L",detailScale:"S"})))),o.createElement(pn,{post:n}))},So=i(17290),No=i(33487),ho=i(30898),yo=i(16729),bo=i(8686),Fo=i(82567),Eo={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.A)(Ee.s.definitions),(0,N.A)(No.l.definitions),(0,N.A)(ho.c.definitions),(0,N.A)(yo.e.definitions),(0,N.A)(bo.W.definitions))},xo={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.A)(Fo.$.definitions),(0,N.A)(xe.v.definitions))},wo=i(89704),Ao=i(7541),_o=i(52859),Po={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPublisherInfo_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:"Field",name:{kind:"Name",value:"name"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userPostCounts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeResponsesCount"},value:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishedRootPosts"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherLink_user"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"latestPostsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"1"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"latestPublishedAt"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherLink_collection"}}]}},{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:"PublisherAvatar_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherFollowButton_publisher"}}]}}].concat((0,N.A)(Ee.s.definitions),(0,N.A)(wo.t.definitions),(0,N.A)(wo.C.definitions),(0,N.A)(No.l.definitions),(0,N.A)(ho.c.definitions),(0,N.A)(yo.e.definitions),(0,N.A)(Ao.j.definitions),(0,N.A)(_o.f.definitions))},Co={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPublishersInfoSection_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostPublisherInfo_publisher"}}]}}].concat((0,N.A)(Po.definitions))},To={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPublishersInfoSection_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostPublisherInfo_publisher"}}]}}].concat((0,N.A)(Po.definitions))},Do=i(71324),Io=i(48049),Ro=i(62742),Oo={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.A)(Ro.CV.definitions))},Lo={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.A)(Oo.definitions),(0,N.A)(jn.definitions))},Mo=i(45547),Bo=i(14130),Vo={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.A)(Bo.VX.definitions))},jo={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.A)(Vo.definitions))},Uo={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.A)(jo.definitions))},Wo=i(9078),Go=i(14029),zo={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostFooterActionsBar_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:"visibility"}},{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:"Field",name:{kind:"Name",value:"isLimitedState"}},{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"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVote_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostSharePopover_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenuButton_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BookmarkButton_post"}}]}}].concat((0,N.A)(Ba.D.definitions),(0,N.A)(Wo.S.definitions),(0,N.A)(Va.p.definitions),(0,N.A)(Go.Q.definitions))},Zo=i(17441),Ho={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.A)([{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"}}]}}]))},Yo={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.A)(F.v0.definitions),(0,N.A)(Ho.definitions),(0,N.A)(Zo.H4.definitions))},qo=i(36305),Ko={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:"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:"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.A)(F.v0.definitions),(0,N.A)(Yo.definitions),(0,N.A)(qo.l.definitions),(0,N.A)(qo.H.definitions),(0,N.A)(Zo.TW.definitions),(0,N.A)(Zo.m_.definitions),(0,N.A)(Zo.G5.definitions),(0,N.A)(Zo.H4.definitions))},Qo={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.A)([{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"}}]}}]}}]))},Xo=i(42144),$o=i(52897),Jo={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.A)(Ee.s.definitions),(0,N.A)(F.v0.definitions),(0,N.A)(be.pB.definitions),(0,N.A)($o.l.definitions))},el={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.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"shouldShowPublishedInStatus_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"statusForCollection"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}}]}}]))},nl={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DraftStatus_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:"pendingCollection"},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:"FragmentSpread",name:{kind:"Name",value:"BoldCollectionName_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"statusForCollection"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"isPublished"}}]}}].concat((0,N.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"BoldCollectionName_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"}}]}}]))},il={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.A)(xe.v.definitions),(0,N.A)(el.definitions),(0,N.A)(nl.definitions))},tl={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.A)(Jo.definitions))},al={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.A)(il.definitions),(0,N.A)(Ba.D.definitions),(0,N.A)(Go.Q.definitions),(0,N.A)([{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.A)(Wo.S.definitions),(0,N.A)(Va.p.definitions))},ol={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.A)(w.definitions),(0,N.A)(b.definitions))},ll={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.A)(Xo.z8.definitions),(0,N.A)(Xo.Cg.definitions),(0,N.A)(tl.definitions),(0,N.A)([{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.A)(al.definitions),(0,N.A)([{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.A)(ol.definitions))},rl={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.A)([{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"}}]}}]}}]))},dl={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.A)([{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.A)(rl.definitions))},sl=i(54814),ml={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:"FragmentSpread",name:{kind:"Name",value:"PostPublishersInfoSection_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:"FragmentSpread",name:{kind:"Name",value:"PostPublishersInfoSection_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.A)(So.M.definitions),(0,N.A)(xo.definitions),(0,N.A)(ne.definitions),(0,N.A)(To.definitions),(0,N.A)(Do.Z.definitions),(0,N.A)(Io.x.definitions),(0,N.A)(Eo.definitions),(0,N.A)(ee.definitions),(0,N.A)(Co.definitions),(0,N.A)(Lo.definitions),(0,N.A)(Mo.KU.definitions),(0,N.A)(Uo.definitions),(0,N.A)([{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.A)(zo.definitions),(0,N.A)([{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.A)(Ko.definitions),(0,N.A)(Io.W.definitions),(0,N.A)(Qo.definitions),(0,N.A)(ll.definitions),(0,N.A)([{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.A)(dl.definitions),(0,N.A)(sl.W.definitions),(0,N.A)([{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"}}]}}]}}]))},cl=i(10531),ul=function(){var e=(0,me.U)()||z.i.lg,n=e===z.i.xs||e===z.i.sm?2:3;return o.createElement(L.a,{height:"100vh"},o.createElement(L.a,{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",marginBottom:"16px",width:"100%",marginTop:"48px"},o.createElement(L.a,{width:"80%",height:{xs:"40px",sm:"40px",md:"48px",lg:"48px",xl:"48px"},marginBottom:"24px",backgroundColor:"BASE_NORMAL"}),o.createElement(L.a,{display:"flex",marginBottom:{xs:"44px",sm:"44px",md:"52px",lg:"52px",xl:"52px"}},o.createElement(L.a,{height:"44px",width:"44px",backgroundColor:"BASE_NORMAL",borderRadius:"50%",marginRight:"12px"}),o.createElement(L.a,{margin:"auto 0"},o.createElement(L.a,{height:"16px",marginBottom:"4px",width:"120px",backgroundColor:"BASE_NORMAL"}),o.createElement(L.a,{height:"16px",width:"80px",backgroundColor:"BASE_NORMAL"}))),Array.from(Array(n)).map((function(e,n){return o.createElement(L.a,{key:n,width:"100%",marginBottom:{xs:"32px",sm:"32px",md:"48px",lg:"48px",xl:"48px"}},o.createElement(L.a,{width:"96%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(L.a,{width:"98%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(L.a,{width:"100%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(L.a,{width:"98%",height:"24px",marginBottom:"8px",backgroundColor:"BASE_NORMAL"}),o.createElement(L.a,{width:"81%",height:"24px",backgroundColor:"BASE_NORMAL"}))}))))},pl=function(){return o.createElement(cl.H,{itemPlaceholder:ul,numPlaceholders:1})};function kl(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function vl(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?kl(Object(i),!0).forEach((function(n){(0,t.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):kl(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var gl=function(e){var n,i,t,l,r,d,s=(0,T.quc)({params:e})||"",m=(0,p.d4)((function(e){return e.client.viewerIsBot})),c=(0,a.I)(ml,{variables:{postId:s,postMeteringOptions:{}},skip:!s}),k=(0,a.I)(Le,{variables:{postId:s},skip:!s,ssr:m}),v=(0,a.I)(Me,{variables:{postId:s},skip:!s,ssr:m}),g=(0,u.MW)(),f=(0,o.useMemo)((function(){return(0,C.PJ)(null!=g?g:"")}),[g]).catalogId,S=(0,a.I)(ie,{variables:{input:{postId:s,paging:{limit:4}}},skip:!s,ssr:m}),N=(0,a.I)(De,{variables:{catalogId:null!=f?f:"",limit:11},skip:!s||!f,ssr:m}),h=null===(n=c.data)||void 0===n?void 0:n.postResult,y="Post"===(null==h?void 0:h.__typename)&&!(null==h||null===(i=h.content)||void 0===i||!i.isLockedPreviewOnly),b=_(s,y),F=b.content,E=!!b.loading,x=h&&F?vl(vl({},h),{},{content:F}):h,w=null===(t=k.data)||void 0===t?void 0:t.recirc,A=null===(l=v.data)||void 0===l?void 0:l.postCatalogRecirc,P=null===(r=S.data)||void 0===r?void 0:r.authorCollectionRecircFeed,D=null===(d=N.data)||void 0===d?void 0:d.catalogById;return o.useMemo((function(){return{loading:c.loading||E,postQueryResult:c,postResult:x,postViewerEdgeLoading:E,recirc:w,postCatalogRecirc:A,catalog:D,authorCollectionRecircFeed:P}}),[c,x,w,D,A,E,P])},fl=o.memo((function(e){var n=e.postQueryResult,i=e.postResult,t=e.recirc,a=e.postCatalogRecirc,c=e.authorCollectionRecircFeed,u=e.catalog,p=e.params,k=e.postViewerEdgeLoading,v=(0,T.quc)({params:p})||"",g=n.loading,f=n.error,N=(0,l.zy)(),h=o.useMemo((function(){return{name:"post_page",postId:v}}),[v]);return v?g?o.createElement(P.P,{size:"inset"},o.createElement(pl,null)):f?o.createElement(r.z,{error:f}):(0,m.M)(i)?o.createElement(m.a,{postResult:i}):o.createElement(S,{post:i,matchedPath:N.pathname,key:v},o.createElement(C.Ne,{source:h},i.creator&&o.createElement(s.F,{user:i.creator}),o.createElement(fo,{post:i,recirc:t,postCatalogRecirc:a,postViewerEdgeLoading:k,authorCollectionRecircFeed:c,catalog:u}))):o.createElement(d.u,null)}))},71324:(e,n,i)=>{"use strict";i.d(n,{Z:()=>t});var t={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"}}]}}]}}]}}]}},42680:(e,n,i)=>{"use strict";i.d(n,{F:()=>o});var t=i(96540),a=i(52290),o=function(e){var n,i,o,l,r=e.user,d=null===(n=r.linkedAccounts)||void 0===n||null===(i=n.mastodon)||void 0===i?void 0:i.domain,s=null===(o=r.linkedAccounts)||void 0===o||null===(l=o.mastodon)||void 0===l?void 0:l.username;return d&&s?t.createElement(a.a,{display:"none"},t.createElement("a",{rel:"me",href:"https://".concat(d,"/@").concat(s)},"Mastodon")):null}},77587:(e,n,i)=>{"use strict";i.d(n,{$7:()=>u,$v:()=>N,Mu:()=>v,Rz:()=>k,Xo:()=>p,uo:()=>S});var t=i(45458),a=i(96540),o=i(52290),l=i(14852),r=i(36557),d=i(56942),s=i(42976),m=i(56173),c="Customize app icon",u="Read member-only stories",p="Earn money for your writing",k="Support writers you read most",v=["Listen to audio narrations","Read offline with the Medium app"],g="Access our Mastodon community",f=["Connect your custom domain","Create your own publications"],S=function(e){var n=e.children,i=e.isStrongText,t=e.isStarIcon,c=a.createElement(r.kZ,{scale:"M",color:"DARKER","data-testid":"benefit-text"},n);return i&&(c=a.createElement(d.DZ,{scale:"XS",color:"NORMAL","data-testid":"benefit-text"},n)),a.createElement(o.a,{tag:"li",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"8px"},a.createElement(o.a,{display:"flex",alignSelf:"flex-start",marginTop:i?"3px":"2px",width:"16px",height:"16px"},t?a.createElement(m.s,{tier:s.T3.MEMBER,size:16}):a.createElement(l.a,{color:"foreground.accent.primary",size:"16",role:"presentation","aria-hidden":"true",focusable:"false"})),a.createElement(o.a,{display:"flex",textAlign:"left"},c))},N=function(e){var n=e.iconType,i=e.membershipTier,o=void 0===i?s.T3.MEMBER:i,l=e.includeLowerTierBenefits,r=void 0===l||l,d=o===s.T3.FRIEND,m=function(e){var n=e?[u,p].concat(v,[g,c],f):[c];return["Give 4x more to the writers you read","Share member-only stories with anyone and drive more earnings for writers"].concat((0,t.A)(n))}(r),N=[u,k,p].concat(v,[g],f),h=d?m:N,y=d?[0]:[];return a.createElement(a.Fragment,null,h.map((function(e,i){return a.createElement(S,{isStarIcon:"star"===n,isStrongText:y.includes(i),key:"benefit-".concat(i)},e)})))}},18302:(e,n,i)=>{"use strict";i.d(n,{h:()=>V});var t=i(96540),a=i(77865),o=i(73916),l=i.n(o),r=i(52290),d=i(86527),s=i(39410),m=i(27622),c=i(36557),u=i(49287),p=i(44402),k=i(79959),v=i(88726),g=i(85050),f=i(27049),S=i(20239);function N(e){var n=e.dividerBreakpoints,i=e.dividerColor,a=(0,S.D)();return t.createElement(g.V,{xl:n.includes(f.i.xl),lg:n.includes(f.i.lg),md:n.includes(f.i.md),sm:n.includes(f.i.sm),xs:n.includes(f.i.xs)},t.createElement(v.i,{marginTop:"0px",borderColor:null!=i?i:a.colorTokens.border.neutral.primary.base}))}var h=i(90280),y=i(90383),b=i(93694);function F(e,n){return e.includes(n)?"block":"none"}function E(e){return e?Math.round(e):e}function x(e){var n=e.post,i=e.scales,o=e.aspectRatio,l=void 0===o?h.l8.ThreeToTwo:o,d=e.miroImgFetchedWidth,s=e.webp,m=e.freezeGifs,c=void 0!==m&&m,u=e.imgLoading,p=void 0===u?a.u.LAZY:u,k=(0,b.y2)(i),v=n.previewImage,g=n.title,f=(null==v?void 0:v.id)||"1*yuVzMhCJyDENbyhwAsrkwA.png",S=(0,y.rP)({miroId:f,width:d,strategy:y.qY.Resample,freezeGifs:c,webp:!!s}),N=(null==v?void 0:v.alt)||g||"",x=function(e,n,i){return function(t){var a,o,l=null!==(a=E(n))&&void 0!==a?a:50,r=null!==(o=E(i))&&void 0!==o?o:50;return{width:"100%",borderRadius:"2px",aspectRatio:"string"==typeof e?h.au[e]:{xs:h.au[e.xs],sm:h.au[e.sm],md:h.au[e.md],lg:h.au[e.lg],xl:h.au[e.xl]},objectFit:"cover",objectPosition:"".concat(l,"% ").concat(r,"%"),backgroundColor:t.colorTokens.background.neutral.tertiary.base}}}(l,null==v?void 0:v.focusPercentX,null==v?void 0:v.focusPercentY);return t.createElement("div",{"aria-label":N||"Post Preview Image"},Object.keys(k).map((function(e){var n=k[e];return n.length?t.createElement(r.a,{display:{xs:F(n,"xs"),sm:F(n,"sm"),md:F(n,"md"),lg:F(n,"lg"),xl:F(n,"xl")},key:"grid-image-".concat(e)},t.createElement(a._,{src:S,alt:N,rules:x,loading:p})):null})))}var w=i(7380),A=i(54204),_=i(65648),P="image",C="content";function T(e){return new Array(12).fill(null).map(e).join(" ")}function D(e){switch(e){case"L":return'"'.concat(T((function(e,n){return n>=7?C:P})),'"');case"M":case"S":var n=T((function(){return P})),i=T((function(){return C}));return'"'.concat(n,'" "').concat(i,'"')}}var I={S:{subElementSpacing:"16px",titleScale:"S",titleClamp:2,gridTemplateAreas:D("S"),gap:"24px 0",hasDivider:!0,flexGrowTitle:"1"},M:{subElementSpacing:"16px",titleScale:"M",titleClamp:2,gridTemplateAreas:D("M"),gap:"32px 0",hasDivider:!0,flexGrowTitle:"1"},L:{subElementSpacing:"24px",titleScale:"L",titleClamp:3,gridTemplateAreas:D("L"),gap:"0 56px",hasDivider:!1,flexGrowTitle:void 0}},R=function(e,n){return{position:"relative",height:"100%",display:"grid",gridTemplateColumns:"repeat(12, 1fr)",gridTemplateRows:"auto 1fr",gap:e,gridTemplateAreas:n}},O=function(e){return{gridArea:e}},L={display:"flex",justifyContent:"center",flexDirection:"column"},M=function(e){var n,i=e.post,o=e.postUrl,v=e.scales,g=e.aspectRatio,f=e.showCollectionName,S=e.showDivider,h=e.dividerBreakpoints,y=e.dividerColor,F=e.miroImgFetchedWidth,E=e.webp,T=void 0!==E&&E,D=e.freezeGifs,M=e.prependOverflowMenuItems,B=e.imgLoading,V=void 0===B?a.u.LAZY:B,j=e.trackingV2,U=(0,p.l)(),W=(0,u.jI)(),G=i.title,z=null==i||null===(n=i.extendedPreviewContent)||void 0===n?void 0:n.subtitle,Z=(0,b.Lk)(I,v),H=l()(Z,(function(e){return e.subElementSpacing})),Y=l()(Z,(function(e){return e.titleScale})),q=l()(Z,(function(e){return e.titleClamp})),K=l()(Z,(function(e){return e.gap})),Q=l()(Z,(function(e){return e.gridTemplateAreas})),X=l()(Z,(function(e){return e.hasDivider})),$=l()(Z,(function(e){return e.flexGrowTitle})),J=G&&G.length>70,ee=S&&X,ne=G||z?"12px":void 0;return t.createElement("div",{className:U(R(K,Q)),role:"link","data-href":o,tabIndex:0,onKeyDown:function(e){e&&"Enter"===e.key&&window.location.assign((0,k.ST)(o,{source:W}))}},t.createElement("div",{className:U(O(P))},t.createElement(x,{post:i,scales:v,aspectRatio:g,miroImgFetchedWidth:F,webp:T,freezeGifs:D,imgLoading:V})),t.createElement("div",{className:U([O(C),L])},t.createElement(w.p,{rules:{display:"flex",flexDirection:"column",flexGrow:1}},t.createElement(t.Fragment,null,t.createElement(A.O,{post:i,marginBottom:H,showCollectionName:f,trackingV2:j}),t.createElement(r.a,{wordBreak:"break-word",paddingBottom:ne,flexGrow:$},t.createElement(w.o,null,t.createElement(d.N,{href:o},G&&t.createElement("div",{title:J?G:""},t.createElement(s.hE,{scale:Y,clamp:q},G)),z&&t.createElement(r.a,{paddingTop:"8px"},t.createElement(m.Pd,{scale:"S",clamp:2},z))))),t.createElement(c.kZ,{scale:"S",tag:"span"},t.createElement(_.u,{type:_.E.GRID,post:i,postUrl:o,scales:v,prependOverflowMenuItems:M,trackingV2:j})),ee&&t.createElement(N,{dividerBreakpoints:h,dividerColor:y})))))},B=i(98237);function V(e){var n=e.post,i=e.index,o=e.lastIndex,l=e.presentationTrackerReferrerSource,r=e.scale,d=e.aspectRatio,s=e.showCollectionName,m=e.dividerBreakpoints,c=e.dividerColor,u=e.miroImgFetchedWidth,p=e.webp,k=void 0!==p&&p,v=e.freezeGifs,g=e.prependOverflowMenuItems,f=e.imgLoading,S=void 0===f?a.u.LAZY:f,N=e.trackingV2,h="string"==typeof r?(0,b.Kb)(r):r;return t.createElement(B._,{post:n,presentationTrackerReferrerSource:l,index:i,isFullHeight:!0},(function(e){var a=e.postUrl;return t.createElement(M,{post:n,postUrl:a,scales:h,aspectRatio:d,showDivider:i!==o,showCollectionName:s,dividerBreakpoints:m,dividerColor:c,miroImgFetchedWidth:u,webp:k,freezeGifs:v,prependOverflowMenuItems:g,imgLoading:S,trackingV2:N})}))}},89704:(e,n,i)=>{"use strict";i.d(n,{C:()=>l,t:()=>o});var t=i(45458),a=i(59265),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherLink_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}].concat((0,t.A)(a.v0.definitions))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherLink_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}].concat((0,t.A)(a.dl.definitions))}},14500:(e,n,i)=>{"use strict";i.d(n,{B:()=>s});var t=i(96540),a=i(60213),o=i(64122),l=i(86527),r=function(e){var n=e.user,i=e.rules,a=e.children,r=(0,o.W)()(n);return t.createElement(l.N,{href:r,inheritBorder:!1,rules:i},a)},d=function(e){var n=e.collection,i=e.rules,o=e.children,r=(0,a.z)(n);return t.createElement(l.N,{href:r,inheritBorder:!1,rules:i},o)};function s(e){var n=e.publisher,i=e.rules,a=e.children;return"User"===n.__typename?t.createElement(r,{user:n,rules:i},a):"Collection"===n.__typename?t.createElement(d,{collection:n,rules:i},a):t.createElement(t.Fragment,null,a)}},16729:(e,n,i)=>{"use strict";i.d(n,{e:()=>t});var t={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"}}]}}]}}]}},71267:(e,n,i)=>{"use strict";i.d(n,{F:()=>r});var t=i(96540),a=i(67476),o=i(92554),l=i(36557),r=function(e){var n=e.publisher,i=e.color,r="Collection"===n.__typename?n.description:n.bio;return r?t.createElement(l.kZ,{scale:"M",color:i},t.createElement(o.r.Provider,{value:!0},t.createElement(a.O,{wrapLinks:!0},r))):null}},65938:(e,n,i)=>{"use strict";i.d(n,{y:()=>l});var t=i(96540),a=i(56942),o=i(44402),l=function(e){var n=e.publisher,i=e.scale,l=void 0===i?"XS":i,r=e.prefix,d=(0,o.l)();return n.name?t.createElement(a.DZ,{playwrightClassName:"pw-author-name",scale:l},t.createElement("span",{className:d({wordBreak:"break-word",paddingRight:"8px"})},r,n.name)):null}},10974:(e,n,i)=>{"use strict";i.d(n,{T:()=>m,e:()=>s});var t=i(96540),a=i(60213),o=i(64122),l=i(86527),r=i(36557),d=i(27715),s=function(e){var n,i,t=null!==(n="Collection"===e.__typename?e.subscriberCount:null===(i=e.socialStats)||void 0===i?void 0:i.followerCount)&&void 0!==n?n:0;return{followerCount:t,isFollowerCountVisible:t>0}},m=function(e){var n=e.disableLink,i=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.u)(),N=(0,o.W)(),h=s(u),y=h.followerCount,b=h.isFollowerCountVisible;if(!f&&!b)return null;var F="".concat((0,d.Ct)(y)," Follower").concat(1===y?"":"s");return t.createElement(r.kZ,{playwrightClassName:"pw-follower-count",tag:"span",scale:c,color:p},y>0&&!i?t.createElement(l.N,{href:"".concat("Collection"===u.__typename?S(u):N(u),"/followers"),linkStyle:v,inline:g},F):F)}},3331:(e,n,i)=>{"use strict";i.d(n,{J:()=>p,q:()=>v});var t=i(58168),a=i(96540),o=i(86527),l=i(39),r=i(44402),d=i(94644),s={S:"2px 8px",M:"8px 16px"},m=function(){return{whiteSpace:"nowrap"}},c=function(){return{marginRight:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"8px",border:"none",padding:"0",cursor:"pointer"}},u=function(e){return function(){return{padding:"".concat(s[e]),position:"relative"}}},p=function(e){return function(n){return{backgroundColor:"".concat(n.colorTokens.background.neutral.secondary.base),borderRadius:"100px",border:"1px solid ".concat(e?n.colorTokens.border.neutral.secondary.base:n.colorTokens.border.neutral.primary.base),transition:"background 300ms ease",":hover":{backgroundColor:"".concat(n.colorTokens.background.neutral.secondary.base)}}}},k=function(e){if(e)return{overflow:"hidden",textOverflow:"ellipsis"}},v=(0,a.forwardRef)((function(e,n){var i=e.topic,s=e.scale,v=void 0===s?"M":s,g=e.color,f=void 0===g?"DARKER":g,S=e.onClick,N=e.shouldTruncate,h=void 0!==N&&N,y=e.href,b=e.innerRef,F=e.includeBorder,E=e.marginRight,x=(0,r.l)(),w=(0,l.Z)({name:"detail",scale:v,color:f}),A="Topic"===i.__typename?(0,d.NZ)(i.name||""):(0,d.NZ)(i.displayTitle||"");return a.createElement(o.N,(0,t.A)({href:y},h&&{className:x({width:"100%"})},"M"===v&&{className:x(c(E))},{onClick:S,"aria-current":F?"page":void 0,ref:n}),a.createElement("div",{className:x([u(v),p(F),w,m,k(h)]),ref:b},A))}))},57426:(e,n,i)=>{"use strict";i.d(n,{v:()=>d});var t=i(96540),a=i(22381),o=i(39160),l=i(46879),r=i(3331),d=(0,t.forwardRef)((function(e,n){var i=e.topic,d=e.scale,s=e.color,m=e.onClick,c=e.shouldTruncate,u=e.includeBorder,p=e.marginRight,k=e.trackingV2,v=(0,o.d4)((function(e){return e.config.authDomain})),g=(0,o.d4)((function(e){return e.config.topicToTagMappings})),f=function(e,n){return"Topic"===e.__typename?n[e.slug]?n[e.slug]:e.slug:e.id||""}(i,g),S=f?(0,l.Lsb)(f,v):"#",N=(0,a.Z)({tagSlug:f,trackingV2:k}),h=N.containerRef,y=N.handleClick,b=t.useCallback((function(){null==m||m(i.id),y()}),[i.id,m,y]);return t.createElement(r.q,{topic:i,href:S,scale:d,color:s,shouldTruncate:c,onClick:b,innerRef:h,includeBorder:u,marginRight:p,ref:n})}))},22381:(e,n,i)=>{"use strict";i.d(n,{Z:()=>s});var t=i(96540),a=i(72130),o=i(49287),l=i(79429),r=i(50684),d=i(39160),s=function(e){var n=e.tagSlug,i=e.trackingV2,s=(0,a.$L)(),m=(0,r.MW)(),c=(0,d.d4)((function(e){return e.navigation.referrer})),u=(0,d.d4)((function(e){return e.navigation.currentLocation})),p=(0,o.jI)(),k={referrer:c||u,referrerSource:m,source:p},v=t.useCallback((function(){s.event("tag.clicked",{tagSlug:n},{overrideData:k})}),[n,s,p,m,k]);return{containerRef:(0,l.s)({onPresentedFn:function(){s.event("tag.presented",{tagSlug:n,source:p,trackingV2:i},k)}}),handleClick:v}}},42144:(e,n,i)=>{"use strict";i.d(n,{Cg:()=>l,hB:()=>r,z8:()=>o});var t=i(45458),a=i(59265),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,t.A)(a.v0.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,t.A)(o.definitions),(0,t.A)(l.definitions))}},45547:(e,n,i)=>{"use strict";i.d(n,{ZL:()=>c,KU:()=>s});var t=i(45458),a=i(81666),o=i(78204),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"HighlighSegmentContext_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ParagraphRefsMapContext_paragraph"}}]}}].concat((0,t.A)(o.Z.definitions))},r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ActiveSelectionContext_highlight"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SelectionMenu_highlight"}}]}}].concat((0,t.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectionMenu_highlight"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ActiveSelectionContext_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:"SelectionMenu_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostNewNoteCard_post"}}]}}].concat((0,t.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectionMenu_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:"latestPublishedVersion"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"allowNotes"}}]}}]}}]),(0,t.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostNewNoteCard_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:"latestPublishedVersion"}}]}}]))},s=([{kind:"FragmentDefinition",name:{kind:"Name",value:"InteractivePostBody_postPreview"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"extendedPreviewContent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"truncationConfig"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"previewParagraphsWordCountThreshold"},value:{kind:"IntValue",value:"400"}},{kind:"ObjectField",name:{kind:"Name",value:"minimumWordLengthForTruncation"},value:{kind:"IntValue",value:"150"}},{kind:"ObjectField",name:{kind:"Name",value:"truncateAtEndOfSentence"},value:{kind:"BooleanValue",value:!0}},{kind:"ObjectField",name:{kind:"Name",value:"showFullImageCaptions"},value:{kind:"BooleanValue",value:!0}},{kind:"ObjectField",name:{kind:"Name",value:"shortformPreviewParagraphsWordCountThreshold"},value:{kind:"IntValue",value:"30"}},{kind:"ObjectField",name:{kind:"Name",value:"shortformMinimumWordLengthForTruncation"},value:{kind:"IntValue",value:"30"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostBody_bodyModel"}}]}},{kind:"Field",name:{kind:"Name",value:"isFullContent"}}]}}]}}].concat((0,t.A)(a.Rq.definitions)),{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"InteractivePostBody_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:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostBody_bodyModel"}},{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"HighlighSegmentContext_paragraph"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NormalizeHighlights_paragraph"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"allowNotes"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostBody_creator"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ActiveSelectionContext_post"}}]}}].concat((0,t.A)(a.Rq.definitions),(0,t.A)(l.definitions),(0,t.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"NormalizeHighlights_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"}}]}}]),(0,t.A)(a.Kc.definitions),(0,t.A)(d.definitions))}),m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"InteractivePostBody_quote"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ActiveSelectionContext_highlight"}},{kind:"FragmentSpread",name:{kind:"Name",value:"HighlighSegmentContext_highlight"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NormalizeHighlights_highlight"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostBody_highlight"}}]}}].concat((0,t.A)(r.definitions),(0,t.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"HighlighSegmentContext_highlight"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endOffset"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"startOffset"}},{kind:"Field",name:{kind:"Name",value:"userId"}}]}}]),(0,t.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"NormalizeHighlights_highlight"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endOffset"}},{kind:"Field",name:{kind:"Name",value:"startOffset"}},{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}}]}}]),(0,t.A)(a.iu.definitions))},c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"InteractivePostBodyQuery"},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:"showNotes"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],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:"highlights"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"InteractivePostBody_quote"}}]}},{kind:"Field",name:{kind:"Name",value:"privateNotes"},directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"showNotes"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostBody_privateNote"}}]}}]}}]}}].concat((0,t.A)(m.definitions),(0,t.A)(a.VB.definitions))}},44054:(e,n,i)=>{"use strict";i.d(n,{N:()=>y});var t=i(58168),a=i(80296),o=i(77969),l=i(96540),r=i(92554),d=i(98503),s=i(16676),m=i(2680),c=i(47043),u=i(4171),p=i(64467),k=i(24023);function v(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function g(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?v(Object(i),!0).forEach((function(n){(0,p.A)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function f(e,n,i){if(!e||"number"!=typeof n||"number"!=typeof i)return null;var t=n,a=i;return e.substr(t,a-t)}var S=i(27721),N=i(47517),h=i(45547),y=l.forwardRef((function(e,n){var i,p,v,y=e.isAuroraPostPageEnabled,b=e.post,F=e.inlinePost,E=e.postBodyInserts,x=e.richTextStyle,w=e.markedUpBodyModel,A=e.shouldHideHighlightAnnotations,_=(0,S.R)().value,P=F&&!b?w||(null==F||null===(i=F.extendedPreviewContent)||void 0===i?void 0:i.bodyModel):null==b||null===(p=b.content)||void 0===p?void 0:p.bodyModel,C={creator:null==b?void 0:b.creator,isAuroraPostPageEnabled:y,postBodyInserts:E,ref:n,richTextStyle:x||"FULL_PAGE",postId:(null==b?void 0:b.id)||""},T=b&&b.creator&&b.creator.allowNotes||!1,D=(0,o._)(h.ZL,{ssr:!1,variables:{postId:(null==b?void 0:b.id)||"",showNotes:T},notifyOnNetworkStatusChange:!0}),I=(0,a.A)(D,2),R=I[0],O=I[1],L=O.called,M=O.data,B=null==M?void 0:M.post;if(l.useEffect((function(){b&&!L&&R()}),[b]),!P)return N.v.error("Expected post to have content or preview content."),null;var V=(null==b||null===(v=b.content)||void 0===v?void 0:v.bodyModel)&&(null==b?void 0:b.content.bodyModel.paragraphs)||[],j=function(e,n){return e&&n?e.map((function(e){var i=e.endOffset,t=e.startOffset,a=e.paragraphs&&e.paragraphs[0],o=function(e,n){return e?n.find((function(n){var i=n.name;return e===i})):null}(a.name,n);if(!a||!o)return null;var l=f(a.text,t,i),r=f(o.text,t,i);if(!l||!r)return null;if(l===r)return e;var d=o.text?o.text.indexOf(l):null;if("number"!=typeof d||d<0)return null;var s=d+l.length;return g(g({},e),{},{endOffset:s,startOffset:d})})).filter(k.se):e}(B&&B.highlights||[],V),U=B&&B.privateNotes||null;return l.createElement(m.aB,null,l.createElement(d.R,null,l.createElement(s.k,{interactivePost:b,highlights:j,disableSelection:!b},l.createElement(u.u,{highlights:j,paragraphs:V,viewer:_},l.createElement(r.r.Provider,{value:!0},l.createElement(c.N,(0,t.A)({},C,{bodyModel:P,highlights:j,privateNotes:U,shouldHideHighlightAnnotations:A})))))))}))},9078:(e,n,i)=>{"use strict";i.d(n,{S:()=>s});var t=i(45458),a=i(25703),o=i(62742),l=i(3714),r=i(50112),d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FriendLink_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:"SusiClickable_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useCopyFriendLink_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UpsellClickable_post"}}]}}].concat((0,t.A)(o.CV.definitions),(0,t.A)(l.Y.definitions),(0,t.A)(r.f.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostSharePopover_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:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostUrl_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"FriendLink_post"}}]}}].concat((0,t.A)(a.c.definitions),(0,t.A)(d.definitions))}},26073:(e,n,i)=>{"use strict";i.d(n,{K:()=>l});var t=i(96540),a=i(28899),o=i(23393),l=function(e){var n=e.link,i=void 0!==n&&n,l=e.scale,r=void 0===l?"M":l,d=e.publisher;switch(d.__typename){case"User":return t.createElement(o.H8,{link:i,scale:r,user:d});case"Collection":return t.createElement(a.u,{link:i,size:o.eV[r],collection:d});default:return null}}},51387:(e,n,i)=>{"use strict";i.d(n,{t:()=>s});var t=i(45458),a=i(79083),o=i(62544),l=i(92571),r=i(11656),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,t.A)(o.uF.definitions),(0,t.A)(l.uS.definitions),(0,t.A)(l.jC.definitions),(0,t.A)(r.gK.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,t.A)(a.S$.definitions),(0,t.A)(d.definitions))}},79083:(e,n,i)=>{"use strict";i.d(n,{FP:()=>o,OH:()=>l,Rz:()=>r,S$:()=>a});var t=i(45458),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,t.A)(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"}}}]}]}}]}},84274:(e,n,i)=>{"use strict";i.d(n,{p:()=>v});var t=i(80296),a=i(52697),o=i(96540),l=i(51739),r=i(79756),d=i(44402),s=i(42976),m=i(64467),c=i(38667),u=function(e,n,i){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"white";return function(a){var o=n?"0.6s":"0s";return(0,m.A)({width:i,position:"fixed",zIndex:520,backgroundColor:t,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(i,")"):"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,i=e.children,m=e.isResponsesSidebarVisible,c=e.pagingInfoNext,v=e.isFetchingNextSetOfResponses,g=e.setIsFetching,f=e.fetchMoreWithArguments,S=e.initialSidebarRender,N=e.sidebarRef,h=(0,d.l)(),y=o.useRef(null),b=o.useState(null),F=(0,t.A)(b,2),E=F[0],x=F[1],w=o.useState(s.IZ.NOT_DISTRIBUTED),A=(0,t.A)(w,2),_=A[0],P=A[1];o.useEffect((function(){var e=y.current;if(e&&m){if(!E){var n=(0,a.K)(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(),x(n)}return function(){E&&(E.deactivate(),x(null))}}}),[y.current,E,x,m]);var C,T=o.useCallback((function(){P(s.IZ.NOT_DISTRIBUTED),n()}),[n]);return o.createElement("div",{className:h(k),role:"dialog","aria-modal":"true",ref:y,tabIndex:-1},o.createElement("div",{className:h([p(S),(C=m,C?{opacity:1,pointerEvents:"all"}:{})]),onClick:T,onKeyUp:function(e){13===e.keyCode&&T()},"aria-hidden":!m,role:"presentation"}),o.createElement("div",{className:h([u(m,S,l.gH)]),"aria-hidden":!m,onScroll:function(e){return(0,r.Fl)(e,c,v,g,f)},ref:N},i({responseDistribution:_,setResponseDistribution:P,closeSidebar:T})))}},50112:(e,n,i)=>{"use strict";i.d(n,{f:()=>t});var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UpsellClickable_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:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"sequence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sequenceId"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}}]);
|
||
//# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/PostPage.MainContent.6aeac6a8.chunk.js.map
|