server.mjs 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613
  1. import { hasInjectionContext, inject, version, unref, defineComponent, h, computed, ref, provide, shallowReactive, watch, Suspense, nextTick, Fragment, Transition, getCurrentInstance, mergeProps, useSSRContext, createApp, effectScope, reactive, getCurrentScope, withCtx, createVNode, onErrorCaptured, onServerPrefetch, resolveDynamicComponent, toRef, defineAsyncComponent, shallowRef, isReadonly, isRef, isShallow, isReactive, toRaw } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/vue/index.mjs';
  2. import { $fetch } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs';
  3. import { b as baseURL } from '../_/renderer.mjs';
  4. import { createHooks } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/hookable/dist/index.mjs';
  5. import { getContext } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/unctx/dist/index.mjs';
  6. import { sanitizeStatusCode, createError as createError$1, appendHeader } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/h3/dist/index.mjs';
  7. import { getActiveHead, CapoPlugin } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/unhead/dist/index.mjs';
  8. import { defineHeadPlugin } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs';
  9. import { useRoute as useRoute$1, RouterView, createMemoryHistory, createRouter, START_LOCATION } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs';
  10. import { toRouteMatcher, createRouter as createRouter$1 } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/radix3/dist/index.mjs';
  11. import { defu } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/defu/dist/defu.mjs';
  12. import { hasProtocol, isScriptProtocol, joinURL, withQuery } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/ufo/dist/index.mjs';
  13. import { createPinia } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs';
  14. import { ssrRenderAttrs, ssrRenderComponent, ssrRenderAttr, ssrRenderSuspense, ssrRenderVNode } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  15. import { ElPopover } from 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  16. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs';
  17. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/devalue/index.js';
  18. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs';
  19. import '../_/nitro.mjs';
  20. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/destr/dist/index.mjs';
  21. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs';
  22. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/klona/dist/index.mjs';
  23. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/scule/dist/index.mjs';
  24. import 'node:fs';
  25. import 'node:url';
  26. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/pathe/dist/index.mjs';
  27. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/ohash/dist/index.mjs';
  28. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs';
  29. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs';
  30. import 'file:///D:/MyProject/106/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js';
  31. import 'file://D:/MyProject/106/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs';
  32. if (!globalThis.$fetch) {
  33. globalThis.$fetch = $fetch.create({
  34. baseURL: baseURL()
  35. });
  36. }
  37. const appLayoutTransition = false;
  38. const appPageTransition = false;
  39. const appKeepalive = false;
  40. const nuxtLinkDefaults = { "componentName": "NuxtLink", "prefetch": true, "prefetchOn": { "visibility": true } };
  41. const appId = "nuxt-app";
  42. function getNuxtAppCtx(id = appId) {
  43. return getContext(id, {
  44. asyncContext: false
  45. });
  46. }
  47. const NuxtPluginIndicator = "__nuxt_plugin";
  48. function createNuxtApp(options) {
  49. var _a;
  50. let hydratingCount = 0;
  51. const nuxtApp = {
  52. _id: options.id || appId || "nuxt-app",
  53. _scope: effectScope(),
  54. provide: undefined,
  55. globalName: "nuxt",
  56. versions: {
  57. get nuxt() {
  58. return "3.15.2";
  59. },
  60. get vue() {
  61. return nuxtApp.vueApp.version;
  62. }
  63. },
  64. payload: shallowReactive({
  65. ...((_a = options.ssrContext) == null ? undefined : _a.payload) || {},
  66. data: shallowReactive({}),
  67. state: reactive({}),
  68. once: /* @__PURE__ */ new Set(),
  69. _errors: shallowReactive({})
  70. }),
  71. static: {
  72. data: {}
  73. },
  74. runWithContext(fn) {
  75. if (nuxtApp._scope.active && !getCurrentScope()) {
  76. return nuxtApp._scope.run(() => callWithNuxt(nuxtApp, fn));
  77. }
  78. return callWithNuxt(nuxtApp, fn);
  79. },
  80. isHydrating: false,
  81. deferHydration() {
  82. if (!nuxtApp.isHydrating) {
  83. return () => {
  84. };
  85. }
  86. hydratingCount++;
  87. let called = false;
  88. return () => {
  89. if (called) {
  90. return;
  91. }
  92. called = true;
  93. hydratingCount--;
  94. if (hydratingCount === 0) {
  95. nuxtApp.isHydrating = false;
  96. return nuxtApp.callHook("app:suspense:resolve");
  97. }
  98. };
  99. },
  100. _asyncDataPromises: {},
  101. _asyncData: shallowReactive({}),
  102. _payloadRevivers: {},
  103. ...options
  104. };
  105. {
  106. nuxtApp.payload.serverRendered = true;
  107. }
  108. if (nuxtApp.ssrContext) {
  109. nuxtApp.payload.path = nuxtApp.ssrContext.url;
  110. nuxtApp.ssrContext.nuxt = nuxtApp;
  111. nuxtApp.ssrContext.payload = nuxtApp.payload;
  112. nuxtApp.ssrContext.config = {
  113. public: nuxtApp.ssrContext.runtimeConfig.public,
  114. app: nuxtApp.ssrContext.runtimeConfig.app
  115. };
  116. }
  117. nuxtApp.hooks = createHooks();
  118. nuxtApp.hook = nuxtApp.hooks.hook;
  119. {
  120. const contextCaller = async function(hooks, args) {
  121. for (const hook of hooks) {
  122. await nuxtApp.runWithContext(() => hook(...args));
  123. }
  124. };
  125. nuxtApp.hooks.callHook = (name, ...args) => nuxtApp.hooks.callHookWith(contextCaller, name, ...args);
  126. }
  127. nuxtApp.callHook = nuxtApp.hooks.callHook;
  128. nuxtApp.provide = (name, value) => {
  129. const $name = "$" + name;
  130. defineGetter(nuxtApp, $name, value);
  131. defineGetter(nuxtApp.vueApp.config.globalProperties, $name, value);
  132. };
  133. defineGetter(nuxtApp.vueApp, "$nuxt", nuxtApp);
  134. defineGetter(nuxtApp.vueApp.config.globalProperties, "$nuxt", nuxtApp);
  135. const runtimeConfig = options.ssrContext.runtimeConfig;
  136. nuxtApp.provide("config", runtimeConfig);
  137. return nuxtApp;
  138. }
  139. function registerPluginHooks(nuxtApp, plugin2) {
  140. if (plugin2.hooks) {
  141. nuxtApp.hooks.addHooks(plugin2.hooks);
  142. }
  143. }
  144. async function applyPlugin(nuxtApp, plugin2) {
  145. if (typeof plugin2 === "function") {
  146. const { provide: provide2 } = await nuxtApp.runWithContext(() => plugin2(nuxtApp)) || {};
  147. if (provide2 && typeof provide2 === "object") {
  148. for (const key in provide2) {
  149. nuxtApp.provide(key, provide2[key]);
  150. }
  151. }
  152. }
  153. }
  154. async function applyPlugins(nuxtApp, plugins2) {
  155. var _a, _b, _c, _d;
  156. const resolvedPlugins = [];
  157. const unresolvedPlugins = [];
  158. const parallels = [];
  159. const errors = [];
  160. let promiseDepth = 0;
  161. async function executePlugin(plugin2) {
  162. var _a2;
  163. const unresolvedPluginsForThisPlugin = ((_a2 = plugin2.dependsOn) == null ? undefined : _a2.filter((name) => plugins2.some((p) => p._name === name) && !resolvedPlugins.includes(name))) ?? [];
  164. if (unresolvedPluginsForThisPlugin.length > 0) {
  165. unresolvedPlugins.push([new Set(unresolvedPluginsForThisPlugin), plugin2]);
  166. } else {
  167. const promise = applyPlugin(nuxtApp, plugin2).then(async () => {
  168. if (plugin2._name) {
  169. resolvedPlugins.push(plugin2._name);
  170. await Promise.all(unresolvedPlugins.map(async ([dependsOn, unexecutedPlugin]) => {
  171. if (dependsOn.has(plugin2._name)) {
  172. dependsOn.delete(plugin2._name);
  173. if (dependsOn.size === 0) {
  174. promiseDepth++;
  175. await executePlugin(unexecutedPlugin);
  176. }
  177. }
  178. }));
  179. }
  180. });
  181. if (plugin2.parallel) {
  182. parallels.push(promise.catch((e) => errors.push(e)));
  183. } else {
  184. await promise;
  185. }
  186. }
  187. }
  188. for (const plugin2 of plugins2) {
  189. if (((_a = nuxtApp.ssrContext) == null ? undefined : _a.islandContext) && ((_b = plugin2.env) == null ? undefined : _b.islands) === false) {
  190. continue;
  191. }
  192. registerPluginHooks(nuxtApp, plugin2);
  193. }
  194. for (const plugin2 of plugins2) {
  195. if (((_c = nuxtApp.ssrContext) == null ? undefined : _c.islandContext) && ((_d = plugin2.env) == null ? undefined : _d.islands) === false) {
  196. continue;
  197. }
  198. await executePlugin(plugin2);
  199. }
  200. await Promise.all(parallels);
  201. if (promiseDepth) {
  202. for (let i = 0; i < promiseDepth; i++) {
  203. await Promise.all(parallels);
  204. }
  205. }
  206. if (errors.length) {
  207. throw errors[0];
  208. }
  209. }
  210. // @__NO_SIDE_EFFECTS__
  211. function defineNuxtPlugin(plugin2) {
  212. if (typeof plugin2 === "function") {
  213. return plugin2;
  214. }
  215. const _name = plugin2._name || plugin2.name;
  216. delete plugin2.name;
  217. return Object.assign(plugin2.setup || (() => {
  218. }), plugin2, { [NuxtPluginIndicator]: true, _name });
  219. }
  220. function callWithNuxt(nuxt, setup, args) {
  221. const fn = () => setup();
  222. const nuxtAppCtx = getNuxtAppCtx(nuxt._id);
  223. {
  224. return nuxt.vueApp.runWithContext(() => nuxtAppCtx.callAsync(nuxt, fn));
  225. }
  226. }
  227. function tryUseNuxtApp(id) {
  228. var _a;
  229. let nuxtAppInstance;
  230. if (hasInjectionContext()) {
  231. nuxtAppInstance = (_a = getCurrentInstance()) == null ? undefined : _a.appContext.app.$nuxt;
  232. }
  233. nuxtAppInstance = nuxtAppInstance || getNuxtAppCtx(id).tryUse();
  234. return nuxtAppInstance || null;
  235. }
  236. function useNuxtApp(id) {
  237. const nuxtAppInstance = tryUseNuxtApp(id);
  238. if (!nuxtAppInstance) {
  239. {
  240. throw new Error("[nuxt] instance unavailable");
  241. }
  242. }
  243. return nuxtAppInstance;
  244. }
  245. // @__NO_SIDE_EFFECTS__
  246. function useRuntimeConfig(_event) {
  247. return useNuxtApp().$config;
  248. }
  249. function defineGetter(obj, key, val) {
  250. Object.defineProperty(obj, key, { get: () => val });
  251. }
  252. const LayoutMetaSymbol = Symbol("layout-meta");
  253. const PageRouteSymbol = Symbol("route");
  254. const useRouter = () => {
  255. var _a;
  256. return (_a = useNuxtApp()) == null ? undefined : _a.$router;
  257. };
  258. const useRoute = () => {
  259. if (hasInjectionContext()) {
  260. return inject(PageRouteSymbol, useNuxtApp()._route);
  261. }
  262. return useNuxtApp()._route;
  263. };
  264. // @__NO_SIDE_EFFECTS__
  265. function defineNuxtRouteMiddleware(middleware) {
  266. return middleware;
  267. }
  268. const isProcessingMiddleware = () => {
  269. try {
  270. if (useNuxtApp()._processingMiddleware) {
  271. return true;
  272. }
  273. } catch {
  274. return false;
  275. }
  276. return false;
  277. };
  278. const URL_QUOTE_RE = /"/g;
  279. const navigateTo = (to, options) => {
  280. if (!to) {
  281. to = "/";
  282. }
  283. const toPath = typeof to === "string" ? to : "path" in to ? resolveRouteObject(to) : useRouter().resolve(to).href;
  284. const isExternalHost = hasProtocol(toPath, { acceptRelative: true });
  285. const isExternal = (options == null ? undefined : options.external) || isExternalHost;
  286. if (isExternal) {
  287. if (!(options == null ? undefined : options.external)) {
  288. throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");
  289. }
  290. const { protocol } = new URL(toPath, "http://localhost");
  291. if (protocol && isScriptProtocol(protocol)) {
  292. throw new Error(`Cannot navigate to a URL with '${protocol}' protocol.`);
  293. }
  294. }
  295. const inMiddleware = isProcessingMiddleware();
  296. const router = useRouter();
  297. const nuxtApp = useNuxtApp();
  298. {
  299. if (nuxtApp.ssrContext) {
  300. const fullPath = typeof to === "string" || isExternal ? toPath : router.resolve(to).fullPath || "/";
  301. const location2 = isExternal ? toPath : joinURL((/* @__PURE__ */ useRuntimeConfig()).app.baseURL, fullPath);
  302. const redirect = async function(response) {
  303. await nuxtApp.callHook("app:redirected");
  304. const encodedLoc = location2.replace(URL_QUOTE_RE, "%22");
  305. const encodedHeader = encodeURL(location2, isExternalHost);
  306. nuxtApp.ssrContext._renderResponse = {
  307. statusCode: sanitizeStatusCode((options == null ? undefined : options.redirectCode) || 302, 302),
  308. body: `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=${encodedLoc}"></head></html>`,
  309. headers: { location: encodedHeader }
  310. };
  311. return response;
  312. };
  313. if (!isExternal && inMiddleware) {
  314. router.afterEach((final) => final.fullPath === fullPath ? redirect(false) : undefined);
  315. return to;
  316. }
  317. return redirect(!inMiddleware ? undefined : (
  318. /* abort route navigation */
  319. false
  320. ));
  321. }
  322. }
  323. if (isExternal) {
  324. nuxtApp._scope.stop();
  325. if (options == null ? undefined : options.replace) {
  326. (undefined).replace(toPath);
  327. } else {
  328. (undefined).href = toPath;
  329. }
  330. if (inMiddleware) {
  331. if (!nuxtApp.isHydrating) {
  332. return false;
  333. }
  334. return new Promise(() => {
  335. });
  336. }
  337. return Promise.resolve();
  338. }
  339. return (options == null ? undefined : options.replace) ? router.replace(to) : router.push(to);
  340. };
  341. function resolveRouteObject(to) {
  342. return withQuery(to.path || "", to.query || {}) + (to.hash || "");
  343. }
  344. function encodeURL(location2, isExternalHost = false) {
  345. const url = new URL(location2, "http://localhost");
  346. if (!isExternalHost) {
  347. return url.pathname + url.search + url.hash;
  348. }
  349. if (location2.startsWith("//")) {
  350. return url.toString().replace(url.protocol, "");
  351. }
  352. return url.toString();
  353. }
  354. const NUXT_ERROR_SIGNATURE = "__nuxt_error";
  355. const useError = () => toRef(useNuxtApp().payload, "error");
  356. const showError = (error) => {
  357. const nuxtError = createError(error);
  358. try {
  359. const nuxtApp = useNuxtApp();
  360. const error2 = useError();
  361. if (false) ;
  362. error2.value = error2.value || nuxtError;
  363. } catch {
  364. throw nuxtError;
  365. }
  366. return nuxtError;
  367. };
  368. const isNuxtError = (error) => !!error && typeof error === "object" && NUXT_ERROR_SIGNATURE in error;
  369. const createError = (error) => {
  370. const nuxtError = createError$1(error);
  371. Object.defineProperty(nuxtError, NUXT_ERROR_SIGNATURE, {
  372. value: true,
  373. configurable: false,
  374. writable: false
  375. });
  376. return nuxtError;
  377. };
  378. version[0] === "3";
  379. function resolveUnref(r) {
  380. return typeof r === "function" ? r() : unref(r);
  381. }
  382. function resolveUnrefHeadInput(ref2) {
  383. if (ref2 instanceof Promise || ref2 instanceof Date || ref2 instanceof RegExp)
  384. return ref2;
  385. const root = resolveUnref(ref2);
  386. if (!ref2 || !root)
  387. return root;
  388. if (Array.isArray(root))
  389. return root.map((r) => resolveUnrefHeadInput(r));
  390. if (typeof root === "object") {
  391. const resolved = {};
  392. for (const k in root) {
  393. if (!Object.prototype.hasOwnProperty.call(root, k)) {
  394. continue;
  395. }
  396. if (k === "titleTemplate" || k[0] === "o" && k[1] === "n") {
  397. resolved[k] = unref(root[k]);
  398. continue;
  399. }
  400. resolved[k] = resolveUnrefHeadInput(root[k]);
  401. }
  402. return resolved;
  403. }
  404. return root;
  405. }
  406. defineHeadPlugin({
  407. hooks: {
  408. "entries:resolve": (ctx) => {
  409. for (const entry2 of ctx.entries)
  410. entry2.resolvedInput = resolveUnrefHeadInput(entry2.input);
  411. }
  412. }
  413. });
  414. const headSymbol = "usehead";
  415. const _global = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
  416. const globalKey$1 = "__unhead_injection_handler__";
  417. function setHeadInjectionHandler(handler) {
  418. _global[globalKey$1] = handler;
  419. }
  420. function injectHead() {
  421. if (globalKey$1 in _global) {
  422. return _global[globalKey$1]();
  423. }
  424. const head = inject(headSymbol);
  425. if (!head && "prerender" !== "production")
  426. console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results.");
  427. return head || getActiveHead();
  428. }
  429. [CapoPlugin({ track: true })];
  430. const unhead_KgADcZ0jPj = /* @__PURE__ */ defineNuxtPlugin({
  431. name: "nuxt:head",
  432. enforce: "pre",
  433. setup(nuxtApp) {
  434. const head = nuxtApp.ssrContext.head;
  435. setHeadInjectionHandler(
  436. // need a fresh instance of the nuxt app to avoid parallel requests interfering with each other
  437. () => useNuxtApp().vueApp._context.provides.usehead
  438. );
  439. nuxtApp.vueApp.use(head);
  440. }
  441. });
  442. function createContext(opts = {}) {
  443. let currentInstance;
  444. let isSingleton = false;
  445. const checkConflict = (instance) => {
  446. if (currentInstance && currentInstance !== instance) {
  447. throw new Error("Context conflict");
  448. }
  449. };
  450. let als;
  451. if (opts.asyncContext) {
  452. const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
  453. if (_AsyncLocalStorage) {
  454. als = new _AsyncLocalStorage();
  455. } else {
  456. console.warn("[unctx] `AsyncLocalStorage` is not provided.");
  457. }
  458. }
  459. const _getCurrentInstance = () => {
  460. if (als) {
  461. const instance = als.getStore();
  462. if (instance !== undefined) {
  463. return instance;
  464. }
  465. }
  466. return currentInstance;
  467. };
  468. return {
  469. use: () => {
  470. const _instance = _getCurrentInstance();
  471. if (_instance === undefined) {
  472. throw new Error("Context is not available");
  473. }
  474. return _instance;
  475. },
  476. tryUse: () => {
  477. return _getCurrentInstance();
  478. },
  479. set: (instance, replace) => {
  480. if (!replace) {
  481. checkConflict(instance);
  482. }
  483. currentInstance = instance;
  484. isSingleton = true;
  485. },
  486. unset: () => {
  487. currentInstance = undefined;
  488. isSingleton = false;
  489. },
  490. call: (instance, callback) => {
  491. checkConflict(instance);
  492. currentInstance = instance;
  493. try {
  494. return als ? als.run(instance, callback) : callback();
  495. } finally {
  496. if (!isSingleton) {
  497. currentInstance = undefined;
  498. }
  499. }
  500. },
  501. async callAsync(instance, callback) {
  502. currentInstance = instance;
  503. const onRestore = () => {
  504. currentInstance = instance;
  505. };
  506. const onLeave = () => currentInstance === instance ? onRestore : undefined;
  507. asyncHandlers.add(onLeave);
  508. try {
  509. const r = als ? als.run(instance, callback) : callback();
  510. if (!isSingleton) {
  511. currentInstance = void 0;
  512. }
  513. return await r;
  514. } finally {
  515. asyncHandlers.delete(onLeave);
  516. }
  517. }
  518. };
  519. }
  520. function createNamespace(defaultOpts = {}) {
  521. const contexts = {};
  522. return {
  523. get(key, opts = {}) {
  524. if (!contexts[key]) {
  525. contexts[key] = createContext({ ...defaultOpts, ...opts });
  526. }
  527. return contexts[key];
  528. }
  529. };
  530. }
  531. const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : {};
  532. const globalKey = "__unctx__";
  533. _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
  534. const asyncHandlersKey = "__unctx_async_handlers__";
  535. const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
  536. function executeAsync(function_) {
  537. const restores = [];
  538. for (const leaveHandler of asyncHandlers) {
  539. const restore2 = leaveHandler();
  540. if (restore2) {
  541. restores.push(restore2);
  542. }
  543. }
  544. const restore = () => {
  545. for (const restore2 of restores) {
  546. restore2();
  547. }
  548. };
  549. let awaitable = function_();
  550. if (awaitable && typeof awaitable === "object" && "catch" in awaitable) {
  551. awaitable = awaitable.catch((error) => {
  552. restore();
  553. throw error;
  554. });
  555. }
  556. return [awaitable, restore];
  557. }
  558. const ROUTE_KEY_PARENTHESES_RE$1 = /(:\w+)\([^)]+\)/g;
  559. const ROUTE_KEY_SYMBOLS_RE$1 = /(:\w+)[?+*]/g;
  560. const ROUTE_KEY_NORMAL_RE$1 = /:\w+/g;
  561. const interpolatePath = (route, match) => {
  562. return match.path.replace(ROUTE_KEY_PARENTHESES_RE$1, "$1").replace(ROUTE_KEY_SYMBOLS_RE$1, "$1").replace(ROUTE_KEY_NORMAL_RE$1, (r) => {
  563. var _a;
  564. return ((_a = route.params[r.slice(1)]) == null ? undefined : _a.toString()) || "";
  565. });
  566. };
  567. const generateRouteKey$1 = (routeProps, override) => {
  568. const matchedRoute = routeProps.route.matched.find((m) => {
  569. var _a;
  570. return ((_a = m.components) == null ? undefined : _a.default) === routeProps.Component.type;
  571. });
  572. const source = override ?? (matchedRoute == null ? undefined : matchedRoute.meta.key) ?? (matchedRoute && interpolatePath(routeProps.route, matchedRoute));
  573. return typeof source === "function" ? source(routeProps.route) : source;
  574. };
  575. const wrapInKeepAlive = (props, children) => {
  576. return { default: () => children };
  577. };
  578. function toArray$1(value) {
  579. return Array.isArray(value) ? value : [value];
  580. }
  581. async function getRouteRules(arg) {
  582. const path = typeof arg === "string" ? arg : arg.path;
  583. {
  584. useNuxtApp().ssrContext._preloadManifest = true;
  585. const _routeRulesMatcher = toRouteMatcher(
  586. createRouter$1({ routes: (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules })
  587. );
  588. return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
  589. }
  590. }
  591. const __nuxt_page_meta$2 = {
  592. middleware: "auth"
  593. };
  594. const __nuxt_page_meta$1 = {
  595. middleware: "auth"
  596. };
  597. const __nuxt_page_meta = {
  598. middleware: "auth"
  599. };
  600. function handleHotUpdate(_router, _generateRoutes) {
  601. }
  602. const _routes = [
  603. {
  604. name: "advertising-adDetail",
  605. path: "/advertising/adDetail",
  606. component: () => import('./adDetail-JAkO5aWw.mjs')
  607. },
  608. {
  609. name: "advertising",
  610. path: "/advertising",
  611. component: () => import('./index-BpT1pGsO.mjs')
  612. },
  613. {
  614. name: "index",
  615. path: "/",
  616. <<<<<<< HEAD
  617. component: () => import('./index-BxalZGa9.mjs')
  618. =======
  619. component: () => import('./index-FK_4huuY.mjs')
  620. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  621. },
  622. {
  623. name: "login",
  624. path: "/login",
  625. component: () => import('./login-CBBpr7Ja.mjs')
  626. },
  627. {
  628. name: "newsDetail-id",
  629. path: "/newsDetail/:id()",
  630. <<<<<<< HEAD
  631. component: () => import('./_id_-3tx0HR2H.mjs')
  632. =======
  633. component: () => import('./_id_-BNd21hu7.mjs')
  634. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  635. },
  636. {
  637. name: "newsList-id",
  638. path: "/newsList/:id()",
  639. meta: __nuxt_page_meta$2,
  640. <<<<<<< HEAD
  641. component: () => import('./_id_-BU_vm2iC.mjs')
  642. =======
  643. component: () => import('./_id_-C70kO_XP.mjs')
  644. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  645. },
  646. {
  647. name: "primaryNavigation-id",
  648. path: "/primaryNavigation/:id()",
  649. <<<<<<< HEAD
  650. component: () => import('./_id_-DP-QpKvt.mjs')
  651. =======
  652. component: () => import('./_id_-DDbbm6qp.mjs')
  653. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  654. },
  655. {
  656. name: "register",
  657. path: "/register",
  658. component: () => import('./register-DR18Dcar.mjs')
  659. },
  660. {
  661. name: "search-search",
  662. path: "/search/search",
  663. meta: __nuxt_page_meta$1,
  664. <<<<<<< HEAD
  665. component: () => import('./search-DzEFXOnh.mjs')
  666. =======
  667. component: () => import('./search-DpXZKddr.mjs')
  668. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  669. },
  670. {
  671. name: "speciaArticle-id",
  672. path: "/speciaArticle/:id()",
  673. <<<<<<< HEAD
  674. component: () => import('./_id_-DRqxuxzU.mjs')
  675. =======
  676. component: () => import('./_id_-oH1qnq9a.mjs')
  677. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  678. },
  679. {
  680. name: "specialList-id",
  681. path: "/specialList/:id()",
  682. meta: __nuxt_page_meta,
  683. <<<<<<< HEAD
  684. component: () => import('./_id_-B3Ptmx42.mjs')
  685. =======
  686. component: () => import('./_id_-Dtcj9jfR.mjs')
  687. >>>>>>> c4ce2241b7fbd8890bcb17e4917d271c9bf7889b
  688. },
  689. {
  690. name: "topic-id",
  691. path: "/topic/:id()",
  692. component: () => import('./_id_-DjOYAtbM.mjs')
  693. },
  694. {
  695. name: "topic",
  696. path: "/topic",
  697. component: () => import('./index-CLGwzU5C.mjs')
  698. },
  699. {
  700. name: "user-about",
  701. path: "/user/about",
  702. component: () => import('./about-BngT2DDj.mjs')
  703. }
  704. ];
  705. const _wrapIf = (component, props, slots) => {
  706. props = props === true ? {} : props;
  707. return { default: () => {
  708. var _a;
  709. return props ? h(component, props, slots) : (_a = slots.default) == null ? undefined : _a.call(slots);
  710. } };
  711. };
  712. const ROUTE_KEY_PARENTHESES_RE = /(:\w+)\([^)]+\)/g;
  713. const ROUTE_KEY_SYMBOLS_RE = /(:\w+)[?+*]/g;
  714. const ROUTE_KEY_NORMAL_RE = /:\w+/g;
  715. function generateRouteKey(route) {
  716. const source = (route == null ? undefined : route.meta.key) ?? route.path.replace(ROUTE_KEY_PARENTHESES_RE, "$1").replace(ROUTE_KEY_SYMBOLS_RE, "$1").replace(ROUTE_KEY_NORMAL_RE, (r) => {
  717. var _a;
  718. return ((_a = route.params[r.slice(1)]) == null ? undefined : _a.toString()) || "";
  719. });
  720. return typeof source === "function" ? source(route) : source;
  721. }
  722. function isChangingPage(to, from) {
  723. if (to === from || from === START_LOCATION) {
  724. return false;
  725. }
  726. if (generateRouteKey(to) !== generateRouteKey(from)) {
  727. return true;
  728. }
  729. const areComponentsSame = to.matched.every(
  730. (comp, index) => {
  731. var _a, _b;
  732. return comp.components && comp.components.default === ((_b = (_a = from.matched[index]) == null ? undefined : _a.components) == null ? undefined : _b.default);
  733. }
  734. );
  735. if (areComponentsSame) {
  736. return false;
  737. }
  738. return true;
  739. }
  740. const routerOptions0 = {
  741. scrollBehavior(to, from, savedPosition) {
  742. var _a;
  743. const nuxtApp = useNuxtApp();
  744. const behavior = ((_a = useRouter().options) == null ? undefined : _a.scrollBehaviorType) ?? "auto";
  745. let position = savedPosition || undefined;
  746. const routeAllowsScrollToTop = typeof to.meta.scrollToTop === "function" ? to.meta.scrollToTop(to, from) : to.meta.scrollToTop;
  747. if (!position && from && to && routeAllowsScrollToTop !== false && isChangingPage(to, from)) {
  748. position = { left: 0, top: 0 };
  749. }
  750. if (to.path === from.path) {
  751. if (from.hash && !to.hash) {
  752. return { left: 0, top: 0 };
  753. }
  754. if (to.hash) {
  755. return { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior };
  756. }
  757. return false;
  758. }
  759. const hasTransition = (route) => !!(route.meta.pageTransition ?? appPageTransition);
  760. const hookToWait = hasTransition(from) && hasTransition(to) ? "page:transition:finish" : "page:finish";
  761. return new Promise((resolve) => {
  762. nuxtApp.hooks.hookOnce(hookToWait, async () => {
  763. await new Promise((resolve2) => setTimeout(resolve2, 0));
  764. if (to.hash) {
  765. position = { el: to.hash, top: _getHashElementScrollMarginTop(to.hash), behavior };
  766. }
  767. resolve(position);
  768. });
  769. });
  770. }
  771. };
  772. function _getHashElementScrollMarginTop(selector) {
  773. try {
  774. const elem = (void 0).querySelector(selector);
  775. if (elem) {
  776. return (Number.parseFloat(getComputedStyle(elem).scrollMarginTop) || 0) + (Number.parseFloat(getComputedStyle((void 0).documentElement).scrollPaddingTop) || 0);
  777. }
  778. } catch {
  779. }
  780. return 0;
  781. }
  782. const configRouterOptions = {
  783. hashMode: false,
  784. scrollBehaviorType: "auto"
  785. };
  786. const routerOptions = {
  787. ...configRouterOptions,
  788. ...routerOptions0
  789. };
  790. const validate = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => {
  791. var _a;
  792. let __temp, __restore;
  793. if (!((_a = to.meta) == null ? undefined : _a.validate)) {
  794. return;
  795. }
  796. const nuxtApp = useNuxtApp();
  797. const router = useRouter();
  798. const result = ([__temp, __restore] = executeAsync(() => Promise.resolve(to.meta.validate(to))), __temp = await __temp, __restore(), __temp);
  799. if (result === true) {
  800. return;
  801. }
  802. const error = createError({
  803. statusCode: result && result.statusCode || 404,
  804. statusMessage: result && result.statusMessage || `Page Not Found: ${to.fullPath}`,
  805. data: {
  806. path: to.fullPath
  807. }
  808. });
  809. const unsub = router.beforeResolve((final) => {
  810. unsub();
  811. if (final === to) {
  812. const unsub2 = router.afterEach(async () => {
  813. unsub2();
  814. await nuxtApp.runWithContext(() => showError(error));
  815. });
  816. return false;
  817. }
  818. });
  819. });
  820. const manifest_45route_45rule = /* @__PURE__ */ defineNuxtRouteMiddleware(async (to) => {
  821. {
  822. return;
  823. }
  824. });
  825. const globalMiddleware = [
  826. validate,
  827. manifest_45route_45rule
  828. ];
  829. const namedMiddleware = {
  830. auth: () => import('./auth-DRRsgHvx.mjs')
  831. };
  832. const plugin = /* @__PURE__ */ defineNuxtPlugin({
  833. name: "nuxt:router",
  834. enforce: "pre",
  835. async setup(nuxtApp) {
  836. var _a, _b, _c;
  837. let __temp, __restore;
  838. let routerBase = (/* @__PURE__ */ useRuntimeConfig()).app.baseURL;
  839. const history = ((_a = routerOptions.history) == null ? undefined : _a.call(routerOptions, routerBase)) ?? createMemoryHistory(routerBase);
  840. const routes2 = routerOptions.routes ? ([__temp, __restore] = executeAsync(() => routerOptions.routes(_routes)), __temp = await __temp, __restore(), __temp) ?? _routes : _routes;
  841. let startPosition;
  842. const router = createRouter({
  843. ...routerOptions,
  844. scrollBehavior: (to, from, savedPosition) => {
  845. if (from === START_LOCATION) {
  846. startPosition = savedPosition;
  847. return;
  848. }
  849. if (routerOptions.scrollBehavior) {
  850. router.options.scrollBehavior = routerOptions.scrollBehavior;
  851. if ("scrollRestoration" in (undefined).history) {
  852. const unsub = router.beforeEach(() => {
  853. unsub();
  854. (undefined).history.scrollRestoration = "manual";
  855. });
  856. }
  857. return routerOptions.scrollBehavior(to, START_LOCATION, startPosition || savedPosition);
  858. }
  859. },
  860. history,
  861. routes: routes2
  862. });
  863. handleHotUpdate(router, routerOptions.routes ? routerOptions.routes : (routes22) => routes22);
  864. nuxtApp.vueApp.use(router);
  865. const previousRoute = shallowRef(router.currentRoute.value);
  866. router.afterEach((_to, from) => {
  867. previousRoute.value = from;
  868. });
  869. Object.defineProperty(nuxtApp.vueApp.config.globalProperties, "previousRoute", {
  870. get: () => previousRoute.value
  871. });
  872. const initialURL = nuxtApp.ssrContext.url;
  873. const _route = shallowRef(router.currentRoute.value);
  874. const syncCurrentRoute = () => {
  875. _route.value = router.currentRoute.value;
  876. };
  877. nuxtApp.hook("page:finish", syncCurrentRoute);
  878. router.afterEach((to, from) => {
  879. var _a2, _b2, _c2, _d;
  880. if (((_b2 = (_a2 = to.matched[0]) == null ? undefined : _a2.components) == null ? undefined : _b2.default) === ((_d = (_c2 = from.matched[0]) == null ? undefined : _c2.components) == null ? undefined : _d.default)) {
  881. syncCurrentRoute();
  882. }
  883. });
  884. const route = {};
  885. for (const key in _route.value) {
  886. Object.defineProperty(route, key, {
  887. get: () => _route.value[key],
  888. enumerable: true
  889. });
  890. }
  891. nuxtApp._route = shallowReactive(route);
  892. nuxtApp._middleware = nuxtApp._middleware || {
  893. global: [],
  894. named: {}
  895. };
  896. useError();
  897. if (!((_b = nuxtApp.ssrContext) == null ? undefined : _b.islandContext)) {
  898. router.afterEach(async (to, _from, failure) => {
  899. delete nuxtApp._processingMiddleware;
  900. if (failure) {
  901. await nuxtApp.callHook("page:loading:end");
  902. }
  903. if ((failure == null ? undefined : failure.type) === 4) {
  904. return;
  905. }
  906. if (to.redirectedFrom && to.fullPath !== initialURL) {
  907. await nuxtApp.runWithContext(() => navigateTo(to.fullPath || "/"));
  908. }
  909. });
  910. }
  911. try {
  912. if (true) {
  913. ;
  914. [__temp, __restore] = executeAsync(() => router.push(initialURL)), await __temp, __restore();
  915. ;
  916. }
  917. ;
  918. [__temp, __restore] = executeAsync(() => router.isReady()), await __temp, __restore();
  919. ;
  920. } catch (error2) {
  921. [__temp, __restore] = executeAsync(() => nuxtApp.runWithContext(() => showError(error2))), await __temp, __restore();
  922. }
  923. const resolvedInitialRoute = router.currentRoute.value;
  924. syncCurrentRoute();
  925. if ((_c = nuxtApp.ssrContext) == null ? undefined : _c.islandContext) {
  926. return { provide: { router } };
  927. }
  928. const initialLayout = nuxtApp.payload.state._layout;
  929. router.beforeEach(async (to, from) => {
  930. var _a2, _b2;
  931. await nuxtApp.callHook("page:loading:start");
  932. to.meta = reactive(to.meta);
  933. if (nuxtApp.isHydrating && initialLayout && !isReadonly(to.meta.layout)) {
  934. to.meta.layout = initialLayout;
  935. }
  936. nuxtApp._processingMiddleware = true;
  937. if (!((_a2 = nuxtApp.ssrContext) == null ? undefined : _a2.islandContext)) {
  938. const middlewareEntries = /* @__PURE__ */ new Set([...globalMiddleware, ...nuxtApp._middleware.global]);
  939. for (const component of to.matched) {
  940. const componentMiddleware = component.meta.middleware;
  941. if (!componentMiddleware) {
  942. continue;
  943. }
  944. for (const entry2 of toArray$1(componentMiddleware)) {
  945. middlewareEntries.add(entry2);
  946. }
  947. }
  948. {
  949. const routeRules = await nuxtApp.runWithContext(() => getRouteRules({ path: to.path }));
  950. if (routeRules.appMiddleware) {
  951. for (const key in routeRules.appMiddleware) {
  952. if (routeRules.appMiddleware[key]) {
  953. middlewareEntries.add(key);
  954. } else {
  955. middlewareEntries.delete(key);
  956. }
  957. }
  958. }
  959. }
  960. for (const entry2 of middlewareEntries) {
  961. const middleware = typeof entry2 === "string" ? nuxtApp._middleware.named[entry2] || await ((_b2 = namedMiddleware[entry2]) == null ? undefined : _b2.call(namedMiddleware).then((r) => r.default || r)) : entry2;
  962. if (!middleware) {
  963. throw new Error(`Unknown route middleware: '${entry2}'.`);
  964. }
  965. const result = await nuxtApp.runWithContext(() => middleware(to, from));
  966. {
  967. if (result === false || result instanceof Error) {
  968. const error2 = result || createError$1({
  969. statusCode: 404,
  970. statusMessage: `Page Not Found: ${initialURL}`
  971. });
  972. await nuxtApp.runWithContext(() => showError(error2));
  973. return false;
  974. }
  975. }
  976. if (result === true) {
  977. continue;
  978. }
  979. if (result || result === false) {
  980. return result;
  981. }
  982. }
  983. }
  984. });
  985. router.onError(async () => {
  986. delete nuxtApp._processingMiddleware;
  987. await nuxtApp.callHook("page:loading:end");
  988. });
  989. router.afterEach(async (to, _from) => {
  990. if (to.matched.length === 0) {
  991. await nuxtApp.runWithContext(() => showError(createError$1({
  992. statusCode: 404,
  993. fatal: false,
  994. statusMessage: `Page not found: ${to.fullPath}`,
  995. data: {
  996. path: to.fullPath
  997. }
  998. })));
  999. }
  1000. });
  1001. nuxtApp.hooks.hookOnce("app:created", async () => {
  1002. try {
  1003. if ("name" in resolvedInitialRoute) {
  1004. resolvedInitialRoute.name = void 0;
  1005. }
  1006. await router.replace({
  1007. ...resolvedInitialRoute,
  1008. force: true
  1009. });
  1010. router.options.scrollBehavior = routerOptions.scrollBehavior;
  1011. } catch (error2) {
  1012. await nuxtApp.runWithContext(() => showError(error2));
  1013. }
  1014. });
  1015. return { provide: { router } };
  1016. }
  1017. });
  1018. function definePayloadReducer(name, reduce) {
  1019. {
  1020. useNuxtApp().ssrContext._payloadReducers[name] = reduce;
  1021. }
  1022. }
  1023. const reducers = [
  1024. ["NuxtError", (data) => isNuxtError(data) && data.toJSON()],
  1025. ["EmptyShallowRef", (data) => isRef(data) && isShallow(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
  1026. ["EmptyRef", (data) => isRef(data) && !data.value && (typeof data.value === "bigint" ? "0n" : JSON.stringify(data.value) || "_")],
  1027. ["ShallowRef", (data) => isRef(data) && isShallow(data) && data.value],
  1028. ["ShallowReactive", (data) => isReactive(data) && isShallow(data) && toRaw(data)],
  1029. ["Ref", (data) => isRef(data) && data.value],
  1030. ["Reactive", (data) => isReactive(data) && toRaw(data)]
  1031. ];
  1032. const revive_payload_server_eJ33V7gbc6 = /* @__PURE__ */ defineNuxtPlugin({
  1033. name: "nuxt:revive-payload:server",
  1034. setup() {
  1035. for (const [reducer, fn] of reducers) {
  1036. definePayloadReducer(reducer, fn);
  1037. }
  1038. }
  1039. });
  1040. const components_plugin_KR1HBZs4kY = /* @__PURE__ */ defineNuxtPlugin({
  1041. name: "nuxt:global-components"
  1042. });
  1043. const element_plus_elM4AXquKi = /* @__PURE__ */ defineNuxtPlugin(() => {
  1044. });
  1045. const pinia_Uphuq97G1L = /* @__PURE__ */ defineNuxtPlugin((nuxtApp) => {
  1046. const pinia = createPinia();
  1047. nuxtApp.vueApp.use(pinia);
  1048. return {
  1049. provide: {
  1050. pinia
  1051. }
  1052. };
  1053. });
  1054. function toArray(value) {
  1055. return Array.isArray(value) ? value : [value];
  1056. }
  1057. function useRequestEvent(nuxtApp = useNuxtApp()) {
  1058. var _a;
  1059. return (_a = nuxtApp.ssrContext) == null ? undefined : _a.event;
  1060. }
  1061. function prerenderRoutes(path) {
  1062. const paths = toArray(path);
  1063. appendHeader(useRequestEvent(), "x-nitro-prerender", paths.map((p) => encodeURIComponent(p)).join(", "));
  1064. }
  1065. let routes;
  1066. const prerender_server_LXx1wM9sKF = /* @__PURE__ */ defineNuxtPlugin(async () => {
  1067. let __temp, __restore;
  1068. if (routes && !routes.length) {
  1069. return;
  1070. }
  1071. (/* @__PURE__ */ useRuntimeConfig()).nitro.routeRules;
  1072. routes || (routes = Array.from(processRoutes(([__temp, __restore] = executeAsync(() => {
  1073. var _a;
  1074. return (_a = routerOptions.routes) == null ? undefined : _a.call(routerOptions, _routes);
  1075. }), __temp = await __temp, __restore(), __temp) ?? _routes)));
  1076. const batch = routes.splice(0, 10);
  1077. prerenderRoutes(batch);
  1078. });
  1079. const OPTIONAL_PARAM_RE = /^\/?:.*(?:\?|\(\.\*\)\*)$/;
  1080. function shouldPrerender(path) {
  1081. return true;
  1082. }
  1083. function processRoutes(routes2, currentPath = "/", routesToPrerender = /* @__PURE__ */ new Set()) {
  1084. var _a;
  1085. for (const route of routes2) {
  1086. if (OPTIONAL_PARAM_RE.test(route.path) && !((_a = route.children) == null ? undefined : _a.length) && shouldPrerender()) {
  1087. routesToPrerender.add(currentPath);
  1088. }
  1089. if (route.path.includes(":")) {
  1090. continue;
  1091. }
  1092. const fullPath = joinURL(currentPath, route.path);
  1093. {
  1094. routesToPrerender.add(fullPath);
  1095. }
  1096. if (route.children) {
  1097. processRoutes(route.children, fullPath, routesToPrerender);
  1098. }
  1099. }
  1100. return routesToPrerender;
  1101. }
  1102. const plugins = [
  1103. unhead_KgADcZ0jPj,
  1104. plugin,
  1105. revive_payload_server_eJ33V7gbc6,
  1106. components_plugin_KR1HBZs4kY,
  1107. element_plus_elM4AXquKi,
  1108. pinia_Uphuq97G1L,
  1109. prerender_server_LXx1wM9sKF
  1110. ];
  1111. const layouts = {};
  1112. const LayoutLoader = defineComponent({
  1113. name: "LayoutLoader",
  1114. inheritAttrs: false,
  1115. props: {
  1116. name: String,
  1117. layoutProps: Object
  1118. },
  1119. setup(props, context) {
  1120. return () => h(layouts[props.name], props.layoutProps, context.slots);
  1121. }
  1122. });
  1123. const __nuxt_component_0 = defineComponent({
  1124. name: "NuxtLayout",
  1125. inheritAttrs: false,
  1126. props: {
  1127. name: {
  1128. type: [String, Boolean, Object],
  1129. default: null
  1130. },
  1131. fallback: {
  1132. type: [String, Object],
  1133. default: null
  1134. }
  1135. },
  1136. setup(props, context) {
  1137. const nuxtApp = useNuxtApp();
  1138. const injectedRoute = inject(PageRouteSymbol);
  1139. const route = injectedRoute === useRoute() ? useRoute$1() : injectedRoute;
  1140. const layout = computed(() => {
  1141. let layout2 = unref(props.name) ?? route.meta.layout ?? "default";
  1142. if (layout2 && !(layout2 in layouts)) {
  1143. if (props.fallback) {
  1144. layout2 = unref(props.fallback);
  1145. }
  1146. }
  1147. return layout2;
  1148. });
  1149. const layoutRef = ref();
  1150. context.expose({ layoutRef });
  1151. const done = nuxtApp.deferHydration();
  1152. return () => {
  1153. const hasLayout = layout.value && layout.value in layouts;
  1154. const transitionProps = route.meta.layoutTransition ?? appLayoutTransition;
  1155. return _wrapIf(Transition, hasLayout && transitionProps, {
  1156. default: () => h(Suspense, { suspensible: true, onResolve: () => {
  1157. nextTick(done);
  1158. } }, {
  1159. default: () => h(
  1160. LayoutProvider,
  1161. {
  1162. layoutProps: mergeProps(context.attrs, { ref: layoutRef }),
  1163. key: layout.value || undefined,
  1164. name: layout.value,
  1165. shouldProvide: !props.name,
  1166. hasTransition: !!transitionProps
  1167. },
  1168. context.slots
  1169. )
  1170. })
  1171. }).default();
  1172. };
  1173. }
  1174. });
  1175. const LayoutProvider = defineComponent({
  1176. name: "NuxtLayoutProvider",
  1177. inheritAttrs: false,
  1178. props: {
  1179. name: {
  1180. type: [String, Boolean]
  1181. },
  1182. layoutProps: {
  1183. type: Object
  1184. },
  1185. hasTransition: {
  1186. type: Boolean
  1187. },
  1188. shouldProvide: {
  1189. type: Boolean
  1190. }
  1191. },
  1192. setup(props, context) {
  1193. const name = props.name;
  1194. if (props.shouldProvide) {
  1195. provide(LayoutMetaSymbol, {
  1196. isCurrent: (route) => name === (route.meta.layout ?? "default")
  1197. });
  1198. }
  1199. return () => {
  1200. var _a, _b;
  1201. if (!name || typeof name === "string" && !(name in layouts)) {
  1202. return (_b = (_a = context.slots).default) == null ? undefined : _b.call(_a);
  1203. }
  1204. return h(
  1205. LayoutLoader,
  1206. { key: name, layoutProps: props.layoutProps, name },
  1207. context.slots
  1208. );
  1209. };
  1210. }
  1211. });
  1212. const RouteProvider = defineComponent({
  1213. props: {
  1214. vnode: {
  1215. type: Object,
  1216. required: true
  1217. },
  1218. route: {
  1219. type: Object,
  1220. required: true
  1221. },
  1222. vnodeRef: Object,
  1223. renderKey: String,
  1224. trackRootNodes: Boolean
  1225. },
  1226. setup(props) {
  1227. const previousKey = props.renderKey;
  1228. const previousRoute = props.route;
  1229. const route = {};
  1230. for (const key in props.route) {
  1231. Object.defineProperty(route, key, {
  1232. get: () => previousKey === props.renderKey ? props.route[key] : previousRoute[key],
  1233. enumerable: true
  1234. });
  1235. }
  1236. provide(PageRouteSymbol, shallowReactive(route));
  1237. return () => {
  1238. return h(props.vnode, { ref: props.vnodeRef });
  1239. };
  1240. }
  1241. });
  1242. const __nuxt_component_1 = defineComponent({
  1243. name: "NuxtPage",
  1244. inheritAttrs: false,
  1245. props: {
  1246. name: {
  1247. type: String
  1248. },
  1249. transition: {
  1250. type: [Boolean, Object],
  1251. default: undefined
  1252. },
  1253. keepalive: {
  1254. type: [Boolean, Object],
  1255. default: undefined
  1256. },
  1257. route: {
  1258. type: Object
  1259. },
  1260. pageKey: {
  1261. type: [Function, String],
  1262. default: null
  1263. }
  1264. },
  1265. setup(props, { attrs, slots, expose }) {
  1266. const nuxtApp = useNuxtApp();
  1267. const pageRef = ref();
  1268. const forkRoute = inject(PageRouteSymbol, null);
  1269. let previousPageKey;
  1270. expose({ pageRef });
  1271. inject(LayoutMetaSymbol, null);
  1272. let vnode;
  1273. const done = nuxtApp.deferHydration();
  1274. if (props.pageKey) {
  1275. watch(() => props.pageKey, (next, prev) => {
  1276. if (next !== prev) {
  1277. nuxtApp.callHook("page:loading:start");
  1278. }
  1279. });
  1280. }
  1281. let pageLoadingEndHookAlreadyCalled = false;
  1282. return () => {
  1283. return h(RouterView, { name: props.name, route: props.route, ...attrs }, {
  1284. default: (routeProps) => {
  1285. if (!routeProps.Component) {
  1286. done();
  1287. return;
  1288. }
  1289. const key = generateRouteKey$1(routeProps, props.pageKey);
  1290. if (!nuxtApp.isHydrating && !hasChildrenRoutes(forkRoute, routeProps.route, routeProps.Component) && previousPageKey === key) {
  1291. nuxtApp.callHook("page:loading:end");
  1292. pageLoadingEndHookAlreadyCalled = true;
  1293. }
  1294. previousPageKey = key;
  1295. const hasTransition = !!(props.transition ?? routeProps.route.meta.pageTransition ?? appPageTransition);
  1296. const transitionProps = hasTransition && _mergeTransitionProps([
  1297. props.transition,
  1298. routeProps.route.meta.pageTransition,
  1299. appPageTransition,
  1300. { onAfterLeave: () => {
  1301. nuxtApp.callHook("page:transition:finish", routeProps.Component);
  1302. } }
  1303. ].filter(Boolean));
  1304. const keepaliveConfig = props.keepalive ?? routeProps.route.meta.keepalive ?? appKeepalive;
  1305. vnode = _wrapIf(
  1306. Transition,
  1307. hasTransition && transitionProps,
  1308. wrapInKeepAlive(
  1309. keepaliveConfig,
  1310. h(Suspense, {
  1311. suspensible: true,
  1312. onPending: () => nuxtApp.callHook("page:start", routeProps.Component),
  1313. onResolve: () => {
  1314. nextTick(() => nuxtApp.callHook("page:finish", routeProps.Component).then(() => {
  1315. if (!pageLoadingEndHookAlreadyCalled) {
  1316. return nuxtApp.callHook("page:loading:end");
  1317. }
  1318. pageLoadingEndHookAlreadyCalled = false;
  1319. }).finally(done));
  1320. }
  1321. }, {
  1322. default: () => {
  1323. const providerVNode = h(RouteProvider, {
  1324. key: key || undefined,
  1325. vnode: slots.default ? h(Fragment, undefined, slots.default(routeProps)) : routeProps.Component,
  1326. route: routeProps.route,
  1327. renderKey: key || undefined,
  1328. trackRootNodes: hasTransition,
  1329. vnodeRef: pageRef
  1330. });
  1331. return providerVNode;
  1332. }
  1333. })
  1334. )
  1335. ).default();
  1336. return vnode;
  1337. }
  1338. });
  1339. };
  1340. }
  1341. });
  1342. function _mergeTransitionProps(routeProps) {
  1343. const _props = routeProps.map((prop) => ({
  1344. ...prop,
  1345. onAfterLeave: prop.onAfterLeave ? toArray$1(prop.onAfterLeave) : undefined
  1346. }));
  1347. return defu(..._props);
  1348. }
  1349. function hasChildrenRoutes(fork, newRoute, Component) {
  1350. if (!fork) {
  1351. return false;
  1352. }
  1353. const index = newRoute.matched.findIndex((m) => {
  1354. var _a;
  1355. return ((_a = m.components) == null ? undefined : _a.default) === (Component == null ? undefined : Component.type);
  1356. });
  1357. return index < newRoute.matched.length - 1;
  1358. }
  1359. const _imports_4 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAKZElEQVRoQ81bC3BU1Rk+/9ksAQUp8kiQZpMwgEwFfEx1aCtSEBuiSMtYUrIBOlJMdgMMYCm17bTNjJ0+kFFByQsQhH1IIjjTUUSwUZQC1pkCBSwQIcluwAQJhUoIye49p9/NgyYhm5x7dpPxMpnskP/13XPOf/7XEuuFZ26JtA1l1YlMygnMoPuZFBOgZjRjNIoxOQyfb2tVe50Rq2OSzhPJzyXjx8FzzC75yZp+o74ozSAj1uZRzARKSW5fIBUAZkvG5jLJ7msHzKqa62A4BvA7ieitgqzkc1YFRKKPGnBenuSXxlSn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IQwBC8SkjOU7mnrvk0SkwSQ05DyH8pi+1S2dE5DvIH/a+oNTReTAmsxObi7naUpnAPo1WZjIqaXSlpY9Og7HawXcU3c9Z7YjMSX9HKYKlBEqlHzlf1suyP/YWsT+ztEvAWEAmEtU6d+Ppfjy7IZk5jlprPjVTU1dU3l0G5hwghf8DgHoqzwfdLJDvsyO3dGXF3aVg0oxKHT7Tan4MfnRDkIYQvf6I5FgPhz8QUoOhlp0XMFZLE/HBqrezGHcBpj22l+F2njnuVOi5/ETwR9ZQXOdZdN7AZJiP0Tho6VGEbx8fV9c4w2l5Zx09H+DzDiYd7YppyErVzqcCplTmit33fzDFSuzTWv8/gHPqYRXKkssAAAAASUVORK5CYII=";
  1361. const _export_sfc = (sfc, props) => {
  1362. const target = sfc.__vccOpts || sfc;
  1363. for (const [key, val] of props) {
  1364. target[key] = val;
  1365. }
  1366. return target;
  1367. };
  1368. const _sfc_main$2 = {
  1369. __name: "app",
  1370. __ssrInlineRender: true,
  1371. setup(__props) {
  1372. return (_ctx, _push, _parent, _attrs) => {
  1373. const _component_NuxtLayout = __nuxt_component_0;
  1374. const _component_NuxtPage = __nuxt_component_1;
  1375. _push(`<div${ssrRenderAttrs(mergeProps({ class: "sannong" }, _attrs))} data-v-834c1f96>`);
  1376. _push(ssrRenderComponent(_component_NuxtLayout, null, {
  1377. default: withCtx((_, _push2, _parent2, _scopeId) => {
  1378. if (_push2) {
  1379. _push2(ssrRenderComponent(_component_NuxtPage, null, null, _parent2, _scopeId));
  1380. _push2(`<ul class="kefu" data-v-834c1f96${_scopeId}><li data-v-834c1f96${_scopeId}>`);
  1381. _push2(ssrRenderComponent(unref(ElPopover), {
  1382. ref: "popover",
  1383. placement: "right",
  1384. width: 80,
  1385. trigger: "hover"
  1386. }, {
  1387. reference: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1388. if (_push3) {
  1389. _push3(`<img${ssrRenderAttr("src", _imports_4)} alt="" data-v-834c1f96${_scopeId2}>`);
  1390. } else {
  1391. return [
  1392. createVNode("img", {
  1393. src: _imports_4,
  1394. alt: ""
  1395. })
  1396. ];
  1397. }
  1398. }),
  1399. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1400. if (_push3) {
  1401. _push3(`<p data-v-834c1f96${_scopeId2}>联系QQ:</p><p data-v-834c1f96${_scopeId2}>2909421493</p><p data-v-834c1f96${_scopeId2}>213552413</p>`);
  1402. } else {
  1403. return [
  1404. createVNode("p", null, "联系QQ:"),
  1405. createVNode("p", null, "2909421493"),
  1406. createVNode("p", null, "213552413")
  1407. ];
  1408. }
  1409. }),
  1410. _: 1
  1411. }, _parent2, _scopeId));
  1412. _push2(`<h6 data-v-834c1f96${_scopeId}>QQ客服</h6></li><li data-v-834c1f96${_scopeId}>`);
  1413. _push2(ssrRenderComponent(unref(ElPopover), {
  1414. ref: "popover",
  1415. placement: "right",
  1416. width: 80,
  1417. trigger: "hover"
  1418. }, {
  1419. reference: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1420. if (_push3) {
  1421. _push3(`<img${ssrRenderAttr("src", _imports_5)} alt="" data-v-834c1f96${_scopeId2}>`);
  1422. } else {
  1423. return [
  1424. createVNode("img", {
  1425. src: _imports_5,
  1426. alt: ""
  1427. })
  1428. ];
  1429. }
  1430. }),
  1431. default: withCtx((_2, _push3, _parent3, _scopeId2) => {
  1432. if (_push3) {
  1433. _push3(`<p data-v-834c1f96${_scopeId2}>联系电话:</p><p data-v-834c1f96${_scopeId2}>010-56019387</p>`);
  1434. } else {
  1435. return [
  1436. createVNode("p", null, "联系电话:"),
  1437. createVNode("p", null, "010-56019387")
  1438. ];
  1439. }
  1440. }),
  1441. _: 1
  1442. }, _parent2, _scopeId));
  1443. _push2(`<h6 data-v-834c1f96${_scopeId}>电话客服</h6></li></ul>`);
  1444. } else {
  1445. return [
  1446. createVNode(_component_NuxtPage),
  1447. createVNode("ul", { class: "kefu" }, [
  1448. createVNode("li", null, [
  1449. createVNode(unref(ElPopover), {
  1450. ref: "popover",
  1451. placement: "right",
  1452. width: 80,
  1453. trigger: "hover"
  1454. }, {
  1455. reference: withCtx(() => [
  1456. createVNode("img", {
  1457. src: _imports_4,
  1458. alt: ""
  1459. })
  1460. ]),
  1461. default: withCtx(() => [
  1462. createVNode("p", null, "联系QQ:"),
  1463. createVNode("p", null, "2909421493"),
  1464. createVNode("p", null, "213552413")
  1465. ]),
  1466. _: 1
  1467. }, 512),
  1468. createVNode("h6", null, "QQ客服")
  1469. ]),
  1470. createVNode("li", null, [
  1471. createVNode(unref(ElPopover), {
  1472. ref: "popover",
  1473. placement: "right",
  1474. width: 80,
  1475. trigger: "hover"
  1476. }, {
  1477. reference: withCtx(() => [
  1478. createVNode("img", {
  1479. src: _imports_5,
  1480. alt: ""
  1481. })
  1482. ]),
  1483. default: withCtx(() => [
  1484. createVNode("p", null, "联系电话:"),
  1485. createVNode("p", null, "010-56019387")
  1486. ]),
  1487. _: 1
  1488. }, 512),
  1489. createVNode("h6", null, "电话客服")
  1490. ])
  1491. ])
  1492. ];
  1493. }
  1494. }),
  1495. _: 1
  1496. }, _parent));
  1497. _push(`</div>`);
  1498. };
  1499. }
  1500. };
  1501. const _sfc_setup$2 = _sfc_main$2.setup;
  1502. _sfc_main$2.setup = (props, ctx) => {
  1503. const ssrContext = useSSRContext();
  1504. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("app.vue");
  1505. return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : undefined;
  1506. };
  1507. const AppComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-834c1f96"]]);
  1508. const _sfc_main$1 = {
  1509. __name: "nuxt-error-page",
  1510. __ssrInlineRender: true,
  1511. props: {
  1512. error: Object
  1513. },
  1514. setup(__props) {
  1515. const props = __props;
  1516. const _error = props.error;
  1517. _error.stack ? _error.stack.split("\n").splice(1).map((line) => {
  1518. const text = line.replace("webpack:/", "").replace(".vue", ".js").trim();
  1519. return {
  1520. text,
  1521. internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise")
  1522. };
  1523. }).map((i) => `<span class="stack${i.internal ? " internal" : ""}">${i.text}</span>`).join("\n") : "";
  1524. const statusCode = Number(_error.statusCode || 500);
  1525. const is404 = statusCode === 404;
  1526. const statusMessage = _error.statusMessage ?? (is404 ? "Page Not Found" : "Internal Server Error");
  1527. const description = _error.message || _error.toString();
  1528. const stack = undefined;
  1529. const _Error404 = defineAsyncComponent(() => import('./error-404-BxLHD5OU.mjs'));
  1530. const _Error = defineAsyncComponent(() => import('./error-500-BgZPBPyl.mjs'));
  1531. const ErrorTemplate = is404 ? _Error404 : _Error;
  1532. return (_ctx, _push, _parent, _attrs) => {
  1533. _push(ssrRenderComponent(unref(ErrorTemplate), mergeProps({ statusCode: unref(statusCode), statusMessage: unref(statusMessage), description: unref(description), stack: unref(stack) }, _attrs), null, _parent));
  1534. };
  1535. }
  1536. };
  1537. const _sfc_setup$1 = _sfc_main$1.setup;
  1538. _sfc_main$1.setup = (props, ctx) => {
  1539. const ssrContext = useSSRContext();
  1540. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/nuxt-error-page.vue");
  1541. return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : undefined;
  1542. };
  1543. const _sfc_main = {
  1544. __name: "nuxt-root",
  1545. __ssrInlineRender: true,
  1546. setup(__props) {
  1547. const IslandRenderer = () => null;
  1548. const nuxtApp = useNuxtApp();
  1549. nuxtApp.deferHydration();
  1550. nuxtApp.ssrContext.url;
  1551. const SingleRenderer = false;
  1552. provide(PageRouteSymbol, useRoute());
  1553. nuxtApp.hooks.callHookWith((hooks) => hooks.map((hook) => hook()), "vue:setup");
  1554. const error = useError();
  1555. const abortRender = error.value && !nuxtApp.ssrContext.error;
  1556. onErrorCaptured((err, target, info) => {
  1557. nuxtApp.hooks.callHook("vue:error", err, target, info).catch((hookError) => console.error("[nuxt] Error in `vue:error` hook", hookError));
  1558. {
  1559. const p = nuxtApp.runWithContext(() => showError(err));
  1560. onServerPrefetch(() => p);
  1561. return false;
  1562. }
  1563. });
  1564. const islandContext = nuxtApp.ssrContext.islandContext;
  1565. return (_ctx, _push, _parent, _attrs) => {
  1566. ssrRenderSuspense(_push, {
  1567. default: () => {
  1568. if (unref(abortRender)) {
  1569. _push(`<div></div>`);
  1570. } else if (unref(error)) {
  1571. _push(ssrRenderComponent(unref(_sfc_main$1), { error: unref(error) }, null, _parent));
  1572. } else if (unref(islandContext)) {
  1573. _push(ssrRenderComponent(unref(IslandRenderer), { context: unref(islandContext) }, null, _parent));
  1574. } else if (unref(SingleRenderer)) {
  1575. ssrRenderVNode(_push, createVNode(resolveDynamicComponent(unref(SingleRenderer)), null, null), _parent);
  1576. } else {
  1577. _push(ssrRenderComponent(unref(AppComponent), null, null, _parent));
  1578. }
  1579. },
  1580. _: 1
  1581. });
  1582. };
  1583. }
  1584. };
  1585. const _sfc_setup = _sfc_main.setup;
  1586. _sfc_main.setup = (props, ctx) => {
  1587. const ssrContext = useSSRContext();
  1588. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("node_modules/nuxt/dist/app/components/nuxt-root.vue");
  1589. return _sfc_setup ? _sfc_setup(props, ctx) : undefined;
  1590. };
  1591. let entry;
  1592. {
  1593. entry = async function createNuxtAppServer(ssrContext) {
  1594. const vueApp = createApp(_sfc_main);
  1595. const nuxt = createNuxtApp({ vueApp, ssrContext });
  1596. try {
  1597. await applyPlugins(nuxt, plugins);
  1598. await nuxt.hooks.callHook("app:created", vueApp);
  1599. } catch (error) {
  1600. await nuxt.hooks.callHook("app:error", error);
  1601. nuxt.payload.error = nuxt.payload.error || createError(error);
  1602. }
  1603. if (ssrContext == null ? undefined : ssrContext._renderResponse) {
  1604. throw new Error("skipping render");
  1605. }
  1606. return vueApp;
  1607. };
  1608. }
  1609. const entry$1 = (ssrContext) => entry(ssrContext);
  1610. 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 };
  1611. //# sourceMappingURL=server.mjs.map