"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["9867"],{5406:function(e,t,o){o.d(t,{Z:()=>s});let s={pubAccentTheme:"pubAccentTheme-rgl9Hv"}},22402:function(e,t,o){o.d(t,{Z:()=>s});let s={mention:"mention-LUD0tW",self:"self-ZrvJW0",unstyled:"unstyled-ydOSZ0"}},96164:function(e,t,o){o.d(t,{fg:()=>i}),o(69572);let s={user:"recentUserQ",pub:"recentPubQ",importsReviewPageSize:"importsReviewPageSize",importsReviewColumns:"importsReviewColumns"},i=()=>{"undefined"!=typeof localStorage&&(localStorage.getItem(s.user)&&localStorage.setItem(s.user,"[]"),localStorage.getItem(s.pub)&&localStorage.setItem(s.pub,"[]"),localStorage.removeItem(s.importsReviewPageSize),localStorage.removeItem(s.importsReviewColumns))}},1055:function(e,t,o){o.d(t,{Z:()=>r});var s=o(7409),i=o(99282),n=o(16584),l=o(64515);let r=e=>(0,n.tZ)(l.l,(0,i._)((0,s._)({},e),{name:"PlayIconRounded",svgParams:{height:16,width:16},stroke:"none",children:(0,n.tZ)("path",{d:"M3.35866 16C2.58101 16 2 15.4101 2 14.4447V1.55531C2 0.598883 2.58101 0 3.35866 0C3.75196 0 4.10056 0.134078 4.54749 0.393296L15.1575 6.54302C15.9531 7.00782 16.3106 7.39218 16.3106 8C16.3106 8.61676 15.9531 9.00112 15.1575 9.45698L4.54749 15.6067C4.10056 15.8659 3.75196 16 3.35866 16Z"})}))},93666:function(e,t,o){o.d(t,{Z:()=>u,p:()=>m});var s=o(27412),i=o(7409),n=o(99282),l=o(16584),r=o(6400),a=o(94184),c=o.n(a),p=o(71375),h=o(98914),d=o(15771);class u extends r.Component{componentDidMount(){document.addEventListener("keydown",this.onDocumentKeyDown),this.props.openByDefault&&this.openImmediately()}componentWillUnmount(){document.removeEventListener("keydown",this.onDocumentKeyDown),this._timeout&&clearTimeout(this._timeout)}openImmediately(e){e&&(this._callback=e);let t=document.getElementsByTagName("html")[0];t&&!(0,h.pv)(t,"modal-in")&&(0,h.cn)(t,"modal-in"),this.setState({display:!0,open:!0})}async open(e){e&&(this._callback=e);let t=document.getElementsByTagName("html")[0];t&&!(0,h.pv)(t,"modal-in")&&(0,h.cn)(t,"modal-in"),this.onBeforeOpen(),this.props.onBeforeOpen&&this.props.onBeforeOpen(),await new Promise(e=>{this.setState({display:!0},()=>{this._timeout&&clearTimeout(this._timeout);let t=setTimeout(()=>{this.setState({open:!0},()=>{this.onOpen(),this.props.onOpen&&this.props.onOpen(),e()})},50);this._timeout=t})})}async close(e){this.isOpen()&&!1!==this.onBeforeClose(e)&&(!this.props.onBeforeClose||!1!==this.props.onBeforeClose(e))&&((0,h.IV)(document.getElementsByTagName("html")[0],"modal-in"),await new Promise(t=>{this.setState({open:!1},()=>{let o=setTimeout(()=>{this.setState({display:!1},()=>{this.onClose(e),this.props.onClose&&this.props.onClose(e),this._callback&&this._callback(e),t()})},750);this._timeout=o})}))}isOpen(){return this.state.open}onClickOuter(e){var t,o;e.stopPropagation(),null===(t=(o=this.props).onClick)||void 0===t||t.call(o,e),!this.props.noExit&&!this.props.noExitOnClick&&this.popup&&(this.noFullscreen||window.innerWidth>540)&&e.target&&this.container&&this.close()}onClickInner(e){var t,o;e.stopPropagation(),null===(t=(o=this.props).onClick)||void 0===t||t.call(o,e)}render(e,t){let o=this.state.open?"in":"out",s=!1===this.state.display?"gone":"",r="structured"===this.props.variant,a=!this.state.open;return(0,l.tZ)("div",{className:c()("modal typography",o,s,this.props.className,this.getClassName(),{"has-close-pill":this.props.closePill,"structured-modal":r,popup:this.popup}),inert:a,onClick:e=>this.onClickOuter(e),"data-testid":this.props.testID,role:"dialog",style:this.props.zIndex?{zIndex:this.props.zIndex}:{},children:(0,l.tZ)("div",{className:"modal-table",children:(0,l.tZ)("div",{className:"modal-row",children:(0,l.tZ)("div",{ref:this.assignContent,className:c()("modal-cell modal-content",{"no-fullscreen":this.noFullscreen}),children:(0,l.BX)("div",(0,n._)((0,i._)({className:c()({container:!r}),ref:this.assignContainer,onClick:e=>this.onClickInner(e)},this.props.trackInputsID&&{"data-track-inputs":this.props.trackInputsID}),{children:[!this.props.noExit&&(!this.props.noCloseButton||(0,h.K1)())&&(r?(0,l.tZ)("div",{className:"structured-modal__close-button",children:(0,l.tZ)(d.hU,{"data-testid":"close-modal",priority:"tertiary",onClick:()=>this.close(),children:(0,l.tZ)(p.Z,{size:20,color:"secondary"})})}):(0,l.tZ)(d.hU,{"data-testid":"close-modal",priority:"tertiary",className:c()("modal-btn modal-exit-btn no-margin",{"button btn btn-secondary btn-pill icon-only":this.props.closePill}),onClick:()=>this.close(),children:(0,l.tZ)(p.Z,{size:20,color:"secondary"})})),r?(0,l.BX)("div",{className:"structured-modal__wrapper",children:[(0,l.tZ)("div",{className:"structured-modal__header",children:this.props.modalTitle?(0,l.tZ)("h3",{children:this.props.modalTitle}):(0,l.tZ)("h3",{children:"\xa0"})}),(0,l.tZ)("div",{className:"structured-modal__body",children:(0,l.tZ)("div",{className:"container",children:this.renderChildren(this.props,this.state)})}),this.props.modalFooter&&(0,l.tZ)("div",{className:"structured-modal__footer",children:this.props.modalFooter})]}):this.renderChildren(this.props,this.state)]}))})})})})}getClassName(){}onBeforeOpen(){}onOpen(e){}onBeforeClose(e){}onClose(e){}renderChildren(e,t){let{children:o}=e;return o}constructor(e,t){super(e,t),(0,s._)(this,"popup",void 0),(0,s._)(this,"_timeout",void 0),(0,s._)(this,"_callback",void 0),(0,s._)(this,"content",void 0),(0,s._)(this,"container",void 0),(0,s._)(this,"assignContent",e=>{this.content=e}),(0,s._)(this,"assignContainer",e=>{this.container=e}),(0,s._)(this,"noFullscreen",void 0),(0,s._)(this,"state",void 0),(0,s._)(this,"onDocumentKeyDown",e=>{"Escape"!==e.key||this.props.noExit||(0,h.$Z)(this.base)||this.close()}),this.open=this.open.bind(this),this.close=this.close.bind(this),this.popup=!1,this.state={open:!1,display:!1,callback:null}}}class m extends u{constructor(e,t){super(e,t),this.popup=!0}}},40225:function(e,t,o){o.d(t,{M:()=>f});var s=o(7409),i=o(99282),n=o(98848),l=o(16584),r=o(98661),a=o(94184),c=o.n(a),p=o(24840),h=o(71375),d=o(95441),u=o(15771),m=o(19081),v=o(51776),y=o(36827);let f=(0,r.forwardRef)((e,t)=>{var o,{className:a,error:f=!1,placeholder:C="Search...",showIcon:g=!0,showClear:_=!0,flex:Z="auto",onChange:b}=e,k=(0,n._)(e,["className","error","placeholder","showIcon","showClear","flex","onChange"]);let{iString:w}=(0,d.M1)(),[I,N]=(0,r.useState)(null!==(o=k.defaultValue)&&void 0!==o?o:"");return(0,l.tZ)(m.tu,{position:"relative",flex:Z,children:(0,l.tZ)(v.oi,(0,i._)((0,s._)({},k),{leading:g?(0,l.tZ)(p.Z,{size:16}):null,trailing:_&&I?(0,l.tZ)(u.hU,{size:"xs",onClick:()=>{N(""),b&&b("")},"aria-label":w("Clear"),priority:"quaternary",children:(0,l.tZ)(h.Z,{size:16})}):null,className:c()(a,y.Z.searchInput),error:f,disabled:k.disabled,placeholder:C,value:I,ref:t,flex:Z,type:"search",onInput:e=>{let t=e.currentTarget.value;N(t),b&&b(t.trim())}}))})})},22498:function(e,t,o){o.d(t,{aT:()=>r,cb:()=>n,je:()=>i});var s=o(62092);function i(e,t){let{nodeTypes:o,reverse:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(e,t,{nodeTypes:o,reverse:s})}function n(e,t){let{nodeTypes:o,reverse:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l(e,t,{nodeTypes:o,reverse:s})}function l(e,t){var o;let{nodeTypes:i,reverse:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!e)return;i&&!Array.isArray(i)&&(i=[i]);let c=!1;if("type"in e&&e.type&&(i?"string"==typeof e.type&&i.includes(e.type)?c=!0:"string"!=typeof e.type&&"name"in e.type&&i.includes(e.type.name)&&(c=!0):c=!0),"type"in e&&c){let o=t(e,a);if(!1===o||o===r)return o}let p=[];if((0,s.f5)(e))Array.isArray(e.content)&&(p=e.content);else if((null===(o=e.content)||void 0===o?void 0:o.childCount)&&e.content.childCount>0)for(let t=0;t