"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["925"],{42725:function(t,e,n){n.d(e,{pc:()=>r}),n(16584),n(6400),n(30396),n(14068),n(68833),n(62981),n(15771),n(19081),n(58175),n(35144);let r="clip_web_nux_seen_at"},72392:function(t,e,n){n.d(e,{o:()=>Z});var r=n(16584),i=n(30396),l=n(94184),o=n.n(l),a=n(95441),s=n(98914),d=n(15771),c=n(19081),u=n(84747),p=n(63474),m=n(58175),h=n(81821),v=n(98550);let C=t=>{let[e,n]=(0,i.eJ)(null);return(0,i.d4)(()=>{let e=[];return t.forEach(t=>{let r=(0,s.VA)(t.text.toLowerCase(),!0),i=document.getElementById("\xa7".concat(r));if(i){let t=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=.8&&n(r)})},{threshold:.5,rootMargin:"0px 0px -90% 0px"});t.observe(i),e.push(t)}}),()=>e.forEach(t=>t.disconnect())},[t]),e},f=t=>t?/^H[1-5]$/i.test(t.tagName)?t:f(t.parentElement):null,b=t=>{let{toc:e,minLevel:n,activeItem:i}=t;return(0,r.tZ)(c.tu,{gap:12,paddingY:12,paddingX:8,alignItems:"end",children:e.map((t,e)=>{let l=t.level-n,a="indent-".concat(Math.min(l,3)),d=(0,s.VA)(t.text.toLowerCase(),!0);return(0,r.tZ)("div",{className:o()(v.Z.line,v.Z[a],i===d&&v.Z.active)},e)})})},g=t=>{let{toc:e,minLevel:n,activeItem:i,onItemClick:l}=t,{iString:d}=(0,a.M1)();return(0,r.BX)(c.tu,{gap:4,flex:"grow",children:[(0,r.tZ)(m.xv.Meta,{padding:4,color:"primary",children:d("Contents")}),e.map((t,e)=>{let a=(0,s.VA)(t.text.toLowerCase(),!0),d=t.level-n,u="indent-".concat(Math.min(d,3));return(0,r.tZ)(p.A0,{href:"#\xa7".concat(a),onClick:t=>{t.preventDefault(),l(a)},children:(0,r.tZ)(c.gq,{padding:4,className:o()(v.Z.row),children:(0,r.tZ)(m.xv.B3,{className:o()(v.Z.label,v.Z[u],i===a&&v.Z.active),ellipsis:!0,children:t.text})})},e)})]})},Z=t=>{let{toc:e,position:n="fixed"}=t,{iString:l}=(0,a.M1)(),s=Math.min(...e.map(t=>t.level)),[c,p]=(0,i.eJ)(null),m=C(e);return e.length<2||(0,h.tq)()?null:(0,r.tZ)(u.M,{trigger:t=>{let{ref:i,onClick:a}=t;return(0,r.tZ)(d.kG,{ref:i,onClick:a,className:o()(v.Z.trigger,v.Z[n]),"aria-label":l("Table of Contents"),position:n,children:(0,r.tZ)(b,{toc:e,minLevel:s,activeItem:m})})},customShowClass:v.Z.show,customHideClass:v.Z.hide,layerClassName:v.Z.menu,layerOptions:{placement:"right-center",triggerOffset:8},children:(0,r.tZ)(g,{toc:e,minLevel:s,activeItem:m,onItemClick:t=>{let e=document.getElementById("\xa7".concat(t));if(e){let n=f(e);if(n){if(c){let t=document.getElementById("\xa7".concat(c)),e=t?f(t):null;null==e||e.classList.remove("highlight")}n.classList.add("highlight"),p(t),e.scrollIntoView({behavior:"smooth",block:"start"})}}}})})}},59708:function(t,e,n){let r;n.d(e,{Kd:()=>W,N1:()=>j});var i,l=n(7409),o=n(99282),a=n(16584),s=n(6400),d=n(70109),c=n(94184),u=n.n(c),p=n(60826),m=n(4373),h=n(62049),v=n(16564),C=n(17117),f=n(36441),b=n(78435),g=n(80836),Z=n(3258),y=n(33665),w=n(95441),_=n(57796),M=n(26989),k=n(98914),x=n(55706),N=n(19081),S=n(32700),L=n(93903),I=n(60308),A=n(26111),F=n(81821),E=n(64314);let O=(t,e)=>{var n,r,i,o;return(0,a.tZ)("div",{className:"subscription-widget-wrap",children:(0,a.BX)("div",{className:"subscription-widget show-subscribe",children:[(0,a.tZ)("div",{className:"preamble",children:(0,a.tZ)("p",{dangerouslySetInnerHTML:{__html:null!==(o=null===(i=t.children[0])||void 0===i?void 0:null===(r=i.children[0])||void 0===r?void 0:null===(n=r.children[0])||void 0===n?void 0:n.innerHTML)&&void 0!==o?o:""}})}),(0,a.tZ)(y.Z,(0,l._)({pub:e.pub,subscribeButtonAttrs:null,source:"subscribe-widget-preamble"},e.props))]})})},T=(t,e)=>{try{let n=JSON.parse((0,L.Z)(t.getAttribute("data-attrs")));if(["".concat(e.pub.base_url,"/subscribe?"),"".concat(e.pub.base_url,"/subscribe?plan=founding"),p.W.CHECKOUT_URL,p.W.FOUNDING_CHECKOUT_URL].includes(n.url)){let n=JSON.parse((0,L.Z)(t.getAttribute("data-attrs")));return(0,a.tZ)(y.Z,(0,l._)({pub:e.pub,subscribeButtonAttrs:n},e.props))}}catch(t){console.error("Failed to parse button:",t)}return null},B=(t,e)=>{let{pub:n,props:{isStatic:r,post:i}}=e;try{let e=t.getAttribute("data-attrs");if(e){let t=JSON.parse((0,L.Z)(e));return r?(0,a.tZ)(v.nO,{label:t.label,pub:n,post:i,duration:t.duration}):(0,a.tZ)(v.cM,{label:t.label,pub:n,post:i,src:"/api/v1/audio/upload/".concat(t.mediaUploadId,"/src"),duration:t.duration,autoPlay:!1,mediaUpload:{id:t.mediaUploadId}})}}catch(t){console.error("Failed to parse audio:",t)}return null},H=(t,e)=>{let{pub:n,props:{isStatic:r,post:i}}=e;try{let e=t.getAttribute("data-attrs");if(e){let t=JSON.parse((0,L.Z)(e));return r?(0,a.tZ)(v.nO,{label:t.label,pub:n,post:i,duration:t.duration}):(0,a.tZ)(v.cM,{label:t.label,pub:n,post:i,src:t.url,duration:t.duration,autoPlay:!1})}}catch(t){console.error("Failed to parse audio:",t)}return null},P=(t,e)=>{let{props:{isStatic:n}}=e;try{let e=t.getAttribute("data-attrs");if(e){let{name:t,avatarUrl:r,url:i}=JSON.parse((0,L.Z)(e));return n?(0,a.tZ)(x.W,{name:t,avatarUrl:r,url:i}):(0,a.tZ)(x.R,{name:t,avatarUrl:r,url:i})}}catch(t){console.error("Failed to parse audio:",t)}return null},V=t=>{try{let e=JSON.parse(t.dataset.attrs).symbol;if(e)return(0,a.tZ)(C.Z,{symbol:e,prependSymbol:JSON.parse(t.dataset.attrs).prependSymbol,isStatic:JSON.parse(t.dataset.attrs).isStatic});return(0,a.tZ)(a.HY,{})}catch(t){return console.error("failed to parse cashtag"),(0,a.tZ)(a.HY,{})}},J=(t,e)=>{let{pub:n,props:{isStatic:r}}=e,{iString:i}=I18N.i({pub:n});try{if(r){let e=t.getAttribute("data-attrs");if(e){let t=JSON.parse((0,L.Z)(e)),n=null==t?void 0:t.persistentExpression;return n?(0,a.tZ)("img",{src:(0,I.iJV)(n),style:{transform:"scale(0.5)"},"data-component-name":"LatexImg"}):(0,a.tZ)("p",{children:i("Failed to render LaTeX expression — no expression found in email")})}return(0,a.tZ)("p",{children:i("Failed to render LaTeX expression — data attributes not found")})}let e=t.getAttribute("data-attrs"),n=JSON.parse((0,L.Z)(e)),l=null==n?void 0:n.persistentExpression;return l?(0,a.tZ)(N.gq,{className:"latex-rendered",justifyContent:"center",flex:"grow",paddingBottom:"4px",paddingTop:"4px","data-component-name":"Latex",children:(0,a.tZ)(N.tu,{justifyContent:"center",children:(0,a.tZ)(d.Z,{inline:!1,children:"\\(".concat(l,"\\)")})})}):(0,a.tZ)("p",{children:i("Failed to render LaTeX expression — no expression found")})}catch(t){return console.error("failed to render mathjax",t),(0,a.tZ)("p",{children:i("Failed to render LaTeX expression — error")})}},D=t=>{try{let{name:e,id:n,type:r,url:i,photo_url:l,uuid:o,isStatic:s}=JSON.parse(t.dataset.attrs);if(e)return(0,a.tZ)(Z.ZP,{name:e,id:n,type:r,url:i,photo_url:l,uuid:o,isStatic:s});return(0,a.tZ)(a.HY,{})}catch(t){return(0,a.tZ)(a.HY,{})}},R=(t,e)=>{try{let i=JSON.parse((0,L.Z)(t.getAttribute("data-attrs")));if(null==i?void 0:i.isEmail){var n,r;return(0,a.tZ)("table",{className:"poll-embed poll-email",cellSpacing:"16px",width:"100%",children:(0,a.tZ)("tbody",{children:(0,a.tZ)("tr",{children:(0,a.tZ)("td",{align:"center",children:(0,a.tZ)(b.kq,{id:i.id,embeddedPolls:null!==(r=null===(n=e.props.dataForEmailRender)||void 0===n?void 0:n.embeddedPolls)&&void 0!==r?r:[],pub:e.pub})})})})})}return(0,a.tZ)("div",{className:"poll-embed",dataAttrs:t.getAttribute("data-attrs"),children:(0,a.tZ)(b.n_,{id:i.id,isEditor:!1,post:e.props.post,isVersionView:!!e.props.isVersionView})})}catch(t){return console.error("Failed to parse poll:",t),(0,a.tZ)(a.HY,{})}},U=(t,e,n)=>{var r;let[i,,l]=t.id.split("-"),o=null===(r=n.wrapper.querySelector("#".concat(i,"-").concat(l)))||void 0===r?void 0:r.nextElementSibling;return o?((0,F.tq)()&&(t.href="#_"),(0,a.tZ)(S.z,{content:(0,a.tZ)("div",{className:"markup",children:z(o,e,n)}),className:"footnote-hovercard-target",dontStopPropagation:!0,layerClassName:"typography footnote-hovercard",as:"span",children:z(t,e,n)})):z(t,e,n)},q=(t,e)=>(0,a.tZ)(w._7,{language:e,children:t}),X=function(t,e){var n,r,i;let{shallow:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("A"!==t.nodeName||t.getAttribute("rel")||t.setAttribute("rel","pub"in e&&(null===(i=e.pub)||void 0===i?void 0:i.no_follow)?"nofollow ugc noopener":""),(0,k.pv)(t,"image2")&&(null===(n=e.props)||void 0===n?void 0:n.canRestackImage)&&t.classList.add("can-restack"),"pub"in e&&e.pub&&"P"===t.nodeName&&(0,k.pv)(t,"button-wrapper")){let n=T(t,e);if(n)return n;let r=(0,f.TW)(t,e);if(r)return r}let d="pub"in e&&(null===(r=e.pub)||void 0===r?void 0:r.language)||"en";return(0,k.pv)(t,"subscription-widget-wrap-editor")||(0,k.pv)(t,"subscription-widget-wrap")?q(O(t,e),d):(0,k.pv)(t,"cashtag-wrap")?q(V(t),d):(0,k.pv)(t,"mention-wrap")?q(D(t),d):"pub"in e&&e.pub&&(0,k.pv)(t,"native-audio-url-embed")?q(H(t,e),d):"pub"in e&&e.pub&&(0,k.pv)(t,"native-audio-embed")?q(B(t,e),d):"pub"in e&&e.pub&&(0,k.pv)(t,"native-video-embed")?q((0,f.tj)(t,e),d):"pub"in e&&e.pub&&(0,k.pv)(t,"meeting-embed")?q(P(t,e),d):(0,k.pv)(t,"poll-embed")?q(R(t,e),d):(0,k.pv)(t,"recipe-embed")?q((0,f.G3)(t,e),d):(0,k.pv)(t,"pinterest-embed")?q((0,f.EK)(t),d):(0,k.pv)(t,"sponsorship-campaign-embed")?q((0,f.b3)(t,e),d):(0,k.pv)(t,"image-gallery-embed")?q((0,f.W5)(t,e),d):(0,k.pv)(t,"image3")?q((0,f.L0)(t,e),d):(0,k.pv)(t,"directMessage")?q((0,f.Gz)(t,e),d):(0,k.pv)(t,"latex-rendered")?q(J(t,e),d):(0,k.pv)(t,"community-chat")?q(function(t,e){let{props:{isStatic:n}}=e;try{let e=t.getAttribute("data-attrs"),r=JSON.parse((0,L.Z)(e));if(!r.pub||!r.subdomain)return console.error("could not deepPrepare communityChat, subdomain or pub missing from node"),(0,a.tZ)(s.Fragment,{});return(0,a.tZ)("div",{className:"community-chat",dataAttrs:e,children:n?(0,a.tZ)(m.C,(0,l._)({},r)):(0,a.tZ)(m.a,{pub:r.pub,subdomain:r.subdomain})})}catch(t){return console.error("Failed to parse chat embed:",t),(0,a.tZ)(s.Fragment,{})}}(t,e),d):(0,k.pv)(t,"community-post")?q(function(t,e){let{props:{isStatic:n,is_freemail:r}}=e;try{let e=t.getAttribute("data-attrs"),i=JSON.parse((0,L.Z)(e));return n?(0,a.tZ)(h.s,(0,l._)({is_freemail:r},i)):(0,a.tZ)(h.V,(0,l._)({},i))}catch(t){return console.error("Failed to parse chat post embed:",t),(0,a.tZ)(s.Fragment,{})}}(t,e),d):(0,k.pv)(t,"digest-post-embed")?q((0,f.Do)(t,e),d):(0,k.pv)(t,"comment")&&!(0,k.pv)(t,"template-comment")?q(function(t,e){let{props:{isStatic:n}}=e;try{let e=t.getAttribute("data-attrs"),r=JSON.parse((0,L.Z)(e));return n?(0,a.tZ)(M.Eo,(0,l._)({},r)):(0,a.tZ)(_.d,(0,l._)({},r))}catch(t){return console.error("Failed to parse chat post embed:",t),(0,a.tZ)(s.Fragment,{})}}(t,e),d):(0,k.pv)(t,"referrals-tier-card")?q((0,f.mx)(t,e),d):("undefined"!=typeof window&&(0,k.pv)(t,"file-embed-button")&&"href"in t&&t.href&&!(0,A.x)(t.href,"token")&&(t.href=(0,I.n1t)(t.href,{token:(0,A.x)(window._preloads.original_url,"token")})),"props"in e&&e.props&&"post"in e.props&&e.props.post&&"object"==typeof e.props.post&&"id"in e.props.post&&e.props.post.id&&(0,k.pv)(t,"footnote")&&(t.id&&(t.id+="-".concat(e.props.post.id)),"href"in t&&t.href&&(t.href+="-".concat(e.props.post.id))),(0,k.pv)(t,"footnote-anchor"))?q(U(t,X,e),d):o?null:z(t,X,e)},Y=function(t){let e={};for(let{name:n,value:r}of Array.prototype.slice.call(t))e[n]=r;return e},z=(i=(t,e,n,r)=>{var i;if(!t)throw Error("Empty node, cannot preactify!");let d=3===t.nodeType?"span":8===t.nodeType?"x_preact_compatible_html_comment_x":t.tagName.toLowerCase(),c=1!==t.nodeType?{}:Y(t.attributes),p=t.children&&t.children.length>0?null:t.textContent;if(r||"script"===d&&t.innerHTML===E.N)return(0,s.h)(d,(0,o._)((0,l._)({},c),{dangerouslySetInnerHTML:{__html:t.innerHTML}}));let m=!!(null===(i=t.parentElement)||void 0===i?void 0:i.getAttribute("data-prose-mirror-wrapper"));if(n&&"pub"in n&&m&&["h1","h2","h3","h4"].includes(d)&&!t.className)return function(t,e,n,r){var i,d,c,p;let m=u()("header-anchor-post",e.className),h=n.children.length?Array.prototype.map.call(n.childNodes,t=>X(t,r)):[n.textContent];return(0,s.h)(t,(0,o._)((0,l._)({},e),{className:m}),...h,(0,a.tZ)(g.Z,{text:null!==(c=n.textContent)&&void 0!==c?c:"",pub:null==r?void 0:r.pub,post:null==r?void 0:null===(i=r.props)||void 0===i?void 0:i.post,offsetTop:!0,isAboutPage:null!==(p=null==r?void 0:null===(d=r.props)||void 0===d?void 0:d.isAboutPage)&&void 0!==p&&p}))}(d,c,t,n);if(p)return(0,s.h)(d,c,p);let h=e(t,n,{shallow:!0});return h||(0,s.h)(d,c,...Array.prototype.map.call(t.childNodes,t=>e(t,n)))},r=0,function(){let t=[].slice.call(arguments,0),e=++r>2500;if(e){var n,l,o;console.error("Too many post nodes to recurse",{postId:null===(o=t[2])||void 0===o?void 0:null===(l=o.props)||void 0===l?void 0:null===(n=l.post)||void 0===n?void 0:n.id,depth:r})}let a=i.apply(null,[...t,...e?[!0]:[]]);return r--,a});function W(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement("div");return r.setAttribute("data-prose-mirror-wrapper","1"),r.innerHTML=t,Array.prototype.map.call(r.childNodes,t=>z(t,X,{wrapper:r,pub:e,props:n}))}function j(t,e){if("undefined"==typeof window)return[];let n=document.createElement("div");n.innerHTML=t;let r=[];for(let t of n.querySelectorAll(null!=e?e:"h1, h2, h3, h4")){var i,l;let e=t.tagName[1],n=e?parseInt(e):NaN;r.push({level:null!=n?n:0,text:null!==(i=t.textContent)&&void 0!==i?i:"",id:null!==(l=t.id)&&void 0!==l?l:""})}return r}},31852:function(t,e,n){n.d(e,{Z:()=>s});var r=n(7409),i=n(99282),l=n(98848),o=n(16584),a=n(64515);let s=t=>{var{size:e=24,color:n="var(--color-fg-primary)"}=t,s=(0,l._)(t,["size","color"]);return(0,o.tZ)(a.l,(0,i._)((0,r._)({},s),{name:"BigQuoteIcon",svgParams:{viewBox:"0 0 27 17"},stroke:"none",width:e,height:e,fill:n,children:(0,o.tZ)("path",{d:"M11.7188 10.6172C11.7188 7.5 9.41016 5.01562 6.43359 5.01562C5.03906 5.01562 3.71484 5.56641 2.74219 6.64453H2.42578C3.10547 4.42969 5.16797 2.57812 7.73438 1.81641C8.09766 1.69922 8.36719 1.59375 8.53125 1.45312C8.71875 1.30078 8.82422 1.11328 8.82422 0.84375C8.82422 0.351562 8.44922 0.0117188 7.89844 0.0117188C7.53516 0.0117188 7.25391 0.0820312 6.75 0.246094C5.13281 0.773438 3.67969 1.69922 2.55469 2.88281C0.972656 4.52344 0 6.71484 0 9.31641C0 13.7109 2.78906 16.2539 6.05859 16.2539C9.28125 16.2539 11.7188 13.793 11.7188 10.6172ZM25.793 10.6172C25.793 7.5 23.4727 5.01562 20.5078 5.01562C19.1133 5.01562 17.7773 5.56641 16.8164 6.64453H16.5C17.1797 4.42969 19.2422 2.57812 21.7969 1.81641C22.1602 1.69922 22.4414 1.59375 22.6055 1.45312C22.793 1.30078 22.8867 1.11328 22.8867 0.84375C22.8867 0.351562 22.5234 0.0117188 21.9727 0.0117188C21.5977 0.0117188 21.3281 0.0820312 20.8125 0.246094C19.207 0.773438 17.7422 1.69922 16.6172 2.88281C15.0469 4.52344 14.0742 6.71484 14.0742 9.31641C14.0742 13.7109 16.8633 16.2539 20.1328 16.2539C23.3555 16.2539 25.793 13.793 25.793 10.6172Z"})}))}},12706:function(t,e,n){n.d(e,{Z:()=>s});var r=n(7409),i=n(99282),l=n(98848),o=n(16584),a=n(64515);let s=t=>{var{size:e=24,fill:n="var(--color-fg-primary)"}=t,s=(0,l._)(t,["size","fill"]);return(0,o.tZ)(a.l,(0,i._)((0,r._)({},s),{name:"CommentBadgeFoundingIcon",svgParams:{viewBox:"0 0 26 26"},width:e,height:e,stroke:"none",fill:n,children:(0,o.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.82184 6.14159C7.56025 6.78804 7.4162 7.49464 7.4162 8.23489C7.4162 9.09949 7.61271 9.91819 7.9635 10.6488C8.60389 10.4676 9.27965 10.3706 9.97806 10.3706C10.1536 10.3706 10.3278 10.3767 10.5003 10.3888C10.6996 9.28561 11.1441 8.26769 11.7752 7.39342C10.8114 6.60183 9.57792 6.12665 8.23342 6.12665C8.09499 6.12665 7.95774 6.13168 7.82184 6.14159ZM5.77711 6.69453C5.67168 7.19136 5.6162 7.70664 5.6162 8.23489C5.6162 9.34746 5.86227 10.4026 6.30295 11.3487C5.04556 12.0717 4.02116 13.1542 3.37011 14.456C2.91142 13.6453 2.64961 12.7084 2.64961 11.7105C2.64961 9.50798 3.92478 7.60333 5.77711 6.69453ZM6.62812 4.50164C3.32204 5.23459 0.849609 8.18379 0.849609 11.7105C0.849609 13.5781 1.54303 15.2838 2.68647 16.5842C2.62578 16.9653 2.59425 17.3562 2.59425 17.7544C2.59425 21.8324 5.9001 25.1382 9.97806 25.1382C11.0364 25.1382 12.0427 24.9156 12.9527 24.5146C13.8703 24.9237 14.8868 25.1511 15.9565 25.1511C20.0344 25.1511 23.3403 21.8453 23.3403 17.7673C23.3403 17.3869 23.3115 17.0133 23.256 16.6484C24.4334 15.3402 25.15 13.609 25.15 11.7105C25.15 8.18398 22.6778 5.23491 19.372 4.50176C18.0895 2.31749 15.716 0.851074 13 0.851074C10.2841 0.851074 7.91059 2.31743 6.62812 4.50164ZM8.97613 4.36354C10.502 4.51594 11.8911 5.13289 12.9998 6.07089C14.1086 5.1328 15.4978 4.51583 17.0239 4.36349C16.008 3.30789 14.5807 2.65107 13 2.65107C11.4193 2.65107 9.99198 3.30791 8.97613 4.36354ZM18.1782 6.14162C18.0422 6.1317 17.9047 6.12665 17.7661 6.12665C16.4217 6.12665 15.1881 6.60183 14.2244 7.39342C14.8571 8.26995 15.3022 9.29088 15.5008 10.3974C15.6515 10.3882 15.8034 10.3835 15.9565 10.3835C16.6738 10.3835 17.3673 10.4858 18.0231 10.6766C18.3823 9.93902 18.5838 9.11049 18.5838 8.23489C18.5838 7.49466 18.4398 6.78807 18.1782 6.14162ZM16.872 12.2582C16.5741 12.2091 16.2683 12.1835 15.9565 12.1835C15.8373 12.1835 15.7189 12.1873 15.6016 12.1946C15.5866 12.4264 15.5609 12.6552 15.525 12.8807C15.5917 12.9565 15.6569 13.0338 15.7205 13.1123C16.1408 12.8774 16.5276 12.5897 16.872 12.2582ZM16.6751 14.6406C17.456 14.1916 18.147 13.6039 18.7146 12.9112C19.918 13.5961 20.8419 14.7155 21.2731 16.0559C20.3145 16.8304 19.0945 17.2943 17.7661 17.2943C17.6251 17.2943 17.4852 17.289 17.3468 17.2788C17.2872 16.341 17.0525 15.4508 16.6751 14.6406ZM14.6053 15.4437C14.7432 15.4131 14.8797 15.3787 15.0146 15.3405C15.2344 15.7983 15.3936 16.2906 15.4819 16.8072C15.0272 16.6031 14.6048 16.3399 14.2244 16.0275C14.3602 15.8394 14.4874 15.6446 14.6053 15.4437ZM13.5397 13.4538C13.5008 13.5722 13.4581 13.689 13.4116 13.8038C13.2757 13.8137 13.1384 13.8187 13 13.8187C12.8614 13.8187 12.724 13.8136 12.588 13.8037C12.5373 13.6787 12.4911 13.5513 12.4495 13.4219C12.6177 13.286 12.794 13.1597 12.9774 13.0437C13.1735 13.1688 13.3613 13.3059 13.5397 13.4538ZM12.9818 11.0072C13.2248 10.9001 13.4747 10.8057 13.7305 10.725C13.6069 10.0305 13.3548 9.3804 12.9998 8.80019C12.6435 9.3825 12.3909 10.0352 12.2677 10.7325C12.5116 10.8119 12.7499 10.9038 12.9818 11.0072ZM10.3974 12.1861C10.259 12.1758 10.1191 12.1706 9.97806 12.1706C9.68186 12.1706 9.39103 12.1937 9.1073 12.2381C9.44659 12.5681 9.82768 12.8553 10.2419 13.0911C10.3148 13.0021 10.3897 12.9149 10.4666 12.8294C10.4344 12.6178 10.4112 12.4032 10.3974 12.1861ZM9.27818 14.6135C8.50368 14.1606 7.81907 13.5707 7.25761 12.877C6.04543 13.5545 5.11183 14.6709 4.67178 16.0111C5.63842 16.8125 6.87966 17.2943 8.23342 17.2943C8.35261 17.2943 8.47093 17.2905 8.58827 17.2832C8.64976 16.3331 8.89095 15.432 9.27818 14.6135ZM10.4498 16.8371C10.5392 16.3038 10.7042 15.7962 10.9334 15.3256C11.085 15.3697 11.2387 15.4091 11.3942 15.4436C11.5121 15.6445 11.6393 15.8393 11.7752 16.0275C11.3759 16.3554 10.9304 16.6291 10.4498 16.8371ZM8.68906 19.0804C8.53836 19.0896 8.38643 19.0943 8.23342 19.0943C6.82992 19.0943 5.51788 18.7027 4.40059 18.0228C4.54064 20.982 6.98419 23.3382 9.97806 23.3382C10.3286 23.3382 10.6715 23.3059 11.0041 23.2442C9.81887 22.1718 8.98334 20.72 8.68906 19.0804ZM12.9571 22.478C11.6671 21.6549 10.7378 20.3165 10.4593 18.7528C11.4019 18.4552 12.2628 17.9735 12.9998 17.35C13.7201 17.9595 14.5588 18.4334 15.4765 18.7324C15.1983 20.3075 14.2597 21.6548 12.9571 22.478ZM14.9067 23.2526C15.2467 23.3173 15.5976 23.3511 15.9565 23.3511C18.9412 23.3511 21.379 21.0093 21.5326 18.0627C20.4299 18.718 19.1419 19.0943 17.7661 19.0943C17.5906 19.0943 17.4164 19.0881 17.2439 19.0761C16.9463 20.7231 16.1024 22.18 14.9067 23.2526ZM22.5911 14.5228C21.9495 13.2133 20.9316 12.1216 19.6783 11.3888C20.1308 10.4323 20.3838 9.36317 20.3838 8.23489C20.3838 7.70673 20.3284 7.19153 20.223 6.69479C22.075 7.60369 23.35 9.50818 23.35 11.7105C23.35 12.736 23.0735 13.6969 22.5911 14.5228Z"})}))}},53957:function(t,e,n){n.d(e,{Z:()=>s});var r=n(7409),i=n(99282),l=n(98848),o=n(16584),a=n(64515);let s=t=>{var{size:e=24,fill:n="var(--color-fg-primary)"}=t,s=(0,l._)(t,["size","fill"]);return(0,o.tZ)(a.l,(0,i._)((0,r._)({},s),{name:"CommentBadgeFoundingIcon",svgParams:{viewBox:"0 0 24 24"},width:e,height:e,stroke:"none",fill:n,children:(0,o.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0436 3.51174C14.4213 1.66968 17.8438 1.81108 20.0161 3.98341C22.1882 6.15552 22.3297 9.5776 20.4883 11.9552C22.308 14.3248 22.1043 17.7443 19.9244 19.9242C17.7446 22.104 14.3255 22.3079 11.956 20.4885C9.57839 22.3299 6.1564 22.1883 3.98435 20.0162C1.8125 17.8443 1.67073 14.4227 3.51158 12.0451C1.69209 9.67557 1.89593 6.25627 4.07573 4.07643C6.25532 1.8968 9.67415 1.69278 12.0436 3.51174ZM10.7862 4.82251C9.14237 3.68439 6.84468 3.85303 5.34853 5.34921C3.8523 6.84546 3.68371 9.14337 4.822 10.7873C6.30674 9.7329 8.15567 9.41636 9.84859 9.84842C9.41641 8.15584 9.73255 6.30722 10.7862 4.82251ZM6.19444 12.0422C7.5081 11.2786 9.12685 11.2691 10.425 12.0048C9.11132 12.7684 7.49256 12.7779 6.19444 12.0422ZM4.82075 13.3014C3.6397 14.9746 3.79215 17.2784 5.25715 18.7435C6.72233 20.2087 9.02649 20.361 10.6997 19.1794C9.66398 17.7076 9.37248 15.8727 9.81462 14.1861C8.12786 14.6285 6.29279 14.3372 4.82075 13.3014ZM11.9587 17.8054C11.2232 16.5075 11.2326 14.8891 11.9957 13.5756C12.7312 14.8735 12.7218 16.4919 11.9587 17.8054ZM13.2136 19.178C14.8575 20.3162 17.1553 20.1477 18.6516 18.6514C20.1479 17.155 20.3164 14.8568 19.1778 13.2128C17.6931 14.2668 15.8445 14.5832 14.1519 14.1512C14.5841 15.8441 14.2678 17.6931 13.2136 19.178ZM17.805 11.958C16.4917 12.7209 14.8738 12.7303 13.5761 11.9952C14.8894 11.2324 16.5073 11.2229 17.805 11.958ZM19.1791 10.6991C20.3608 9.02581 20.2085 6.72146 18.7433 5.25619C17.2779 3.79079 14.9733 3.63863 13.3 4.82071C14.3361 6.29264 14.6277 8.1277 14.1855 9.81454C15.8722 9.37211 17.7071 9.66343 19.1791 10.6991ZM12.0413 6.19502C12.7767 7.49269 12.7676 9.1108 12.0048 10.4243C11.2694 9.12658 11.2786 7.50848 12.0413 6.19502Z"})}))}},20144:function(t,e,n){n.d(e,{Z:()=>s});var r=n(7409),i=n(99282),l=n(98848),o=n(16584),a=n(64515);let s=t=>{var{size:e=24,fill:n="var(--color-fg-primary)"}=t,s=(0,l._)(t,["size","fill"]);return(0,o.tZ)(a.l,(0,i._)((0,r._)({},s),{name:"CommentBadgeStarIcon",svgParams:{viewBox:"0 0 20 20"},width:e,height:e,fill:n,children:(0,o.tZ)("path",{stroke:"none",d:"M5.29389 16.7794C5.1238 16.6496 5.02086 16.4773 4.98505 16.2625C4.94924 16.0521 4.97834 15.8081 5.07233 15.5306L6.43525 11.4822L2.95746 8.99133C2.71576 8.81677 2.54568 8.6355 2.44721 8.44751C2.35322 8.25505 2.34203 8.05587 2.41364 7.84998C2.48078 7.64856 2.60834 7.49862 2.79633 7.40015C2.98432 7.30168 3.22602 7.25468 3.52143 7.25916L7.79145 7.28601L9.08722 3.21069C9.17674 2.92871 9.29759 2.71387 9.44977 2.56616C9.60195 2.41398 9.78323 2.33789 9.9936 2.33789C10.2084 2.33789 10.392 2.41398 10.5441 2.56616C10.6963 2.71387 10.8172 2.92871 10.9067 3.21069L12.2025 7.28601L16.4658 7.25916C16.7656 7.25468 17.0096 7.30168 17.1976 7.40015C17.3856 7.49862 17.5131 7.64856 17.5803 7.84998C17.6519 8.05587 17.6385 8.25505 17.54 8.44751C17.446 8.6355 17.2781 8.81677 17.0364 8.99133L13.5587 11.4822L14.9216 15.5306C15.0156 15.8081 15.0447 16.0521 15.0089 16.2625C14.973 16.4773 14.8701 16.6496 14.7 16.7794C14.5255 16.9092 14.3308 16.9562 14.1159 16.9204C13.9055 16.8846 13.6817 16.7794 13.4445 16.6049L9.9936 14.0737L6.54938 16.6049C6.31216 16.7794 6.08613 16.8846 5.87128 16.9204C5.66091 16.9562 5.46845 16.9092 5.29389 16.7794Z"})}))}},58319:function(t,e,n){n.d(e,{Z:()=>d});var r=n(27412),i=n(16584),l=n(6400),o=n(94184),a=n.n(o),s=n(98914);class d extends l.Component{async componentDidMount(){"undefined"!=typeof window&&(this.ref||await new Promise(t=>setTimeout(t,0)),this.checkVisibility(),(this.props.parent||window).addEventListener("scroll",this.checkVisibility))}componentWillUnmount(){"undefined"!=typeof window&&(this.props.parent||window).removeEventListener("scroll",this.checkVisibility)}render(t){let{className:e,children:n}=t;return(0,i.tZ)("div",{ref:this.assignRef,className:a()("visibility-check",e),children:n})}constructor(...t){super(...t),(0,r._)(this,"ref",void 0),(0,r._)(this,"assignRef",t=>{this.ref=t}),(0,r._)(this,"checkVisibility",()=>{if(!this.ref)return;let t=this.ref.getBoundingClientRect(),e=this.props.threshold||0,n=this.props.parent?this.props.parent.clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight),r=!(t.bottom<0-e||t.top>=n+e);(0,s.nn)(this,async(t,e)=>{if(t.isVisible!==r)this.setState({isVisible:r});else if(!e.noDedupe)return;let n=r?"hadFirstVisible":"hadFirstInvisible",i=!t[n];i&&this.setState({[n]:!0}),(await Promise.all([r&&e.onVisible&&e.onVisible(),r&&e.onFirstVisible&&i&&e.onFirstVisible(),!r&&e.onInvisible&&e.onInvisible(),!r&&e.onFirstInvisible&&i&&e.onFirstInvisible()])).reduce((t,e)=>!0===e||t)&&this.checkVisibility()})})}}},4796:function(t,e,n){n(16584),n(30396),n(98661),n(80569),n(95441),n(6400),n(68833),n(15771),n(61254),n(19081),n(84747),n(61468)},77338:function(t,e,n){n.d(e,{h:()=>v,x:()=>C});var r=n(7409),i=n(99282),l=n(16584),o=n(74691),a=n.n(o),s=n(39693),d=n.n(s),c=n(67348),u=n(93252),p=n(58175),m=n(23398),h=n(5749);function v(t){let{content:e,isHidden:n,hiddenText:r,attachedLinks:i}=t;return e?(0,l.BX)(p.xv.B4,{className:h.Z.feedCommentBodyInner,children:[n&&r,e&&(0,l.tZ)(C,{content:e,attachedLinks:i})]}):null}function C(t){var e,n,o,s,p,h,v;let{content:f,onLinkClicked:b,attachedLinks:g,isFirstElement:Z=!0,isLastElement:y=!1}=t;if("text"===f.type){let t=null===(e=f.marks)||void 0===e?void 0:e.find(t=>"link"===t.type),a=null==t?void 0:null===(n=t.attrs)||void 0===n?void 0:n.href,s=f.text;if(a){let t=(0,m.u)(a),e=Z||y?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e.length)return t;for(let n of e){let e=(0,m.u)(n);if(t.includes(e))return null}return t}(t,g):t;s=null!=e?e:void 0}if(!s)return null;let d=(0,l.tZ)(l.HY,{children:s});if(f.marks)for(let t of f.marks)"link"===t.type?d=(0,l.tZ)("a",(0,i._)((0,r._)({className:"note-link"},t.attrs),{target:(0,u.P)()?"_blank":null===(o=t.attrs)||void 0===o?void 0:o.target,onClick:()=>b&&b(),children:d})):"bold"===t.type?d=(0,l.tZ)("strong",{children:d}):"italic"===t.type?d=(0,l.tZ)("em",{children:d}):"strike"===t.type?d=(0,l.tZ)("s",{children:d}):"code"===t.type?d=(0,l.tZ)("code",{children:d}):"mark"===t.type&&(d=(0,l.tZ)("mark",{className:"note-highlight",children:d}));return d}if("substack_mention"===f.type){let{id:t,label:e,mentionType:n,url:r}=null!==(s=f.attrs)&&void 0!==s?s:{};return t&&e?(0,l.tZ)(c.p,{id:t,label:e,type:n,url:r}):null}let w=d()(null!==(p=f.content)&&void 0!==p?p:[]).map((t,e,n)=>(0,l.tZ)(C,{content:t,onLinkClicked:b,attachedLinks:g,isFirstElement:0===e,isLastElement:e===n.length-1}));if("doc"===f.type)return(0,l.tZ)("div",{className:"ProseMirror FeedProseMirror",children:w});if("paragraph"===f.type)return(0,l.tZ)("p",{children:w});if("heading"===f.type){let t="h".concat(a()((null!==(v=null===(h=f.attrs)||void 0===h?void 0:h.level)&&void 0!==v?v:1)+1,2,6));return(0,l.tZ)(t,{children:w})}return"blockquote"===f.type?(0,l.tZ)("blockquote",{children:w}):"codeBlock"===f.type?(0,l.tZ)("pre",{children:(0,l.tZ)("code",{children:w})}):"orderedList"===f.type?(0,l.tZ)("ol",{children:w}):"bulletList"===f.type?(0,l.tZ)("ul",{children:w}):"listItem"===f.type?(0,l.tZ)("li",{children:w}):null}},6091:function(t,e,n){n.d(e,{N:()=>c});var r=n(16584),i=n(32351),l=n(32129);n(30396),n(94184),n(31852),n(28161),n(3880),n(77338),n(5952);var o=n(98170);n(25642),n(16451),n(94874),n(71068),n(61254),n(19081),n(58175),n(27661),n(23398),n(98012),n(60308);var a=n(63651);n(5749);var s=n(33884),d=n(84864);function c(t){var e,n,c,u;let p,m,h,{comment:v,post:C,publication:f}=t,b="Substack | Notes";f&&v.name?b="".concat(v.name," on ").concat(f.name):v.name?b="".concat(v.name," on Substack"):f&&(b="".concat(f.name));let g=C&&f?(0,l.getPageTitleAndMeta)(C,f,{isCommentPage:!0}).title:"".concat(b,': "').concat((0,d.truncateText)(v.body,280),'"'),Z=(null!==(e=v.attachments)&&void 0!==e?e:[]).filter(t=>"image"===t.type),y=1===Z.length?Z[0]:null,w=y&&"imageUrl"in y?y.imageUrl:void 0;w?p=w:function(t){let{linkAttachment:e,imageAttachments:n,videoAttachments:r,quoteAttachments:i}=function(t){var e,n,r,i,l,o,a;let s=null===(e=t.attachments)||void 0===e?void 0:e.find(t=>["post","comment","link","publication"].includes(t.type)),d=null!==(l=null===(n=t.attachments)||void 0===n?void 0:n.filter(t=>"image"===t.type))&&void 0!==l?l:[];return{linkAttachment:s,imageAttachments:d,videoAttachments:null!==(o=null===(r=t.attachments)||void 0===r?void 0:r.filter(t=>"video"===t.type))&&void 0!==o?o:[],quoteAttachments:null!==(a=null===(i=t.attachments)||void 0===i?void 0:i.filter(t=>"post"===t.type&&!!t.postSelection))&&void 0!==a?a:[]}}(t);return!!e&&("comment"===e.type||"post"===e.type&&null!==(0,o.FK)({post:e.post,compact:!1,readOnly:!0}))||n.length>0||r.length>0||i.length>0}(v)&&(m=680,h=680,p=(0,a.zF4)((0,s.IY)(v.id,{isSmall:!0,attachmentsOnly:!0}),h,{height:m}));let _=null!==(n=v.body)&&void 0!==n?n:"";return(0,r.tZ)(i.Metadata,{title:g,socialTitle:b,description:_,image:p,imageHeight:m,imageWidth:h,isLargeImage:!!p||void 0,siteName:f?f.name:"Substack",publishedTime:v.date.toString(),meta:[{name:"twitter:label1",content:"Likes"},{name:"twitter:data1",content:String(null!==(c=v.reaction_count)&&void 0!==c?c:0)},{name:"twitter:label2",content:"Replies"},{name:"twitter:data2",content:String(null!==(u=v.children_count)&&void 0!==u?u:0)}]})}},46914:function(t,e,n){n.d(e,{z:()=>i});var r=n(30396);function i(t){let e=(0,r.sO)(t);return e.current=t,(0,r.Ye)(()=>function(){for(var t=arguments.length,n=Array(t),r=0;rs});var r=n(30396),i=n(68833),l=n(59176),o=n(98012);let a=()=>{};function s(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,[s,c]=(0,r.eJ)(!!t&&d(t,e,o));return((0,r.d4)(()=>{t&&c(d(t,e,o));let n=()=>{c(!0)};if(t){document.addEventListener("dismiss: ".concat(t),n,!1);let e=(0,l.mM)("".concat(t,"-seen-count"))||0;(!o||e{document.removeEventListener("dismiss: ".concat(t),n)}},[t]),t)?[s,()=>{n(),(0,i.j)(i.FP.DASHBOARD_ACTION_BOX_DISMISSED,{key:t});let e=new Date;(0,l.ex)(t,e.toString()),c(!0);let r=new Event("dismiss: ".concat(t));document.dispatchEvent(r)}]:[!0,a]}function d(t,e,n){let r;let i="undefined"==typeof window?new Date().toString():(0,l.mM)(t),a="undefined"==typeof window?0:(0,l.mM)("".concat(t,"-seen-count")),s=i||n&&a>=n;return s&&e?(0,o.Z)(i).add(e,"second").isAfterNow():!!(i||s)}},2748:function(t,e,n){n.d(e,{F:()=>l});var r=n(1835),i=n(84864);function l(t,e){var n,l,o,a;let s,d;let c=null===(n=t.name)||void 0===n?void 0:n.trim(),u=c;(0,i.endsWithPunctuation)(c)&&(u='"'.concat(c,'"'));let p=(0,r.Im)(t.contributors);return t.invite_only?(s=null,d=null):(s=(null===(o=t.rankingDetailFreeIncluded)||void 0===o?void 0:o.toLowerCase().includes("subscribers"))?t.rankingDetailFreeIncluded.toLowerCase():null,d=t.rankingDetailFreeIncluded||t.rankingDetail),(0,r.ab)(null!==(a=null!=e?e:null===(l=t.hero_text)||void 0===l?void 0:l.trim())&&void 0!==a?a:"",p,s,u,d)}},61468:function(t,e,n){n.d(e,{Ap:()=>a});var r=n(7409),i=n(99282);n(56303);var l=n(14293),o=n.n(l);n(84864);let a=t=>{let{rows:e,maxWordsPerRow:n=60}=t;if(o()(e[0]))return[];let l=[],a=(0,i._)((0,r._)({},e[0]),{words:e[0].words.map(t=>(0,i._)((0,r._)({},t),{originalIndex:0}))});for(let t=1;t(0,i._)((0,r._)({},e),{originalIndex:t}))});a.speaker===s.speaker&&a.words.length+s.words.length<=n?a={start:a.start,end:s.end,text:"".concat(a.text," ").concat(s.text),words:a.words.concat(...s.words),speaker:a.speaker}:(l.push(a),a=s)}return l.push(a),l}},93370:function(t,e,n){n.d(e,{DL:()=>i,Jk:()=>o,UB:()=>r,ZD:()=>a,fI:()=>l});let r=t=>{let e=Math.floor(t/60),n=Math.floor(t%60);return"".concat(e,":").concat(n.toString().padStart(2,"0"))};function i(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t<0)return"0:00";let n=Math.floor(t),r=Math.floor(n/60),i=n%60;if(e){let e=Math.round((t-n)*10);return"".concat(r,":").concat(String(i).padStart(2,"0"),".").concat(e)}return"".concat(r,":").concat(String(i).padStart(2,"0"))}let l=t=>/^[0-9.:]*$/.test(t),o=t=>/^(?:(?:[0-9]{1,3}):)?(?:[0-5][0-9]|[0-9]{1,2})(?:\.[0-9]{1,3})?$/.test(t),a=t=>{let[e="",n=""]=t.split("."),r=e.split(":").reverse().map(t=>parseInt(t)),i=r[0]||0,l=r[1]||0;return 3600*(r[2]||0)+60*l+i+parseInt(n.padEnd(3,"0"))/1e3}}}]);