/*! For license information please see 8117.5cfbde96.js.LICENSE.txt */ (self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["8117"],{56303:function(t,e,s){t.exports={ted:s(86908),levenshtein:s(23204)}},23204:function(t,e,s){var i,o,n,r,u;({Mapping:i,zero:u,trackedMin:r}=s(31279)),o=function(t,e,s,o,a){var p,l,h,d,c,f,g,m,b,k,v,y,M,L,T,A;for(A=u(t.length+1,e.length+1),h=u(t.length+1,e.length+1),c=g=1,y=t.length;g<=y;c=g+=1)h[c][0]=c;for(f=m=1,M=e.length;m<=M;f=m+=1)h[0][f]=f;for(c=b=1,L=t.length;b<=L;c=b+=1)for(f=v=1,T=e.length;v<=T;f=v+=1)p=t[c-1],l=e[f-1],k=r(h[c-1][f]+o(p),h[c][f-1]+s(l),h[c-1][f-1]+a(p,l)),A[c][f]=k.index,h[c][f]=k.value;return d=h[t.length][e.length],new i(t,e,d,A,n)},n=function(t,e,s){var i,o,n;for(i=t.length,o=e.length,n=[];i>0&&o>0;)switch(s[i][o]){case 0:n.push([t[i-1],null]),--i;break;case 1:n.push([null,e[o-1]]),--o;break;case 2:n.push([t[i-1],e[o-1]]),--i,--o;break;default:throw Error(`Invalid operation ${s[i][o]} at (${i}, ${o})`)}if(0===i&&0!==o)for(;o>0;)n.push([null,e[o-1]]),--o;if(0!==i&&0===o)for(;i>0;)n.push([t[i-1],null]),--i;return n},t.exports=o},86908:function(t,e,s){var i,o,n,r,u,a;({Mapping:i,zero:a,trackedMin:u}=s(31279)),o=function(t,e,s){var i,o,n,r,u,a,p,l,h,d,c;for(c=[],(d=[]).push([void 0,t]);d.length>0;)for([r,p]=d.pop(),n=null!=(l=null!=(o=e(p))?o[0]:void 0)?l:null,c.push([r,p,n]),h=null!=o?o:[],r=u=0,a=h.length;u0;)[r,p,n]=c.pop(),s(r,p,n)},n=function(t,e,s,n,p,l){var h,d,c,f,g,m,b,k,v,y,M,L,T,A,S;for(c=0,b=function(t){var e;return e={nodes:[],llds:[],keyroots:[]},o(t,s,function(t,s,i){var o,n,r;r=e.nodes.length,e.nodes.push(s),null==i?n=r:(o=e.nodes.indexOf(i),n=e.llds[o]),e.llds.push(n),0!==t&&e.keyroots.push(r)}),e},A=function(t,e){var s,i,o,r,a,d,c,f,g,m,b,k,v,T,A,H,$;for(i=y.llds,a=M.llds,o=y.nodes,d=M.nodes,c=i[t]-1,f=a[e]-1,b=t-i[t]+2,v=e-a[e]+2,s=g=1;g=0&&o>=0;)switch(s[i][o]){case 0:n.push([t.nodes[i],null]),--i;break;case 1:n.push([null,e.nodes[o]]),--o;break;case 2:n.push([t.nodes[i],e.nodes[o]]),--i,--o;break;default:throw Error(`Invalid operation ${s[i][o]} at (${i}, ${o})`)}if(-1===i&&-1!==o)for(;o>=0;)n.push([null,e.nodes[o]]),--o;if(-1!==i&&-1===o)for(;i>=0;)n.push([t.nodes[i],null]),--i;return n},t.exports=n},31279:function(t){t.exports.Mapping=class{constructor(t,e,s,i,o){this.pairs=this.pairs.bind(this),this.alignment=this.alignment.bind(this),this.a=t,this.b=e,this.distance=s,this.track=i,this.backtrackFn=o,this.pairCache=null}pairs(){return null==this.pairCache&&(this.pairCache=this.backtrackFn(this.a,this.b,this.track)),this.pairCache}alignment(){var t,e,s,i,o,n,r;for(s=0,n=this.pairs(),t=[],e=[],i=(r=n.reverse()).length;si});let i=(0,s(36150).Z)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]])},3039:function(t,e,s){"use strict";s.d(e,{Z:()=>i});let i=(0,s(36150).Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},96862:function(t,e,s){"use strict";s.d(e,{Z:()=>i});let i=(0,s(36150).Z)("Clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]])},98188:function(t,e,s){"use strict";s.d(e,{Z:()=>i});let i=(0,s(36150).Z)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},96220:function(t,e,s){"use strict";s.d(e,{Z:()=>i});let i=(0,s(36150).Z)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]])},30845:function(t,e,s){"use strict";s.d(e,{Z:()=>n});var i=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function o(t,e){if(t.length!==e.length)return!1;for(var s,o,n=0;nu,ZP:()=>u});var i=s(88897);let o=i.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,i.P1)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),n=i.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,i.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>!!Object.entries((0,i.Jo)(t,this.type)).some(([,t])=>!!t)||e.unsetMark(this.name)}}}),r=/^\s*([-+*])\s$/,u=i.NB.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,i.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o.name,this.editor.getAttributes(n.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,i.S0)({find:r,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,i.S0)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(n.name),editor:this.editor})),[t]}})},32018:function(t,e,s){"use strict";s.d(e,{GS:()=>u,ZP:()=>u});var i=s(88897);let o=i.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,i.P1)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),n=i.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,i.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>!!Object.entries((0,i.Jo)(t,this.type)).some(([,t])=>!!t)||e.unsetMark(this.name)}}}),r=/^(\d+)\.\s$/,u=i.NB.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){let{start:e,...s}=t;return 1===e?["ol",(0,i.P1)(this.options.HTMLAttributes,s),0]:["ol",(0,i.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o.name,this.editor.getAttributes(n.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,i.S0)({find:r,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,i.S0)({find:r,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(n.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}})},94886:function(t,e,s){"use strict";s.d(e,{Z:()=>o,a:()=>o});var i=s(88897);let o=i.vc.create({name:"subscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sub"},{style:"vertical-align",getAttrs:t=>"sub"===t&&null}],renderHTML({HTMLAttributes:t}){return["sub",(0,i.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}})},99218:function(t,e,s){"use strict";s.d(e,{$:()=>o,Z:()=>o});var i=s(88897);let o=i.vc.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML({HTMLAttributes:t}){return["sup",(0,i.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}})},89290:function(t,e,s){"use strict";s.d(e,{ZP:()=>H});var i=s(88897);let o=t=>(0,i.DS)({find:/--$/,replace:null!=t?t:"—"}),n=t=>(0,i.DS)({find:/\.\.\.$/,replace:null!=t?t:"…"}),r=t=>(0,i.DS)({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:null!=t?t:"“"}),u=t=>(0,i.DS)({find:/"$/,replace:null!=t?t:"”"}),a=t=>(0,i.DS)({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:null!=t?t:"‘"}),p=t=>(0,i.DS)({find:/'$/,replace:null!=t?t:"’"}),l=t=>(0,i.DS)({find:/<-$/,replace:null!=t?t:"←"}),h=t=>(0,i.DS)({find:/->$/,replace:null!=t?t:"→"}),d=t=>(0,i.DS)({find:/\(c\)$/,replace:null!=t?t:"\xa9"}),c=t=>(0,i.DS)({find:/\(tm\)$/,replace:null!=t?t:"™"}),f=t=>(0,i.DS)({find:/\(sm\)$/,replace:null!=t?t:"℠"}),g=t=>(0,i.DS)({find:/\(r\)$/,replace:null!=t?t:"\xae"}),m=t=>(0,i.DS)({find:/(?:^|\s)(1\/2)$/,replace:null!=t?t:"\xbd"}),b=t=>(0,i.DS)({find:/\+\/-$/,replace:null!=t?t:"\xb1"}),k=t=>(0,i.DS)({find:/!=$/,replace:null!=t?t:"≠"}),v=t=>(0,i.DS)({find:/<<$/,replace:null!=t?t:"\xab"}),y=t=>(0,i.DS)({find:/>>$/,replace:null!=t?t:"\xbb"}),M=t=>(0,i.DS)({find:/\d+\s?([*x])\s?\d+$/,replace:null!=t?t:"\xd7"}),L=t=>(0,i.DS)({find:/\^2$/,replace:null!=t?t:"\xb2"}),T=t=>(0,i.DS)({find:/\^3$/,replace:null!=t?t:"\xb3"}),A=t=>(0,i.DS)({find:/(?:^|\s)(1\/4)$/,replace:null!=t?t:"\xbc"}),S=t=>(0,i.DS)({find:/(?:^|\s)(3\/4)$/,replace:null!=t?t:"\xbe"}),H=i.hj.create({name:"typography",addInputRules(){let t=[];return!1!==this.options.emDash&&t.push(o(this.options.emDash)),!1!==this.options.ellipsis&&t.push(n(this.options.ellipsis)),!1!==this.options.openDoubleQuote&&t.push(r(this.options.openDoubleQuote)),!1!==this.options.closeDoubleQuote&&t.push(u(this.options.closeDoubleQuote)),!1!==this.options.openSingleQuote&&t.push(a(this.options.openSingleQuote)),!1!==this.options.closeSingleQuote&&t.push(p(this.options.closeSingleQuote)),!1!==this.options.leftArrow&&t.push(l(this.options.leftArrow)),!1!==this.options.rightArrow&&t.push(h(this.options.rightArrow)),!1!==this.options.copyright&&t.push(d(this.options.copyright)),!1!==this.options.trademark&&t.push(c(this.options.trademark)),!1!==this.options.servicemark&&t.push(f(this.options.servicemark)),!1!==this.options.registeredTrademark&&t.push(g(this.options.registeredTrademark)),!1!==this.options.oneHalf&&t.push(m(this.options.oneHalf)),!1!==this.options.plusMinus&&t.push(b(this.options.plusMinus)),!1!==this.options.notEqual&&t.push(k(this.options.notEqual)),!1!==this.options.laquo&&t.push(v(this.options.laquo)),!1!==this.options.raquo&&t.push(y(this.options.raquo)),!1!==this.options.multiplication&&t.push(M(this.options.multiplication)),!1!==this.options.superscriptTwo&&t.push(L(this.options.superscriptTwo)),!1!==this.options.superscriptThree&&t.push(T(this.options.superscriptThree)),!1!==this.options.oneQuarter&&t.push(A(this.options.oneQuarter)),!1!==this.options.threeQuarters&&t.push(S(this.options.threeQuarters)),t}})},2799:function(t,e,s){"use strict";s.d(e,{Z:()=>L});var i=s(88897),o=s(19512),n=s(56070),r=s(18490),u=s(24717),a=s(56782),p=s(43557),l=s(59687),h=s(85856),d=s(99961),c=s(18e3),f=s(51127),g=s(67338),m=s(75481),b=s(55786),k=s(32018),v=s(91077),y=s(87597),M=s(55963);let L=i.hj.create({name:"starterKit",addExtensions(){var t,e,s,i,L,T,A,S,H,$,x,D,C,N,Z,I,P,w;let O=[];return!1!==this.options.blockquote&&O.push(o.V6.configure(null===(t=this.options)||void 0===t?void 0:t.blockquote)),!1!==this.options.bold&&O.push(n.d8.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.bulletList&&O.push(r.DY.configure(null===(s=this.options)||void 0===s?void 0:s.bulletList)),!1!==this.options.code&&O.push(u.EK.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&O.push(a.dn.configure(null===(L=this.options)||void 0===L?void 0:L.codeBlock)),!1!==this.options.document&&O.push(p.B.configure(null===(T=this.options)||void 0===T?void 0:T.document)),!1!==this.options.dropcursor&&O.push(l.m.configure(null===(A=this.options)||void 0===A?void 0:A.dropcursor)),!1!==this.options.gapcursor&&O.push(h.f.configure(null===(S=this.options)||void 0===S?void 0:S.gapcursor)),!1!==this.options.hardBreak&&O.push(d.U.configure(null===(H=this.options)||void 0===H?void 0:H.hardBreak)),!1!==this.options.heading&&O.push(c.X.configure(null===($=this.options)||void 0===$?void 0:$.heading)),!1!==this.options.history&&O.push(f.A.configure(null===(x=this.options)||void 0===x?void 0:x.history)),!1!==this.options.horizontalRule&&O.push(g.b.configure(null===(D=this.options)||void 0===D?void 0:D.horizontalRule)),!1!==this.options.italic&&O.push(m.Tx.configure(null===(C=this.options)||void 0===C?void 0:C.italic)),!1!==this.options.listItem&&O.push(b.H.configure(null===(N=this.options)||void 0===N?void 0:N.listItem)),!1!==this.options.orderedList&&O.push(k.GS.configure(null===(Z=this.options)||void 0===Z?void 0:Z.orderedList)),!1!==this.options.paragraph&&O.push(v.n.configure(null===(I=this.options)||void 0===I?void 0:I.paragraph)),!1!==this.options.strike&&O.push(y.Re.configure(null===(P=this.options)||void 0===P?void 0:P.strike)),!1!==this.options.text&&O.push(M.x.configure(null===(w=this.options)||void 0===w?void 0:w.text)),O}})}}]);