module.exports=[93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},70943,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={getOrigin:function(){return l},resolveArray:function(){return n},resolveAsArrayOrUndefined:function(){return o}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});function n(e){return Array.isArray(e)?e:[e]}function o(e){if(null!=e)return n(e)}function l(e){let t;if("string"==typeof e)try{t=(e=new URL(e)).origin}catch{}return t}},73853,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={resolveManifest:function(){return s},resolveRobots:function(){return o},resolveRouteData:function(){return d},resolveSitemap:function(){return l}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let n=e.r(70943);function o(e){let t="";for(let r of Array.isArray(e.rules)?e.rules:[e.rules]){for(let e of(0,n.resolveArray)(r.userAgent||["*"]))t+=`User-Agent: ${e}
`;if(r.allow)for(let e of(0,n.resolveArray)(r.allow))t+=`Allow: ${e}
`;if(r.disallow)for(let e of(0,n.resolveArray)(r.disallow))t+=`Disallow: ${e}
`;r.crawlDelay&&(t+=`Crawl-delay: ${r.crawlDelay}
`),t+="\n"}return e.host&&(t+=`Host: ${e.host}
`),e.sitemap&&(0,n.resolveArray)(e.sitemap).forEach(e=>{t+=`Sitemap: ${e}
`}),t}function l(e){let t=e.some(e=>Object.keys(e.alternates??{}).length>0),r=e.some(e=>{var t;return!!(null==(t=e.images)?void 0:t.length)}),i=e.some(e=>{var t;return!!(null==(t=e.videos)?void 0:t.length)}),a="";for(let s of(a+='<?xml version="1.0" encoding="UTF-8"?>\n',a+='<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"',r&&(a+=' xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"'),i&&(a+=' xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"'),t?a+=' xmlns:xhtml="http://www.w3.org/1999/xhtml">\n':a+=">\n",e)){var n,o,l;a+="<url>\n",a+=`<loc>${s.url}</loc>
`;let e=null==(n=s.alternates)?void 0:n.languages;if(e&&Object.keys(e).length)for(let t in e)a+=`<xhtml:link rel="alternate" hreflang="${t}" href="${e[t]}" />
`;if(null==(o=s.images)?void 0:o.length)for(let e of s.images)a+=`<image:image>
<image:loc>${e}</image:loc>
</image:image>
`;if(null==(l=s.videos)?void 0:l.length)for(let e of s.videos)a+=["<video:video>",`<video:title>${e.title}</video:title>`,`<video:thumbnail_loc>${e.thumbnail_loc}</video:thumbnail_loc>`,`<video:description>${e.description}</video:description>`,e.content_loc&&`<video:content_loc>${e.content_loc}</video:content_loc>`,e.player_loc&&`<video:player_loc>${e.player_loc}</video:player_loc>`,e.duration&&`<video:duration>${e.duration}</video:duration>`,e.view_count&&`<video:view_count>${e.view_count}</video:view_count>`,e.tag&&`<video:tag>${e.tag}</video:tag>`,e.rating&&`<video:rating>${e.rating}</video:rating>`,e.expiration_date&&`<video:expiration_date>${e.expiration_date}</video:expiration_date>`,e.publication_date&&`<video:publication_date>${e.publication_date}</video:publication_date>`,e.family_friendly&&`<video:family_friendly>${e.family_friendly}</video:family_friendly>`,e.requires_subscription&&`<video:requires_subscription>${e.requires_subscription}</video:requires_subscription>`,e.live&&`<video:live>${e.live}</video:live>`,e.restriction&&`<video:restriction relationship="${e.restriction.relationship}">${e.restriction.content}</video:restriction>`,e.platform&&`<video:platform relationship="${e.platform.relationship}">${e.platform.content}</video:platform>`,e.uploader&&`<video:uploader${e.uploader.info&&` info="${e.uploader.info}"`}>${e.uploader.content}</video:uploader>`,`</video:video>
`].filter(Boolean).join("\n");if(s.lastModified){let e=s.lastModified instanceof Date?s.lastModified.toISOString():s.lastModified;a+=`<lastmod>${e}</lastmod>
`}s.changeFrequency&&(a+=`<changefreq>${s.changeFrequency}</changefreq>
`),"number"==typeof s.priority&&(a+=`<priority>${s.priority}</priority>
`),a+="</url>\n"}return a+"</urlset>\n"}function s(e){return JSON.stringify(e)}function d(e,t){return"robots"===t?o(e):"sitemap"===t?l(e):"manifest"===t?s(e):""}},83345,e=>{"use strict";var t=e.i(47909),r=e.i(74017),i=e.i(96250),a=e.i(59756),n=e.i(61916),o=e.i(74677),l=e.i(69741),s=e.i(16795),d=e.i(87718),u=e.i(95169),c=e.i(47587),p=e.i(66012),v=e.i(70101),f=e.i(26937),h=e.i(10372),m=e.i(93695);e.i(52474);var g=e.i(220),y=e.i(89171);async function x(){let e=process.env.NEXT_PUBLIC_SITE_URL||"http://localhost:3000",t="/api";t.startsWith("/")&&(t=`${e}${t}`);let r=[],i=[],a=[];try{let[e,n,o]=await Promise.all([fetch(`${t}/products`,{next:{revalidate:3600}}),fetch(`${t}/blog`,{next:{revalidate:3600}}),fetch(`${t}/pages`,{next:{revalidate:3600}})]);e.ok&&(r=await e.json()),n.ok&&(i=await n.json()),o.ok&&(a=await o.json())}catch(e){console.error("Error fetching sitemap data:",e)}return[{url:`${e}`,lastModified:new Date,changeFrequency:"daily",priority:1},{url:`${e}/shop`,lastModified:new Date,changeFrequency:"daily",priority:.9},{url:`${e}/blog`,lastModified:new Date,changeFrequency:"daily",priority:.8},{url:`${e}/checkout`,lastModified:new Date,changeFrequency:"weekly",priority:.6},...r.map(t=>({url:`${e}/product/${t.slug}`,lastModified:new Date(t.updatedAt),changeFrequency:"weekly",priority:.8})),...i.map(t=>({url:`${e}/blog/${t.slug}`,lastModified:new Date(t.updatedAt),changeFrequency:"monthly",priority:.7})),...a.map(t=>({url:`${e}/pages/${t.slug}`,lastModified:new Date(t.updatedAt),changeFrequency:"yearly",priority:.6}))]}e.s(["default",0,x],63034);var w=e.i(73853);async function R(){let e=await x(),t=(0,w.resolveRouteData)(e,"sitemap");return new y.NextResponse(t,{headers:{"Content-Type":"application/xml","Cache-Control":"public, max-age=0, must-revalidate"}})}e.s(["GET",0,R],79512),e.i(79512),e.i(63034),e.s(["GET",0,R],87576);var _=e.i(87576);let $=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/sitemap.xml/route",pathname:"/sitemap.xml",filename:"sitemap--route-entry",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/sitemap--route-entry.js",nextConfigOutput:"",userland:_,...{}}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:E}=$;async function C(e,t,i){i.requestMeta&&(0,a.setRequestMeta)(e,i.requestMeta),$.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let y="/sitemap.xml/route";y=y.replace(/\/index$/,"")||"/";let x=await $.prepare(e,t,{srcPage:y,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==i.waitUntil||i.waitUntil.call(i,Promise.resolve()),null;let{buildId:w,deploymentId:R,params:_,nextConfig:b,parsedUrl:A,isDraftMode:E,prerenderManifest:C,routerServerContext:q,isOnDemandRevalidate:O,revalidateOnlyGenerated:T,resolvedPathname:k,clientReferenceManifest:P,serverActionsManifest:M}=x,j=(0,l.normalizeAppPath)(y),N=!!(C.dynamicRoutes[j]||C.routes[k]),S=async()=>((null==q?void 0:q.render404)?await q.render404(e,t,A,!1):t.end("This page could not be found"),null);if(N&&!E){let e=!!C.routes[k],t=C.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await S();throw new m.NoFallbackError}}let D=null;!N||$.isDev||E||(D="/index"===(D=k)?"/":D);let U=!0===$.isDev||!N,I=N&&!U;M&&P&&(0,o.setManifestsSingleton)({page:y,clientReferenceManifest:P,serverActionsManifest:M});let F=e.method||"GET",H=(0,n.getTracer)(),B=H.getActiveScopeSpan(),K=!!(null==q?void 0:q.isWrappedByNextServer),L=!!(0,a.getRequestMeta)(e,"minimalMode"),G=(0,a.getRequestMeta)(e,"incrementalCache")||await $.getIncrementalCache(e,b,C,L);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let W={params:_,previewProps:C.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:U,incrementalCache:G,cacheLifeProfiles:b.cacheLife,waitUntil:i.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,i,a)=>$.onRequestError(e,t,i,a,q)},sharedContext:{buildId:w,deploymentId:R}},X=new s.NodeNextRequest(e),V=new s.NodeNextResponse(t),z=d.NextRequestAdapter.fromNodeNextRequest(X,(0,d.signalFromNodeResponse)(t));try{let a,o=async e=>$.handle(z,W).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let i=r.get("next.route");if(i){let t=`${F} ${i}`;e.setAttributes({"next.route":i,"http.route":i,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",i),a.updateName(t))}else e.updateName(`${F} ${y}`)}),l=async a=>{var n,l;let s=async({previousCacheEntry:r})=>{try{if(!L&&O&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(a);e.fetchMetrics=W.renderOpts.fetchMetrics;let l=W.renderOpts.pendingWaitUntil;l&&i.waitUntil&&(i.waitUntil(l),l=void 0);let s=W.renderOpts.collectedTags;if(!N)return await (0,p.sendResponse)(X,V,n,W.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,v.toNodeOutgoingHttpHeaders)(n.headers);s&&(t[h.NEXT_CACHE_TAGS_HEADER]=s),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=h.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,i=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=h.INFINITE_CACHE?void 0:W.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:i}}}}catch(t){throw(null==r?void 0:r.isStale)&&await $.onRequestError(e,t,{routerKind:"App Router",routePath:y,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:O})},!1,q),t}},d=await $.handleResponse({req:e,nextConfig:b,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:T,responseGenerator:s,waitUntil:i.waitUntil,isMinimalMode:L});if(!N)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",O?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,v.fromNodeOutgoingHttpHeaders)(d.value.headers);return L&&N||u.delete(h.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(X,V,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&B?await l(B):(a=H.getActiveScopeSpan(),await H.withPropagatedContext(e.headers,()=>H.trace(u.BaseServerSpan.handleRequest,{spanName:`${F} ${y}`,kind:n.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},l),void 0,!K))}catch(t){if(t instanceof m.NoFallbackError||await $.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:O})},!1,q),N)throw t;return await (0,p.sendResponse)(X,V,new Response(null,{status:500})),null}}e.s(["handler",0,C,"patchFetch",0,function(){return(0,i.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})},"routeModule",0,$,"serverHooks",0,E,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,A],83345)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__0lcjjvw._.js.map