1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5139],{17365:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(67294);let o="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent),i=o?r.useEffect:r.useLayoutEffect},58613:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(21509);function o(){let e=(0,r.o)();return e.dispatch}},62602:function(e,t,n){"use strict";n.d(t,{O$:function(){return c},WJ:function(){return o},WM:function(){return i}});var r=n(31423);function o(){return{type:r.F.MAKESWIFT_CONNECTION_INIT}}function i(e){return{type:r.F.REGISTER_DOCUMENT,payload:{documentKey:e.key,document:e}}}function c(e){return t=>(e.forEach(e=>t(i(e))),()=>{e.forEach(e=>{var n;return t((n=e.key,{type:r.F.UNREGISTER_DOCUMENT,payload:{documentKey:n}}))})})}},45825:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return U},default:function(){return S}});var r=n(85893),o=n(67294),i=n(57009),c=n(89407),a=n(19483),l=n(33716),s=n(10515);let u=(0,o.memo)((0,o.forwardRef)(function({rootDocument:e},t){let n=(0,a.k)(e.key)??e;return null==n?(0,r.jsx)(l.D,{ref:t,text:"Document not found"}):(0,r.jsx)(s.B,{ref:t,document:n})}));var d=n(85207),m=n(48974);let f=({code:e,builderEnabled:t,liveEnabled:n,location:r,cleanup:o})=>({code:e,builderEnabled:t,liveEnabled:n,location:r,cleanup:o});function p({page:e}){let t=(0,m.m)(),[n,r]=(0,o.useState)(e.snippets),i=function(e){let t=(0,c.v)(),n=()=>null==e?null:t.readPage(e),r=(0,o.useSyncExternalStore)(t.subscribe,n,n);return r}(t?e.id:null);(0,o.useEffect)(()=>{if(null==i)return;let e=n.map(f),t=i.snippets.map(f);(0,d.Z)(t,e)||r(i.snippets)},[i]);let a=(0,o.useMemo)(()=>n.filter(e=>t?e.builderEnabled:e.liveEnabled),[n,t]),l=(0,o.useMemo)(()=>a.filter(e=>"HEAD"===e.location),[a]),s=(0,o.useMemo)(()=>a.filter(e=>"BODY"===e.location),[a]);return{headSnippets:l,bodySnippets:s}}function g({code:e,cleanup:t}){return(0,o.useEffect)(()=>{let n=document.createElement("div");n.innerHTML=e;let r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT),o=[];for(;r.nextNode();)r.currentNode instanceof HTMLScriptElement&&o.push(r.currentNode);o.forEach(e=>{let t=document.createElement("script");t.textContent=e.textContent,Array.from(e.attributes).forEach(({name:e,value:n})=>{t.setAttribute(e,n)}),e.parentNode?.replaceChild(t,e)});let i=Array.from(n.childNodes);return document.body.append(...i),()=>{if(i.forEach(e=>{e.parentNode?.removeChild(e)}),null!=t)try{let e=Function(t);e()}catch{}}},[e,t]),null}var E=n(42035),h=n(63545);let x={id:"default-favicon",mimetype:"image/png",publicUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAACXBIWXMAABcRAAAXEQHKJvM/AAABjElEQVRYhc2XzU3EMBCFB8TddAAXn6EE6GCpgNABZ1/IXnymBOgAOmA7YM8+ABVsXEHQQFaKQryeN3Yk3ilKJtEnv/nLUd/3pFG0riGi88yrnQn+UfJ5FUi0riWiB2H4nQn+KRd0DFP8agXEfkqCYJBoHdtxIQxfm+DfFgEhoith3NYE30o/qgGR2BJB+xY7kdYEL8oNFUi0jiFMJuxVWrJqEMFxsyUNCsE6AeNztvBp7aJ143vXksoRnwhYtmNdSoIQa6RlO9YXEWW7KgoCleOgxgTf1QZBT+RZ2lXFING6UxCCq+ceeUE8fYdknY599v9sJvzGBP+yCEgC7GPmETc0OJ+0awAlkhe2pAbIXAeFZ8xe2g2Nk3c3ub0xwWt6zY9qbmiqGVMbZK21ZC/YmhlbeBMTzZNDQqcvDb1kM1x32iqZSt1HaqukfKvq34BAOTLsrH+ETNmUkKHHA+428RgeclPVWozeSyAI2EdWB34jtqXNTAySOY3i/KgFIlqOa4GkFmBegorzg4joG07he/M7zl6jAAAAAElFTkSuQmCC"};function j({document:e,metadata:t={}}){let{title:n=!1,favicon:i=!1,canonicalUrl:a=!1,indexingBlocked:l=!1,description:s=!1,keywords:u=!1,socialImage:d=!1}=t,{headSnippets:f}=p({page:e}),{HeadSnippet:g}=(0,E.j)(),j=(0,m.m)(),A=function(e){let t=(0,c.v)(),n=()=>null==e?null:t.readSite(e),r=(0,o.useSyncExternalStore)(t.subscribe,n,n);return r}(j?e.site.id:null),y=e.localizedPages.find(({parentId:e})=>null==e),k=e.meta.favicon??x,w=y?.meta.title??e.meta.title,v=y?.meta.description??e.meta.description,N=y?.meta.keywords??e.meta.keywords,_=y?.meta.socialImage??e.meta.socialImage,b=y?.seo.canonicalUrl??e.seo.canonicalUrl,B=y?.seo.isIndexingBlocked??e.seo.isIndexingBlocked,C=(0,o.useMemo)(()=>null==A?e.fonts.map(({family:e,variants:t})=>`${e.replace(/ /g,"+")}:${t.join()}`).join("|"):A.googleFonts.edges.filter(e=>null!=e).map(({activeVariants:e,node:{family:t,variants:n}})=>{let r=n.filter(t=>e.some(e=>e.specifier===t.specifier)).map(e=>e.specifier).join();return`${t.replace(/ /g,"+")}:${r}`}).join("|"),[A,e]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.k2,{precedence:"high",href:"makeswift-base-styles",children:` 2 html { 3 font-family: sans-serif; 4 } 5 div#__next { 6 overflow: hidden; 7 } 8 `}),n&&w&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.V1,{children:w}),(0,r.jsx)(h.Vj,{property:"og:title",content:w}),(0,r.jsx)(h.Vj,{name:"twitter:title",content:w})]}),i&&k&&(0,r.jsx)(h.H_,{rel:"icon",type:k.mimetype,href:k.publicUrl}),a&&b&&(0,r.jsx)(h.H_,{rel:"canonical",href:b}),l&&B&&(0,r.jsx)(h.Vj,{name:"robots",content:"noindex"}),s&&v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Vj,{name:"description",content:v}),(0,r.jsx)(h.Vj,{property:"og:description",content:v}),(0,r.jsx)(h.Vj,{name:"twitter:description",content:v})]}),u&&N&&(0,r.jsx)(h.Vj,{name:"keywords",content:N}),d&&_&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Vj,{property:"og:image",content:_.publicUrl}),(0,r.jsx)(h.Vj,{property:"og:image:type",content:_.mimetype}),(0,r.jsx)(h.Vj,{name:"twitter:image",content:_.publicUrl}),(0,r.jsx)(h.Vj,{name:"twitter:card",content:"summary_large_image"})]}),""!==C&&(0,r.jsx)(h.H_,{precedence:"medium",rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${C}
8&display=swap`}),f.map(e=>(0,r.jsx)(g,{snippet:e},e.id))]})}function A({page:e,rootDocument:t,metadata:n=!0}){let{bodySnippets:i}=p({page:e}),c=(0,o.useMemo)(()=>"boolean"==typeof n?{title:n,description:n,keywords:n,socialImage:n,canonicalUrl:n,indexingBlocked:n,favicon:n}:null==n?{}:n,[n]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{document:e,metadata:c}),(0,r.jsx)(u,{rootDocument:t}),i.map(e=>(0,r.jsx)(g,{code:e.code,cleanup:e.cleanup},e.id))]})}var y=n(58613),k=n(62602),w=n(57784),v=n(60391),N=n(17365),_=n(48085);let b=(0,o.memo)(({snapshot:e,metadata:t=!0})=>{!function(e){let{store:t}=(0,c.v)();(0,o.useMemo)(()=>t.dispatch((0,i.NP)(e)),[e])}(e.cacheData);let n=(0,o.useMemo)(()=>(function(e){let{locale:t,localizedPages:n,id:r,data:o}=e,i=n.find(({parentId:e})=>null==e);return i?{key:i.elementTreeId,rootElement:i.data,locale:t}:{key:r,rootElement:o,locale:t}})(e.document),[e.document]);return!function(e){let t=(0,m.m)(),n=(0,y.I)();(0,v.s)()&&n((0,k.WM)(e)),(0,N.L)(()=>n((0,k.O$)([e])),[n,e]),(0,o.useEffect)(()=>{if(t)return n((0,w.wH)([e]))},[t,e])}(n),(0,r.jsx)(_.U,{children:(0,r.jsx)(A,{page:e.document,rootDocument:n,metadata:t},e.document.data.key)})});var B=n(11163),C=n(98964),F=n(39685);let I=()=>{let e=function(){try{let e=(0,B.useRouter)();return e}catch(e){return}}(),t=(0,y.I)();(0,o.useEffect)(()=>{(0,C.EQ)(e).with({locale:C.P.string},({locale:e})=>t((0,F.i_)(new Intl.Locale(e)))).otherwise(()=>{})},[e])},M=(0,o.memo)(({snapshot:e,metadata:t,...n})=>{if("runtime"in n)throw Error(`The \`runtime\` prop is no longer supported in the \`@makeswift/runtime\` \`Page\` c
8omponent as of \`0.15.0\`. 9See our docs for more information on what's changed and instructions to migrate: https://docs.makeswift.com/migrations/0.15.0`);return I(),(0,r.jsx)(b,{snapshot:e,metadata:t})});var T=n(25403);n(98604);var U=!0;function S(e){var t=e.snapshot;return(0,r.jsx)(T.Z,{background:"transparent",children:(0,r.jsx)(M,{snapshot:t})})}},66800:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...path]",function(){return n(45825)}])}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=66800)}),_N_E=e.O()}]);
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.