File: /var/www/quadcode.com/build/client/_app/immutable/nodes/9.92d794d1.js
import{s as Kt,d as Vt,c as Jt,o as Zt}from"../chunks/index.614a0f19.js";import{S as Gt,i as Qt,c as V,s as _,e as f,o as We,C as be,a as H,b as g,E as Wt,d as m,g as n,f as h,p as Xe,D as $e,h as t,F as kt,m as N,j as oe,r as a,t as E,k as q,v as zt,u as lt,l as R,y as Ft,w as Xt,n as Yt}from"../chunks/index.f20d589e.js";import{g as xt}from"../chunks/globals.7f7f1b26.js";import{b as ea,e as Ht}from"../chunks/Lang.c84e954b.js";import{S as ta}from"../chunks/SeoHead.27938517.js";import{B as aa}from"../chunks/Breadcrumb.45803d84.js";import{H as oa,C as sa,P as na,M as ra,a as la,b as ia,A as da,S as ca}from"../chunks/PostReadAlso.a4ce94eb.js";import{C as pa}from"../chunks/Card.7fb23e60.js";import{A as fa}from"../chunks/Anchors.23f065ec.js";import{t as ma,g as ua,d as Nt}from"../chunks/schemaUnified.46e5fa2f.js";import{P as ha}from"../chunks/PostHeader.6bfdd093.js";const{document:X}=xt;function Rt(s,c,v){const p=s.slice();return p[6]=c[v],p}function Ot(s){let c,v,p=s[1]("Read More")+"",w,u,A,I,D=Ht(s[0].readMore),i=[];for(let d=0;d<D.length;d+=1)i[d]=Ut(Rt(s,D,d));const Y=d=>q(i[d],1,1,()=>{i[d]=null});return{c(){c=f("div"),v=f("h2"),w=We(p),u=_(),A=f("div");for(let d=0;d<i.length;d+=1)i[d].c();this.h()},l(d){c=m(d,"DIV",{class:!0});var l=h(c);v=m(l,"H2",{class:!0});var r=h(v);w=Xe(r,p),r.forEach(n),u=g(l),A=m(l,"DIV",{class:!0});var k=h(A);for(let L=0;L<i.length;L+=1)i[L].l(k);k.forEach(n),l.forEach(n),this.h()},h(){t(v,"class","post__readMoreTitle svelte-fxep0q"),t(A,"class","post__list svelte-fxep0q"),t(c,"class","post__readMoreSection svelte-fxep0q")},m(d,l){oe(d,c,l),a(c,v),a(v,w),a(c,u),a(c,A);for(let r=0;r<i.length;r+=1)i[r]&&i[r].m(A,null);I=!0},p(d,l){if((!I||l&2)&&p!==(p=d[1]("Read More")+"")&<(w,p),l&1){D=Ht(d[0].readMore);let r;for(r=0;r<D.length;r+=1){const k=Rt(d,D,r);i[r]?(i[r].p(k,l),E(i[r],1)):(i[r]=Ut(k),i[r].c(),E(i[r],1),i[r].m(A,null))}for(Ft(),r=D.length;r<i.length;r+=1)Y(r);zt()}},i(d){if(!I){for(let l=0;l<D.length;l+=1)E(i[l]);I=!0}},o(d){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)q(i[l]);I=!1},d(d){d&&n(c),Xt(i,d)}}}function Ut(s){let c,v;return c=new pa({props:{className:"post__listItem",data:s[6]}}),{c(){V(c.$$.fragment)},l(p){H(c.$$.fragment,p)},m(p,w){N(c,p,w),v=!0},p(p,w){const u={};w&1&&(u.data=p[6]),c.$set(u)},i(p){v||(E(c.$$.fragment,p),v=!0)},o(p){q(c.$$.fragment,p),v=!1},d(p){R(c,p)}}}function _a(s){var Bt,At,It,Dt,Lt,St;let c,v,p,w,u,A,I,D,i,Y,d,l,r,k,L,Ie,B,S,j,x,se,ee,O,P,De,ne,re,it,le,dt,z,y,ie,ct,Ee,pt,Ye,ft,de,mt,ce,ut,pe,xe,ht,fe,me,_t,ue,he,gt,_e,vt,bt,C,Se,Ce=s[1]("Table of contents")+"",et,$t,F,je,tt,Et,K,G,ge,we,Pe=s[1]("Table of contents")+"",at,wt,Q,Tt,ot,Mt,Le,yt,J,ve,Ve,qt,He=s[1]("blog.backToTop")+"",st,nt,Z,Ne,Te,Re,rt,Me,$;c=new ta({props:{image:s[0].post.imageData.large,type:(At=(Bt=s[0])==null?void 0:Bt.post)==null?void 0:At.yoast_head_json.og_type,title:(Dt=(It=s[0])==null?void 0:It.post)==null?void 0:Dt.yoast_head_json.og_title,description:(St=(Lt=s[0])==null?void 0:Lt.post)==null?void 0:St.yoast_head_json.og_description,schemaScript:s[3]}}),ee=new ha({}),re=new aa({props:{className:"post__breadcrumb",title:s[0].post.title.rendered,tree:[{path:"/blog",name:s[1]("Blog")}]}}),le=new oa({props:{data:s[0].post}}),ie=new sa({props:{className:"anchors-content",data:s[0].post,notUseH3:!0}}),Ee=new na({props:{options:s[4]}}),de=new ra({props:{data:s[0].post}}),ce=new la({props:{data:s[0].post}}),pe=new ia({props:{data:s[0].post}}),me=new da({props:{className:"post__aside",data:s[0].post}}),he=new ca({props:{data:s[0].post}}),_e=new fa({props:{divideTitles:!0,title:s[1]("Table of contents"),className:"post__anchors anchors-link",notUseH3:!0}});let b=s[0].readMore.length&&Ot(s);return{c(){V(c.$$.fragment),v=_(),p=f("meta"),u=f("meta"),I=f("meta"),i=f("meta"),d=f("meta"),r=f("meta"),L=f("meta"),B=f("meta"),j=f("link"),se=_(),V(ee.$$.fragment),O=_(),P=f("article"),De=f("div"),ne=f("div"),V(re.$$.fragment),it=_(),V(le.$$.fragment),dt=_(),z=f("div"),y=f("main"),V(ie.$$.fragment),ct=_(),V(Ee.$$.fragment),pt=_(),Ye=f("hr"),ft=_(),V(de.$$.fragment),mt=_(),V(ce.$$.fragment),ut=_(),V(pe.$$.fragment),ht=_(),fe=f("aside"),V(me.$$.fragment),_t=_(),ue=f("div"),V(he.$$.fragment),gt=_(),V(_e.$$.fragment),vt=_(),b&&b.c(),bt=_(),C=f("button"),Se=f("span"),et=We(Ce),$t=_(),F=be("svg"),je=be("path"),Et=_(),K=f("div"),G=f("div"),ge=f("div"),we=f("div"),at=We(Pe),wt=_(),Q=f("button"),Tt=We("×"),Mt=_(),Le=f("ul"),yt=_(),J=f("div"),ve=be("svg"),Ve=be("path"),qt=_(),st=We(He),nt=_(),Z=be("svg"),Ne=be("defs"),Te=be("clipPath"),Re=be("path"),rt=_(),Me=f("div"),this.h()},l(e){H(c.$$.fragment,e),v=g(e);const o=Wt("svelte-76a2oj",X.head);p=m(o,"META",{name:!0,content:!0}),u=m(o,"META",{name:!0,content:!0}),I=m(o,"META",{property:!0,content:!0}),i=m(o,"META",{property:!0,content:!0}),d=m(o,"META",{property:!0,content:!0}),r=m(o,"META",{property:!0,content:!0}),L=m(o,"META",{property:!0,content:!0}),B=m(o,"META",{property:!0,content:!0}),j=m(o,"LINK",{rel:!0,as:!0,href:!0}),o.forEach(n),se=g(e),H(ee.$$.fragment,e),O=g(e),P=m(e,"ARTICLE",{class:!0});var T=h(P);De=m(T,"DIV",{class:!0});var te=h(De);ne=m(te,"DIV",{class:!0});var W=h(ne);H(re.$$.fragment,W),it=g(W),H(le.$$.fragment,W),W.forEach(n),te.forEach(n),dt=g(T),z=m(T,"DIV",{class:!0});var U=h(z);y=m(U,"MAIN",{class:!0});var M=h(y);H(ie.$$.fragment,M),ct=g(M),H(Ee.$$.fragment,M),pt=g(M),Ye=m(M,"HR",{class:!0}),ft=g(M),H(de.$$.fragment,M),mt=g(M),H(ce.$$.fragment,M),ut=g(M),H(pe.$$.fragment,M),M.forEach(n),ht=g(U),fe=m(U,"ASIDE",{class:!0});var ye=h(fe);H(me.$$.fragment,ye),_t=g(ye),ue=m(ye,"DIV",{class:!0});var qe=h(ue);H(he.$$.fragment,qe),gt=g(qe),H(_e.$$.fragment,qe),qe.forEach(n),ye.forEach(n),vt=g(U),b&&b.l(U),U.forEach(n),bt=g(T),C=m(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0,"aria-label":!0});var ke=h(C);Se=m(ke,"SPAN",{});var Oe=h(Se);et=Xe(Oe,Ce),Oe.forEach(n),$t=g(ke),F=$e(ke,"svg",{class:!0,viewBox:!0,fill:!0,width:!0,height:!0,"aria-hidden":!0});var Ue=h(F);je=$e(Ue,"path",{d:!0}),h(je).forEach(n),Ue.forEach(n),ke.forEach(n),Et=g(T),K=m(T,"DIV",{class:!0,id:!0,role:!0,"aria-modal":!0,"aria-labelledby":!0});var ze=h(K);G=m(ze,"DIV",{class:!0});var ae=h(G);ge=m(ae,"DIV",{class:!0});var Be=h(ge);we=m(Be,"DIV",{class:!0,id:!0});var Fe=h(we);at=Xe(Fe,Pe),Fe.forEach(n),wt=g(Be),Q=m(Be,"BUTTON",{type:!0,class:!0,id:!0,"aria-label":!0});var Ke=h(Q);Tt=Xe(Ke,"×"),Ke.forEach(n),Be.forEach(n),Mt=g(ae),Le=m(ae,"UL",{class:!0,id:!0}),h(Le).forEach(n),yt=g(ae),J=m(ae,"DIV",{class:!0,id:!0,role:!0,tabindex:!0});var Ae=h(J);ve=$e(Ae,"svg",{viewBox:!0,fill:!0,class:!0});var Je=h(ve);Ve=$e(Je,"path",{d:!0}),h(Ve).forEach(n),Je.forEach(n),qt=g(Ae),st=Xe(Ae,He),Ae.forEach(n),ae.forEach(n),ze.forEach(n),T.forEach(n),nt=g(e),Z=$e(e,"svg",{"aria-hidden":!0,style:!0,xmlns:!0});var Ze=h(Z);Ne=$e(Ze,"defs",{});var Ge=h(Ne);Te=$e(Ge,"clipPath",{id:!0,clipPathUnits:!0});var Qe=h(Te);Re=$e(Qe,"path",{d:!0}),h(Re).forEach(n),Qe.forEach(n),Ge.forEach(n),Ze.forEach(n),rt=g(e),Me=m(e,"DIV",{class:!0,id:!0}),h(Me).forEach(n),this.h()},h(){var e,o,T,te,W,U,M;t(p,"name","twitter:label1"),t(p,"content",w=s[1]("blog.metaEstReadingTime")),t(u,"name","twitter:data1"),t(u,"content",A=(o=(e=s[0])==null?void 0:e.post)==null?void 0:o.yoast_head_json.twitter_misc["Est. reading time"]),t(I,"property","og:author"),t(I,"content",D=(te=(T=s[0])==null?void 0:T.post)==null?void 0:te.yoast_head_json.author),t(i,"property","og:published_time"),t(i,"content",Y=s[0].post.date),t(d,"property","og:modified_time"),t(d,"content",l=s[0].post.modified),t(r,"property","article:published_time"),t(r,"content",k=s[0].post.date),t(L,"property","article:modified_time"),t(L,"content",Ie=s[0].post.modified),t(B,"property","article:author"),t(B,"content",S=(U=(W=s[0])==null?void 0:W.post)==null?void 0:U.yoast_head_json.author),t(j,"rel","preload"),t(j,"as","image"),t(j,"href",x=(M=s[0].post)==null?void 0:M.imageData.large),t(ne,"class","blog-post__container svelte-fxep0q"),t(De,"class","blog-post__header svelte-fxep0q"),t(Ye,"class","divider svelte-fxep0q"),t(y,"class",xe=Vt(s[2]?"anchorsOpen":"")+" svelte-fxep0q"),t(ue,"class","sidebar-sticky svelte-fxep0q"),t(fe,"class","sidebar svelte-fxep0q"),t(z,"class","article-wrapper svelte-fxep0q"),t(je,"d","M7 10l5 5 5-5H7z"),t(F,"class","toc-mobile-chevron svelte-fxep0q"),t(F,"viewBox","0 0 24 24"),t(F,"fill","currentColor"),t(F,"width","20"),t(F,"height","20"),t(F,"aria-hidden","true"),t(C,"type","button"),t(C,"class","toc-mobile-trigger svelte-fxep0q"),t(C,"id","tocMobileTrigger"),t(C,"aria-expanded","false"),t(C,"aria-controls","tocMobileDrawer"),t(C,"aria-label",tt=s[1]("blog.openTableOfContents")),t(we,"class","toc-mobile-title svelte-fxep0q"),t(we,"id","toc-mobile-title"),t(Q,"type","button"),t(Q,"class","toc-mobile-close svelte-fxep0q"),t(Q,"id","tocMobileClose"),t(Q,"aria-label",ot=s[1]("blog.close")),t(ge,"class","toc-mobile-header svelte-fxep0q"),t(Le,"class","toc-list svelte-fxep0q"),t(Le,"id","tocListMobile"),t(Ve,"d","M7 10l5 5 5-5H7z"),t(ve,"viewBox","0 0 24 24"),t(ve,"fill","currentColor"),t(ve,"class","svelte-fxep0q"),t(J,"class","toc-mobile-back svelte-fxep0q"),t(J,"id","tocMobileBackToTop"),t(J,"role","button"),t(J,"tabindex","0"),t(G,"class","toc-mobile-drawer-inner svelte-fxep0q"),t(K,"class","toc-mobile-drawer svelte-fxep0q"),t(K,"id","tocMobileDrawer"),t(K,"role","dialog"),t(K,"aria-modal","true"),t(K,"aria-labelledby","toc-mobile-title"),K.hidden=!0,t(P,"class","layout post svelte-fxep0q"),t(Re,"d","M 0.5 0 C 0.88 0.08 1 0.38 0.96 0.5 C 1 0.62 0.88 0.92 0.5 1 C 0.12 0.92 0 0.62 0.04 0.5 C 0 0.38 0.12 0.08 0.5 0 Z"),t(Te,"id","authorShape"),t(Te,"clipPathUnits","objectBoundingBox"),t(Z,"aria-hidden","true"),kt(Z,"position","absolute"),kt(Z,"width","0"),kt(Z,"height","0"),t(Z,"xmlns","http://www.w3.org/2000/svg"),t(Me,"class","progress-bar svelte-fxep0q"),t(Me,"id","progressBar")},m(e,o){N(c,e,o),oe(e,v,o),a(X.head,p),a(X.head,u),a(X.head,I),a(X.head,i),a(X.head,d),a(X.head,r),a(X.head,L),a(X.head,B),a(X.head,j),oe(e,se,o),N(ee,e,o),oe(e,O,o),oe(e,P,o),a(P,De),a(De,ne),N(re,ne,null),a(ne,it),N(le,ne,null),a(P,dt),a(P,z),a(z,y),N(ie,y,null),a(y,ct),N(Ee,y,null),a(y,pt),a(y,Ye),a(y,ft),N(de,y,null),a(y,mt),N(ce,y,null),a(y,ut),N(pe,y,null),a(z,ht),a(z,fe),N(me,fe,null),a(fe,_t),a(fe,ue),N(he,ue,null),a(ue,gt),N(_e,ue,null),a(z,vt),b&&b.m(z,null),a(P,bt),a(P,C),a(C,Se),a(Se,et),a(C,$t),a(C,F),a(F,je),a(P,Et),a(P,K),a(K,G),a(G,ge),a(ge,we),a(we,at),a(ge,wt),a(ge,Q),a(Q,Tt),a(G,Mt),a(G,Le),a(G,yt),a(G,J),a(J,ve),a(ve,Ve),a(J,qt),a(J,st),oe(e,nt,o),oe(e,Z,o),a(Z,Ne),a(Ne,Te),a(Te,Re),oe(e,rt,o),oe(e,Me,o),$=!0},p(e,[o]){var ze,ae,Be,Fe,Ke,Ae,Je,Ze,Ge,Qe,Ct,jt,Pt;const T={};o&1&&(T.image=e[0].post.imageData.large),o&1&&(T.type=(ae=(ze=e[0])==null?void 0:ze.post)==null?void 0:ae.yoast_head_json.og_type),o&1&&(T.title=(Fe=(Be=e[0])==null?void 0:Be.post)==null?void 0:Fe.yoast_head_json.og_title),o&1&&(T.description=(Ae=(Ke=e[0])==null?void 0:Ke.post)==null?void 0:Ae.yoast_head_json.og_description),o&8&&(T.schemaScript=e[3]),c.$set(T),(!$||o&2&&w!==(w=e[1]("blog.metaEstReadingTime")))&&t(p,"content",w),(!$||o&1&&A!==(A=(Ze=(Je=e[0])==null?void 0:Je.post)==null?void 0:Ze.yoast_head_json.twitter_misc["Est. reading time"]))&&t(u,"content",A),(!$||o&1&&D!==(D=(Qe=(Ge=e[0])==null?void 0:Ge.post)==null?void 0:Qe.yoast_head_json.author))&&t(I,"content",D),(!$||o&1&&Y!==(Y=e[0].post.date))&&t(i,"content",Y),(!$||o&1&&l!==(l=e[0].post.modified))&&t(d,"content",l),(!$||o&1&&k!==(k=e[0].post.date))&&t(r,"content",k),(!$||o&1&&Ie!==(Ie=e[0].post.modified))&&t(L,"content",Ie),(!$||o&1&&S!==(S=(jt=(Ct=e[0])==null?void 0:Ct.post)==null?void 0:jt.yoast_head_json.author))&&t(B,"content",S),(!$||o&1&&x!==(x=(Pt=e[0].post)==null?void 0:Pt.imageData.large))&&t(j,"href",x);const te={};o&1&&(te.title=e[0].post.title.rendered),o&2&&(te.tree=[{path:"/blog",name:e[1]("Blog")}]),re.$set(te);const W={};o&1&&(W.data=e[0].post),le.$set(W);const U={};o&1&&(U.data=e[0].post),ie.$set(U);const M={};o&1&&(M.data=e[0].post),de.$set(M);const ye={};o&1&&(ye.data=e[0].post),ce.$set(ye);const qe={};o&1&&(qe.data=e[0].post),pe.$set(qe),(!$||o&4&&xe!==(xe=Vt(e[2]?"anchorsOpen":"")+" svelte-fxep0q"))&&t(y,"class",xe);const ke={};o&1&&(ke.data=e[0].post),me.$set(ke);const Oe={};o&1&&(Oe.data=e[0].post),he.$set(Oe);const Ue={};o&2&&(Ue.title=e[1]("Table of contents")),_e.$set(Ue),e[0].readMore.length?b?(b.p(e,o),o&1&&E(b,1)):(b=Ot(e),b.c(),E(b,1),b.m(z,null)):b&&(Ft(),q(b,1,1,()=>{b=null}),zt()),(!$||o&2)&&Ce!==(Ce=e[1]("Table of contents")+"")&<(et,Ce),(!$||o&2&&tt!==(tt=e[1]("blog.openTableOfContents")))&&t(C,"aria-label",tt),(!$||o&2)&&Pe!==(Pe=e[1]("Table of contents")+"")&<(at,Pe),(!$||o&2&&ot!==(ot=e[1]("blog.close")))&&t(Q,"aria-label",ot),(!$||o&2)&&He!==(He=e[1]("blog.backToTop")+"")&<(st,He)},i(e){$||(E(c.$$.fragment,e),E(ee.$$.fragment,e),E(re.$$.fragment,e),E(le.$$.fragment,e),E(ie.$$.fragment,e),E(Ee.$$.fragment,e),E(de.$$.fragment,e),E(ce.$$.fragment,e),E(pe.$$.fragment,e),E(me.$$.fragment,e),E(he.$$.fragment,e),E(_e.$$.fragment,e),E(b),$=!0)},o(e){q(c.$$.fragment,e),q(ee.$$.fragment,e),q(re.$$.fragment,e),q(le.$$.fragment,e),q(ie.$$.fragment,e),q(Ee.$$.fragment,e),q(de.$$.fragment,e),q(ce.$$.fragment,e),q(pe.$$.fragment,e),q(me.$$.fragment,e),q(he.$$.fragment,e),q(_e.$$.fragment,e),q(b),$=!1},d(e){e&&(n(v),n(se),n(O),n(P),n(nt),n(Z),n(rt),n(Me)),R(c,e),n(p),n(u),n(I),n(i),n(d),n(r),n(L),n(B),n(j),R(ee,e),R(re),R(le),R(ie),R(Ee),R(de),R(ce),R(pe),R(me),R(he),R(_e),b&&b.d()}}}function ga(s,c,v){var i,Y,d;let p,w;Jt(s,Yt,l=>v(1,w=l));let{data:u}=c,A=!1;ea.subscribe(l=>{v(2,A=l)}),Zt(async()=>{const l=new URL(window.location.href);if(l.hash&&l.hash!==""){const r=document.querySelector(l.hash);if(!(r!=null&&r.getBoundingClientRect().top))return;setTimeout(()=>{window.scrollTo(0,r==null?void 0:r.getBoundingClientRect().top)},500)}{let r=function(){!S||!B||(S.classList.add("is-open"),S.removeAttribute("hidden"),B.classList.add("is-open"),B.setAttribute("aria-expanded","true"),document.body.classList.add("toc-mobile-drawer-open"),j&&j.focus(),document.addEventListener("keydown",L))},k=function(){!S||!B||(S.classList.remove("is-open"),S.setAttribute("hidden",""),B.classList.remove("is-open"),B.setAttribute("aria-expanded","false"),document.body.classList.remove("toc-mobile-drawer-open"),document.removeEventListener("keydown",L))},L=function(O){O.key==="Escape"&&k()};const Ie={postId:u.post.id};await fetch("/api/post/view",{method:"POST",headers:{"content-type":"Application/json"},body:JSON.stringify(Ie)});const B=document.getElementById("tocMobileTrigger"),S=document.getElementById("tocMobileDrawer"),j=document.getElementById("tocMobileClose"),x=document.getElementById("tocMobileBackToTop"),se=document.getElementById("tocListMobile"),ee=se?se.querySelectorAll("a"):[];B&&B.addEventListener("click",function(){S!=null&&S.classList.contains("is-open")?k():r()}),j&&j.addEventListener("click",k),x&&(x.addEventListener("click",function(){window.scrollTo({top:0,behavior:"smooth"}),k()}),x.addEventListener("keydown",function(O){(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),x.click())})),se&&ee.forEach(function(O){O.addEventListener("click",function(){k()})})}});const I=(((i=u.post.acf)==null?void 0:i.faq)&&((d=(Y=u.post.acf)==null?void 0:Y.faq)==null?void 0:d.map(l=>({title:l.question,text:l.answer}))))??[],D=ma(u.post);return s.$$set=l=>{"data"in l&&v(0,u=l.data)},s.$$.update=()=>{var l,r;s.$$.dirty&3&&v(3,p=ua({title:Nt(u.post.title.rendered),description:Nt((r=(l=u==null?void 0:u.post)==null?void 0:l.yoast_head_json)==null?void 0:r.og_description),singleArticle:D,breadcrumb:[{title:w("Blog"),tree:[{name:w("Blog"),path:"blog"}]},{title:u.post.title.rendered,tree:[{name:u.post.title.rendered,path:`blog/${u.post.slug}`}]}]}))},[u,w,A,p,I]}class Aa extends Gt{constructor(c){super(),Qt(this,c,ga,_a,Kt,{data:0})}}export{Aa as component};