// @bun
var{defineProperty:B,getOwnPropertyNames:H,getOwnPropertyDescriptor:I}=Object,J=Object.prototype.hasOwnProperty;function K(j){return this[j]}var R=(j)=>{var k=(C??=new WeakMap).get(j),v;if(k)return k;if(k=B({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var z of H(j))if(!J.call(k,z))B(k,z,{get:K.bind(j,z),enumerable:!(v=I(j,z))||v.enumerable})}return C.set(j,k),k},C;var L=(j)=>j;function M(j,k){this[j]=L.bind(null,k)}var S=(j,k)=>{for(var v in k)B(j,v,{get:k[v],enumerable:!0,configurable:!0,set:M.bind(k,v)})};var T=(j,k)=>()=>(j&&(k=j(j=0)),k);var V=import.meta.require;function X(j,k){let v=j.url.replace(/\/$/,""),z=new Date().toISOString().slice(0,10);return['<?xml version="1.0" encoding="UTF-8"?>','<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',k.filter((A)=>A.page?.sitemap!==!1).map((A)=>{let D=`${v}${A.path}`,E=A.page?.priority??(A.path==="/"?1:0.8),F=A.page?.changefreq??"monthly";return["  <url>",`    <loc>${O(D)}</loc>`,`    <lastmod>${z}</lastmod>`,`    <changefreq>${F}</changefreq>`,`    <priority>${E.toFixed(1)}</priority>`,"  </url>"].join(`
`)}).join(`
`),"</urlset>",""].join(`
`)}function O(j){return j.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}export{X as generateSitemap};
