!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@bd2e384"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a16974b9-8a3d-47af-99d9-7e99b511f3ad",e._sentryDebugIdIdentifier="sentry-dbid-a16974b9-8a3d-47af-99d9-7e99b511f3ad")}catch(e){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["27994"],{35970:function(e,t,n){var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},23805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},49054:function(e,t,n){"use strict";n.d(t,{Kr:()=>D});var r='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){void 0===n&&(n=!0);var r,o=null==t||null==(r=t.getAttribute)?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},u=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},d=function(e,t,n){if(l(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o=o.filter(n)},c=function e(t,n,o){for(var a=[],u=Array.from(t);u.length;){var d=u.shift();if(!l(d,!1))if("SLOT"===d.tagName){var c=d.assignedElements(),s=e(c.length?c:d.children,!0,o);o.flatten?a.push.apply(a,s):a.push({scopeParent:d,candidates:s})}else{i.call(d,r)&&o.filter(d)&&(n||!t.includes(d))&&a.push(d);var f=d.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(d),p=!l(f,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(d));if(f&&p){var h=e(!0===f?d.children:f.children,!0,o);o.flatten?a.push.apply(a,h):a.push({scopeParent:d,candidates:h})}else u.unshift.apply(u,d.children)}}return a},s=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!s(e)?0:e.tabIndex},p=function(e,t){var n=f(e);return n<0&&t&&!s(e)?0:n},h=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},y=function(e){return"INPUT"===e.tagName},b=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return w(e)}else{if("function"==typeof r){for(var l=e;e;){var u=e.parentElement,d=a(e);if(u&&!u.shadowRoot&&!0===r(u))return w(e);e=e.assignedSlot?e.assignedSlot:u||d===e.ownerDocument?u:d.host}e=l}if(v(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},E=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nf(t))&&!!I(e,t)},R=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},A=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,l=p(a,i),u=i?e(t.candidates):a;0===l?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:u})}),r.sort(h).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},D=function(e,t){return A((t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:N.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:R}):d(e,t.includeContainer,N.bind(null,t)))}}}]);