globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import 'node-fetch-native/polyfill';
import { Server as Server$1 } from 'node:http';
import { Server } from 'node:https';
import destr from 'destr';
import { defineEventHandler, handleCacheHeaders, createEvent, eventHandler, setHeaders, sendRedirect, proxyRequest, getRequestHeader, setResponseStatus, setResponseHeader, getRequestHeaders, createError, createApp, createRouter as createRouter$1, toNodeListener, fetchWithEvent, lazyEventHandler } from 'h3';
import { createFetch as createFetch$1, Headers } from 'ofetch';
import { createCall, createFetch } from 'unenv/runtime/fetch/index';
import { createHooks } from 'hookable';
import { snakeCase } from 'scule';
import { klona } from 'klona';
import defu, { defuFn } from 'defu';
import { hash } from 'ohash';
import { parseURL, withoutBase, joinURL, getQuery, withQuery, withLeadingSlash, withoutTrailingSlash } from 'ufo';
import { createStorage, prefixStorage } from 'unstorage';
import { toRouteMatcher, createRouter } from 'radix3';
import { promises } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname, resolve } from 'pathe';
import auth from 'basic-auth';
import gracefulShutdown from 'http-graceful-shutdown';

const inlineAppConfig = {};



const appConfig = defuFn(inlineAppConfig);

const _inlineRuntimeConfig = {
  "app": {
    "baseURL": "/",
    "buildAssetsDir": "/_nuxt/",
    "cdnURL": ""
  },
  "nitro": {
    "envPrefix": "NUXT_",
    "routeRules": {
      "/__nuxt_error": {
        "cache": false
      },
      "/_nuxt/**": {
        "headers": {
          "cache-control": "public, max-age=31536000, immutable"
        }
      }
    }
  },
  "public": {}
};
const ENV_PREFIX = "NITRO_";
const ENV_PREFIX_ALT = _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_";
const _sharedRuntimeConfig = _deepFreeze(
  _applyEnv(klona(_inlineRuntimeConfig))
);
function useRuntimeConfig(event) {
  if (!event) {
    return _sharedRuntimeConfig;
  }
  if (event.context.nitro.runtimeConfig) {
    return event.context.nitro.runtimeConfig;
  }
  const runtimeConfig = klona(_inlineRuntimeConfig);
  _applyEnv(runtimeConfig);
  event.context.nitro.runtimeConfig = runtimeConfig;
  return runtimeConfig;
}
_deepFreeze(klona(appConfig));
function _getEnv(key) {
  const envKey = snakeCase(key).toUpperCase();
  return destr(
    process.env[ENV_PREFIX + envKey] ?? process.env[ENV_PREFIX_ALT + envKey]
  );
}
function _isObject(input) {
  return typeof input === "object" && !Array.isArray(input);
}
function _applyEnv(obj, parentKey = "") {
  for (const key in obj) {
    const subKey = parentKey ? `${parentKey}_${key}` : key;
    const envValue = _getEnv(subKey);
    if (_isObject(obj[key])) {
      if (_isObject(envValue)) {
        obj[key] = { ...obj[key], ...envValue };
      }
      _applyEnv(obj[key], subKey);
    } else {
      obj[key] = envValue ?? obj[key];
    }
  }
  return obj;
}
function _deepFreeze(object) {
  const propNames = Object.getOwnPropertyNames(object);
  for (const name of propNames) {
    const value = object[name];
    if (value && typeof value === "object") {
      _deepFreeze(value);
    }
  }
  return Object.freeze(object);
}
new Proxy(/* @__PURE__ */ Object.create(null), {
  get: (_, prop) => {
    console.warn(
      "Please use `useRuntimeConfig()` instead of accessing config directly."
    );
    const runtimeConfig = useRuntimeConfig();
    if (prop in runtimeConfig) {
      return runtimeConfig[prop];
    }
    return void 0;
  }
});

const _assets = {

};

function normalizeKey(key) {
  if (!key) {
    return "";
  }
  return key.split("?")[0].replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "");
}

const assets$1 = {
  getKeys() {
    return Promise.resolve(Object.keys(_assets))
  },
  hasItem (id) {
    id = normalizeKey(id);
    return Promise.resolve(id in _assets)
  },
  getItem (id) {
    id = normalizeKey(id);
    return Promise.resolve(_assets[id] ? _assets[id].import() : null)
  },
  getMeta (id) {
    id = normalizeKey(id);
    return Promise.resolve(_assets[id] ? _assets[id].meta : {})
  }
};

const storage = createStorage({});

storage.mount('/assets', assets$1);

function useStorage(base = "") {
  return base ? prefixStorage(storage, base) : storage;
}

