1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69579],{64520:function(e,n,t){t.d(n,{Li:function(){return z},N:function(){return H},Rq:function(){return O},c8:function(){return L},lb:function(){return _},mi:function(){return q},oG:function(){return W},pz:function(){return Z},ub:function(){return J}});var o=t(38254),a=t(20361),i=t(83148),r=t(21793);let l=(e,n)=>({className:"publication-font-".concat(e),style:{fontFamily:n}}),s=l("fira-mono",'"Fira Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace'),c=l("fira-sans",'"Fira Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),u=l("ibm-plex-serif",'"IBM Plex Serif", Georgia, "Times New Roman", serif'),d=l("dm-serif-display",'"DM Serif Display", Georgia, "Times New Roman", serif'),b=l("inter",'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),f=l("jetbrains-mono",'"JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace'),p=l("lexend",'Lexend, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),m=l("libre-baskerville",'"Libre Baskerville", Georgia, "Times New Roman", serif'),v=l("lora",'Lora, Georgia, "Times New Roman", serif'),h=l("manrope",'Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),g=l("merriweather",'Merriweather, Georgia, "Times New Roman", serif'),y=l("noto-sans",'"Noto Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),S=l("noto-serif",'"Noto Serif", Georgia, "Times New Roman", serif'),k=l("nunito",'Nunito, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),x=l("eb-garamond",'"EB Garamond", Garamond, Georgia, "Times New Roman", serif'),w=l("playfair-display",'"Playfair Display", Georgia, "Times New Roman", serif'),C=l("poppins",'Poppins, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),M=l("roboto","Roboto, Arial, sans-serif"),T=l("roboto-mono",'"Roboto Mono", "SFMono-Regular", Consolas, monospace'),F=l("roboto-slab",'"Roboto Slab", Georgia, "Times New Roman", serif'),I=l("source-sans-3",'"Source Sans 3", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),N=l("space-grotesk",'"Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'),R=l("space-mono",'"Space Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace'),B=l("spectral",'Spectral, Georgia, "Times New Roman", serif'),P=l("zilla-slab",'"Zilla Slab", Georgia, "Times New Roman", serif'),A=[{name:"Agbalumo",label:"Agbalumo",font:l("agbalumo","Agbalumo")},{name:"Alice",label:"Alice",font:l("alice","Alice")},{name:"Almarai",label:"Almarai",font:l("almarai","Almarai")},{name:"Anton",label:"Anton",font:l("anton","Anton")},{name:"Archivo",label:"Archivo",font:l("archivo","Archivo")},{name:"Archivo Black",label:"Archivo Black",font:l("archivo-black","Archivo Black")},{name:"Arimo",label:"Arimo",font:l("arimo","Arimo")},{name:"Averia Serif Libre",label:"Averia Serif Libre",font:l("averia-serif-libre","Averia Serif Libre")},{name:"Bitter",label:"Bitter",font:l("bitter","Bitter")},{name:"Calistoga",label:"Calistoga",font:l("calistoga","Calistoga")},{name:"Capriola",label:"Capriola",font:l("capriola","Capriola")},{name:"Climate Crisis",label:"Climate Crisis",font:l("climate-crisis","Climate Crisis")},{name:"Coiny",label:"Coiny",font:l("coiny","Coiny")},{name:"Comfortaa",label:"Comfortaa",font:l("comfortaa","Comfortaa")},{name:"Concert One",label:"Concert One",font:l("concert-one","Concert One")},{name:"Dela Gothic One",label:"Dela Gothic One",font:l("dela-gothic-one","Dela Gothic One")},{name:"Epilogue",label:"Epilogue",font:l("epilogue","Epilogue")},{name:"Familjen Grotesk",label:"Familjen Grotesk",font:l("familjen-grotesk","Familjen Grotesk")},{name:"Fredoka",label:"Fredoka",font:l("fredoka","Fredoka")},{name:"Gilda Display",label:"Gilda Display",font:l("gilda-display","Gilda Display")},{name:"Goblin One",label:"Goblin One",font:l("goblin-one","Goblin One")},{name:"IBM Plex Mono",label:"IBM Plex Mono",font:l("ibm-plex-mono","IBM Plex Mono")},{name:"Inconsolata",label:"Inconsolata",font:l("inconsolata","Inconsolata")},{name:"Instrument Serif",label:"Instrument Serif",font:l("instrument-serif","Instrument Serif")},{name:"Karla",label:"Karla",font:l("karla","Karla")},{name:"Lilita One",label:"Lilita One",font:l("lilita-one","Lilita One")},{name:"Marcellus",label:"Marcellus",font:l("marcellus","Marcellus")},{name:"Modak",label:"Modak",font:l("modak","Modak")},{name:"Neuton",label:"Neuton",font:l("neuton","Neuton")},{name:"Newsreader",label:"Newsreader",font:l("newsreader","Newsreader")},{name:"Nunito Sans",label:"Nunito Sans",font:l("nunito-sans","Nunito Sans")},{name:"Ojuju",label:"Ojuju",font:l("ojuju","Ojuju")},{name:"Open Sans",label:"Open Sans",font:l("open-sans","Open Sans")},{name:"Oswald",label:"Oswald",font:l("oswald","Oswald")},{name:"Ovo",label:"Ovo",font:l("ovo","Ovo")},{name:"PT Serif",label:"PT Serif",font:l("pt-serif","PT Serif")},{name:"Pontano Sans",label:"Pontano Sans",font:l("pontano-sans","Pontano Sans")},{name:"Raleway",label:"Raleway",font:l("raleway","Raleway")},{name:"Roboto Condensed",label:"Roboto Condensed",font:l("roboto-condensed","Roboto Condensed")},{name:"Rokkitt",label:"Rokkitt",font:l("rokkitt","Rokkitt")},{name:"Rubik",label:"Rubik",font:l("rubik","Rubik")},{name:"Sansita",label:"Sansita",font:l("sansita","Sansita")},{name:"Shrikhand",label:"Shrikhand",font:l("shrikhand","Shrikhand")},{name:"Signika Negative",label:"Signika Negative",font:l("signika-negative","Signika Negative")},{name:"Syncopate",label:"Syncopate",font:l("syncopate","Syncopate")},{name:"Syne",label:"Syne",font:l("syne","Syne")},{name:"Syne Mono",label:"Syne Mono",font:l("syne-mono","Syne Mono")},{name:"Tenor Sans",label:"Tenor Sans",font:l("tenor-sans","Tenor Sans")},{name:"Titillium Web",label:"Titillium Web",font:l("titillium-web","Titillium Web")},{name:"Trocchi",label:"Trocchi",font:l("trocchi","Trocchi")},{name:"Ubuntu",label:"Ubuntu",font:l("ubuntu","Ubuntu")},{name:"Ultra",label:"Ultra",font:l("ultra","Ultra")},{name:"Unbounded",label:"Unbounded",font:l("unbounded","Unbounded")},{name:"Urbanist",label:"Urbanist",font:l("urbanist","Urbanist")},{name:"Varela Round",label:"Varela Round",font:l("varela-round","Varela Round")},{name:"Vina Sans",label:"Vina Sans",font:l("vina-sans","Vina Sans")},{name:"Work Sans",label:"Work Sans",font:l("work-sans","Work Sans")},{name:"Young Serif",label:"Young Serif",font:l("young-serif","Young Serif")}],j="".concat(b.style.fontFamily,', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'),O=[{name:"DM Serif Display",label:"DM Serif Display",font:d},{name:"EB Garamond",label:"EB Garamond",font:x},{name:"Fira_Mono",label:"Fira Mono",font:s},{name:"Fira_Sans",label:"Fira Sans",font:c},{name:"IBM_Plex_Serif",label:"IBM Plex Serif",font:u},{name:"Inter",label:"Inter",font:b},{name:"JetBrains_Mono",label:"JetBrains Mono",font:f},{name:"Lexend",label:"Lexend",font:p},{name:"Libre Baskerville",label:"Libre Baskerville",font:m},{name:"Lora",label:"Lora",font:v},{name:"Manrope",label:"Manrope",font:h},{name:"Merriweather",label:"Merriweather",font:g},{name:"Noto_Sans",label:"Noto Sans",font:y},{name:"Noto_Serif",label:"Noto Serif",font:S},{name:"Nunito",label:"Nunito",font:k},{name:"Playfair Display",label:"Playfair Display",font:w},{name:"Poppins",label:"Poppins",font:C},{name:"Roboto",label:"Roboto",font:M},{name:"Roboto Mono",label:"Roboto Mono",font:T},{name:"Roboto Slab",label:"Roboto Slab",font:F},{name:"Source Sans 3",label:"Source Sans 3",font:I},{name:"Space Grotesk",label:"Space Grotesk",font:N},{name:"Space_Mono",label:"Space Mono",font:R},{name:"Spectral",label:"Spectral",font:B},{name:"Zilla Slab",label:"Zilla Slab",font:P},...A],U=e=>{var n;return null===(n=O.find(n=>n.name===e))||void 0===n?void 0:n.font},Z=e=>O.find(n=>n.name===e),D=[{label:"Sans / Modern",fontNames:["Inter","Manrope","Poppins","Space Grotesk","Lexend","Roboto"]}
1,{label:"Editorial / Serif",fontNames:["Lora","Merriweather","Playfair Display","Libre Baskerville","EB Garamond","Spectral","Roboto Slab","Zilla Slab","DM Serif Display"]},{label:"Technical / Niche",fontNames:["JetBrains_Mono","Roboto Mono","Space_Mono","Fira_Mono"]},{label:"Other Fonts",fontNames:["Agbalumo","Alice","Anton","Archivo","Archivo Black","Averia Serif Libre","Calistoga","Capriola","Climate Crisis","Coiny","Comfortaa","Concert One","Dela Gothic One","Epilogue","Familjen Grotesk","Fredoka","Gilda Display","Goblin One","Inconsolata","Instrument Serif","Lilita One","Marcellus","Modak","Neuton","Newsreader","Ojuju","Open Sans","Oswald","Ovo","Rubik","Sansita","Shrikhand","Signika Negative","Syncopate","Syne","Tenor Sans","Trocchi","Ubuntu","Ultra","Unbounded","Urbanist","Vina Sans","Young Serif"]}],G=[{label:"Sans / Modern",fontNames:["Inter","Manrope","Source Sans 3","Roboto","Nunito","Noto_Sans"]},{label:"Editorial / Serif",fontNames:["Lora","Merriweather","Spectral","Noto_Serif","Libre Baskerville"]},{label:"Other Fonts",fontNames:["Almarai","Archivo","Arimo","Bitter","Epilogue","Familjen Grotesk","IBM Plex Mono","Karla","Newsreader","Nunito Sans","PT Serif","Pontano Sans","Raleway","Roboto Condensed","Rokkitt","Syne","Syne Mono","Titillium Web","Varela Round","Work Sans"]}],E=(e,n)=>{let t=new Map(O.map(e=>[e.name,e])),o=e.map(e=>({label:e.label,options:e.fontNames.map(e=>t.get(e)).filter(Boolean)})).filter(e=>e.options.length>0),a=n?Z(n):void 0,i=!!n&&e.some(e=>e.fontNames.includes(n));return a&&!i&&o.push({label:"Legacy / Existing",options:[a]}),o},L=e=>E(D,e),W=e=>E(G,e),_=e=>{var n,t,o,a,r,l;if(null===(t=e.siteStyle)||void 0===t?void 0:null===(n=t.fontOverrides)||void 0===n?void 0:n.bodyFont)return e.siteStyle.fontOverrides.bodyFont;let s=(null===(o=e.siteStyle)||void 0===o?void 0:o.themeId)?i.SJ[e.siteStyle.themeId]:void 0,c=(null===(a=e.siteStyle)||void 0===a?void 0:a.fontPackId)?i.r8.fontPacks[e.siteStyle.fontPackId]:null==s?void 0:s.fontPack;return c?c.body.family:null!==(l=null!==(r=e.bodyFont)&&void 0!==r?r:e.font)&&void 0!==l?l:null},J=e=>{var n,t,o,a,r,l,s;if(null===(t=e.siteStyle)||void 0===t?void 0:null===(n=t.fontOverrides)||void 0===n?void 0:n.headingFont)return e.siteStyle.fontOverrides.headingFont;let c=(null===(o=e.siteStyle)||void 0===o?void 0:o.themeId)?i.SJ[e.siteStyle.themeId]:void 0,u=(null===(a=e.siteStyle)||void 0===a?void 0:a.fontPackId)?i.r8.fontPacks[e.siteStyle.fontPackId]:null==c?void 0:c.fontPack;return u?u.heading.family:null!==(s=null!==(l=null!==(r=e.headingFont)&&void 0!==r?r:e.bodyFont)&&void 0!==l?l:e.font)&&void 0!==s?s:null},V=e=>{var n;if("Arial, Helvetica, sans-serif"===e)return e;let t=null===(n=U(e))||void 0===n?void 0:n.style.fontFamily;return t?"".concat(t,", ").concat(j):j},z=e=>V(_(e)),q=e=>V(J(e)),H=e=>{let n=z(e),t=q(e),{backgroundColor:i,textColor:l,secondaryTextColor:s,accentColor:c,accentTextColor:u}=(0,r.eV)(e).colors,d="#ffffff"===l,b=d?(0,a.Fq)("#FFFFFF",.06):"#FFFFFF",f=(0,o.Z)({typography:{fontFamily:n,h1:{fontFamily:t},h2:{fontFamily:t},h3:{fontFamily:t},h4:{fontFamily:t},h5:{fontFamily:t},h6:{fontFamily:t},button:{textTransform:"none"}}});return(0,o.Z)(f,{palette:{mode:d?"dark":"light",background:{default:i,paper:b},text:{primary:l,secondary:s},divider:(0,a.Fq)(l,d?.18:.12),action:{...f.palette.action,hover:(0,a.Fq)(l,d?.08:.04)},primary:{main:c,dark:c,contrastText:u,backgroundColor:i,foregroundColor:l,secondaryForegroundColor:s}}})}},75459:function(e,n,t){t.d(n,{Tk:function(){return a},qK:function(){return i}});var o=t(31114);let a=e=>(0,o.dT)(e)?(null==e?void 0:e.memberSignupAccess)?e.memberSignupAccess:(null==e?void 0:e.membershipsEnabled)&&!e.isEmailNewsletterEnabled?"paid_only":(null==e?void 0:e.isEmailNewsletterEnabled)?"anyone":"nobody":null,i=e=>"paid_only"===a(e)},25630:function(e,n,t){t.d(n,{Rt:function(){return a},TN:function(){return i},UW:function(){return r},ZB:function(){return l}});let o=e=>{var n;return(null===(n=e.emailSignupButtonText)||void 0===n?void 0:n.trim())||"Subscribe"},a=e=>{var n,t;return{title:void 0!==e.subscribePageTitle?e.subscribePageTitle:(null===(n=e.signupHeading)||void 0===n?void 0:n.trim())||e.title,de
1scription:void 0!==e.subscribePageDescription?e.subscribePageDescription:(null===(t=e.signupSubheading)||void 0===t?void 0:t.trim())||"To subscribe to this publication, please enter your details here. We will send updates occasionally.",buttonText:"Subscribe"}},i=e=>!1===e.headerSignupButtonTextOverrideEnabled?o(e):void 0!==e.headerSignupButtonText?e.headerSignupButtonText:o(e),r=e=>{var n,t,a;return{title:void 0!==e.footerSignupTitle?e.footerSignupTitle:null!==(n=e.signupHeading)&&void 0!==n?n:e.title,description:void 0!==e.footerSignupDescription?e.footerSignupDescription:null!==(a=null!==(t=e.signupSubheading)&&void 0!==t?t:e.description)&&void 0!==a?a:"",buttonText:void 0!==e.footerSignupButtonText?e.footerSignupButtonText:o(e)}},l=e=>{var n,t,a;return{title:void 0!==e.sidebarSignupTitle?e.sidebarSignupTitle:null!==(n=e.signupHeading)&&void 0!==n?n:e.title,description:void 0!==e.sidebarSignupDescription?e.sidebarSignupDescription:null!==(a=null!==(t=e.signupSubheading)&&void 0!==t?t:e.description)&&void 0!==a?a:"",buttonText:void 0!==e.sidebarSignupButtonText?e.sidebarSignupButtonText:o(e)}}},67315:function(e,n,t){t.d(n,{EN:function(){return i},JV:function(){return r},K:function(){return s},pR:function(){return l}});var o=t(1972);let a="/subscribe",i=e=>{var n;return(null!==(n=null==e?void 0:e.trim())&&void 0!==n?n:"")===a},r=(e,n)=>!e||!e.startsWith("/")||e.startsWith("//")?n:e,l=e=>(0,o.q9)(e,"/"),s=e=>{let{publication:n,nextPath:t,mode:i="signup"}=e,s=(0,o.q9)(n,a),c=r(t,l(n)),u=new URLSearchParams;c&&u.set("next",c),"signup"!==i&&u.set("mode",i);let d=u.toString();return d?"".concat(s,"?").concat(d):s}},8875:function(e,n,t){t.d(n,{Fl:function(){return F},Jh:function(){return x},L1:function(){return u},VL:function(){return h},Wp:function(){return k},_y:function(){return g},aF:function(){return C},dD:function(){return b},gC:function(){return d},gO:function(){return f},ju:function(){return m},pF:function(){return I},q9:function(){return M},un:function(){return v},yw:function(){return S}});var o=t(14859),a=t(18745),i=t(46716),r=t(9351),l=t(21793),s=t(76258),c=t(17539);let u=!1,d=!1,b=()=>(0,o.Z)((0,a.Z)().breakpoints.down("md")),f=e=>{var n;return null!==(n=(0,i.zD)(e)("h1").text())&&void 0!==n?n:""},p=e=>e.toLowerCase().trim().replace(/&/g," and ").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"section",m=(e,n)=>{var t,o;if(!e)return{titleHtml:"",bodyHtml:"",tableOfContents:[]};let a=(0,i.zD)(e,void 0,!1),l=a("h1").first(),s=null!==(t=a.html(l))&&void 0!==t?t:"";l.length&&l.remove();let c=new Set,u=[];return a("h2, h3").each((e,n)=>{var t,o;let i=a(n),r=i.text().trim();if(!r)return;let l=(null===(t=i[0])||void 0===t?void 0:t.tagName)==="h3"?3:2,s=(null===(o=i.attr("id"))||void 0===o?void 0:o.trim())||p(r);if(c.has(s)){let e=2;for(;c.has("".concat(s,"-").concat(e));)e+=1;s="".concat(s,"-").concat(e)}c.add(s),i.attr("id",s),u.push({id:s,text:r,level:l})}),(null==n?void 0:n.removeEmbeddedVideoWithKey)&&a("iframe").each((e,t)=>{let o=a(t);if((0,r.ng)(o.attr("src"))!==n.removeEmbeddedVideoWithKey)return;let i=o.parents().toArray();for(let e of(o.remove(),i)){var l;let n=a(e),t=null===(l=e.tagName)||void 0===l?void 0:l.toLowerCase();if(!["p","span","div","figure"].includes(null!=t?t:"")||n.text().trim()||n.children().length)break;n.remove()}}),{titleHtml:s,bodyHtml:null!==(o=a.root().html())&&void 0!==o?o:"",tableOfContents:u}},v=e=>{var n,t;return e.title?e.title:f(null!==(t=null!==(n=e.html)&&void 0!==n?n:e.publishedHtml)&&void 0!==t?t:"")},h=e=>{if(!e)return[];let n=(0,i.zD)(e);return n("img").map(function(){return n(this).attr("src")}).toArray().filter(Boolean)},g=function(e){var n;let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.featuredImageUrl&&"undefined"!==e.featuredImageUrl)return e.featuredImageUrl;if(t&&!e.publishedHtml||!t&&!e.html)return"";let o=h(null!==(n=t?e.publishedHtml:e.html)&&void 0!==n?n:"").filter(e=>"undefined"!==e);return e.featuredImageUrl&&"undefined"!==e.featuredImageUrl&&o.includes(e.featuredImageUrl)?e.featuredImageUrl:o[0]},y=e=>{if(!e)return 0;let n=(0,i.zD)(e).text().trim();return n?n.split(/\s+/).length:0},S=e=>Math.max(1,Math.round(y(e)/250)),k=e=>{var n,t,o,a,i,r;let l=null!==(n=null==e?void 0:e.showPostMetadata)&&void 0!==n&&n,s=null!==(t=null==e?void 0:e.showAuthor)&&void 0!==t?t:l,c=null!==(o=null==e?void 0:e.showPublishDate)&&void 0!==o?o:l;return{showAuthor:null!==(a=null==e?void 0:e.showAuthorInFeed)&&void 0!==a?a:s,showPublishDate:null!==(i=null==e?void 0:e.showPublishDateInFeed)&&void 0!==i?i:c,showReadTime:null!==(r=null==e?void 0:e.showReadTimeInFeed)&&void 0!==r?r:c}},x=e=>/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,8}$/i.test(e),w=e=>{let n=e.replace("#","");return .299*+"0x".concat(n.slice(0,2))+.587*+"0x".concat(n.slice(2,4))+.114*+"0x".concat(n.slice(4,6)
1)>186},C=e=>w(e)?"#15171A":"#ffffff",M=(e,n)=>e.id===s.AS?(0,c.eQ)(n):n,T=function(e,n,t){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=RegExp("^".concat(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s*:"),"i"),i=(null!=e?e:"").split(";").map(e=>e.trim()).filter(Boolean).filter(e=>!a.test(e));return i.push("".concat(n,": ").concat(t).concat(o?" !important":"")),"".concat(i.join("; "),";")},F=(e,n)=>{var t;let o=(0,i.zD)(e,void 0,!1);return o('[data-vtb-cta-publication-color-mode="inherit"]').each((e,t)=>{let a=o(t),i=a.find("table.vtb-cta__surface").first(),r=a.find("h2, h3"),l=a.find("p"),s=a.find("a").first();i.length&&i.attr("style",T(i.attr("style"),"background-color","transparent")),r.each((e,t)=>{let a=o(t);a.attr("style",T(a.attr("style"),"color",n.textColor,!0))}),l.each((e,t)=>{let a=o(t);a.attr("style",T(a.attr("style"),"color",n.textColor))}),s.length&&(s.attr("style",T(s.attr("style"),"background-color",n.accentColor)),s.attr("style",T(s.attr("style"),"color",n.accentTextColor))),a.attr("data-vtb-cta-show-dividers","true"),a.attr("style",T(a.attr("style"),"border-top","1px solid ".concat(n.secondaryTextColor))),a.attr("style",T(a.attr("style"),"border-bottom","1px solid ".concat(n.secondaryTextColor))),a.attr("style",T(a.attr("style"),"margin","24px 0")),a.attr("style",T(a.attr("style"),"padding","24px 0"))}),null!==(t=o.root().html())&&void 0!==t?t:e},I=(e,n)=>{var t;let{colors:o}=(0,l.eV)(e),a=F(n,o),i=(null===(t=e.siteStyle)||void 0===t?void 0:t.themeId)?"underline":"none";return'\n<div class="vtb-publication-content">\n <style>\n .vtb-publication-content { color: '.concat(o.textColor,"; }\n .vtb-publication-content a, .vtb-publication-content a:visited { color: ").concat(o.accentColor,"; text-decoration: ").concat(i,"; text-underline-offset: 0.16em; }\n .vtb-publication-content a:hover { color: ").concat(o.accentColor,"; text-decoration: ").concat(i,"; }\n .vtb-publication-content h2[id], .vtb-publication-content h3[id] { scroll-margin-top: 112px; }\n .vtb-publication-content hr { border: 0; border-top: 1px solid ").concat(o.secondaryTextColor,'; }\n .vtb-publication-content .vtb-cta[data-vtb-cta-show-dividers="true"] { margin: 24px 0; }\n .vtb-publication-content iframe[src*="youtube.com/embed/"], .vtb-publication-content iframe[src*="youtube-nocookie.com/embed/"] { display: block; width: 100%; max-width: 100%; margin: 1.5rem auto; border: 0; border-radius: 16px; background: #000; }\n .vtb-publication-content pre { font-size: 13px !important; line-height: 1.23 !important; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 0 0 1.5em; }\n .vtb-publication-content pre.vtb-code-block, .vtb-publication-content pre[data-code-block="true"] { background: #f5f2f0; color: #000; text-shadow: 0 1px #fff; }\n .vtb-publication-content pre[class*="language-"] { padding: 16px !important; margin: 0 0 1.5em !important; }\n .vtb-publication-content pre code { display: block; white-space: pre-wrap !important; font-size: 13px !important; }\n .vtb-publication-content code[class*="language-"], .vtb-publication-content pre[class*="language-"] { color: #000; background: transparent; text-shadow: 0 1px #fff; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; }\n .vtb-publication-content code[class*="language-"]::selection, .vtb-publication-content code[class*="language-"] ::selection, .vtb-publication-content pre[class*="language-"]::selection, .vtb-publication-content pre[class*="language-"] ::selection { text-shadow: none; background: #b3d4fc; }\n .vtb-publication-content :not(pre) > code[class*="language-"], .vtb-publication-content pre[class*="language-"] { background: #f5f2f0; }\n .vtb-publication-content :not(pre) > code[class*="language-"] { padding: 0.1em; border-radius: 0.3em; white-space: normal; }\n .vtb-publication-content .token.comment, .vtb-publication-content .token.prolog, .vtb-publication-content .token.doctype, .vtb-publication-content .token.cdata { color: #708090; }\n .vtb-publication-content .token.punctuation { color: #999; }\n .vtb-publication-content .token.namespace { opacity: 0.7; }\n .vtb-publication-content .token.boolean, .vtb-publication-content .token.constant, .vtb-publication-content .token.deleted, .vtb-publication-content .token.number, .vtb-publication-content .token.property, .vtb-publication-content .token.symbol, .vtb-publication-content .token.tag { color: #905; }\n .vtb-publication-content .token.attr-name, .vtb-publication-content .token.builtin, .vtb-publication-content .token.char, .vtb-publication-content .token.inserted, .vtb-publication-content .token.selector, .vtb-publication-content .token.string { color: #690; }\n .vtb-publication-content .language-css .token.string, .vtb-publication-content .style .token.string, .vtb-publication-content .token.entity, .vtb-publication-content .token.operator, .vtb-publication-content .token.url { color: #9a6e3a; background: hsla(0, 0%, 100%, 0.5); }\n .vtb-publication-content .token.atrule, .vtb-publication-content .token.attr-value, .vtb-publication-content .token.keyword { color: #07a; }\n .vtb-publication-content .token.class-name, .vtb-publication-content .token.function { color: #dd4a68; }\n .vtb-publication-content .token.important, .vtb-publication-content .token.regex, .vtb-publication-content .token.variable { color: #e90; }\n .vtb-publication-content .token.bold, .vtb-publication-content .token.important { font-weight: 700; }\n .vtb-publication-content .token.italic { font-style: italic; }\n .vtb-publication-content .token.entity { cursor: help; }\n .vtb-publication-content code { white-space: pre-wrap !important; font-size: inherit !important; line-height: inherit !important; font-family: "JetBrains Mono", monospace !important; }\n .vtb-publication-content :not(pre) > code { white-space: normal !important; background-color: rgba(15, 23, 42, 0.06); border-radius: 4px; padding: 0.08em 0.32em; }\n .vtb-publication-content figure figcaption { display: block; width: 100%; margin: 0 0 16px !important; padding: 0 !important; line-height: 1.4 !important; text-align: center !important; color: ').concat(o.secondaryTextColor,"; font-style: italic; font-size: 0.95em; }\n .vtb-publication-content figure { margin: 1.5rem 0 !important; line-height: 1.25 !important; }\n </style>\n ").concat(a,"\n</div>")}},54435:function(e,n,t){t.d(n,{m:function(){return g}});var o=t(85893),a=t(84804),i=t(12318),r=t(35083),l=t(31754),s=t(30055),c=t(28578),u=t(21485),d=t(44723),b=t(51015),f=t(88196),p=t(92365),m=t(40110),v=t(96727),h=t(67294);let g=e=>{var n,t;let{publication:g,postAccess:y,plans:S,context:k="article",returnPath:x}=e,[w,C]=(0,h.useState)(!1),[M,T]=(0,h.useState)(""),[F,I]=(0,h.useState)(!1),N=!0===g.membershipsEnabled,R=N?S.find(e=>e.isActive):void 0,B="paid"===y,P=()=>x||"".concat(window.location.pathname).concat(window.location.search),A=()=>{let e=new URLSearchParams({next:P()});B&&R&&e.set("intent","paid"),window.location.assign("/subscribe?".concat(e.toString()))},j=async()=>{var e;if(!B||!R||!await (null===(e=a.b.currentUser)||void 0===e?void 0:e.getIdToken())){A();return}I(!0)},O=async e=>{if(R){C(!0),T("");try{var n,t;let o=await (null===(n=a.b.currentUser)||void 0===n?void 0:n.getIdToken());if(!o){A();return}let i=await fetch("/api/memberships/checkout?token=".concat(encodeURIComponent(o)),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({publicationId:g.id,planId:R.id,interval:e,returnPath:P()})}),r=await i.json();if(!i.ok||!r.url)throw Error(null!==(t=r.error)&&void 0!==t?t:"Unable to start checkout");window.location.assign(r.url)}catch(e){T(e instanceof Error?e.message:"Unable to start checkout.")}finally{C(!1)}}},U=B&&!N?"This publication is not accepting new paid memberships right now. Existing paid members can sign in to read.":B?"upgrade"===k?"Support ".concat(g.title," and unlock full access."):"site"===k?"Choose a plan to become a member of ".concat(g.title,"."):"Become a member to continue reading and get full access to this publication.":"Sign in or subscribe for free to continue reading this article.",Z=null!==(t=null==R?void 0:null===(n=R.benef
1its)||void 0===n?void 0:n.filter(Boolean))&&void 0!==t?t:[],D="number"==typeof(null==R?void 0:R.monthlyPriceCents)&&"number"==typeof(null==R?void 0:R.yearlyPriceCents)?Math.max(0,Math.round((12*R.monthlyPriceCents-R.yearlyPriceCents)/(12*R.monthlyPriceCents)*100)):null,G=[..."number"==typeof(null==R?void 0:R.monthlyPriceCents)?[{interval:"month",label:"Monthly",priceCents:R.monthlyPriceCents,savingsBenefit:null}]:[],..."number"==typeof(null==R?void 0:R.yearlyPriceCents)?[{interval:"year",label:"Yearly",priceCents:R.yearlyPriceCents,savingsBenefit:null===D?null:"".concat(D,"% cheaper than subscribing monthly")}]:[]];return(0,o.jsxs)(l.Z,{variant:"outlined",sx:{mt:4,p:{xs:2.5,sm:4},textAlign:"center",borderRadius:2},children:[(0,o.jsxs)(s.Z,{spacing:1.5,alignItems:"center",children:[(0,o.jsx)(c.Z,{sx:{color:"text.secondary",display:"flex"},children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)(u.Z,{variant:"h5",fontWeight:600,children:"upgrade"===k?"Choose a subscription":"site"===k?"Complete your membership":B?"This article is for paid members":"This article is for members"}),(0,o.jsx)(u.Z,{color:"text.secondary",sx:{maxWidth:460},children:U}),!B&&g.freeSubscriberBenefit&&(0,o.jsx)(u.Z,{color:"text.secondary",sx:{maxWidth:460},children:g.freeSubscriberBenefit}),M&&(0,o.jsx)(d.Z,{severity:"error",sx:{width:"100%",maxWidth:460},children:M}),(0,o.jsx)(b.Z,{variant:"contained",size:"large",onClick:()=>void j(),children:B?R?"upgrade"===k?"Choose a plan":"Become a member":"Sign in":"Sign in or subscribe"})]}),(0,o.jsxs)(f.Z,{open:F,onClose:w?void 0:()=>I(!1),fullWidth:!0,maxWidth:"xs",children:[(0,o.jsx)(p.Z,{children:"upgrade"===k?"Choose a subscription":"Choose your membership"}),(0,o.jsx)(m.Z,{children:(0,o.jsxs)(s.Z,{spacing:2,sx:{pt:1},children:[(0,o.jsxs)(u.Z,{color:"text.secondary",children:["Get full access to ",g.title,"."]}),Z.length>0&&(0,o.jsxs)(s.Z,{spacing:.5,alignItems:"flex-start",children:[(0,o.jsx)(u.Z,{variant:"body2",fontWeight:600,children:"Paid subscriber benefits"}),Z.map(e=>(0,o.jsxs)(u.Z,{variant:"body2",color:"text.secondary",children:["⢠",e]},e))]}),G.map(e=>(0,o.jsxs)(l.Z,{variant:"outlined",sx:{p:2,textAlign:"left"},children:[(0,o.jsx)(u.Z,{fontWeight:700,children:e.label}),(0,o.jsxs)(u.Z,{variant:"h5",fontWeight:700,sx:{mt:.5},children:["$",(e.priceCents/100).toFixed(0),(0,o.jsxs)(u.Z,{component:"span",variant:"body2",color:"text.secondary",children:[" / ","year"===e.interval?"year":"month"]})]}),e.savingsBenefit&&(0,o.jsxs)(u.Z,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["⢠",e.savingsBenefit]}),(0,o.jsx)(r.Z,{fullWidth:!0,variant:"outlined",sx:{mt:2},onClick:()=>void O(e.interval),loading:w,children:"Select"})]},e.interval))]})}),(0,o.jsx)(v.Z,{sx:{px:3,pb:3},children:(0,o.jsx)(b.Z,{onClick:()=>I(!1),disabled:w,children:"Cancel"})})]})]})}},38407:function(e,n,t){t.d(n,{u:function(){return d}});var o=t(85893);t(67294);var a=t(51015),i=t(88196),r=t(96727),l=t(40110),s=t(95858),c=t(92365),u=t(78181);function d(e){let{open:n,onClose:t,isSignInMode:d=!1}=e;return(0,o.jsxs)(i.Z,{open:n,slots:{transition:u.R},keepMounted:!0,onClose:t,"aria-describedby":"subscriber-email-success-description",children:[(0,o.jsx)(c.Z,{children:"Now check your email!"}),(0,o.jsx)(l.Z,{children:(0,o.jsx)(s.Z,{children:d?"A login link has been sent to your inbox.":"To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder."})}),(0,o.jsx)(r.Z,{children:(0,o.jsx)(a.Z,{variant:"contained",onClick:t,children:"OK"})})]})}},78181:function(e,n,t){t.d(n,{R:function(){return i}});var o=t(85893),a=t(75486);let i=t(67294).forwardRef(function(e,n){return(0,o.jsx)(a.Z,{direction:"up",ref:n,...e})})},82287:function(e,n,t){t.d(n,{N:function(){return a}});var o=t(90281);let a=()=>{let{callApi:e,...n}=(0,o.W)("doesSubscriberEmailExist"),t=async n=>await e(n);return{...n,doesEmailExist:t}}},90281:function(e,n,t){t.d(n,{W:function(){return c}});var o=t(8080),a=t(29496),i=t(67294),r=t(3349);let l="application/x-ndjson",s=async(e,n)=>{let t;if(!e.body)throw Error("The progress response was empty. Please retry.");let o=e.body.getReader(),a=new TextDecoder,i="",r=!1,l=e=>{if(!e.trim())return;if(r)throw Error("Unexpected update after the final launch result.");let o=JSON.parse(e);if("progress"===o.type)n(o.progress);else if("result"===o.type)t=o.result,r=!0;else throw Error("Unexpected launch progress response.")};try{let e=!0;for(;e;){let n;let{value:t,done:r}=await o.read();for(e=!r,i+=a.decode(t,{stream:!r});-1!==(n=i.indexOf("\n"));)l(i.slice(0,n)),i=i.slice(n+1)}if(l(i),!r)throw Error("The connection ended before launch finished. Please retry.");return t}finally{o.releaseLock()}},c=function(e){let{showErrorSnackbar:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[t,c]=(0,i.useState)(!1),[u,d]=(0,r.F_)(o.bU),{enqueueSnackbar:b}=(0,a.Ds)();return{callApi:(0,i.useCallback)(async(t,o)=>{c(!0);let a=Date.now();try{var i;let r=await (null==u?void 0:u.getIdToken()),c=await fetch("/api/".concat(e).concat(r?"?token=".concat(r):""),{method:"POST",body:JSON.stringify(t),...o?{headers:{Accept:l}}:{}});if(o&&(null===(i=c.headers.get("content-type"))||void 0===i?void 0:i.includes(l)))return await s(c,o);let d=await c.text(),f={};
1if(d.trim())try{f=JSON.parse(d)}catch(n){console.error("[useNextJsApi] ".concat(e," response parse failed"),{durationMs:Date.now()-a,status:c.status,statusText:c.statusText,responseText:d,parseError:n}),f={error:c.ok?"The server returned an unreadable response for ".concat(e,"."):"Request failed (".concat(c.status," ").concat(c.statusText,").")}}return!c.ok&&n&&b((null==f?void 0:f.error)||"Request failed (".concat(c.status,")."),{variant:"error"}),f}catch(t){return console.error("[useNextJsApi] ".concat(e," request failed"),{durationMs:Date.now()-a,error:t}),n&&b("Uh oh. Something went wrong.",{variant:"error"}),{}}finally{c(!1)}},[u,b,e,n]),isAuthReady:!d&&!!u,isLoading:t}}},3572:function(e,n,t){t.d(n,{S:function(){return a}});var o=t(90281);let a=()=>{let{callApi:e,...n}=(0,o.W)("sendVerificationEmail"),t=async n=>await e(n);return{...n,sendVerificationEmail:t}}},68350:function(e,n,t){t.d(n,{S:function(){return s}});var o=t(35145),a=t(91259),i=t(3349);let r=e=>{let n=(0,a.v0)(o.j);n.tenantId=null!=e?e:"none";let[t,r]=(0,i.F_)(n);return{authSubscriber:t,isLoading:r}};var l=t(67294);let s=e=>{let[n,o]=(0,l.useState)(!0),[a,i]=(0,l.useState)(),{authSubscriber:s,isLoading:c}=r(e.tenantId);(0,l.useEffect)(()=>{if(!c){if(!s){o(!1),i(void 0);return}u()}},[c,s]);let u=async()=>{try{o(!0);let[{db:n},{doc:a,getDoc:r}]=await Promise.all([Promise.resolve().then(t.bind(t,96365)),Promise.resolve().then(t.bind(t,39828))]),l=(await r(a(n,"users/".concat(e.userId,"/publications/").concat(e.id,"/subscribers/").concat(null==s?void 0:s.uid)))).data();i(l)}catch(e){console.error("Error loading subscriber",e)}finally{o(!1)}};return{subscriber:a,isLoading:c||n}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.