"use strict";(()=>{var e={};e.id=717,e.ids=[717],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},4220:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>A,patchFetch:()=>P,requestAsyncStorage:()=>w,routeModule:()=>h,serverHooks:()=>x,staticGenerationAsyncStorage:()=>v});var a={};r.r(a),r.d(a,{default:()=>c,revalidate:()=>p});var n={};r.r(n),r.d(n,{GET:()=>y,revalidate:()=>p});var o=r(9303),i=r(8716),l=r(3131),s=r(5661);async function u(e=1,t=9,r){let a=new URLSearchParams({page:String(e),per_page:String(t),_embed:"1",_fields:"id,slug,title,excerpt,content,date,link,categories,_links,_embedded,featured_media_url"});r&&a.set("categories",String(r));let n=`https://wp.epeducation.id/wp-json/wp/v2/posts?${a.toString()}`;try{let e=await fetch(n,{next:{revalidate:600}});if(!e.ok){if(400===e.status)return{posts:[],totalPages:1};throw Error(`WP API ${e.status}: posts`)}let t=await e.json(),r=Number(e.headers.get("X-WP-TotalPages")||"1");return{posts:t,totalPages:r}}catch(e){return console.error("[wordpress] getPosts failed:",e instanceof Error?e.message:e),{posts:[],totalPages:1}}}let p=600;async function c(){let e="http://localhost:3000",t=[{url:e,lastModified:new Date,changeFrequency:"weekly",priority:1},{url:`${e}/promo`,lastModified:new Date,changeFrequency:"daily",priority:.8},{url:`${e}/karir`,lastModified:new Date,changeFrequency:"monthly",priority:.6},{url:`${e}/blog`,lastModified:new Date,changeFrequency:"daily",priority:.9}],r=[];try{let{posts:t}=await u(1,100);r=t.map(t=>({url:`${e}/blog/${t.slug}`,lastModified:new Date(t.date),changeFrequency:"monthly",priority:.7}))}catch{}return[...t,...r]}var d=r(707);let f={...a},m=f.default,g=f.generateSitemaps;if("function"!=typeof m)throw Error('Default export is missing in "C:\\Users\\Matori\\Documents\\EPEDUCATION\\src\\app\\sitemap.ts"');async function y(e,t){let r;let{__metadata_id__:a,...n}=t.params||{},o=g?await g():null;if(o&&null==(r=o.find(e=>{let t=e.id.toString();return(t+=".xml")===a})?.id))return new s.NextResponse("Not Found",{status:404});let i=await m({id:r}),l=(0,d.resolveRouteData)(i,"sitemap");return new s.NextResponse(l,{headers:{"Content-Type":"application/xml","Cache-Control":"public, max-age=0, must-revalidate"}})}let h=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/sitemap.xml/route",pathname:"/sitemap.xml",filename:"sitemap",bundlePath:"app/sitemap.xml/route"},resolvedPagePath:"next-metadata-route-loader?page=%2Fsitemap.xml%2Froute&filePath=C%3A%5CUsers%5CMatori%5CDocuments%5CEPEDUCATION%5Csrc%5Capp%5Csitemap.ts&isDynamic=1!?__next_metadata_route__",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:w,staticGenerationAsyncStorage:v,serverHooks:x}=h,A="/sitemap.xml/route";function P(){return(0,l.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:v})}},707:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{resolveManifest:function(){return i},resolveRobots:function(){return n},resolveRouteData:function(){return l},resolveSitemap:function(){return o}});let a=r(1389);function n(e){let t="";for(let r of Array.isArray(e.rules)?e.rules:[e.rules]){for(let e of(0,a.resolveArray)(r.userAgent||["*"]))t+=`User-Agent: ${e}
`;if(r.allow)for(let e of(0,a.resolveArray)(r.allow))t+=`Allow: ${e}
`;if(r.disallow)for(let e of(0,a.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,a.resolveArray)(e.sitemap).forEach(e=>{t+=`Sitemap: ${e}
`}),t}function o(e){let t=e.some(e=>Object.keys(e.alternates??{}).length>0),r="";for(let n of(r+='<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"',t?r+=' xmlns:xhtml="http://www.w3.org/1999/xhtml">\n':r+=">\n",e)){var a;r+=`<url>
<loc>${n.url}</loc>
`;let e=null==(a=n.alternates)?void 0:a.languages;if(e&&Object.keys(e).length)for(let t in e)r+=`<xhtml:link rel="alternate" hreflang="${t}" href="${e[t]}" />
`;if(n.lastModified){let e=n.lastModified instanceof Date?n.lastModified.toISOString():n.lastModified;r+=`<lastmod>${e}</lastmod>
`}n.changeFrequency&&(r+=`<changefreq>${n.changeFrequency}</changefreq>
`),"number"==typeof n.priority&&(r+=`<priority>${n.priority}</priority>
`),r+="</url>\n"}return r+"</urlset>\n"}function i(e){return JSON.stringify(e)}function l(e,t){return"robots"===t?n(e):"sitemap"===t?o(e):"manifest"===t?i(e):""}},1389:(e,t)=>{function r(e){return Array.isArray(e)?e:[e]}function a(e){if(null!=e)return r(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{resolveArray:function(){return r},resolveAsArrayOrUndefined:function(){return a}})}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[948,518],()=>r(4220));module.exports=a})();