const defaultCacheOptions = {
  name: "_",
  base: "/cache",
  swr: true,
  maxAge: 1
};
function defineCachedFunction(fn, opts = {}) {
  opts = { ...defaultCacheOptions, ...opts };
  const pending = {};
  const group = opts.group || "nitro/functions";
  const name = opts.name || fn.name || "_";
  const integrity = hash([opts.integrity, fn, opts]);
  const validate = opts.validate || (() => true);
  async function get(key, resolver, shouldInvalidateCache) {
    const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index");
    const entry = await useStorage().getItem(cacheKey) || {};
    const ttl = (opts.maxAge ?? opts.maxAge ?? 0) * 1e3;
    if (ttl) {
      entry.expires = Date.now() + ttl;
    }
    const expired = shouldInvalidateCache || entry.integrity !== integrity || ttl && Date.now() - (entry.mtime || 0) > ttl || !validate(entry);
    const _resolve = async () => {
      const isPending = pending[key];
      if (!isPending) {
        if (entry.value !== void 0 && (opts.staleMaxAge || 0) >= 0 && opts.swr === false) {
          entry.value = void 0;
          entry.integrity = void 0;
          entry.mtime = void 0;
          entry.expires = void 0;
        }
        pending[key] = Promise.resolve(resolver());
      }
      try {
        entry.value = await pending[key];
      } catch (error) {
        if (!isPending) {
          delete pending[key];
        }
        throw error;
      }
      if (!isPending) {
        entry.mtime = Date.now();
        entry.integrity = integrity;
        delete pending[key];
        if (validate(entry)) {
          useStorage().setItem(cacheKey, entry).catch((error) => console.error("[nitro] [cache]", error));
        }
      }
    };
    const _resolvePromise = expired ? _resolve() : Promise.resolve();
    if (opts.swr && entry.value) {
      _resolvePromise.catch(console.error);
      return entry;
    }
    return _resolvePromise.then(() => entry);
  }
  return async (...args) => {
    const shouldBypassCache = opts.shouldBypassCache?.(...args);
    if (shouldBypassCache) {
      return fn(...args);
    }
    const key = await (opts.getKey || getKey)(...args);
    const shouldInvalidateCache = opts.shouldInvalidateCache?.(...args);
    const entry = await get(key, () => fn(...args), shouldInvalidateCache);
    let value = entry.value;
    if (opts.transform) {
      value = await opts.transform(entry, ...args) || value;
    }
    return value;
  };
}
const cachedFunction = defineCachedFunction;
function getKey(...args) {
  return args.length > 0 ? hash(args, {}) : "";
}
function escapeKey(key) {
  return key.replace(/[^\dA-Za-z]/g, "");
}
function defineCachedEventHandler(handler, opts = defaultCacheOptions) {
  const _opts = {
    ...opts,
    getKey: async (event) => {
      const key = await opts.getKey?.(event);
      if (key) {
        return escapeKey(key);
      }
      const url = event.node.req.originalUrl || event.node.req.url;
      const friendlyName = escapeKey(decodeURI(parseURL(url).pathname)).slice(
        0,
        16
      );
      const urlHash = hash(url);
      return `${friendlyName}.${urlHash}`;
    },
    validate: (entry) => {
      if (entry.value.code >= 400) {
        return false;
      }
      if (entry.value.body === void 0) {
        return false;
      }
      return true;
    },
    group: opts.group || "nitro/handlers",
    integrity: [opts.integrity, handler]
  };
  const _cachedHandler = cachedFunction(
    async (incomingEvent) => {
      const reqProxy = cloneWithProxy(incomingEvent.node.req, { headers: {} });
      const resHeaders = {};
      let _resSendBody;
      const resProxy = cloneWithProxy(incomingEvent.node.res, {
        statusCode: 200,
        writableEnded: false,
        writableFinished: false,
        headersSent: false,
        closed: false,
        getHeader(name) {
          return resHeaders[name];
        },
        setHeader(name, value) {
          resHeaders[name] = value;
          return this;
        },
        getHeaderNames() {
          return Object.keys(resHeaders);
        },
        hasHeader(name) {
          return name in resHeaders;
        },
        removeHeader(name) {
          delete resHeaders[name];
        },
        getHeaders() {
          return resHeaders;
        },
        end(chunk, arg2, arg3) {
          if (typeof chunk === "string") {
            _resSendBody = chunk;
          }
          if (typeof arg2 === "function") {
            arg2();
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return this;
        },
        write(chunk, arg2, arg3) {
          if (typeof chunk === "string") {
            _resSendBody = chunk;
          }
          if (typeof arg2 === "function") {
            arg2();
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return this;
        },
        writeHead(statusCode, headers2) {
          this.statusCode = statusCode;
          if (headers2) {
            for (const header in headers2) {
              this.setHeader(header, headers2[header]);
            }
          }
          return this;
        }
      });
      const event = createEvent(reqProxy, resProxy);
      event.context = incomingEvent.context;
      const body = await handler(event) || _resSendBody;
      const headers = event.node.res.getHeaders();
      headers.etag = headers.Etag || headers.etag || `W/"${hash(body)}"`;
      headers["last-modified"] = headers["Last-Modified"] || headers["last-modified"] || (/* @__PURE__ */ new Date()).toUTCString();
      const cacheControl = [];
      if (opts.swr) {
        if (opts.maxAge) {
          cacheControl.push(`s-maxage=${opts.maxAge}`);
        }
        if (opts.staleMaxAge) {
          cacheControl.push(`stale-while-revalidate=${opts.staleMaxAge}`);
        } else {
          cacheControl.push("stale-while-revalidate");
        }
      } else if (opts.maxAge) {
        cacheControl.push(`max-age=${opts.maxAge}`);
      }
      if (cacheControl.length > 0) {
        headers["cache-control"] = cacheControl.join(", ");
      }
      const cacheEntry = {
        code: event.node.res.statusCode,
        headers,
        body
      };
      return cacheEntry;
    },
    _opts
  );
  return defineEventHandler(async (event) => {
    if (opts.headersOnly) {
      if (handleCacheHeaders(event, { maxAge: opts.maxAge })) {
        return;
      }
      return handler(event);
    }
    const response = await _cachedHandler(event);
    if (event.node.res.headersSent || event.node.res.writableEnded) {
      return response.body;
    }
    if (handleCacheHeaders(event, {
      modifiedTime: new Date(response.headers["last-modified"]),
      etag: response.headers.etag,
      maxAge: opts.maxAge
    })) {
      return;
    }
    event.node.res.statusCode = response.code;
    for (const name in response.headers) {
      event.node.res.setHeader(name, response.headers[name]);
    }
    return response.body;
  });
}
function cloneWithProxy(obj, overrides) {
  return new Proxy(obj, {
    get(target, property, receiver) {
      if (property in overrides) {
        return overrides[property];
      }
      return Reflect.get(target, property, receiver);
    },
    set(target, property, value, receiver) {
      if (property in overrides) {
        overrides[property] = value;
        return true;
      }
      return Reflect.set(target, property, value, receiver);
    }
  });
}
const cachedEventHandler = defineCachedEventHandler;

const config = useRuntimeConfig();
const _routeRulesMatcher = toRouteMatcher(
  createRouter({ routes: config.nitro.routeRules })
);
function createRouteRulesHandler() {
  return eventHandler((event) => {
    const routeRules = getRouteRules(event);
    if (routeRules.headers) {
      setHeaders(event, routeRules.headers);
    }
    if (routeRules.redirect) {
      return sendRedirect(
        event,
        routeRules.redirect.to,
        routeRules.redirect.statusCode
      );
    }
    if (routeRules.proxy) {
      let target = routeRules.proxy.to;
      if (target.endsWith("/**")) {
        let targetPath = event.path;
        const strpBase = routeRules.proxy._proxyStripBase;
        if (strpBase) {
          targetPath = withoutBase(targetPath, strpBase);
        }
        target = joinURL(target.slice(0, -3), targetPath);
      } else if (event.path.includes("?")) {
        const query = getQuery(event.path);
        target = withQuery(target, query);
      }
      return proxyRequest(event, target, {
        fetch: $fetch.raw,
        ...routeRules.proxy
      });
    }
  });
}
function getRouteRules(event) {
  event.context._nitro = event.context._nitro || {};
  if (!event.context._nitro.routeRules) {
    const path = new URL(event.node.req.url, "http://localhost").pathname;
    event.context._nitro.routeRules = getRouteRulesForPath(
      withoutBase(path, useRuntimeConfig().app.baseURL)
    );
  }
  return event.context._nitro.routeRules;
}
function getRouteRulesForPath(path) {
  return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
}

const plugins = [
  
];

function hasReqHeader(event, name, includes) {
  const value = getRequestHeader(event, name);
  return value && typeof value === "string" && value.toLowerCase().includes(includes);
}
function isJsonRequest(event) {
  return hasReqHeader(event, "accept", "application/json") || hasReqHeader(event, "user-agent", "curl/") || hasReqHeader(event, "user-agent", "httpie/") || hasReqHeader(event, "sec-fetch-mode", "cors") || event.path.startsWith("/api/") || event.path.endsWith(".json");
}
function normalizeError(error) {
  const cwd = typeof process.cwd === "function" ? process.cwd() : "/";
  const stack = (error.stack || "").split("\n").splice(1).filter((line) => line.includes("at ")).map((line) => {
    const text = line.replace(cwd + "/", "./").replace("webpack:/", "").replace("file://", "").trim();
    return {
      text,
      internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise")
    };
  });
  const statusCode = error.statusCode || 500;
  const statusMessage = error.statusMessage ?? (statusCode === 404 ? "Not Found" : "");
  const message = error.message || error.toString();
  return {
    stack,
    statusCode,
    statusMessage,
    message
  };
}
function trapUnhandledNodeErrors() {
  {
    process.on(
      "unhandledRejection",
      (err) => console.error("[nitro] [unhandledRejection] " + err)
    );
    process.on(
      "uncaughtException",
      (err) => console.error("[nitro]  [uncaughtException] " + err)
    );
  }
}

const errorHandler = (async function errorhandler(error, event) {
  const { stack, statusCode, statusMessage, message } = normalizeError(error);
  const errorObject = {
    url: event.node.req.url,
    statusCode,
    statusMessage,
    message,
    stack: "",
    data: error.data
  };
  if (error.unhandled || error.fatal) {
    const tags = [
      "[nuxt]",
      "[request error]",
      error.unhandled && "[unhandled]",
      error.fatal && "[fatal]",
      Number(errorObject.statusCode) !== 200 && `[${errorObject.statusCode}]`
    ].filter(Boolean).join(" ");
    console.error(tags, errorObject.message + "\n" + stack.map((l) => "  " + l.text).join("  \n"));
  }
  if (event.handled) {
    return;
  }
  setResponseStatus(event, errorObject.statusCode !== 200 && errorObject.statusCode || 500, errorObject.statusMessage);
  if (isJsonRequest(event)) {
    setResponseHeader(event, "Content-Type", "application/json");
    event.node.res.end(JSON.stringify(errorObject));
    return;
  }
  const isErrorPage = event.node.req.url?.startsWith("/__nuxt_error");
  const res = !isErrorPage ? await useNitroApp().localFetch(withQuery(joinURL(useRuntimeConfig().app.baseURL, "/__nuxt_error"), errorObject), {
    headers: getRequestHeaders(event),
    redirect: "manual"
  }).catch(() => null) : null;
  if (!res) {
    const { template } = await import('../error-500.mjs');
    if (event.handled) {
      return;
    }
    setResponseHeader(event, "Content-Type", "text/html;charset=UTF-8");
    event.node.res.end(template(errorObject));
    return;
  }
  const html = await res.text();
  if (event.handled) {
    return;
  }
  for (const [header, value] of res.headers.entries()) {
    setResponseHeader(event, header, value);
  }
  setResponseStatus(event, res.status && res.status !== 200 ? res.status : void 0, res.statusText);
  event.node.res.end(html);
});

const assets = {
  "/favicon.svg": {
    "type": "image/svg+xml",
    "etag": "\"1690-9tv5EI2+LxbgpEUi3MJwi0Rx+tg\"",
    "mtime": "2023-08-16T20:44:28.280Z",
    "size": 5776,
    "path": "../public/favicon.svg"
  },
  "/_nuxt/Readex_Pro-400-1.0b966302.woff2": {
    "type": "font/woff2",
    "etag": "\"59a0-suZgRqf1CkDPYjhJu1x5VBmyq9g\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 22944,
    "path": "../public/_nuxt/Readex_Pro-400-1.0b966302.woff2"
  },
  "/_nuxt/Readex_Pro-400-2.6376211a.woff2": {
    "type": "font/woff2",
    "etag": "\"2b9c-tIMHNBNyag+5rBxMwwyGu84Db9o\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 11164,
    "path": "../public/_nuxt/Readex_Pro-400-2.6376211a.woff2"
  },
  "/_nuxt/Readex_Pro-400-3.232bcbee.woff2": {
    "type": "font/woff2",
    "etag": "\"6a48-k9BADE2RxmPLmH9AXI4VtHLhSxI\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 27208,
    "path": "../public/_nuxt/Readex_Pro-400-3.232bcbee.woff2"
  },
  "/_nuxt/Readex_Pro-400-4.a4805912.woff2": {
    "type": "font/woff2",
    "etag": "\"7b74-ISRRHrL7ruksIROALPnzMZNIFZY\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 31604,
    "path": "../public/_nuxt/Readex_Pro-400-4.a4805912.woff2"
  },
  "/_nuxt/arc.cb5387cd.js": {
    "type": "application/javascript",
    "etag": "\"d88-OcQ6vd0zfokivIm0/P0qEdZmuGE\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 3464,
    "path": "../public/_nuxt/arc.cb5387cd.js"
  },
  "/_nuxt/array.9f3ba611.js": {
    "type": "application/javascript",
    "etag": "\"56-WlehrlF2756B8NQr2AX0rcb6nMs\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 86,
    "path": "../public/_nuxt/array.9f3ba611.js"
  },
  "/_nuxt/c4Diagram-36d27044.d75bc0aa.js": {
    "type": "application/javascript",
    "etag": "\"1114e-EN8hYwpUwIFc1Lu+gtcxy0Pv5zo\"",
    "mtime": "2023-08-16T20:44:28.276Z",
    "size": 69966,
    "path": "../public/_nuxt/c4Diagram-36d27044.d75bc0aa.js"
  },
  "/_nuxt/classDiagram-5e843ae7.baa3daee.js": {
    "type": "application/javascript",
    "etag": "\"f5d-YbHLymv1KnKxzVUmGVTbs8+cWf8\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 3933,
    "path": "../public/_nuxt/classDiagram-5e843ae7.baa3daee.js"
  },
  "/_nuxt/classDiagram-v2-8c3b3e6a.e4796450.js": {
    "type": "application/javascript",
    "etag": "\"137c-Kt7/T70jQXQcTji4cH2G+JXGo24\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 4988,
    "path": "../public/_nuxt/classDiagram-v2-8c3b3e6a.e4796450.js"
  },
  "/_nuxt/createText-285e50b4.cbeb4062.js": {
    "type": "application/javascript",
    "etag": "\"eab7-uvj6C9H0u8z4Wt557UOsWXaIvBQ\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 60087,
    "path": "../public/_nuxt/createText-285e50b4.cbeb4062.js"
  },
  "/_nuxt/edges-b00f0ec2.898988b8.js": {
    "type": "application/javascript",
    "etag": "\"7829-QXvd+h5TNS4BcrcVKiqtkBaD0wE\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 30761,
    "path": "../public/_nuxt/edges-b00f0ec2.898988b8.js"
  },
  "/_nuxt/entry.17d1cd3e.js": {
    "type": "application/javascript",
    "etag": "\"bb1f6-1M666j92noWLhDNeNxx07uaHRpA\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 766454,
    "path": "../public/_nuxt/entry.17d1cd3e.js"
  },
  "/_nuxt/entry.734f9cf6.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"6a33-+EEeKBeTYF9dOUGR6sj1fSj48iA\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 27187,
    "path": "../public/_nuxt/entry.734f9cf6.css"
  },
  "/_nuxt/erDiagram-0ccc0425.bcf4a4dd.js": {
    "type": "application/javascript",
    "etag": "\"7c03-DPSUlx+hYoQ4E57nrG1oTghPs6s\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 31747,
    "path": "../public/_nuxt/erDiagram-0ccc0425.bcf4a4dd.js"
  },
  "/_nuxt/error-404.c9d77c77.js": {
    "type": "application/javascript",
    "etag": "\"1983-8B2AgzIgb7PAsFRIZQg1isuV7mk\"",
    "mtime": "2023-08-16T20:44:28.272Z",
    "size": 6531,
    "path": "../public/_nuxt/error-404.c9d77c77.js"
  },
  "/_nuxt/error-404.d0e504a4.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"e2e-QN7eUXvblhu2Rf9655P6k0d392M\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 3630,
    "path": "../public/_nuxt/error-404.d0e504a4.css"
  },
  "/_nuxt/error-500.339711e5.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"79e-RH++pOY7pneQqJzmozbCqSsk/HI\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 1950,
    "path": "../public/_nuxt/error-500.339711e5.css"
  },
  "/_nuxt/error-500.64c24dd8.js": {
    "type": "application/javascript",
    "etag": "\"756-ZEYksi2tbFlFJ0n5nyU2xay5sbs\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 1878,
    "path": "../public/_nuxt/error-500.64c24dd8.js"
  },
  "/_nuxt/flowDb-8f9fc471.cb7da508.js": {
    "type": "application/javascript",
    "etag": "\"d0ad-gJkGwPq3XoCjFytqZjCWK9GORZs\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 53421,
    "path": "../public/_nuxt/flowDb-8f9fc471.cb7da508.js"
  },
  "/_nuxt/flowDiagram-698c8d5d.9a1b5e62.js": {
    "type": "application/javascript",
    "etag": "\"545d-4FxhW/bm54L2ihHpkgd0psCE/DY\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 21597,
    "path": "../public/_nuxt/flowDiagram-698c8d5d.9a1b5e62.js"
  },
  "/_nuxt/flowDiagram-v2-d6437390.4b3bffc4.js": {
    "type": "application/javascript",
    "etag": "\"2b2-53z1epQpaw41iXxE0spNEp+jfNo\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 690,
    "path": "../public/_nuxt/flowDiagram-v2-d6437390.4b3bffc4.js"
  },
  "/_nuxt/flowchart-elk-definition-6f4e6aa0.17ccd1cf.js": {
    "type": "application/javascript",
    "etag": "\"14fe2b-PT5j28x9QL1ZWuRW+eh9XYRx74U\"",
    "mtime": "2023-08-16T20:44:28.268Z",
    "size": 1375787,
    "path": "../public/_nuxt/flowchart-elk-definition-6f4e6aa0.17ccd1cf.js"
  },
  "/_nuxt/ganttDiagram-60845bff.822b93ee.js": {
    "type": "application/javascript",
    "etag": "\"ef1b-r7O6dlC6Ji5Tv0OpoVoMBHqKwfA\"",
    "mtime": "2023-08-16T20:44:28.264Z",
    "size": 61211,
    "path": "../public/_nuxt/ganttDiagram-60845bff.822b93ee.js"
  },
  "/_nuxt/gitGraphDiagram-a13ae597.3c6c12c4.js": {
    "type": "application/javascript",
    "etag": "\"9772-tR+mANS8Xnnb6iaBujLv09niyj8\"",
    "mtime": "2023-08-16T20:44:28.264Z",
    "size": 38770,
    "path": "../public/_nuxt/gitGraphDiagram-a13ae597.3c6c12c4.js"
  },
  "/_nuxt/index-4c4adb72.7790621e.js": {
    "type": "application/javascript",
    "etag": "\"2cfa-xM3m4U4k25gt6TcBdkne7+wcaSM\"",
    "mtime": "2023-08-16T20:44:28.264Z",
    "size": 11514,
    "path": "../public/_nuxt/index-4c4adb72.7790621e.js"
  },
  "/_nuxt/infoDiagram-c976a9ed.1d2da4f4.js": {
    "type": "application/javascript",
    "etag": "\"2282-Cjqbmt6slxY88rTRPkE1qhAR/YM\"",
    "mtime": "2023-08-16T20:44:28.264Z",
    "size": 8834,
    "path": "../public/_nuxt/infoDiagram-c976a9ed.1d2da4f4.js"
  },
  "/_nuxt/init.77b53fdd.js": {
    "type": "application/javascript",
    "etag": "\"93-Ddd4j0nL7FejgC/2FVPkAQwObCg\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 147,
    "path": "../public/_nuxt/init.77b53fdd.js"
  },
  "/_nuxt/journeyDiagram-5120ee2f.76ac3364.js": {
    "type": "application/javascript",
    "etag": "\"5a7c-PvebUeKBJQ7TgrgOfDufjtGBRc4\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 23164,
    "path": "../public/_nuxt/journeyDiagram-5120ee2f.76ac3364.js"
  },
  "/_nuxt/layout.e99a3798.js": {
    "type": "application/javascript",
    "etag": "\"ca92-VUFfK2zTSPDpK+z8cv0SWAaIMo4\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 51858,
    "path": "../public/_nuxt/layout.e99a3798.js"
  },
  "/_nuxt/line.1092e97f.js": {
    "type": "application/javascript",
    "etag": "\"3b1-0HXoqnEqDwHbowCIfYbxmtqALiM\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 945,
    "path": "../public/_nuxt/line.1092e97f.js"
  },
  "/_nuxt/linear.78d7e02c.js": {
    "type": "application/javascript",
    "etag": "\"27bf-9+J3Qa3/GJfeaykjPnDDsBnt+vQ\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 10175,
    "path": "../public/_nuxt/linear.78d7e02c.js"
  },
  "/_nuxt/mindmap-definition-0ab67801.e5713f6d.js": {
    "type": "application/javascript",
    "etag": "\"73170-A6o9MuzrBwo1EwjuDxuGzlEtoig\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 471408,
    "path": "../public/_nuxt/mindmap-definition-0ab67801.e5713f6d.js"
  },
  "/_nuxt/ordinal.b935e931.js": {
    "type": "application/javascript",
    "etag": "\"4a5-gJiNjN2cpFfIbXL+0k9SHh7FpyE\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 1189,
    "path": "../public/_nuxt/ordinal.b935e931.js"
  },
  "/_nuxt/path.53f90ab3.js": {
    "type": "application/javascript",
    "etag": "\"8ea-N2zNeuTlR93U5qccdLUpa2HWA6c\"",
    "mtime": "2023-08-16T20:44:28.260Z",
    "size": 2282,
    "path": "../public/_nuxt/path.53f90ab3.js"
  },
  "/_nuxt/pieDiagram-5efcb91d.bf17eb3d.js": {
    "type": "application/javascript",
    "etag": "\"41f2-w1Q6pclfYH6TUokt4UlaqMGtbrg\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 16882,
    "path": "../public/_nuxt/pieDiagram-5efcb91d.bf17eb3d.js"
  },
  "/_nuxt/quadrantDiagram-559115c7.a324649b.js": {
    "type": "application/javascript",
    "etag": "\"78c6-yw/UOflW6qZRsdMrnluRE0aXhwY\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 30918,
    "path": "../public/_nuxt/quadrantDiagram-559115c7.a324649b.js"
  },
  "/_nuxt/requirementDiagram-b2d6a344.82f5d4ff.js": {
    "type": "application/javascript",
    "etag": "\"6596-Gh5cIbbwYDQSjczD5aBuyZuDW/M\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 26006,
    "path": "../public/_nuxt/requirementDiagram-b2d6a344.82f5d4ff.js"
  },
  "/_nuxt/sankeyDiagram-e679478d.292d2a4b.js": {
    "type": "application/javascript",
    "etag": "\"528f-+LoCBjFn2ixNnlKwT0B9PUddTiw\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 21135,
    "path": "../public/_nuxt/sankeyDiagram-e679478d.292d2a4b.js"
  },
  "/_nuxt/sequenceDiagram-583eee82.b8651272.js": {
    "type": "application/javascript",
    "etag": "\"1438b-BLj8hM2lgRjLYeDk2edFYm21XgI\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 82827,
    "path": "../public/_nuxt/sequenceDiagram-583eee82.b8651272.js"
  },
  "/_nuxt/stateDiagram-b1c07dc6.f5e5f621.js": {
    "type": "application/javascript",
    "etag": "\"276e-0Qho2y0DOk5s6nlbRivO/10P6Is\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 10094,
    "path": "../public/_nuxt/stateDiagram-b1c07dc6.f5e5f621.js"
  },
  "/_nuxt/stateDiagram-v2-7c93469e.b940b560.js": {
    "type": "application/javascript",
    "etag": "\"1343-UXf3bdqH0AhfUgXnYWWVQIIkIQc\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 4931,
    "path": "../public/_nuxt/stateDiagram-v2-7c93469e.b940b560.js"
  },
  "/_nuxt/styles-88ad4441.64c36c38.js": {
    "type": "application/javascript",
    "etag": "\"90c9-Owe4zUKKXVSKr6RnQ6FA77oB6zc\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 37065,
    "path": "../public/_nuxt/styles-88ad4441.64c36c38.js"
  },
  "/_nuxt/styles-f626f8de.e65766f5.js": {
    "type": "application/javascript",
    "etag": "\"6da7-hvEWa3Z+pU3z4ThAmILGhVXwJ4Y\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 28071,
    "path": "../public/_nuxt/styles-f626f8de.e65766f5.js"
  },
  "/_nuxt/styles-ff678862.1f56126d.js": {
    "type": "application/javascript",
    "etag": "\"27d0-5mjtE0NoWpcfVyK5NannrDAP1yk\"",
    "mtime": "2023-08-16T20:44:28.256Z",
    "size": 10192,
    "path": "../public/_nuxt/styles-ff678862.1f56126d.js"
  },
  "/_nuxt/svgDraw-5d8a058e.24f85331.js": {
    "type": "application/javascript",
    "etag": "\"17c5-SRdf7rytpffLMova9mVqA633oHs\"",
    "mtime": "2023-08-16T20:44:28.252Z",
    "size": 6085,
    "path": "../public/_nuxt/svgDraw-5d8a058e.24f85331.js"
  },
  "/_nuxt/svgDrawCommon-f26cad39.4f1bd87d.js": {
    "type": "application/javascript",
    "etag": "\"56c-PZCk7dGpHw791CK/0i0I5WC4Pig\"",
    "mtime": "2023-08-16T20:44:28.252Z",
    "size": 1388,
    "path": "../public/_nuxt/svgDrawCommon-f26cad39.4f1bd87d.js"
  },
  "/_nuxt/timeline-definition-491ea63c.abf59935.js": {
    "type": "application/javascript",
    "etag": "\"5e2c-7+HJaVJEqbYlh0X+FfzpQ8e0w3E\"",
    "mtime": "2023-08-16T20:44:28.252Z",
    "size": 24108,
    "path": "../public/_nuxt/timeline-definition-491ea63c.abf59935.js"
  },
  "/css/nuxt-google-fonts.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"b88-2eR3j8X0b3NI75FaAQNzEC3t+bQ\"",
    "mtime": "2023-08-16T20:44:28.252Z",
    "size": 2952,
    "path": "../public/css/nuxt-google-fonts.css"
  },
  "/fonts/Readex_Pro-400-1.woff2": {
    "type": "font/woff2",
    "etag": "\"59a0-suZgRqf1CkDPYjhJu1x5VBmyq9g\"",
    "mtime": "2023-08-16T20:44:28.252Z",
    "size": 22944,
    "path": "../public/fonts/Readex_Pro-400-1.woff2"
  },
  "/fonts/Readex_Pro-400-2.woff2": {
    "type": "font/woff2",
    "etag": "\"2b9c-tIMHNBNyag+5rBxMwwyGu84Db9o\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 11164,
    "path": "../public/fonts/Readex_Pro-400-2.woff2"
  },
  "/fonts/Readex_Pro-400-3.woff2": {
    "type": "font/woff2",
    "etag": "\"6a48-k9BADE2RxmPLmH9AXI4VtHLhSxI\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 27208,
    "path": "../public/fonts/Readex_Pro-400-3.woff2"
  },
  "/fonts/Readex_Pro-400-4.woff2": {
    "type": "font/woff2",
    "etag": "\"7b74-ISRRHrL7ruksIROALPnzMZNIFZY\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 31604,
    "path": "../public/fonts/Readex_Pro-400-4.woff2"
  },
  "/fonts/Readex_Pro-500-5.woff2": {
    "type": "font/woff2",
    "etag": "\"59a0-suZgRqf1CkDPYjhJu1x5VBmyq9g\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 22944,
    "path": "../public/fonts/Readex_Pro-500-5.woff2"
  },
  "/fonts/Readex_Pro-500-6.woff2": {
    "type": "font/woff2",
    "etag": "\"2b9c-tIMHNBNyag+5rBxMwwyGu84Db9o\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 11164,
    "path": "../public/fonts/Readex_Pro-500-6.woff2"
  },
  "/fonts/Readex_Pro-500-7.woff2": {
    "type": "font/woff2",
    "etag": "\"6a48-k9BADE2RxmPLmH9AXI4VtHLhSxI\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 27208,
    "path": "../public/fonts/Readex_Pro-500-7.woff2"
  },
  "/fonts/Readex_Pro-500-8.woff2": {
    "type": "font/woff2",
    "etag": "\"7b74-ISRRHrL7ruksIROALPnzMZNIFZY\"",
    "mtime": "2023-08-16T20:44:28.248Z",
    "size": 31604,
    "path": "../public/fonts/Readex_Pro-500-8.woff2"
  }
};

