1import{_ as e,g as t,i as n,v as r,y as i}from"./CnqsBT0K.js";import{D as a,E as o,S as s,ct as c,xt as l}from"./DzgzMDuw.js";import{t as u}from"./CpVwzX98.js";import{f as d,i as f,l as p,n as m,o as h,r as g,t as _,u as v}from"./aRUXS2J_.js";import"./BW3xJdEx.js";var y=Symbol(`layout-meta`),b=Symbol(`layout`),x=Symbol(`route`),S=i({docsBase:e,reporters:r});function C(e,t){try{return t in e}catch{return!1}}var w=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:N(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=M(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function T(e){if(typeof e==`string`)return new w(e);if(E(e))return e;let t=new w(e.message??e.statusMessage??``,{cause:e.cause||e});if(C(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=N(e.statusCode,t.statusCode):e.status&&(t.statusCode=N(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;M(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function E(e){return e?.constructor?.__h3_error__===!0}function D(e){return g(e.path||``)}function O(e){let t={};for(let n in e.node.req.headers){let r=e.node.req.headers[n];t[n]=Array.isArray(r)?r.filter(Boolean).join(`, `):r}return t}function k(e,t){return O(e)[t.toLowerCase()]}var A=k,j=/[^\u0009\u0020-\u007E]/g;function M(e=``){return e.replace(j,``)}function N(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}function P(e,t,n){e.node.res.setHeader(t,n)}var F=P;globalThis.Headers,globalThis.Response;var I=()=>n()?.$router;function L(e){let t=e.scope,n=c();for(;n;){if(n===t)return!0;n=n.parent}return!1}var R=(()=>{if(o()){let e=s();if(!e||L(e))return a(x,n()._route)}return n()._route});function z(e){return e}var B=()=>{try{if(n()._processingMiddleware)return!0}catch{return!1}return!1},V=(e,t)=>{e||=`/`;let r=typeof e==`string`?e:`path`in e?U(e):I().resolve(e).href;if(t?.open){let{protocol:e}=new URL(r,window.location.href);if(e&&h(e))throw S.NUXT_E2002({toPath:r,protocol:e});let{target:n=`_blank`,windowFeatures:i={}}=t.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(r,n,a.join(`, `)),Promise.resolve()}let i=f(r,{acceptRelative:!0}),a=t?.external||i;if(a){if(!t?.external)throw S.NUXT_E2001({toPath:r});let{protocol:e}=new URL(r,window.location.href);if(e&&h(e))throw S.NUXT_E2002({toPath:r,protocol:e})}let o=B();if(!a&&o){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=v(e);return{path:t,...n&&{query:p(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=I(),c=n();if(a)return c._scope.stop(),t?.replace?location.replace(r):location.href=r,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?W(e):e;return t?.replace?s.replace(l):s.push(l)},H=e=>{if(!e)return!1;throw e=Q(e),e.fatal&&n().runWithContext(()=>q(e)),e};function U(e){return d(e.path||``,e.query||{})+(e.hash||``)}function W(e){let t=v(e);return m(_(t.pathname))+t.search+t.hash}var G=`__nuxt_error`,K=()=>l(n().payload,`error`),q=e=>{let t=Q(e);try{let e=K();n().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},J=(e,n)=>{let r=e.callHook(`app:error`,Q(n));return t.NUXT_E1012({userAgent:navigator.userAgent,cause:n}),r},Y=async(e,t)=>{if(u(navigator.userAgent)){await J(e,t);return}await e.runWithContext(()=>q(t))},X=async(e={})=>{let t=n(),r=K();t.callHook(`app:error:cleared`,e),e.redirect&&await I().replace(e.redirect),r.value=void 0}
1,Z=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Q=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=T(e);return Object.defineProperty(t,G,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};export{x as C,b as S,k as _,Z as a,S as b,H as c,V as d,U as f,D as g,A as h,Q as i,z as l,I as m,Y as n,q as o,R as p,X as r,K as s,J as t,W as u,F as v,y as x,P as y}; 2//# sourceMappingURL=XLH9F22s.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.