(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{15272:(e,t,o)=>{var r={"./en.json":[99373,99373],"./zh.json":[4860,4860]};function n(e){if(!o.o(r,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],n=t[0];return o.e(t[1]).then(()=>o.t(n,19))}n.keys=()=>Object.keys(r),n.id=15272,e.exports=n},25359:(e,t,o)=>{"use strict";o.d(t,{AL:()=>l,IB:()=>r,L$:()=>a,q:()=>n});let r=["en","zh"],n="en",a={en:"English",zh:"中文"};function l(){if("undefined"==typeof navigator)return n;let e=navigator.language.split("-")[0];return r.includes(e)?e:n}},32277:(e,t,o)=>{"use strict";o.d(t,{LocaleProvider:()=>f,Y:()=>u});var r=o(90508),n=o(1856),a=o(57472),l=o(25359),c=o(67712);let s="chorus-locale",i=(0,n.createContext)(null);function u(){let e=(0,n.useContext)(i);if(!e)throw Error("useLocale must be used within LocaleProvider");return e}function f(e){let{children:t}=e,[u,f]=(0,n.useState)(l.q),[d,h]=(0,n.useState)(null),[m,v]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e,t=localStorage.getItem(s);t&&l.IB.includes(t)?e=t:(e=(0,l.AL)(),localStorage.setItem(s,e)),f(e),document.cookie="chorus-locale=".concat(e,";path=/;max-age=").concat(31536e3,";SameSite=Lax"),v(!0)},[]),(0,n.useEffect)(()=>{m&&o(15272)("./".concat(u,".json")).then(e=>{h(e.default)}).catch(e=>{c.q.error("Failed to load messages for locale ".concat(u,":"),e),o(15272)("./".concat(l.q,".json")).then(e=>{h(e.default)})})},[u,m]);let _=(0,n.useCallback)(e=>{f(e),localStorage.setItem(s,e),document.cookie="chorus-locale=".concat(e,";path=/;max-age=").concat(31536e3,";SameSite=Lax"),document.documentElement.lang=e},[]);return m&&d?(0,r.jsx)(i.Provider,{value:{locale:u,setLocale:_},children:(0,r.jsx)(a.A,{locale:u,messages:d,children:t})}):null}},47478:(e,t,o)=>{Promise.resolve().then(o.t.bind(o,66160,23)),Promise.resolve().then(o.t.bind(o,49408,23)),Promise.resolve().then(o.t.bind(o,94651,23)),Promise.resolve().then(o.bind(o,32277))},49408:e=>{e.exports={style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"},className:"__className_4c40f6",variable:"__variable_4c40f6"}},57472:(e,t,o)=>{"use strict";o.d(t,{A:()=>a});var r=o(12079),n=o(90508);function a(e){let{locale:t,...o}=e;if(!t)throw Error(void 0);return(0,n.jsx)(r.Dk,{locale:t,...o})}},66160:e=>{e.exports={style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"},className:"__className_246ccd",variable:"__variable_246ccd"}},67712:(e,t,o)=>{"use strict";o.d(t,{q:()=>c});var r=o(55036);let n={debug:0,info:1,warn:2,error:3},a=r.env.NEXT_PUBLIC_LOG_LEVEL||"warn";function l(e){return n[e]>=n[a]}let c={debug:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];l("debug")&&console.debug("[Chorus] ".concat(e),...o)},info:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];l("info")&&console.info("[Chorus] ".concat(e),...o)},warn:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];l("warn")&&console.warn("[Chorus] ".concat(e),...o)},error:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];l("error")&&console.error("[Chorus] ".concat(e),...o)}}},94651:()=>{}},e=>{e.O(0,[53169,32492,12079,74951,65496,77358],()=>e(e.s=47478)),_N_E=e.O()}]);