1import{$ as de}from"../chunks/module.k1ouhqnB.js";import{s as V,c as N,e as ge,n as M,i as G,f as pe,u as _e,g as me,h as ve}from"../chunks/scheduler.DqZIQS3A.js";import{S as j,i as z,e as $,s as I,J as H,c as L,a as y,n as oe,f as O,K as R,d as h,k as u,B as U,A as Q,g as E,h as k,z as be,m as B,x as we,l as A,p as ke,q as ce,t as ue,b as fe,L as W,r as K,D as Z,u as Y,v as F,w as J}from"../chunks/index.UmocHTMz.js";import{e as S}from"../chunks/each.C-sIxiRW.js";import{s as x}from"../chunks/index.CwHq6mbt.js";import{p as he,n as ee}from"../chunks/stores.D8K82AxD.js";/* empty css */import{d as ye}from"../chunks/entry.1kBDjx3f.js";const $e=!0,Le="never",Te=async()=>{de.init("phc_6TaxNCmx4RiTPjR3cvR4IK897XTgpaSROhKjejfhOYB",{api_host:"https://eu.i.posthog.com",defaults:"2025-05-24",person_profiles:"identified_only"})},Ke=Object.freeze(Object.defineProperty({__proto__:null,load:Te,prerender:$e,trailingSlash:Le},Symbol.toStringTag,{value:"Module"}));function te(a,e,t){const l=a.slice();return l[5]=e[t],l}function le(a,e,t){const l=a.slice();return l[5]=e[t],l}function se(a){let e,t,l=a[5].title+"",r,f,n;return{c(){e=$("li"),t=$("a"),r=ue(l),n=I(),this.h()},l(s){e=L(s,"LI",{class:!0});var c=y(e);t=L(c,"A",{id:!0,rel:!0,"aria-current":!0,href:!0,class:!0});var o=y(t);r=fe(o,l),o.forEach(h),n=O(c),c.forEach(h),this.h()},h(){u(t,"id","nav-"+a[5].slug),u(t,"rel","prefetch"),u(t,"aria-current",f=a[1]===a[5].slug?"page":void 0),u(t,"href","/"+a[5].slug),u(t,"class","svelte-e99rg0"),u(e,"class","svelte-e99rg0")},m(s,c){E(s,e,c),k(e,t),k(t,r),k(e,n)},p(s,c){c&2&&f!==(f=s[1]===s[5].slug?"page":void 0)&&u(t,"aria-current",f)},d(s){s&&h(e)}}}function ae(a){let e,t,l,r,f=S(a[2]),n=[];for(let s=0;s<f.length;s+=1)n[s]=ie(te(a,f,s));return{c(){e=$("div"),t=$("ul");for(let s=0;s<n.length;s+=1)n[s].c();this.h()},l(s){e=L(s,"DIV",{class:!0});var c=y(e);t=L(c,"UL",{class:!0});var o=y(t);for(let d=0;d<n.length;d+=1)n[d].l(o);o.forEach(h),c.forEach(h),this.h()},h(){u(t,"class","svelte-e99rg0"),u(e,"class","mobile-nav svelte-e99rg0")},m(s,c){E(s,e,c),k(e,t);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(t,null);r=!0},p(s,c){if(c&6){f=S(s[2]);let o;for(o=0;o<f.length;o+=1){const d=te(s,f,o);n[o]?n[o].p(d,c):(n[o]=ie(d),n[o].c(),n[o].m(t,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=f.length}},i(s){r||(s&&ge(()=>{r&&(l||(l=W(e,x,{},!0)),l.run(1))}),r=!0)},o(s){s&&(l||(l=W(e,x,{},!1)),l.run(0)),r=!1},d(s){s&&h(e),ce(n,s),s&&l&&l.end()}}}function ie(a){let e,t,l=a[5].title+"",r,f,n;return{c(){e=$("li"),t=$("a"),r=ue(l),n=I(),this.h()},l(s){e=L(s,"LI",{class:!0});var c=y(e);t=L(c,"A",{id:!0,rel:!0,"aria-current":!0,href:!0,class:!0});var o=y(t);r=fe(o,l),o.forEach(h),n=O(c),c.forEach(h),this.h()},h(){u(t,"id","nav-"+a[5].slug),u(t,"rel","prefetch"),u(t,"aria-current",f=a[1]===a[5].slug?"page":void 0),u(t,"href","/"+a[5].slug),u(t,"class","svelte-e99rg0"),u(e,"class","svelte-e99rg0")},m(s,c){E(s,e,c),k(e,t),k(t,r),k(e,n)},p(s,c){c&2&&f!==(f=s[1]===s[5].slug?"page":void 0)&&u(t,"aria-current",f)},d(s){s&&h(e)}}}function qe(a){let e,t,l,r='<img alt="" id="logo" src="https://cgbookcase.b-cdn.net/logo/Logo_Original.svg" class="svelte-e99rg0"/>',f,n,s,c,o,d,q,w,b,i,g=S(a[2]),m=[];for(let p=0;p<g.length;p+=1)m[p]=se(le(a,g,p));let v=a[0]&&ae(a);return{c(){e=$("nav"),t=$("div"),l=$("a"),l.innerHTML=r,f=I(),n=$("button"),s=H("svg"),c=H("path"),o=H("path"),d=I(),q=$("ul");for(let p=0;p<m.length;p+=1)m[p].c();w=I(),v&&v.c(),this.h()},l(p){e=L(p,"NAV",{class:!0});var T=y(e);t=L(T,"DIV",{style:!0});var _=y(t);l=L(_,"A",{href:!0,style:!0,"aria-label":!0,class:!0,"data-svelte-h":!0}),oe(l)!=="svelte-1nk9n9e"&&(l.innerHTML=r),f=O(_),n=L(_,"BUTTON",{id:!0,class:!0});var C=y(n);s=R(C,"svg",{id:!0,xmlns:!0,height:!0,viewBox:!0,width:!0,fill:!0,class:!0});var P=y(s);c=R(P,"path",{d:!0,fill:!0,opacity:!0}),y(c).forEach(h),o=R(P,"path",{d:!0}),y(o).forEach(h),P.forEach(h),C.forEach(h),_.forEach(h),d=O(T),q=L(T,"UL",{class:!0});var X=y(q);for(let D=0;D<m.length;D+=1)m[D].l(X);X.forEach(h),w=O(T),v&&v.l(T),T.forEach(h),this.h()},h(){u(l,"href","/"),U(l,"padding","0"),u(l,"aria-label","homepage"),u(l,"class","svelte-e99rg0"),u(c,"d","M24 24H0V0h24v24z"),u(c,"fill","none"),u(c,"opacity",".87"),u(o,"d","M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"),u(s,"id","open-nav"),u(s,"xmlns","http://www.w3.org/2000/svg"),u(s,"height","24px"),u(s,"viewBox","0 0 24 24"),u(s,"width","24px"),u(s,"fill","#000000"),u(s,"class","svelte-e99rg0"),Q(s,"opened",a[0]),u(n,"id","open-nav-btn"),u(n,"class","mobile-only svelte-e99rg0"),U(t,"display","flex"),U(t,"justify-content","space-between"),u(q,"class","desktop-nav svelte-e99rg0"),u(e,"class","shadow-light svelte-e99rg0")},m(p,T){E(p,e,T),k(e,t),k(t,l),k(t,f),k(t,n),k(n,s),k(s,c),k(s,o),k(e,d),k(e,q);for(let _=0;_<m.length;_+=1)m[_]&&m[_].m(q,null);k(e,w),v&&v.m(e,null),b||(i=be(n,"click",a[4]),b=!0)},p(p,[T]){if(T&1&&Q(s,"opened",p[0]),T&6){g=S(p[2]);let _;for(_=0;_<g.length;_+=1){const C=le(p,g,_);m[_]?m[_].p(C,T):(m[_]=se(C),m[_].c(),m[_].m(q,null))}for(;_<m.length;_+=1)m[_].d(1);m.length=g.length}p[0]?v?(v.p(p,T),T&1&&B(v,1)):(v=ae(p),v.c(),B(v,1),v.m(e,null)):v&&(we(),A(v,1,1,()=>{v=null}),ke())},i(p){B(v)},o(p){A(v)},d(p){p&&h(e),ce(m,p),v&&v.d(),b=!1,i()}}}function Ee(a,e,t){let l,r;N(a,he,c=>t(3,r=c));let f=!1,n=[{slug:"textures",title:"Textures"},{slug:"texture-tiling-tool",title:"Tiling Tool"},{slug:"learn",title:"Learn"},{slug:"blog",title:"Blog"}];const s=()=>{t(0,f=!f)};return a.$$.update=()=>{a.$$.dirty&8&&t(1,l=r.url.pathname.split("/")[1])},[f,l,n,r,s]}class Me extends j{constructor(e){super(),z(this,e,Ee,qe,V,{})}}function Ie(a){let e,t='<div class="w-max svelte-qacwp" id="footer-div"><div class="l svelte-qacwp"><a href="/privacy-and-cookies" class="svelte-qacwp">Privacy and Cookies</a></div> <div id="social-media-icons" class="svelte-qacwp"><a aria-label="cgbookcase.com on Mastodon" target="_blank" href="https://obviously.ilovemy.computer/@cgbookcase" class="svelte-qacwp"><img alt="" class="smi svelte-qacwp" src="https://cgbookcase.b-cdn.net/icons/mastodon.svg"/></a> <a aria-label="cgbookcase.com on Instagram" target="_blank" href="https://www.instagram.com/cgbookcase" class="svelte-qacwp"><img alt="" class="smi svelte-qacwp" src="https://cgbookcase.b-cdn.net/icons/instagram.svg"/></a> <a aria-label="cgbookcase.com on Youtube" target="_blank" href="https://www.youtube.com/channel/UC7VfyhAatTEuMYv7CTzS1Bw" class="svelte-qacwp"><img alt="" class="smi svelte-qacwp" src="https://cgbookcase.b-cdn.net/icons/youtube.svg"/></a></div> <div class="l svelte-qacwp"><a target="_blank" href="https://app.cgbookcase.com/patreon/your-settings" class="svelte-qacwp">Patreon Benefits â</a></div></div>';return{c(){e=$("footer"),e.innerHTML=t,this.h()},l(l){e=L(l,"FOOTER",{class:!0,"data-svelte-h":!0}),oe(e)!=="svelte-p1vz0y"&&(e.innerHTML=t),this.h()},h(){u(e,"class","svelte-qacwp")},m(l,r){E(l,e,r)},p:M,i:M,o:M,d(l){l&&h(e)}}}class Oe extends j{constructor(e){super(),z(this,e,null,Ie,V,{})}}function re(a){let e,t;return{c(){e=$("div"),this.h()},l(l){e=L(l,"DIV",{id:!0,class:!0}),y(e).forEach(h),this.h()},h(){u(e,"id","overlay"),u(e,"class",t=G(a[1])+" svelte-1qwcplo")},m(l,r){E(l,e,r)},p(l,r){r&2&&t!==(t=G(l[1])+" svelte-1qwcplo")&&u(e,"class",t)},d(l){l&&h(e)}}}function Be(a){let e,t=a[0]&&re(a);return{c(){e=$("div"),t&&t.c(),this.h()},l(l){e=L(l,"DIV",{id:!0,class:!0});var r=y(e);t&&t.l(r),r.forEach(h),this.h()},h(){u(e,"id","loading"),u(e,"class","svelte-1qwcplo")},m(l,r){E(l,e,r),t&&t.m(e,null)},p(l,[r]){l[0]?t?t.p(l,r):(t=re(l),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},i:M,o:M,d(l){l&&h(e),t&&t.d()}}}function Ae(a,e,t){let{isLoading:l}=e,r="left";function f(){setTimeout(()=>{t(1,r="full")},0),setTimeout(()=>{t(1,r="right")},400),setTimeout(()=>{t(1,r="left"),f()},800)}return f(),a.$$set=n=>{"isLoading"in n&&t(0,l=n.isLoading)},[l,r]}class Ce extends j{constructor(e){super(),z(this,e,Ae,Be,V,{isLoading:0})}}function ne(a){return{c:M,l:M,m:M,d:M}}function Ne(a){let e,t,l,r,f,n,s,c,o,d;
1e=new Ce({props:{isLoading:a[1]&&a[2]}}),l=new Me({});const q=a[6].default,w=pe(q,a,a[5],null);s=new Oe({});let b=a[0]!==""&&ne();return{c(){K(e.$$.fragment),t=I(),K(l.$$.fragment),r=I(),f=$("main"),w&&w.c(),n=I(),K(s.$$.fragment),c=I(),b&&b.c(),o=Z(),this.h()},l(i){Y(e.$$.fragment,i),t=O(i),Y(l.$$.fragment,i),r=O(i),f=L(i,"MAIN",{class:!0});var g=y(f);w&&w.l(g),g.forEach(h),n=O(i),Y(s.$$.fragment,i),c=O(i),b&&b.l(i),o=Z(),this.h()},h(){u(f,"class","svelte-f33a6u")},m(i,g){F(e,i,g),E(i,t,g),F(l,i,g),E(i,r,g),E(i,f,g),w&&w.m(f,null),E(i,n,g),F(s,i,g),E(i,c,g),b&&b.m(i,g),E(i,o,g),d=!0},p(i,[g]){const m={};g&6&&(m.isLoading=i[1]&&i[2]),e.$set(m),w&&w.p&&(!d||g&32)&&_e(w,q,i,i[5],d?ve(q,i[5],g,null):me(i[5]),null),i[0]!==""?b||(b=ne(),b.c(),b.m(o.parentNode,o)):b&&(b.d(1),b=null)},i(i){d||(B(e.$$.fragment,i),B(l.$$.fragment,i),B(w,i),B(s.$$.fragment,i),d=!0)},o(i){A(e.$$.fragment,i),A(l.$$.fragment,i),A(w,i),A(s.$$.fragment,i),d=!1},d(i){i&&(h(t),h(r),h(f),h(n),h(c),h(o)),J(e,i),J(l,i),w&&w.d(i),J(s,i),b&&b.d(i)}}}function Se(a,e,t){let l,r,f,n;N(a,he,d=>t(4,r=d)),N(a,ee,d=>t(1,f=d));let{$$slots:s={},$$scope:c}=e;const o=ye(ee,(d,q)=>{setTimeout(()=>q(d),250)});return N(a,o,d=>t(2,n=d)),a.$$set=d=>{"$$scope"in d&&t(5,c=d.$$scope)},a.$$.update=()=>{a.$$.dirty&16&&t(0,l=r.url.pathname.split("/")[1])},[l,f,n,o,r,c,s]}class Ye extends j{constructor(e){super(),z(this,e,Se,Ne,V,{})}}export{Ye as component,Ke as universal};
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.