astro/packages/integrations/cloudflare/test/fixtures/basics/functions/[[path]].js
Reuben Tier 1b90a7a5d5
Fix generation for routes defined using getStaticPaths (#7029)
* Fix static site dynamic routes for sitemap integration

* Add changeset

* Update pnpm-lock

* Remove console.log
2023-05-08 16:12:41 -04:00

277 lines
116 KiB
JavaScript

globalThis.process = {
argv: [],
env: {},
};
var En=Object.create;var lt=Object.defineProperty;var jn=Object.getOwnPropertyDescriptor;var $n=Object.getOwnPropertyNames;var Cn=Object.getPrototypeOf,Fn=Object.prototype.hasOwnProperty;var Rn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pn=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $n(t))!Fn.call(e,o)&&o!==a&&lt(e,o,{get:()=>t[o],enumerable:!(i=jn(t,o))||i.enumerable});return e};var ct=(e,t,a)=>(a=e!=null?En(Cn(e)):{},Pn(t||!e||!e.__esModule?lt(a,"default",{value:e,enumerable:!0}):a,e));var je=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)};var u=(e,t,a)=>(je(e,t,"read from private field"),a?a.call(e):t.get(e)),k=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},j=(e,t,a,i)=>(je(e,t,"write to private field"),i?i.call(e,a):t.set(e,a),a);var M=(e,t,a)=>(je(e,t,"access private method"),a);var Ce=Rn($e=>{"use strict";$e.parse=zn;$e.serialize=On;var Nn=decodeURIComponent,Tn=encodeURIComponent,me=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function zn(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var a={},i=t||{},o=e.split(";"),r=i.decode||Nn,n=0;n<o.length;n++){var s=o[n],p=s.indexOf("=");if(!(p<0)){var d=s.substring(0,p).trim();if(a[d]==null){var l=s.substring(p+1,s.length).trim();l[0]==='"'&&(l=l.slice(1,-1)),a[d]=Mn(l,r)}}}return a}function On(e,t,a){var i=a||{},o=i.encode||Tn;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!me.test(e))throw new TypeError("argument name is invalid");var r=o(t);if(r&&!me.test(r))throw new TypeError("argument val is invalid");var n=e+"="+r;if(i.maxAge!=null){var s=i.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");n+="; Max-Age="+Math.floor(s)}if(i.domain){if(!me.test(i.domain))throw new TypeError("option domain is invalid");n+="; Domain="+i.domain}if(i.path){if(!me.test(i.path))throw new TypeError("option path is invalid");n+="; Path="+i.path}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");n+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(n+="; HttpOnly"),i.secure&&(n+="; Secure"),i.sameSite){var p=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(p){case!0:n+="; SameSite=Strict";break;case"lax":n+="; SameSite=Lax";break;case"strict":n+="; SameSite=Strict";break;case"none":n+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return n}function Mn(e,t){try{return t(e)}catch{return e}}});var ae=ct(Ce(),1);function we(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}we.prototype.define=function(e,t){for(let a in e){let i=e[a].map(function(o){return o.toLowerCase()});a=a.toLowerCase();for(let o=0;o<i.length;o++){let r=i[o];if(r[0]!=="*"){if(!t&&r in this._types)throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+a+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+a+'".');this._types[r]=a}}if(t||!this._extensions[a]){let o=i[0];this._extensions[a]=o[0]!=="*"?o:o.substr(1)}}};we.prototype.getType=function(e){e=String(e);let t=e.replace(/^.*[/\\]/,"").toLowerCase(),a=t.replace(/^.*\./,"").toLowerCase(),i=t.length<e.length;return(a.length<t.length-1||!i)&&this._types[a]||null};we.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null};var In=we,Dn={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]},_n={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]},Un=In,Ln=new Un(Dn,_n),f={UnknownCompilerError:{title:"Unknown compiler error.",code:1e3,hint:"This is almost always a problem with the Astro compiler, not your code. Please open an issue at https://astro.build/issues/compiler."},StaticRedirectNotAvailable:{title:"`Astro.redirect` is not available in static mode.",code:3001,message:"Redirects are only available when using `output: 'server'`. Update your Astro config if you need SSR features.",hint:"See https://docs.astro.build/en/guides/server-side-rendering/#enabling-ssr-in-your-project for more information on how to enable SSR."},ClientAddressNotAvailable:{title:"`Astro.clientAddress` is not available in current adapter.",code:3002,message:e=>`\`Astro.clientAddress\` is not available in the \`${e}\` adapter. File an issue with the adapter to add support.`},StaticClientAddressNotAvailable:{title:"`Astro.clientAddress` is not available in static mode.",code:3003,message:"`Astro.clientAddress` is only available when using `output: 'server'`. Update your Astro config if you need SSR features.",hint:"See https://docs.astro.build/en/guides/server-side-rendering/#enabling-ssr-in-your-project for more information on how to enable SSR."},NoMatchingStaticPathFound:{title:"No static path found for requested path.",code:3004,message:e=>`A \`getStaticPaths()\` route pattern was matched, but no matching static path was found for requested path \`${e}\`.`,hint:e=>`Possible dynamic routes being matched: ${e.join(", ")}.`},OnlyResponseCanBeReturned:{title:"Invalid type returned by Astro page.",code:3005,message:(e,t)=>`Route \`${e||""}\` returned a \`${t}\`. Only a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) can be returned from Astro files.`,hint:"See https://docs.astro.build/en/guides/server-side-rendering/#response for more information."},MissingMediaQueryDirective:{title:"Missing value for `client:media` directive.",code:3006,message:'Media query not provided for `client:media` directive. A media query similar to `client:media="(max-width: 600px)"` must be provided'},NoMatchingRenderer:{title:"No matching renderer found.",code:3007,message:(e,t,a,i)=>`Unable to render \`${e}\`.
${i>0?`There ${a?"are.":"is."} ${i} renderer${a?"s.":""} configured in your \`astro.config.mjs\` file,
but ${a?"none were.":"it was not."} able to server-side render \`${e}\`.`:`No valid renderer was found ${t?`for the \`.${t}\` file extension.`:"for this file extension."}`}`,hint:e=>`Did you mean to enable the ${e} integration?
See https://docs.astro.build/en/core-concepts/framework-components/ for more information on how to install and configure integrations.`},NoClientEntrypoint:{title:"No client entrypoint specified in renderer.",code:3008,message:(e,t,a)=>`\`${e}\` component has a \`client:${t}\` directive, but no client entrypoint was provided by \`${a}\`.`,hint:"See https://docs.astro.build/en/reference/integrations-reference/#addrenderer-option for more information on how to configure your renderer."},NoClientOnlyHint:{title:"Missing hint on client:only directive.",code:3009,message:e=>`Unable to render \`${e}\`. When using the \`client:only\` hydration strategy, Astro needs a hint to use the correct renderer.`,hint:e=>`Did you mean to pass \`client:only="${e}"\`? See https://docs.astro.build/en/reference/directives-reference/#clientonly for more information on client:only`},InvalidGetStaticPathParam:{title:"Invalid value returned by a `getStaticPaths` path.",code:3010,message:e=>`Invalid params given to \`getStaticPaths\` path. Expected an \`object\`, got \`${e}\``,hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},InvalidGetStaticPathsReturn:{title:"Invalid value returned by getStaticPaths.",code:3011,message:e=>`Invalid type returned by \`getStaticPaths\`. Expected an \`array\`, got \`${e}\``,hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},GetStaticPathsRemovedRSSHelper:{title:"getStaticPaths RSS helper is not available anymore.",code:3012,message:"The RSS helper has been removed from `getStaticPaths`. Try the new @astrojs/rss package instead.",hint:"See https://docs.astro.build/en/guides/rss/ for more information."},GetStaticPathsExpectedParams:{title:"Missing params property on `getStaticPaths` route.",code:3013,message:"Missing or empty required `params` property on `getStaticPaths` route.",hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},GetStaticPathsInvalidRouteParam:{title:"Invalid value for `getStaticPaths` route parameter.",code:3014,message:(e,t,a)=>`Invalid getStaticPaths route parameter for \`${e}\`. Expected undefined, a string or a number, received \`${a}\` (\`${t}\`)`,hint:"See https://docs.astro.build/en/reference/api-reference/#getstaticpaths for more information on getStaticPaths."},GetStaticPathsRequired:{title:"`getStaticPaths()` function required for dynamic routes.",code:3015,message:"`getStaticPaths()` function is required for dynamic routes. Make sure that you `export` a `getStaticPaths` function from your dynamic route.",hint:'See https://docs.astro.build/en/core-concepts/routing/#dynamic-routes for more information on dynamic routes.\n\nAlternatively, set `output: "server"` in your Astro config file to switch to a non-static server build. This error can also occur if using `export const prerender = true;`.\nSee https://docs.astro.build/en/guides/server-side-rendering/ for more information on non-static rendering.'},ReservedSlotName:{title:"Invalid slot name.",code:3016,message:e=>`Unable to create a slot named \`${e}\`. \`${e}\` is a reserved slot name. Please update the name of this slot.`},NoAdapterInstalled:{title:"Cannot use Server-side Rendering without an adapter.",code:3017,message:"Cannot use `output: 'server'` without an adapter. Please install and configure the appropriate server adapter for your final deployment.",hint:"See https://docs.astro.build/en/guides/server-side-rendering/ for more information."},NoMatchingImport:{title:"No import found for component.",code:3018,message:e=>`Could not render \`${e}\`. No matching import has been found for \`${e}\`.`,hint:"Please make sure the component is properly imported."},InvalidPrerenderExport:{title:"Invalid prerender export.",code:3019,message:(e,t)=>{let a="A `prerender` export has been detected, but its value cannot be statically analyzed.";return e!=="const"&&(a+=`
Expected \`const\` declaration but got \`${e}\`.`),t!=="true"&&(a+=`
Expected \`true\` value but got \`${t}\`.`),a},hint:"Mutable values declared at runtime are not supported. Please make sure to use exactly `export const prerender = true`."},InvalidComponentArgs:{title:"Invalid component arguments.",code:3020,message:e=>`Invalid arguments passed to${e?` <${e}>`:""} component.`,hint:"Astro components cannot be rendered directly via function call, such as `Component()` or `{items.map(Component)}`."},PageNumberParamNotFound:{title:"Page number param not found.",code:3021,message:e=>`[paginate()] page number param \`${e}\` not found in your filepath.`,hint:"Rename your file to `[page].astro` or `[...page].astro`."},ImageMissingAlt:{title:"Missing alt property.",code:3022,message:"The alt property is required.",hint:"The `alt` property is important for the purpose of accessibility, without it users using screen readers or other assistive technologies won't be able to understand what your image is supposed to represent. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-alt for more information."},InvalidImageService:{title:"Error while loading image service.",code:3023,message:"There was an error loading the configured image service. Please see the stack trace for more information."},MissingImageDimension:{title:"Missing image dimensions",code:3024,message:(e,t)=>`Missing ${e==="both"?"width and height attributes":`${e} attribute`} for ${t}. When using remote images, both dimensions are always required in order to avoid CLS.`,hint:"If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets)."},UnsupportedImageFormat:{title:"Unsupported image format",code:3025,message:(e,t,a)=>`Received unsupported format \`${e}\` from \`${t}\`. Currently only ${a.join(", ")} are supported for optimization.`,hint:"If you do not need optimization, using an `img` tag directly instead of the `Image` component might be what you're looking for."},PrerenderDynamicEndpointPathCollide:{title:"Prerendered dynamic endpoint has path collision.",code:3026,message:e=>`Could not render \`${e}\` with an \`undefined\` param as the generated path will collide during prerendering. Prevent passing \`undefined\` as \`params\` for the endpoint's \`getStaticPaths()\` function, or add an additional extension to the endpoint's filename.`,hint:e=>`Rename \`${e}\` to \`${e.replace(/\.(js|ts)/,t=>".json"+t)}\``},ExpectedImage:{title:"Expected src to be an image.",code:3027,message:e=>`Expected \`src\` property to be either an ESM imported image or a string with the path of a remote image. Received \`${e}\`.`,hint:"This error can often happen because of a wrong path. Make sure the path to your image is correct."},ExpectedImageOptions:{title:"Expected image options.",code:3028,message:e=>`Expected getImage() parameter to be an object. Received \`${e}\`.`},MarkdownImageNotFound:{title:"Image not found.",code:3029,message:(e,t)=>`Could not find requested image \`${e}\`${t?` at \`${t}\`.`:"."}`,hint:"This is often caused by a typo in the image path. Please make sure the file exists, and is spelled correctly."},ResponseSentError:{title:"Unable to set response",code:3030,message:"The response has already been sent to the browser and cannot be altered."},MiddlewareNoDataOrNextCalled:{title:"The middleware didn't return a response or call `next`",code:3031,message:"The middleware needs to either return a `Response` object or call the `next` function."},MiddlewareNotAResponse:{title:"The middleware returned something that is not a `Response` object",code:3032,message:"Any data returned from middleware must be a valid `Response` object."},LocalsNotAnObject:{title:"Value assigned to `locals` is not accepted",code:3033,message:"`locals` can only be assigned to an object. Other values like numbers, strings, etc. are not accepted.",hint:"If you tried to remove some information from the `locals` object, try to use `delete` or set the property to `undefined`."},LocalsNotSerializable:{title:"`Astro.locals` is not serializable",code:3034,message:e=>`The information stored in \`Astro.locals\` for the path "${e}" is not serializable.
Make sure you store only serializable data.`},UnknownViteError:{title:"Unknown Vite Error.",code:4e3},FailedToLoadModuleSSR:{title:"Could not import file.",code:4001,message:e=>`Could not import \`${e}\`.`,hint:"This is often caused by a typo in the import path. Please make sure the file exists."},InvalidGlob:{title:"Invalid glob pattern.",code:4002,message:e=>`Invalid glob pattern: \`${e}\`. Glob patterns must start with './', '../' or '/'.`,hint:"See https://docs.astro.build/en/guides/imports/#glob-patterns for more information on supported glob patterns."},UnknownCSSError:{title:"Unknown CSS Error.",code:5e3},CSSSyntaxError:{title:"CSS Syntax Error.",code:5001},UnknownMarkdownError:{title:"Unknown Markdown Error.",code:6e3},MarkdownFrontmatterParseError:{title:"Failed to parse Markdown frontmatter.",code:6001},InvalidFrontmatterInjectionError:{title:"Invalid frontmatter injection.",code:6003,message:'A remark or rehype plugin attempted to inject invalid frontmatter. Ensure "astro.frontmatter" is set to a valid JSON object that is not `null` or `undefined`.',hint:"See the frontmatter injection docs https://docs.astro.build/en/guides/markdown-content/#modifying-frontmatter-programmatically for more information."},MdxIntegrationMissingError:{title:"MDX integration missing.",code:6004,message:e=>`Unable to render ${e}. Ensure that the \`@astrojs/mdx\` integration is installed.`,hint:"See the MDX integration docs for installation and usage instructions: https://docs.astro.build/en/guides/integrations-guide/mdx/"},UnknownConfigError:{title:"Unknown configuration error.",code:7e3},ConfigNotFound:{title:"Specified configuration file not found.",code:7001,message:e=>`Unable to resolve \`--config "${e}"\`. Does the file exist?`},ConfigLegacyKey:{title:"Legacy configuration detected.",code:7002,message:e=>`Legacy configuration detected: \`${e}\`.`,hint:`Please update your configuration to the new format.
See https://astro.build/config for more information.`},UnknownCLIError:{title:"Unknown CLI Error.",code:8e3},GenerateContentTypesError:{title:"Failed to generate content types.",code:8001,message:e=>`\`astro sync\` command failed to generate content collection types: ${e}`,hint:"Check your `src/content/config.*` file for typos."},UnknownContentCollectionError:{title:"Unknown Content Collection Error.",code:9e3},InvalidContentEntryFrontmatterError:{title:"Content entry frontmatter does not match schema.",code:9001,message:(e,t,a)=>[`**${String(e)} \u2192 ${String(t)}** frontmatter does not match collection schema.`,...a.errors.map(i=>i.message)].join(`
`),hint:"See https://docs.astro.build/en/guides/content-collections/ for more information on content schemas."},InvalidContentEntrySlugError:{title:"Invalid content entry slug.",code:9002,message:(e,t)=>`${String(e)} \u2192 ${String(t)} has an invalid slug. \`slug\` must be a string.`,hint:"See https://docs.astro.build/en/guides/content-collections/ for more on the `slug` field."},ContentSchemaContainsSlugError:{title:"Content Schema should not contain `slug`.",code:9003,message:e=>`A content collection schema should not contain \`slug\` since it is reserved for slug generation. Remove this from your ${e} collection schema.`,hint:"See https://docs.astro.build/en/guides/content-collections/ for more on the `slug` field."},UnknownError:{title:"Unknown Error.",code:99999}};function Hn(e){return e.replace(/\r\n|\r(?!\n)|\n/g,`
`)}function qn(e){let t=Object.entries(f).find(a=>a[1].code===e);if(t)return{name:t[0],data:t[1]}}function Bn(e,t){if(!t||t.line===void 0||t.column===void 0)return"";let a=Hn(e).split(`
`).map(n=>n.replace(/\t/g," ")),i=[];for(let n=-2;n<=2;n++)a[t.line+n]&&i.push(t.line+n);let o=0;for(let n of i){let s=`> ${n}`;s.length>o&&(o=s.length)}let r="";for(let n of i){let s=n===t.line-1;r+=s?"> ":" ",r+=`${n+1} | ${a[n]}
`,s&&(r+=`${Array.from({length:o}).join(" ")} | ${Array.from({length:t.column}).join(" ")}^
`)}return r}var v=class extends Error{constructor(t,...a){var i;super(...a),this.type="AstroError";let{code:o,name:r,title:n,message:s,stack:p,location:d,hint:l,frame:c}=t;this.errorCode=o,r&&r!=="Error"?this.name=r:this.name=((i=qn(this.errorCode))==null?void 0:i.name)??"UnknownError",this.title=n,s&&(this.message=s),this.stack=p||this.stack,this.loc=d,this.hint=l,this.frame=c}setErrorCode(t){this.errorCode=t}setLocation(t){this.loc=t}setName(t){this.name=t}setMessage(t){this.message=t}setHint(t){this.hint=t}setFrame(t,a){this.frame=Bn(t,a)}static is(t){return t.type==="AstroError"}},Vn=new Date(0),dt="deleted",Jn=Symbol.for("astro.responseSent"),ee=class{constructor(t){this.value=t}json(){if(this.value===void 0)throw new Error("Cannot convert undefined to an object.");return JSON.parse(this.value)}number(){return Number(this.value)}boolean(){return this.value==="false"||this.value==="0"?!1:!!this.value}},J,I,R,ie,De,oe,_e,ve,Mt,ue=class{constructor(t){k(this,ie);k(this,oe);k(this,ve);k(this,J,void 0);k(this,I,void 0);k(this,R,void 0);j(this,J,t),j(this,I,null),j(this,R,null)}delete(t,a){let i={expires:Vn};a?.domain&&(i.domain=a.domain),a?.path&&(i.path=a.path),M(this,oe,_e).call(this).set(t,[dt,(0,ae.serialize)(t,dt,i),!1])}get(t){if(u(this,R)!==null&&u(this,R).has(t)){let[o,,r]=u(this,R).get(t);return r?new ee(o):new ee(void 0)}let i=M(this,ie,De).call(this)[t];return new ee(i)}has(t){if(u(this,R)!==null&&u(this,R).has(t)){let[,,i]=u(this,R).get(t);return i}return!!M(this,ie,De).call(this)[t]}set(t,a,i){let o;if(typeof a=="string")o=a;else{let n=a.toString();n===Object.prototype.toString.call(a)?o=JSON.stringify(a):o=n}let r={};if(i&&Object.assign(r,i),M(this,oe,_e).call(this).set(t,[o,(0,ae.serialize)(t,o,r),!0]),u(this,J)[Jn])throw new v({...f.ResponseSentError})}*headers(){if(u(this,R)!=null)for(let[,t]of u(this,R))yield t[1]}};J=new WeakMap,I=new WeakMap,R=new WeakMap,ie=new WeakSet,De=function(){return u(this,I)||M(this,ve,Mt).call(this),u(this,I)||j(this,I,{}),u(this,I)},oe=new WeakSet,_e=function(){return u(this,R)||j(this,R,new Map),u(this,R)},ve=new WeakSet,Mt=function(){let t=u(this,J).headers.get("cookie");t&&j(this,I,(0,ae.parse)(t))};var It=Symbol.for("astro.cookies");function Qe(e,t){Reflect.set(e,It,t)}function Gn(e){let t=Reflect.get(e,It);if(t!=null)return t}function*Wn(e){let t=Gn(e);if(!t)return[];for(let a of t.headers())yield a;return[]}function Kn(e){return!(e.length!==3||!e[0]||typeof e[0]!="object")}function Dt(e,t){var a;let i=((a=t?.split("/").pop())==null?void 0:a.replace(".astro",""))??"",o=(...r)=>{if(!Kn(r))throw new v({...f.InvalidComponentArgs,message:f.InvalidComponentArgs.message(i)});return e(...r)};return Object.defineProperty(o,"name",{value:i,writable:!1}),o.isAstroComponentFactory=!0,o.moduleId=t,o}function Xn(e){let t=Dt(e.factory,e.moduleId);return t.propagation=e.propagation,t}function _t(e,t){return typeof e=="function"?Dt(e,t):Xn(e)}var Ut="2.4.2";function Yn(){return(t,a)=>{let i=[...Object.values(t)];if(i.length===0)throw new Error(`Astro.glob(${JSON.stringify(a())}) - no matches found.`);return Promise.all(i.map(o=>o()))}}function Lt(e){return{site:e?new URL(e):void 0,generator:`Astro v${Ut}`,glob:Yn()}}function Qn(e,t){if(e[t])return e[t];if(t==="delete"&&e.del)return e.del;if(e.all)return e.all}async function Zn(e,t,a){var i;let{request:o,params:r,locals:n}=t,s=(i=o.method)==null?void 0:i.toLowerCase(),p=Qn(e,s);if(!a&&a===!1&&s&&s!=="get"&&console.warn(`
${s} requests are not available when building a static site. Update your config to output: 'server' to handle ${s} requests.`),!p||typeof p!="function")return new Response(null,{status:404,headers:{"X-Astro-Response":"Not-Found"}});p.length>1&&console.warn(`
API routes with 2 arguments have been deprecated. Instead they take a single argument in the form of:
export function get({ params, request }) {
//...
}
Update your code to remove this warning.`);let d=new Proxy(t,{get(l,c){return c in l?Reflect.get(l,c):c in r?(console.warn(`
API routes no longer pass params as the first argument. Instead an object containing a params property is provided in the form of:
export function get({ params }) {
// ...
}
Update your code to remove this warning.`),Reflect.get(r,c)):void 0}});return p.call(e,d,o)}var{replace:ea}="",ta=/[&<>'"]/g,na={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},aa=e=>na[e],ia=e=>ea.call(e,ta,aa);function Ht(e){let t={};return a(e),Object.keys(t).join(" ");function a(i){i&&typeof i.forEach=="function"?i.forEach(a):i===Object(i)?Object.keys(i).forEach(o=>{i[o]&&a(o)}):(i=i===!1||i==null?"":String(i).trim(),i&&i.split(/\s+/).forEach(o=>{t[o]=!0}))}}function Ze(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}async function*mt(e){let t=e.getReader();try{for(;;){let{done:a,value:i}=await t.read();if(a)return;yield i}}finally{t.releaseLock()}}var te=ia,V=class extends String{get[Symbol.toStringTag](){return"HTMLString"}},y=e=>e instanceof V?e:typeof e=="string"?new V(e):e;function et(e){return Object.prototype.toString.call(e)==="[object HTMLString]"}var Se="astro:jsx",ut=Symbol("empty"),ft=e=>e;function ne(e){return e&&typeof e=="object"&&e[Se]}function oa(e){if(typeof e.type=="string")return e;let t={};if(ne(e.props.children)){let a=e.props.children;if(!ne(a)||!("slot"in a.props))return;let i=ft(a.props.slot);t[i]=[a],t[i].$$slot=!0,delete a.props.slot,delete e.props.children}Array.isArray(e.props.children)&&(e.props.children=e.props.children.map(a=>{if(!ne(a)||!("slot"in a.props))return a;let i=ft(a.props.slot);return Array.isArray(t[i])?t[i].push(a):(t[i]=[a],t[i].$$slot=!0),delete a.props.slot,ut}).filter(a=>a!==ut)),Object.assign(e.props,t)}function qt(e){return typeof e=="string"?y(e):Array.isArray(e)?e.map(t=>qt(t)):e}function ra(e){if("set:html"in e.props||"set:text"in e.props){if("set:html"in e.props){let t=qt(e.props["set:html"]);delete e.props["set:html"],Object.assign(e.props,{children:t});return}if("set:text"in e.props){let t=e.props["set:text"];delete e.props["set:text"],Object.assign(e.props,{children:t});return}}}function sa(e,t){let a={[qe]:"astro:jsx",[Se]:!0,type:e,props:t??{}};return ra(a),oa(a),a}var pa=`(self.Astro = self.Astro || {}).idle = (getHydrateCallback) => {
const cb = async () => {
let hydrate = await getHydrateCallback();
await hydrate();
};
if ("requestIdleCallback" in window) {
window.requestIdleCallback(cb);
} else {
setTimeout(cb, 200);
}
};
window.dispatchEvent(new Event("astro:idle"));`,la=`(self.Astro = self.Astro || {}).load = (getHydrateCallback) => {
(async () => {
let hydrate = await getHydrateCallback();
await hydrate();
})();
};
window.dispatchEvent(new Event("astro:load"));`,ca=`(self.Astro = self.Astro || {}).media = (getHydrateCallback, options) => {
const cb = async () => {
let hydrate = await getHydrateCallback();
await hydrate();
};
if (options.value) {
const mql = matchMedia(options.value);
if (mql.matches) {
cb();
} else {
mql.addEventListener("change", cb, { once: true });
}
}
};
window.dispatchEvent(new Event("astro:media"));`,da=`(self.Astro = self.Astro || {}).only = (getHydrateCallback) => {
(async () => {
let hydrate = await getHydrateCallback();
await hydrate();
})();
};
window.dispatchEvent(new Event("astro:only"));`,ma=`(self.Astro = self.Astro || {}).visible = (getHydrateCallback, _opts, root) => {
const cb = async () => {
let hydrate = await getHydrateCallback();
await hydrate();
};
let io = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting)
continue;
io.disconnect();
cb();
break;
}
});
for (let i = 0; i < root.children.length; i++) {
const child = root.children[i];
io.observe(child);
}
};
window.dispatchEvent(new Event("astro:visible"));`,ua=`var _a;
{
const propTypes = {
0: (value) => value,
1: (value) => JSON.parse(value, reviver),
2: (value) => new RegExp(value),
3: (value) => new Date(value),
4: (value) => new Map(JSON.parse(value, reviver)),
5: (value) => new Set(JSON.parse(value, reviver)),
6: (value) => BigInt(value),
7: (value) => new URL(value),
8: (value) => new Uint8Array(JSON.parse(value)),
9: (value) => new Uint16Array(JSON.parse(value)),
10: (value) => new Uint32Array(JSON.parse(value))
};
const reviver = (propKey, raw) => {
if (propKey === "" || !Array.isArray(raw))
return raw;
const [type, value] = raw;
return type in propTypes ? propTypes[type](value) : void 0;
};
if (!customElements.get("astro-island")) {
customElements.define(
"astro-island",
(_a = class extends HTMLElement {
constructor() {
super(...arguments);
this.hydrate = () => {
if (!this.hydrator || this.parentElement && this.parentElement.closest("astro-island[ssr]")) {
return;
}
const slotted = this.querySelectorAll("astro-slot");
const slots = {};
const templates = this.querySelectorAll("template[data-astro-template]");
for (const template of templates) {
const closest = template.closest(this.tagName);
if (!closest || !closest.isSameNode(this))
continue;
slots[template.getAttribute("data-astro-template") || "default"] = template.innerHTML;
template.remove();
}
for (const slot of slotted) {
const closest = slot.closest(this.tagName);
if (!closest || !closest.isSameNode(this))
continue;
slots[slot.getAttribute("name") || "default"] = slot.innerHTML;
}
const props = this.hasAttribute("props") ? JSON.parse(this.getAttribute("props"), reviver) : {};
this.hydrator(this)(this.Component, props, slots, {
client: this.getAttribute("client")
});
this.removeAttribute("ssr");
window.removeEventListener("astro:hydrate", this.hydrate);
window.dispatchEvent(new CustomEvent("astro:hydrate"));
};
}
connectedCallback() {
if (!this.hasAttribute("await-children") || this.firstChild) {
this.childrenConnectedCallback();
} else {
new MutationObserver((_, mo) => {
mo.disconnect();
this.childrenConnectedCallback();
}).observe(this, { childList: true });
}
}
async childrenConnectedCallback() {
window.addEventListener("astro:hydrate", this.hydrate);
let beforeHydrationUrl = this.getAttribute("before-hydration-url");
if (beforeHydrationUrl) {
await import(beforeHydrationUrl);
}
this.start();
}
start() {
const opts = JSON.parse(this.getAttribute("opts"));
const directive = this.getAttribute("client");
if (Astro[directive] === void 0) {
window.addEventListener(\`astro:\${directive}\`, () => this.start(), { once: true });
return;
}
Astro[directive](
async () => {
const rendererUrl = this.getAttribute("renderer-url");
const [componentModule, { default: hydrator }] = await Promise.all([
import(this.getAttribute("component-url")),
rendererUrl ? import(rendererUrl) : () => () => {
}
]);
const componentExport = this.getAttribute("component-export") || "default";
if (!componentExport.includes(".")) {
this.Component = componentModule[componentExport];
} else {
this.Component = componentModule;
for (const part of componentExport.split(".")) {
this.Component = this.Component[part];
}
}
this.hydrator = hydrator;
return this.hydrate;
},
opts,
this
);
}
attributeChangedCallback() {
if (this.hydrator)
this.hydrate();
}
}, _a.observedAttributes = ["props"], _a)
);
}
}`;function fa(e){return e._metadata.hasHydrationScript?!1:e._metadata.hasHydrationScript=!0}var xt={idle:pa,load:la,only:da,media:ca,visible:ma};function xa(e,t){return e._metadata.hasDirectives.has(t)?!1:(e._metadata.hasDirectives.add(t),!0)}function ht(e){if(!(e in xt))throw new Error(`Unknown directive: ${e}`);return xt[e]}function ha(e,t){switch(e){case"both":return`<style>astro-island,astro-slot{display:contents}</style><script>${ht(t)+ua}<\/script>`;case"directive":return`<script>${ht(t)}<\/script>`}return""}var tt=/^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i,ga=/^(allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i,va=/^(contenteditable|draggable|spellcheck|value)$/i,ya=/^(autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/i,ba=new Set(["set:html","set:text"]),wa=e=>e.trim().replace(/(?:(?!^)\b\w|\s+|[^\w]+)/g,(t,a)=>/[^\w]|\s/.test(t)?"":a===0?t:t.toUpperCase()),Q=(e,t=!0)=>t?String(e).replace(/&/g,"&#38;").replace(/"/g,"&#34;"):e,Fe=e=>e.toLowerCase()===e?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),Sa=e=>Object.entries(e).map(([t,a])=>t[0]!=="-"&&t[1]!=="-"?`${Fe(t)}:${a}`:Fe(t)!==t?`${Fe(t)}:var(${t});${t}:${a}`:`${t}:${a}`).join(";");function ka(e){let t="";for(let[a,i]of Object.entries(e))t+=`const ${wa(a)} = ${JSON.stringify(i)};
`;return y(t)}function gt(e){return e.length===1?e[0]:`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function Bt(e,t,a=!0){if(e==null)return"";if(e===!1)return va.test(t)||ya.test(t)?y(` ${t}="false"`):"";if(ba.has(t))return console.warn(`[astro] The "${t}" directive cannot be applied dynamically at runtime. It will not be rendered as an attribute.
Make sure to use the static attribute syntax (\`${t}={value}\`) instead of the dynamic spread syntax (\`{...{ "${t}": value }}\`).`),"";if(t==="class:list"){let i=Q(Ht(e),a);return i===""?"":y(` ${t.slice(0,-5)}="${i}"`)}return t==="style"&&!(e instanceof V)&&typeof e=="object"?y(` ${t}="${Q(Sa(e),a)}"`):t==="className"?y(` class="${Q(e,a)}"`):e===!0&&(t.startsWith("data-")||ga.test(t))?y(` ${t}`):y(` ${t}="${Q(e,a)}"`)}function Ue(e,t=!0){let a="";for(let[i,o]of Object.entries(e))a+=Bt(o,i,t);return y(a)}function Z(e,{props:t,children:a=""},i=!0){let{lang:o,"data-astro-id":r,"define:vars":n,...s}=t;return n&&(e==="style"&&(delete s["is:global"],delete s["is:scoped"]),e==="script"&&(delete s.hoist,a=ka(n)+`
`+a)),(a==null||a=="")&&tt.test(e)?`<${e}${Ue(s,i)} />`:`<${e}${Ue(s,i)}>${a}</${e}>`}var Re=(e,t,a)=>{let i=JSON.stringify(e.props),o=e.children;return t===a.findIndex(r=>JSON.stringify(r.props)===i&&r.children==o)};function vt(e){e._metadata.hasRenderedHead=!0;let t=Array.from(e.styles).filter(Re).map(r=>r.props.rel==="stylesheet"?Z("link",r):Z("style",r));e.styles.clear();let a=Array.from(e.scripts).filter(Re).map((r,n)=>Z("script",r,!1)),o=Array.from(e.links).filter(Re).map(r=>Z("link",r,!1)).join(`
`)+t.join(`
`)+a.join(`
`);if(e.extraHead.length>0)for(let r of e.extraHead)o+=r;return y(o)}function*Vt(e){yield{type:"head",result:e}}function*Aa(e){e._metadata.hasRenderedHead||(yield{type:"maybe-head",result:e,scope:e.scope})}var Ea=Symbol.for("astro.headAndContent");function ke(e){return typeof e=="object"&&!!e[Ea]}var yt,Jt=Symbol.for("astro.renderTemplateResult"),Le=class{constructor(t,a){this[yt]=!0,this.htmlParts=t,this.error=void 0,this.expressions=a.map(i=>Ze(i)?Promise.resolve(i).catch(o=>{if(!this.error)throw this.error=o,o}):i)}async*[(yt=Jt,Symbol.asyncIterator)](){let{htmlParts:t,expressions:a}=this;for(let i=0;i<t.length;i++){let o=t[i],r=a[i];yield y(o),yield*W(r)}}};function Gt(e){return typeof e=="object"&&!!e[Jt]}async function*Ae(e){for await(let t of e)if(t||t===0)for await(let a of W(t))switch(a.type){case"directive":{yield a;break}default:{yield y(a);break}}}function nt(e,...t){return new Le(e,t)}function Wt(e){return e==null?!1:e.isAstroComponentFactory===!0}async function ja(e,t,a,i){let o=await t(e,a,i);if(o instanceof Response)throw o;let r=new X,n=ke(o)?o.content:o;for await(let s of Ae(n))r.append(s,e);return r.toString()}function $a(e,t){let a=t.propagation||"none";return t.moduleId&&e.componentMetadata.has(t.moduleId)&&a==="none"&&(a=e.componentMetadata.get(t.moduleId).propagation),a==="in-tree"||a==="self"}var N={Value:0,JSON:1,RegExp:2,Date:3,Map:4,Set:5,BigInt:6,URL:7,Uint8Array:8,Uint16Array:9,Uint32Array:10};function Pe(e,t={},a=new WeakSet){if(a.has(e))throw new Error(`Cyclic reference detected while serializing props for <${t.displayName} client:${t.hydrate}>!
Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);a.add(e);let i=e.map(o=>Xt(o,t,a));return a.delete(e),i}function Kt(e,t={},a=new WeakSet){if(a.has(e))throw new Error(`Cyclic reference detected while serializing props for <${t.displayName} client:${t.hydrate}>!
Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);a.add(e);let i=Object.fromEntries(Object.entries(e).map(([o,r])=>[o,Xt(r,t,a)]));return a.delete(e),i}function Xt(e,t={},a=new WeakSet){switch(Object.prototype.toString.call(e)){case"[object Date]":return[N.Date,e.toISOString()];case"[object RegExp]":return[N.RegExp,e.source];case"[object Map]":return[N.Map,JSON.stringify(Pe(Array.from(e),t,a))];case"[object Set]":return[N.Set,JSON.stringify(Pe(Array.from(e),t,a))];case"[object BigInt]":return[N.BigInt,e.toString()];case"[object URL]":return[N.URL,e.toString()];case"[object Array]":return[N.JSON,JSON.stringify(Pe(e,t,a))];case"[object Uint8Array]":return[N.Uint8Array,JSON.stringify(Array.from(e))];case"[object Uint16Array]":return[N.Uint16Array,JSON.stringify(Array.from(e))];case"[object Uint32Array]":return[N.Uint32Array,JSON.stringify(Array.from(e))];default:return e!==null&&typeof e=="object"?[N.Value,Kt(e,t,a)]:[N.Value,e]}}function Yt(e,t){return JSON.stringify(Kt(e,t))}var Qt=["load","idle","media","visible","only"],Ca=new Set(Qt),Zt=new Set(Qt.map(e=>`client:${e}`));function Fa(e,t){let a={isPage:!1,hydration:null,props:{}};for(let[i,o]of Object.entries(t))if(i.startsWith("server:")&&i==="server:root"&&(a.isPage=!0),i.startsWith("client:"))switch(a.hydration||(a.hydration={directive:"",value:"",componentUrl:"",componentExport:{value:""}}),i){case"client:component-path":{a.hydration.componentUrl=o;break}case"client:component-export":{a.hydration.componentExport.value=o;break}case"client:component-hydration":break;case"client:display-name":break;default:{if(a.hydration.directive=i.split(":")[1],a.hydration.value=o,!Ca.has(a.hydration.directive))throw new Error(`Error: invalid hydration directive "${i}". Supported hydration methods: ${Array.from(Zt).join(", ")}`);if(a.hydration.directive==="media"&&typeof a.hydration.value!="string")throw new v(f.MissingMediaQueryDirective);break}}else i==="class:list"?o&&(a.props[i.slice(0,-5)]=Ht(o)):a.props[i]=o;for(let i of Object.getOwnPropertySymbols(t))a.props[i]=t[i];return a}async function Ra(e,t){let{renderer:a,result:i,astroId:o,props:r,attrs:n}=e,{hydrate:s,componentUrl:p,componentExport:d}=t;if(!d.value)throw new Error(`Unable to resolve a valid export for "${t.displayName}"! Please open an issue at https://astro.build/issues!`);let l={children:"",props:{uid:o}};if(n)for(let[m,b]of Object.entries(n))l.props[m]=te(b);l.props["component-url"]=await i.resolve(decodeURI(p)),a.clientEntrypoint&&(l.props["component-export"]=d.value,l.props["renderer-url"]=await i.resolve(decodeURI(a.clientEntrypoint)),l.props.props=te(Yt(r,t))),l.props.ssr="",l.props.client=s;let c=await i.resolve("astro:scripts/before-hydration.js");return c.length&&(l.props["before-hydration-url"]=c),l.props.opts=te(JSON.stringify({name:t.displayName,value:t.hydrateArgs||""})),l}var en,tn=Symbol.for("astro.componentInstance"),He=class{constructor(t,a,i,o){this[en]=!0,this.result=t,this.props=a,this.factory=o,this.slotValues={};for(let r in i){let n=i[r](t);this.slotValues[r]=()=>n}}async init(t){return this.returnValue=this.factory(t,this.props,this.slotValues),this.returnValue}async*render(){this.returnValue===void 0&&await this.init(this.result);let t=this.returnValue;Ze(t)&&(t=await t),ke(t)?yield*t.content:yield*W(t)}};en=tn;function Pa(e,t){if(e!=null)for(let a of Object.keys(e))Zt.has(a)&&console.warn(`You are attempting to render <${t} ${a} />, but ${t} is an Astro component. Astro components do not render in the client and should not have a hydration directive. Please use a framework component for client rendering.`)}function Na(e,t,a,i,o={}){Pa(i,t);let r=new He(e,i,o,a);return $a(e,a)&&!e.propagators.has(a)&&e.propagators.set(a,r),r}function at(e){return typeof e=="object"&&!!e[tn]}async function*W(e){if(e=await e,e instanceof fe)e.instructions&&(yield*e.instructions),yield e;else if(et(e))yield e;else if(Array.isArray(e))for(let t of e)yield y(await W(t));else typeof e=="function"?yield*W(e()):typeof e=="string"?yield y(te(e)):!e&&e!==0||(Gt(e)?yield*Ae(e):at(e)?yield*e.render():ArrayBuffer.isView(e)?yield e:typeof e=="object"&&(Symbol.asyncIterator in e||Symbol.iterator in e)?yield*e:yield e)}var nn=Symbol.for("astro:slot-string"),fe=class extends V{constructor(t,a){super(t),this.instructions=a,this[nn]=!0}};function Ta(e){return!!e[nn]}async function*an(e,t,a){t&&(yield*W(typeof t=="function"?t(e):t)),a&&!t&&(yield*an(e,a))}async function K(e,t,a){let i="",o=null,r=an(e,t,a);for await(let n of r)typeof n.type=="string"?(o===null&&(o=[]),o.push(n)):i+=n;return y(new fe(i,o))}async function on(e,t={}){let a=null,i={};return t&&await Promise.all(Object.entries(t).map(([o,r])=>K(e,r).then(n=>{n.instructions&&(a===null&&(a=[]),a.push(...n.instructions)),i[o]=n}))),{slotInstructions:a,children:i}}var za=Symbol.for("astro:fragment"),qe=Symbol.for("astro:renderer"),it=new TextEncoder,Oa=new TextDecoder;function de(e,t){if(typeof t.type=="string"){let a=t;switch(a.type){case"directive":{let{hydration:i}=a,o=i&&fa(e),r=i&&xa(e,i.directive),n=o?"both":r?"directive":null;if(n){let s=ha(n,i.directive);return y(s)}else return""}case"head":return e._metadata.hasRenderedHead?"":vt(e);case"maybe-head":return e._metadata.hasRenderedHead||e._metadata.headInTree?"":vt(e)}}else{if(Ta(t)){let a="",i=t;if(i.instructions)for(let o of i.instructions)a+=de(e,o);return a+=t.toString(),a}return t.toString()}}var X=class{constructor(){this.parts=""}append(t,a){ArrayBuffer.isView(t)?this.parts+=Oa.decode(t):this.parts+=de(a,t)}toString(){return this.parts}toArrayBuffer(){return it.encode(this.parts)}};function Ma(e,t){if(t instanceof Uint8Array)return t;let a=de(e,t);return it.encode(a.toString())}var bt="astro-client-only",_=class{constructor(t){this.vnode=t,this.count=0}increment(){this.count++}haveNoTried(){return this.count===0}isCompleted(){return this.count>2}};_.symbol=Symbol("astro:jsx:skip");var Be,ot=0;async function U(e,t){switch(!0){case t instanceof V:return t.toString().trim()===""?"":t;case typeof t=="string":return y(te(t));case typeof t=="function":return t;case(!t&&t!==0):return"";case Array.isArray(t):return y((await Promise.all(t.map(i=>U(e,i)))).join(""))}let a;return t.props?t.props[_.symbol]?a=t.props[_.symbol]:a=new _(t):a=new _(t),Ve(e,t,a)}async function Ve(e,t,a){if(ne(t)){switch(!0){case!t.type:throw new Error(`Unable to render ${e._metadata.pathname} because it contains an undefined Component!
Did you forget to import the component or is it possible there is a typo?`);case t.type===Symbol.for("astro:fragment"):return U(e,t.props.children);case t.type.isAstroComponentFactory:{let i={},o={};for(let[n,s]of Object.entries(t.props??{}))n==="children"||s&&typeof s=="object"&&s.$$slot?o[n==="children"?"default":n]=()=>U(e,s):i[n]=s;return y(await ja(e,t.type,i,o))}case(!t.type&&t.type!==0):return"";case(typeof t.type=="string"&&t.type!==bt):return y(await Ia(e,t.type,t.props??{}))}if(t.type){let i=function(l){if(Array.isArray(l))return l.map(c=>i(c));if(!ne(l)){n.default.push(l);return}if("slot"in l.props){n[l.props.slot]=[...n[l.props.slot]??[],l],delete l.props.slot;return}n.default.push(l)};if(typeof t.type=="function"&&t.type["astro:renderer"]&&a.increment(),typeof t.type=="function"&&t.props["server:root"]){let l=await t.type(t.props??{});return await U(e,l)}if(typeof t.type=="function")if(a.haveNoTried()||a.isCompleted()){_a();try{let l=await t.type(t.props??{}),c;if(l&&l[Se])return c=await Ve(e,l,a),c;if(!l)return c=await Ve(e,l,a),c}catch(l){if(a.isCompleted())throw l;a.increment()}finally{Ua()}}else a.increment();let{children:o=null,...r}=t.props??{},n={default:[]};i(o);for(let[l,c]of Object.entries(r))c.$$slot&&(n[l]=c,delete r[l]);let s=[],p={};for(let[l,c]of Object.entries(n))s.push(U(e,c).then(m=>{m.toString().trim().length!==0&&(p[l]=()=>m)}));await Promise.all(s),r[_.symbol]=a;let d;if(t.type===bt&&t.props["client:only"]?d=await St(e,t.props["client:display-name"]??"",null,r,p):d=await St(e,typeof t.type=="function"?t.type.name:t.type,t.type,r,p),typeof d!="string"&&Symbol.asyncIterator in d){let l=new X;for await(let c of d)l.append(c,e);return y(l.toString())}else return y(d)}}return y(`${t}`)}async function Ia(e,t,{children:a,...i}){return y(`<${t}${oi(i)}${y((a==null||a=="")&&tt.test(t)?"/>":`>${a==null?"":await U(e,Da(t,a))}</${t}>`)}`)}function Da(e,t){return typeof t=="string"&&(e==="style"||e==="script")?y(t):t}function _a(){if(ot++,!Be){Be=console.error;try{console.error=La}catch{}}}function Ua(){ot--}function La(e,...t){ot>0&&typeof e=="string"&&e.includes("Warning: Invalid hook call.")&&e.includes("https://reactjs.org/link/invalid-hook-call")||Be(e,...t)}var Je="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY",Ne=Je.length;function Ha(e){let t=0;if(e.length===0)return t;for(let a=0;a<e.length;a++){let i=e.charCodeAt(a);t=(t<<5)-t+i,t=t&t}return t}function qa(e){let t,a="",i=Ha(e),o=i<0?"Z":"";for(i=Math.abs(i);i>=Ne;)t=i%Ne,i=Math.floor(i/Ne),a=Je[t]+a;return i>0&&(a=Je[i]+a),o+a}function Ba(e){return typeof HTMLElement<"u"&&HTMLElement.isPrototypeOf(e)}async function Va(e,t,a,i){let o=Ja(t),r="";for(let n in a)r+=` ${n}="${Q(await a[n])}"`;return y(`<${o}${r}>${await K(e,i?.default)}</${o}>`)}function Ja(e){let t=customElements.getName(e);return t||e.name.replace(/^HTML|Element$/g,"").replace(/[A-Z]/g,"-$&").toLowerCase().replace(/^-/,"html-")}var wt=new Map([["solid","solid-js"]]);function Ga(e){switch(e?.split(".").pop()){case"svelte":return["@astrojs/svelte"];case"vue":return["@astrojs/vue"];case"jsx":case"tsx":return["@astrojs/react","@astrojs/preact","@astrojs/solid-js","@astrojs/vue (jsx)"];default:return["@astrojs/react","@astrojs/preact","@astrojs/solid-js","@astrojs/vue","@astrojs/svelte","@astrojs/lit"]}}function Wa(e){return e===za}function Ka(e){return e&&typeof e=="object"&&e["astro:html"]}async function Xa(e,t,a,i,o={}){var r,n;if(!a&&!i["client:only"])throw new Error(`Unable to render ${t} because it is ${a}!
Did you forget to import the component or is it possible there is a typo?`);let{renderers:s}=e._metadata,p={displayName:t},{hydration:d,isPage:l,props:c}=Fa(t,i),m="",b;d&&(p.hydrate=d.directive,p.hydrateArgs=d.value,p.componentExport=d.componentExport,p.componentUrl=d.componentUrl);let x=Ga(p.componentUrl),w=s.filter(S=>S.name!=="astro:jsx"),{children:h,slotInstructions:$}=await on(e,o),g;if(p.hydrate!=="only"){let S=!1;try{S=a&&a[qe]}catch{}if(S){let E=a[qe];g=s.find(({name:F})=>F===E)}if(!g){let E;for(let F of s)try{if(await F.ssr.check.call({result:e},a,c,h)){g=F;break}}catch(Ee){E??(E=Ee)}if(!g&&E)throw E}if(!g&&typeof HTMLElement=="function"&&Ba(a))return Va(e,a,i,o)}else{if(p.hydrateArgs){let S=p.hydrateArgs,E=wt.has(S)?wt.get(S):S;g=s.find(({name:F})=>F===`@astrojs/${E}`||F===E)}if(!g&&w.length===1&&(g=w[0]),!g){let S=(r=p.componentUrl)==null?void 0:r.split(".").pop();g=s.filter(({name:E})=>E===`@astrojs/${S}`||E===S)[0]}}if(g)p.hydrate==="only"?m=await K(e,o?.fallback):{html:m,attrs:b}=await g.ssr.renderToStaticMarkup.call({result:e},a,c,h,p);else{if(p.hydrate==="only")throw new v({...f.NoClientOnlyHint,message:f.NoClientOnlyHint.message(p.displayName),hint:f.NoClientOnlyHint.hint(x.map(S=>S.replace("@astrojs/","")).join("|"))});if(typeof a!="string"){let S=w.filter(F=>x.includes(F.name)),E=w.length>1;if(S.length===0)throw new v({...f.NoMatchingRenderer,message:f.NoMatchingRenderer.message(p.displayName,(n=p?.componentUrl)==null?void 0:n.split(".").pop(),E,w.length),hint:f.NoMatchingRenderer.hint(gt(x.map(F=>"`"+F+"`")))});if(S.length===1)g=S[0],{html:m,attrs:b}=await g.ssr.renderToStaticMarkup.call({result:e},a,c,h,p);else throw new Error(`Unable to render ${p.displayName}!
This component likely uses ${gt(x)},
but Astro encountered an error during server-side rendering.
Please ensure that ${p.displayName}:
1. Does not unconditionally access browser-specific globals like \`window\` or \`document\`.
If this is unavoidable, use the \`client:only\` hydration directive.
2. Does not conditionally return \`null\` or \`undefined\` when rendered on the server.
If you're still stuck, please open an issue on GitHub or join us at https://astro.build/chat.`)}}if(g&&!g.clientEntrypoint&&g.name!=="@astrojs/lit"&&p.hydrate)throw new v({...f.NoClientEntrypoint,message:f.NoClientEntrypoint.message(t,p.hydrate,g.name)});if(!m&&typeof a=="string"){let S=Ya(a),E=Object.values(h).join(""),F=Ae(await nt`<${S}${Ue(c)}${y(E===""&&tt.test(S)?"/>":`>${E}</${S}>`)}`);m="";for await(let Ee of F)m+=Ee}if(!d)return async function*(){$&&(yield*$),l||g?.name==="astro:jsx"?yield m:m&&m.length>0?yield y(m.replace(/\<\/?astro-slot\b[^>]*>/g,"")):yield""}();let A=qa(`<!--${p.componentExport.value}:${p.componentUrl}-->
${m}
${Yt(c,p)}`),C=await Ra({renderer:g,result:e,astroId:A,props:c,attrs:b},p),O=[];if(m){if(Object.keys(h).length>0)for(let S of Object.keys(h))m.includes(S==="default"?"<astro-slot>":`<astro-slot name="${S}">`)||O.push(S)}else O=Object.keys(h);let P=O.length>0?O.map(S=>`<template data-astro-template${S!=="default"?`="${S}"`:""}>${h[S]}</template>`).join(""):"";C.children=`${m??""}${P}`,C.children&&(C.props["await-children"]="");async function*H(){$&&(yield*$),yield{type:"directive",hydration:d,result:e},yield y(Z("astro-island",C,!1))}return H()}function Ya(e){let t=/[&<>'"\s]+/g;return t.test(e)?e.trim().split(t)[0].trim():e}async function Qa(e,t={}){let a=await K(e,t?.default);return a==null?a:y(a)}async function Za(e,t,a,i={}){let{slotInstructions:o,children:r}=await on(e,i),n=t.render({slots:r}),s=o?o.map(p=>de(e,p)).join(""):"";return y(s+n)}function rt(e,t,a,i,o={}){return Ze(a)?Promise.resolve(a).then(r=>rt(e,t,r,i,o)):Wa(a)?Qa(e,o):Ka(a)?Za(e,a,i,o):Wt(a)?Na(e,t,a,i,o):Xa(e,t,a,i,o)}function St(e,t,a,i,o={}){let r=rt(e,t,a,i,o);return at(r)?r.render():r}var Ge=typeof process=="object"&&Object.prototype.toString.call(process)==="[object process]",xe;function ei(){var e,t,a;return xe=(a=class extends Response{constructor(o,r){let n=o instanceof ReadableStream;super(n?null:o,r);k(this,e,void 0);k(this,t,void 0);j(this,e,n),j(this,t,o)}get body(){return u(this,t)}async text(){if(u(this,e)&&Ge){let o=new TextDecoder,r=u(this,t),n="";for await(let s of mt(r))n+=o.decode(s);return n}return super.text()}async arrayBuffer(){if(u(this,e)&&Ge){let o=u(this,t),r=[],n=0;for await(let d of mt(o))r.push(d),n+=d.length;let s=new Uint8Array(n),p=0;for(let d of r)s.set(d,p),p+=d.length;return s}return super.arrayBuffer()}},e=new WeakMap,t=new WeakMap,a),xe}var ti=Ge?(e,t)=>typeof e=="string"||ArrayBuffer.isView(e)?new Response(e,t):typeof xe>"u"?new(ei())(e,t):new xe(e,t):(e,t)=>new Response(e,t),kt=Symbol.for("astro.needsHeadRendering");function ni(e){return kt in e&&!!e[kt]}async function At(e,t,a){let i=new X,o=0;for await(let r of t)et(r)&&o===0&&(o++,/<!doctype html/i.test(String(r))||(i.append(`<!DOCTYPE html>
`,e),a&&await a(i))),i.append(r,e);return i.toArrayBuffer()}async function ai(e){let t=e.propagators.values();for(;;){let{value:a,done:i}=t.next();if(i)break;let o=await a.init(e);ke(o)&&e.extraHead.push(o.head)}}async function ii(e,t,a,i,o,r){var n,s;if(!Wt(t)){e._metadata.headInTree=((n=e.componentMetadata.get(t.moduleId))==null?void 0:n.containsHead)??!1;let l={...a??{},"server:root":!0},c,m="";try{if(ni(t)){let w=new X;for await(let h of Aa(e))w.append(h,e);m=w.toString()}let x=await rt(e,t.name,t,l,null);at(x)?c=x.render():c=x}catch(x){throw v.is(x)&&!x.loc&&x.setLocation({file:r?.component}),x}let b=await At(e,c,async x=>{x.append(m,e)});return new Response(b,{headers:new Headers([["Content-Type","text/html; charset=utf-8"],["Content-Length",b.byteLength.toString()]])})}e._metadata.headInTree=((s=e.componentMetadata.get(t.moduleId))==null?void 0:s.containsHead)??!1;let p=await t(e,a,i),d=ke(p);if(Gt(p)||d){await ai(e);let l=d?p.content:p,c=Ae(l),m=e.response,b=new Headers(m.headers),x;return o?x=new ReadableStream({start(h){async function $(){let g=0;try{for await(let A of c){et(A)&&g===0&&(/<!doctype html/i.test(String(A))||h.enqueue(it.encode(`<!DOCTYPE html>
`)));let C=Ma(e,A);h.enqueue(C),g++}h.close()}catch(A){v.is(A)&&!A.loc&&A.setLocation({file:r?.component}),h.error(A)}}$()}}):(x=await At(e,c),b.set("Content-Length",x.byteLength.toString())),ti(x,{...m,headers:b})}if(!(p instanceof Response))throw new v({...f.OnlyResponseCanBeReturned,message:f.OnlyResponseCanBeReturned.message(r?.route,typeof p),location:{file:r?.component}});return p}function oi(e,t,{class:a}={}){let i="";a&&(typeof e.class<"u"?e.class+=` ${a}`:typeof e["class:list"]<"u"?e["class:list"]=[e["class:list"],a]:e.class=a);for(let[o,r]of Object.entries(e))i+=Bt(r,o,!0);return y(i)}var We,rn,sn,pn,ln=!0;typeof process<"u"&&({FORCE_COLOR:We,NODE_DISABLE_COLORS:rn,NO_COLOR:sn,TERM:pn}=process.env||{},ln=process.stdout&&process.stdout.isTTY);var ri={enabled:!rn&&sn==null&&pn!=="dumb"&&(We!=null&&We!=="0"||ln)};function Y(e,t){let a=new RegExp(`\\x1b\\[${t}m`,"g"),i=`\x1B[${e}m`,o=`\x1B[${t}m`;return function(r){return!ri.enabled||r==null?r:i+(~(""+r).indexOf(o)?r.replace(a,o+i):r)+o}}var si=Y(0,0),Te=Y(1,22),pi=Y(2,22),li=Y(31,39),Et=Y(33,39),ci=Y(36,39),jt={},di={get exports(){return jt},set exports(e){jt=e}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(i){var o=i.charCodeAt(0),r=i.length==2?i.charCodeAt(1):0,n=o;return 55296<=o&&o<=56319&&56320<=r&&r<=57343&&(o&=1023,r&=1023,n=o<<10|r,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},t.characterLength=function(i){var o=this.eastAsianWidth(i);return o=="F"||o=="W"||o=="A"?2:1};function a(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(i){for(var o=a(i),r=0,n=0;n<o.length;n++)r=r+this.characterLength(o[n]);return r},t.slice=function(i,o,r){textLen=t.length(i),o=o||0,r=r||1,o<0&&(o=textLen+o),r<0&&(r=textLen+r);for(var n="",s=0,p=a(i),d=0;d<p.length;d++){var l=p[d],c=t.length(l);if(s>=o-(c==2?1:0))if(s+c<=r)n+=l;else break;s+=c}return n}})(di);var mi=new Intl.DateTimeFormat([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),he={debug:20,info:30,warn:40,error:50,silent:90};function cn(e,t,a,i){let o=e.level,r=e.dest,n={type:a,level:t,message:i};he[o]>he[t]||r.write(n)}function L(e,t,a){return cn(e,"warn",t,a)}function ui(e,t,a){return cn(e,"error",t,a)}function fi(...e){"_astroGlobalDebug"in globalThis&&globalThis._astroGlobalDebug(...e)}if(typeof process<"u"){let e=process;"argv"in e&&Array.isArray(e.argv)&&(e.argv.includes("--verbose")||e.argv.includes("--silent"))}async function dn(e,t,a){new Promise(s=>{});let i=!1,o,n=e(t,async()=>(i=!0,o=a(),o));return await Promise.resolve(n).then(async s=>{if(i)if(typeof s<"u"){if(!(s instanceof Response))throw new v(f.MiddlewareNotAResponse);return s}else{if(o)return o;throw new v(f.MiddlewareNotAResponse)}else{if(typeof s>"u")throw new v(f.MiddlewareNoDataOrNextCalled);if(s instanceof Response)return s;throw new v(f.MiddlewareNotAResponse)}})}var xi=["string","number","undefined"];function hi([e,t],a){if(!xi.includes(typeof t))throw new v({...f.GetStaticPathsInvalidRouteParam,message:f.GetStaticPathsInvalidRouteParam.message(e,t,typeof t),location:{file:a}})}function gi(e,{ssr:t,logging:a,route:i}){if(t&&e.getStaticPaths&&!e.prerender&&L(a,"getStaticPaths",'getStaticPaths() is ignored when "output: server" is set.'),(!t||e.prerender)&&!e.getStaticPaths)throw new v({...f.GetStaticPathsRequired,location:{file:i.component}})}function vi(e,t,a){if(!Array.isArray(e))throw new v({...f.InvalidGetStaticPathsReturn,message:f.InvalidGetStaticPathsReturn.message(typeof e),location:{file:a.component}});e.forEach(i=>{if(i.params===void 0||i.params===null||i.params&&Object.keys(i.params).length===0)throw new v({...f.GetStaticPathsExpectedParams,location:{file:a.component}});if(typeof i.params!="object")throw new v({...f.InvalidGetStaticPathParam,message:f.InvalidGetStaticPathParam.message(typeof i.params),location:{file:a.component}});for(let[o,r]of Object.entries(i.params))typeof r>"u"||typeof r=="string"||typeof r=="number"||L(t,"getStaticPaths",`invalid path param: ${o}. A string, number or undefined value was expected, but got \`${JSON.stringify(r)}\`.`),typeof r=="string"&&r===""&&L(t,"getStaticPaths",`invalid path param: ${o}. \`undefined\` expected for an optional param, but got empty string.`)})}function yi(e){return a=>{let i={};return e.forEach((o,r)=>{o.startsWith("...")?i[o.slice(3)]=a[r+1]?decodeURIComponent(a[r+1]):void 0:i[o]=decodeURIComponent(a[r+1])}),i}}function mn(e,t){let a=Object.entries(e).reduce((i,o)=>{hi(o,t);let[r,n]=o;return i[r]=n?.toString(),i},{});return JSON.stringify(a,Object.keys(e).sort())}var $t=Symbol.for("astro.clientAddress"),bi=Symbol.for("astro.responseSent");function wi(e){return function(){switch(e){case"Astro.redirect":throw new v(f.StaticRedirectNotAvailable)}}}function Si(e){var t;if(e&&((t=e.expressions)==null?void 0:t.length)===1)return e.expressions[0]}var re,D,se,Ke=class{constructor(t,a,i){k(this,re,void 0);k(this,D,void 0);k(this,se,void 0);if(j(this,re,t),j(this,D,a),j(this,se,i),a)for(let o of Object.keys(a)){if(this[o]!==void 0)throw new v({...f.ReservedSlotName,message:f.ReservedSlotName.message(o)});Object.defineProperty(this,o,{get(){return!0},enumerable:!0})}}has(t){return u(this,D)?!!u(this,D)[t]:!1}async render(t,a=[]){if(!u(this,D)||!this.has(t))return;let i=u(this,re);if(!Array.isArray(a))L(u(this,se),"Astro.slots.render",`Expected second parameter to be an array, received a ${typeof a}. If you're trying to pass an array as a single argument and getting unexpected results, make sure you're passing your array as a item of an array. Ex: Astro.slots.render('default', [["Hello", "World"]])`);else if(a.length>0){let n=u(this,D)[t],s=typeof n=="function"?await n(i):await n,p=Si(s);if(p)return await K(i,()=>p(...a)).then(l=>l!=null?String(l):l);if(typeof s=="function")return await U(i,s(...a)).then(d=>d!=null?String(d):d)}let o=await K(i,u(this,D)[t]);return de(i,o)}};re=new WeakMap,D=new WeakMap,se=new WeakMap;var ze=null;function ki(e){let{markdown:t,params:a,pathname:i,renderers:o,request:r,resolve:n,locals:s}=e,p=new URL(r.url),d=new Headers;d.set("Content-Type","text/html");let l={status:e.status,statusText:"OK",headers:d};Object.defineProperty(l,"headers",{value:l.headers,enumerable:!0,writable:!1});let c,m=e.componentMetadata??new Map,b={styles:e.styles??new Set,scripts:e.scripts??new Set,links:e.links??new Set,componentMetadata:m,propagators:new Map,extraHead:[],scope:0,cookies:c,createAstro(x,w,h){let $=new Ke(b,h,e.logging),g={__proto__:x,get clientAddress(){if(!($t in r))throw e.adapterName?new v({...f.ClientAddressNotAvailable,message:f.ClientAddressNotAvailable.message(e.adapterName)}):new v(f.StaticClientAddressNotAvailable);return Reflect.get(r,$t)},get cookies(){return c||(c=new ue(r),b.cookies=c,c)},params:a,props:w,locals:s,request:r,url:p,redirect:e.ssr?(A,C)=>{if(r[bi])throw new v({...f.ResponseSentError});return new Response(null,{status:C||302,headers:{Location:A}})}:wi("Astro.redirect"),response:l,slots:$};return Object.defineProperty(g,"__renderMarkdown",{enumerable:!1,writable:!1,value:async function(A,C){if(typeof Deno<"u")throw new Error("Markdown is not supported in Deno SSR");if(!ze){let P="@astrojs/";P+="markdown-remark",ze=(await import(P)).renderMarkdown}let{code:O}=await ze(A,{...t,...C??{}});return O}}),g},resolve:n,_metadata:{renderers:o,pathname:i,hasHydrationScript:!1,hasRenderedHead:!1,hasDirectives:new Set,headInTree:!1},response:l};return b}function Ai(e){return function(a,i={}){let{pageSize:o,params:r,props:n}=i,s=o||10,p="page",d=r||{},l=n||{},c;if(e.params.includes(`...${p}`))c=!1;else if(e.params.includes(`${p}`))c=!0;else throw new v({...f.PageNumberParamNotFound,message:f.PageNumberParamNotFound.message(p)});let m=Math.max(1,Math.ceil(a.length/s));return[...Array(m).keys()].map(x=>{let w=x+1,h=s===1/0?0:(w-1)*s,$=Math.min(h+s,a.length),g={...d,[p]:c||w>1?String(w):void 0},A=Oe(e.generate({...g})),C=w===m?void 0:Oe(e.generate({...g,page:String(w+1)})),O=w===1?void 0:Oe(e.generate({...g,page:!c&&w-1===1?void 0:String(w-1)}));return{params:g,props:{...l,page:{data:a.slice(h,$),start:h,end:$-1,size:s,total:a.length,currentPage:w,lastPage:m,url:{current:A,next:C,prev:O}}}}})}}function Oe(e){return e===""?"/":e}async function Ei({isValidate:e,logging:t,mod:a,route:i,ssr:o}){if(gi(a,{ssr:o,logging:t,route:i}),o&&!a.prerender)return{staticPaths:Object.assign([],{keyed:new Map})};if(!a.getStaticPaths)throw new Error("Unexpected Error.");let r=[];r=await a.getStaticPaths({paginate:Ai(i),rss(){throw new v(f.GetStaticPathsRemovedRSSHelper)}}),Array.isArray(r)&&(r=r.flat()),e&&vi(r,t,i);let n=r;n.keyed=new Map;for(let s of n){let p=mn(s.params,i.component);n.keyed.set(p,s)}return{staticPaths:n}}var Xe=class{constructor(t,a="production"){this.cache={},this.logging=t,this.mode=a}clearAll(){this.cache={}}set(t,a){this.mode==="production"&&this.cache[t.component]&&L(this.logging,"routeCache",`Internal Warning: route cache overwritten. (${t.component})`),this.cache[t.component]=a}get(t){return this.cache[t.component]}};function ji(e,t,a){let i=mn(t,a.component),o=e.keyed.get(i);if(o)return o;fi("findPathItemByKey",`Unexpected cache miss looking for ${i}`)}async function $i(e){var t,a;let i=await Ci(e);if(i===0)throw new v({...f.NoMatchingStaticPathFound,message:f.NoMatchingStaticPathFound.message(e.pathname),hint:(t=e.route)!=null&&t.component?f.NoMatchingStaticPathFound.hint([(a=e.route)==null?void 0:a.component]):""});return i}async function Ci(e){let{logging:t,mod:a,route:i,routeCache:o,pathname:r,ssr:n}=e,s={},p;if(i&&!i.pathname){if(i.params.length){let c=i.pattern.exec(decodeURIComponent(r));if(c&&(s=yi(i.params)(c),i.type==="endpoint"&&a.getStaticPaths)){let m=i.segments[i.segments.length-1],b=Object.values(s),x=b[b.length-1];if(m.length===1&&m[0].dynamic&&x===void 0)throw new v({...f.PrerenderDynamicEndpointPathCollide,message:f.PrerenderDynamicEndpointPathCollide.message(i.route),hint:f.PrerenderDynamicEndpointPathCollide.hint(i.component),location:{file:i.component}})}}let d=o.get(i);d||(d=await Ei({mod:a,route:i,isValidate:!0,logging:t,ssr:n}),o.set(i,d));let l=ji(d.staticPaths,s,i);if(!l&&(!n||a.prerender))return 0;p=l?.props?{...l.props}:{}}else p={};return[s,p]}async function Ct({mod:e,renderContext:t,env:a,apiContext:i}){let o=e.default;if(!o)throw new Error(`Expected an exported Astro component but received typeof ${typeof o}`);let r={};if(i){if(a.mode==="development"&&!st(i.locals))throw new v({...f.LocalsNotSerializable,message:f.LocalsNotSerializable.message(t.pathname)});r=i.locals}let n=ki({adapterName:a.adapterName,links:t.links,styles:t.styles,logging:a.logging,markdown:a.markdown,mode:a.mode,origin:t.origin,params:t.params,props:t.props,pathname:t.pathname,componentMetadata:t.componentMetadata,resolve:a.resolve,renderers:a.renderers,request:t.request,site:a.site,scripts:t.scripts,ssr:a.ssr,status:t.status??200,locals:r});typeof e.components=="object"&&Object.assign(t.props,{components:e.components});let s=await ii(n,o,t.props,null,a.streaming,t.route);return n.cookies&&Qe(s,n.cookies),s}function st(e){let t=typeof e,a=!0;if(t==="object"&&Fi(e)){for(let[,o]of Object.entries(e))if(!st(o)){a=!1;break}}else a=!1;return e===null||t==="string"||t==="number"||t==="boolean"||Array.isArray(e)||a}function Fi(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let a=t;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return t===a}var Ft=Symbol.for("astro.clientAddress"),Rt=Symbol.for("astro.locals");function un({request:e,params:t,site:a,props:i,adapterName:o}){let r={cookies:new ue(e),request:e,params:t,site:a?new URL(a):void 0,generator:`Astro v${Ut}`,props:i,redirect(n,s){return new Response(null,{status:s||302,headers:{Location:n}})},url:new URL(e.url),get clientAddress(){if(!(Ft in e))throw o?new v({...f.ClientAddressNotAvailable,message:f.ClientAddressNotAvailable.message(o)}):new v(f.StaticClientAddressNotAvailable);return Reflect.get(e,Ft)}};return Object.defineProperty(r,"locals",{get(){return Reflect.get(e,Rt)},set(n){if(typeof n!="object")throw new v(f.LocalsNotAnObject);Reflect.set(e,Rt,n)}}),r}async function Ri(e,t,a,i,o){let r=un({request:a.request,params:a.params,props:a.props,site:t.site,adapterName:t.adapterName}),n=await Zn(e,r,t.ssr);if(o&&o.onRequest)if(n.body===null){let s=o.onRequest;n=await dn(s,r,async()=>{if(t.mode==="development"&&!st(r.locals))throw new v({...f.LocalsNotSerializable,message:f.LocalsNotSerializable.message(a.pathname)});return n})}else L(t.logging,"middleware","Middleware doesn't work for endpoints that return a simple body. The middleware will be disabled for this page.");return n instanceof Response?(Qe(n,r.cookies),{type:"response",response:n}):(t.ssr&&!e.prerender&&(n.hasOwnProperty("headers")&&L(i,"ssr","Setting headers is not supported when returning an object. Please return an instance of Response. See https://docs.astro.build/en/core-concepts/endpoints/#server-endpoints-api-routes for more information."),n.encoding&&L(i,"ssr","`encoding` is ignored in SSR. To return a charset other than UTF-8, please return an instance of Response. See https://docs.astro.build/en/core-concepts/endpoints/#server-endpoints-api-routes for more information.")),{type:"simple",body:n.body,encoding:n.encoding,cookies:r.cookies})}var Pt,Me=1,Pi={write(e){let t=console.error;he[e.level]<he.error&&(t=console.log);function a(){let r="",n=e.type;return n&&(r+=pi(mi.format(new Date)+" "),e.level==="info"?n=Te(ci(`[${n}]`)):e.level==="warn"?n=Te(Et(`[${n}]`)):e.level==="error"&&(n=Te(li(`[${n}]`))),r+=`${n} `),si(r)}let i=e.message;i===Pt?(Me++,i=`${i} ${Et(`(x${Me})`)}`):(Pt=i,Me=1);let o=a()+i;return t(o),!0}};function Ni(e){return e[0]==="/"?e:"/"+e}function fn(e){return e.endsWith("/")?e.slice(0,e.length-1):e}function Ti(e){return e.startsWith("/")?e.substring(1):e}function zi(e){return e.replace(/^\/|\/$/g,"")}function Oi(e){return typeof e=="string"||e instanceof String}function Nt(...e){return e.filter(Oi).map((t,a)=>a===0?fn(t):a===e.length-1?Ti(t):zi(t)).join("/")}async function Tt(e){let t=e.request,a=new URL(t.url),i=e.origin??a.origin,o=e.pathname??a.pathname,[r,n]=await $i({mod:e.mod,route:e.route,routeCache:e.env.routeCache,pathname:o,logging:e.env.logging,ssr:e.env.ssr});return{...e,origin:i,pathname:o,url:a,params:r,props:n}}function zt(e){let t=/^\\\\\?\\/.test(e),a=/[^\u0000-\u0080]+/.test(e);return t||a?e:e.replace(/\\/g,"/")}function pt(e,t,a){return a?Nt(a,zt(e)):t?Ni(Nt(t,zt(e))):e}function Mi(e,t,a){return e.type==="inline"?{props:{type:"text/css"},children:e.content}:{props:{rel:"stylesheet",href:pt(e.src,t,a)},children:""}}function Ii(e,t,a){return new Set(e.map(i=>Mi(i,t,a)))}function Di(e,t,a){return e.type==="external"?_i(e.value,t,a):{props:{type:"module"},children:e.value}}function _i(e,t,a){return{props:{type:"module",src:pt(e,t,a)},children:""}}function Ie(e,t){return t.routes.find(a=>a.pattern.test(decodeURI(e)))}function Ui(e){for(var t=[],a=0;a<e.length;){var i=e[a];if(i==="*"||i==="+"||i==="?"){t.push({type:"MODIFIER",index:a,value:e[a++]});continue}if(i==="\\"){t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});continue}if(i==="{"){t.push({type:"OPEN",index:a,value:e[a++]});continue}if(i==="}"){t.push({type:"CLOSE",index:a,value:e[a++]});continue}if(i===":"){for(var o="",r=a+1;r<e.length;){var n=e.charCodeAt(r);if(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===95){o+=e[r++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:o}),a=r;continue}if(i==="("){var s=1,p="",r=a+1;if(e[r]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(r));for(;r<e.length;){if(e[r]==="\\"){p+=e[r++]+e[r++];continue}if(e[r]===")"){if(s--,s===0){r++;break}}else if(e[r]==="("&&(s++,e[r+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(r));p+=e[r++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(a));if(!p)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:p}),a=r;continue}t.push({type:"CHAR",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}function Li(e,t){t===void 0&&(t={});for(var a=Ui(e),i=t.prefixes,o=i===void 0?"./":i,r="[^".concat(Bi(t.delimiter||"/#?"),"]+?"),n=[],s=0,p=0,d="",l=function(P){if(p<a.length&&a[p].type===P)return a[p++].value},c=function(P){var H=l(P);if(H!==void 0)return H;var S=a[p],E=S.type,F=S.index;throw new TypeError("Unexpected ".concat(E," at ").concat(F,", expected ").concat(P))},m=function(){for(var P="",H;H=l("CHAR")||l("ESCAPED_CHAR");)P+=H;return P};p<a.length;){var b=l("CHAR"),x=l("NAME"),w=l("PATTERN");if(x||w){var h=b||"";o.indexOf(h)===-1&&(d+=h,h=""),d&&(n.push(d),d=""),n.push({name:x||s++,prefix:h,suffix:"",pattern:w||r,modifier:l("MODIFIER")||""});continue}var $=b||l("ESCAPED_CHAR");if($){d+=$;continue}d&&(n.push(d),d="");var g=l("OPEN");if(g){var h=m(),A=l("NAME")||"",C=l("PATTERN")||"",O=m();c("CLOSE"),n.push({name:A||(C?s++:""),pattern:A&&!C?r:C,prefix:h,suffix:O,modifier:l("MODIFIER")||""});continue}c("END")}return n}function Hi(e,t){return qi(Li(e,t),t)}function qi(e,t){t===void 0&&(t={});var a=Vi(t),i=t.encode,o=i===void 0?function(p){return p}:i,r=t.validate,n=r===void 0?!0:r,s=e.map(function(p){if(typeof p=="object")return new RegExp("^(?:".concat(p.pattern,")$"),a)});return function(p){for(var d="",l=0;l<e.length;l++){var c=e[l];if(typeof c=="string"){d+=c;continue}var m=p?p[c.name]:void 0,b=c.modifier==="?"||c.modifier==="*",x=c.modifier==="*"||c.modifier==="+";if(Array.isArray(m)){if(!x)throw new TypeError('Expected "'.concat(c.name,'" to not repeat, but got an array'));if(m.length===0){if(b)continue;throw new TypeError('Expected "'.concat(c.name,'" to not be empty'))}for(var w=0;w<m.length;w++){var h=o(m[w],c);if(n&&!s[l].test(h))throw new TypeError('Expected all "'.concat(c.name,'" to match "').concat(c.pattern,'", but got "').concat(h,'"'));d+=c.prefix+h+c.suffix}continue}if(typeof m=="string"||typeof m=="number"){var h=o(String(m),c);if(n&&!s[l].test(h))throw new TypeError('Expected "'.concat(c.name,'" to match "').concat(c.pattern,'", but got "').concat(h,'"'));d+=c.prefix+h+c.suffix;continue}if(!b){var $=x?"an array":"a string";throw new TypeError('Expected "'.concat(c.name,'" to be ').concat($))}}return d}}function Bi(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Vi(e){return e&&e.sensitive?"":"i"}function Ji(e,t){let a=e.map(r=>"/"+r.map(n=>n.spread?`:${n.content.slice(3)}(.*)?`:n.dynamic?`:${n.content}`:n.content.normalize().replace(/\?/g,"%3F").replace(/#/g,"%23").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("")).join(""),i="";return t==="always"&&e.length&&(i="/"),Hi(a+i)}function Ot(e){return{route:e.route,type:e.type,pattern:new RegExp(e.pattern),params:e.params,component:e.component,generate:Ji(e.segments,e._meta.trailingSlash),pathname:e.pathname||void 0,segments:e.segments,prerender:e.prerender}}function xn(e){let t=[];for(let o of e.routes){t.push({...o,routeData:Ot(o.routeData)});let r=o;r.routeData=Ot(o.routeData)}let a=new Set(e.assets),i=new Map(e.componentMetadata);return{...e,assets:a,componentMetadata:i,routes:t}}var Gi=Symbol.for("astro.locals"),Wi=Symbol.for("astro.responseSent"),z,T,q,pe,ye,B,G,le,ce,Ye,be,hn,ge=class{constructor(t,a=!0){k(this,ce);k(this,be);k(this,z,void 0);k(this,T,void 0);k(this,q,void 0);k(this,pe,void 0);k(this,ye,new TextEncoder);k(this,B,{dest:Pi,level:"info"});k(this,G,void 0);k(this,le,void 0);j(this,T,t),j(this,q,{routes:t.routes.map(i=>i.routeData)}),j(this,pe,new Map(t.routes.map(i=>[i.routeData,i]))),j(this,z,{adapterName:t.adapterName,logging:u(this,B),markdown:t.markdown,mode:"production",renderers:t.renderers,async resolve(i){if(!(i in t.entryModules))throw new Error(`Unable to resolve [${i}]`);let o=t.entryModules[i];switch(!0){case o.startsWith("data:"):case o.length===0:return o;default:return pt(o,t.base,t.assetsPrefix)}},routeCache:new Xe(u(this,B)),site:u(this,T).site,ssr:!0,streaming:a}),j(this,G,u(this,T).base||"/"),j(this,le,fn(u(this,G)))}removeBase(t){return t.startsWith(u(this,G))?t.slice(u(this,le).length+1):t}match(t,{matchNotFound:a=!1}={}){let i=new URL(t.url);if(u(this,T).assets.has(i.pathname))return;let o="/"+this.removeBase(i.pathname),r=Ie(o,u(this,q));if(r)return r.prerender?void 0:r;if(a){let n=Ie("/404",u(this,q));return n?.prerender?void 0:n}else return}async render(t,a){let i=200;if(!a&&(a=this.match(t),a||(i=404,a=this.match(t,{matchNotFound:!0})),!a))return new Response(null,{status:404,statusText:"Not found"});Reflect.set(t,Gi,{}),a.route==="/404"&&(i=404);let o=u(this,T).pageMap.get(a.component);if(a.type==="page"){let r=await M(this,ce,Ye).call(this,t,a,o,i);if(r.status===500){let n=Ie("/500",u(this,q));if(n){o=u(this,T).pageMap.get(n.component);try{return await M(this,ce,Ye).call(this,t,n,o,500)}catch{}}}return r}else{if(a.type==="endpoint")return M(this,be,hn).call(this,t,a,o,i);throw new Error(`Unsupported route type [${a.type}].`)}}setCookieHeaders(t){return Wn(t)}};z=new WeakMap,T=new WeakMap,q=new WeakMap,pe=new WeakMap,ye=new WeakMap,B=new WeakMap,G=new WeakMap,le=new WeakMap,ce=new WeakSet,Ye=async function(t,a,i,o=200){var r;let n=new URL(t.url),s="/"+this.removeBase(n.pathname),p=u(this,pe).get(a),d=new Set,l=Ii(p.styles),c=new Set;for(let m of p.scripts)"stage"in m?m.stage==="head-inline"&&c.add({props:{},children:m.children}):c.add(Di(m));try{let m=await Tt({request:t,origin:n.origin,pathname:s,componentMetadata:u(this,T).componentMetadata,scripts:c,styles:l,links:d,route:a,status:o,mod:i,env:u(this,z)}),b=un({request:m.request,params:m.params,props:m.props,site:u(this,z).site,adapterName:u(this,z).adapterName}),x=(r=u(this,T).middleware)==null?void 0:r.onRequest,w;return x?w=await dn(x,b,()=>Ct({mod:i,renderContext:m,env:u(this,z),apiContext:b})):w=await Ct({mod:i,renderContext:m,env:u(this,z),apiContext:b}),Reflect.set(t,Wi,!0),w}catch(m){return ui(u(this,B),"ssr",m.stack||m.message||String(m)),new Response(null,{status:500,statusText:"Internal server error"})}},be=new WeakSet,hn=async function(t,a,i,o=200){let r=new URL(t.url),n="/"+this.removeBase(r.pathname),s=i,p=await Tt({request:t,origin:r.origin,pathname:n,route:a,status:o,env:u(this,z),mod:s}),d=await Ri(s,u(this,z),p,u(this,B),u(this,T).middleware);if(d.type==="response"){if(d.response.headers.get("X-Astro-Response")==="Not-Found"){let l=new Request(new URL("/404",t.url)),c=this.match(l);if(c)return this.render(l,c)}return d.response}else{let l=d.body,c=new Headers,m=Ln.getType(r.pathname);m?c.set("Content-Type",`${m};charset=utf-8`):c.set("Content-Type","text/plain;charset=utf-8");let b=u(this,ye).encode(l);c.set("Content-Length",b.byteLength.toString());let x=new Response(b,{status:200,headers:c});return Qe(x,d.cookies),x}};var gn=e=>e.trim().replace(/[-_]([a-z])/g,(t,a)=>a.toUpperCase());async function Ki(e,t,{default:a=null,...i}={}){if(typeof e!="function")return!1;let o={};for(let[r,n]of Object.entries(i)){let s=gn(r);o[s]=n}try{return(await e({...t,...o,children:a}))[Se]}catch{}return!1}async function Xi(e,t={},{default:a=null,...i}={}){let o={};for(let[s,p]of Object.entries(i)){let d=gn(s);o[d]=p}let{result:r}=this;return{html:await U(r,sa(e,{...t,...o,children:a}))}}var vn={check:Ki,renderToStaticMarkup:Xi};var Yi=Lt(),yn=_t(async(e,t,a)=>{let i=e.createAstro(Yi,t,a);return i.self=yn,nt`<html>
<head>
<title>Testing</title>
${Vt(e)}</head>
<body>
<h1>Testing</h1>
<div id="env">${{}.SECRET_STUFF}</div>
</body>
</html>`},"/home/otterlord/Documents/Repos/astro/packages/integrations/cloudflare/test/fixtures/basics/src/pages/index.astro"),Qi="/home/otterlord/Documents/Repos/astro/packages/integrations/cloudflare/test/fixtures/basics/src/pages/index.astro",Zi="",bn=Object.freeze(Object.defineProperty({__proto__:null,default:yn,file:Qi,url:Zi},Symbol.toStringTag,{value:"Module"}));var ho=ct(Ce(),1),eo=typeof process=="object"&&Object.prototype.toString.call(process)==="[object process]";function to(){return new Proxy({},{get:(e,t)=>{console.warn(`Unable to access \`import.meta\0.env.${t.toString()}\` on initialization as the Cloudflare platform only provides the environment variables per request. Please move the environment variable access inside a function that's only called after a request has been received.`)}})}eo||(process.env=to());function kn(e){let t=new ge(e);return{onRequest:async({request:i,next:o,...r})=>{process.env=r.env;let{pathname:n}=new URL(i.url);if(e.assets.has(n))return o(i);let s=t.match(i,{matchNotFound:!0});if(s){Reflect.set(i,Symbol.for("astro.clientAddress"),i.headers.get("cf-connecting-ip")),Reflect.set(i,Symbol.for("runtime"),{...r,name:"cloudflare",next:o});let p=await t.render(i,s);if(t.setCookieHeaders)for(let d of t.setCookieHeaders(p))p.headers.append("Set-Cookie",d);return p}return new Response(null,{status:404,statusText:"Not found"})}}}var wn=Object.freeze(Object.defineProperty({__proto__:null,createExports:kn},Symbol.toStringTag,{value:"Module"})),no=new Map([["src/pages/index.astro",bn]]),ao=[Object.assign({name:"astro:jsx",serverEntrypoint:"astro/jsx/server.js",jsxImportSource:"astro"},{ssr:vn})],An=Object.assign(xn({adapterName:"@astrojs/cloudflare",routes:[{file:"",links:[],scripts:[],styles:[],routeData:{route:"/",type:"page",pattern:"^\\/$",segments:[],params:[],component:"src/pages/index.astro",pathname:"/",prerender:!1,_meta:{trailingSlash:"ignore"}}}],base:"/",markdown:{drafts:!1,syntaxHighlight:"shiki",shikiConfig:{langs:[],theme:"github-dark",wrap:!1},remarkPlugins:[],rehypePlugins:[],remarkRehype:{},gfm:!0,smartypants:!0},pageMap:null,componentMetadata:[["/home/otterlord/Documents/Repos/astro/packages/integrations/cloudflare/test/fixtures/basics/src/pages/index.astro",{propagation:"none",containsHead:!0}]],renderers:[],entryModules:{"\0@astrojs-ssr-virtual-entry":"_@astrojs-ssr-virtual-entry.mjs","astro:scripts/before-hydration.js":""},assets:["/$server_build/chunks/astro.034d8dae.mjs","/$server_build/chunks/pages/all.89c51540.mjs"]}),{pageMap:no,renderers:ao}),io=void 0,oo=kn(An),go=oo.onRequest,Sn="start";Sn in wn&&wn[Sn](An,io);export{go as onRequest,no as pageMap,ao as renderers};
/**
* shortdash - https://github.com/bibig/node-shorthash
*
* @license
*
* (The MIT License)
*
* Copyright (c) 2013 Bibig <bibig@me.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
/*! Bundled license information:
cookie/index.js:
(*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
*/