PageSourceSearch

https://hyper.ai/_next/static/chunks/17mqeddydmbwl.js?dpl=21f9974c9d542d8f5964cfb277f33963c389b3c6

js hyper.ai collected 2026-10-02 10:57:27 UTC 172,014 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,900987,(e,t,r)=>{"use strict";e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}}),e.r(712090);let a=(e,...t)=>e;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},567850,(e,t,r)=>{"use strict";function a(e,t){return e}e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return a}}),e.r(654838),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},304945,(e,t,r)=>{"use strict";e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return a}});let a=(...e)=>{};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},767627,(e,t,r)=>{"use strict";e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return n}});let a=e.r(157094);function n(e,t,r){return new Promise((r,n)=>{let i=!1;e.then(e=>{i=!0,r(e)}).catch(n),(0,a.requestIdleCallback)(()=>setTimeout(()=>{i||n(t)},3800))})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},867813,(e,t,r)=>{"use strict";let a;e.i(98184),Object.defineProperty(r,"__esModule",{value:!0});var n={createRouteLoader:function(){return v},getClientBuildManifest:function(){return g},isAssetError:function(){return f},markAssetError:function(){return p}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});e.r(836437),e.r(926152);let s=e.r(986207),o=e.r(157094),l=e.r(583398),c=e.r(521609),u=e.r(767627);function d(e,t,r){let a,n=t.get(e);if(n)return"future"in n?n.future:Promise.resolve(n);let i=new Promise(e=>{a=e});return t.set(e,{resolve:a,future:i}),r?r().then(e=>(a(e),e)).catch(r=>{throw t.delete(e),r}):i}let h=Symbol("ASSET_LOAD_ERROR");function p(e){return Object.defineProperty(e,h,{})}function f(e){return e&&h in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,u.resolvePromiseWithTimeout)(e,p(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),a)}function b(e,t){return g().then(r=>{if(!(t in r))throw p(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let a=r[t].map(t=>e+"/_next/"+(0,c.encodeURIPath)(t));return{scripts:a.filter(e=>e.endsWith(".js")).map(e=>(0,s.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:a.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function v(e){let t=new Map,r=new Map,n=new Map,i=new Map;function s(e){{var t;let a=r.get(e.toString());return a?a:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),a=new Promise((r,a)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>a(p(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),a)}}function l(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}
1`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw p(e)})),t}return{whenEntrypoint:e=>d(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let a=t.get(e);a&&"resolve"in a?r&&(t.set(e,r),a.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,n){return d(r,i,()=>{let i;return(0,u.resolvePromiseWithTimeout)(b(e,r).then(({scripts:e,css:a})=>Promise.all([t.has(r)?[]:Promise.all(e.map(s)).then(e=>e),Promise.all(a.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),p(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),a).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>i?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():b(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,r,a;return t=e.toString(),r="script",new Promise((e,n)=>{let i=`
2      link[rel="prefetch"][href^="${t}"],
3      link[rel="preload"][href^="${t}"],
4      script[src^="${t}"]`;if(document.querySelector(i))return e();a=document.createElement("link"),r&&(a.as=r),a.rel="prefetch",a.crossOrigin=void 0,a.onload=e,a.onerror=()=>n(p(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),a.href=t,document.head.appendChild(a)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},179199,(e,t,r)=>{"use strict";e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(836437);let a=e.r(788816);e.r(883507);let n=e.r(212067);function i(e){function t(t){return(0,a.jsx)(e,{router:(0,n.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},212067,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={Router:function(){return o.default},createRouter:function(){return b},default:function(){return m},makePublicRouterInstance:function(){return v},useRouter:function(){return g},withRouter:function(){return u.default}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(836437),s=i._(e.r(883507)),o=i._(e.r(336386)),l=e.r(9466),c=i._(e.r(846302)),u=i._(e.r(179199)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},h=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],p=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!d.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>o.default.events}),h.forEach(e=>{Object.defineProperty(d,e,{get:()=>f()[e]})}),p.forEach(e=>{d[e]=(...t)=>f()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{o.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(d[r])try{d[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,c.default)(e)?`${e.message}
5${e.stack}`:e+"")}})})});let m=d;function g(){let e=s.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,
5configurable:!0});return e}function b(...e){return d.router=new o.default(...e),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function v(e){let t={};for(let r of h){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=o.default.events,p.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},241636,(e,t,r)=>{t.exports=e.r(212067)},904808,(e,t,r)=>{"use strict";e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return a}});class a{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let r=new a(e.length,t);for(let t of e)r.add(t);return r}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let a=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(a)}return t}}},220348,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let a=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return a.test(e)?e.replace(n,"\\$&"):e}},973301,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return n}});let a=e.r(654838);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:i}=(0,a.parsePath)(e);return`${r}${t}${n}${i}`}},756826,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return i}});let a=e.r(842794),n=e.r(226630);function i(e,t,r,i){if(!t||t===r)return e;let s=e.toLowerCase();return!i&&((0,n.pathHasPrefix)(s,"/api")||(0,n.pathHasPrefix)(s,`/${t.toLowerCase()}`))?e:(0,a.addPathPrefix)(e,`/${t}`)}},33250,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let a=e.r(966951),n=e.r(842794),i=e.r(973301),s=e.r(756826);function o(e){let t=(0,s.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,a.removeTrailingSlash)(t)),e.buildId&&(t=(0,i.addPathSuffix)((0,n.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,n.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,i.addPathSuffix)(t,"/"):(0,a.removeTrailingSlash)(t)}},811758,(e,t,r)=>{"use strict";function a(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let a=r.length;a--;){let n=r[a];if("query"===n){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let a=r.length;a--;){let n=r[a];if(!t.query.hasOwnProperty(n)||e.query[n]!==t.query[n])return!1}}else if(!t.hasOwnProperty(n)||e[n]!==t[n])return!1}return!0}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return a}})},926152,(e,t,r)=>{"use strict";function a(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}})},986207,(e,t,r)=>{"use strict";let a;function n(e){return(void 0===a&&"u">typeof window&&(a=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),a)?.createScriptURL(e)||e}
5Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},918901,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return i}});let a=e.r(131691),n=e.r(313419);function i(e,t,r){let i="",s=(0,n.getRouteRegex)(e),o=s.groups,l=(t!==e?(0,a.getRouteMatcher)(s)(t):"")||r;i=e;let c=Object.keys(o);return c.every(e=>{let t=l[e]||"",{repeat:r,optional:a}=o[e],n=`[${r?"...":""}${e}]`;return a&&(n=`${!t?"/":""}[${n}]`),r&&!Array.isArray(t)&&(t=[t]),(a||e in l)&&(i=i.replace(n,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:c,result:i}}},919974,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return p}});let a=e.r(76416),n=e.r(231470),i=e.r(271030),s=e.r(213711),o=e.r(712090),l=e.r(14075),c=e.r(136331),u=e.r(918901),d=e.r(313419),h=e.r(131691);function p(e,t,r){let p,f="string"==typeof t?t:(0,n.formatWithValidation)(t),m=f.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?f.slice(m[0].length):f;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${f}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,s.normalizeRepeatedSlashes)(g);f=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(f))return r?[f]:f;try{let t=f.startsWith("#")?e.asPath:e.pathname;if(f.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,h.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{let e=new URL(f,p);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,a.searchParamsToUrlQuery)(e.searchParams),{result:s,params:o}=(0,u.interpolateAs)(e.pathname,e.pathname,r);s&&(t=(0,n.formatWithValidation)({pathname:s,hash:e.hash,query:(0,i.omit)(r,o)}))}let s=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return r?[s,t||s]:s}catch(e){return r?[f]:f}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},933273,(e,t,r)=>{"use strict";function a(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return a}})},209339,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let a=e.r(789673),n=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,i=/\/\[[^/]+\](?=\/|$)/;function s(e,t=!0){return((0,a.isInterceptionRouteAppPath)(e)&&(e=(0,a.extractInterceptionRouteInformation)(e).interceptedRoute),t)?i.test(e):n.test(e)}},136331,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={getSortedRouteObjects:function(){return i.getSortedRouteObjects},getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(709550),s=e.r(209339)},263837,(e,t,r)=>{"use strict";function a(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return a}})},610384,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return i}});let a=e.r(136331),n=e.r(263837);function i(e){let t=(0,n.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,a.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},606097,(e,t,r)=>{"use strict";
5Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let a=new WeakMap;function n(e,t){let r;if(!t)return{pathname:e};let n=a.get(t);n||(n=t.map(e=>e.toLowerCase()),a.set(t,n));let i=e.split("/",2);if(!i[1])return{pathname:e};let s=i[1].toLowerCase(),o=n.indexOf(s);return o<0?{pathname:e}:(r=t[o],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},762638,(e,t,r)=>{"use strict";function a(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}})},271030,(e,t,r)=>{"use strict";function a(e,t){let r={};return Object.keys(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return a}})},948541,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return n}});let a=e.r(529127);function n(e){let[t,r,n,i]=e,{layout:s,template:o}=n,{page:l}=n;l=t===a.DEFAULT_SEGMENT_KEY?n.defaultPage:l;let c=s?.[1]||o?.[1]||l?.[1];return{page:l,segment:t,modules:n,conventionPath:c,parallelRoutes:r,staticSiblings:i}}},791310,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={getParamProperties:function(){return l},getSegmentParam:function(){return s},isCatchAll:function(){return o}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(789673);function s(e){let t=i.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function o(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},107136,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={isInterceptionAppRoute:function(){return u},isNormalizedAppRoute:function(){return c},parseAppRouteSegment:function(){return l},parseAppRouteWithSlots:function(){return p},parseNormalizedAppRoute:function(){return h}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(288095),s=e.r(791310),o=e.r(789673);function l(e){if(""===e)return null;let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,s.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function c(e){return e.normalized}function u(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function d(e,t){let r,a,n,o=e.split("/").filter(Boolean),c=[];for(let u of o){let o=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,s.getSegmentParam)(t)?t:e}catch{return e}}(u));if(o){if("route-group"===o.type&&!(2&t))throw Object.defineProperty(new i.InvariantError(`${e} is being parsed as a normalized route, but it has a route group segment.`),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if("parallel-route"===o.type&&!(1&t))throw Object.defineProperty(new i.InvariantError(`${e} is being parsed as a normalized route, but it has a parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,
5configurable:!0});if(c.push(o),o.interceptionMarker){let i=e.split(o.interceptionMarker);if(2!==i.length)throw Object.defineProperty(Error(`Invalid interception route: ${e}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});a=d(i[0],t),n=d(i[1],t),r=o.interceptionMarker}}}let u=c.filter(e=>"dynamic"===e.type);return{normalized:0===t,pathname:e,segments:c,dynamicSegments:u,interceptionMarker:r,interceptingRoute:a,interceptedRoute:n}}function h(e){return d(e,0)}function p(e){return d(e,1)}},380699,(e,t,r)=>{"use strict";function a(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return a}})},72734,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return i}});let a=e.r(288095),n=e.r(380699);function i(e,t,r,i,s){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let o=[];for(let e=r;e<i.segments.length;e++){let a=i.segments[e];if("static"===a.type){let i=a.name,s=(0,n.interceptionPrefixFromParamType)(t);s&&e===r&&s===a.interceptionMarker&&(i=i.replace(a.interceptionMarker,"")),o.push(i)}else{if(!s.hasOwnProperty(a.param.paramName)){if("optional-catchall"===a.param.paramType)break;return}let e=s[a.param.paramName];Array.isArray(e)?o.push(...e):o.push(e)}}if(o.length>0)return o;if("optional-catchall"===t)return;throw Object.defineProperty(new a.InvariantError(`Unexpected empty path segments match for a route "${i.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<i.segments.length){let e=i.segments[r];if("dynamic"===e.type&&!s.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?s[e.param.paramName]:(0,n.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},931594,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return u},interpolateParallelRouteParams:function(){return c},parseMatchedParameter:function(){return p},parseParameter:function(){return h}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(288095),s=e.r(948541),o=e.r(107136),l=e.r(72734);function c(e,t,r,a){let n=structuredClone(t),c=[{tree:e,depth:0}],u=(0,o.parseNormalizedAppRoute)(r);for(;c.length>0;){let{tree:e,depth:t}=c.pop(),{segment:r,parallelRoutes:d}=(0,s.parseLoaderTree)(e),h=(0,o.parseAppRouteSegment)(r);if(h?.type==="dynamic"&&!n.hasOwnProperty(h.param.paramName)&&!a?.has(h.param.paramName)){let{paramName:e,paramType:r}=h.param,a=(0,l.resolveParamValue)(e,r,t,u,n);if(void 0!==a)n[e]=a;else if("optional-catchall"!==r)throw Object.defineProperty(new i.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let p=t;for(let e of(h&&"route-group"!==h.type&&"parallel-route"!==h.type&&p++,Object.values(d)))c.push({tree:e,depth:p})}return n}function u(e,t,r,a,n){let s=function(e,t,r){let a=e[t];if(r?.has(t)){let[e]=r.get(t);a=e}else Array.isArray(a)?a=a.map(e=>encodeURIComponent(e)):"string"==typeof a&&(a=encodeURIComponent(a));return a}(e,t,a);if(!s||0===s.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,n]};throw Object.defineProperty(new i.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}
5`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let o=Array.isArray(s)?s.join("/"):s;return{param:t,value:s,treeSegment:[t,o,r,n],type:r}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function h(e){let t=e.match(d);return t?p(t[2]):p(e)}function p(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},313419,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return d}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(537838),s=e.r(789673),o=e.r(220348),l=e.r(966951),c=e.r(931594);function u(e,t,r){let a={},n=1,i=[];for(let u of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.find(e=>u.startsWith(e)),l=u.match(c.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:s}=(0,c.parseMatchedParameter)(l[2]);a[t]={pos:n++,repeat:s,optional:r},i.push(`/${(0,o.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:s}=(0,c.parseMatchedParameter)(l[2]);a[e]={pos:n++,repeat:t,optional:s},r&&l[1]&&i.push(`/${(0,o.escapeStringRegexp)(l[1])}`);let u=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(u=u.substring(1)),i.push(u)}else i.push(`/${(0,o.escapeStringRegexp)(u)}`);t&&l&&l[3]&&i.push((0,o.escapeStringRegexp)(l[3]))}return{parameterizedRoute:i.join(""),groups:a}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:a=!1}={}){let{parameterizedRoute:n,groups:i}=u(e,t,r),s=n;return a||(s+="(?:/)?"),{re:RegExp(`^${s}$`),groups:i}}function h({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:a,keyPrefix:n,backreferenceDuplicateKeys:i}){let s,{key:l,optional:u,repeat:d}=(0,c.parseMatchedParameter)(r),p=l.replace(/\W/g,"");n&&(p=`${n}${p}`);let f=!1;(0===p.length||p.length>30)&&(f=!0),isNaN(parseInt(p.slice(0,1)))||(f=!0),f&&(p=t());let m=p in a;n?a[p]=`${n}${l}`:a[p]=l;let g=e?(0,o.escapeStringRegexp)(e):"";return s=m&&i?`\\k<${p}>`:d?`(?<${p}>.+?)`:`(?<${p}>[^/]+?)`,{key:l,pattern:u?`(?:/${g}${s})?`:`/${g}${s}`,cleanedKey:p,optional:u,repeat:d}}function p(e,t,r,a,n,u={names:{},intercepted:{}}){let d,f=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],b=[];for(let d of(u=structuredClone(u),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=s.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),p=d.match(c.PARAMETER_PATTERN),v=l?p?.[1]:void 0;if(v&&p?.[2]?(e=t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,u.intercepted[p[2]]=v):e=p?.[2]&&u.intercepted[p[2]]?t?i.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?i.NEXT_QUERY_PARAM_PREFIX:void 0,v&&p&&p[2]){let{key:t,pattern:r,cleanedKey:a,repeat:i,optional:s}=h({getSafeRouteKey:f,interceptionMarker:v,segment:p[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:n});g.push(r),b.push(`/${p[1]}:${u.names[t]??a}${i?s?"*":"+":""}`),u.names[t]??=a}else if(p&&p[2]){a&&p[1]&&(g.push(`/${(0,o.escapeStringRegexp)(p[1])}`),b.push(`/${p[1]}`));let{key:t,pattern:r,cleanedKey:i,repeat:s,optional:l}=h({getSafeRouteKey:f,segment:p[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:n}),c=r;a&&p[1]&&(c=c.substring(1)),g.push(c),b.push(`/:${u.names[t]??i}${s?l?"*":"+":""}`),u.names[t]??=i}else g.push(`/${(0,o.escapeStringRegexp)(d)}`),b.push(`/${d}`);r&&p&&p[3]&&(g.push((0,o.escapeStringRegexp)(p[3])),b.push(p[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:b.join(""),reference:u}}
5function f(e,t){let r=p(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),a=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(a+="(?:/)?"),{...d(e,t),namedRegex:`^${a}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=u(e,!1,!1),{catchAll:a=!0}=t;if("/"===r)return{namedRegex:`^/${a?".*":""}$`};let{namedParameterizedRoute:n}=p(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${n}${a?"(?:(/.*)?)":""}$`}}},295465,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={DYNAMIC_FILTER_PLACEHOLDER:function(){return i},hasDynamicFilterCandidate:function(){return s}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i="[]";function s(e,t,r){let a=e.split("/"),n=t.split("/"),s=a[a.length-1]??"";if(!(s.startsWith("[...")||s.startsWith("[[..."))&&a.length!==n.length)return!1;let o=[];for(let e=1;e<n.length;e++){if(""===n[e])continue;let t=a[e];(void 0===t||t.startsWith("["))&&o.push(e)}if(0===o.length||o.length>8)return!1;let l=(1<<o.length)-1;for(let e=0;e<l;e++){let t=n.slice();for(let r=0;r<o.length;r++)(e&1<<r)==0&&(t[o[r]]=i);if(r(t.join("/")))return!0}return!1}},926313,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return i}});let a=e.r(213711),n=e.r(76416);function i(e,t,r=!0){let s=new URL("u"<typeof window?"http://n":(0,a.getLocationOrigin)()),o=t?new URL(t,s):e.startsWith(".")?new URL("u"<typeof window?"http://n":window.location.href):s,{pathname:l,searchParams:c,search:u,hash:d,href:h,origin:p}=e.startsWith("/")?new URL(`${o.protocol}//${o.host}${e}`):new URL(e,o);if(p!==s.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${e}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:l,port:null,protocol:null,query:r?(0,n.searchParamsToUrlQuery)(c):void 0,search:u,hash:d,href:h.slice(p.length),slashes:null}}},777494,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@[email protected]_@types+no_3b6c9f5d10292efd3932520c2bed91ba/node_modules/next/dist/compiled/path-to-regexp/");var e={};(()=>{function t(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var a=e[r];if("*"===a||"+"===a||"?"===a){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===a){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===a){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===a){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===a){for(var n="",i=r+1;i<e.length;){var s=e.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s){n+=e[i++];continue}break}if(!n)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:n}),r=i;continue}if("("===a){var o=1,l="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){l+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--o){i++;break}}else if("("===e[i]&&(o++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(o)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),a=t.prefixes,i=void 0===a?"./":a,s=t.delimiter,o=void 0===s?"/#?":s,l=[],c=0,u=0,d="",h=function(e){if(u<r.length&&r[u].type===e)return r[u++].value},p=function(e){var t=h(e);if(void 0!==t)return t;var a=r[u],n=a.type,i=a.index;throw TypeError("Unexpected ".concat(n," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=h("CHAR")||h("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var r=o[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");
5if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(n(o),"]+?"):"(?:(?!".concat(n(r),")[^").concat(n(o),"])+?")};u<r.length;){var b=h("CHAR"),v=h("NAME"),y=h("PATTERN");if(v||y){var _=b||"";-1===i.indexOf(_)&&(d+=_,_=""),d&&(l.push(d),d=""),l.push({name:v||c++,prefix:_,suffix:"",pattern:y||g(_),modifier:h("MODIFIER")||""});continue}var x=b||h("ESCAPED_CHAR");if(x){d+=x;continue}if(d&&(l.push(d),d=""),h("OPEN")){var _=f(),w=h("NAME")||"",P=h("PATTERN")||"",j=f();p("CLOSE"),l.push({name:w||(P?c++:""),pattern:w&&!P?g(_):P,prefix:_,suffix:j,modifier:h("MODIFIER")||""});continue}p("END")}return l}function r(e,t){void 0===t&&(t={});var r=i(t),a=t.encode,n=void 0===a?function(e){return e}:a,s=t.validate,o=void 0===s||s,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",a=0;a<e.length;a++){var i=e[a];if("string"==typeof i){r+=i;continue}var s=t?t[i.name]:void 0,c="?"===i.modifier||"*"===i.modifier,u="*"===i.modifier||"+"===i.modifier;if(Array.isArray(s)){if(!u)throw TypeError('Expected "'.concat(i.name,'" to not repeat, but got an array'));if(0===s.length){if(c)continue;throw TypeError('Expected "'.concat(i.name,'" to not be empty'))}for(var d=0;d<s.length;d++){var h=n(s[d],i);if(o&&!l[a].test(h))throw TypeError('Expected all "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(h,'"'));r+=i.prefix+h+i.suffix}continue}if("string"==typeof s||"number"==typeof s){var h=n(String(s),i);if(o&&!l[a].test(h))throw TypeError('Expected "'.concat(i.name,'" to match "').concat(i.pattern,'", but got "').concat(h,'"'));r+=i.prefix+h+i.suffix;continue}if(!c){var p=u?"an array":"a string";throw TypeError('Expected "'.concat(i.name,'" to be ').concat(p))}}return r}}function a(e,t,r){void 0===r&&(r={});var a=r.decode,n=void 0===a?function(e){return e}:a;return function(r){var a=e.exec(r);if(!a)return!1;for(var i=a[0],s=a.index,o=Object.create(null),l=1;l<a.length;l++)!function(e){if(void 0!==a[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?o[r.name]=a[e].split(r.prefix+r.suffix).map(function(e){return n(e,r)}):o[r.name]=n(a[e],r)}}(l);return{path:i,index:s,params:o}}}function n(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var a=r.strict,s=void 0!==a&&a,o=r.start,l=r.end,c=r.encode,u=void 0===c?function(e){return e}:c,d=r.delimiter,h=r.endsWith,p="[".concat(n(void 0===h?"":h),"]|$"),f="[".concat(n(void 0===d?"/#?":d),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var b=e[g];if("string"==typeof b)m+=n(u(b));else{var v=n(u(b.prefix)),y=n(u(b.suffix));if(b.pattern)if(t&&t.push(b),v||y)if("+"===b.modifier||"*"===b.modifier){var _="*"===b.modifier?"?":"";m+="(?:".concat(v,"((?:").concat(b.pattern,")(?:").concat(y).concat(v,"(?:").concat(b.pattern,"))*)").concat(y,")").concat(_)}else m+="(?:".concat(v,"(").concat(b.pattern,")").concat(y,")").concat(b.modifier);else{if("+"===b.modifier||"*"===b.modifier)throw TypeError('Can not repeat "'.concat(b.name,'" without a prefix and suffix'));m+="(".concat(b.pattern,")").concat(b.modifier)}else m+="(?:".concat(v).concat(y,")").concat(b.modifier)}}if(void 0===l||l)s||(m+="".concat(f,"?")),m+=r.endsWith?"(?=".concat(p,")"):"$";else{var x=e[e.length-1],w="string"==typeof x?f.indexOf(x[x.length-1])>-1:void 0===x;s||(m+="(?:".concat(f,"(?=").concat(p,"))?")),w||(m+="(?=".concat(f,"|").concat(p,")"))}return new RegExp(m,i(r))}function o(e,r,a){if(e instanceof RegExp){var n;if(!r)return e;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,u=l.exec(e.source);u;)r.push({name:u[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),u=l.exec(e.source);return e}return Array.isArray(e)?(n=e.map(function(e){return o(e,r,a).source}),new RegExp("(?:".concat(n.join("|"),")"),i(a))):s(t(e,a),r,a)}Object.defineProperty(e,"__esModule",{value:!0}),e.pathToRegexp=e.tokensToRegexp=e.regexpToFunction=e.match=e.tokensToFunction=e.compile=e.parse=void 0,e.parse=t,e.compile=function(e,a){return r(t(e,a),a)},e.tokensToFunction=r,e.match=function(e,t){var r=[];return a(o(e,r,t),r,t)},e.regexpToFunction=a,e.tokensToRegexp=s,e.pathToRegexp=o})(),t.exports=e})()},958180,(e,t,r)=>{"use strict";
5Object.defineProperty(r,"__esModule",{value:!0});var a={PARAM_SEPARATOR:function(){return i},hasAdjacentParameterIssues:function(){return s},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return l},stripNormalizedSeparators:function(){return c},stripParameterSeparators:function(){return u}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i="_NEXTSEP_";function s(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function l(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function c(e){return e.replace(RegExp(`\\)${i}`,"g"),")")}function u(e){let t={};for(let[r,a]of Object.entries(e))"string"==typeof a?t[r]=a.replace(RegExp(`^${i}`),""):Array.isArray(a)?t[r]=a.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[r]=a;return t}},906743,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={safeCompile:function(){return l},safePathToRegexp:function(){return o},safeRegexpToFunction:function(){return c},safeRouteMatcher:function(){return u}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(777494),s=e.r(958180);function o(e,t,r){if("string"!=typeof e)return(0,i.pathToRegexp)(e,t,r);let a=(0,s.hasAdjacentParameterIssues)(e),n=a?(0,s.normalizeAdjacentParameters)(e):e;try{return(0,i.pathToRegexp)(n,t,r)}catch(n){if(!a)try{let a=(0,s.normalizeAdjacentParameters)(e);return(0,i.pathToRegexp)(a,t,r)}catch(e){}throw n}}function l(e,t){let r=(0,s.hasAdjacentParameterIssues)(e),a=r?(0,s.normalizeAdjacentParameters)(e):e;try{let e=(0,i.compile)(a,t);if(r)return t=>(0,s.stripNormalizedSeparators)(e(t));return e}catch(a){if(!r)try{let r=(0,s.normalizeAdjacentParameters)(e),a=(0,i.compile)(r,t);return e=>(0,s.stripNormalizedSeparators)(a(e))}catch(e){}throw a}}function c(e,t){let r=(0,i.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,s.stripParameterSeparators)(t.params)}}}function u(e){return t=>{let r=e(t);return!!r&&(0,s.stripParameterSeparators)(r)}}},131691,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let a=e.r(213711),n=e.r(906743);function i({re:e,groups:t}){return(0,n.safeRouteMatcher)(r=>{let n=e.exec(r);if(!n)return!1;let i=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new a.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},s={};for(let[e,r]of Object.entries(t)){let t=n[r.pos];void 0!==t&&(r.repeat?s[e]=t.split("/").map(e=>i(e)):s[e]=i(t))}return s})}},715016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return n}});let a=e.r(777494);function n(e,t){let r=[],n=(0,a.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),i=(0,a.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(n.source),n.flags):n,r);return(e,a)=>{if("string"!=typeof e)return!1;let n=i(e);if(!n)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete n.params[e.name];return{...a,...n.params}}}},967099,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return i}});let a=e.r(76416),n=e.r(926313);function i(e){if(e.startsWith("/"))return(0,n.parseRelativeUrl)(e);let t=new URL(e),r=t.username,i=t.password,s=r?i?`${r}:${i}`:r:null,o=t.pathname,l=t.search;return{auth:s,hash:t.hash,hostname:t.hostname,href:t.href,pathname:o,port:t.port,protocol:t.protocol,query:(0,a.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},373315,(e,t,r)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@[email protected]_@types+no_3b6c9f5d10292efd3932520c2bed91ba/node_modules/next/dist/compiled/cookie/");var e,r,a,n,i={};i.parse=function(t,r){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var n={},i=t.split(a),s=(r||{}).decode||e,o=0;o<i.length;o++){var l=i[o],c=l.indexOf("=");if(!(c<0)){var u=l.substr(0,c).trim(),d=l.substr(++c,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==n[u]&&(n[u]=function(e,t){try{return t(e)}catch(t){return e}}
5(d,s))}}return n},i.serialize=function(e,t,a){var i=a||{},s=i.encode||r;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!n.test(e))throw TypeError("argument name is invalid");var o=s(t);if(o&&!n.test(o))throw TypeError("argument val is invalid");var l=e+"="+o;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(c)}if(i.domain){if(!n.test(i.domain))throw TypeError("option domain is invalid");l+="; Domain="+i.domain}if(i.path){if(!n.test(i.path))throw TypeError("option path is invalid");l+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invalid");l+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},e=decodeURIComponent,r=encodeURIComponent,a=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=i})()},625408,(e,t,r)=>{"use strict";function a(t){return function(){let{cookie:r}=t;if(!r)return{};let{parse:a}=e.r(373315);return a(Array.isArray(r)?r.join("; "):r)}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return a}})},577952,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={compileNonPath:function(){return h},matchHas:function(){return d},parseDestination:function(){return p},prepareDestination:function(){return f}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(220348),s=e.r(967099),o=e.r(789673),l=e.r(625408),c=e.r(906743);function u(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],a=[]){let n={},i=r=>{let a,i=r.key;switch(r.type){case"header":i=i.toLowerCase(),a=e.headers[i];break;case"cookie":a="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":a=t[i];break;case"host":{let{host:t}=e?.headers||{};a=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&a)return n[function(e){let t="";for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);(a>64&&a<91||a>96&&a<123)&&(t+=e[r])}return t}(i)]=a,!0;if(a){let e=RegExp(`^${r.value}$`),t=Array.isArray(a)?a.slice(-1)[0].match(e):a.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{n[e]=t.groups[e]}):"host"===r.type&&t[0]&&(n.host=t[0])),!0}return!1};return!(!r.every(e=>i(e))||a.some(e=>i(e)))&&n}function h(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,c.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function p(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,i.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,s.parseUrl)(t),a=r.pathname;a&&(a=u(a));let n=r.href;n&&(n=u(n));let o=r.hostname;o&&(o=u(o));let l=r.hash;l&&(l=u(l));let c=r.search;c&&(c=u(c));let d=r.origin;return d&&(d=u(d)),{...r,pathname:a,hostname:o,href:n,hash:l,search:c,origin:d}}function f(e){let t,r,a=p(e),{hostname:n,query:i,search:s}=a,l=a.pathname;a.hash&&(l=`${l}${a.hash}`);let d=[],f=[];for(let e of((0,c.safePathToRegexp)(l,f),f))d.push(e.name);if(n){let e=[];for(let t of((0,c.safePathToRegexp)(n,e),e))d.push(t.name)}let m=(0,c.safeCompile)(l,{validate:!1});for(let[r,a]of(n&&(t=(0,c.safeCompile)(n,{validate:!1,encode:encodeURIComponent})),Object.entries(i)))Array.isArray(a)?i[r]=a.map(t=>h(u(t),e.params)):"string"==typeof a&&(i[r]=h(u(a),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in i||(i[t]=e.params[t]);if((0,o.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=o.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[n,i]=(r=m(e.params)).split("#",2);t&&(a.hostname=t(e.params)),a.pathname=n,a.hash=`${i?"#":""}${i||""}`,a.search=s?h(s,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,
5configurable:!0});throw e}return a.query={...e.query,...a.query},{newUrl:r,destQuery:i,parsedDestination:a}}},667715,(e,t,r)=>{"use strict";e.i(98184),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let a=e.r(715016),n=e.r(577952),i=e.r(966951),s=e.r(606097),o=e.r(585945),l=e.r(926313);function c(e,t,r,c,u,d){let h,p=!1,f=!1,m=(0,l.parseRelativeUrl)(e),g=(0,i.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(m.pathname),d).pathname),b=r=>{let l=(0,a.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,n.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...a]=t.split("=");return e[r]=a.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return f=!0,!0;let a=(0,n.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:c});if(m=a.parsedDestination,e=a.newUrl,Object.assign(c,a.parsedDestination.query),g=(0,i.removeTrailingSlash)((0,s.normalizeLocalePath)((0,o.removeBasePath)(e),d).pathname),t.includes(g))return p=!0,h=g,!0;if((h=u(g))!==e&&t.includes(h))return p=!0,!0}},v=!1;for(let e=0;e<r.beforeFiles.length;e++)b(r.beforeFiles[e]);if(!(p=t.includes(g))){if(!v){for(let e=0;e<r.afterFiles.length;e++)if(b(r.afterFiles[e])){v=!0;break}}if(v||(h=u(g),v=p=t.includes(h)),!v){for(let e=0;e<r.fallback.length;e++)if(b(r.fallback[e])){v=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:p,resolvedHref:h,externalDest:f}}},336386,(e,t,r)=>{"use strict";let a;e.i(98184),Object.defineProperty(r,"__esModule",{value:!0});var n={createKey:function(){return Q},default:function(){return Z},matchesMiddleware:function(){return H}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(836437),o=e.r(56421),l=e.r(966951),c=e.r(867813),u=e.r(869812),d=o._(e.r(846302)),h=e.r(610384),p=e.r(606097),f=s._(e.r(762638)),m=e.r(213711),g=e.r(209339),b=e.r(926313),v=e.r(131691),y=e.r(313419),_=e.r(295465),x=e.r(231470);e.r(304945);let w=e.r(654838),P=e.r(900987),j=e.r(567850),E=e.r(585945),R=e.r(561720),S=e.r(965824),O=e.r(919974),k=e.r(933273),N=e.r(802630),C=e.r(33250),A=e.r(811758),M=e.r(14075),T=e.r(400544),I=e.r(271030),$=e.r(918901),L=e.r(194387),D=e.r(537838),z=e.r(583398),U=e.r(586358);function B(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function H(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,w.parsePath)(e.asPath),a=(0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n=(0,R.addBasePath)((0,P.addLocale)(a,e.locale));return t.some(e=>new RegExp(e.regexp).test(n))}function W(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[a,n]=(0,O.resolveHref)(e,t,!0),i=(0,m.getLocationOrigin)(),s=a.startsWith(i),o=n&&n.startsWith(i);a=W(a),n=n?W(n):n;let l=s?a:(0,R.addBasePath)(a),c=r?W((0,O.resolveHref)(e,r)):n||a;return{url:l,as:o?c:(0,R.addBasePath)(c)}}function q(e,t){let r=(0,l.removeTrailingSlash)((0,h.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,y.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function X(e){if(!await H(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),s=i||t.headers.get("x-nextjs-matched-path"),o=t.headers.get(D.MATCHED_PATH_HEADER);if(!o||s||o.includes("__next_data_catchall")||o.includes("/_error")||o.includes("/404")||(s=o),s){if(s.startsWith("/")){let t=(0,b.parseRelativeUrl)(s),o=(0,N.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),u=(0,l.removeTrailingSlash)(o.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,c.getClientBuildManifest)()]).then(([s,{__rewrites:l}])=>{let c=(0,P.addLocale)(o.pathname,o.locale);if((0,g.isDynamicRoute)(c)||!i&&s.includes((0,p.normalizeLocalePath)((0,E.removeBasePath)(c),r.router.locales).pathname)){let r=(0,N.getNextPathnameInfo)((0,b.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:n.basePath,trailingSlash:n.trailingSlash},parseData:!0}
5);t.pathname=c=(0,R.addBasePath)(r.pathname)}{let e=a(c,s,l,t.query,e=>q(e,s),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,c=t.pathname,Object.assign(t.query,e.parsedAs.query))}let d=s.includes(u)?u:q((0,p.normalizeLocalePath)((0,E.removeBasePath)(t.pathname),r.router.locales).pathname,s);if((0,g.isDynamicRoute)(d)){let e=(0,v.getRouteMatcher)((0,y.getRouteRegex)(d))(c);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,w.parsePath)(e),o=(0,C.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${o}${t.query}${t.hash}`})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,w.parsePath)(u),t=(0,C.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}a=e.r(667715).default;let G=Symbol("SSG_DATA_NOT_FOUND");function K(e){try{return JSON.parse(e)}catch(e){return null}}function V({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:a,isServerRender:n,parseJSON:i,persistCache:s,isBackground:o,unstable_skipClientCache:l}){let{href:u}=new URL(e,window.location.href),d=(0,z.getDeploymentId)(),h=o=>(function e(t,r,a){return fetch(t,{credentials:"same-origin",method:a.method||"GET",headers:Object.assign({},a.headers,{"x-nextjs-data":"1"})}).then(n=>!n.ok&&r>1&&n.status>=500?e(t,r-1,a):n)})(e,n?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&a?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:o?.method??"GET"}).then(t=>t.ok&&o?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:u}:t.text().then(r=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:u};if(404===t.status&&K(r)?.notFound)return{dataHref:e,json:{notFound:G},response:t,text:r,cacheKey:u};let i=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw n||(0,c.markAssetError)(i),i}let s=t.headers.get(D.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=s&&s!==d){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw n||(0,c.markAssetError)(e),e}return{dataHref:e,json:i?K(r):null,response:t,text:r,cacheKey:u}})).then(e=>(s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[u],e)).catch(e=>{throw l||delete t[u],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,c.markAssetError)(e),e});return l&&s?h({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[u]=Promise.resolve(e)),e)):void 0!==t[u]?t[u]:t[u]=h(o?{method:"HEAD"}:{})}function Q(){return Math.random().toString(36).slice(2,10)}function Y({url:e,router:t}){if(e===(0,R.addBasePath)((0,P.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let J=({route:e,router:t})=>{let r=!1,a=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}a===t.clc&&(t.clc=null)}};class Z{static{this.events=(0,f.default)()}constructor(e,t,r,{initialProps:a,pageLoader:n,App:i,wrapApp:s,Component:o,err:c,subscription:u,isFallback:d,locale:h,locales:p,defaultLocale:f,domainLocales:v,isPreview:y}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=Q(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let a=e.state;if(!a){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,x.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),(0,m.getURL)());return}if(a.__NA)return void window.location.reload();if(!a.__N||r&&this.locale===a.options.locale&&a.as===this.asPath)return;let{url:n,as:i,options:s,key:o}=a;this._key=o;let{pathname:l}=(0,b.parseRelativeUrl)(n);this.isSsr&&i===(0,R.addBasePath)(this.asPath)&&l===(0,R.addBasePath)(this.pathname)||(!this._bps||this._bps(a))&&this.change("replaceState",n,i,Object.assign({},s,{shallow:s.shallow&&this._shallow,locale:s.locale||this.defaultLocale,_h:0}),t)};const _=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[_]={Component:o,initial:!0,props:a,err:c,__N_SSG:a&&a.__N_SSG,__N_SSP:a&&a.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=Z.events,this.pageLoader=n;const w=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=u,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!w&&!self.location.search&&0),this.state={route:_,pathname:e,query:t,asPath:w?e:r,isPreview:!!y,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!r.startsWith("//")){const a={locale:h},n=(0,m.getURL)();this._initialMatchesMiddlewarePromise=H({router:this,locale:h,asPath:n}).then(i=>(a._shouldResolveHref=r!==e,this.changeState("replaceState",i?n:(0,x.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),n,a),i))}window.addEventListener("popstate",this.onPopState)}}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,U.isJavaScriptURLString)(e.toString())||t&&(0,U.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,
5configurable:!0});return{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,U.isJavaScriptURLString)(e.toString())||t&&(0,U.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(t,r,a,n){{if(!this._bfl_s&&!this._bfl_d){let r,i,{BloomFilter:s}=e.r(904808);try{({__routerFilterStatic:r,__routerFilterDynamic:i}=await (0,c.getClientBuildManifest)())}catch(e){if(console.error(e),n)return!0;return Y({url:(0,R.addBasePath)((0,P.addLocale)(t,a||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}let o={numItems:10,errorRate:1e-4,numBits:192,numHashes:14,bitArray:[1,1,0,1,1,0,1,1,1,1,0,0,0,1,1,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,1,1,1,0,0,1,0,0,1,0,1,1,1,0,1,0,1,1,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,0,0,0,1,1,1,1,0,1,1,0,1,1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,1,1,0,1,1,0,1,1,0,1,0,1,1,0,0,1,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,0,0,1,0,1,0,1,1,1,1,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,1,1,0,1,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,1,0,1,0,1,0]};!r&&o&&(r=o||void 0);let l={numItems:110,errorRate:1e-4,numBits:2109,numHashes:14,bitArray:[1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,1,0,1,1,0,1,1,0,0,1,0,0,0,0,0,1,0,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,1,1,0,0,0,1,0,0,1,1,1,1,0,0,1,1,1,0,0,0,1,1,1,0,1,1,0,0,1,0,1,1,1,1,0,1,1,0,0,0,1,1,1,0,0,0,0,1,0,0,1,0,1,0,1,1,0,1,0,1,0,1,1,0,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,0,1,1,1,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0,1,1,1,1,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,1,1,0,0,0,0,1,0,0,0,0,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1,1,1,0,1,0,0,1,1,0,0,1,1,1,1,0,0,0,1,1,1,0,1,1,1,0,0,0,1,1,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,1,1,0,1,1,0,0,1,1,0,0,1,1,0,1,0,1,1,1,1,0,1,1,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,0,0,0,0,1,1,1,1,0,1,1,0,0,0,1,0,1,0,1,1,0,0,1,1,1,1,0,0,0,1,1,0,1,0,1,1,0,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,0,1,1,0,1,1,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,1,1,0,0,1,1,1,1,0,1,1,1,1,1,1,0,0,0,0,1,1,1,0,0,1,0,0,0,0,1,1,1,0,1,1,0,0,1,1,0,0,0,1,0,0,1,1,1,0,0,1,1,1,0,1,1,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,1,0,1,1,0,0,0,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,0,1,0,0,0,0,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1,0,0,0,0,1,1,1,1,1,0,1,0,1,1,1,1,0,1,1,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,1,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,1,1,0,0,0,0,0,1,0,1,1,0,0,0,1,1,0,0,1,1,0,1,1,1,1,0,1,0,1,0,1,1,1,1,0,1,1,0,0,1,1,0,0,1,0,1,1,0,0,0,0,0,1,1,1,0,0,1,0,1,0,0,1,1,0,1,1,0,1,1,1,1,1,0,1,0,0,1,0,1,0,0,0,1,1,1,0,1,0,1,0,1,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,0,1,0,0,0,0,1,0,1,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,0,0,1,1,1,1,1,1,0,1,1,0,1,0,1,1,1,0,1,1,0,1,1,1,0,1,0,0,1,1,1,1,0,1,0,1,0,0,0,1,1,1,1,1,0,1,0,1,0,1,0,0,1,0,0,0,1,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,1,0,1,0,0,1,1,0,1,0,1,1,0,1,1,1,0,0,0,1,0,0,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,0,1,1,1,0,0,0,1,0,0,1,1,1,1,1,1,0,1,0,0,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,0,0,0,1,1,1,0,1,1,0,0,0,0,1,1,0,1,1,1,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,1,0,1,1,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,0,1,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,0,1,0,1,1,0,1,1,1,1,0,1,1,0,0,0,0,1,1,0,0,1,1,1,0,1,1,1,0,0,0,0,1,1,0,0,0,0,1,0,1,1,0,1,1,1,1,0,0,0,1,1,1,0,1,1,1,0,0,1,1,0,1,0,1,0,0,0,0,0,1,0,0,0,0,1,1,0,1,0,1,0,0,0,1,0,0,1,1,1,1,1,1,1,0,1,0,1,0,0,0,1,0,0,0,0,1,1,0,1,1,1,0,0,1,1,0,1,0,1,1,0,1,1,1,1,1,0,0,0,1,0,0,0,1,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,0,1,0,0,0,1,0,1,0,0,1,1,0,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,1,1,1,1,1,1,0,1,0,0,0,1,1,0,0,1,0,1,1,1,0,0,0,0,1,0,0,1,0,1,0,1,1,0,1,0,0,1,1,1,1,0,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,1,1,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,1,1,0,0,1,1,0,1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,0,1,0,1,1,0,1,1,0,1,1,0,0,0,1,0,0,0,1,1,1,0,0,1,1,1,0,1,0,1,0,1,0,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,0,1,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,1,1,1,1,0,1,0,1,1,0,1,0,0,1,0,1,0,0,1,1,0,0,0,1,0,1,0,1,1,0,0,1,1,1,0,0,0,1,0,0,1,0,1,1,1,1,0,1,0,0,1,1,1,0,1,1,0,0,0,0,0,0,1,1,1,1,1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0,0,1,1,1,1,1,1,0,0,1,0,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,0,0,0,1,0,1,0,1,1,0,0,1,0,0,1,0,1,0,0,1,1,1,0,0,0,1,0,0,1,0,0,1,0,0,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,1,0,0,1,0,1,0,1,1,1,1,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,0,0,1,0,0,1,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,0,1,0,0,0,0,1,0,1,1,0,0,0,0,1,1,0,1,0,0,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,1,1,1,0,0,0,1,0,1,1,0,1,0,1,0,1,1,0,0,1,0,1,1,0,0,0,1,0,1,0,1,1,0,1,1,0,0,1,1,1,1,1,0,0,0,1,1,1,1,0,1,1,0,1,1,0,1,1,0,0,0,1,0,0,0,1,1,0,0,1,1,1,0,0,1,0,1,0,1,0,1,1,1,1,1,0,0,0,0,1,0,0,0,1,1,1,1,0,0,1,1,1,1,1,0,1,1,0,0,1,1,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,1,0,0,1,0,0,1,0,0,0,1,1,0,1,0,1,0,0,1,0,1,1,0,1,1,1,0,0,0,1,1,1,1,0,1,1,1,0,0,0,0,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,1,0,0,0,1,1,1,0,1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1,0,0,0,1,1,1,1,1,0,0,1,1,1,0,1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,1,1,0,0,1,1,1,0,1,1,0,1,0,1,1,1,1,1,0,1,1,0,1,0,0,0,0,1,1,1,1,1,0,0,1,1,0,1,0,0,0,0,1,0,0,0,1,1,1,0,1,0,0,0,1,0,0,1,1,0,1,0,1,0,0,1,1,0,1,1,0,0,1,1,1,0,0,0,1,1,0,1,1,0,0,1,0,1,0,0,0,0,1,0,1,1,0,1,0,0,1,0,1,0,1,0,0,1,1,0,0,0,1,1,1,1,0,1,1,1,0,0,1,1]};!i&&l&&(i=l||void 0),r?.numHashes&&(this._bfl_s=new s(r.numItems,r.errorRate),this._bfl_s.import(r)),i?.numHashes&&(this._bfl_d=new s(i.numItems,i.errorRate),this._bfl_d.import(i))}let i=!1,s=!1;for(let{as:e,allowMatchCurrent:o}of[{as:t},{as:r}])if(e){let r=(0,l.removeTrailingSlash)(new URL(e,"http://n").pathname),c=(0,R.addBasePath)((0,P.addLocale)(r,a||this.locale));if(o||r!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(i=i||!!this._bfl_s?.contains(r)||!!this._bfl_s?.contains(c),[r,c])){let t=e.split("/");for(let e=0;!s&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){s=!0;break}}}
5if(i||s){if(n)return!0;return Y({url:(0,R.addBasePath)((0,P.addLocale)(t,a||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,n,i){let s,o;if(!(0,M.isLocalURL)(t))return Y({url:t,router:this}),!1;let h=1===n._h;h||n.shallow||await this._bfl(r,void 0,n.locale);let p=h||n._shouldResolveHref||(0,w.parsePath)(t).pathname===(0,w.parsePath)(r).pathname,f={...this.state},O=!0!==this.isReady;this.isReady=!0;let k=this.isSsr;if(h||(this.isSsr=!1),h&&this.clc)return!1;let N=f.locale;m.ST&&performance.mark("routeChange");let{shallow:C=!1,scroll:T=!0}=n,L={shallow:C};this._inFlightRoute&&this.clc&&(k||Z.events.emit("routeChangeError",B(),this._inFlightRoute,L),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,P.addLocale)((0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,n.locale,this.defaultLocale));let D=(0,j.removeLocale)((0,S.hasBasePath)(r)?(0,E.removeBasePath)(r):r,f.locale);this._inFlightRoute=r;let z=N!==f.locale;if(!h&&this.onlyAHashChange(D)&&!z){f.asPath=D,Z.events.emit("hashChangeStart",r,L),this.changeState(e,t,r,{...n,scroll:!1}),T&&this.scrollToHash(D);try{await this.set(f,this.components[f.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,D,L),e}return Z.events.emit("hashChangeComplete",r,L),!0}let U=(0,b.parseRelativeUrl)(t),{pathname:W,query:X}=U;try{[s,{__rewrites:o}]=await Promise.all([this.pageLoader.getPageList(),(0,c.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return Y({url:r,router:this}),!1}this.urlIsNew(D)||z||(e="replaceState");let K=r;W=W?(0,l.removeTrailingSlash)((0,E.removeBasePath)(W)):W;let V=(0,l.removeTrailingSlash)(W),Q=r.startsWith("/")&&(0,b.parseRelativeUrl)(r).pathname;if(this.components[W]?.__appRouter)return Y({url:r,router:this}),new Promise(()=>{});let J=!!(Q&&V!==Q&&(!(0,g.isDynamicRoute)(V)||!(0,v.getRouteMatcher)((0,y.getRouteRegex)(V))(Q))),ee=!n.shallow&&await H({asPath:r,locale:f.locale,router:this});if(h&&ee&&(p=!1),p&&"/_error"!==W)if(n._shouldResolveHref=!0,r.startsWith("/")){let e=a((0,R.addBasePath)((0,P.addLocale)(D,f.locale),!0),s,o,X,e=>q(e,s),this.locales);if(e.externalDest)return Y({url:r,router:this}),!0;ee||(K=e.asPath),e.matchedPage&&e.resolvedHref&&(W=e.resolvedHref,U.pathname=(0,R.addBasePath)(W),ee||(t=(0,x.formatWithValidation)(U)))}else U.pathname=q(W,s),U.pathname!==W&&(W=U.pathname,U.pathname=(0,R.addBasePath)(W),ee||(t=(0,x.formatWithValidation)(U)));if(!h&&!n.shallow&&this._bfl_d&&(0,g.isDynamicRoute)(W)){let e=(0,l.removeTrailingSlash)((0,b.parseRelativeUrl)(D).pathname);if((0,_.hasDynamicFilterCandidate)(W,e,e=>!!this._bfl_d?.contains(e)))return Y({url:r,router:this}),new Promise(()=>{})}if(!(0,M.isLocalURL)(r))return Y({url:r,router:this}),!1;K=(0,j.removeLocale)((0,E.removeBasePath)(K),f.locale),V=(0,l.removeTrailingSlash)(W);let et=!1;if((0,g.isDynamicRoute)(V)){let e=(0,b.parseRelativeUrl)(K),a=e.pathname,n=(0,y.getRouteRegex)(V);et=(0,v.getRouteMatcher)(n)(a);let i=V===a,s=i?(0,$.interpolateAs)(V,a,X):{};if(et&&(!i||s.result))i?r=(0,x.formatWithValidation)(Object.assign({},e,{pathname:s.result,query:(0,I.omit)(X,s.params)})):Object.assign(X,et);else{let e=Object.keys(n.groups).filter(e=>!X[e]&&!n.groups[e].optional);if(e.length>0&&!ee)throw Object.defineProperty(Error((i?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${a}) is incompatible with the \`href\` value (${V}). `)+`Read more: https://nextjs.org/docs/messages/${i?"href-interpolation-failed":"incompatible-href-as"}`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}h||Z.events.emit("routeChangeStart",r,L);let er="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:V,pathname:W,query:X,as:r,resolvedAs:K,routeProps:L,locale:f.locale,isPreview:f.isPreview,hasMiddleware:ee,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:h&&!this.isFallback,isMiddlewareRewrite:J});if(h||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,f.locale),"route"in a&&ee){V=W=a.route||V,L.shallow||(X=Object.assign({},a.query||{},X));let e=(0,S.hasBasePath)(U.pathname)?(0,E.removeBasePath)(U.pathname):U.pathname;
5if(et&&W!==e&&Object.keys(et).forEach(e=>{et&&X[e]===et[e]&&delete X[e]}),(0,g.isDynamicRoute)(W)){let e=!L.shallow&&a.resolvedAs?a.resolvedAs:(0,R.addBasePath)((0,P.addLocale)(new URL(r,location.href).pathname,f.locale),!0);(0,S.hasBasePath)(e)&&(e=(0,E.removeBasePath)(e));let t=(0,y.getRouteRegex)(W),n=(0,v.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(X,n)}}if("type"in a)if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);else return Y({url:a.destination,router:this}),new Promise(()=>{});let o=a.Component;if(o&&o.unstable_scriptLoader&&[].concat(o.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,b.parseRelativeUrl)(t);r.pathname=q(r.pathname,s);let{url:a,as:i}=F(this,t,t);return this.change(e,a,i,n)}return Y({url:t,router:this}),new Promise(()=>{})}if(f.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===G){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:X,as:r,resolvedAs:K,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isNotFound:!0}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}h&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&a.props?.pageProps&&(a.props.pageProps.statusCode=500);let l=n.shallow&&f.route===(a.route??V),c=n.scroll??(!h&&!l),p=i??(c?{x:0,y:0}:null),m={...f,route:V,pathname:W,query:X,asPath:D,isFallback:!1};if(h&&er){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:X,as:r,resolvedAs:K,routeProps:{shallow:!1},locale:f.locale,isPreview:f.isPreview,isQueryUpdating:h&&!this.isFallback}),"type"in a)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&a.props?.pageProps&&(a.props.pageProps.statusCode=500);try{await this.set(m,a,p)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,D,L),e}return!0}if(Z.events.emit("beforeHistoryChange",r,L),this.changeState(e,t,r,n),!(h&&!p&&!O&&!z&&(0,A.compareRouterStates)(m,this.state))){try{await this.set(m,a,p)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw h||Z.events.emit("routeChangeError",a.error,D,L),a.error;h||Z.events.emit("routeChangeComplete",r,L),c&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,a={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=a.shallow,window.history[e]({url:t,as:r,options:a,__N:!0,key:this._key="pushState"!==e?this._key:Q()},"",r))}async handleRouteInfoError(e,t,r,a,n,i){if(e.cancelled)throw e;if((0,c.isAssetError)(e)||i)throw Z.events.emit("routeChangeError",e,a,n),Y({url:a,router:this}),B();console.error(e);try{let a,{page:n,styleSheets:i}=await this.fetchComponent("/_error"),s={props:a,Component:n,styleSheets:i,err:e,error:e};if(!s.props)try{s.props=await this.getInitialProps(n,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),s.props={}}return s}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,a,n,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:a,resolvedAs:n,routeProps:i,locale:s,hasMiddleware:o,isPreview:c,unstable_skipClientCache:u,isQueryUpdating:h,isMiddlewareRewrite:f,isNotFound:m}){let g=e;try{let e=this.components[g];if(i.shallow&&e&&this.route===g)return e;let d=J({route:g,router:this});o&&(e=void 0);let b=!e||"initial"in e?void 0:e,v={dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":n,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persist
5Cache:!c,isPrefetch:!1,unstable_skipClientCache:u,isBackground:h},y=h&&!f?null:await X({fetchData:()=>V(v),asPath:m?"/404":n,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(y&&("/_error"===t||"/404"===t)&&(y.effect=void 0),h&&(y?y.json=self.__NEXT_DATA__.props:y={json:self.__NEXT_DATA__.props}),d(),y?.effect?.type==="redirect-internal"||y?.effect?.type==="redirect-external")return y.effect;if(y?.effect?.type==="rewrite"){let a=(0,l.removeTrailingSlash)(y.effect.resolvedHref),s=await this.pageLoader.getPageList();if((!h||s.includes(a))&&(g=a,t=y.effect.resolvedHref,r={...r,...y.effect.parsedAs.query},n=(0,E.removeBasePath)((0,p.normalizeLocalePath)(y.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],i.shallow&&e&&this.route===g&&!o))return{...e,route:g}}if((0,k.isAPIRoute)(g))return Y({url:a,router:this}),new Promise(()=>{});let _=b||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),w=y?.response?.headers.get("x-middleware-skip"),P=_.__N_SSG||_.__N_SSP;w&&y?.dataHref&&delete this.sdc[y.dataHref];let{props:j,cacheKey:R}=await this._getData(async()=>{if(P){if(y?.json&&!w)return{cacheKey:y.cacheKey,props:y.json};let e=y?.dataHref?y.dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:t,query:r}),asPath:n,locale:s}),a=await V({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:w?{}:this.sdc,persistCache:!c,isPrefetch:!1,unstable_skipClientCache:u});return{cacheKey:a.cacheKey,props:a.json||{}}}return{headers:{},props:await this.getInitialProps(_.Component,{pathname:t,query:r,asPath:a,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return _.__N_SSP&&v.dataHref&&R&&delete this.sdc[R],this.isPreview||!_.__N_SSG||h||V(Object.assign({},v,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),j.pageProps=Object.assign({},j.pageProps),_.props=j,_.route=g,_.query=r,_.resolvedAs=n,this.components[g]=_,_}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,a,i)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[a,n]=e.split("#",2);return!!n&&t===a&&r===n||t===a&&r!==n}scrollToHash(e){let[,t=""]=e.split("#",2);(0,L.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let a=document.getElementsByName(e)[0];a&&a.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if("u">typeof window&&(0,T.isBot)(window.navigator.userAgent))return;let n=(0,b.parseRelativeUrl)(e),i=n.pathname,{pathname:s,query:o}=n,u=s,d=await this.pageLoader.getPageList(),h=t,p=void 0!==r.locale?r.locale||void 0:this.locale,f=await H({asPath:t,locale:p,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,c.getClientBuildManifest)());let i=a((0,R.addBasePath)((0,P.addLocale)(t,this.locale),!0),d,r,n.query,e=>q(e,d),this.locales);if(i.externalDest)return;f||(h=(0,j.removeLocale)((0,E.removeBasePath)(i.asPath),this.locale)),i.matchedPage&&i.resolvedHref&&(n.pathname=s=i.resolvedHref,f||(e=(0,x.formatWithValidation)(n)))}n.pathname=q(n.pathname,d),(0,g.isDynamicRoute)(n.pathname)&&(s=n.pathname,n.pathname=s,Object.assign(o,(0,v.getRouteMatcher)((0,y.getRouteRegex)(n.pathname))((0,w.parsePath)(t).pathname)||{}),f||(e=(0,x.formatWithValidation)(n)));let m=await X({fetchData:()=>V({dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:u,query:o}),skipInterpolation:!0,asPath:h,locale:p}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:p,router:this});if(m?.effect.type==="rewrite"&&(n.pathname=m.effect.resolvedHref,s=m.effect.resolvedHref,o={...o,...m.effect.parsedAs.query},h=m.effect.parsedAs.pathname,e=(0,x.formatWithValidation)(n)),m?.effect.type==="redirect-external")return;let _=(0,l.removeTrailingSlash)(s);await this._bfl(t,h,r.locale,!0)&&(this.components[i]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(_).then(t=>!!t&&V({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:h,locale:p}
5),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](_)])}async fetchComponent(e){let t=J({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],a=this._wrapApp(r);return t.AppTree=a,(0,m.loadGetInitialProps)(r,{AppTree:a,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},559137,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return n}});let a=e.r(226630);function n(e,t){if(!(0,a.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},802630,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return s}});let a=e.r(606097),n=e.r(559137),i=e.r(226630);function s(e,t){let{basePath:r,i18n:s,trailingSlash:o}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):o};r&&(0,i.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,n.removePathPrefix)(l.pathname,r),l.basePath=r);let c=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],c="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=c)}if(s){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,a.normalizeLocalePath)(l.pathname,s.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,a.normalizeLocalePath)(c,s.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},709550,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return s}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let a=e[0];if(a.startsWith("[")&&a.endsWith("]")){let i=a.slice(1,-1),s=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),s=!0),i.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${i}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,
5configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${i}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${i}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function n(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(r)if(s){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});n(this.optionalRestSlugName,i),this.optionalRestSlugName=i,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});n(this.restSlugName,i),this.restSlugName=i,a="[...]"}else{if(s)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});n(this.slugName,i),this.slugName=i,a="[]"}}this.children.has(a)||this.children.set(a,new i),this.children.get(a)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function s(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},a=[];for(let n=0;n<e.length;n++){let i=t(e[n]);r[i]=n,a[n]=i}return s(a).map(t=>e[r[t]])}},200323,e=>{"use strict";var t=e.i(788816),r=e.i(986937),a=e.i(133255),n=e.i(883507),i=e.i(58333),s=e.i(846244),o=e.i(241636),l=(0,s.withMemo)(function(e){var t=(0,a.usePathname)(),r=(0,a.useSearchParams)();return(0,s.useAnchorProgress)(e,[t,r]),null});l.displayName="AppProgress",(0,s.withSuspense)(l),(0,s.withMemo)(function(e){var t=e.shallowRouting,r=void 0!==t&&t,a=e.disableSameURL,l=void 0===a||a,c=e.startPosition,u=void 0===c?0:c,d=e.delay,h=void 0===d?0:d,p=e.stopDelay,f=void 0===p?0:p,m=(0,s.useProgress)(),g=m.start,b=m.stop;return(0,n.useEffect)(function(){var e=function(e){var t=new URL(e,location.href),a=new URL(location.href);r&&(0,i.isSameURLWithoutSearch)(t,a)&&l||(0,i.isSameURL)(t,a)&&l||g(u,h)},t=function(){return b(f)};return o.default.events.on("routeChangeStart",e),o.default.events.on("routeChangeComplete",t),o.default.events.on("routeChangeError",t),function(){o.default.events.off("routeChangeStart",e),o.default.events.off("routeChangeComplete",t),o.default.events.off("routeChangeError",t)}},[]),null}).displayName="PagesProgress";let c=(0,e.i(279448).default)("outline","apps","Apps",[["path",{d:"M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-0"}],["path",{d:"M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-1"}],["path",{d:"M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4",key:"svg-2"}],["path",{d:"M14 7l6 0",key:"svg-3"}],["path",{d:"M17 4l0 6",key:"svg-4"}]]);e.i(749980);var u=e.i(397705),d=e.i(24507),h=e.i(634703),p=e.i(540330),f=e.i(448550),m=e.i(710616),g=e.i(19443),b=e.i(945060),v=e.i(71742),y=e.i(643942),_=e.i(487486),x=e.i(519455),w=e.i(436971),P=e.i(581769),j=/[\\\/_+.#"@\[\(\{&]/,E=/[\\\/_+.#"@\[\(\{&]/g,R=/[\s-]/,S=/[\s-]/g;function O(e){return e.toLowerCase().replace(S," ")}var k=e.i(287272),N=e.i(978238),C=e.i(432567),A=e.i(166100),M='[cmdk-group=""]',T='[cmdk-group-items=""]',I='[cmdk-item=""]',$=`${I}:not([aria-disabled="true"])`,L="cmdk-item-select",D="data-value",z=(e,t,r)=>{var a;return a=e,function e(t,r,a,n,i,s,o){if(s===r.length)return i===t.length?1:.99;var l=`${i},${s}`;if(void 0!==o[l])return o[l];for(var c,u,d,h,p=n.charAt(s),f=a.indexOf(p,i),m=0;f>=0;)(c=e(t,r,a,n,f+1,s+1,o))>m&&(f===i?c*=1:j.test(t.charAt(f-1))?(c*=.8,(d=t.slice(i,f-1).match(E))&&i>0&&(c*=Math.pow(.999,d.length))):R.test(t.charAt(f-1))?(c*=.9,(h=t.slice(i,f-1).match(S))&&i>0&&(c*=Math.pow(.999,h.length))):(c*=.17,i>0&&(c*=Math.pow(.999,f-i))),t.charAt(f)!==r.charAt(s)&&(c*=.9999)),(c<.1&&a.charAt(f-1)===n.charAt(s+1)||n.charAt(s+1)===n.charAt(s)&&a.charAt(f-1)!==n.charAt(s))&&.1*(u=e(t,r,a,n,f+1,s+2,o))>c&&(c=.1*u),c>m&&(m=c),f=a.indexOf(p,f+1);return o[l]=m,m}(a=r&&r.length>0?`${a+" "+r.join(" ")}
5`:a,t,O(a),O(t),0,0,{})},U=n.createContext(void 0),B=n.createContext(void 0),H=n.createContext(void 0),W=n.forwardRef((e,t)=>{let r=Z(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=Z(()=>new Set),i=Z(()=>new Map),s=Z(()=>new Map),o=Z(()=>new Set),l=Y(e),{label:c,children:u,value:d,onValueChange:h,filter:p,shouldFilter:f,loop:m,disablePointerSelection:g=!1,vimBindings:b=!0,...v}=e,y=(0,C.useId)(),_=(0,C.useId)(),x=(0,C.useId)(),w=n.useRef(null),P=er();J(()=>{if(void 0!==d){let e=d.trim();r.current.value=e,j.emit()}},[d]),J(()=>{P(6,A)},[]);let j=n.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>r.current,setState:(e,t,a)=>{var n,i,s,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)k(),S(),P(1,O);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(x);e?e.focus():null==(n=document.getElementById(y))||n.focus()}if(P(7,()=>{var e;r.current.selectedItemId=null==(e=H())?void 0:e.id,j.emit()}),a||P(5,A),(null==(i=l.current)?void 0:i.value)!==void 0){null==(o=(s=l.current).onValueChange)||o.call(s,null!=t?t:"");return}}j.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),E=n.useMemo(()=>({value:(e,t,a)=>{var n;t!==(null==(n=s.current.get(e))?void 0:n.value)&&(s.current.set(e,{value:t,keywords:a}),r.current.filtered.items.set(e,R(t,a)),P(2,()=>{S(),j.emit()}))},item:(e,t)=>(a.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),P(3,()=>{k(),S(),r.current.value||O(),j.emit()}),()=>{s.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e);let t=H();P(4,()=>{k(),(null==t?void 0:t.getAttribute("id"))===e&&O(),j.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{s.current.delete(e),i.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:y,inputId:x,labelId:_,listInnerRef:w}),[]);function R(e,t){var a,n;let i=null!=(n=null==(a=l.current)?void 0:a.filter)?n:z;return e?i(e,r.current.search,t):0}function S(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let a=i.current.get(r),n=0;a.forEach(t=>{n=Math.max(e.get(t),n)}),t.push([r,n])});let a=w.current;W().sort((t,r)=>{var a,n;let i=t.getAttribute("id"),s=r.getAttribute("id");return(null!=(a=e.get(s))?a:0)-(null!=(n=e.get(i))?n:0)}).forEach(e=>{let t=e.closest(T);t?t.appendChild(e.parentElement===t?e:e.closest(`${T} > *`)):a.appendChild(e.parentElement===a?e:e.closest(`${T} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=w.current)?void 0:t.querySelector(`${M}[${D}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function O(){let e=W().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(D);j.setState("value",t||void 0)}function k(){var e,t,n,o;if(!r.current.search||!1===l.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let i of a.current){let a=R(null!=(t=null==(e=s.current.get(i))?void 0:e.value)?t:"",null!=(o=null==(n=s.current.get(i))?void 0:n.keywords)?o:[]);r.current.filtered.items.set(i,a),a>0&&c++}for(let[e,t]of i.current)for(let a of t)if(r.current.filtered.items.get(a)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function A(){var e,t,r;let a=H();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(r=null==(t=a.closest(M))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function H(){var e;return null==(e=w.current)?void 0:e.querySelector(`${I}[aria-selected="true"]`)}function W(){var e;return Array.from((null==(e=w.current)?void 0:e.querySelectorAll($))||[])}function F(e){let t=W()[e];t&&j.setState("value",t.getAttribute(D))}function q(e){var t;let r=H(),a=W(),n=a.findIndex(e=>e===r),i=a[n+e];null!=(t=l.current)&&t.loop&&(i=n+e<0?a[a.length-1]:n+e===a.length?a[0]:a[n+e]),i&&j.setState("value",i.getAttribute(D))}function X(e){let t=H(),r=null==t?void 0:t.closest(M),a;for(;r&&!a;)a=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,M):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,M))?void 0:r.querySelector($);a?j.setState("value",a.getAttribute(D)):q(e)}let G=()=>F(W().length-1),K=e=>{e.preventDefault(),e.metaKey?G():e.altKey?X(1):q(1)},V=e=>{e.preventDefault(),e.metaKey?F(0):e.altKey?X(-1):q(-1)};return n.createElement(N.Primitive.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=v.onKeyDown)||t.call(v,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":b&&e.ctrlKey&&K(e);break;case"ArrowDown":K(e);break;case"p":case"k":b&&e.ctrlKey&&V(e);break;case"ArrowUp":V(e);break;case"Home":e.preventDefault(),F(0);break;case"End":e.preventDefault(),G();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(L);t.dispatchEvent(e)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:en},c),ea(e,e=>n.createElement(B.Provider,{value:j},n.createElement(U.Provider,{value:E},e))))}),F=n.forwardRef((e,t)=>
5{var r,a;let i=(0,C.useId)(),s=n.useRef(null),o=n.useContext(H),l=n.useContext(U),c=Y(e),u=null!=(a=null==(r=c.current)?void 0:r.forceMount)?a:null==o?void 0:o.forceMount;J(()=>{if(!u)return l.item(i,null==o?void 0:o.id)},[u]);let d=et(i,s,[e.value,e.children,s],e.keywords),h=n.useContext(B),p=ee(e=>e.value&&e.value===d.current),f=ee(e=>!!u||!1===l.filter()||!e.search||e.filtered.items.get(i)>0);function m(){var e,t;g(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function g(){h.setState("value",d.current,!0)}if(n.useEffect(()=>{let t=s.current;if(!(!t||e.disabled))return t.addEventListener(L,m),()=>t.removeEventListener(L,m)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:b,value:v,onSelect:y,forceMount:_,keywords:x,...w}=e;return n.createElement(N.Primitive.div,{ref:(0,A.composeRefs)(s,t),...w,id:i,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!p,"data-disabled":!!b,"data-selected":!!p,onPointerMove:b||l.getDisablePointerSelection()?void 0:g,onClick:b?void 0:m},e.children)}),q=n.forwardRef((e,t)=>{let{heading:r,children:a,forceMount:i,...s}=e,o=(0,C.useId)(),l=n.useRef(null),c=n.useRef(null),u=(0,C.useId)(),d=n.useContext(U),h=ee(e=>!!i||!1===d.filter()||!e.search||e.filtered.groups.has(o));J(()=>d.group(o),[]),et(o,l,[e.value,e.heading,c]);let p=n.useMemo(()=>({id:o,forceMount:i}),[i]);return n.createElement(N.Primitive.div,{ref:(0,A.composeRefs)(l,t),...s,"cmdk-group":"",role:"presentation",hidden:!h||void 0},r&&n.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),ea(e,e=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},n.createElement(H.Provider,{value:p},e))))}),X=n.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,i=n.useRef(null),s=ee(e=>!e.search);return r||s?n.createElement(N.Primitive.div,{ref:(0,A.composeRefs)(i,t),...a,"cmdk-separator":"",role:"separator"}):null}),G=n.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,i=null!=e.value,s=n.useContext(B),o=ee(e=>e.search),l=ee(e=>e.selectedItemId),c=n.useContext(U);return n.useEffect(()=>{null!=e.value&&s.setState("search",e.value)},[e.value]),n.createElement(N.Primitive.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:i?e.value:o,onChange:e=>{i||s.setState("search",e.target.value),null==r||r(e.target.value)}})}),K=n.forwardRef((e,t)=>{let{children:r,label:a="Suggestions",...i}=e,s=n.useRef(null),o=n.useRef(null),l=ee(e=>e.selectedItemId),c=n.useContext(U);return n.useEffect(()=>{if(o.current&&s.current){let e=o.current,t=s.current,r,a=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return a.observe(e),()=>{cancelAnimationFrame(r),a.unobserve(e)}}},[]),n.createElement(N.Primitive.div,{ref:(0,A.composeRefs)(s,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":a,id:c.listId},ea(e,e=>n.createElement("div",{ref:(0,A.composeRefs)(o,c.listInnerRef),"cmdk-list-sizer":""},e)))}),V=n.forwardRef((e,t)=>{let{open:r,onOpenChange:a,overlayClassName:i,contentClassName:s,container:o,...l}=e;return n.createElement(k.Root,{open:r,onOpenChange:a},n.createElement(k.Portal,{container:o},n.createElement(k.Overlay,{"cmdk-overlay":"",className:i}),n.createElement(k.Content,{"aria-label":e.label,"cmdk-dialog":"",className:s},n.createElement(W,{ref:t,...l}))))}),Q=Object.assign(W,{List:K,Item:F,Input:G,Group:q,Separator:X,Dialog:V,Empty:n.forwardRef((e,t)=>ee(e=>0===e.filtered.count)?n.createElement(N.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:n.forwardRef((e,t)=>{let{progress:r,children:a,label:i="Loading...",...s}=e;return n.createElement(N.Primitive.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},ea(e,e=>n.createElement("div",{"aria-hidden":!0},e)))})});function Y(e){let t=n.useRef(e);return J(()=>{t.current=e}),t}var J="u"<typeof window?n.useEffect:n.useLayoutEffect;function Z(e){let t=n.useRef();return void 0===t.current&&(t.current=e()),t}function ee(e){let t=n.useContext(B),r=()=>e(t.snapshot());return n.useSyncExternalStore(t.subscribe,r,r)}function et(e,t,r,a=[]){let i=n.useRef(),s=n.useContext(U);return J(()=>{var n;let o=(()=>{var e;
5for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),l=a.map(e=>e.trim());s.value(e,o,l),null==(n=t.current)||n.setAttribute(D,o),i.current=o}),i}var er=()=>{let[e,t]=n.useState(),r=Z(()=>new Map);return J(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,a)=>{r.current.set(e,a),t({})}};function ea({asChild:e,children:t},r){let a;return e&&n.isValidElement(t)?n.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var en={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},ei=e.i(776639),es=e.i(950594),eo=e.i(759684);function el(e){let a,n,i,s,o=(0,r.c)(8);return o[0]!==e?({className:a,...n}=e,o[0]=e,o[1]=a,o[2]=n):(a=o[1],n=o[2]),o[3]!==a?(i=(0,b.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-bg p-1 text-fg",a),o[3]=a,o[4]=i):i=o[4],o[5]!==n||o[6]!==i?(s=(0,t.jsx)(Q,{"data-slot":"command",className:i,...n}),o[5]=n,o[6]=i,o[7]=s):s=o[7],s}function ec(e){let a,n,i,s,o,l,c,u,d,h,p,f,m,g,v=(0,r.c)(28);v[0]!==e?({title:o,description:l,children:a,className:n,showCloseButton:c,shouldFilter:s,...i}=e,v[0]=e,v[1]=a,v[2]=n,v[3]=i,v[4]=s,v[5]=o,v[6]=l,v[7]=c):(a=v[1],n=v[2],i=v[3],s=v[4],o=v[5],l=v[6],c=v[7]);let y=void 0===o?"Command Palette":o,_=void 0===l?"Search for a command to run...":l,x=void 0!==c&&c;return v[8]!==y?(u=(0,t.jsx)(ei.DialogTitle,{children:y}),v[8]=y,v[9]=u):u=v[9],v[10]!==_?(d=(0,t.jsx)(ei.DialogDescription,{children:_}),v[10]=_,v[11]=d):d=v[11],v[12]!==u||v[13]!==d?(h=(0,t.jsxs)(ei.DialogHeader,{className:"sr-only",children:[u,d]}),v[12]=u,v[13]=d,v[14]=h):h=v[14],v[15]!==n?(p=(0,b.cn)("overflow-hidden rounded-xl! p-0",n),v[15]=n,v[16]=p):p=v[16],v[17]!==a||v[18]!==s?(f=(0,t.jsx)(el,{shouldFilter:s,children:a}),v[17]=a,v[18]=s,v[19]=f):f=v[19],v[20]!==x||v[21]!==p||v[22]!==f?(m=(0,t.jsx)(ei.DialogContent,{className:p,showCloseButton:x,children:f}),v[20]=x,v[21]=p,v[22]=f,v[23]=m):m=v[23],v[24]!==i||v[25]!==h||v[26]!==m?(g=(0,t.jsxs)(ei.Dialog,{...i,children:[h,m]}),v[24]=i,v[25]=h,v[26]=m,v[27]=g):g=v[27],g}function eu(e){let a,n,i,s,o,l,c=(0,r.c)(11);return c[0]!==e?({className:a,...n}=e,c[0]=e,c[1]=a,c[2]=n):(a=c[1],n=c[2]),c[3]!==a?(i=(0,b.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",a),c[3]=a,c[4]=i):i=c[4],c[5]!==n||c[6]!==i?(s=(0,t.jsx)(Q.Input,{"data-slot":"command-input",className:i,...n}),c[5]=n,c[6]=i,c[7]=s):s=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(es.InputGroupAddon,{children:(0,t.jsx)(P.IconSearch,{className:"size-4 shrink-0 opacity-50"})}),c[8]=o):o=c[8],c[9]!==s?(l=(0,t.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,t.jsxs)(es.InputGroup,{className:"h-8! rounded-lg! border-fg/5 bg-fg/5 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[s,o]})}),c[9]=s,c[10]=l):l=c[10],l}function ed(e){let a,n,i,s,o,l,c=(0,r.c)(12);return c[0]!==e?({className:n,children:a,...i}=e,c[0]=e,c[1]=a,c[2]=n,c[3]=i):(a=c[1],n=c[2],i=c[3]),c[4]!==n?(s=(0,b.cn)("max-h-72",n),c[4]=n,c[5]=s):s=c[5],c[6]!==a||c[7]!==i?(o=(0,t.jsx)(Q.List,{"data-slot":"command-list",className:"scroll-py-1 overflow-hidden pt-1 outline-none *:[[cmdk-list-sizer]]:pb-1",...i,children:a}),c[6]=a,c[7]=i,c[8]=o):o=c[8],c[9]!==s||c[10]!==o?(l=(0,t.jsx)(eo.ScrollArea,{className:s,children:o}),c[9]=s,c[10]=o,c[11]=l):l=c[11],l}function eh(e){let a,n,i,s,o=(0,r.c)(8);return o[0]!==e?({className:a,...n}=e,o[0]=e,o[1]=a,o[2]=n):(a=o[1],n=o[2]),o[3]!==a?(i=(0,b.cn)("overflow-hidden p-1 text-fg **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-fg/70 **:[[cmdk-group-heading]]:text-xs",a),o[3]=a,o[4]=i):i=o[4],o[5]!==n||o[6]!==i?(s=(0,t.jsx)(Q.Group,{"data-slot":"command-group",className:i,...n}),o[5]=n,o[6]=i,o[7]=s):s=o[7],s}function ep(e){let a,n,i,s,o,l,c=(0,r.c)(11);return c[0]!==e?({className:n,children:a,...i}=e,c[0]=e,c[1]=a,c[2]=n,c[3]=i):(a=c[1],n=c[2],i=c[3]),c[4]!==n?(s=(0,b.cn)("group/command-item relative flex cursor-default select-none items-center gap-2 in-data-[slot=dialog-content]:rounded-lg! rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-ac/10 data-[selected=true]:text-ac data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 data-selected:*:[svg]:text-ac",n),c[4]=n,c[5]=s):s=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(w.IconCheck,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"}),c[6]=o):o=c[6],c[7]!==a||c[8]!==i||c[9]!==s?(l=(0,t.jsxs)(Q.Item,{"data-slot":"command-item",className:s,...i,children:[a,o]}),c[7]=a,c[8]=i,c[9]=s,c[10]=l):l=c[10],l}function ef(e){let a,n,i,s,o=(0,r.c)(8);return o[0]!==e?({className:a,...n}=e,o[0]=e,o[1]=a,o[2]=n):(a=o[1],n=o[2]),o[3]!==a?(i=(0,b.cn)("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm bg-fg/10 px-1 font-medium font-sans text-fg text-xs","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-fg [[data-slot=tooltip-content]_&]:text-bg",a),o[3]=a,o[4]=i):i=o[4],o[5]!==n||o[6]!==i?(s=(0,t.jsx)("kbd",{"data-slot":"kbd",className:i,...n}),o[5]=n,o[6]=i,o[7]=s):s=o[7],s}let em={post:"news"};async function eg([e,t]){if(!t.query.trim())return{hits:[]};try{let r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)return console.error("Search API failed:",r.statusText),{hits:[]};return await r.json()}catch(e){if(e instanceof Error&&"AbortError"===e.name)return{hits:[]};return console.error("Search API error:",e),{hits:[]}}}function eb(e){let a,n,i,s,o,l,c,u,d=(0,r.c)(24),{link:p,descNode:f,onSelect:m}=e,g=(0,h.useMessages)(),b=p.title;return d[0]!==p.icon?(a=p.icon&&(0,t.jsx)("span",{className:"mt-1",children:p.icon}),d[0]=p.icon,d[1]=a):a=d[1],d[2]!==p.iconCmdk?(n=p.iconCmdk&&(0,t.jsx)("span",{className:"mt-1",children:p.iconCmdk}),d[2]=p.iconCmdk,d[3]=n):n=d[3],d[4]!==p.title||d[5]!==g?(i=g(p.title),d[4]=p.title,d[5]=g,d[6]=i):i=d[6],d[7]!==i?(s=(0,t.jsx)("div",{className:"font-medium",children:i}),d[7]=i,d[8]=s):s=d[8],d[9]!==f||d[10]!==p.desc||d[11]!==g?(o=(f||p.desc)&&(0,t.jsx)("div",{className:"text-fg/70 text-xs",children:f??g(p.desc)}),d[9]=f,d[10]=p.desc,d[11]=g,d[12]=o):o=d[12],d[13]!==s||d[14]!==o?(l=(0,t.jsxs)("div",{children:[s,o]}),d[13]=s,d[14]=o,d[15]=l):l=d[15],d[16]!==a||d[17]!==n||d[18]!==l?(c=(0,t.jsx)("div",{className:"flex w-full",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[a,n,l]})}),d[16]=a,d[17]=n,d[18]=l,d[19]=c):c=d[19],d[20]!==p.title||d[21]!==m||d[22]!==c?(u=(0,t.jsx)(ep,{value:b,onSelect:m,children:c}),d[20]=p.title,d[21]=m,d[22]=c,d[23]=u):u=d[23],u}function ev(e){let a,n,i,s,o,l=(0,r.c)(14),{hit:c,onSelect:u}=e;return l[0]!==c.post_title?(a=(0,t.jsx)("div",{className:"[&_em]:bg-yellow-200/30 [&_em]:font-semibold [&_em]:not-italic",dangerouslySetInnerHTML:{__html:c.post_title}}),l[0]=c.post_title,l[1]=a):a=l[1],l[2]!==c.abstract?(n=c.abstract&&(0,t.jsx)("div",{className:"line-clamp-2 text-fg/80 text-sm [&_em]:bg-yellow-200/30 [&_em]:font-semibold [&_em]:not-italic",dangerouslySetInnerHTML:{__html:c.abstract}}),l[2]=c.abstract,l[3]=n):n=l[3],l[4]!==c.post_type_label?(i=(0,t.jsx)(_.Badge,{children:c.post_type_label}),l[4]=c.post_type_label,l[5]=i):i=l[5],l[6]!==a||l[7]!==n||l[8]!==i?(s=(0,t.jsx)("div",{className:"flex w-full",children:(0,t.jsxs)("div",{className:"space-y-1",children:[a,n,i]})}),l[6]=a,l[7]=n,l[8]=i,l[9]=s):s=l[9],l[10]!==c.post_title||l[11]!==u||l[12]!==s?(o=(0,t.jsx)(ep,{value:c.post_title,onSelect:u,children:s}
5),l[10]=c.post_title,l[11]=u,l[12]=s,l[13]=o):o=l[13],o}function ey(e){return"link"===e.type}e.s(["Command",0,function(){let e,i,o,l,h,_,w,P,j,E,R,S,O,k,N,C,A,M,T=(0,r.c)(44),[I,$]=(0,n.useState)(!1),[L,D]=(0,n.useState)(""),[z,U]=(0,n.useState)(""),B=(0,n.useRef)(0),H=(0,n.useRef)(!1),W=(0,n.useRef)(""),F=(0,a.useParams)(),q=(0,a.usePathname)(),X=(0,a.useRouter)(),{start:G}=(0,s.useProgress)(),K=(0,d.useGT)(),V=F?.lang?`/${F.lang}`:"",Q=F?.lang||"cn";T[0]!==q?(e=q?.includes("/docs")??!1,T[0]=q,T[1]=e):e=T[1];let Y=e,J=(0,y.navLinks)({resolvedBase:V,pathname:q,lang:Q}).filter(ey),Z=L.toLowerCase(),ee=L?J.filter(e=>e.title.toLowerCase().includes(Z)||e.href.toLowerCase().includes(Z)||e.desc.toLowerCase().includes(Z)):J;T[2]!==L?(i=()=>{let e=setTimeout(()=>{U(L)},300);return()=>clearTimeout(e)},o=[L],T[2]=L,T[3]=i,T[4]=o):(i=T[3],o=T[4]),(0,n.useEffect)(i,o);let et=z.trim(),er=I&&et.length>0;T[5]===Symbol.for("react.memo_cache_sentinel")?(l={dedupingInterval:500,keepPreviousData:!0,revalidateOnFocus:!1},T[5]=l):l=T[5];let{data:ea,isValidating:en}=(0,g.default)(er?["/api/search-hyperai",{query:et,locale:Q,size:10}]:null,eg,l),ei=er?ea?.hits??[]:[],es=er&&en,eo=ee.length;(0,n.useEffect)(()=>{er&&ea&&!en&&W.current!==et&&(W.current=et,f.default.capture("command_palette_searched",{query:et,query_length:et.length,results_count:ea.hits.length,nav_results_count:eo,lang:Q}))},[er,ea,en,et,eo,Q]);let el=e=>{B.current=Date.now(),H.current=!1,W.current="",f.default.capture("command_palette_opened",{trigger:e,lang:Q}),$(!0)},ep=e=>{!e&&I&&f.default.capture("command_palette_closed",{action_taken:H.current,had_query:L.length>0,query_length:L.length,duration_ms:Date.now()-B.current}),$(e),e||(D(""),U(""))},e_=(e,t,r)=>{H.current=!0,f.default.capture("command_palette_item_selected",{item_type:void 0===r?"nav_link":r,url:e.href,position:t,query:L,query_length:L.length,external:!!e.external}),ep(!1),e.external?window.open(e.href,"_blank"):(G(),X.push(e.href))},ex=`${V}/search?q=${encodeURIComponent(L)}`;T[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)("span",{className:"i-mingcute-search-ai-line size-5 shrink-0 opacity-50"}),T[6]=h):h=T[6],T[7]!==ex?(_={title:"AI Search",desc:"",href:ex,type:"link",iconCmdk:h},T[7]=ex,T[8]=_):_=T[8];let ew=_,eP=!Y;T[9]!==eP?(w={enabled:eP,enableOnFormTags:!1},T[9]=eP,T[10]=w):w=T[10],T[11]!==Q||T[12]!==I||T[13]!==L?(P=[I,L,Q],T[11]=Q,T[12]=I,T[13]=L,T[14]=P):P=T[14],(0,m.useHotkeys)("mod+k",e=>{e.preventDefault(),I?ep(!1):el("hotkey")},w,P),T[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(c,{}),T[15]=j):j=T[15],T[16]===Symbol.for("react.memo_cache_sentinel")?(E=(0,t.jsxs)(ef,{className:"hidden sm:flex",children:[(0,t.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]}),T[16]=E):E=T[16],T[17]!==K?(R=K("Enter keywords to search…"),T[17]=K,T[18]=R):R=T[18],T[19]===Symbol.for("react.memo_cache_sentinel")?(S=e=>D(e),T[19]=S):S=T[19],T[20]!==L||T[21]!==R?(O=(0,t.jsx)(eu,{placeholder:R,value:L,onValueChange:S,autoFocus:!0}),T[20]=L,T[21]=R,T[22]=O):O=T[22],T[23]===Symbol.for("react.memo_cache_sentinel")?(k=(0,b.cn)("h-[80dvh] max-h-[calc(100dvh-6rem)]","mask-[linear-gradient(to_bottom,transparent,black_0.75rem,black_100%,transparent)]"),T[23]=k):k=T[23];let ej=!L&&(0,t.jsx)(eh,{heading:K("Navigation"),children:J.map((e,r)=>(0,t.jsx)(eb,{link:e,onSelect:()=>e_(e,r)},`nav-${r}`))}),eE=L&&ee.length>0&&(0,t.jsx)(eh,{heading:K("Navigation"),children:ee.map((e,r)=>(0,t.jsx)(eb,{link:e,onSelect:()=>e_(e,r)},`nav-${r}`))}),eR=ei.length>0&&(0,t.jsx)(eh,{heading:K("Search Results"),children:ei.map((e,r)=>(0,t.jsx)(ev,{hit:e,onSelect:()=>{let t,a,n,i;return a=(t=e.post_type)in em?em[t]:t,n=e.link||`${V}/${a}/${e.post_id}`,i=(0,v.parseInternalUrl)(n),void(H.current=!0,f.default.capture("command_palette_item_selected",{item_type:"search_result",url:i.url,position:r,query:L,query_length:L.length,result_post_type:e.post_type,result_post_id:e.post_id}),ep(!1),G(),X.push(i.url))}},e.objectID))});return T[24]!==es?(N=es&&(0,t.jsx)("div",{className:"py-6 text-center text-fg/70 text-sm",children:(0,t.jsx)(u.T,{children:"Searching…"})}),T[24]=es,T[25]=N):N=T[25],T[26]!==ew||T[27]!==e_||T[28]!==L?(C=L.length>1&&(0,t.jsx)(eh,{children:(0,t.jsx)(eb,{link:ew,descNode:(0,t.jsxs)(u.T,{children:["Search “",(0,t.jsx)(p.Var,{children:L}),"” with AI"]}),onSelect:()=>e_(ew,0,"ai_search")})}),T[26]=ew,T[27]=e_,T[28]=L,T[29]=C):C=T[29],T[30]!==ed||T[31]!==k||T[32]!==ej||T[33]!==eE||T[34]!==eR||T[35]!==N||T[36]!==C?(A=(0,t.jsxs)(ed,{className:k,children:[ej,eE,eR,N,C]}),T[30]=ed,T[31]=k,T[32]=ej,T[33]=eE,T[34]=eR,T[35]=N,T[36]=C,T[37]=A):A=T[37],T[38]!==ec||T[39]!==ep||T[40]!==I||T[41]!==O||T[42]!==A?(M=(0,t.jsxs)(ec,{open:I,onOpenChange:ep,shouldFilter:!1,children:[O,A]}),T[38]=ec,T[39]=ep,T[40]=I,T[41]=O,T[42]=A,T[43]=M):M=T[43],(0,t.jsxs)("div",{children:[(0,t.jsxs)(x.Button,{type:"button",variant:"ghost",onClick:()=>el("button"),className:"flex items-center gap-2 [&>svg]:size-5",children:[j,E]}),M]})}],200323)},23553,e=>{"use strict";var t=e.i(788816),r=e.i(986937),a=e.i(341912),n=e.i(133255),i=e.i(448550),s=e.i(883507),o=e.i(588814),l=e.i(519455);e.s(["default",0,e=>{let c,u,d,h,p,f,m,g,b=(0,r.c)(17);b[0]!==e?({onSignIn:u,children:c,...d}=e,b[0]=e,b[1]=c,b[2]=u,b[3]=d):(c=b[1],u=b[2],d=b[3]);
5let[v,y]=(0,s.useState)(!1),[_,x]=(0,s.useState)(!1);b[4]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{x(!!(0,o.getReferralCode)())},p=[],b[4]=h,b[5]=p):(h=b[4],p=b[5]),(0,s.useEffect)(h,p),b[6]!==_||b[7]!==u?(f=async()=>{y(!0),i.default.capture("sign_in_initiated",{has_referral_code:_}),u().catch(e=>{(0,n.unstable_rethrow)(e),console.error("Sign in failed:",e),y(!1)})},b[6]=_,b[7]=u,b[8]=f):f=b[8];let w=f;b[9]!==_?(m=_&&(0,t.jsx)(a.IconGift,{}),b[9]=_,b[10]=m):m=b[10];let P=c||"Sign In";return b[11]!==w||b[12]!==v||b[13]!==d||b[14]!==m||b[15]!==P?(g=(0,t.jsxs)(l.Button,{tint:"accent",variant:"solid",loading:v,onClick:w,...d,children:[m,P]}),b[11]=w,b[12]=v,b[13]=d,b[14]=m,b[15]=P,b[16]=g):g=b[16],g}])},823373,e=>{"use strict";var t=e.i(788816),r=e.i(986937);let a=(0,e.i(279448).default)("outline","logout","Logout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);var n=e.i(328021);e.s(["default",0,e=>{let i,s,o,l,c,u,d=(0,r.c)(11);d[0]!==e?({onSignOut:s,children:i,...o}=e,d[0]=e,d[1]=i,d[2]=s,d[3]=o):(i=d[1],s=d[2],o=d[3]),d[4]!==s?(l=()=>{s()},d[4]=s,d[5]=l):l=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(a,{}),d[6]=c):c=d[6];let h=i||"Sign Out";return d[7]!==o||d[8]!==l||d[9]!==h?(u=(0,t.jsxs)(n.DropdownMenuItem,{onClick:l,...o,children:[c,h]}),d[7]=o,d[8]=l,d[9]=h,d[10]=u):u=d[10],u}],823373)},643942,e=>{"use strict";var t=e.i(788816),r=e.i(835158),a=e.i(987155),n=e.i(987425),i=e.i(535541),s=e.i(279448);let o=(0,s.default)("outline","coin","Coin",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M14.8 9a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1",key:"svg-1"}],["path",{d:"M12 7v10",key:"svg-2"}]]);var l=e.i(61668),c=e.i(892301),u=e.i(340302);let d=(0,s.default)("filled","gift-filled","GiftFilled",[["path",{d:"M11 14v8h-4a3 3 0 0 1 -3 -3v-4a1 1 0 0 1 1 -1h6zm8 0a1 1 0 0 1 1 1v4a3 3 0 0 1 -3 3h-4v-8h6zm-2.5 -12a3.5 3.5 0 0 1 3.163 5h.337a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-7v-5h-2v5h-7a2 2 0 0 1 -2 -2v-1a2 2 0 0 1 2 -2h.337a3.486 3.486 0 0 1 -.337 -1.5c0 -1.933 1.567 -3.5 3.483 -3.5c1.755 -.03 3.312 1.092 4.381 2.934l.136 .243c1.033 -1.914 2.56 -3.114 4.291 -3.175l.209 -.002zm-9 2a1.5 1.5 0 0 0 0 3h3.143c-.741 -1.905 -1.949 -3.02 -3.143 -3zm8.983 0c-1.18 -.02 -2.385 1.096 -3.126 3h3.143a1.5 1.5 0 1 0 -.017 -3z",key:"svg-0"}]]),h=(0,s.default)("outline","home","Home",[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6",key:"svg-2"}]]),p=(0,s.default)("outline","menu-4","Menu4",[["path",{d:"M7 6h10",key:"svg-0"}],["path",{d:"M4 12h16",key:"svg-1"}],["path",{d:"M7 12h13",key:"svg-2"}],["path",{d:"M7 18h10",key:"svg-3"}]]);var f=e.i(47314),m=e.i(33855),g=e.i(408340);let b=(0,s.default)("outline","rocket","Rocket",[["path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3",key:"svg-0"}],["path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3",key:"svg-1"}],["path",{d:"M14 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]]);var v=e.i(581769),y=e.i(255415);e.i(749980);var _=e.i(642854),x=e.i(685149);let w=({resolvedBase:e,pathname:s,lang:w})=>{let P=[{label:(0,_.msg)("Main",{$context:"primary navigation and home"}),mobileOnly:!0,links:[{title:(0,_.msg)("Home"),desc:(0,_.msg)("Visit the HyperAI homepage"),href:`${e}`,type:"link",iconCmdk:(0,t.jsx)(h,{className:"size-5 opacity-50"}),active:s===`${e}`,mobileOnly:!0}]},{label:"GPU",translateLabel:!1,links:[{title:(0,_.msg)("Console"),desc:(0,_.msg)("Build AI with AI - free AI co-coding, GPUs and more"),href:(0,x.CONSOLE_LINK)(w),type:"link",icon:(0,t.jsx)(c.IconDashboard,{className:"size-5 opacity-50"}),promoIcon:(0,t.jsx)(d,{className:"size-4 text-amber-500"}),active:!1,external:!0},{title:(0,_.msg)("Studio",{$context:"in-app lite version of the Console"}),desc:(0,_.msg)("Manage and create your containers without leaving HyperAI"),href:`${e}/studio`,type:"link",icon:(0,t.jsx)(b,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/studio`)},{title:(0,_.msg)("Docs"),desc:(0,_.msg)("Documentation and Guides"),href:`${e}/docs`,type:"link",icon:(0,t.jsx)(a.IconBook2,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}
5/docs`)},{title:(0,_.msg)("Pricing"),desc:(0,_.msg)("GPU pricing and plans"),href:`${e}/pricing`,type:"link",icon:(0,t.jsx)(o,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/pricing`)}]},{label:(0,_.msg)("Pulse",{$context:"It includes real-time updates, latest updates and industry news"}),links:[{title:(0,_.msg)("News"),desc:(0,_.msg)("Latest AI related news"),href:`${e}/news`,type:"link",icon:(0,t.jsx)(f.IconNews,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/news`)}]},{label:(0,_.msg)("Resources",{$context:"learning materials, papers, and datasets"}),links:[{title:(0,_.msg)("Papers"),desc:(0,_.msg)("Daily updated cutting-edge AI research papers to help you keep up with the latest AI trends"),href:`${e}/papers`,type:"link",icon:(0,t.jsx)(r.IconArticle,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/papers`)},{title:(0,_.msg)("Notebooks"),desc:(0,_.msg)("Hundreds of selected machine learning notebooks"),href:`${e}/notebooks`,type:"link",icon:(0,t.jsx)(m.IconNotebook,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/notebooks`)},{title:(0,_.msg)("Datasets"),desc:(0,_.msg)("Thousands of open dataset resources"),href:`${e}/datasets`,type:"link",icon:(0,t.jsx)(u.IconDatabase,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/datasets`)},{title:(0,_.msg)("Wiki"),desc:(0,_.msg)("Hundreds of AI-related entries to help you understand artificial intelligence"),href:`${e}/wiki`,type:"link",icon:(0,t.jsx)(g.IconNotes,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/wiki`)}]},{label:(0,_.msg)("Benchmarks",{$context:"performance rankings and model comparisons"}),links:[{title:(0,_.msg)("SOTA",{$context:"State of the Art"}),desc:(0,_.msg)("Latest AI model performance metrics, GPU benchmarks and cutting-edge papers"),href:`${e}/sota`,type:"link",icon:(0,t.jsx)(i.IconChartBar,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/sota`)},{title:(0,_.msg)("LLM Models"),desc:(0,_.msg)("Explore available large language model leaderboard and rankings"),href:`${e}/llm-models`,type:"link",icon:(0,t.jsx)(y.IconSparkles,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/llm-models`)},{title:(0,_.msg)("GPU Leaderboard"),desc:(0,_.msg)("Compare performance metrics for AI workloads across different NVIDIA GPUs"),href:`${e}/gpu-leaderboard`,type:"link",icon:(0,t.jsx)(l.IconCpu,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/gpu-leaderboard`)}]},{label:(0,_.msg)("Community",{$context:"user community and open source contributions"}),links:[{title:(0,_.msg)("Conferences",{$context:"AI conference events"}),desc:(0,_.msg)("Track AI academic conferences, never miss a deadline"),href:`${e}/events`,type:"link",icon:(0,t.jsx)(n.IconCalendarEvent,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/events`)},..."cn"===w?[{title:(0,_.msg)("Open Source",{$context:"nav projects title"}),desc:(0,_.msg)("Open source translation projects maintained by this site"),type:"menu",href:"#",icon:(0,t.jsx)(p,{className:"size-5 opacity-50"}),links:[{link:"https://tvm.hyper.ai",label:(0,_.msg)("TVM Chinese"),desc:(0,_.msg)("Apache TVM is an end-to-end deep learning compiler framework for CPUs, GPUs, and ML accelerators"),newTab:!0},{link:"https://triton.hyper.ai",label:(0,_.msg)("Triton Chinese"),desc:(0,_.msg)("Triton is a language and compiler for parallel programming that can run at maximum throughput on modern GPU hardware"),newTab:!0},{link:"https://vllm.hyper.ai",label:(0,_.msg)("vLLM Chinese"),desc:(0,_.msg)("vLLM is a fast and easy-to-use library designed for inference and deployment of large language models (LLMs)"),newTab:!0}]}]:[]]}];return P.push({label:(0,_.msg)("Utility",{$context:"tools and search functionality"}),mobileOnly:!0,links:[{title:(0,_.msg)("Search"),desc:(0,_.msg)("Site-wide search"),href:`${e}/search`,type:"link",icon:(0,t.jsx)(v.IconSearch,{className:"size-5 opacity-50"}),active:s?.startsWith(`${e}/search`),mobileOnly:!0}]}),P};e.s(["navLinkGroups",0,w,"navLinks",0,({resolvedBase:e,pathname:t,lang:r})=>w({resolvedBase:e,pathname:t,lang:r}).flatMap(e=>e.links)],643942)},418559,e=>{"use strict";var t=e.i(788816),r=e.i(986937),a=e.i(133255),n=e.i(883507),i=e.i(279448);let s=(0,i.default)("outline","brand-bilibili","BrandBilibili",[["path",{d:"M3 10a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4v-6",key:"svg-0"}],["path",{d:"M8 3l2 3",key:"svg-1"}],["path",{d:"M16 3l-2 3",key:"svg-2"}],["path",{d:"M9 13v-2",key:"svg-3"}],["path",{d:"M15 11v2",key:"svg-4"}]]),o=(0,i.default)("filled","brand-discord-filled","BrandDiscordFilled",[["path",{d:"M14.983 3l.123 .006c2.014 .214 3.527 .672 4.966 1.673a1 1 0 0 1 .371 .488c1.876 5.315 2.373 9.987 1.451 12.28c-1.003 2.005 -2.606 3.553 -4.394 3.553c-.732 0 -1.693 -.968 -2.328 -2.045a21.512 21.512 0 0 0 2.103 -.493a1 1 0 1 0 -.55 -1.924c-3.32 .95 -6.13 .95 -9.45 0a1 1 0 0 0 -.55 1.924c.717 .204 1.416 .37 2.103 .494c-.635 1.075 -1.596 2.044 -2.328 2.044c-1.788 0 
5-3.391 -1.548 -4.428 -3.629c-.888 -2.217 -.39 -6.89 1.485 -12.204a1 1 0 0 1 .371 -.488c1.439 -1.001 2.952 -1.459 4.966 -1.673a1 1 0 0 1 .935 .435l.063 .107l.651 1.285l.137 -.016a12.97 12.97 0 0 1 2.643 0l.134 .016l.65 -1.284a1 1 0 0 1 .754 -.54l.122 -.009zm-5.983 7a2 2 0 0 0 -1.977 1.697l-.018 .154l-.005 .149l.005 .15a2 2 0 1 0 1.995 -2.15zm6 0a2 2 0 0 0 -1.977 1.697l-.018 .154l-.005 .149l.005 .15a2 2 0 1 0 1.995 -2.15z",key:"svg-0"}]]),l=(0,i.default)("filled","brand-github-filled","BrandGithubFilled",[["path",{d:"M5.315 2.1c.791 -.113 1.9 .145 3.333 .966l.272 .161l.16 .1l.397 -.083a13.3 13.3 0 0 1 4.59 -.08l.456 .08l.396 .083l.161 -.1c1.385 -.84 2.487 -1.17 3.322 -1.148l.164 .008l.147 .017l.076 .014l.05 .011l.144 .047a1 1 0 0 1 .53 .514a5.2 5.2 0 0 1 .397 2.91l-.047 .267l-.046 .196l.123 .163c.574 .795 .93 1.728 1.03 2.707l.023 .295l.007 .272c0 3.855 -1.659 5.883 -4.644 6.68l-.245 .061l-.132 .029l.014 .161l.008 .157l.004 .365l-.002 .213l-.003 3.834a1 1 0 0 1 -.883 .993l-.117 .007h-6a1 1 0 0 1 -.993 -.883l-.007 -.117v-.734c-1.818 .26 -3.03 -.424 -4.11 -1.878l-.535 -.766c-.28 -.396 -.455 -.579 -.589 -.644l-.048 -.019a1 1 0 0 1 .564 -1.918c.642 .188 1.074 .568 1.57 1.239l.538 .769c.76 1.079 1.36 1.459 2.609 1.191l.001 -.678l-.018 -.168a5.03 5.03 0 0 1 -.021 -.824l.017 -.185l.019 -.12l-.108 -.024c-2.976 -.71 -4.703 -2.573 -4.875 -6.139l-.01 -.31l-.004 -.292a5.6 5.6 0 0 1 .908 -3.051l.152 -.222l.122 -.163l-.045 -.196a5.2 5.2 0 0 1 .145 -2.642l.1 -.282l.106 -.253a1 1 0 0 1 .529 -.514l.144 -.047l.154 -.03z",key:"svg-0"}]]),c=(0,i.default)("outline","brand-x","BrandX",[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]]);e.i(749980);var u=e.i(24507),d=e.i(93746),h=e.i(167006),p=e.i(685149),f=e.i(662255),m=e.i(19443);let g=async(...e)=>{let t=await fetch(...e);if(!t.ok)throw Error("An error occurred while fetching network status");return t.json()},b=function(){let e,t,a=(0,r.c)(5);a[0]===Symbol.for("react.memo_cache_sentinel")?(e={refreshInterval:12e4},a[0]=e):e=a[0];let{data:n,error:i,isLoading:s}=(0,m.default)(`${p.EDGE_WORKERS_BASE}/network/hyperai`,g,e);return a[1]!==n||a[2]!==i||a[3]!==s?(t={status:n,isStatusLoading:s,isStatusError:i},a[1]=n,a[2]=i,a[3]=s,a[4]=t):t=a[4],t};var v=e.i(487486),y=e.i(302747);function _(){let e,a,n,i,s,o,l,c,d,h,p=(0,r.c)(27),{status:f,isStatusLoading:m}=b(),g=(0,u.useGT)();if(m){let e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(y.Skeleton,{className:"h-[21px] w-[301px]"}),p[0]=e):e=p[0],e}let _=f?.status;p[1]!==g?(e=g("Operational",{$context:"status that indicates the service is operational"}),p[1]=g,p[2]=e):e=p[2],p[3]!==e?(a={text:e,color:"emerald",variant:"dot"},p[3]=e,p[4]=a):a=p[4],p[5]!==g?(n=g("Partially Degraded Service",{$context:"status that indicates the service is partially degraded"}),p[5]=g,p[6]=n):n=p[6],p[7]!==n?(i={text:n,color:"amber",variant:"dot"},p[7]=n,p[8]=i):i=p[8],p[9]!==g?(s=g("Unhealthy",{$context:"status that indicates the service is unhealthy"}),p[9]=g,p[10]=s):s=p[10],p[11]!==s?(o={text:s,color:"rose",variant:"dot"},p[11]=s,p[12]=o):o=p[12],p[13]!==a||p[14]!==i||p[15]!==o?(l={up:a,partial:i,down:o},p[13]=a,p[14]=i,p[15]=o,p[16]=l):l=p[16];let x=l;p[17]!==_||p[18]!==x||p[19]!==g?(c=(_?x[_]:void 0)??{text:g("Unknown, visit https://status.hyper.ai",{$context:"status that indicates the service is unknown"}),color:"default",variant:"dot"},p[17]=_,p[18]=x,p[19]=g,p[20]=c):c=p[20];let{text:w,color:P,variant:j}=c;return p[21]!==w?(d=(0,t.jsx)("a",{href:"https://status.hyper.ai",target:"_blank",className:"focus-ring",rel:"noopener",children:w}),p[21]=w,p[22]=d):d=p[22],p[23]!==P||p[24]!==d||p[25]!==j?(h=(0,t.jsx)(v.Badge,{asChild:!0,tint:P,variant:j,children:d}),p[23]=P,p[24]=d,p[25]=j,p[26]=h):h=p[26],h}var x=e.i(519455);let w="?utm_source=hyperai&utm_medium=footer&utm_campaign=sponsor";function P(e){let a,n,i,h,m,g,b,v,y,P,E,R,S,O,k,N,C,A,M,T=(0,r.c)(38),{lang:I}=e,$=(0,u.useGT)();T[0]!==I||T[1]!==$?(a=[{title:$("About"),links:[{label:$("About Us"),link:"/about"},{label:$("Support"),link:"/support"},{label:$("Dataset Help"),link:"/datasets/about"}]},{title:$("Products"),links:[{label:$("News"),link:"/news"},{label:$("Papers"),link:"/papers"},{label:$("Notebooks"),link:"/notebooks"},{label:$("Datasets"),link:"/datasets"},{label:$("Wiki"),link:"/wiki"}]},{title:$("Links"),links:[{label:$("TVM Chinese"),link:`https://tvm.hyper.ai/${w}`,showsIn:["cn"]},{label:"Apache TVM",link:`https://tvm.apache.org/${w}`}]}].map(e=>{let r=e.links.filter(e=>e.showsIn?e.showsIn.includes(I):!e.hidesIn?.includes(I)).map(j);return(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)("h3",{className:"mb-2 font-medium text-base",children:e.title}),r]},e.title)}),T[0]=I,T[1]=$,T[2]=a):a=T[2];let L=a;return T[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(f.Logo,{width:40}),T[3]=n):n=T[3],T[4]!==$?(i=$("Build the Future of Artificial Intelligence"),T[4]=$,T[5]=i):i=T[5],T[6]!==i?(h=(0,t.jsx)("p",{className:"text text-balance text-fg/70",children:i}
5),T[6]=i,T[7]=h):h=T[7],T[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(_,{})}),T[8]=m):m=T[8],T[9]!==h?(g=(0,t.jsxs)("div",{className:"space-y-3",children:[n,h,m]}),T[9]=h,T[10]=g):g=T[10],T[11]!==L?(b=(0,t.jsx)("div",{className:"col-span-3 grid grid-cols-3 gap-8",children:L}),T[11]=L,T[12]=b):b=T[12],T[13]!==g||T[14]!==b?(v=(0,t.jsx)("div",{className:"mx-auto max-w-[1510px] px-4 py-10 md:px-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-4",children:[g,b]})}),T[13]=g,T[14]=b,T[15]=v):v=T[15],T[16]!==$?(y=$("HyperAI",{$context:"site title in footer"}),T[16]=$,T[17]=y):y=T[17],T[18]!==y?(P=(0,t.jsxs)("p",{className:"text-fg/70 text-sm",children:["© ",y]}),T[18]=y,T[19]=P):P=T[19],T[20]!==I?(E="cn"===I&&(0,t.jsxs)("div",{className:"flex flex-wrap justify-center gap-2 md:justify-start",children:[(0,t.jsx)("a",{href:"http://beian.miit.gov.cn/",className:"hover:underline",target:"_blank",rel:"noopener",children:(0,t.jsx)("span",{className:"text-fg/70 text-xs",children:p.ICP})}),(0,t.jsxs)("a",{href:`http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${p.ICP_GONGAN_NO}`,className:"flex items-center gap-1 hover:underline",target:"_blank",rel:"noopener",children:[(0,t.jsx)(d.default,{src:"/static/icons/psb.png",width:14,height:14,alt:p.ICP_GONGAN,loading:"lazy"}),(0,t.jsx)("span",{className:"text-fg/70 text-xs",children:p.ICP_GONGAN})]})]}),T[20]=I,T[21]=E):E=T[21],T[22]!==P||T[23]!==E?(R=(0,t.jsxs)("div",{className:"text-center md:text-left",children:[P,E]}),T[22]=P,T[23]=E,T[24]=R):R=T[24],T[25]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(x.Button,{size:"icon",variant:"outline",asChild:!0,children:(0,t.jsxs)("a",{href:p.SOCIAL_GITHUB_URL,target:"_blank",rel:"noopener",children:[(0,t.jsx)(l,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:"GitHub"})]})}),T[25]=S):S=T[25],T[26]===Symbol.for("react.memo_cache_sentinel")?(O=(0,t.jsx)(x.Button,{size:"icon",variant:"outline",asChild:!0,children:(0,t.jsxs)("a",{href:p.SOCIAL_DISCORD_URL,target:"_blank",rel:"noopener",children:[(0,t.jsx)(o,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:"Discord"})]})}),T[26]=O):O=T[26],T[27]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)(x.Button,{size:"icon",variant:"outline",asChild:!0,children:(0,t.jsxs)("a",{href:p.SOCIAL_X_URL,target:"_blank",rel:"noopener",children:[(0,t.jsx)(c,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:"X (formerly Twitter)"})]})}),T[27]=k):k=T[27],T[28]!==I?(N="cn"===I&&(0,t.jsx)(x.Button,{size:"icon",variant:"outline",asChild:!0,children:(0,t.jsxs)("a",{href:p.SOCIAL_BILIBILI_URL,target:"_blank",rel:"noopener",children:[(0,t.jsx)(s,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:"Bilibili"})]})}),T[28]=I,T[29]=N):N=T[29],T[30]!==N?(C=(0,t.jsxs)("div",{className:"flex gap-2",children:[S,O,k,N]}),T[30]=N,T[31]=C):C=T[31],T[32]!==R||T[33]!==C?(A=(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1510px] flex-col items-center justify-between gap-4 border-fg/10 border-t px-4 py-4 md:flex-row md:px-8",children:[R,C]}),T[32]=R,T[33]=C,T[34]=A):A=T[34],T[35]!==A||T[36]!==v?(M=(0,t.jsxs)("footer",{className:"mt-4 shrink-0 border-t",children:[v,A]}),T[35]=A,T[36]=v,T[37]=M):M=T[37],M}function j(e,r){return(0,t.jsx)(h.default,{href:e.link,target:e.link.startsWith("http")?"_blank":"",className:"mt-1 block text-fg/70 text-sm transition-colors hover:text-ac",children:e.label},`${r}-${e.link}`)}let E=new Map,R=["wheel","touchstart","pointerdown","keydown"],S=()=>"navigation"in window&&window.navigation.currentEntry?.key||`${location.pathname}${location.search}`,O=e=>{let t=e.pendingKey;if(null===t)return;let{pathname:r,search:a}=e.committed;if(r!==location.pathname||a!==new URLSearchParams(location.search).toString())return;e.pendingKey=null;let n=document.querySelector("[data-slot=sidebar-inset]");n&&t===S()&&(e.stopRestore(),e.stopRestore=((e,t)=>{let r=()=>(e.scrollTop=t,e.scrollHeight-e.clientHeight>=t);if(r())return()=>{};let a=performance.now()+1500,n=0,i=()=>{for(let t of(cancelAnimationFrame(n),R))e.removeEventListener(t,i)},s=()=>
5{if(r()||performance.now()>=a)return i();n=requestAnimationFrame(s)};for(let t of R)e.addEventListener(t,i,{passive:!0});return n=requestAnimationFrame(s),i})(n,E.get(t)??0))};function k(){let e,t,i,s,o,l,c=(0,r.c)(11),u=(0,a.usePathname)(),d=(0,a.useSearchParams)();c[0]!==d?(e=d.toString(),c[0]=d,c[1]=e):e=c[1],c[2]!==u||c[3]!==e?(t={pendingKey:null,committed:{pathname:u,search:e},stopRestore:N},c[2]=u,c[3]=e,c[4]=t):t=c[4];let h=(0,n.useRef)(t);return c[5]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{let e=document.querySelector("[data-slot=sidebar-inset]");if(!e)return;let t=0,r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>E.set(S(),e.scrollTop))},a=()=>{h.current.pendingKey=S(),O(h.current)};return e.addEventListener("scroll",r,{passive:!0}),window.addEventListener("popstate",a),()=>{cancelAnimationFrame(t),h.current.stopRestore(),e.removeEventListener("scroll",r),window.removeEventListener("popstate",a)}},s=[],c[5]=i,c[6]=s):(i=c[5],s=c[6]),(0,n.useEffect)(i,s),c[7]!==u||c[8]!==d?(o=()=>{h.current.committed={pathname:u,search:d.toString()},O(h.current)},l=[u,d],c[7]=u,c[8]=d,c[9]=o,c[10]=l):(o=c[9],l=c[10]),(0,n.useLayoutEffect)(o,l),null}function N(){}var C=e.i(898035),A=e.i(540243),M=e.i(634703),T=e.i(945060);let I=(0,i.default)("outline","world","World",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M3.6 9h16.8",key:"svg-1"}],["path",{d:"M3.6 15h16.8",key:"svg-2"}],["path",{d:"M11.5 3a17 17 0 0 0 0 18",key:"svg-3"}],["path",{d:"M12.5 3a17 17 0 0 1 0 18",key:"svg-4"}]]);var $=e.i(716070),L=e.i(759426),D=e.i(328021);function z(e){let n,i,s,o,l,c,u,d,h=(0,r.c)(18),{isCollapsed:p}=e,f=void 0!==p&&p,m=(0,a.useParams)(),g=m?.lang||"cn",b=(0,$.useSetLocale)();h[0]!==b?(n=e=>{b(e)},h[0]=b,h[1]=n):n=h[1];let v=n;h[2]!==g?(i=L.languageOptions.find(e=>e.code===g),h[2]=g,h[3]=i):i=h[3];let y=i;return h[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(I,{className:"size-4"}),h[4]=s):s=h[4],h[5]!==y?.name||h[6]!==f?(o=!f&&(0,t.jsx)("span",{className:"font-medium text-sm",children:y?.name}),h[5]=y?.name,h[6]=f,h[7]=o):o=h[7],h[8]!==o?(l=(0,t.jsx)(D.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("div",{className:"flex cursor-pointer items-center gap-1.5",children:[s,o]})}),h[8]=o,h[9]=l):l=h[9],h[10]!==g||h[11]!==v?(c=L.languageOptions.map(e=>(0,t.jsxs)(D.DropdownMenuItem,{className:(0,T.cn)("flex items-center",e.code===g&&"text-ac"),onClick:()=>v(e.code),children:[e.name,e.name!==e.name_en&&(0,t.jsxs)("span",{className:"text-fg/70",children:["(",e.name_en,")"]})]},e.code)),h[10]=g,h[11]=v,h[12]=c):c=h[12],h[13]!==c?(u=(0,t.jsx)(D.DropdownMenuContent,{children:c}),h[13]=c,h[14]=u):u=h[14],h[15]!==l||h[16]!==u?(d=(0,t.jsxs)(D.DropdownMenu,{children:[l,u]}),h[15]=l,h[16]=u,h[17]=d):d=h[17],d}var U=e.i(643942);let B=(0,i.default)("outline","brightness","Brightness",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 3l0 18",key:"svg-1"}],["path",{d:"M12 9l4.65 -4.65",key:"svg-2"}],["path",{d:"M12 14.3l7.37 -7.37",key:"svg-3"}],["path",{d:"M12 19.6l8.85 -8.85",key:"svg-4"}]]);var H=e.i(518071),W=e.i(488379);let F=[{name:"system",key:"theme.system",theme:void 0},{name:"dark",key:"theme.dark",theme:"dark"},{name:"light",key:"theme.light",theme:"light"}];function q(e){let a,i,s,o,l,c,u,d,h,p=(0,r.c)(21),{isCollapsed:f}=e,m=void 0!==f&&f,{theme:g,setTheme:b}=(0,H.useTheme)(),{translate:v}
5=(0,W.useTranslation)(),[y,_]=(0,n.useState)(!1);if(p[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{(0,n.startTransition)(()=>{_(!0)})},i=[],p[0]=a,p[1]=i):(a=p[0],i=p[1]),(0,n.useEffect)(a,i),!y){let e;return p[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"h-5 w-20"}),p[2]=e):e=p[2],e}p[3]!==g||p[4]!==v?(s=()=>v(`theme.${g||"system"}`,{},g||"system"),p[3]=g,p[4]=v,p[5]=s):s=p[5];let x=s;return p[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(B,{className:"size-4"}),p[6]=o):o=p[6],p[7]!==x||p[8]!==m?(l=!m&&(0,t.jsx)("span",{className:"font-medium text-sm",children:x()}),p[7]=x,p[8]=m,p[9]=l):l=p[9],p[10]!==l?(c=(0,t.jsx)(D.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("div",{className:"flex cursor-pointer items-center gap-1.5",children:[o,l]})}),p[10]=l,p[11]=c):c=p[11],p[12]!==b||p[13]!==g||p[14]!==v?(u=F.map(e=>(0,t.jsx)(D.DropdownMenuItem,{className:(0,T.cn)(e.name===g&&"text-ac"),onClick:()=>b(e.name),children:v(e.key,{},e.name)},e.name)),p[12]=b,p[13]=g,p[14]=v,p[15]=u):u=p[15],p[16]!==u?(d=(0,t.jsx)(D.DropdownMenuContent,{children:u}),p[16]=u,p[17]=d):d=p[17],p[18]!==c||p[19]!==d?(h=(0,t.jsxs)(D.DropdownMenu,{children:[c,d]}),p[18]=c,p[19]=d,p[20]=h):h=p[20],h}var X=e.i(530909);let G=e=>{let a,i,s,o,l,c,u,d,p,f=(0,r.c)(48),{item:m}=e,{state:g}=(0,X.useSidebar)(),b="collapsed"===g,v=(0,M.useMessages)();if("link"===m.type){let e,r,a,i,s,o,l,c=m.active;f[0]!==m.title||f[1]!==v?(e=v(m.title),f[0]=m.title,f[1]=v,f[2]=e):e=f[2];let u=m.href,d=m.external?"_blank":void 0;f[3]!==m.icon?(r=m.icon&&n.default.cloneElement(m.icon,{className:"h-5 w-5"}),f[3]=m.icon,f[4]=r):r=f[4],f[5]!==m.iconCmdk?(a=m.iconCmdk&&n.default.cloneElement(m.iconCmdk,{className:"size-5"}),f[5]=m.iconCmdk,f[6]=a):a=f[6],f[7]!==m.title||f[8]!==v?(i=v(m.title),f[7]=m.title,f[8]=v,f[9]=i):i=f[9],f[10]!==i?(s=(0,t.jsx)("span",{children:i}),f[10]=i,f[11]=s):s=f[11];let p=m.promoIcon&&!b&&m.promoIcon;return f[12]!==m.href||f[13]!==d||f[14]!==r||f[15]!==a||f[16]!==s||f[17]!==p?(o=(0,t.jsxs)(h.default,{href:u,target:d,children:[r,a,s,p]}),f[12]=m.href,f[13]=d,f[14]=r,f[15]=a,f[16]=s,f[17]=p,f[18]=o):o=f[18],f[19]!==m.active||f[20]!==o||f[21]!==e?(l=(0,t.jsx)(X.SidebarMenuItem,{children:(0,t.jsx)(X.SidebarMenuButton,{asChild:!0,isActive:c,tooltip:e,children:o})}),f[19]=m.active,f[20]=o,f[21]=e,f[22]=l):l=f[22],l}f[23]!==b||f[24]!==m.title||f[25]!==v?(a=b?v(m.title):void 0,f[23]=b,f[24]=m.title,f[25]=v,f[26]=a):a=f[26],f[27]!==m.icon?(i=m.icon&&n.default.cloneElement(m.icon,{className:"h-5 w-5"}),f[27]=m.icon,f[28]=i):i=f[28],f[29]!==m.title||f[30]!==v?(s=v(m.title),f[29]=m.title,f[30]=v,f[31]=s):s=f[31],f[32]!==s?(o=(0,t.jsx)("span",{children:s}),f[32]=s,f[33]=o):o=f[33],f[34]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(C.IconChevronDown,{className:"ml-auto h-4 w-4"}),f[34]=l):l=f[34],f[35]!==a||f[36]!==i||f[37]!==o?(c=(0,t.jsx)(D.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(X.SidebarMenuButton,{tooltip:a,children:[i,o,l]})}),f[35]=a,f[36]=i,f[37]=o,f[38]=c):c=f[38];let y=b?"right":"bottom";return f[39]!==m.links||f[40]!==v?(u=m.links?.map(e=>(0,t.jsx)(D.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.link,target:e.newTab?"_blank":void 0,rel:e.newTab?"noreferrer":void 0,className:"flex cursor-pointer flex-col gap-1",children:[(0,t.jsx)("span",{className:"font-medium",children:v(e.label)}),e.desc&&(0,t.jsx)("span",{className:"font-normal text-fg/70 text-sm",children:v(e.desc)})]})},e.link)),f[39]=m.links,f[40]=v,f[41]=u):u=f[41],f[42]!==y||f[43]!==u?(d=(0,t.jsx)(D.DropdownMenuContent,{side:y,align:"start",className:"w-60",children:u}),f[42]=y,f[43]=u,f[44]=d):d=f[44],f[45]!==c||f[46]!==d?(p=(0,t.jsx)(X.SidebarMenuItem,{children:(0,t.jsxs)(D.DropdownMenu,{children:[c,d]})}),f[45]=c,f[46]=d,f[47]=p):p=f[47],p},K=e=>{let a,n,i,s,o=(0,r.c)(14),{group:l}=e,{state:c}=(0,X.useSidebar)(),u="collapsed"===c,d=(0,M.useMessages)();o[0]!==l.label||o[1]!==l.translateLabel||o[2]!==u||o[3]!==d?(a=!u&&(0,t.jsx)(X.SidebarGroupLabel,{children:!1===l.translateLabel?l.label:d(l.label)}),o[0]=l.label,o[1]=l.translateLabel,o[2]=u,o[3]=d,o[4]=a):a=o[4],o[5]!==l.links?(n=l.links.map(Z),o[5]=l.links,o[6]=n):n=o[6],o[7]!==n?(i=(0,t.jsx)(X.SidebarGroupContent,{children:(0,t.jsx)(X.SidebarMenu,{children:n})}),o[7]=n,o[8]=i):i=o[8],o[9]!==a||o[10]!==i?(s=(0,t.jsxs)(X.SidebarGroup,{children:[a,i]}),o[9]=a,o[10]=i,o[11]=s):s=o[11];let h=s;if(l.mobileOnly){let e;return o[12]!==h?(e=(0,t.jsx)("div",{className:"md:hidden",children:h}),o[12]=h,o[13]=e):e=o[13],e}return h};function V(){let e,n,i,s,o,l,c,d,p,m,g,b,v,y,_,x,w,P,j,E=(0,r.c)(59),R=(0,a.usePathname)(),S=(0,a.useParams)(),O=S?.lang?`/${S.lang}`:"",k=(0,u.useGT)(),{state:N,isMobile:C}=(0,X.useSidebar)();if(E[0]!==C||E[1]!==S?.lang||E[2]!==R||E[3]!==O||E[4]!==N||E[5]!==k){let r,a,u,b,v,y=(0,U.navLinkGroups)({resolvedBase:O,pathname:R,lang:S?.lang||"en"});o="collapsed"===N&&!C;let _=[{title:k("About"),desc:k("About this site"),href:`${O}/about`},{title:k("Terms of Service"),desc:k("Our terms and conditions"),href:`${O}/terms`},{title:k("Privacy Policy"),desc:k("How we handle your data"),href:`${O}/privacy`}];s=X.Sidebar,d="icon",p="inset",E[17]!==k?(r=k("HyperAI"),E[17]=k,E[18]=r):r=E[18];let x=`${O}/`;E[19]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(f.Logo,{className:"-ml-1 size-6!"}),E[19]=a):a=E[19],E[20]!==k?(u=k("HyperAI"),E[20]=k,E[21]=u):u=E[21],E[22]!==u?(b=(0,t.jsx)("span",{className:"font-bold",children:u}),E[22]=u,E[23]=b):b=E[23],E[24]!==b||E[25]!==x?(v=(0,t.jsxs)(h.default,{href:x,className:"gap-1!",children:[a,b]}),E[24]=b,E[25]=x,E[26]=v):v=E[26],E[27]!==v||E[28]!==r?(m=(0,t.jsx)(X.SidebarHeader,{children:(0,t.jsx)(X.SidebarMenu,{children:(0,t.jsx)(X.SidebarMenuItem,{children:(0,t.jsx)(X.SidebarMenuButton,{asChild:!0,tooltip:r,children:v})})})}),E[27]=v,E[28]=r,E[29]=m):m=E[29];let w=y.map(J);E[30]!==w?(g=(0,t.jsx)(X.SidebarContent,{children:w}),E[30]=w,E[31]=g):g=E[31],i=X.SidebarFooter,n=X.SidebarMenu,c="gap-2",e=X.SidebarMenuItem,l=o?(0,t.jsxs)(D.DropdownMenu,{children:[(0,t.jsx)(D.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(X.SidebarMenuButton,{children:(0,t.jsx)(A.IconDots,{})})}),(0,t.jsx)(D.DropdownMenuContent,{side:"right",align:"end",className:"w-60",children:_.map(Y)})]}):(0,t.jsx)("div",{className:"my-2 space-x-3 border-b py-2 text-fg/70 text-xs",children:_.map(Q)}),E[0]=C,E[1]=S?.lang,E[2]=R,E[3]=O,E[4]=N,E[5]=k,E[6]=e,E[7]=n,E[8]=i,E[9]=s,E[10]=o,E[11]=l,E[12]=c,E[13]=d,E[14]=p,E[15]=m,E[16]=g}else e=E[6],n=E[7],i=E[8],s=E[9],o=E[10],l=E[11],c=E[12],d=E[13],p=E[14],m=E[15],g=E[16];E[32]!==e||E[33]!==l?(b=(0,t.jsx)(e,{children:l}),E[32]=e,E[33]=l,E[34]=b):b=E[34];let M=o?"flex-col items-center gap-3":"items-center gap-2";
5return E[35]!==M?(v=(0,T.cn)("flex",M),E[35]=M,E[36]=v):v=E[36],E[37]!==o?(_=(0,t.jsx)(z,{isCollapsed:o}),y=(0,t.jsx)(q,{isCollapsed:o}),E[37]=o,E[38]=y,E[39]=_):(y=E[38],_=E[39]),E[40]!==y||E[41]!==v||E[42]!==_?(x=(0,t.jsx)(X.SidebarMenuItem,{children:(0,t.jsxs)("div",{className:v,children:[_,y]})}),E[40]=y,E[41]=v,E[42]=_,E[43]=x):x=E[43],E[44]!==n||E[45]!==c||E[46]!==x||E[47]!==b?(w=(0,t.jsxs)(n,{className:c,children:[b,x]}),E[44]=n,E[45]=c,E[46]=x,E[47]=b,E[48]=w):w=E[48],E[49]!==i||E[50]!==w?(P=(0,t.jsx)(i,{children:w}),E[49]=i,E[50]=w,E[51]=P):P=E[51],E[52]!==s||E[53]!==P||E[54]!==d||E[55]!==p||E[56]!==m||E[57]!==g?(j=(0,t.jsxs)(s,{collapsible:d,variant:p,children:[m,g,P]}),E[52]=s,E[53]=P,E[54]=d,E[55]=p,E[56]=m,E[57]=g,E[58]=j):j=E[58],j}function Q(e){return(0,t.jsx)(h.default,{href:e.href,className:"wrap-break-word transition-colors hover:text-ac",children:e.title},e.href)}function Y(e){return(0,t.jsx)(D.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(h.default,{href:e.href,className:(0,T.cn)("cursor-pointer",e.desc&&"flex flex-col gap-1"),children:[(0,t.jsx)("span",{className:"font-medium",children:e.title}),e.desc&&(0,t.jsx)("span",{className:"font-normal text-fg/70 text-sm",children:e.desc})]})},e.href)}function J(e,r){return(0,t.jsx)(K,{group:e},`${r}-${e.label}`)}function Z(e,r){return(0,t.jsx)(n.default.Fragment,{children:e.mobileOnly?(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)(G,{item:e})}):(0,t.jsx)(G,{item:e})},`${r}-${e.title}`)}var ee=e.i(296368);let et=(0,i.default)("outline","edit","Edit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]),er=(0,i.default)("outline","history","History",[["path",{d:"M12 8l0 4l2 2",key:"svg-0"}],["path",{d:"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5",key:"svg-1"}]]);var ea=e.i(792093),en=e.i(397705),ei=e.i(873194),es=e.i(980376),eo=e.i(746798),el=e.i(227838),ec=e.i(193219),eu=e.i(530287),ed=e.i(824716),eh=e.i(915964),ep=e.i(733028);function ef(){let e,a,n,i,s,o,l,c,d,p,f,m,g,b,v,y,_,x,w,P,j,E,R,S,O,k,N,C,A,M=(0,r.c)(67),{setOpen:T,expandHref:I,onExpand:$}=(0,ep.useAgentPanel)(),{messages:L,events:D,anchorMessageId:z,status:U,resetConversation:B}=(0,ep.useAgentConversation)(),H=(0,u.useGT)(),W="submitted"===U||"streaming"===U;M[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(eu.AgentIcon,{className:"size-6"}),M[0]=e):e=M[0],M[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(en.T,{children:(0,t.jsx)("span",{className:"font-semibold",children:"HyperAI Agent"})}),M[1]=a):a=M[1],M[2]!==H?(n=H("Chat history"),M[2]=H,M[3]=n):n=M[3],M[4]!==H?(i=H("Chat history"),M[4]=H,M[5]=i):i=M[5],M[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(er,{className:"size-4"}),M[6]=s):s=M[6],M[7]!==i?(o=(0,t.jsx)(eh.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":i,children:s}),M[7]=i,M[8]=o):o=M[8],M[9]!==n||M[10]!==o?(l=(0,t.jsx)(eo.Tooltip,{label:n,children:o}),M[9]=n,M[10]=o,M[11]=l):l=M[11],M[12]!==H?(c=H("New chat"),M[12]=H,M[13]=c):c=M[13],M[14]!==H?(d=H("New chat"),M[14]=H,M[15]=d):d=M[15],M[16]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(et,{className:"size-4"}),M[16]=p):p=M[16],M[17]!==W||M[18]!==B||M[19]!==d?(f=(0,t.jsx)(eh.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":d,disabled:W,onClick:B,children:p}),M[17]=W,M[18]=B,M[19]=d,M[20]=f):f=M[20],M[21]!==f||M[22]!==c?(m=(0,t.jsx)(eo.Tooltip,{label:c,children:f}),M[21]=f,M[22]=c,M[23]=m):m=M[23],M[24]!==H?(g=H("Open full page"),M[24]=H,M[25]=g):g=M[25],M[26]!==H?(b=H("Open full page"),M[26]=H,M[27]=b):b=M[27],M[28]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(ee.IconArrowsDiagonal,{className:"size-4"}),M[28]=v):v=M[28],M[29]!==I||M[30]!==$?(y=(0,t.jsx)(h.default,{href:I,className:"cursor-pointer",onClick:$,children:v}),M[29]=I,M[30]=$,M[31]=y):y=M[31],M[32]!==b||M[33]!==y?(_=(0,t.jsx)(eh.Button,{asChild:!0,variant:"ghost",size:"icon-xs","aria-label":b,children:y}
5),M[32]=b,M[33]=y,M[34]=_):_=M[34],M[35]!==g||M[36]!==_?(x=(0,t.jsx)(eo.Tooltip,{label:g,children:_}),M[35]=g,M[36]=_,M[37]=x):x=M[37],M[38]!==H?(w=H("Close"),M[38]=H,M[39]=w):w=M[39],M[40]!==H?(P=H("Close"),M[40]=H,M[41]=P):P=M[41],M[42]!==T?(j=()=>T(!1),M[42]=T,M[43]=j):j=M[43],M[44]===Symbol.for("react.memo_cache_sentinel")?(E=(0,t.jsx)(ea.IconX,{className:"size-4"}),M[44]=E):E=M[44],M[45]!==P||M[46]!==j?(R=(0,t.jsx)(eh.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":P,onClick:j,children:E}),M[45]=P,M[46]=j,M[47]=R):R=M[47],M[48]!==w||M[49]!==R?(S=(0,t.jsx)(eo.Tooltip,{label:w,children:R}),M[48]=w,M[49]=R,M[50]=S):S=M[50],M[51]!==m||M[52]!==x||M[53]!==S||M[54]!==l?(O=(0,t.jsxs)("div",{className:"flex h-(--global-nav-height) shrink-0 items-center gap-2 border-fg/20 border-b px-4",children:[e,a,(0,t.jsxs)("div",{className:"ms-auto flex items-center gap-1",children:[l,m,x,S]})]}),M[51]=m,M[52]=x,M[53]=S,M[54]=l,M[55]=O):O=M[55];let F="resuming"===U;return M[56]===Symbol.for("react.memo_cache_sentinel")?(k={start:(0,t.jsx)(ec.AgentEmptyState,{})},M[56]=k):k=M[56],M[57]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)("div",{className:"pb-3",children:(0,t.jsx)(el.AgentComposer,{})}),M[57]=N):N=M[57],M[58]!==z||M[59]!==W||M[60]!==D||M[61]!==L||M[62]!==F?(C=(0,t.jsx)(ed.AgentThread,{messages:L,anchorMessageId:z,busy:W,resuming:F,events:D,className:"min-h-0 flex-1",columnClassName:"px-4",empty:k,footer:N}),M[58]=z,M[59]=W,M[60]=D,M[61]=L,M[62]=F,M[63]=C):C=M[63],M[64]!==O||M[65]!==C?(A=(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[O,C]}),M[64]=O,M[65]=C,M[66]=A):A=M[66],A}function em(){let e,a,i,s,o,l,c,u,d=(0,r.c)(23),{open:h,setOpen:p}=(0,ep.useAgentPanel)(),f=(0,ei.useIsMobile)(1024),m=n.useRef(!1);if(d[0]!==h||d[1]!==p?(e=()=>{!m.current&&(m.current=!0,window.innerWidth<1024&&h&&p(!1,!1))},a=[h,p],d[0]=h,d[1]=p,d[2]=e,d[3]=a):(e=d[2],a=d[3]),n.useEffect(e,a),f){let e,r;return d[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(es.SheetContent,{side:"right",showCloseButton:!1,className:"w-full max-w-none border-0 p-0 sm:w-[500px] sm:border-l",children:[(0,t.jsxs)(es.SheetHeader,{className:"sr-only",children:[(0,t.jsx)(es.SheetTitle,{children:"HyperAI Agent"}),(0,t.jsx)(es.SheetDescription,{children:"Chat with the HyperAI agent."})]}),(0,t.jsx)(ef,{})]}),d[4]=e):e=d[4],d[5]!==h||d[6]!==p?(r=(0,t.jsx)(es.Sheet,{open:h,onOpenChange:p,children:e}),d[5]=h,d[6]=p,d[7]=r):r=d[7],r}let g=h?"open":"closed",b=h?"w-(--agent-panel-width)":"w-0";d[8]!==b?(i=(0,T.cn)("relative bg-transparent duration-200 ease-linear motion-safe:transition-[width]",b),d[8]=b,d[9]=i):i=d[9],d[10]!==i?(s=(0,t.jsx)("div",{"data-slot":"agent-panel-gap",className:i}),d[10]=i,d[11]=s):s=d[11];let v=!h,y=!h,_=h?"end-0":"end-[calc(var(--agent-panel-width)*-1)]";return d[12]!==_?(o=(0,T.cn)("fixed inset-y-0 z-10 flex h-svh w-(--agent-panel-width) p-2 ps-0 duration-200 ease-linear motion-safe:transition-[inset-inline-end,width]",_),d[12]=_,d[13]=o):o=d[13],d[14]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-2xl bg-bg shadow-sm",children:(0,t.jsx)(ef,{})}),d[14]=l):l=d[14],d[15]!==v||d[16]!==y||d[17]!==o?(c=(0,t.jsx)("div",{id:"agent-panel","data-slot":"agent-panel-container",inert:v,"aria-hidden":y,className:o,children:l}),d[15]=v,d[16]=y,d[17]=o,d[18]=c):c=d[18],d[19]!==c||d[20]!==g||d[21]!==s?(u=(0,t.jsxs)("div",{"data-slot":"agent-panel","data-state":g,className:"hidden [--agent-panel-width:22rem] lg:block",children:[s,c]}),d[19]=c,d[20]=g,d[21]=s,d[22]=u):u=d[22],u}e.s(["default",0,function(e){let i,s,o,l,c,u,d,h,p,f=(0,r.c)(23),{lang:m,children:g,topNav:b,defaultOpen:v,agentPanelOpen:y}=e,_=void 0===v||v,x=void 0!==y&&y,w=(0,a.usePathname)();f[0]!==w?(i=(0,ep.isAgentRoute)(w),f[0]=w,f[1]=i):i=f[1];let j=i;f[2]!==j||f[3]!==w?(s=w.includes("/search")||j,f[2]=j,f[3]=w,f[4]=s):s=f[4];let E=s;return f[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(V,{}),f[5]=o):o=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(n.Suspense,{children:(0,t.jsx)(k,{})}),f[6]=l):l=f[6],f[7]!==E||f[8]!==m?(c=!E&&(0,t.jsx)(P,{lang:m}),f[7]=E,f[8]=m,f[9]=c):c=f[9],f[10]!==g||f[11]!==c||f[12]!==b?(u=(0,t.jsxs)(X.SidebarInset,{className:"@container/inset custom-scrollbar relative flex min-h-0 min-w-0 flex-1 scroll-pt-(--global-nav-height) flex-col overflow-y-auto overflow-x-hidden overscroll-y-contain rounded-2xl",children:[l,b,g,c]}),f[10]=g,f[11]=c,f[12]=b,f[13]=u):u=f[13],f[14]!==j?(d=!j&&(0,t.jsx)(em,{}),f[14]=j,f[15]=d):d=f[15],f[16]!==x||f[17]!==u||f[18]!==d?(h=(0,t.jsxs)(ep.AgentProvider,{defaultOpen:x,children:[o,u,d]}
5),f[16]=x,f[17]=u,f[18]=d,f[19]=h):h=f[19],f[20]!==_||f[21]!==h?(p=(0,t.jsx)(X.SidebarProvider,{defaultOpen:_,children:h}),f[20]=_,f[21]=h,f[22]=p):p=f[22],p}],418559)},530909,980376,e=>{"use strict";var t=e.i(788816),r=e.i(986937);let a=(0,e.i(279448).default)("outline","layout-sidebar","LayoutSidebar",[["path",{d:"M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M9 4l0 16",key:"svg-1"}]]);var n=e.i(294237),i=e.i(395880),s=e.i(883507),o=e.i(945060),l=e.i(873194),c=e.i(519455),u=e.i(793479),d=e.i(225670),h=e.i(414938),p=e.i(377339);function f(e){let a,n,i=(0,r.c)(4);return i[0]!==e?({...a}=e,i[0]=e,i[1]=a):a=i[1],i[2]!==a?(n=(0,t.jsx)(p.Dialog.Root,{"data-slot":"sheet",...a}),i[2]=a,i[3]=n):n=i[3],n}function m(e){let a,n,i=(0,r.c)(4);return i[0]!==e?({...a}=e,i[0]=e,i[1]=a):a=i[1],i[2]!==a?(n=(0,t.jsx)(p.Dialog.Portal,{"data-slot":"sheet-portal",...a}),i[2]=a,i[3]=n):n=i[3],n}function g(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/20 data-[state=closed]:animate-out data-[state=open]:animate-in",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)(p.Dialog.Overlay,{"data-slot":"sheet-overlay",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s}function b(e){let a,n,i,s,l,c,u,d,f,b=(0,r.c)(20);b[0]!==e?({className:n,children:a,side:s,showCloseButton:l,...i}=e,b[0]=e,b[1]=a,b[2]=n,b[3]=i,b[4]=s,b[5]=l):(a=b[1],n=b[2],i=b[3],s=b[4],l=b[5]);let v=void 0===s?"right":s,y=void 0===l||l;b[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(g,{}),b[6]=c):c=b[6];let _="right"===v&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-[450px] max-w-[calc(100dvw-40px)] border-l",x="left"===v&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-[450px] max-w-[calc(100dvw-40px)] border-r",w="top"===v&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",P="bottom"===v&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t";return b[7]!==n||b[8]!==_||b[9]!==x||b[10]!==w||b[11]!==P?(u=(0,o.cn)("floating fixed z-50 gap-4 p-4 transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-200 data-[state=open]:duration-300",_,x,w,P,n),b[7]=n,b[8]=_,b[9]=x,b[10]=w,b[11]=P,b[12]=u):u=b[12],b[13]!==y?(d=y&&(0,t.jsxs)(p.Dialog.Close,{className:"focus-ring absolute top-1 right-2 flex items-center rounded-xs p-1 opacity-60 transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-ac data-[state=open]:text-fg",children:[(0,t.jsx)(h.IconMinus,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}),b[13]=y,b[14]=d):d=b[14],b[15]!==a||b[16]!==i||b[17]!==u||b[18]!==d?(f=(0,t.jsxs)(m,{children:[c,(0,t.jsxs)(p.Dialog.Content,{"data-slot":"sheet-content",className:u,...i,children:[a,d]})]}),b[15]=a,b[16]=i,b[17]=u,b[18]=d,b[19]=f):f=b[19],f}function v(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("flex flex-col space-y-1.5 text-center sm:text-left",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sheet-header",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s}function y(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("font-semibold",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)(p.Dialog.Title,{"data-slot":"sheet-title",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s}function _(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("text-fg/70 text-sm",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)(p.Dialog.Description,{"data-slot":"sheet-description",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s}e.s(["Sheet",0,f,"SheetContent",0,b,"SheetDescription",0,_,"SheetHeader",0,v,"SheetTitle",0,y],980376);var x=e.i(302747),w=e.i(746798);let P=s.createContext(null);function j(){let e=s.useContext(P);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function E(e){return!e}function R(e){return!e}let S=(0,n.cva)("peer/menu-button focus-ring flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-ac/10 hover:text-ac disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium data-[active=true]:text-ac data-[state=open]:hover:bg-ac/10 data-[state=open]:hover:text-ac group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-ac/10 hover:text-ac",outline:"bg-bg shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Sidebar",0,function(e){let a,n,i,s,l,c,u,d,h,p,m,g,x,w=(0,r.c)(49);w[0]!==e?({side:s,variant:l,collapsible:c,className:n,children:a,...i}=e,w[0]=e,w[1]=a,w[2]=n,w[3]=i,w[4]=s,w[5]=l,w[6]=c):(a=w[1],n=w[2],i=w[3],s=w[4],l=w[5],c=w[6]);let P=void 0===s?"left":s,E=void 0===l?"sidebar":l,R=void 0===c?"offcanvas":c,{isMobile:S,state:O,openMobile:k,setOpenMobile:N}=j();if("none"===R){let e,r;return w[7]!==n?(e=(0,o.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-fg",n),w[7]=n,w[8]=e):e=w[8],w[9]!==a||w[10]!==i||w[11]!==e?(r=(0,t.jsx)("div",{"data-slot":"sidebar",className:e,...i,children:a}),w[9]=a,w[10]=i,w[11]=e,w[12]=r):r=w[12],r}if(S){let e,r,n,s,o;return w[13]===Symbol.for("react.memo_cache_sentinel")?(e={"--sidebar-width":"18rem"},w[13]=e):e=w[13],w[14]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)(v,{className:"sr-only",children:[(0,t.jsx)(y,{children:"Sidebar"}),(0,t.jsx)(_,{children:"Displays the mobile sidebar."})]}),w[14]=r):r=w[14],w[15]!==a?(n=(0,t.jsx)("div",{className:"flex h-full w-full flex-col",children:a}),w[15]=a,w[16]=n):n=w[16],w[17]!==P||w[18]!==n?(s=(0,t.jsxs)(b,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-bg p-0 text-fg [&>button]:hidden",style:e,side:P,children:[r,n]}),w[17]=P,w[18]=n,w[19]=s):s=w[19],w[20]!==k||w[21]!==i||w[22]!==N||w[23]!==s?(o=(0,t.jsx)(f,{open:k,onOpenChange:N,...i,children:s}),w[20]=k,w[21]=i,w[22]=N,w[23]=s,w[24]=o):o=w[24],o}let C="collapsed"===O?R:"",A="floating"===E||"inset"===E?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";w[25]!==A?(u=(0,o.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",A),w[25]=A,w[26]=u):u=w[26],w[27]!==u?(d=(0,t.jsx)("div",{"data-slot":"sidebar-gap",className:u}),w[27]=u,w[28]=d):d=w[28];let M="left"===P?"start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]":"end-0 group-data-[collapsible=offcanvas]:en
5d-[calc(var(--sidebar-width)*-1)]",T="floating"===E||"inset"===E?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=left]:border-r-fg/30 group-data-[side=right]:border-l group-data-[side=right]:border-l-fg/30";w[29]!==n||w[30]!==M||w[31]!==T?(h=(0,o.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",M,T,n),w[29]=n,w[30]=M,w[31]=T,w[32]=h):h=w[32];let I="inset"!==E&&"bg-sidebar";return w[33]!==I?(p=(0,o.cn)("flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-fg/20 group-data-[variant=floating]:shadow-sm",I),w[33]=I,w[34]=p):p=w[34],w[35]!==a||w[36]!==p?(m=(0,t.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:p,children:a}),w[35]=a,w[36]=p,w[37]=m):m=w[37],w[38]!==i||w[39]!==h||w[40]!==m?(g=(0,t.jsx)("div",{"data-slot":"sidebar-container",className:h,...i,children:m}),w[38]=i,w[39]=h,w[40]=m,w[41]=g):g=w[41],w[42]!==P||w[43]!==O||w[44]!==g||w[45]!==C||w[46]!==d||w[47]!==E?(x=(0,t.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":O,"data-collapsible":C,"data-variant":E,"data-side":P,"data-slot":"sidebar",children:[d,g]}),w[42]=P,w[43]=O,w[44]=g,w[45]=C,w[46]=d,w[47]=E,w[48]=x):x=w[48],x},"SidebarContent",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarFooter",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("flex flex-col gap-2 p-2",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarGroup",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("relative flex w-full min-w-0 flex-col px-2",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarGroupAction",0,function(e){let a,n,s,l,c,u=(0,r.c)(10);u[0]!==e?({className:a,asChild:s,...n}=e,u[0]=e,u[1]=a,u[2]=n,u[3]=s):(a=u[1],n=u[2],s=u[3]);let d=void 0!==s&&s?i.Slot.Root:"button";return u[4]!==a?(l=(0,o.cn)("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-fg outline-hidden ring-sidebar-ring transition-transform hover:bg-ac/10 hover:text-ac focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",a),u[4]=a,u[5]=l):l=u[5],u[6]!==d||u[7]!==n||u[8]!==l?(c=(0,t.jsx)(d,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l,...n}),u[6]=d,u[7]=n,u[8]=l,u[9]=c):c=u[9],c},"SidebarGroupContent",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("w-full text-sm",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarGroupLabel",0,function(e){let a,n,s,l,c,u=(0,r.c)(10);u[0]!==e?({className:a,asChild:s,...n}=e,u[0]=e,u[1]=a,u[2]=n,u[3]=s):(a=u[1],n=u[2],s=u[3]);let d=void 0!==s&&s?i.Slot.Root:"div";return u[4]!==a?(l=(0,o.cn)("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-fg/60 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),u[4]=a,u[5]=l):l=u[5],u[6]!==d||u[7]!==n||u[8]!==l?
5(c=(0,t.jsx)(d,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l,...n}),u[6]=d,u[7]=n,u[8]=l,u[9]=c):c=u[9],c},"SidebarHeader",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("flex flex-col gap-2 p-2",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarInput",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("h-8 w-full bg-bg shadow-none",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)(u.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarInset",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("relative flex w-full flex-1 flex-col bg-bg","md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("main",{"data-slot":"sidebar-inset",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarMenu",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("flex w-full min-w-0 flex-col",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarMenuAction",0,function(e){let a,n,s,l,c,u,d=(0,r.c)(12);d[0]!==e?({className:a,asChild:s,showOnHover:l,...n}=e,d[0]=e,d[1]=a,d[2]=n,d[3]=s,d[4]=l):(a=d[1],n=d[2],s=d[3],l=d[4]);let h=void 0!==l&&l,p=void 0!==s&&s?i.Slot.Root:"button",f=h&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0";return d[5]!==a||d[6]!==f?(c=(0,o.cn)("focus-ring absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-fg/60 outline-hidden transition-transform hover:bg-ac/10 hover:text-ac peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",f,a),d[5]=a,d[6]=f,d[7]=c):c=d[7],d[8]!==p||d[9]!==n||d[10]!==c?(u=(0,t.jsx)(p,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:c,...n}),d[8]=p,d[9]=n,d[10]=c,d[11]=u):u=d[11],u},"SidebarMenuBadge",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-fg text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarMenuButton",0,function(e){let a,n,s,l,c,u,d,h,p,f,m,g,b=(0,r.c)(28);b[0]!==e?({asChild:s,isActive:l,variant:c,size:u,tooltip:d,className:a,...n}=e,b[0]=e,b[1]=a,b[2]=n,b[3]=s,b[4]=l,b[5]=c,b[6]=u,b[7]=d):(a=b[1],n=b[2],s=b[3],l=b[4],c=b[5],u=b[6],d=b[7]);let v=void 0!==l&&l,y=void 0===c?"default":c,_=void 0===u?"default":u,x=void 0!==s&&s?i.Slot.Root:"button",{isMobile:P,state:E}=j();b[8]!==a||b[9]!==_||b[10]!==y?(h=(0,o.cn)(S({variant:y,size:_}),a),b[8]=a,b[9]=_,b[10]=y,b[11]=h):h=b[11],b[12]!==x||b[13]!==v||b[14]!==n||b[15]!==_||b[16]!==h?(p=(0,t.jsx)(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":_,"data-active":v,className:h,...n}),b[12]=x,b[13]=v,b[14]=n,b[15]=_,b[16]=h,b[17]=p):p=b[17];let R=p;if(!d)return R;if("string"==typeof d){let e;b[18]!==d?(e={children:d},b[18]=d,b[19]=e):e=b[19],d=e}b[20]!==R?(f=(0,t.jsx)(w.TooltipTrigger,{asChild:!0,children:R}),b[20]=R,b[21]=f):f=b[21];let O="collapsed"!==E||P;return b[22]!==O||b[23]!==d?(m=(0,t.jsx)(w.TooltipContent,{side:"right",align:"center",hidden:O,...d}),b[22]=O,b[23]=d,b[24]=m):m=b[24],b[25]!==f||b[26]!==m?(g=(0,t.jsxs)(w.TooltipRoot,{children:[f,m]}),b[25]=f,b[26]=m,b[27]=g):g=b[27],g},"SidebarMenuItem",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("group/menu-item relative",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarMenuSkeleton",0,function(e){let a,n,i,l,c,u,d,h,p=(0,r.c)(17);p[0]!==e?({className:a,showIcon:i,...n}=e,p[0]=e,p[1]=a,p[2]=n,p[3]=i):(a=p[1],n=p[2],i=p[3]);let f=void 0!==i&&i,m=s.useId(),g=0;for(let e=0;e<m.length;e++)g=(g<<5)-g+m.charCodeAt(e),g&=g;let b=Math.abs(g)%50,v=`${b+50}%`;p[4]!==a?(l=(0,o.cn)("flex h-8 items-center gap-2 rounded-md px-2",a),p[4]=a,p[5]=l):l=p[5],p[6]!==f?(c=f&&(0,t.jsx)(x.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}
5),p[6]=f,p[7]=c):c=p[7],p[8]!==v?(u={"--skeleton-width":v},p[8]=v,p[9]=u):u=p[9];let y=u;return p[10]!==y?(d=(0,t.jsx)(x.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:y}),p[10]=y,p[11]=d):d=p[11],p[12]!==n||p[13]!==l||p[14]!==c||p[15]!==d?(h=(0,t.jsxs)("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l,...n,children:[c,d]}),p[12]=n,p[13]=l,p[14]=c,p[15]=d,p[16]=h):h=p[16],h},"SidebarMenuSub",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("mx-3.5 flex min-w-0 translate-x-px flex-col border-fg/10 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarMenuSubButton",0,function(e){let a,n,s,l,c,u,d,h=(0,r.c)(16);h[0]!==e?({asChild:s,size:l,isActive:c,className:a,...n}=e,h[0]=e,h[1]=a,h[2]=n,h[3]=s,h[4]=l,h[5]=c):(a=h[1],n=h[2],s=h[3],l=h[4],c=h[5]);let p=void 0===l?"md":l,f=void 0!==c&&c,m=void 0!==s&&s?i.Slot.Root:"a",g="sm"===p&&"text-xs",b="md"===p&&"text-sm";return h[6]!==a||h[7]!==g||h[8]!==b?(u=(0,o.cn)("focus-ring flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-fg outline-hidden hover:bg-ac/10 hover:text-ac disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",g,b,"group-data-[collapsible=icon]:hidden",a),h[6]=a,h[7]=g,h[8]=b,h[9]=u):u=h[9],h[10]!==m||h[11]!==f||h[12]!==n||h[13]!==p||h[14]!==u?(d=(0,t.jsx)(m,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":p,"data-active":f,className:u,...n}),h[10]=m,h[11]=f,h[12]=n,h[13]=p,h[14]=u,h[15]=d):d=h[15],d},"SidebarMenuSubItem",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("group/menu-sub-item relative",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarProvider",0,function(e){let a,n,i,c,u,d,h,p,f,m,g,b,v,y,_,x,j=(0,r.c)(36);j[0]!==e?({defaultOpen:h,open:i,onOpenChange:u,className:n,style:d,children:a,...c}=e,j[0]=e,j[1]=a,j[2]=n,j[3]=i,j[4]=c,j[5]=u,j[6]=d,j[7]=h):(a=j[1],n=j[2],i=j[3],c=j[4],u=j[5],d=j[6],h=j[7]);let S=void 0===h||h,O=(0,l.useIsMobile)(),[k,N]=s.useState(!1),[C,A]=s.useState(S),M=i??C;j[8]!==M||j[9]!==u?(p=e=>{let t="function"==typeof e?e(M):e;u?u(t):A(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},j[8]=M,j[9]=u,j[10]=p):p=j[10];let T=p;j[11]!==O||j[12]!==T?(f=()=>O?N(R):T(E),j[11]=O,j[12]=T,j[13]=f):f=j[13];let I=f;j[14]!==I?(m=()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),I())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},g=[I],j[14]=I,j[15]=m,j[16]=g):(m=j[15],g=j[16]),s.useEffect(m,g);let $=M?"expanded":"collapsed";j[17]!==O||j[18]!==M||j[19]!==k||j[20]!==T||j[21]!==$||j[22]!==I?(b={state:$,open:M,setOpen:T,isMobile:O,openMobile:k,setOpenMobile:N,toggleSidebar:I},j[17]=O,j[18]=M,j[19]=k,j[20]=T,j[21]=$,j[22]=I,j[23]=b):b=j[23];let L=b;j[24]!==d?(v={"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...d},j[24]=d,j[25]=v):v=j[25];let D=v;return j[26]!==n?(y=(0,o.cn)("group/sidebar-wrapper flex h-svh w-full overflow-hidden has-data-[variant=inset]:bg-fg/5",n),j[26]=n,j[27]=y):y=j[27],j[28]!==a||j[29]!==c||j[30]!==D||j[31]!==y?(_=(0,t.jsx)(w.TooltipProvider,{delayDuration:0,children:(0,t.jsx)("div",{"data-slot":"sidebar-wrapper",style:D,className:y,...c,children:a})}),j[28]=a,j[29]=c,j[30]=D,j[31]=y,j[32]=_):_=j[32],j[33]!==L||j[34]!==_?(x=(0,t.jsx)(P.Provider,{value:L,children:_}),j[33]=L,j[34]=_,j[35]=x):x=j[35],x},"SidebarRail",0,function(e){let a,n,i,s,l=(0,r.c)(9);l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]);let{toggleSidebar:c}=j();return l[3]!==a?(i=(0,o.cn)("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i||l[7]!==c?(s=(0,t.jsx)("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:c,title:"Toggle Sidebar",className:i,...n}),l[5]=n,l[6]=i,l[7]=c,l[8]=s):s=l[8],s},"SidebarSeparator",0,function(e){let a,n,i,s,l=(0,r.c)(8);return l[0]!==e?({className:a,...n}=e,l[0]=e,l[1]=a,l[2]=n):(a=l[1],n=l[2]),l[3]!==a?(i=(0,o.cn)("mx-2 w-auto bg-fg/10",a),l[3]=a,l[4]=i):i=l[4],l[5]!==n||l[6]!==i?(s=(0,t.jsx)(d.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:i,...n}),l[5]=n,l[6]=i,l[7]=s):s=l[7],s},"SidebarTrigger",0,function(e){let n,i,s,o,l,u,d,h=(0,r.c)(13);h[0]!==e?({className:n,onClick:i,...s}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=s):(n=h[1],i=h[2],s=h[3]);let{toggleSidebar:p}=j();return h[4]!==i||h[5]!==p?(o=e=>{i?.(e),p()},h[4]=i,h[5]=p,h[6]=o):o=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(a,{}),u=(0,t.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),h[7]=l,h[8]=u):(l=h[7],u=h[8]),h[9]!==n||h[10]!==s||h[11]!==o?(d=(0,t.jsxs)(c.Button,{"data-sidebar":"trigger","data-slot":"sidebar-tr
5igger",variant:"ghost",size:"icon",className:n,onClick:o,...s,children:[l,u]}),h[9]=n,h[10]=s,h[11]=o,h[12]=d):d=h[12],d},"useSidebar",0,j],530909)}]);

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.