function readAsset (id) {
  const serverDir = dirname(fileURLToPath(globalThis._importMeta_.url));
  return promises.readFile(resolve(serverDir, assets[id].path))
}

const publicAssetBases = {"/_nuxt":{"maxAge":31536000}};

function isPublicAssetURL(id = '') {
  if (assets[id]) {
    return true
  }
  for (const base in publicAssetBases) {
    if (id.startsWith(base)) { return true }
  }
  return false
}

function getAsset (id) {
  return assets[id]
}

const METHODS = /* @__PURE__ */ new Set(["HEAD", "GET"]);
const EncodingMap = { gzip: ".gz", br: ".br" };
const _f4b49z = eventHandler((event) => {
  if (event.node.req.method && !METHODS.has(event.node.req.method)) {
    return;
  }
  let id = decodeURIComponent(
    withLeadingSlash(
      withoutTrailingSlash(parseURL(event.node.req.url).pathname)
    )
  );
  let asset;
  const encodingHeader = String(
    event.node.req.headers["accept-encoding"] || ""
  );
  const encodings = [
    ...encodingHeader.split(",").map((e) => EncodingMap[e.trim()]).filter(Boolean).sort(),
    ""
  ];
  if (encodings.length > 1) {
    event.node.res.setHeader("Vary", "Accept-Encoding");
  }
  for (const encoding of encodings) {
    for (const _id of [id + encoding, joinURL(id, "index.html" + encoding)]) {
      const _asset = getAsset(_id);
      if (_asset) {
        asset = _asset;
        id = _id;
        break;
      }
    }
  }
  if (!asset) {
    if (isPublicAssetURL(id)) {
      event.node.res.removeHeader("cache-control");
      throw createError({
        statusMessage: "Cannot find static asset " + id,
        statusCode: 404
      });
    }
    return;
  }
  const ifNotMatch = event.node.req.headers["if-none-match"] === asset.etag;
  if (ifNotMatch) {
    if (!event.handled) {
      event.node.res.statusCode = 304;
      event.node.res.end();
    }
    return;
  }
  const ifModifiedSinceH = event.node.req.headers["if-modified-since"];
  const mtimeDate = new Date(asset.mtime);
  if (ifModifiedSinceH && asset.mtime && new Date(ifModifiedSinceH) >= mtimeDate) {
    if (!event.handled) {
      event.node.res.statusCode = 304;
      event.node.res.end();
    }
    return;
  }
  if (asset.type && !event.node.res.getHeader("Content-Type")) {
    event.node.res.setHeader("Content-Type", asset.type);
  }
  if (asset.etag && !event.node.res.getHeader("ETag")) {
    event.node.res.setHeader("ETag", asset.etag);
  }
  if (asset.mtime && !event.node.res.getHeader("Last-Modified")) {
    event.node.res.setHeader("Last-Modified", mtimeDate.toUTCString());
  }
  if (asset.encoding && !event.node.res.getHeader("Content-Encoding")) {
    event.node.res.setHeader("Content-Encoding", asset.encoding);
  }
  if (asset.size > 0 && !event.node.res.getHeader("Content-Length")) {
    event.node.res.setHeader("Content-Length", asset.size);
  }
  return readAsset(id);
});

