12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586 |
- import { effectScope, shallowReactive, reactive, getCurrentScope, hasInjectionContext, getCurrentInstance, inject, toRef, version, unref, h, shallowRef, isReadonly, isRef, isShallow, isReactive, toRaw, defineComponent, computed, ref, provide, Suspense, nextTick, mergeProps, Transition, watch, Fragment, withCtx, createVNode, useSSRContext, defineAsyncComponent, onErrorCaptured, onServerPrefetch, resolveDynamicComponent, createApp } from "vue";
- import { $fetch } from "ofetch";
- import { baseURL } from "#internal/nuxt/paths";
- import { createHooks } from "hookable";
- import { getContext } from "unctx";
- import { sanitizeStatusCode, createError as createError$1, appendHeader } from "h3";
- import { getActiveHead, CapoPlugin } from "unhead";
- import { defineHeadPlugin } from "@unhead/shared";
- import { START_LOCATION, createMemoryHistory, createRouter as createRouter$1, useRoute as useRoute$1, RouterView } from "vue-router";
- import { toRouteMatcher, createRouter } from "radix3";
- import { defu } from "defu";
- import { hasProtocol, isScriptProtocol, joinURL, withQuery } from "ufo";
- import { createPinia } from "pinia";
- import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrRenderSuspense, ssrRenderVNode } from "vue/server-renderer";
- import { ElPopover } from "element-plus";
- if (!globalThis.$fetch) {
- globalThis.$fetch = $fetch.create({
- baseURL: baseURL()
- });
- }
- const appLayoutTransition = false;
- const appPageTransition = false;
- const appKeepalive = false;
- const nuxtLinkDefaults = { "componentName": "NuxtLink", "prefetch": true, "prefetchOn": { "visibility": true } };
- const appId = "nuxt-app";
- function getNuxtAppCtx(id = appId) {
- return getContext(id, {
- asyncContext: false
- });
- }
- const NuxtPluginIndicator = "__nuxt_plugin";
- function createNuxtApp(options) {
- var _a;
- let hydratingCount = 0;
- const nuxtApp = {
- _id: options.id || appId || "nuxt-app",
- _scope: effectScope(),
- provide: void 0,
- globalName: "nuxt",
- versions: {
- get nuxt() {
- return "3.15.2";
- },
- get vue() {
- return nuxtApp.vueApp.version;
- }
- },
- payload: shallowReactive({
- ...((_a = options.ssrContext) == null ? void 0 : _a.payload) || {},
- data: shallowReactive({}),
- state: reactive({}),
- once: /* @__PURE__ */ new Set(),
- _errors: shallowReactive({})
- }),
- static: {
- data: {}
- },
- runWithContext(fn) {
- if (nuxtApp._scope.active && !getCurrentScope()) {
- return nuxtApp._scope.run(() => callWithNuxt(nuxtApp, fn));
- }
- return callWithNuxt(nuxtApp, fn);
- },
- isHydrating: false,
- deferHydration() {
- if (!nuxtApp.isHydrating) {
- return () => {
- };
- }
- hydratingCount++;
- let called = false;
- return () => {
- if (called) {
- return;
- }
- called = true;
- hydratingCount--;
- if (hydratingCount === 0) {
- nuxtApp.isHydrating = false;
- return nuxtApp.callHook("app:suspense:resolve");
- }
- };
- },
- _asyncDataPromises: {},
- _asyncData: shallowReactive({}),
- _payloadRevivers: {},
- ...options
- };
- {
- nuxtApp.payload.serverRendered = true;
- }
- if (nuxtApp.ssrContext) {
- nuxtApp.payload.path = nuxtApp.ssrContext.url;
- nuxtApp.ssrContext.nuxt = nuxtApp;
- nuxtApp.ssrContext.payload = nuxtApp.payload;
- nuxtApp.ssrContext.config = {
- public: nuxtApp.ssrContext.runtimeConfig.public,
- app: nuxtApp.ssrContext.runtimeConfig.app
- };
- }
- nuxtApp.hooks = createHooks();
- nuxtApp.hook = nuxtApp.hooks.hook;
- {
- const contextCaller = async function(hooks, args) {
- for (const hook of hooks) {
- await nuxtApp.runWithContext(() => hook(...args));
- }
- };
- nuxtApp.hooks.callHook = (name, ...args) => nuxtApp.hooks.callHookWith(contextCaller, name, ...args);
- }
- nuxtApp.callHook = nuxtApp.hooks.callHook;
- nuxtApp.provide = (name, value) => {
- const $name = "$" + name;
- defineGetter(nuxtApp, $name, value);
- defineGetter(nuxtApp.vueApp.config.globalProperties, $name, value);
- };
- defineGetter(nuxtApp.vueApp, "$nuxt", nuxtApp);
- defineGetter(nuxtApp.vueApp.config.globalProperties, "$nuxt", nuxtApp);
- const runtimeConfig = options.ssrContext.runtimeConfig;
- nuxtApp.provide("config", runtimeConfig);
- return nuxtApp;
- }
- function registerPluginHooks(nuxtApp, plugin2) {
- if (plugin2.hooks) {
- nuxtApp.hooks.addHooks(plugin2.hooks);
- }
- }
- async function applyPlugin(nuxtApp, plugin2) {
- if (typeof plugin2 === "function") {
- const { provide: provide2 } = await nuxtApp.runWithContext(() => plugin2(nuxtApp)) || {};
- if (provide2 && typeof provide2 === "object") {
- for (const key in provide2) {
- nuxtApp.provide(key, provide2[key]);
- }
- }
- }
- }
- async function applyPlugins(nuxtApp, plugins2) {
- var _a, _b, _c, _d;
- const resolvedPlugins = [];
- const unresolvedPlugins = [];
- const parallels = [];
- const errors = [];
- let promiseDepth = 0;
- async function executePlugin(plugin2) {
- var _a2;
- const unresolvedPluginsForThisPlugin = ((_a2 = plugin2.dependsOn) == null ? void 0 : _a2.filter((name) => plugins2.some((p) => p._name === name) && !resolvedPlugins.includes(name))) ?? [];
- if (unresolvedPluginsForThisPlugin.length > 0) {
- unresolvedPlugins.push([new Set(unresolvedPluginsForThisPlugin), plugin2]);
- } else {
- const promise = applyPlugin(nuxtApp, plugin2).then(async () => {
- if (plugin2._name) {
- resolvedPlugins.push(plugin2._name);
- await Promise.all(unresolvedPlugins.map(async ([dependsOn, unexecutedPlugin]) => {
- if (dependsOn.has(plugin2._name)) {
- dependsOn.delete(plugin2._name);
- if (dependsOn.size === 0) {
- promiseDepth++;
- await executePlugin(unexecutedPlugin);
- }
- }
- }));
- }
- });
- if (plugin2.parallel) {
- parallels.push(promise.catch((e) => errors.push(e)));
- } else {
- await promise;
- }
- }
- }
- for (const plugin2 of plugins2) {
- if (((_a = nuxtApp.ssrContext) == null ? void 0 : _a.islandContext) && ((_b = plugin2.env) == null ? void 0 : _b.islands) === false) {
- continue;
- }
- registerPluginHooks(nuxtApp, plugin2);
- }
- for (const plugin2 of plugins2) {
- if (((_c = nuxtApp.ssrContext) == null ? void 0 : _c.islandContext) && ((_d = plugin2.env) == null ? void 0 : _d.islands) === false) {
- continue;
- }
- await executePlugin(plugin2);
- }
- await Promise.all(parallels);
- if (promiseDepth) {
- for (let i = 0; i < promiseDepth; i++) {
- await Promise.all(parallels);
- }
- }
- if (errors.length) {
- throw errors[0];
- }
- }
- // @__NO_SIDE_EFFECTS__
- function defineNuxtPlugin(plugin2) {
- if (typeof plugin2 === "function") {
- return plugin2;
- }
- const _name = plugin2._name || plugin2.name;
- delete plugin2.name;
- return Object.assign(plugin2.setup || (() => {
- }), plugin2, { [NuxtPluginIndicator]: true, _name });
- }
- function callWithNuxt(nuxt, setup, args) {
- const fn = () => setup();
- const nuxtAppCtx = getNuxtAppCtx(nuxt._id);
- {
- return nuxt.vueApp.runWithContext(() => nuxtAppCtx.callAsync(nuxt, fn));
- }
- }
- function tryUseNuxtApp(id) {
- var _a;
- let nuxtAppInstance;
- if (hasInjectionContext()) {
- nuxtAppInstance = (_a = getCurrentInstance()) == null ? void 0 : _a.appContext.app.$nuxt;
- }
- nuxtAppInstance = nuxtAppInstance || getNuxtAppCtx(id).tryUse();
- return nuxtAppInstance || null;
- }
- function useNuxtApp(id) {
- const nuxtAppInstance = tryUseNuxtApp(id);
- if (!nuxtAppInstance) {
- {
- throw new Error("[nuxt] instance unavailable");
- }
- }
- return nuxtAppInstance;
- }
- // @__NO_SIDE_EFFECTS__
- function useRuntimeConfig(_event) {
- return useNuxtApp().$config;
- }
- function defineGetter(obj, key, val) {
- Object.defineProperty(obj, key, { get: () => val });
- }
- const LayoutMetaSymbol = Symbol("layout-meta");
- const PageRouteSymbol = Symbol("route");
- const useRouter = () => {
- var _a;
- return (_a = useNuxtApp()) == null ? void 0 : _a.$router;
- };
- const useRoute = () => {
- if (hasInjectionContext()) {
- return inject(PageRouteSymbol, useNuxtApp()._route);
- }
- return useNuxtApp()._route;
- };
- // @__NO_SIDE_EFFECTS__
- function defineNuxtRouteMiddleware(middleware) {
- return middleware;
- }
- const isProcessingMiddleware = () => {
- try {
- if (useNuxtApp()._processingMiddleware) {
- return true;
- }
- } catch {
- return false;
- }
- return false;
- };
- const URL_QUOTE_RE = /"/g;
- const navigateTo = (to, options) => {
- if (!to) {
- to = "/";
- }
- const toPath = typeof to === "string" ? to : "path" in to ? resolveRouteObject(to) : useRouter().resolve(to).href;
- const isExternalHost = hasProtocol(toPath, { acceptRelative: true });
- const isExternal = (options == null ? void 0 : options.external) || isExternalHost;
- if (isExternal) {
- if (!(options == null ? void 0 : options.external)) {
- throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");
- }
- const { protocol } = new URL(toPath, "http://localhost");
- if (protocol && isScriptProtocol(protocol)) {
- throw new Error(`Cannot navigate to a URL with '${protocol}' protocol.`);
- }
- }
- const inMiddleware = isProcessingMiddleware();
- const router = useRouter();
- const nuxtApp = useNuxtApp();
- {
- if (nuxtApp.ssrContext) {
- const fullPath = typeof to === "string" || isExternal ? toPath : router.resolve(to).fullPath || "/";
- const location2 = isExternal ? toPath : joinURL((/* @__PURE__ */ useRuntimeConfig()).app.baseURL, fullPath);
- const redirect = async function(response) {
- await nuxtApp.callHook("app:redirected");
- const encodedLoc = location2.replace(URL_QUOTE_RE, "%22");
- const encodedHeader = encodeURL(location2, isExternalHost);
- nuxtApp.ssrContext._renderResponse = {
- statusCode: sanitizeStatusCode((options == null ? void 0 : options.redirectCode) || 302, 302),
- body: `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=${encodedLoc}"></head></html>`,
- headers: { location: encodedHeader }
- };
- return response;
- };
- if (!isExternal && inMiddleware) {
- router.afterEach((final) => final.fullPath === fullPath ? redirect(false) : void 0);
- return to;
- }
- return redirect(!inMiddleware ? void 0 : (
- /* abort route navigation */
- false
- ));
- }
- }
- if (isExternal) {
- nuxtApp._scope.stop();
- if (options == null ? void 0 : options.replace) {
- (void 0).replace(toPath);
- } else {
- (void 0).href = toPath;
- }
- if (inMiddleware) {
- if (!nuxtApp.isHydrating) {
- return false;
- }
- return new Promise(() => {
- });
- }
- return Promise.resolve();
- }
- return (options == null ? void 0 : options.replace) ? router.replace(to) : router.push(to);
- };
- function resolveRouteObject(to) {
- return withQuery(to.path || "", to.query || {}) + (to.hash || "");
- }
- function encodeURL(location2, isExternalHost = false) {
- const url = new URL(location2, "http://localhost");
- if (!isExternalHost) {
- return url.pathname + url.search + url.hash;
- }
- if (location2.startsWith("//")) {
- return url.toString().replace(url.protocol, "");
- }
- return url.toString();
- }
- const NUXT_ERROR_SIGNATURE = "__nuxt_error";
- const useError = () => toRef(useNuxtApp().payload, "error");
- const showError = (error) => {
- const nuxtError = createError(error);
- try {
- const nuxtApp = useNuxtApp();
- const error2 = useError();
- if (false) ;
- error2.value = error2.value || nuxtError;
- } catch {
- throw nuxtError;
- }
- return nuxtError;
- };
- const isNuxtError = (error) => !!error && typeof error === "object" && NUXT_ERROR_SIGNATURE in error;
- const createError = (error) => {
- const nuxtError = createError$1(error);
- Object.defineProperty(nuxtError, NUXT_ERROR_SIGNATURE, {
- value: true,
- configurable: false,
- writable: false
- });
- return nuxtError;
- };
- version[0] === "3";
- function resolveUnref(r) {
- return typeof r === "function" ? r() : unref(r);
- }
- function resolveUnrefHeadInput(ref2) {
- if (ref2 instanceof Promise || ref2 instanceof Date || ref2 instanceof RegExp)
- return ref2;
- const root = resolveUnref(ref2);
- if (!ref2 || !root)
- return root;
- if (Array.isArray(root))
- return root.map((r) => resolveUnrefHeadInput(r));
- if (typeof root === "object") {
- const resolved = {};
- for (const k in root) {
- if (!Object.prototype.hasOwnProperty.call(root, k)) {
- continue;
- }
- if (k === "titleTemplate" || k[0] === "o" && k[1] === "n") {
- resolved[k] = unref(root[k]);
- continue;
- }
- resolved[k] = resolveUnrefHeadInput(root[k]);
- }
- return resolved;
- }
- return root;
- }
- defineHeadPlugin({
- hooks: {
- "entries:resolve": (ctx) => {
- for (const entry2 of ctx.entries)
- entry2.resolvedInput = resolveUnrefHeadInput(entry2.input);
- }
- }
- });
- const headSymbol = "usehead";
- const _global = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
- const globalKey$1 = "__unhead_injection_handler__";
- function setHeadInjectionHandler(handler) {
- _global[globalKey$1] = handler;
- }
- function injectHead() {
- if (globalKey$1 in _global) {
- return _global[globalKey$1]();
- }
- const head = inject(headSymbol);
- if (!head && process.env.NODE_ENV !== "production")
- console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results.");
- return head || getActiveHead();
- }
- [CapoPlugin({ track: true })];
- const unhead_KgADcZ0jPj = /* @__PURE__ */ defineNuxtPlugin({
- name: "nuxt:head",
- enforce: "pre",
- setup(nuxtApp) {
- const head = nuxtApp.ssrContext.head;
- setHeadInjectionHandler(
- // need a fresh instance of the nuxt app to avoid parallel requests interfering with each other
- () => useNuxtApp().vueApp._context.provides.usehead
- );
- nuxtApp.vueApp.use(head);
- }
- });
- function createContext(opts = {}) {
- let currentInstance;
- let isSingleton = false;
- const checkConflict = (instance) => {
- if (currentInstance && currentInstance !== instance) {
- throw new Error("Context conflict");
- }
- };
- let als;
- if (opts.asyncContext) {
- const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
- if (_AsyncLocalStorage) {
- als = new _AsyncLocalStorage();
- } else {
- console.warn("[unctx] `AsyncLocalStorage` is not provided.");
- }
- }
- const _getCurrentInstance = () => {
- if (als) {
- const instance = als.getStore();
- if (instance !== void 0) {
- return instance;
- }
- }
- return currentInstance;
- };
- return {
- use: () => {
- const _instance = _getCurrentInstance();
- if (_instance === void 0) {
- throw new Error("Context is not available");
- }
- return _instance;
- },
- tryUse: () => {
- return _getCurrentInstance();
- },
- set: (instance, replace) => {
- if (!replace) {
- checkConflict(instance);
- }
- currentInstance = instance;
- isSingleton = true;
- },
- unset: () => {
- currentInstance = void 0;
- isSingleton = false;
- },
- call: (instance, callback) => {
- checkConflict(instance);
- currentInstance = instance;
- try {
- return als ? als.run(instance, callback) : callback();
- } finally {
- if (!isSingleton) {
- currentInstance = void 0;
- }
- }
- },
- async callAsync(instance, callback) {
- currentInstance = instance;
- const onRestore = () => {
- currentInstance = instance;
- };
- const onLeave = () => currentInstance === instance ? onRestore : void 0;
- asyncHandlers.add(onLeave);
- try {
- const r = als ? als.run(instance, callback) : callback();
- if (!isSingleton) {
- currentInstance = void 0;
- }
- return await r;
- } finally {
- asyncHandlers.delete(onLeave);
- }
- }
- };
- }
- function createNamespace(defaultOpts = {}) {
- const contexts = {};
- return {
- get(key, opts = {}) {
- if (!contexts[key]) {
- contexts[key] = createContext({ ...defaultOpts, ...opts });
- }
- return contexts[key];
- }
- };
- }
- const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : {};
- const globalKey = "__unctx__";
- _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
- const asyncHandlersKey = "__unctx_async_handlers__";
- const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
- function executeAsync(function_) {
- const restores = [];
- for (const leaveHandler of asyncHandlers) {
- const restore2 = leaveHandler();
- if (restore2) {
- restores.push(restore2);
- }
- }
- const restore = () => {
- for (const restore2 of restores) {
- restore2();
- }
- };
- let awaitable = function_();
- if (awaitable && typeof awaitable === "object" && "catch" in awaitable) {
- awaitable = awaitable.catch((error) => {
- restore();
- throw error;
- });
- }
- return [awaitable, restore];
- }
- const ROUTE_KEY_PARENTHESES_RE$1 = /(:\w+)\([^)]+\)/g;
- const ROUTE_KEY_SYMBOLS_RE$1 = /(:\w+)[?+*]/g;
- const ROUTE_KEY_NORMAL_RE$1 = /:\w+/g;
- const interpolatePath = (route, match) => {
- return match.path.replace(ROUTE_KEY_PARENTHESES_RE$1, "$1").replace(ROUTE_KEY_SYMBOLS_RE$1, "$1").replace(ROUTE_KEY_NORMAL_RE$1, (r) => {
- var _a;
- return ((_a = route.params[r.slice(1)]) == null ? void 0 : _a.toString()) || "";
- });
- };
- const generateRouteKey$1 = (routeProps, override) => {
- const matchedRoute = routeProps.route.matched.find((m) => {
- var _a;
- return ((_a = m.components) == null ? void 0 : _a.default) === routeProps.Component.type;
- });
- const source = override ?? (matchedRoute == null ? void 0 : matchedRoute.meta.key) ?? (matchedRoute && interpolatePath(routeProps.route, matchedRoute));
- return typeof source === "function" ? source(routeProps.route) : source;
- };
- const wrapInKeepAlive = (props, children) => {
- return { default: () => children };
- };
- function toArray$1(value) {
- return Array.isArray(value) ? value : [value];
- }
- async function getRouteRules(arg) {
- const path = typeof arg === "string" ? arg : arg.path;
- {
- useNuxtApp().ssrContext._preloadManifest = true;
- const _routeRulesMatcher = toRouteMatcher(
- createRouter({ routes: (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules })
- );
- return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
- }
- }
- const __nuxt_page_meta$2 = {
- middleware: "auth"
- };
- const __nuxt_page_meta$1 = {
- middleware: "auth"
- };
- const __nuxt_page_meta = {
- middleware: "auth"
- };
- function handleHotUpdate(_router, _generateRoutes) {
- }
- const _routes = [
- {
- name: "advertising-adDetail",
- path: "/advertising/adDetail",
- component: () => import("./_nuxt/adDetail-JAkO5aWw.js")
- },
- {
- name: "advertising",
- path: "/advertising",
- component: () => import("./_nuxt/index-zzcnYU8i.js")
- },
- {
- name: "index",
- path: "/",
- component: () => import("./_nuxt/index-DkfcpJ6T.js")
- },
- {
- name: "login",
- path: "/login",
- component: () => import("./_nuxt/login-CBBpr7Ja.js")
- },
- {
- name: "newsDetail-id",
- path: "/newsDetail/:id()",
- component: () => import("./_nuxt/_id_-DwABV6sy.js")
- },
- {
- name: "newsList-id",
- path: "/newsList/:id()",
- meta: __nuxt_page_meta$2,
- component: () => import("./_nuxt/_id_-B4Tiqctw.js")
- },
- {
- name: "primaryNavigation-id",
- path: "/primaryNavigation/:id()",
- component: () => import("./_nuxt/_id_-CrdTwoDk.js")
- },
- {
- name: "register",
- path: "/register",
- component: () => import("./_nuxt/register-DR18Dcar.js")
- },
- {
- name: "search-search",
- path: "/search/search",
- meta: __nuxt_page_meta$1,
- component: () => import("./_nuxt/search-BKxW2ZpF.js")
- },
- {
- name: "speciaArticle-id",
- path: "/speciaArticle/:id()",
- component: () => import("./_nuxt/_id_-B78qypTK.js")
- },
- {
- name: "specialList-id",
- path: "/specialList/:id()",
- meta: __nuxt_page_meta,
- component: () => import("./_nuxt/_id_-BcFjZrab.js")
- },
- {
- name: "topic-id",
- path: "/topic/:id()",
- component: () => import("./_nuxt/_id_-DjOYAtbM.js")
- },
- {
- name: "topic",
- path: "/topic",
- component: () => import("./_nuxt/index-CLGwzU5C.js")
- },
- {
- name: "user-about",
- path: "/user/about",
- component: () => import("./_nuxt/about-BngT2DDj.js")
- }
- ];
- const _wrapIf = (component, props, slots) => {
- props = props === true ? {} : props;
- return { default: () => {
- var _a;
- return props ? h(component, props, slots) : (_a = slots.default) == null ? void 0 : _a.call(slots);
- } };
- };
- const ROUTE_KEY_PARENTHESES_RE = /(:\w+)\([^)]+\)/g;
- const ROUTE_KEY_SYMBOLS_RE = /(:\w+)[?+*]/g;
- const ROUTE_KEY_NORMAL_RE = /:\w+/g;
- function generateRouteKey(route) {
- const source = (route == null ? void 0 : route.meta.key) ?? route.path.replace(ROUTE_KEY_PARENTHESES_RE, "$1").replace(ROUTE_KEY_SYMBOLS_RE, "$1").replace(ROUTE_KEY_NORMAL_RE, (r) => {
- var _a;
- return ((_a = route.params[r.slice(1)]) == null ? void 0 : _a.toString()) || "";
- });
- return typeof source === "function" ? source(route) : source;
- }
- function isChangingPage(to, from) {
- if (to === from || from === START_LOCATION) {
- return false;
- }
- if (generateRouteKey(to) !== generateRouteKey(from)) {
- return true;
- }
- const areComponentsSame = to.matched.every(
- (comp, index) => {
- var _a, _b;
- return comp.components && comp.components.default === ((_b = (_a = from.matched[index]) == null ? void 0 : _a.components) == null ? void 0 : _b.default);
- }
- );
- if (areComponentsSame) {
- return false;
- }
- return true;
- }
- const routerOptions0 = {
- scrollBehavior(to, from, savedPosition) {
- var _a;
- const nuxtApp = useNuxtApp();
- const behavior = ((_a = useRouter().options) == null ? void 0 : _a.scrollBehaviorType) ?? "auto";
- let position = savedPosition || void 0;
- const routeAllowsScrollToTop = typeof to.meta.scrollToTop === "function" ? to.meta.scrollToTop(to, from) : to.meta.scrollToTop;
- if (!position && from && to && routeAllowsScrollToTop !== false && isChangingPage(to, from)) {
- position = { left: 0, top: 0 };
- }
- if (to.path === from.path) {
- if (from.hash && !to.hash) {
- return { left: 0, top: 0 };
- }
- if (to.hash) {
- return { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior };
- }
- return false;
- }
- const hasTransition = (route) => !!(route.meta.pageTransition ?? appPageTransition);
- const hookToWait = hasTransition(from) && hasTransition(to) ? "page:transition:finish" : "page:finish";
- return new Promise((resolve) => {
- nuxtApp.hooks.hookOnce(hookToWait, async () => {
- await new Promise((resolve2) => setTimeout(resolve2, 0));
- if (to.hash) {
- position = { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior };
- }
- resolve(position);
- });
- });
- }
- };
- function _getHashElementScrollMarginTop(selector) {
- try {
- const elem = (void 0).querySelector(selector);
- if (elem) {
- return (Number.parseFloat(getComputedStyle(elem).scrollMarginTop) || 0) + (Number.parseFloat(getComputedStyle((void 0).documentElement).scrollPaddingTop) || 0);
- }
- } catch {
- }
- return 0;
- }
- const configRouterOptions = {
- hashMode: false,
- scrollBehaviorType: "auto"
- };
- const hashMode = false;
- const routerOptions = {
- ...configRouterOptions,
- ...routerOptions0
- };
- const validate = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => {
- var _a;
- let __temp, __restore;
- if (!((_a = to.meta) == null ? void 0 : _a.validate)) {
- return;
- }
- const nuxtApp = useNuxtApp();
- const router = useRouter();
- const result = ([__temp, __restore] = executeAsync(() => Promise.resolve(to.meta.validate(to))), __temp = await __temp, __restore(), __temp);
- if (result === true) {
- return;
- }
- const error = createError({
- statusCode: result && result.statusCode || 404,
- statusMessage: result && result.statusMessage || `Page Not Found: ${to.fullPath}`,
- data: {
- path: to.fullPath
- }
- });
- const unsub = router.beforeResolve((final) => {
- unsub();
- if (final === to) {
- const unsub2 = router.afterEach(async () => {
- unsub2();
- await nuxtApp.runWithContext(() => showError(error));
- });
- return false;
- }
- });
- });
- const manifest_45route_45rule = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => {
- {
- return;
- }
- });
- const globalMiddleware = [
- validate,
- manifest_45route_45rule
- ];
- const namedMiddleware = {
- auth: () => import("./_nuxt/auth-DRRsgHvx.js")
- };
- const plugin = /* @__PURE__ */ defineNuxtPlugin({
- name: "nuxt:router",
- enforce: "pre",
- async setup(nuxtApp) {
- var _a, _b, _c;
- let __temp, __restore;
- let routerBase = (/* @__PURE__ */ useRuntimeConfig()).app.baseURL;
- const history = ((_a = routerOptions.history) == null ? void 0 : _a.call(routerOptions, routerBase)) ?? createMemoryHistory(routerBase);
- const routes2 = routerOptions.routes ? ([__temp, __restore] = executeAsync(() => routerOptions.routes(_routes)), __temp = await __temp, __restore(), __temp) ?? _routes : _routes;
- let startPosition;
- const router = createRouter$1({
- ...routerOptions,
- scrollBehavior: (to, from, savedPosition) => {
- if (from === START_LOCATION) {
- startPosition = savedPosition;
- return;
- }
- if (routerOptions.scrollBehavior) {
- router.options.scrollBehavior = routerOptions.scrollBehavior;
- if ("scrollRestoration" in (void 0).history) {
- const unsub = router.beforeEach(() => {
- unsub();
- (void 0).history.scrollRestoration = "manual";
- });
- }
- return routerOptions.scrollBehavior(to, START_LOCATION, startPosition || savedPosition);
- }
- },
- history,
- routes: routes2
- });
- handleHotUpdate(router, routerOptions.routes ? routerOptions.routes : (routes22) => routes22);
- nuxtApp.vueApp.use(router);
- const previousRoute = shallowRef(router.currentRoute.value);
- router.afterEach((_to, from) => {
- previousRoute.value = from;
- });
- Object.defineProperty(nuxtApp.vueApp.config.globalProperties, "previousRoute", {
- get: () => previousRoute.value
- });
- const initialURL = nuxtApp.ssrContext.url;
- const _route = shallowRef(router.currentRoute.value);
- const syncCurrentRoute = () => {
- _route.value = router.currentRoute.value;
- };
- nuxtApp.hook("page:finish", syncCurrentRoute);
- router.afterEach((to, from) => {
- var _a2, _b2, _c2, _d;
- if (((_b2 = (_a2 = to.matched[0]) == null ? void 0 : _a2.components) == null ? void 0 : _b2.default) === ((_d = (_c2 = from.matched[0]) == null ? void 0 : _c2.components) == null ? void 0 : _d.default)) {
- syncCurrentRoute();
- }
- });
- const route = {};
- for (const key in _route.value) {
- Object.defineProperty(route, key, {
- get: () => _route.value[key],
- enumerable: true
- });
- }
- nuxtApp._route = shallowReactive(route);
- nuxtApp._middleware = nuxtApp._middleware || {
- global: [],
- named: {}
- };
- useError();
- if (!((_b = nuxtApp.ssrContext) == null ? void 0 : _b.islandContext)) {
- router.afterEach(async (to, _from, failure) => {
- delete nuxtApp._processingMiddleware;
- if (failure) {
- await nuxtApp.callHook("page:loading:end");
- }
- if ((failure == null ? void 0 : failure.type) === 4) {
- return;
- }
- if (to.redirectedFrom && to.fullPath !== initialURL) {
- await nuxtApp.runWithContext(() => navigateTo(to.fullPath || "/"));
- }
- });
- }
- try {
- if (true) {
- ;
- [__temp, __restore] = executeAsync(() => router.push(initialURL)), await __temp, __restore();
- ;
- }
- ;
- [__temp, __restore] = executeAsync(() => router.isReady()), await __temp, __restore();
- ;
- } catch (error2) {
- [__temp, __restore] = executeAsync(() => nuxtApp.runWithContext(() => showError(error2))), await __temp, __restore();
- }
- const resolvedInitialRoute = router.currentRoute.value;
- syncCurrentRoute();
- if ((_c = nuxtApp.ssrContext) == null ? void 0 : _c.islandContext) {
- return { provide: { router } };
- }
- const initialLayout = nuxtApp.payload.state._layout;
- router.beforeEach(async (to, from) => {
- var _a2, _b2;
- await nuxtApp.callHook("page:loading:start");
- to.meta = reactive(to.meta);
- if (nuxtApp.isHydrating && initialLayout && !isReadonly(to.meta.layout)) {
- to.meta.layout = initialLayout;
- }
- nuxtApp._processingMiddleware = true;
- if (!((_a2 = nuxtApp.ssrContext) == null ? void 0 : _a2.islandContext)) {
- const middlewareEntries = /* @__PURE__ */ new Set([...globalMiddleware, ...nuxtApp._middleware.global]);
- for (const component of to.matched) {
- const componentMiddleware = component.meta.middleware;
- if (!componentMiddleware) {
- continue;
- }
- for (const entry2 of toArray$1(componentMiddleware)) {
- middlewareEntries.add(entry2);
- }
- }
- {
- const routeRules = await nuxtApp.runWithContext(() => getRouteRules({ path: to.path }));
- if (routeRules.appMiddleware) {
- for (const key in routeRules.appMiddleware) {
- if (routeRules.appMiddleware[key]) {
- middlewareEntries.add(key);
- } else {
- middlewareEntries.delete(key);
- }
- }
- }
- }
- for (const entry2 of middlewareEntries) {
- const middleware = typeof entry2 === "string" ? nuxtApp._middleware.named[entry2] || await ((_b2 = namedMiddleware[entry2]) == null ? void 0 : _b2.call(namedMiddleware).then((r) => r.default || r)) : entry2;
- if (!middleware) {
- throw new Error(`Unknown route middleware: '${entry2}'.`);
- }
- const result = await nuxtApp.runWithContext(() => middleware(to, from));
- {
- if (result === false || result instanceof Error) {
- const error2 = result || createError$1({
- statusCode: 404,
- statusMessage: `Page Not Found: ${initialURL}`
- });
- await nuxtApp.runWithContext(() => showError(error2));
- return false;
- }
- }
- if (result === true) {
- continue;
- }
- if (result || result === false) {
- return result;
- }
- }
- }
- });
- router.onError(async () => {
- delete nuxtApp._processingMiddleware;
- await nuxtApp.callHook("page:loading:end");
- });
- router.afterEach(async (to, _from) => {
- if (to.matched.length === 0) {
- await nuxtApp.runWithContext(() => showError(createError$1({
- statusCode: 404,
- fatal: false,
- statusMessage: `Page not found: ${to.fullPath}`,
- data: {
- path: to.fullPath
- }
- })));
- }
- });
- nuxtApp.hooks.hookOnce("app:created", async () => {
- try {
- if ("name" in resolvedInitialRoute) {
- resolvedInitialRoute.name = void 0;
- }
- await router.replace({
- ...resolvedInitialRoute,
- force: true
- });
- router.options.scrollBehavior = routerOptions.scrollBehavior;
- } catch (error2) {
- await nuxtApp.runWithContext(() => showError(error2));
- }
- });
- return { provide: { router } };
- }
- });
- function definePayloadReducer(name, reduce) {
- {
- useNuxtApp().ssrContext._payloadReducers[name] = reduce;
- }
- }
- const reducers = [
- ["NuxtError", (data) => isNuxtError(data) && data.toJSON()],
- ["EmptyShallowRef", (data) => isRef(data) && isShallow(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
- ["EmptyRef", (data) => isRef(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
- ["ShallowRef", (data) => isRef(data) && isShallow(data) && data.value],
- ["ShallowReactive", (data) => isReactive(data) && isShallow(data) && toRaw(data)],
- ["Ref", (data) => isRef(data) && data.value],
- ["Reactive", (data) => isReactive(data) && toRaw(data)]
- ];
- const revive_payload_server_eJ33V7gbc6 = /* @__PURE__ */ defineNuxtPlugin({
- name: "nuxt:revive-payload:server",
- setup() {
- for (const [reducer, fn] of reducers) {
- definePayloadReducer(reducer, fn);
- }
- }
- });
- const components_plugin_KR1HBZs4kY = /* @__PURE__ */ defineNuxtPlugin({
- name: "nuxt:global-components"
- });
- const element_plus_elM4AXquKi = /* @__PURE__ */ defineNuxtPlugin(() => {
- });
- const pinia_Uphuq97G1L = /* @__PURE__ */ defineNuxtPlugin((nuxtApp) => {
- const pinia = createPinia();
- nuxtApp.vueApp.use(pinia);
- return {
- provide: {
- pinia
- }
- };
- });
- function toArray(value) {
- return Array.isArray(value) ? value : [value];
- }
- function useRequestEvent(nuxtApp = useNuxtApp()) {
- var _a;
- return (_a = nuxtApp.ssrContext) == null ? void 0 : _a.event;
- }
- function prerenderRoutes(path) {
- if (!import.meta.prerender) {
- return;
- }
- const paths = toArray(path);
- appendHeader(useRequestEvent(), "x-nitro-prerender", paths.map((p) => encodeURIComponent(p)).join(", "));
- }
- let routes;
- const prerender_server_LXx1wM9sKF = /* @__PURE__ */ defineNuxtPlugin(async () => {
- let __temp, __restore;
- if (!import.meta.prerender || hashMode) {
- return;
- }
- if (routes && !routes.length) {
- return;
- }
- (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules;
- routes || (routes = Array.from(processRoutes(([__temp, __restore] = executeAsync(() => {
- var _a;
- return (_a = routerOptions.routes) == null ? void 0 : _a.call(routerOptions, _routes);
- }), __temp = await __temp, __restore(), __temp) ?? _routes)));
- const batch = routes.splice(0, 10);
- prerenderRoutes(batch);
- });
- const OPTIONAL_PARAM_RE = /^\/?:.*(?:\?|\(\.\*\)\*)$/;
- function shouldPrerender(path) {
- return true;
- }
- function processRoutes(routes2, currentPath = "/", routesToPrerender = /* @__PURE__ */ new Set()) {
- var _a;
- for (const route of routes2) {
- if (OPTIONAL_PARAM_RE.test(route.path) && !((_a = route.children) == null ? void 0 : _a.length) && shouldPrerender()) {
- routesToPrerender.add(currentPath);
- }
- if (route.path.includes(":")) {
- continue;
- }
- const fullPath = joinURL(currentPath, route.path);
- {
- routesToPrerender.add(fullPath);
- }
- if (route.children) {
- processRoutes(route.children, fullPath, routesToPrerender);
- }
- }
- return routesToPrerender;
- }
- const plugins = [
- unhead_KgADcZ0jPj,
- plugin,
- revive_payload_server_eJ33V7gbc6,
- components_plugin_KR1HBZs4kY,
- element_plus_elM4AXquKi,
- pinia_Uphuq97G1L,
- prerender_server_LXx1wM9sKF
- ];
- const layouts = {};
- const LayoutLoader = defineComponent({
- name: "LayoutLoader",
- inheritAttrs: false,
- props: {
- name: String,
- layoutProps: Object
- },
- setup(props, context) {
- return () => h(layouts[props.name], props.layoutProps, context.slots);
- }
- });
- const __nuxt_component_0 = defineComponent({
- name: "NuxtLayout",
- inheritAttrs: false,
- props: {
- name: {
- type: [String, Boolean, Object],
- default: null
- },
- fallback: {
- type: [String, Object],
- default: null
- }
- },
- setup(props, context) {
- const nuxtApp = useNuxtApp();
- const injectedRoute = inject(PageRouteSymbol);
- const route = injectedRoute === useRoute() ? useRoute$1() : injectedRoute;
- const layout = computed(() => {
- let layout2 = unref(props.name) ?? route.meta.layout ?? "default";
- if (layout2 && !(layout2 in layouts)) {
- if (props.fallback) {
- layout2 = unref(props.fallback);
- }
- }
- return layout2;
- });
- const layoutRef = ref();
- context.expose({ layoutRef });
- const done = nuxtApp.deferHydration();
- return () => {
- const hasLayout = layout.value && layout.value in layouts;
- const transitionProps = route.meta.layoutTransition ?? appLayoutTransition;
- return _wrapIf(Transition, hasLayout && transitionProps, {
- default: () => h(Suspense, { suspensible: true, onResolve: () => {
- nextTick(done);
- } }, {
- default: () => h(
- LayoutProvider,
- {
- layoutProps: mergeProps(context.attrs, { ref: layoutRef }),
- key: layout.value || void 0,
- name: layout.value,
- shouldProvide: !props.name,
- hasTransition: !!transitionProps
- },
- context.slots
- )
- })
- }).default();
- };
- }
- });
- const LayoutProvider = defineComponent({
- name: "NuxtLayoutProvider",
- inheritAttrs: false,
- props: {
- name: {
- type: [String, Boolean]
- },
- layoutProps: {
- type: Object
- },
- hasTransition: {
- type: Boolean
- },
- shouldProvide: {
- type: Boolean
- }
- },
- setup(props, context) {
- const name = props.name;
- if (props.shouldProvide) {
- provide(LayoutMetaSymbol, {
- isCurrent: (route) => name === (route.meta.layout ?? "default")
- });
- }
- return () => {
- var _a, _b;
- if (!name || typeof name === "string" && !(name in layouts)) {
- return (_b = (_a = context.slots).default) == null ? void 0 : _b.call(_a);
- }
- return h(
- LayoutLoader,
- { key: name, layoutProps: props.layoutProps, name },
- context.slots
- );
- };
- }
- });
- const RouteProvider = defineComponent({
- props: {
- vnode: {
- type: Object,
- required: true
- },
- route: {
- type: Object,
- required: true
- },
- vnodeRef: Object,
- renderKey: String,
- trackRootNodes: Boolean
- },
- setup(props) {
- const previousKey = props.renderKey;
- const previousRoute = props.route;
- const route = {};
- for (const key in props.route) {
- Object.defineProperty(route, key, {
- get: () => previousKey === props.renderKey ? props.route[key] : previousRoute[key],
- enumerable: true
- });
- }
- provide(PageRouteSymbol, shallowReactive(route));
- return () => {
- return h(props.vnode, { ref: props.vnodeRef });
- };
- }
- });
- const __nuxt_component_1 = defineComponent({
- name: "NuxtPage",
- inheritAttrs: false,
- props: {
- name: {
- type: String
- },
- transition: {
- type: [Boolean, Object],
- default: void 0
- },
- keepalive: {
- type: [Boolean, Object],
- default: void 0
- },
- route: {
- type: Object
- },
- pageKey: {
- type: [Function, String],
- default: null
- }
- },
- setup(props, { attrs, slots, expose }) {
- const nuxtApp = useNuxtApp();
- const pageRef = ref();
- const forkRoute = inject(PageRouteSymbol, null);
- let previousPageKey;
- expose({ pageRef });
- inject(LayoutMetaSymbol, null);
- let vnode;
- const done = nuxtApp.deferHydration();
- if (props.pageKey) {
- watch(() => props.pageKey, (next, prev) => {
- if (next !== prev) {
- nuxtApp.callHook("page:loading:start");
- }
- });
- }
- let pageLoadingEndHookAlreadyCalled = false;
- return () => {
- return h(RouterView, { name: props.name, route: props.route, ...attrs }, {
- default: (routeProps) => {
- if (!routeProps.Component) {
- done();
- return;
- }
- const key = generateRouteKey$1(routeProps, props.pageKey);
- if (!nuxtApp.isHydrating && !hasChildrenRoutes(forkRoute, routeProps.route, routeProps.Component) && previousPageKey === key) {
- nuxtApp.callHook("page:loading:end");
- pageLoadingEndHookAlreadyCalled = true;
- }
- previousPageKey = key;
- const hasTransition = !!(props.transition ?? routeProps.route.meta.pageTransition ?? appPageTransition);
- const transitionProps = hasTransition && _mergeTransitionProps([
- props.transition,
- routeProps.route.meta.pageTransition,
- appPageTransition,
- { onAfterLeave: () => {
- nuxtApp.callHook("page:transition:finish", routeProps.Component);
- } }
- ].filter(Boolean));
- const keepaliveConfig = props.keepalive ?? routeProps.route.meta.keepalive ?? appKeepalive;
- vnode = _wrapIf(
- Transition,
- hasTransition && transitionProps,
- wrapInKeepAlive(
- keepaliveConfig,
- h(Suspense, {
- suspensible: true,
- onPending: () => nuxtApp.callHook("page:start", routeProps.Component),
- onResolve: () => {
- nextTick(() => nuxtApp.callHook("page:finish", routeProps.Component).then(() => {
- if (!pageLoadingEndHookAlreadyCalled) {
- return nuxtApp.callHook("page:loading:end");
- }
- pageLoadingEndHookAlreadyCalled = false;
- }).finally(done));
- }
- }, {
- default: () => {
- const providerVNode = h(RouteProvider, {
- key: key || void 0,
- vnode: slots.default ? h(Fragment, void 0, slots.default(routeProps)) : routeProps.Component,
- route: routeProps.route,
- renderKey: key || void 0,
- trackRootNodes: hasTransition,
- vnodeRef: pageRef
- });
- return providerVNode;
- }
- })
- )
- ).default();
- return vnode;
- }
- });
- };
- }
- });
- function _mergeTransitionProps(routeProps) {
- const _props = routeProps.map((prop) => ({
- ...prop,
- onAfterLeave: prop.onAfterLeave ? toArray$1(prop.onAfterLeave) : void 0
- }));
- return defu(..._props);
- }
- function hasChildrenRoutes(fork, newRoute, Component) {
- if (!fork) {
- return false;
- }
- const index = newRoute.matched.findIndex((m) => {
- var _a;
- return ((_a = m.components) == null ? void 0 : _a.default) === (Component == null ? void 0 : Component.type);
- });
- return index < newRoute.matched.length - 1;
- }
- const _imports_4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAKZElEQVRoQ81bC3BU1Rk+/9ksAQUp8kiQZpMwgEwFfEx1aCtSEBuiSMtYUrIBOlJMdgMMYCm17bTNjJ0+kFFByQsQhH1IIjjTUUSwUZQC1pkCBSwQIcluwAQJhUoIye49p9/NgyYhm5x7dpPxMpnskP/13XPOf/7XEuuFZ26JtA1l1YlMygnMoPuZFBOgZjRjNIoxOQyfb2tVe50Rq2OSzhPJzyXjx8FzzC75yZp+o74ozSAj1uZRzARKSW5fIBUAZkvG5jLJ7msHzKqa62A4BvA7ieitgqzkc1YFRKKPGnBenuSXxlSnhZmxjIg/Ipm8PVbGtcr5ihgdMGT45bs+T30/L49ENPK1AedJyS/uCM6QQv5eSvbdaIxQ4yWJ3XMAL/T5y3GflJVmZGhtdy3ALn9FCkm+FkDnwFiuZnDMqMwV3sm4WF2YmVppVaplwLneqoWCybVwQMOtKosxfa2N0683ZDpesyJXGfCqbTW319tDL0ohsq0o6G1aTpR/VTT+yjt/7H9VdCkBzt5eOZJz8kDgdBWhfU5DrIyF4zMLFyZe7El3j4CX+84l3JC2PSA0r5koHnlRcv4BCXES3qeWOJfEZAJ2zD2M+KO4gqI6IrDvaOi6MXPTM6NruzOyW8CubTUjyNb4Hu5VXbBhYnyfZOF1p8or//Zh3rRwV8Y0e3x/9Q+klCvghaeBpp/OmyViR/qx/unrnAkRQUcEvMxTfkeI+r0VxTauJC6XFmQm74aDwztTeBC8LNlx/gnDMF4FdbICR1ckZQON+NlrFybWd/XHiIBdvsAGbLNcLaXEy0R8//nFTw3/QoffVXJpFAvXb0W0NkOHH6CKEZ3lKAN2+QOLmJCbdZRhKfdetvMflWYkNejwt/GsLAkOaAiLtwFay1HCjp8WZSVv62zDLStsBhVM8sNQlGDVYDihMw1NcurWp1NrrPJ2RZ9bcjFRhG58hIRjrHV58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fpZNvzEq6HA4ZAu50pDWkMn+1OqgN5LvgZm+bWyb6TlcnUznX9HZQCDm8l1HHkCOMeaVNC2Sw+Q407nRezWfNkODMQQQaUbiXu1PeDRJLWeA2AFIfSWYL4c9LETSzCTEHI0RL1Vb9H0589HIXPQIPwWIzD0E6B7EJfpkCGpfR2ZZFBhDyK+hZaix7ilk6yHetyLxViHxnutrZrg3why3n9OGbdSeQT5ZUMgsk9orcqDTqKC+/DIO/FqRW4NUeYg93FNvQ8dqNI/WGWBQNZtLSNnPrO8EnKfD3lsXDSZ5KA2WBL8JUaS+gpUOCyF/E3LVTJOr7CVIvYsvbTKQzvgvZF8jhTmhJDAWUK2qRgP3dD7/CXO4NQ18+yBx5qEyNncGnRolg7GAos53zV0ARNphGV+IQwBC8SkjOU7mnrvk0SkwSQ05DyH8pi+1S2dE5DvIH/a+oNTReTAmsxObi7naUpnAPo1WZjIqaXSlpY9Og7HawXcU3c9Z7YjMSX9HKYKlBEqlHzlf1suyP/YWsT+ztEvAWEAmEtU6d+Ppfjy7IZk5jlprPjVTU1dU3l0G5hwghf8DgHoqzwfdLJDvsyO3dGXF3aVg0oxKHT7Tan4MfnRDkIYQvf6I5FgPhz8QUoOhlp0XMFZLE/HBqrezGHcBpj22l+F2njnuVOi5/ETwR9ZQXOdZdN7AZJiP0Tho6VGEbx8fV9c4w2l5Zx09H+DzDiYd7YppyErVzqcCplTmit33fzDFSuzTWv8/gHPqYRXKkssAAAAASUVORK5CYII=";
- const _export_sfc = (sfc, props) => {
- const target = sfc.__vccOpts || sfc;
- for (const [key, val] of props) {
- target[key] = val;
- }
- return target;
- };
- const _sfc_main$2 = {
- __name: "app",
- __ssrInlineRender: true,
- setup(__props) {
- return (_ctx, _push, _parent, _attrs) => {
- const _component_NuxtLayout = __nuxt_component_0;
- const _component_NuxtPage = __nuxt_component_1;
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "sannong" }, _attrs))} data-v-82c887d8>`);
- _push(ssrRenderComponent(_component_NuxtLayout, null, {
- default: withCtx((_, _push2, _parent2, _scopeId) => {
- if (_push2) {
- _push2(ssrRenderComponent(_component_NuxtPage, null, null, _parent2, _scopeId));
- _push2(`<ul class="kefu" data-v-82c887d8${_scopeId}><li data-v-82c887d8${_scopeId}>`);
- _push2(ssrRenderComponent(unref(ElPopover), {
- ref: "popover",
- placement: "right",
- width: 80,
- trigger: "hover"
- }, {
- reference: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`<img${ssrRenderAttr("src", _imports_4)} alt="" data-v-82c887d8${_scopeId2}>`);
- } else {
- return [
- createVNode("img", {
- src: _imports_4,
- alt: ""
- })
- ];
- }
- }),
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`<p data-v-82c887d8${_scopeId2}>联系QQ:</p><p data-v-82c887d8${_scopeId2}>2909421493</p><p data-v-82c887d8${_scopeId2}>213552413</p>`);
- } else {
- return [
- createVNode("p", null, "联系QQ:"),
- createVNode("p", null, "2909421493"),
- createVNode("p", null, "213552413")
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- _push2(`<h6 data-v-82c887d8${_scopeId}>QQ客服</h6></li><li data-v-82c887d8${_scopeId}>`);
- _push2(ssrRenderComponent(unref(ElPopover), {
- ref: "popover",
- placement: "right",
- width: 80,
- trigger: "hover"
- }, {
- reference: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`<img${ssrRenderAttr("src", _imports_5)} alt="" data-v-82c887d8${_scopeId2}>`);
- } else {
- return [
- createVNode("img", {
- src: _imports_5,
- alt: ""
- })
- ];
- }
- }),
- default: withCtx((_2, _push3, _parent3, _scopeId2) => {
- if (_push3) {
- _push3(`<p data-v-82c887d8${_scopeId2}>联系电话:</p><p data-v-82c887d8${_scopeId2}>010-56019387</p>`);
- } else {
- return [
- createVNode("p", null, "联系电话:"),
- createVNode("p", null, "010-56019387")
- ];
- }
- }),
- _: 1
- }, _parent2, _scopeId));
- _push2(`<h6 data-v-82c887d8${_scopeId}>电话客服</h6></li></ul>`);
- } else {
- return [
- createVNode(_component_NuxtPage),
- createVNode("ul", { class: "kefu" }, [
- createVNode("li", null, [
- createVNode(unref(ElPopover), {
- ref: "popover",
- placement: "right",
- width: 80,
- trigger: "hover"
- }, {
- reference: withCtx(() => [
- createVNode("img", {
- src: _imports_4,
- alt: ""
- })
- ]),
- default: withCtx(() => [
- createVNode("p", null, "联系QQ:"),
- createVNode("p", null, "2909421493"),
- createVNode("p", null, "213552413")
- ]),
- _: 1
- }, 512),
- createVNode("h6", null, "QQ客服")
- ]),
- createVNode("li", null, [
- createVNode(unref(ElPopover), {
- ref: "popover",
- placement: "right",
- width: 80,
- trigger: "hover"
- }, {
- reference: withCtx(() => [
- createVNode("img", {
- src: _imports_5,
- alt: ""
- })
- ]),
- default: withCtx(() => [
- createVNode("p", null, "联系电话:"),
- createVNode("p", null, "010-56019387")
- ]),
- _: 1
- }, 512),
- createVNode("h6", null, "电话客服")
- ])
- ])
- ];
- }
- }),
- _: 1
- }, _parent));
- _push(`</div>`);
- };
- }
- };
- const _sfc_setup$2 = _sfc_main$2.setup;
- _sfc_main$2.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("app.vue");
- return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
- };
- const AppComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-82c887d8"]]);
- const _sfc_main$1 = {
- __name: "nuxt-error-page",
- __ssrInlineRender: true,
- props: {
- error: Object
- },
- setup(__props) {
- const props = __props;
- const _error = props.error;
- _error.stack ? _error.stack.split("\n").splice(1).map((line) => {
- const text = line.replace("webpack:/", "").replace(".vue", ".js").trim();
- return {
- text,
- internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise")
- };
- }).map((i) => `<span class="stack${i.internal ? " internal" : ""}">${i.text}</span>`).join("\n") : "";
- const statusCode = Number(_error.statusCode || 500);
- const is404 = statusCode === 404;
- const statusMessage = _error.statusMessage ?? (is404 ? "Page Not Found" : "Internal Server Error");
- const description = _error.message || _error.toString();
- const stack = void 0;
- const _Error404 = defineAsyncComponent(() => import("./_nuxt/error-404-BxLHD5OU.js"));
- const _Error = defineAsyncComponent(() => import("./_nuxt/error-500-BgZPBPyl.js"));
- const ErrorTemplate = is404 ? _Error404 : _Error;
- return (_ctx, _push, _parent, _attrs) => {
- _push(ssrRenderComponent(unref(ErrorTemplate), mergeProps({ statusCode: unref(statusCode), statusMessage: unref(statusMessage), description: unref(description), stack: unref(stack) }, _attrs), null, _parent));
- };
- }
- };
- const _sfc_setup$1 = _sfc_main$1.setup;
- _sfc_main$1.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/nuxt-error-page.vue");
- return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
- };
- const _sfc_main = {
- __name: "nuxt-root",
- __ssrInlineRender: true,
- setup(__props) {
- const IslandRenderer = () => null;
- const nuxtApp = useNuxtApp();
- nuxtApp.deferHydration();
- nuxtApp.ssrContext.url;
- const SingleRenderer = false;
- provide(PageRouteSymbol, useRoute());
- nuxtApp.hooks.callHookWith((hooks) => hooks.map((hook) => hook()), "vue:setup");
- const error = useError();
- const abortRender = error.value && !nuxtApp.ssrContext.error;
- onErrorCaptured((err, target, info) => {
- nuxtApp.hooks.callHook("vue:error", err, target, info).catch((hookError) => console.error("[nuxt] Error in `vue:error` hook", hookError));
- {
- const p = nuxtApp.runWithContext(() => showError(err));
- onServerPrefetch(() => p);
- return false;
- }
- });
- const islandContext = nuxtApp.ssrContext.islandContext;
- return (_ctx, _push, _parent, _attrs) => {
- ssrRenderSuspense(_push, {
- default: () => {
- if (unref(abortRender)) {
- _push(`<div></div>`);
- } else if (unref(error)) {
- _push(ssrRenderComponent(unref(_sfc_main$1), { error: unref(error) }, null, _parent));
- } else if (unref(islandContext)) {
- _push(ssrRenderComponent(unref(IslandRenderer), { context: unref(islandContext) }, null, _parent));
- } else if (unref(SingleRenderer)) {
- ssrRenderVNode(_push, createVNode(resolveDynamicComponent(unref(SingleRenderer)), null, null), _parent);
- } else {
- _push(ssrRenderComponent(unref(AppComponent), null, null, _parent));
- }
- },
- _: 1
- });
- };
- }
- };
- const _sfc_setup = _sfc_main.setup;
- _sfc_main.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/nuxt-root.vue");
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
- };
- let entry;
- {
- entry = async function createNuxtAppServer(ssrContext) {
- const vueApp = createApp(_sfc_main);
- const nuxt = createNuxtApp({ vueApp, ssrContext });
- try {
- await applyPlugins(nuxt, plugins);
- await nuxt.hooks.callHook("app:created", vueApp);
- } catch (error) {
- await nuxt.hooks.callHook("app:error", error);
- nuxt.payload.error = nuxt.payload.error || createError(error);
- }
- if (ssrContext == null ? void 0 : ssrContext._renderResponse) {
- throw new Error("skipping render");
- }
- return vueApp;
- };
- }
- const entry$1 = (ssrContext) => entry(ssrContext);
- export {
- _export_sfc as _,
- navigateTo as a,
- useNuxtApp as b,
- useRuntimeConfig as c,
- resolveUnrefHeadInput as d,
- entry$1 as default,
- useRoute as e,
- injectHead as i,
- nuxtLinkDefaults as n,
- resolveRouteObject as r,
- useRouter as u
- };
- //# sourceMappingURL=server.mjs.map
|