1import{b as e,o as t,v as n,x as r,y as i}from"./tdwVTCZ6.js";import{Ct as a,F as o,I as s,It as c,L as l,M as u,St as d}from"./DWS5kUQL.js";import{t as f}from"./rxhDcyfF.js";import{_ as p,a as m,i as h,l as g,m as _,p as v,s as y}from"./eY5IeRux.js";var b=Symbol(`layout-meta`),x=Symbol(`layout`),S=Symbol(`route`),C=r({docsBase:i,reporters:e});function w(e,t){try{return t in e}catch{return!1}}var T=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:A(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=k(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function E(e){if(typeof e==`string`)return new T(e);if(D(e))return e;let t=new T(e.message??e.statusMessage??``,{cause:e.cause||e});if(w(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=A(e.statusCode,t.statusCode):e.status&&(t.statusCode=A(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;k(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 D(e){return e?.constructor?.__h3_error__===!0}var O=/[^\u0009\u0020-\u007E]/g;function k(e=``){return e.replace(O,``)}function A(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response,s(),a();var j=()=>t()?.$router;function M(e){let t=e.scope,n=d();for(;n;){if(n===t)return!0;n=n.parent}return!1}var N=(()=>{if(o()){let e=u();if(!e||M(e))return l(S,t()._route)}return t()._route});function P(e){return e}var F=()=>{try{if(t()._processingMiddleware)return!0}catch{return!1}return!1},I=(e,n)=>{e||=`/`;let r=typeof e==`string`?e:`path`in e?L(e):j().resolve(e).href;if(n?.open){let{protocol:e}=new URL(r,window.location.href);if(e&&g(e))throw C.NUXT_E2002({toPath:r,protocol:e});let{target:t=`_blank`,windowFeatures:i={}}=n.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(r,t,a.join(`, `)),Promise.resolve()}let i=y(r,{acceptRelative:!0}),a=n?.external||i;if(a){if(!n?.external)throw C.NUXT_E2001({toPath:r});let{protocol:e}=new URL(r,window.location.href);if(e&&g(e))throw C.NUXT_E2002({toPath:r,protocol:e})}let o=F();if(!a&&o){if(n?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=_(e);return{path:t,...n&&{query:v(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=j(),c=t();if(a)return c._scope.stop(),n?.replace?location.replace(r):location.href=r,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?R(e):e;return n?.replace?s.replace(l):s.push(l)};function L(e){return p(e.path||``,e.query||{})+(e.hash||``)}function R(e){let t=_(e);return m(h(t.pathname))+t.search+t.hash}a();var z=`__nuxt_error`,B=()=>c(t().payload,`error`),V=e=>{let n=K(e);try{let e=B();t().hooks.callHook(`app:error`,n),e.value||=n}catch{throw n}return n},H=(e,t)=>{let r=e.callHook(`app:error`,K(t));return n.NUXT_E1012({userAgent:navigator.userAgent,cause:t}),r},U=async(e,t)=>{if(f(navigator.userAgent)){await H(e,t);return}await e.runWithContext(()=>V(t))},W=async(e={})=>{let n=t(),r=B();n.callHook(`app:error:cleared`,e),e.redirect&&await j().replace(e.redirect),r.value=void 0},G=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,K=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=E(e);return Object.defineProperty(t,z,{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{S as _,G as a,P as c,L as d,N as f,x as g,b as h,K as i,R as l,C as m,U as n,V as o,j as p,W as r,B as s,H as t,I as u};
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.