const _029MHB = defineEventHandler((event) => {
  const { res } = event.node, { req } = event.node, user = auth.parse(req.headers.authorization || ""), hasAuthSet = !!process.env.ROOT_USER && !!process.env.ROOT_PASSWORD;
  if (hasAuthSet && (!user || user.name !== process.env.ROOT_USER || user.pass !== process.env.ROOT_PASSWORD)) {
    res.statusCode = 401;
    res.setHeader("WWW-Authenticate", 'Basic realm="Please enter username and password"');
    res.end("Access denied");
  }
});

const _lazy_LN751h = () => import('../data.mjs');
const _lazy_y5qoN6 = () => import('../ping.mjs');
const _lazy_foNkir = () => import('../table.mjs');
const _lazy_sPDuOS = () => import('../handlers/renderer.mjs').then(function (n) { return n.r; });

const handlers = [
  { route: '', handler: _f4b49z, lazy: false, middleware: true, method: undefined },
  { route: '', handler: _029MHB, lazy: false, middleware: true, method: undefined },
  { route: '/api/data', handler: _lazy_LN751h, lazy: true, middleware: false, method: undefined },
  { route: '/api/ping', handler: _lazy_y5qoN6, lazy: true, middleware: false, method: undefined },
  { route: '/api/table', handler: _lazy_foNkir, lazy: true, middleware: false, method: undefined },
  { route: '/__nuxt_error', handler: _lazy_sPDuOS, lazy: true, middleware: false, method: undefined },
  { route: '/**', handler: _lazy_sPDuOS, lazy: true, middleware: false, method: undefined }
];

