PageSourceSearch

https://mgm.jie-you.cn/_nuxt/BWuJ2K_r.js

js jie-you.cn collected 2026-10-06 13:15:59 UTC 14,175 bytes, 114 lines download raw bytes

1import{T as e,at as t,ct as n,et as r,tt as i,x as a}from"./DUWOugQK.js";var o=Error.captureStackTrace,s=class e extends Error{name;code;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,o?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function c(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function l(e={}){let{docsBase:t,reporters:n=[]}=e;return new Proxy({},{get(e,r){if(typeof r!=`string`)return;let i=(e={},a={})=>{let o=c(t,r),l=new s({code:r,why:o??``,docs:o,cause:e.cause,sources:e.sources},i);for(let e of n)e(l,a);return l};return i}})}function u(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var d=[e=>{console.error(`[${e.name}]`)}],f=l({docsBase:u,reporters:d});function p(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?p(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var m=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function h(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>h(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function g(e,t,n){if(e.length>0)return h(e,t,0,m(n))}function _(e,t,n){if(e.length>0){let r=m(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function v(e,t){for(let n of[...e])n(t)}var y=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=p(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=p(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(g,e,t)}callHookParallel(e,...t){return this.callHookWith(_,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&v(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&v(this._after,r)}):(this._after&&r&&v(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function b(){return new y}var x=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return h(n,t,0)}};function S(){return globalThis.AsyncLocalStorage||globalThis.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage}function C(e={}){let t,n=!1,r=e=>{if(t&&t!==e)throw Error(`Context conflict`)},i;if(e.asyncContext){let t=e.AsyncLocalStorage||S();t?i=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}let a=e=>i&&typeof e==`object`&&e?{__unctx_weak:new WeakRef(e)}:e,o=e=>e&&e.__unctx_weak?e.__unctx_weak.deref():e,s=()=>
1{if(i){let e=i.getStore();if(e!==void 0)return o(e)}return t};return{use:()=>{let e=s();if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>s(),set:(e,i)=>{i||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,o)=>{r(e),t=e;try{return i?i.run(a(e),o):o()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;let o=()=>{t=e},s=()=>t===e?o:void 0;A.add(s);try{let o=i?i.run(a(e),r):r();return n||(t=void 0),await o}finally{A.delete(s)}}}}function w(e={}){let t={};return{get(n,r={}){return t[n]||(t[n]=C({...e,...r})),t[n]}}}var T=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof global<`u`?global:typeof window<`u`?window:{},E=`__unctx__`,D=T[E]||(T[E]=w()),O=(e,t={})=>D.get(e,t),k=`__unctx_async_handlers__`,A=T[k]||(T[k]=new Set);function j(e){let t=[];for(let e of A){let n=e();n&&t.push(n)}let n=()=>{for(let e of t)e()},r=e();return r&&typeof r==`object`&&`catch`in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}var M={meta:[{charset:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1, viewport-fit=cover`}],link:[],style:[],script:[{key:`site-theme-bootstrap`,innerHTML:`(() => {
2  try {
3    const raw = localStorage.getItem("mg_mate_web_site_theme_v1");
4    if (!raw) return;
5    const value = JSON.parse(raw);
6    const requested = ["dark", "light", "system"].includes(value && value.scheme) ? value.scheme : "dark";
7    const resolved = requested === "system"
8      ? (matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark")
9      : requested;
10    const root = document.documentElement;
11    root.dataset.siteScheme = resolved;
12    const accents = ["logo","gold","custom"];
13    const customAccent = /^#[0-9a-f]{6}$/i.test(value && value.customAccent)
14      ? value.customAccent.toLowerCase()
15      : "#4f7fe8";
16    const accent = accents.includes(value && value.accent)
17      && (value.accent !== "custom" || /^#[0-9a-f]{6}$/i.test(value.customAccent))
18      ? value.accent
19      : "logo";
20    root.dataset.siteAccent = accent;
21    if (accent === "custom") {
22      const parse = (hex) => ({
23        red: parseInt(hex.slice(1, 3), 16),
24        green: parseInt(hex.slice(3, 5), 16),
25        blue: parseInt(hex.slice(5, 7), 16)
26      });
27      const mix = (source, target, amount) => ({
28        red: source.red + (target.red - source.red) * amount,
29        green: source.green + (target.green - source.green) * amount,
30        blue: source.blue + (target.blue - source.blue) * amount
31      });
32      const luminance = (color) => {
33        const channel = (input) => {
34          const normalized = input / 255;
35          return normalized <= 0.04045 ? normalized / 12.92 : ((normalized + 0.055) / 1.055) ** 2.4;
36        };
37        return channel(color.red) * 0.2126 + channel(color.green) * 0.7152 + channel(color.blue) * 0.0722;
38      };
39      const contrast = (left, right) => {
40        const leftLuminance = luminance(left);
41        const rightLuminance = luminance(right);
42        return (Math.max(leftLuminance, rightLuminance) + 0.05) / (Math.min(leftLuminance, rightLuminance) + 0.05);
43      };
44      const format = (color) => "#" + [color.red, color.green, color.blue]
45        .map((channel) => Math.round(channel).toString(16).padStart(2, "0"))
46        .join("");
47      const background = parse(resolved === "light" ? "#f6f8fb" : "#090a19");
48      const target = parse(resolved === "light" ? "#000000" : "#ffffff");
49      const source = parse(customAccent);
50      let brand = source;
51      if (contrast(source, background) < 4.5) {
52        let low = 0;
53        let high = 1;
54        for (let index = 0; index < 14; index += 1) {
55          const middle = (low + high) / 2;
56          const candidate = mix(source, target, middle);
57          if (contrast(candidate, background) >= 4.5) {
58            brand = candidate;
59            high = middle;
60          } else {
61            low = middle;
62          }
63        }
64      }
65      const soft = mix(brand, target, 0.34);
66      const strong = mix(brand, target, 0.18);
67      const darkInk = parse("#111319");
68      const lightInk = parse("#fffaf2");
69      root.style.setProperty("--site-custom-brand", format(brand));
70      root.style.setProperty("--site-custom-brand-rgb", [brand.red, brand.green, brand.blue].map(Math.round).join(" "));
71      root.style.setProperty("--site-custom-brand-soft", format(soft));
72      root.style.setProperty("--site-custom-brand-soft-rgb", [soft.red, soft.green, soft.blue].map(Math.round).join(" "));
73      root.style.setProperty("--site-custom-brand-strong", format(strong));
74      root.style.setProperty("--site-custom-brand-ink", format(contrast(brand, darkInk) >= contrast(brand, lightInk) ? darkInk : lightInk));
75      const darkBackground = parse("#090a19");
76      const darkTarget = parse("#ffffff");
77      let darkBrand = source;
78      if (contrast(source, darkBackground) < 4.5) {
79        let low = 0;
80        let high = 1;
81        for (let index = 0; index < 14; index += 1) {
82          const middle = (low + high) / 2;
83          const candidate = mix(source, darkTarget, middle);
84          if (contrast(candidate, darkBackground) >= 4.5) {
85            darkBrand = candidate;
86            high = middle;
87          } else {
88            low = middle;
89          }
90        }
91      }
92      const darkSoft = mix(darkBrand, darkTarget, 0.34);
93      const darkStrong = mix(darkBrand, darkTarget, 0.18);
94      root.style.setProperty("--site-custom-dark-brand", format(darkBrand));
95      root.style.setProperty("--site-custom-dark-brand-rgb", [darkBrand.red, darkBrand.green, darkBrand.blue].map(Math.round).join(" "));
96      root.style.setProperty("--site-custom-dark-brand-soft-rgb", [darkSoft.red, darkSoft.green, darkSoft.blue].map(Math.round).join(" "));
97      root.style.setProperty("--site-custom-dark-brand-strong", format(darkStrong));
98      root.style.setProperty("--site-custom-dark-brand-ink", format(contrast(darkBrand, darkInk) >= contrast(darkBrand, lightInk) ? darkInk : lightInk));
99    }
100    const pathParts = location.pathname.split("/").filter(Boolean);
101    const immersive = (pathParts.length === 1 && (pathParts[0] === "play" || pathParts[0] === "practice"))
102      || (pathParts.length === 3 && pathParts[0] === "scores" && pathParts[2] === "practice")
103      || (pathParts.length === 2 && pathParts[0] === "compose");
104    const documentScheme = immersive ? "dark" : resolved;
105    const syncMeta = () => {
106      const meta = document.querySelector('meta[name="theme-color"]');
107      if (meta) meta.setAttribute("content", documentScheme === "light" ? "#f6f8fb" : "#090a19");
108      const colorSchemeMeta = document.querySelector('meta[name="color-scheme"]');
109      if (colorSchemeMeta) colorSchemeMeta.setAttribute("content", documentScheme);
110    };
111    syncMeta();
112    setTimeout(syncMeta, 0);
113  } catch {}
114})();`,tagPosition:`head`}],noscript:[],htmlAttrs:{lang:`zh-CN`,"data-site-scheme":`dark`,"data-site-accent":`logo`},titleTemplate:`%s - 音游伴侣`},N={id:`__nuxt-loader`},P={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},F={deep:!1},I={},L=`#__nuxt`,R=`nuxt-app`,z=36e5,B=`vite:preloadError`;function V(e=`nuxt-app`){return O(e,{asyncContext:!1})}var H=`__nuxt_plugin`;function U(e){let a=0,o={_id:e.id||`nuxt-app`,_scope:r(),provide:void 0,versions:{get nuxt(){return`4.5.2`},get vue(){return o.vueApp.version}},payload:n({...e.ssrContext?.payload||{},data:n({}),state:t({}),once:new Set,_errors:n({})}),static:{data:{}},runWithContext(e){return o._scope.active&&!i()?o._scope.run(()=>q(o,e)):q(o,e)},isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};a++;let e=!1;return()=>{if(!e&&(e=!0,a--,a===0))return o.isHydrating=!1,o.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:n({}),_state:n({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(o.payload[t],e[t]);break;default:o.payload[t]=e[t]}}o.hooks=b(),o.hook=o.hooks.hook;{let e=o.hooks.callHook;o.hooks.callHook=(t,...n)=>Promise.resolve().then(()=>e(t,...n))}o.callHook=o.hooks.callHook,o.provide=(e,t)=>{let n=`$`+e;Z(o,n,t),Z(o.vueApp.config.globalProperties,n,t)},Z(o.vueApp,`$nuxt`,o),Z(o.vueApp.config.globalProperties,`$nuxt`,o);{window.addEventListener(B,e=>{o.callHook(`app:chunkError`,{error:e.payload}),e.payload?.message?.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=Y;let e=o.hook(`app:error`,(...e)=>{f.NUXT_E1005({cause:e.length>1?e:e[0]})});o.hook(`app:mounted`,e)}let s=o.payload.config;return o.provide(`config`,s),o}async function W(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function G(e,t){let n;for(let r of t)try{await W(e,r)}catch(t){if(!e.payload.error)throw t;n||=t}if(n)throw e.payload.error||n}function K(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[H]:!0,_name:t})}function q(e,t,n){return V(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function J(t){let n;return e()&&(n=a()?.appContext.app.$nuxt),n||=V(t).tryUse(),n||null}function Y(e){let t=J(e);if(!t)throw f.NUXT_E1001();return t}function X(e){return Y().$config}function Z(e,t,n){Object.defineProperty(e,t,{get:()=>n})}export{u as _,X as a,N as c,P as d,z as f,f as g,x as h,Y as i,F as l,j as m,U as n,M as o,L as p,K as r,R as s,G as t,I as u,d as v,l as y};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.