function createNitroApp() {
  const config = useRuntimeConfig();
  const hooks = createHooks();
  const h3App = createApp({
    debug: destr(false),
    onError: errorHandler
  });
  const router = createRouter$1();
  h3App.use(createRouteRulesHandler());
  const localCall = createCall(toNodeListener(h3App));
  const localFetch = createFetch(localCall, globalThis.fetch);
  const $fetch = createFetch$1({
    fetch: localFetch,
    Headers,
    defaults: { baseURL: config.app.baseURL }
  });
  globalThis.$fetch = $fetch;
  h3App.use(
    eventHandler((event) => {
      event.context.nitro = event.context.nitro || {};
      const envContext = event.node.req.__unenv__;
      if (envContext) {
        Object.assign(event.context, envContext);
      }
      event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
      event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
        fetch: $fetch
      });
    })
  );
  for (const h of handlers) {
    let handler = h.lazy ? lazyEventHandler(h.handler) : h.handler;
    if (h.middleware || !h.route) {
      const middlewareBase = (config.app.baseURL + (h.route || "/")).replace(
        /\/+/g,
        "/"
      );
      h3App.use(middlewareBase, handler);
    } else {
      const routeRules = getRouteRulesForPath(
        h.route.replace(/:\w+|\*\*/g, "_")
      );
      if (routeRules.cache) {
        handler = cachedEventHandler(handler, {
          group: "nitro/routes",
          ...routeRules.cache
        });
      }
      router.use(h.route, handler, h.method);
    }
  }
  h3App.use(config.app.baseURL, router.handler);
  const app = {
    hooks,
    h3App,
    router,
    localCall,
    localFetch
  };
  for (const plugin of plugins) {
    plugin(app);
  }
  return app;
}
const nitroApp = createNitroApp();
const useNitroApp = () => nitroApp;

function getGracefulShutdownConfig() {
  return {
    disabled: !!process.env.NITRO_SHUTDOWN_DISABLED,
    signals: (process.env.NITRO_SHUTDOWN_SIGNALS || "SIGTERM SIGINT").split(" ").map((s) => s.trim()),
    timeout: Number.parseInt(process.env.NITRO_SHUTDOWN_TIMEOUT, 10) || 3e4,
    forceExit: !process.env.NITRO_SHUTDOWN_NO_FORCE_EXIT
  };
}
function setupGracefulShutdown(listener, nitroApp) {
  const shutdownConfig = getGracefulShutdownConfig();
  if (shutdownConfig.disabled) {
    return;
  }
  gracefulShutdown(listener, {
    signals: shutdownConfig.signals.join(" "),
    timeout: shutdownConfig.timeout,
    forceExit: shutdownConfig.forceExit,
    onShutdown: async () => {
      await new Promise((resolve) => {
        const timeout = setTimeout(() => {
          console.warn("Graceful shutdown timeout, force exiting...");
          resolve();
        }, shutdownConfig.timeout);
        nitroApp.hooks.callHook("close").catch((err) => {
          console.error(err);
        }).finally(() => {
          clearTimeout(timeout);
          resolve();
        });
      });
    }
  });
}

const cert = process.env.NITRO_SSL_CERT;
const key = process.env.NITRO_SSL_KEY;
const server = cert && key ? new Server({ key, cert }, toNodeListener(nitroApp.h3App)) : new Server$1(toNodeListener(nitroApp.h3App));
const port = destr(process.env.NITRO_PORT || process.env.PORT) || 3e3;
const host = process.env.NITRO_HOST || process.env.HOST;
const listener = server.listen(port, host, (err) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }
  const protocol = cert && key ? "https" : "http";
  const addressInfo = listener.address();
  const baseURL = (useRuntimeConfig().app.baseURL || "").replace(/\/$/, "");
  const url = `${protocol}://${addressInfo.family === "IPv6" ? `[${addressInfo.address}]` : addressInfo.address}:${addressInfo.port}${baseURL}`;
  console.log(`Listening ${url}`);
});
trapUnhandledNodeErrors();
setupGracefulShutdown(listener, nitroApp);
const nodeServer = {};

export { useRuntimeConfig as a, getRouteRules as g, nodeServer as n, useNitroApp as u };
//# sourceMappingURL=node-server.mjs.map
