most-box 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +26 -0
  2. package/cli.js +2 -2
  3. package/out/404/index.html +15 -0
  4. package/out/404.html +15 -0
  5. package/out/__next.__PAGE__.txt +9 -0
  6. package/out/__next._full.txt +18 -0
  7. package/out/__next._head.txt +5 -0
  8. package/out/__next._index.txt +6 -0
  9. package/out/__next._tree.txt +2 -0
  10. package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_buildManifest.js +11 -0
  11. package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_clientMiddlewareManifest.js +1 -0
  12. package/out/_next/static/0h4f4QFk_KC9FlSRfQACk/_ssgManifest.js +1 -0
  13. package/out/_next/static/chunks/00l-yd3t8dvwz.js +5 -0
  14. package/out/_next/static/chunks/03k8t3tgym~8~.js +1 -0
  15. package/out/_next/static/chunks/03~yq9q893hmn.js +1 -0
  16. package/out/_next/static/chunks/09vfh8lfuacc0.css +1 -0
  17. package/out/_next/static/chunks/0bogtdbh.dcu1.js +1 -0
  18. package/out/_next/static/chunks/0dbhjjzl8qfwv.js +1 -0
  19. package/out/_next/static/chunks/0f73psqhr8dre.css +1 -0
  20. package/out/_next/static/chunks/0fbi7z4_.4j1j.js +1 -0
  21. package/out/_next/static/chunks/0ht900cau6_ur.js +31 -0
  22. package/out/_next/static/chunks/0ohm.ia-4ec60.js +1 -0
  23. package/out/_next/static/chunks/0u5ydb-f0.vxl.js +1 -0
  24. package/out/_next/static/chunks/14t2m1on-s5v~.js +1 -0
  25. package/out/_next/static/chunks/turbopack-076ce9exut_h3.js +1 -0
  26. package/out/_not-found/__next._full.txt +16 -0
  27. package/out/_not-found/__next._head.txt +5 -0
  28. package/out/_not-found/__next._index.txt +6 -0
  29. package/out/_not-found/__next._not-found/__PAGE__.txt +5 -0
  30. package/out/_not-found/__next._not-found.txt +5 -0
  31. package/out/_not-found/__next._tree.txt +2 -0
  32. package/out/_not-found/index.html +15 -0
  33. package/out/_not-found/index.txt +16 -0
  34. package/out/app.css +1535 -0
  35. package/out/bundle.js +107 -0
  36. package/out/bundle.js.map +7 -0
  37. package/out/chat/__next._full.txt +19 -0
  38. package/out/chat/__next._head.txt +5 -0
  39. package/out/chat/__next._index.txt +6 -0
  40. package/out/chat/__next._tree.txt +3 -0
  41. package/out/chat/__next.chat/__PAGE__.txt +9 -0
  42. package/out/chat/__next.chat.txt +5 -0
  43. package/out/chat/index.html +15 -0
  44. package/out/chat/index.txt +19 -0
  45. package/out/chat-page.js +112 -0
  46. package/out/chat.css +378 -0
  47. package/out/favicon.ico +0 -0
  48. package/out/index.html +15 -0
  49. package/out/index.js +148 -0
  50. package/out/index.txt +18 -0
  51. package/package.json +11 -6
  52. package/public/app.css +20 -4
  53. package/public/bundle.js +1 -1
  54. package/public/bundle.js.map +7 -0
  55. package/public/chat-page.js +112 -0
  56. package/public/chat.css +378 -0
  57. package/public/index.js +148 -0
  58. package/server.js +188 -6
  59. package/src/config.js +12 -1
  60. package/src/core/cid.js +7 -3
  61. package/src/index.js +475 -7
  62. package/src/utils/api.js +6 -0
  63. package/build.mjs +0 -40
  64. package/public/app.jsx +0 -1543
  65. package/public/bundle.css +0 -1
  66. package/public/error-boundary.jsx +0 -50
  67. package/public/index.html +0 -16
  68. package/public/index.jsx +0 -20
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},91915,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let a=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=a}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),e.r(33525)},68017,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return u}});let n=e.r(90809),a=e.r(43476),o=n._(e.r(71645)),i=e.r(90373),s=e.r(54394);e.r(33525);let l=e.r(8372);class c extends o.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,s.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,s.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,i={[s.HTTPAccessErrorStatus.NOT_FOUND]:e,[s.HTTPAccessErrorStatus.FORBIDDEN]:t,[s.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let l=o===s.HTTPAccessErrorStatus.NOT_FOUND&&e,c=o===s.HTTPAccessErrorStatus.FORBIDDEN&&t,u=o===s.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return l||c||u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex"}),!1,i[o]]}):n}return n}}function u({notFound:e,forbidden:t,unauthorized:r,children:n}){let s=(0,i.useUntrackedPathname)(),d=(0,o.useContext)(l.MissingSlotContext);return e||t||r?(0,a.jsx)(c,{pathname:s,notFound:e,forbidden:t,unauthorized:r,missingSlots:d,children:n}):(0,a.jsx)(a.Fragment,{children: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)},28298,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return a}});let n=e.r(71645);function a(e,t,r){let[a,o]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(a.tree===e)return a;let i={tree:e,cacheNode:t,stateKey:r,next:null},s=1,l=a,c=i;for(;null!==l&&s<1;){if(l.stateKey===r){c.next=l.next;break}{s++;let e={tree:l.tree,cacheNode:l.cacheNode,stateKey:l.stateKey,next:null};c.next=e,c=e}l=l.next}return o(i),i}("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)},39756,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return j},default:function(){return A}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(55682),i=e.r(90809),s=e.r(43476),l=i._(e.r(71645)),c=o._(e.r(74080)),u=e.r(8372),d=e.r(1244),f=e.r(72383),p=e.r(91915),m=e.r(58442),h=e.r(68017),g=e.r(70725),y=e.r(28298);e.r(74180);let b=e.r(61994),P=e.r(33906),_=e.r(95871),v=c.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=["bottom","height","left","right","top","width","x","y"];function O(e,t){let r=e.getClientRects();if(0===r.length)return!1;let n=1/0;for(let e=0;e<r.length;e++){let t=r[e];t.top<n&&(n=t.top)}return n>=0&&n<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,cacheNode:t}=this.props,r=e.forceScroll?e.scrollRef:t.scrollRef;if(null===r||!r.current)return;let n=null,a=e.hashFragment;if(a&&(n="top"===a?document.body:document.getElementById(a)??document.getElementsByName(a)[0]),n||(n="u"<typeof window?null:(0,v.findDOMNode)(this)),n instanceof Element){for(;!(n instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return E.every(e=>0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}r.current=!1,(0,p.disableSmoothScrollDuringRouteTransition)(()=>{if(a)return void n.scrollIntoView();let e=document.documentElement,t=e.clientHeight;!O(n,t)&&(e.scrollTop=0,O(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,e.hashFragment=null,n.focus()}}}}function w({children:e,cacheNode:t}){let r=(0,l.useContext)(u.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,s.jsx)(R,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function S({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:a,url:o,isActive:i}){let c,f=(0,l.useContext)(u.GlobalLayoutRouterContext);if((0,l.useContext)(b.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,l.use)(d.unresolvedThenable),m=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,h=(0,l.useDeferredValue)(p.rsc,m);if((0,_.isDeferredRsc)(h)){let e=(0,l.use)(h);null===e&&(0,l.use)(d.unresolvedThenable),c=e}else null===h&&(0,l.use)(d.unresolvedThenable),c=h;let g=c;return(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:a,parentLoadingData:null,debugNameContext:r,url:o,isActive:i},children:g})}function j({loading:e,children:t}){let r=(0,l.use)(u.LayoutRouterContext);return null===r?t:(0,s.jsx)(u.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function C({name:e,loading:t,children:r}){if(null!==t){let n=t[0],a=t[1],o=t[2];return(0,s.jsx)(l.Suspense,{name:e,fallback:(0,s.jsxs)(s.Fragment,{children:[a,o,n]}),children:r})}return(0,s.jsx)(s.Fragment,{children:r})}function A({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:a,templateScripts:o,template:i,notFound:c,forbidden:p,unauthorized:b,segmentViewBoundaries:_}){let v=(0,l.useContext)(u.LayoutRouterContext);if(!v)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:E,parentCacheNode:O,parentSegmentPath:R,parentParams:j,parentLoadingData:x,url:k,isActive:T,debugNameContext:N}=v,D=E[0],M=null===R?[e]:R.concat([D,e]),I=E[1][e],F=O.slots;(void 0===I||null===F)&&(0,l.use)(d.unresolvedThenable);let $=I[0],L=F[e]??null,U=(0,g.createRouterCacheKey)($,!0),X=(0,y.useRouterBFCache)(I,L,U),V=[];do{let e=X.tree,l=X.cacheNode,d=X.stateKey,g=e[0],y=j;if(Array.isArray(g)){let e=g[0],t=g[1],r=g[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(y={...j,[e]:n})}let _=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(g),v=_??N,E=void 0===_?void 0:N,O=(0,s.jsxs)(w,{cacheNode:l,children:[(0,s.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,s.jsx)(C,{name:E,loading:x,children:(0,s.jsx)(h.HTTPAccessFallbackBoundary,{notFound:c,forbidden:p,unauthorized:b,children:(0,s.jsxs)(m.RedirectBoundary,{children:[(0,s.jsx)(S,{url:k,tree:e,params:y,cacheNode:l,segmentPath:M,debugNameContext:v,isActive:T&&d===U}),null]})})})}),null]}),R=(0,s.jsxs)(u.TemplateContext.Provider,{value:O,children:[a,o,i]},d);V.push(R),X=X.next}while(null!==X)return V}("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)},37457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(90809),a=e.r(43476),o=n._(e.r(71645)),i=e.r(8372);function s(){let e=(0,o.useContext)(i.TemplateContext);return(0,a.jsx)(a.Fragment,{children: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)},93504,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("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)},66996,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(93504).createRenderSearchParamsFromClient;("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)},6831,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("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)},97689,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(6831).createRenderParamsFromClient;("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)},66373,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={accumulateRootVaryParam:function(){return y},accumulateVaryParam:function(){return g},createResponseVaryParamsAccumulator:function(){return c},createVaryParamsAccumulator:function(){return u},createVaryingParams:function(){return b},createVaryingSearchParams:function(){return P},emptyVaryParamsAccumulator:function(){return l},finishAccumulatingVaryParams:function(){return _},getMetadataVaryParamsAccumulator:function(){return d},getMetadataVaryParamsThenable:function(){return p},getRootParamsVaryParamsAccumulator:function(){return h},getVaryParamsThenable:function(){return f},getViewportVaryParamsAccumulator:function(){return m}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(62141);function i(){let e={varyParams:new Set,status:"pending",value:new Set,then(t){t&&("pending"===e.status?e.resolvers.push(t):t(e.value))},resolvers:[]};return e}let s=new Set,l={varyParams:s,status:"fulfilled",value:s,then(e){e&&e(s)},resolvers:[]};function c(){let e=i();return{head:e,rootParams:i(),segments:new Set}}function u(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t){let e=i();return t.segments.add(e),e}}}return null}function d(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.head}}return null}function f(e){return e}function p(){let e=d();return null!==e?e:null}let m=d;function h(){let e=o.workUnitAsyncStorage.getStore();if(e)switch(e.type){case"prerender":case"prerender-runtime":{let t=e.varyParamsAccumulator;if(null!==t)return t.rootParams}}return null}function g(e,t){e.varyParams.add(t)}function y(e){let t=h();null!==t&&g(t,e)}function b(e,t,r){if(null!==r)return new Proxy(t,{get:(t,n,a)=>("string"==typeof n&&(n===r||Object.prototype.hasOwnProperty.call(t,n))&&g(e,n),Reflect.get(t,n,a)),has:(t,n)=>(n===r&&g(e,r),Reflect.has(t,n)),ownKeys:t=>(g(e,r),Reflect.ownKeys(t))});let n={};for(let r in t)Object.defineProperty(n,r,{get:()=>(g(e,r),t[r]),enumerable:!0});return n}function P(e,t){let r={};for(let n in t)Object.defineProperty(r,n,{get:()=>(g(e,"?"),t[n]),enumerable:!0});return r}async function _(e){let t=e.rootParams.varyParams;for(let r of(v(e.head,t),e.segments))v(r,t);await Promise.resolve(),await Promise.resolve(),await Promise.resolve()}function v(e,t){if("pending"!==e.status)return;let r=new Set(e.varyParams);for(let e of t)r.add(e);for(let t of(e.value=r,e.status="fulfilled",e.resolvers))t(r);e.resolvers=[]}},42715,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},76361,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return l}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=a(void 0);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(e.r(71645));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}let o={current:null},i="function"==typeof n.cache?n.cache:e=>e,s=console.warn;function l(e){return function(...t){s(e(...t))}}i(e=>{try{s(o.current)}finally{o.current=null}})},65932,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={describeHasCheckingStringProperty:function(){return s},describeStringPropertyAccess:function(){return i},wellKnownProperties:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function i(e,t){return o.test(t)?`\`${e}.${t}\``:`\`${e}[${JSON.stringify(t)}]\``}function s(e,t){let r=JSON.stringify(t);return`\`Reflect.has(${e}, ${r})\`, \`${r} in ${e}\`, or similar`}let l=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule","@@iterator"])},83066,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},41643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=e.r(83066)},50999,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return c},throwForSearchParamsAccessInUseCache:function(){return l},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(43248),i=e.r(41643);function s(e,t){throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function l(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function c(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},28649,(e,t,r)=>{"use strict";var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={},l={RequestCookies:()=>h,ResponseCookies:()=>g,parseCookie:()=>d,parseSetCookie:()=>f,stringifyCookie:()=>u};for(var c in l)n(s,c,{get:l[c],enumerable:!0});function u(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function d(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,a]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=a?a:"true"))}catch{}}return t}function f(e){if(!e)return;let[[t,r],...n]=d(e),{domain:a,expires:o,httponly:i,maxage:s,path:l,samesite:c,secure:u,partitioned:f,priority:h}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));{var g,y,b={name:t,value:decodeURIComponent(r),domain:a,...o&&{expires:new Date(o)},...i&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...c&&{sameSite:p.includes(g=(g=c).toLowerCase())?g:void 0},...u&&{secure:!0},...h&&{priority:m.includes(y=(y=h).toLowerCase())?y:void 0},...f&&{partitioned:!0}};let e={};for(let t in b)b[t]&&(e[t]=b[t]);return e}}t.exports=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))i.call(e,s)||void 0===s||n(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e})(n({},"__esModule",{value:!0}),s);var p=["strict","lax","none"],m=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t)for(const[e,r]of d(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>u(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>u(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},g=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;const a=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(const e of Array.isArray(a)?a:function(e){if(!e)return[];var t,r,n,a,o,i=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),a=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=a,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&i.push(e.substring(t,e.length))}return i}(a)){const t=f(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=u(r);t.append("set-cookie",e)}}(a,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(u).join("; ")}}},96883,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return o.RequestCookies},ResponseCookies:function(){return o.ResponseCookies},stringifyCookie:function(){return o.stringifyCookie}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(28649)},97270,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return m},ReadonlyRequestCookiesError:function(){return c},RequestCookiesAdapter:function(){return u},appendMutableCookies:function(){return p},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return h},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return b}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(96883),i=e.r(42715),s=e.r(63599),l=e.r(39146);class c extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new c}}class u{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return c.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let d=Symbol.for("next.mutated.cookies");function f(e){let t=e[d];return t&&Array.isArray(t)&&0!==t.length?t:[]}function p(e,t){let r=f(t);if(0===r.length)return!1;let n=new o.ResponseCookies(e),a=n.getAll();for(let e of r)n.set(e);for(let e of a)n.set(e);return!0}class m{static wrap(e,t){let r=new o.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let n=[],a=new Set,c=()=>{let e=s.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=l.ActionDidRevalidateStaticAndDynamic),n=r.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of n){let r=new o.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},u=new Proxy(r,{get(e,t,r){switch(t){case d:return n;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),u}finally{c()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),u}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}});return u}}function h(e){let t=new Proxy(e.mutableCookies,{get(r,n,a){switch(n){case"delete":return function(...n){return y(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return y(e,"cookies().set"),r.set(...n),t};default:return i.ReflectAdapter.get(r,n,a)}}});return t}function g(e){return"action"===e.phase}function y(e,t){if(!g(e))throw new c}function b(e){let t=new o.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},87720,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={HeadersAdapter:function(){return s},ReadonlyHeadersError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(42715);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,n){if("symbol"==typeof r)return o.ReflectAdapter.get(t,r,n);let a=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==i)return o.ReflectAdapter.get(t,i,n)},set(t,r,n,a){if("symbol"==typeof r)return o.ReflectAdapter.set(t,r,n,a);let i=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===i);return o.ReflectAdapter.set(t,s??r,n,a)},has(t,r){if("symbol"==typeof r)return o.ReflectAdapter.has(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&o.ReflectAdapter.has(t,a)},deleteProperty(t,r){if("symbol"==typeof r)return o.ReflectAdapter.deleteProperty(t,r);let n=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||o.ReflectAdapter.deleteProperty(t,a)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return o.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},1643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return i},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(91463);function i(e){let t=o.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 s(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}}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return _},NormalizeError:function(){return b},PageNotFoundError:function(){return P},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return o},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class P extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class _ extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},90929,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});let n=e.r(18967),a=e.r(98183);function o(e,t,r=!0){let i=new URL("u"<typeof window?"http://n":(0,n.getLocationOrigin)()),s=t?new URL(t,i):e.startsWith(".")?new URL("u"<typeof window?"http://n":window.location.href):i,{pathname:l,searchParams:c,search:u,hash:d,href:f,origin:p}=e.startsWith("/")?new URL(`${s.protocol}//${s.host}${e}`):new URL(e,s);if(p!==i.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,a.searchParamsToUrlQuery)(c):void 0,search:u,hash:d,href:f.slice(p.length),slashes:null}}},13770,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationError:function(){return s},isInstantValidationError:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o="INSTANT_VALIDATION_ERROR";function i(e){return!!(e&&"object"==typeof e&&e instanceof Error&&e.digest===o)}class s extends Error{constructor(...e){super(...e),this.digest=o}}},18450,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assertRootParamInSamples:function(){return S},createCookiesFromSample:function(){return y},createDraftModeForValidation:function(){return _},createExhaustiveParamsProxy:function(){return v},createExhaustiveSearchParamsProxy:function(){return E},createExhaustiveURLSearchParamsProxy:function(){return O},createHeadersFromSample:function(){return P},createRelativeURLFromSamples:function(){return w},createValidationSampleTracking:function(){return m},trackMissingSampleError:function(){return h},trackMissingSampleErrorAndThrow:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(96883),i=e.r(97270),s=e.r(87720),l=e.r(1643),c=e.r(90929),u=e.r(12718),d=e.r(13770),f=e.r(62141),p=e.r(65932);function m(){return{missingSampleErrors:[]}}function h(e){(function(){let e=null,t=f.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"request":case"validation-client":e=t.validationSampleTracking??null}if(!e)throw Object.defineProperty(new u.InvariantError("Expected to have a workUnitStore that provides validationSampleTracking"),"__NEXT_ERROR_CODE",{value:"E1110",enumerable:!1,configurable:!0});return e})().missingSampleErrors.push(e)}function g(e){throw h(e),e}function y(e,t){let r=new Set,n=new o.RequestCookies(new Headers);if(e)for(let t of e)r.add(t.name),null!==t.value&&n.set(t.name,t.value);return new Proxy(i.RequestCookiesAdapter.seal(n),{get(e,n,a){if("has"===n){let o=Reflect.get(e,n,a);return function(n){return r.has(n)||g(b(t,n)),o.call(e,n)}}if("get"===n){let o=Reflect.get(e,n,a);return function(n){let a;if("string"==typeof n)a=n;else{if(!n||"object"!=typeof n||"string"!=typeof n.name)return o.call(e,n);a=n.name}return r.has(a)||g(b(t,a)),o.call(e,a)}}return Reflect.get(e,n,a)}})}function b(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed cookie "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`cookies\` array, or \`{ name: "${t}", value: null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1115",enumerable:!1,configurable:!0})}function P(e,t,r){let n=e?[...e]:[];if(n.find(([e])=>"cookie"===e.toLowerCase()))throw Object.defineProperty(new d.InstantValidationError('Invalid sample: Defining cookies via a "cookie" header is not supported. Use `cookies: [{ name: ..., value: ... }]` instead.'),"__NEXT_ERROR_CODE",{value:"E1111",enumerable:!1,configurable:!0});if(t){let e=t.toString();n.push(["cookie",""!==e?e:null])}let a=new Set,o={};for(let[e,t]of n)a.add(e.toLowerCase()),null!==t&&(o[e.toLowerCase()]=t);return new Proxy(s.HeadersAdapter.seal(s.HeadersAdapter.from(o)),{get(e,t,n){if("get"===t||"has"===t){let o=Reflect.get(e,t,n);return function(t){let n=t.toLowerCase();return a.has(n)||g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed header "${n}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`headers\` array, or \`["${n}", null]\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1116",enumerable:!1,configurable:!0})),o.call(e,n)}}return Reflect.get(e,t,n)}})}function _(){return{get isEnabled(){return!1},enable(){throw Object.defineProperty(Error("Draft mode cannot be enabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1092",enumerable:!1,configurable:!0})},disable(){throw Object.defineProperty(Error("Draft mode cannot be disabled during build-time instant validation."),"__NEXT_ERROR_CODE",{value:"E1094",enumerable:!1,configurable:!0})}}}function v(e,t,r){return new Proxy(e,{get:(n,a,o)=>("string"==typeof a&&!p.wellKnownProperties.has(a)&&a in e&&!t.has(a)&&g(Object.defineProperty(new d.InstantValidationError(`Route "${r}" accessed param "${a}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1095",enumerable:!1,configurable:!0})),Reflect.get(n,a,o))})}function E(e,t,r){return new Proxy(e,{get:(e,n,a)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.get(e,n,a)),has:(e,n)=>("string"!=typeof n||p.wellKnownProperties.has(n)||t.has(n)||g(R(r,n)),Reflect.has(e,n))})}function O(e,t,r){return new Proxy(e,{get(e,n,a){if("get"===n||"getAll"===n||"has"===n){let o=Reflect.get(e,n,a);return n=>("string"!=typeof n||t.has(n)||g(R(r,n)),o.call(e,n))}let o=Reflect.get(e,n,a);return"function"!=typeof o||Object.hasOwn(e,n)?o:o.bind(e)}})}function R(e,t){return Object.defineProperty(new d.InstantValidationError(`Route "${e}" accessed searchParam "${t}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`searchParams\` object, or \`{ "${t}": null }\` if it should be absent.`),"__NEXT_ERROR_CODE",{value:"E1098",enumerable:!1,configurable:!0})}function w(e,t,r){let n=function(e,t){let r=[];for(let n of e.split("/")){let e=(0,l.getSegmentParam)(n);if(e)switch(e.paramType){case"catchall":case"optional-catchall":{let a=t[e.paramName];if(void 0===a)a=[n];else if(!Array.isArray(a))throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be an array of strings, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1104",enumerable:!1,configurable:!0});r.push(...a.map(e=>encodeURIComponent(e)));break}case"dynamic":{let a=t[e.paramName];if(void 0===a)a=n;else if("string"!=typeof a)throw Object.defineProperty(new d.InstantValidationError(`Expected sample param value for segment '${n}' to be a string, got ${typeof a}`),"__NEXT_ERROR_CODE",{value:"E1108",enumerable:!1,configurable:!0});r.push(encodeURIComponent(a));break}case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":throw Object.defineProperty(new u.InvariantError("Not implemented: Validation of interception routes"),"__NEXT_ERROR_CODE",{value:"E1106",enumerable:!1,configurable:!0});default:e.paramType}else r.push(n)}return r.join("/")}(e,t??{}),a="";if(r){let e=(function(e){let t=new URLSearchParams;if(e){for(let[r,n]of Object.entries(e))if(null!=n)if(Array.isArray(n))for(let e of n)t.append(r,e);else t.set(r,n)}return t})(r).toString();e&&(a="?"+e)}return(0,c.parseRelativeUrl)(n+a,void 0,!0)}function S(e,t,r){if(t&&r in t);else{let t=e.route;g(Object.defineProperty(new d.InstantValidationError(`Route "${t}" accessed root param "${r}" which is not defined in the \`samples\` of \`unstable_instant\`. Add it to the sample's \`params\` object.`),"__NEXT_ERROR_CODE",{value:"E1114",enumerable:!1,configurable:!0}))}}},69882,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createPrerenderSearchParamsForClientPage:function(){return P},createSearchParamsFromClient:function(){return g},createServerSearchParamsForMetadata:function(){return y},createServerSearchParamsForServerPage:function(){return b},makeErroringSearchParamsForUseCache:function(){return R}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63599),i=e.r(66373),s=e.r(42715),l=e.r(67673),c=e.r(62141),u=e.r(12718),d=e.r(63138),f=e.r(76361),p=e.r(65932),m=e.r(50999),h=e.r(42852);function g(t){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(r,n);case"validation-client":return function(t,r,n){var a;let{createExhaustiveSearchParamsProxy:o}=e.r(18450);return Promise.resolve(t=o(t,new Set(Object.keys((null==(a=n.validationSamples)?void 0:a.searchParams)??{})),r.route))}(t,r,n);case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E769",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E739",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createSearchParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1133",enumerable:!1,configurable:!0});case"request":return v(t,r,n,!1)}(0,c.throwInvariantForMissingStore)()}function y(e,t){return b(e,(0,i.getMetadataVaryParamsAccumulator)(),t)}function b(e,t,r){let n=o.workAsyncStorage.getStore();if(!n)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let a=c.workUnitAsyncStorage.getStore();if(a)switch(a.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return _(n,a);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1066",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E747",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerSearchParamsForServerPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1128",enumerable:!1,configurable:!0});case"prerender-runtime":return function(e,t,r,n){let a=w(null!==r?(0,i.createVaryingSearchParams)(r,e):e),{stagedRendering:o}=t;if(!o)return a;let s=n?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return o.waitForStage(s).then(()=>a)}(e,a,t,r);case"request":return v(e,n,a,r)}(0,c.throwInvariantForMissingStore)()}function P(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve({});let t=c.workUnitAsyncStorage.getStore();if(t)switch(t.type){case"prerender":case"prerender-client":return(0,d.makeHangingPromise)(t.renderSignal,e.route,"`searchParams`");case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a client validation."),"__NEXT_ERROR_CODE",{value:"E1061",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E768",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E746",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderSearchParamsForClientPage should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1124",enumerable:!1,configurable:!0});case"prerender-ppr":case"prerender-legacy":case"request":return Promise.resolve({})}(0,c.throwInvariantForMissingStore)()}function _(e,t){if(e.forceStatic)return Promise.resolve({});switch(t.type){case"prerender":case"prerender-client":var r=e,n=t;let a=E.get(n);if(a)return a;let o=(0,d.makeHangingPromise)(n.renderSignal,r.route,"`searchParams`"),i=new Proxy(o,{get(e,t,r){if(Object.hasOwn(o,t))return s.ReflectAdapter.get(e,t,r);switch(t){case"then":return(0,l.annotateDynamicAccess)("`await searchParams`, `searchParams.then`, or similar",n),s.ReflectAdapter.get(e,t,r);case"status":return(0,l.annotateDynamicAccess)("`use(searchParams)`, `searchParams.status`, or similar",n),s.ReflectAdapter.get(e,t,r);default:return s.ReflectAdapter.get(e,t,r)}}});return E.set(n,i),i;case"prerender-ppr":case"prerender-legacy":var c=e,u=t;let f=E.get(c);if(f)return f;let p=Promise.resolve({}),h=new Proxy(p,{get(e,t,r){if(Object.hasOwn(p,t))return s.ReflectAdapter.get(e,t,r);if("string"==typeof t&&"then"===t){let e="`await searchParams`, `searchParams.then`, or similar";c.dynamicShouldError?(0,m.throwWithStaticGenerationBailoutErrorWithDynamicError)(c.route,e):"prerender-ppr"===u.type?(0,l.postponeWithTracking)(c.route,e,u.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(e,c,u)}return s.ReflectAdapter.get(e,t,r)}});return E.set(c,h),h;default:return t}}function v(t,r,n,a){if(r.forceStatic)return Promise.resolve({});if(!n.asyncApiPromises)return w(t);if(n.validationSamples){let{createExhaustiveSearchParamsProxy:a}=e.r(18450),o=new Set(Object.keys(n.validationSamples.searchParams??{}));t=a(t,o,r.route)}return(a?n.asyncApiPromises.earlySharedSearchParamsParent:n.asyncApiPromises.sharedSearchParamsParent).then(()=>t)}let E=new WeakMap,O=new WeakMap;function R(){let e=o.workAsyncStorage.getStore();if(!e)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let t=O.get(e);if(t)return t;let r=Promise.resolve({}),n=new Proxy(r,{get:function t(n,a,o){return Object.hasOwn(r,a)||"string"!=typeof a||"then"!==a&&p.wellKnownProperties.has(a)||(0,m.throwForSearchParamsAccessInUseCache)(e,t),s.ReflectAdapter.get(n,a,o)}});return O.set(e,n),n}function w(e){let t=E.get(e);if(t)return t;let r=Promise.resolve(e);return E.set(e,r),r}(0,f.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`searchParams\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E848",enumerable:!1,configurable:!0})})},74804,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},88276,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"dynamicAccessAsyncStorage",{enumerable:!0,get:function(){return n.dynamicAccessAsyncStorageInstance}});let n=e.r(74804)},41489,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createParamsFromClient:function(){return g},createPrerenderParamsForClientSegment:function(){return _},createServerParamsForMetadata:function(){return y},createServerParamsForRoute:function(){return b},createServerParamsForServerSegment:function(){return P}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(63599),i=e.r(66373),s=e.r(42715),l=e.r(67673),c=e.r(62141),u=e.r(12718),d=e.r(65932),f=e.r(63138),p=e.r(76361),m=e.r(88276),h=e.r(42852);function g(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(e,null,t,r,null);case"validation-client":return O(e,t,r.validationSamples);case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E736",enumerable:!1,configurable:!0});case"prerender-runtime":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called in a runtime prerender."),"__NEXT_ERROR_CODE",{value:"E770",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createParamsFromClient should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1122",enumerable:!1,configurable:!0});case"request":if(r.validationSamples)return O(e,t,r.validationSamples);return S(e)}(0,c.throwInvariantForMissingStore)()}function y(e,t,r){return P(e,t,(0,i.getMetadataVaryParamsAccumulator)(),r)}function b(e,t=null){let r=o.workAsyncStorage.getStore();if(!r)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let n=c.workUnitAsyncStorage.getStore();if(n)switch(n.type){case"prerender":case"prerender-ppr":case"prerender-legacy":return v(e,null,r,n,t);case"prerender-client":case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1064",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E738",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForRoute should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1131",enumerable:!1,configurable:!0});case"prerender-runtime":return E(e,null,n,t,!1);case"request":return S(e)}(0,c.throwInvariantForMissingStore)()}function P(t,r,n,a){let i=o.workAsyncStorage.getStore();if(!i)throw Object.defineProperty(new u.InvariantError("Expected workStore to be initialized"),"__NEXT_ERROR_CODE",{value:"E1068",enumerable:!1,configurable:!0});let s=c.workUnitAsyncStorage.getStore();if(s)switch(s.type){case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return v(t,r,i,s,n);case"validation-client":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in client contexts."),"__NEXT_ERROR_CODE",{value:"E1101",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E743",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createServerParamsForServerSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1120",enumerable:!1,configurable:!0});case"prerender-runtime":return E(t,r,s,n,a);case"request":if(s.asyncApiPromises&&s.validationSamples)return function(t,r,n,a,o){let{createExhaustiveParamsProxy:i}=e.r(18450),s=i(t,new Set(Object.keys(n.params??{})),r.route);return(o?a.earlySharedParamsParent:a.sharedParamsParent).then(()=>s)}(t,i,s.validationSamples,s.asyncApiPromises,a);if(s.asyncApiPromises&&function(e,t){if(t){for(let r in e)if(t.has(r))return!0}return!1}(t,s.fallbackParams))return(a?s.asyncApiPromises.earlySharedParamsParent:s.asyncApiPromises.sharedParamsParent).then(()=>t);return S(t)}(0,c.throwInvariantForMissingStore)()}function _(e){let t=o.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(new u.InvariantError("Missing workStore in createPrerenderParamsForClientSegment"),"__NEXT_ERROR_CODE",{value:"E773",enumerable:!1,configurable:!0});let r=c.workUnitAsyncStorage.getStore();if(r)switch(r.type){case"prerender":case"prerender-client":let n=r.fallbackRouteParams;if(n){for(let a in e)if(n.has(a))return(0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`")}break;case"validation-client":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in validation contexts."),"__NEXT_ERROR_CODE",{value:"E1099",enumerable:!1,configurable:!0});case"cache":case"private-cache":case"unstable-cache":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called in cache contexts."),"__NEXT_ERROR_CODE",{value:"E734",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new u.InvariantError("createPrerenderParamsForClientSegment should not be called inside generateStaticParams."),"__NEXT_ERROR_CODE",{value:"E1126",enumerable:!1,configurable:!0})}return Promise.resolve(e)}function v(e,t,r,n,a){let o=null!==a?(0,i.createVaryingParams)(a,e,t):e;switch(n.type){case"prerender":case"prerender-client":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r){let n=R.get(e);if(n)return n;let a=new Proxy((0,f.makeHangingPromise)(r.renderSignal,t.route,"`params`"),w);return R.set(e,a),a}(o,r,n)}break}case"prerender-ppr":{let t=n.fallbackRouteParams;if(t){for(let a in e)if(t.has(a))return function(e,t,r,n){let a=R.get(e);if(a)return a;let o={...e},i=Promise.resolve(o);return R.set(e,i),Object.keys(e).forEach(e=>{d.wellKnownProperties.has(e)||t.has(e)&&Object.defineProperty(o,e,{get(){let t=(0,d.describeStringPropertyAccess)("params",e);"prerender-ppr"===n.type?(0,l.postponeWithTracking)(r.route,t,n.dynamicTracking):(0,l.throwToInterruptStaticGeneration)(t,r,n)},enumerable:!0})}),i}(o,t,r,n)}}}return S(o)}function E(e,t,r,n,a){let o=S(null!==n?(0,i.createVaryingParams)(n,e,t):e),{stagedRendering:s}=r;if(!s)return o;let l=a?h.RenderStage.EarlyRuntime:h.RenderStage.Runtime;return s.waitForStage(l).then(()=>o)}function O(t,r,n){let{createExhaustiveParamsProxy:a}=e.r(18450);return Promise.resolve(a(t,new Set(Object.keys((null==n?void 0:n.params)??{})),r.route))}let R=new WeakMap,w={get:function(e,t,r){if("then"===t||"catch"===t||"finally"===t){let n=s.ReflectAdapter.get(e,t,r);return({[t]:(...t)=>{let r=m.dynamicAccessAsyncStorage.getStore();return r&&r.abortController.abort(Object.defineProperty(Error("Accessed fallback `params` during prerendering."),"__NEXT_ERROR_CODE",{value:"E691",enumerable:!1,configurable:!0})),new Proxy(n.apply(e,t),w)}})[t]}return s.ReflectAdapter.get(e,t,r)}};function S(e){let t=R.get(e);if(t)return t;let r=Promise.resolve(e);return R.set(e,r),r}(0,p.createDedupedByCallsiteServerErrorLoggerDev)(function(e,t){let r=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${r}used ${t}. \`params\` is a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E834",enumerable:!1,configurable:!0})})},47257,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return l}});let n=e.r(43476),a=e.r(8372),o=e.r(71645),i=e.r(33906),s=e.r(61994);function l({Component:t,serverProvidedParams:r}){let c,u;if(null!==r)c=r.searchParams,u=r.params;else{let e=(0,o.use)(a.LayoutRouterContext);u=null!==e?e.parentParams:{},c=(0,i.urlSearchParamsToParsedUrlQuery)((0,o.use)(s.SearchParamsContext))}if("u"<typeof window){let r,a,{createSearchParamsFromClient:o}=e.r(69882);r=o(c);let{createParamsFromClient:i}=e.r(41489);return a=i(u),(0,n.jsx)(t,{params:a,searchParams:r})}{let{createRenderSearchParamsFromClient:r}=e.r(66996),a=r(c),{createRenderParamsFromClient:o}=e.r(97689),i=o(u);return(0,n.jsx)(t,{params:i,searchParams:a})}}("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)},92825,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return i}});let n=e.r(43476),a=e.r(8372),o=e.r(71645);function i({Component:t,slots:r,serverProvidedParams:s}){let l;if(null!==s)l=s.params;else{let e=(0,o.use)(a.LayoutRouterContext);l=null!==e?e.parentParams:{}}if("u"<typeof window){let{createParamsFromClient:a}=e.r(41489),o=a(l);return(0,n.jsx)(t,{...r,params:o})}{let{createRenderParamsFromClient:a}=e.r(97689),o=a(l);return(0,n.jsx)(t,{...r,params:o})}}("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)},27201,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return a}});let n=e.r(43476),a=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})}]);
@@ -0,0 +1 @@
1
+  [data-theme=dark]{--chat-bg-secondary:#1e293b;--chat-bg-tertiary:#334155;--chat-border-color:#ffffff14}.chat-messages{flex-direction:column;flex:1;gap:16px;padding:20px 24px;display:flex;overflow-y:auto}.chat-messages-empty{color:var(--text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}.chat-messages-empty .empty-icon{background:var(--bg-tertiary);width:64px;height:64px;color:var(--text-muted);border-radius:16px;justify-content:center;align-items:center;display:flex}.chat-messages-empty p{font-size:14px}.chat-message{flex-direction:column;max-width:70%;animation:.2s fadeIn;display:flex}.chat-message.self{align-self:flex-end;align-items:flex-end}.chat-message.self .message-bubble{background:color-mix(in srgb, var(--accent-blue) 12%, var(--bg-secondary));border:1px solid color-mix(in srgb, var(--accent-blue) 20%, var(--border-color));border-radius:18px 18px 4px}.chat-message.other{align-self:flex-start;align-items:flex-start}.chat-message.other .message-bubble{background:var(--bg-tertiary);border-radius:18px 18px 18px 4px}.chat-message .message-author{color:var(--text-muted);margin-bottom:4px;padding:0 12px;font-size:11px}.chat-message .message-bubble{word-break:break-word;padding:12px 16px;font-size:14px;line-height:1.5;box-shadow:0 1px 2px #0000000d}.chat-message .message-time{color:var(--text-muted);margin-top:4px;padding:0 12px;font-size:10px}.chat-message.pending .message-bubble{opacity:.6}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.chat-input-area{border-top:1px solid var(--border-color);background:var(--bg-secondary);gap:12px;padding:16px 24px;display:flex}.chat-input-area .chat-input{border:1.5px solid var(--border-color);background:var(--bg-primary);color:var(--text-primary);border-radius:24px;outline:none;flex:1;padding:12px 18px;font-size:14px;transition:border-color .15s}.chat-input-area .chat-input::placeholder{color:var(--text-muted)}.chat-input-area .chat-input:focus{border-color:var(--accent-blue)}.chat-input-area .send-btn{background:var(--accent-blue);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;transition:all .15s;display:flex}.chat-input-area .send-btn:hover:not(:disabled){background:color-mix(in srgb, var(--accent-blue) 85%, black);transform:scale(1.05)}.chat-input-area .send-btn:disabled{opacity:.5;cursor:not-allowed}.chat-toast{z-index:200;background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border-color);border-radius:12px;padding:12px 24px;font-size:13px;font-weight:500;animation:.3s toastIn;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 10px 40px #0003}@keyframes toastIn{0%{opacity:0;transform:translate(-50%)translateY(20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}.chat-welcome{text-align:center;background:var(--bg-primary);flex-direction:column;flex:1;justify-content:center;align-items:center;padding:40px;display:flex}.chat-welcome .welcome-icon{background:linear-gradient(135deg, color-mix(in srgb, var(--accent-blue) 15%, var(--bg-secondary)), color-mix(in srgb, var(--accent-blue) 5%, var(--bg-tertiary)));width:80px;height:80px;color:var(--accent-blue);box-shadow:0 10px 40px color-mix(in srgb, var(--accent-blue) 20%, transparent);border-radius:20px;justify-content:center;align-items:center;margin-bottom:20px;display:flex}.chat-welcome h2{margin-bottom:8px;font-size:22px;font-weight:700}.chat-welcome p{color:var(--text-secondary);max-width:320px;font-size:14px;line-height:1.6}.create-channel-btn{border:1.5px dashed var(--border-color);color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;gap:6px;margin:8px;padding:10px;font-size:13px;font-weight:500;transition:all .15s;display:flex}.create-channel-btn:hover{border-color:var(--accent-blue);color:var(--accent-blue);background:color-mix(in srgb, var(--accent-blue) 5%, transparent)}.peer-info{color:var(--text-secondary);align-items:center;gap:8px;font-size:11px;display:flex}.peer-info .peer-dot{background:var(--success);border-radius:50%;width:6px;height:6px}.peer-info .peer-id{text-overflow:ellipsis;white-space:nowrap;flex:1;font-family:monospace;overflow:hidden}.back-btn{cursor:pointer;width:32px;height:32px;color:var(--text-secondary);background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;transition:background .15s;display:flex}.back-btn:hover{background:var(--bg-tertiary)}.chat-sidebar-overlay{display:none}@media (max-width:768px){.chat-sidebar{z-index:50;transition:left .3s;position:fixed;top:0;bottom:0;left:-240px}.chat-sidebar.open{left:0}.chat-sidebar-overlay{z-index:40;opacity:0;pointer-events:none;background:#00000080;transition:opacity .3s;display:block;position:fixed;inset:0}.chat-sidebar-overlay.visible{opacity:1;pointer-events:auto}.chat-messages{padding:16px}.chat-message{max-width:85%}.chat-input-area{padding:12px 16px}.sidebar-nav-btn .leave-channel-btn{opacity:1}}.leave-channel-btn{opacity:0;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;margin-left:auto;padding:4px;transition:opacity .15s,color .15s;display:flex}.sidebar-nav-btn:hover .leave-channel-btn{opacity:1}.leave-channel-btn:hover{color:var(--danger);background:color-mix(in srgb, var(--danger) 10%, transparent)}
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33919,e=>{"use strict";var t=e.i(43476),a=e.i(71645),n=e.i(86311),s=e.i(75254);let i=(0,s.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),c=(0,s.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),l=(0,s.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var r=e.i(97250),o=e.i(91799),d=e.i(37727),m=e.i(92161);e.i(37821);var h=e.i(15824),u=e.i(71560),p=e.i(88614);let f=(e,t=100,a=0)=>p.api.get(`api/channels/${encodeURIComponent(e)}/messages?limit=${t}&offset=${a}`).json(),x=e=>p.api.get(`api/channels/${encodeURIComponent(e)}/peers`).json();e.s(["default",0,function(){let[e,s]=(0,a.useState)([]),[j,g]=(0,a.useState)(null),[b,N]=(0,a.useState)([]),[v,y]=(0,a.useState)([]),[w,S]=(0,a.useState)(""),[k,$]=(0,a.useState)(!1),[C,z]=(0,a.useState)(""),[M,R]=(0,a.useState)(""),[E,I]=(0,a.useState)(!1),[T,U]=(0,a.useState)(!1),[P,O]=(0,a.useState)(!1),[D,L]=(0,a.useState)(!1),[A,J]=(0,a.useState)(!1),[K,q]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=localStorage.getItem("theme");("dark"===e||!e&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&U(!0)},[]),(0,a.useEffect)(()=>{document.documentElement.setAttribute("data-theme",T?"dark":"light"),localStorage.setItem("theme",T?"dark":"light")},[T]);let B=(0,a.useRef)(null),F=(0,a.useRef)(null),W=(0,a.useRef)(null),H=(0,a.useRef)(null),V=(0,a.useRef)(!1);(0,a.useEffect)(()=>{W.current=j},[j]),(0,a.useEffect)(()=>{F.current?.scrollIntoView({behavior:"smooth"})},[b]),(0,a.useEffect)(()=>{p.api.get("api/peer-id").json().then(e=>z(e.peerId)).catch(()=>{})},[]);let X=(0,a.useRef)(null);async function G(e){try{let t=await f(e);N(e=>{let a=t.filter(t=>{let a=t.id||`${t.author}-${t.timestamp}`;return!e.some(e=>(e.id||`${e.author}-${e.timestamp}`)===a)});return 0===a.length?e:[...e,...a]});let a=await x(e);y(a)}catch{}}function Q(){p.api.get("api/channels").json().then(s).catch(()=>{})}function Y(e,t){B.current&&B.current.readyState===WebSocket.OPEN&&B.current.send(JSON.stringify({event:e,data:t}))}function Z(e){if(!C){X.current=e;return}Y("channel:subscribe",{channel:e})}function _(e){Y("channel:unsubscribe",{channel:e})}async function ee(e){W.current&&_(W.current.name),g(e),I(!1),Z(e.name),window.history.pushState({},"",`?channel=${encodeURIComponent(e.name)}`);try{let t=await f(e.name);N(t);let a=await x(e.name);y(a)}catch{R("加载频道失败"),setTimeout(()=>R(""),3e3)}}async function et(e,t){if(t&&t.stopPropagation(),!D){L(!0),_(e);try{let t;if(await (t=e,p.api.delete(`api/channels/${encodeURIComponent(t)}`).json()),j?.name===e){g(null),N([]),y([]);let e=new URL(window.location.href);e.searchParams.delete("channel"),window.history.pushState({},"",e.pathname)}Q(),J(!1),q(null)}catch(e){R(e.message),setTimeout(()=>R(""),3e3)}finally{L(!1)}}}async function ea(e){if(e.trim()&&!P){O(!0);try{let t;await (t=e.trim(),p.api.post("api/channels",{json:{name:t,type:void 0}}).json()),$(!1),Q()}catch(e){R(e.message),setTimeout(()=>R(""),3e3)}finally{O(!1)}}}async function en(){if(!w.trim()||!j)return;let e=w.trim();S("");let t=`${C}-${Date.now()}-${Math.random().toString(36).slice(2)}`,a={id:t,author:C,authorName:"Me",content:e,timestamp:Date.now(),pending:!0};N(e=>[...e,a]);try{let a,n,s=await (a=j.name,n=e,p.api.post(`api/channels/${encodeURIComponent(a)}/messages`,{json:{content:n}}).json());N(e=>e.map(e=>e.id===t?{...s.message,id:s.message.id||s.message.timestamp}:e))}catch(e){N(e=>e.filter(e=>e.id!==t)),R(e.message),setTimeout(()=>R(""),3e3)}}return(0,a.useEffect)(()=>{if(C&&X.current){let e=X.current;X.current=null,Z(e)}},[C]),(0,a.useEffect)(()=>(!function e(){location.protocol;let t=new WebSocket(`${"https:"===location.protocol?"wss:":"ws:"}//${location.host}/ws`);t.onopen=()=>{V.current=!0,C&&1===t.readyState&&t.send(JSON.stringify({event:"register",data:{peerId:C}})),W.current&&(Z(W.current.name),G(W.current.name))},t.onmessage=e=>{try{let{event:n,data:s}=JSON.parse(e.data);var t=n,a=s;let i=W.current;switch(t){case"channel:message":i&&a.channel===i.name&&(N(e=>{let t=a.message.id||`${a.message.author}-${a.message.timestamp}`,n=e.findIndex(e=>e.pending&&e.content===a.message.content&&e.author===a.message.author);if(-1!==n){let s=[...e];return s[n]={...a.message,id:t},s}return e.some(e=>e.id===t||e.timestamp===a.message.timestamp&&e.content===a.message.content&&e.author===a.message.author)?e:[...e,{...a.message,id:t}]}),x(i.name).then(y).catch(()=>{}));break;case"channel:peer:online":case"channel:peer:offline":i&&x(i.name).then(y).catch(()=>{});break;case"channel:joined":case"channel:left":Q()}}catch{}},t.onclose=()=>{V.current=!1,H.current=setTimeout(e,3e3)},t.onerror=()=>{t.close()},B.current=t}(),()=>{H.current&&clearTimeout(H.current),B.current&&B.current.close()}),[]),(0,a.useEffect)(()=>{C&&B.current&&V.current&&B.current.send(JSON.stringify({event:"register",data:{peerId:C}}))},[C]),(0,a.useEffect)(()=>{Q()},[]),(0,a.useEffect)(()=>{let t=new URLSearchParams(window.location.search).get("channel");if(t&&e.length>0){let a=e.find(e=>e.name===t);a&&j?.name!==a.name&&ee(a)}},[e]),(0,a.useEffect)(()=>{if(!j&&e.length>0){let t=new URLSearchParams(window.location.search).get("channel");if(t){let a=e.find(e=>e.name===t);a&&ee(a)}}},[j,e]),(0,t.jsxs)("div",{className:"app-layout",children:[(0,t.jsx)("div",{className:`sidebar-overlay ${E?"visible":""}`,onClick:()=>I(!1)}),(0,t.jsxs)("div",{className:`sidebar ${E?"open":""}`,children:[(0,t.jsx)("div",{className:"sidebar-header",children:(0,t.jsx)("button",{className:"back-btn",onClick:()=>window.location.href="/",title:"返回首页",children:(0,t.jsx)(l,{size:18})})}),(0,t.jsx)("nav",{className:"sidebar-nav",children:0===e.length?(0,t.jsx)("div",{style:{padding:"40px 20px",textAlign:"center",color:"var(--text-muted)"},children:(0,t.jsx)("p",{children:"暂无频道"})}):e.map(e=>(0,t.jsxs)("div",{className:`sidebar-nav-btn ${j?.name===e.name?"active":""}`,onClick:()=>ee(e),role:"button",tabIndex:0,onKeyDown:t=>{"Enter"===t.key&&ee(e)},children:[(0,t.jsx)(n.MessageSquare,{size:16}),(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("button",{className:"leave-channel-btn",onClick:t=>{t.stopPropagation(),q(e),J(!0)},title:"退出频道",children:(0,t.jsx)(d.X,{size:14})})]},e.name))}),(0,t.jsxs)("button",{className:"create-channel-btn",onClick:()=>$(!0),children:[(0,t.jsx)(c,{size:16}),"加入频道"]}),(0,t.jsx)("div",{className:"sidebar-footer",children:(0,t.jsxs)("div",{className:"peer-info",children:[(0,t.jsx)("div",{className:"peer-dot"}),(0,t.jsx)("span",{className:"peer-id",title:C,children:C?`${C.slice(0,12)}...`:"连接中..."})]})})]}),(0,t.jsx)("div",{className:"main-content",children:j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:"app-header",children:[(0,t.jsxs)("div",{className:"header-left",children:[(0,t.jsx)("button",{onClick:()=>I(!0),className:"icon-btn mobile-menu-btn",children:(0,t.jsx)(m.Menu,{size:18})}),(0,t.jsx)("h2",{className:"header-title",children:j.name})]}),(0,t.jsx)("div",{className:"header-right",children:(0,t.jsx)("button",{className:"icon-btn",onClick:()=>U(!T),title:"切换主题",children:T?(0,t.jsx)(r.Sun,{size:16}):(0,t.jsx)(o.Moon,{size:16})})})]}),(0,t.jsxs)("div",{className:"chat-messages",children:[0===b.length?(0,t.jsxs)("div",{className:"chat-messages-empty",children:[(0,t.jsx)("div",{className:"empty-icon",children:(0,t.jsx)(n.MessageSquare,{size:28})}),(0,t.jsx)("p",{children:"暂无消息,开始聊天吧!"})]}):b.map(e=>(0,t.jsxs)("div",{className:`chat-message ${e.author===C?"self":"other"} ${e.pending?"pending":""}`,children:[e.author!==C&&(0,t.jsx)("span",{className:"message-author",children:e.authorName||e.author?.slice(0,8)||"Unknown"}),(0,t.jsx)("div",{className:"message-bubble",children:e.content}),(0,t.jsx)("span",{className:"message-time",children:new Date(e.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})})]},e.id||`${e.author}-${e.timestamp}`)),(0,t.jsx)("div",{ref:F})]}),(0,t.jsxs)("div",{className:"chat-input-area",children:[(0,t.jsx)("input",{type:"text",className:"chat-input",placeholder:"输入消息...",value:w,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&w.trim()&&en()}}),(0,t.jsx)("button",{className:"send-btn",onClick:en,disabled:!w.trim(),children:(0,t.jsx)(i,{size:18})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:"app-header",children:[(0,t.jsxs)("div",{className:"header-left",children:[(0,t.jsx)("button",{onClick:()=>I(!0),className:"icon-btn mobile-menu-btn",children:(0,t.jsx)(m.Menu,{size:18})}),(0,t.jsx)("h2",{className:"header-title",children:"聊天"})]}),(0,t.jsx)("div",{className:"header-right",children:(0,t.jsx)("button",{className:"icon-btn",onClick:()=>U(!T),title:"切换主题",children:T?(0,t.jsx)(r.Sun,{size:16}):(0,t.jsx)(o.Moon,{size:16})})})]}),(0,t.jsxs)("div",{className:"chat-welcome",children:[(0,t.jsx)("div",{className:"welcome-icon",children:(0,t.jsx)(n.MessageSquare,{size:36})}),(0,t.jsx)("h2",{children:"选择频道"}),(0,t.jsx)("p",{children:"从左侧边栏选择一个频道开始聊天,或创建一个新频道"})]})]})}),k&&(0,t.jsx)(h.InputModal,{title:"加入频道",placeholder:"频道名",confirmText:"加入",onConfirm:ea,onClose:()=>$(!1),isLoading:P,loadingText:"加入中..."}),A&&K&&(0,t.jsx)(u.ConfirmModal,{title:"退出频道",message:`确定要退出频道 "${K.name}" 吗?`,confirmText:D?"退出中...":"退出",onConfirm:()=>et(K.name),onClose:()=>{J(!1),q(null)},danger:!0}),M&&(0,t.jsx)("div",{className:"chat-toast",children:M})]})}],33919)}]);
@@ -0,0 +1,31 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35451,(e,t,r)=>{var n={229:function(e){var t,r,n,o=e.exports={};function u(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:u}catch(e){t=u}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var a=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?a=n.concat(a):c=-1,a.length&&d())}function d(){if(!l){var e=s(f);l=!0;for(var t=a.length;t;){for(n=a,a=[];++c<t;)n&&n[c].run();c=-1,t=a.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new p(e,t)),1!==a.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},i=!0;try{n[e](r,r.exports,u),i=!1}finally{i&&delete o[e]}return r.exports}u.ab="/ROOT/node_modules/next/dist/compiled/process/",t.exports=u(229)},47167,(e,t,r)=>{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(35451)},45689,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var u in r={},t)"key"!==u&&(r[u]=t[u]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},43476,(e,t,r)=>{"use strict";t.exports=e.r(45689)},50740,(e,t,r)=>{"use strict";var n=e.i(47167),o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),h=Symbol.for("react.view_transition"),g=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,v={};function _(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}function S(){}function j(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=_.prototype;var w=j.prototype=new S;w.constructor=j,x(w,_.prototype),w.isPureReactComponent=!0;var E=Array.isArray;function T(){}var O={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function R(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var H=/\/+/g;function A(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function M(e,t,r){if(null==e)return e;var n=[],i=0;return!function e(t,r,n,i,s){var a,l,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case u:d=!0;break;case y:return e((d=t._init)(t._payload),r,n,i,s)}}if(d)return s=s(t),d=""===i?"."+A(t,0):i,E(s)?(n="",null!=d&&(n=d.replace(H,"$&/")+"/"),e(s,r,n,"",function(e){return e})):null!=s&&(C(s)&&(a=s,l=n+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(H,"$&/")+"/")+d,s=R(a.type,l,a.props)),r.push(s)),1;d=0;var p=""===i?".":i+":";if(E(t))for(var b=0;b<t.length;b++)f=p+A(i=t[b],b),d+=e(i,r,n,f,s);else if("function"==typeof(b=null===(c=t)||"object"!=typeof c?null:"function"==typeof(c=g&&c[g]||c["@@iterator"])?c:null))for(t=b.call(t),b=0;!(i=t.next()).done;)f=p+A(i=i.value,b++),d+=e(i,r,n,f,s);else if("object"===f){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,i,s);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}(e,n,"","",function(e){return t.call(r,e,i++)}),n}function P(e){if(-1===e._status){var t=(0,e._result)();t.then(function(r){(0===e._status||-1===e._status)&&(e._status=1,e._result=r,void 0===t.status&&(t.status="fulfilled",t.value=r))},function(r){(0===e._status||-1===e._status)&&(e._status=2,e._result=r,void 0===t.status&&(t.status="rejected",t.reason=r))}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof n.default&&"function"==typeof n.default.emit)return void n.default.emit("uncaughtException",e);console.error(e)};function $(e){var t=O.T,r={};r.types=null!==t?t.types:null,O.T=r;try{var n=e(),o=O.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(T,I)}catch(e){I(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),O.T=t}}function L(e){var t=O.T;if(null!==t){var r=t.types;null===r?t.types=[e]:-1===r.indexOf(e)&&r.push(e)}else $(L.bind(null,e))}r.Activity=b,r.Children={map:M,forEach:function(e,t,r){M(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=_,r.Fragment=i,r.Profiler=a,r.PureComponent=j,r.StrictMode=s,r.Suspense=d,r.ViewTransition=h,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,r.__COMPILER_RUNTIME={__proto__:null,c:function(e){return O.H.useMemoCache(e)}},r.addTransitionType=L,r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=x({},e.props),o=e.key;if(null!=t)for(u in void 0!==t.key&&(o=""+t.key),t)k.call(t,u)&&"key"!==u&&"__self"!==u&&"__source"!==u&&("ref"!==u||void 0!==t.ref)&&(n[u]=t[u]);var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){for(var i=Array(u),s=0;s<u;s++)i[s]=arguments[s+2];n.children=i}return R(e.type,o,n)},r.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:l,_context:e},e},r.createElement=function(e,t,r){var n,o={},u=null;if(null!=t)for(n in void 0!==t.key&&(u=""+t.key),t)k.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var i=arguments.length-2;if(1===i)o.children=r;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(n in i=e.defaultProps)void 0===o[n]&&(o[n]=i[n]);return R(e,u,o)},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:f,render:e}},r.isValidElement=C,r.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:P}},r.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},r.startTransition=$,r.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},r.use=function(e){return O.H.use(e)},r.useActionState=function(e,t,r){return O.H.useActionState(e,t,r)},r.useCallback=function(e,t){return O.H.useCallback(e,t)},r.useContext=function(e){return O.H.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e,t){return O.H.useDeferredValue(e,t)},r.useEffect=function(e,t){return O.H.useEffect(e,t)},r.useEffectEvent=function(e){return O.H.useEffectEvent(e)},r.useId=function(){return O.H.useId()},r.useImperativeHandle=function(e,t,r){return O.H.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return O.H.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return O.H.useLayoutEffect(e,t)},r.useMemo=function(e,t){return O.H.useMemo(e,t)},r.useOptimistic=function(e,t){return O.H.useOptimistic(e,t)},r.useReducer=function(e,t,r){return O.H.useReducer(e,t,r)},r.useRef=function(e){return O.H.useRef(e)},r.useState=function(e){return O.H.useState(e)},r.useSyncExternalStore=function(e,t,r){return O.H.useSyncExternalStore(e,t,r)},r.useTransition=function(){return O.H.useTransition()},r.version="19.3.0-canary-3f0b9e61-20260317"},71645,(e,t,r)=>{"use strict";t.exports=e.r(50740)},55682,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return l},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let u=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw u}getStore(){}run(){throw u}exit(){throw u}enterWith(){throw u}static bind(e){return e}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return s?new s:new i}function l(e){return s?s.bind(e):i.bind(e)}function c(){return s?s.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},63599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(42344)},12354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n="u"<typeof window?e.r(63599).workAsyncStorage:void 0;function o({error:e}){if(n){let t=n.getStore();if(t?.isStaticGeneration)throw e&&console.error(e),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)},18576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return a},errorStyles:function(){return i},errorThemeCss:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(55682);let u=e.r(43476);e.r(71645);let i={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},s=`
2
+ :root {
3
+ --next-error-bg: #fff;
4
+ --next-error-text: #171717;
5
+ --next-error-title: #171717;
6
+ --next-error-message: #171717;
7
+ --next-error-digest: #666666;
8
+ --next-error-btn-text: #fff;
9
+ --next-error-btn-bg: #171717;
10
+ --next-error-btn-border: none;
11
+ --next-error-btn-secondary-text: #171717;
12
+ --next-error-btn-secondary-bg: transparent;
13
+ --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
14
+ }
15
+ @media (prefers-color-scheme: dark) {
16
+ :root {
17
+ --next-error-bg: #0a0a0a;
18
+ --next-error-text: #ededed;
19
+ --next-error-title: #ededed;
20
+ --next-error-message: #ededed;
21
+ --next-error-digest: #a0a0a0;
22
+ --next-error-btn-text: #0a0a0a;
23
+ --next-error-btn-bg: #ededed;
24
+ --next-error-btn-border: none;
25
+ --next-error-btn-secondary-text: #ededed;
26
+ --next-error-btn-secondary-bg: transparent;
27
+ --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
28
+ }
29
+ }
30
+ body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
31
+ `.replace(/\n\s*/g,"");function a(){return(0,u.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:i.icon,children:(0,u.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("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)},68027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),e.r(55682);let n=e.r(43476);e.r(71645);let o=e.r(12354),u=e.r(18576),i=function({error:e}){let t=e?.digest,r=!!t;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:u.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:u.errorStyles.container,children:(0,n.jsxs)("div",{style:u.errorStyles.card,children:[(0,n.jsx)(u.WarningIcon,{}),(0,n.jsx)("h1",{style:u.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:u.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:u.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:u.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:u.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:u.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:u.errorStyles.digestFooter,children:["ERROR ",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)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29615,e=>{"use strict";var a=e.i(43476),s=e.i(71645),t=e.i(75254);let l=(0,t.default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);var i=e.i(97250),r=e.i(91799);let n=(0,t.default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),o=(0,t.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),c=(0,t.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),d=(0,t.default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]),h=(0,t.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),m=(0,t.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),p=(0,t.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var u=e.i(86311),x=e.i(37727);let f=(0,t.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),j=(0,t.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),g=(0,t.default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),v=(0,t.default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),y=(0,t.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),b=(0,t.default)("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]),N=(0,t.default)("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]),w=(0,t.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),k=(0,t.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),C=(0,t.default)("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]),S=(0,t.default)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);var M=e.i(92161);let z=(0,t.default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);e.i(37821);var $=e.i(22893),F=e.i(86878),D=e.i(71560),L=e.i(15824),T=e.i(88614);let P={listPublishedFiles:()=>T.api.get("api/files").json(),listTrashFiles:()=>T.api.get("api/trash").json(),deletePublishedFile:e=>T.api.delete(`api/files/${e}`).json(),restoreTrashFile:e=>T.api.post(`api/trash/${e}/restore`).json(),permanentDeleteTrashFile:e=>T.api.delete(`api/trash/${e}`).json(),emptyTrash:()=>T.api.delete("api/trash").json(),toggleStar:e=>T.api.post(`api/files/${e}/star`).json(),getStorageStats:()=>T.api.get("api/storage").json(),getConfig:()=>T.api.get("api/config").json(),getDataPath:()=>T.api.get("api/config/data-path").json(),saveConfig:e=>T.api.post("api/config",{json:e}).json(),async publishFile(e,a){let s=new FormData;s.append("file",e,a||e.name);let t=await T.api.post("api/publish",{body:s});if(!t.ok)throw Error((await t.json().catch(()=>({error:t.statusText}))).error||"Request failed");return t.json()},downloadFile:e=>T.api.post("api/download",{json:{link:e}}).json(),cancelDownload:e=>T.api.post("api/download/cancel",{json:{taskId:e}}).json(),getFileDownloadUrl:e=>`http://localhost:1976/api/files/${e}/download`,moveFile:(e,a)=>T.api.post("api/move",{json:{cid:e,newFileName:a}}).json(),renameFolder:(e,a)=>T.api.post("api/folder/rename",{json:{oldPath:e,newPath:a}}).json()};function E(e){return!e||e<=0?"0 B":e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:e<0x40000000?`${(e/1048576).toFixed(1)} MB`:`${(e/0x40000000).toFixed(2)} GB`}function O(e){let a=e.lastIndexOf("/");return -1===a?{folder:"",name:e}:{folder:e.substring(0,a),name:e.substring(a+1)}}function B(e){let a=e.split(".").pop().toLowerCase();return["jpg","jpeg","png","gif","webp","svg","bmp","ico","tiff","heic","heif"].includes(a)?"image":["mp4","webm","mov","avi","mkv","flv","wmv","m4v","mpeg","3gp"].includes(a)?"video":["mp3","wav","ogg","flac","aac","m4a","wma","opus"].includes(a)?"audio":["txt","md","js","ts","jsx","tsx","css","scss","less","json","xml","html","htm","yaml","yml","toml","ini","cfg","conf","log","sh","bash","py","rb","go","rs","java","c","cpp","h","hpp","cs","php","sql","graphql","env","gitignore","dockerfile","readme"].includes(a)?"text":"file"}function I({onClose:e,onShutdown:t}){let[l,i]=(0,s.useState)(0),[r,n]=(0,s.useState)(""),[o,c]=(0,s.useState)(!1),[d,h]=(0,s.useState)(!1),[m,p]=(0,s.useState)("");(0,s.useEffect)(()=>{P.getDataPath().then(e=>{p(e.dataPath||"")}).catch(()=>{})},[]);let u=[{title:"欢迎使用",content:"拖拽文件到上传区,或点击选择文件。上传后复制链接发给朋友即可。"},{title:"下载文件",content:"点击「下载文件」,粘贴分享链接即可从 P2P 网络下载文件。"},{title:"设置存储位置",content:"选择文件存储的文件夹位置(可选,默认使用系统盘)",isOptional:!0}],x=u[l],j=async()=>{if(r.trim()){c(!0);try{await P.saveConfig({dataPath:r.trim()})}catch(e){console.error("Save path error:",e),c(!1);return}c(!1),h(!0)}},g=l===u.length-1,v=2===l;return(0,a.jsx)($.ModalOverlay,{onClose:e,closeOnOverlayClick:!1,children:(0,a.jsx)("div",{className:"welcome-modal",onClick:e=>e.stopPropagation(),children:d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"welcome-success-icon",children:(0,a.jsx)(f,{size:24,color:"#22c55e"})}),(0,a.jsx)("h2",{children:"设置已保存"}),(0,a.jsx)("p",{children:"存储位置已更改,需要重启应用生效。"}),(0,a.jsx)("button",{onClick:t,className:"btn primary",children:"好的"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{children:x.title}),(0,a.jsx)("p",{children:x.content}),v&&(0,a.jsxs)("div",{className:"welcome-path-section",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"path-label",children:"当前存储位置"}),(0,a.jsx)("div",{className:"path-value",children:m||"未设置"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"path-label",children:"自定义位置"}),(0,a.jsx)("input",{type:"text",value:r,onChange:e=>n(e.target.value),placeholder:"如 D:\\",className:"path-input"}),(0,a.jsx)("div",{className:"path-hint",children:"不填则使用当前位置,修改后需重启应用"})]})]}),(0,a.jsx)("div",{className:"welcome-steps",children:u.map((e,s)=>(0,a.jsx)("div",{className:`welcome-step-dot ${s===l?"active":""}`},s))}),(0,a.jsxs)("div",{className:"welcome-actions",children:[v&&(0,a.jsx)("button",{onClick:e,className:"btn secondary",children:"跳过"}),(0,a.jsx)("button",{onClick:()=>{v&&r?j():g?e():i(l+1)},disabled:v&&o,className:"btn primary",style:{opacity:v&&o?.6:1,cursor:v&&o?"not-allowed":"pointer"},children:v?o?"保存中...":"保存并完成":g?"开始使用":"下一步"})]})]})})})}function A({onClose:e,addToast:t,isDarkMode:l,handleShutdown:i}){let[r,n]=(0,s.useState)(""),[o,c]=(0,s.useState)(""),[d,h]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!0),[u,f]=(0,s.useState)(!1);(0,s.useEffect)(()=>{P.getDataPath().then(e=>{let a=e.dataPath||"";n(a),c(a),h(e.isDefault||!1),p(!1)}).catch(()=>p(!1))},[]);let j=async()=>{if(r.trim()&&r.trim()!==o){f(!0);try{await P.saveConfig({dataPath:r.trim()}),T.api.post("api/shutdown"),window.close()}catch(e){t(e.message||"保存失败","error"),f(!1)}}},g=async()=>{if(""!==o){f(!0);try{await P.saveConfig({resetStorage:!0}),T.api.post("api/shutdown"),window.close()}catch(e){t(e.message||"操作失败","error"),f(!1)}}},v=r.trim()!==o;return(0,a.jsx)($.ModalOverlay,{onClose:e,children:(0,a.jsxs)("div",{className:"settings-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h2",{className:"settings-title",children:"设置"}),(0,a.jsx)("button",{onClick:e,className:"modal-close-btn",children:(0,a.jsx)(x.X,{size:18})})]}),(0,a.jsxs)("div",{style:{marginBottom:20},children:[(0,a.jsx)("label",{className:"settings-label",children:"存储位置"}),(0,a.jsxs)("div",{className:"settings-row",children:[(0,a.jsx)("input",{type:"text",value:r,onChange:e=>n(e.target.value),placeholder:"如 D:\\most-data",disabled:m,className:"settings-input"}),(0,a.jsx)("button",{onClick:j,disabled:u||m||!v,className:"btn primary",style:{whiteSpace:"nowrap",opacity:u||m||!v?.5:1},children:u?"保存中...":"保存"}),!d&&(0,a.jsx)("button",{onClick:g,disabled:u||m,className:"btn secondary",style:{whiteSpace:"nowrap",opacity:u||m?.5:1},children:"恢复默认"})]}),(0,a.jsx)("p",{className:"settings-hint",children:"修改后需重启应用"})]}),(0,a.jsxs)("div",{className:"settings-divider",children:[(0,a.jsxs)("div",{className:"settings-about",children:[(0,a.jsx)("h3",{children:"MostBox"}),(0,a.jsx)("p",{children:"版本 0.0.1"})]}),(0,a.jsx)("p",{style:{fontSize:12,textAlign:"center",color:"var(--text-secondary)"},children:"Hyperswarm · Hyperdrive · IPFS"})]}),(0,a.jsxs)("button",{onClick:()=>{e(),i()},className:"btn danger full",style:{marginTop:20},children:[(0,a.jsx)(C,{size:16})," 关闭服务"]})]})})}function V(e){return e?[{path:"",name:"全部内容"},...e.split("/").filter(Boolean).map((e,a,s)=>({path:s.slice(0,a+1).join("/"),name:e}))]:[]}let H=(e,a)=>async()=>{try{e(await a())}catch(e){console.error(e)}};function U({file:e,isSelected:s,isDarkMode:t,onSelect:l,onPreview:i}){let r=B(e.fileName);return(0,a.jsxs)("div",{"data-id":e.cid,onClick:()=>l(e.cid),onDoubleClick:()=>i(e),className:`card ${s?"selected":""}`,children:[(0,a.jsxs)("div",{className:`card-icon ${e.starred?"starred":"file"}`,children:["image"===r&&(0,a.jsx)(n,{size:24,color:"#fff"}),"video"===r&&(0,a.jsx)(d,{size:24,color:"#fff"}),"audio"===r&&(0,a.jsx)(h,{size:24,color:"#fff"}),"file"===r&&(0,a.jsx)(p,{size:24,color:"#fff"})]}),(0,a.jsx)("p",{className:"card-name",children:O(e.fileName).name})]})}function q({folder:e,isDarkMode:s,onClick:t}){return(0,a.jsxs)("div",{onClick:t,className:"card",children:[(0,a.jsx)("div",{className:"card-icon folder",children:(0,a.jsx)(c,{size:28,color:"#fff"})}),(0,a.jsx)("p",{className:"card-name",children:e.name})]})}function R({items:e,allFolders:t,currentPath:l,isDarkMode:i,onMove:r,onClose:n}){let[o,d]=(0,s.useState)(""),[h,m]=(0,s.useState)(l),p=V(o);return(0,a.jsx)($.ModalOverlay,{onClose:n,children:(0,a.jsxs)("div",{className:"move-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"移动到"}),(0,a.jsx)("button",{onClick:n,className:"modal-close-btn",children:(0,a.jsx)(x.X,{size:18})})]}),(0,a.jsxs)("p",{style:{fontSize:12,color:"var(--text-secondary)",marginBottom:12},children:["已选 ",e.length," 个项目"]}),(0,a.jsx)("div",{className:"move-new-folder",children:(0,a.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),placeholder:"输入路径创建嵌套文件夹"})}),(0,a.jsx)("p",{style:{fontSize:11,color:"var(--text-muted)",marginBottom:12},children:"如 图片/壁纸"}),(0,a.jsx)("div",{className:"move-breadcrumb",children:p.map((e,t)=>(0,a.jsxs)(s.default.Fragment,{children:[t>0&&(0,a.jsx)("span",{style:{color:"var(--text-secondary)"},children:"/"}),(0,a.jsx)("button",{onClick:()=>{d(e.path),m(e.path)},className:`move-breadcrumb-btn ${o===e.path&&!h?"active":""}`,children:e.name},e.path)]},e.path))}),(0,a.jsxs)("div",{className:"move-folder-list",children:[0===t.filter(e=>{if(""===o)return!e.path.includes("/");let a=o+"/";return!!e.path.startsWith(a)&&!e.path.substring(a.length).includes("/")}).length&&(0,a.jsx)("p",{style:{fontSize:12,color:"var(--text-secondary)",textAlign:"center",padding:16},children:"该目录下没有子文件夹"}),t.filter(e=>{if(""===o)return!e.path.includes("/");let a=o+"/";return!!e.path.startsWith(a)&&!e.path.substring(a.length).includes("/")}).map(e=>(0,a.jsxs)("button",{onClick:()=>d(e.path),className:`move-folder-item ${o===e.path&&!h?"selected":""}`,children:[(0,a.jsx)(c,{size:16}),(0,a.jsx)("span",{children:e.name})]},e.path))]}),(0,a.jsxs)("div",{className:"modal-actions",children:[(0,a.jsx)("button",{onClick:n,className:"btn secondary",children:"取消"}),(0,a.jsx)("button",{onClick:()=>{r(o||h.trim())},className:"btn primary",children:"移动"})]})]})})}e.s(["default",0,function(){let e,t,n,[c,d]=(0,s.useState)([]),[C,X]=(0,s.useState)([]),[W,_]=(0,s.useState)(null),[K,G]=(0,s.useState)("all"),[J,Z]=(0,s.useState)(!1),[Q,Y]=(0,s.useState)(!1),[ee,ea]=(0,s.useState)([]),[es,et]=(0,s.useState)(null),[el,ei]=(0,s.useState)(null),[er,en]=(0,s.useState)(!1),[eo,ec]=(0,s.useState)(""),[ed,eh]=(0,s.useState)([]),[em,ep]=(0,s.useState)([]),[eu,ex]=(0,s.useState)(!1),[ef,ej]=(0,s.useState)(""),[eg,ev]=(0,s.useState)(!1),[ey,eb]=(0,s.useState)(0),[eN,ew]=(0,s.useState)({total:0,used:0,free:0}),[ek,eC]=(0,s.useState)(!1),[eS,eM]=(0,s.useState)(null),[ez,e$]=(0,s.useState)(null),[eF,eD]=(0,s.useState)(!1),[eL,eT]=(0,s.useState)(null),[eP,eE]=(0,s.useState)(()=>!localStorage.getItem("mostbox_welcomed")),[eO,eB]=(0,s.useState)(!1),[eI,eA]=(0,s.useState)(!1),[eV,eH]=(0,s.useState)(""),[eU,eq]=(0,s.useState)(!1),[eR,eX]=(0,s.useState)(!1),[eW,e_]=(0,s.useState)(!1),eK=(0,s.useRef)(null);(0,s.useRef)(null),(0,s.useEffect)(()=>{es&&("image"===es.subtype||"video"===es.subtype)&&(eX(!0),e_(!1)),es&&"text"===es.subtype&&(eH(""),as(es.cid))},[es?.cid]),(0,s.useEffect)(()=>{let e=eK.current;if(!e)return;let a=()=>eX(!1),s=()=>eX(!1);return es?.subtype==="image"?e.complete?eX(!1):(e.addEventListener("load",a),e.addEventListener("error",s)):es?.subtype==="video"&&(e.addEventListener("canplay",a),e.addEventListener("error",s)),()=>{e.removeEventListener("load",a),e.removeEventListener("error",s),e.removeEventListener("canplay",a)}},[es]);let eG=W||"",eJ=(e=new Set,c.forEach(a=>{let{folder:s}=O(a.fileName),t=s.split("/").filter(Boolean),l="";for(let a of t)l+=(l?"/":"")+a,e.add(l)}),[...e].sort()),{folders:eZ,files:eQ}={folders:(t=eG?eG+"/":"",eJ.filter(e=>{let a=e.toLowerCase().startsWith(t.toLowerCase()),s=e.substring(t.length);return a&&!s.includes("/")}).map(e=>({name:e.substring(t.length),path:e}))),files:c.filter(e=>O(e.fileName).folder===eG)},eY=ef?c.filter(e=>O(e.fileName).name.toLowerCase().includes(ef.toLowerCase())):eQ,e0=(e,a="info")=>eh(s=>[...s,{id:Date.now(),message:e,type:a}]),e1=H(d,()=>P.listPublishedFiles().then(e=>e||[])),e2=H(X,()=>P.listTrashFiles().then(e=>e||[])),e4=H(ew,P.getStorageStats),e6=e=>{ea(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},e8=async e=>{try{await P.restoreTrashFile(e),e0("已恢复","success"),e1(),e2(),e4()}catch{e0("恢复失败","error")}},e5=async()=>{eM({title:"清空回收站",message:"确定要清空回收站吗?此操作不可恢复!",confirmText:"清空",danger:!0,onConfirm:async()=>{eM(null);try{await P.emptyTrash(),e0("回收站已清空","success"),e2(),e4()}catch{e0("清空失败","error")}}})},e3=async e=>{try{let a=await P.toggleStar(e);d(s=>s.map(s=>s.cid===e?{...s,starred:a.starred}:s)),e0(a.starred?"已收藏":"已取消收藏","success")}catch{e0("操作失败","error")}},e7=async()=>{let e="trash"===K;eM({title:e?"永久删除":"批量删除",message:e?`确定要永久删除选中的 ${ee.length} 个项目吗?此操作不可恢复!`:`确定要删除选中的 ${ee.length} 个项目吗?`,confirmText:e?"永久删除":"删除",danger:!0,onConfirm:async()=>{eM(null);try{for(let a of ee)e?await P.permanentDeleteTrashFile(a):a.startsWith("__")||await P.deletePublishedFile(a);ea([]),e0(e?"已永久删除":"已删除","success"),e1(),e2(),e4()}catch{e0("删除失败","error")}}})},e9=async e=>{try{for(let a of ee){let s=c.find(e=>e.cid===a);if(!s)continue;let{name:t}=O(s.fileName),l=e?`${e}/${t}`:t;s.fileName!==l&&await P.moveFile(a,l)}ea([]),eC(!1),e0("已移动","success"),e1()}catch{e0("移动失败","error")}},ae=e=>{let a=!!e.path,s=a?e.name:O(e.fileName).name;e$({title:a?"重命名文件夹":"重命名文件",placeholder:"请输入新名称",defaultValue:s,confirmText:"重命名",onConfirm:async t=>{if(t!==s){eD(!0);try{if(a){let a=e.path.lastIndexOf("/"),s=-1!==a?e.path.substring(0,a):"",l=s?`${s}/${t}`:t;await P.renameFolder(e.path,l),e0("已重命名","success"),e1(),ao(l)}else{let{folder:a}=O(e.fileName),s=a?`${a}/${t}`:t;await P.moveFile(e.cid,s),e0("已重命名","success"),e1()}e$(null)}catch{e0("重命名失败","error")}finally{eD(!1)}}}})},aa=async e=>{let a=eG?eG+"/":"",s=[];for(let t of Array.from(e)){let e=a+t.name;if(c.some(a=>a.fileName===e)){e0(`${t.name} 已存在`,"warning");continue}let l=`upload_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,i={id:l,fileName:t.name,progress:0,type:"upload",status:"uploading"};s.push(i),ep(e=>[...e,i]),s.length>0&&ex(!0);try{(await P.publishFile(t,e)).alreadyExists?(ep(e=>e.map(e=>e.id===l?{...e,status:"completed"}:e)),e0(`${t.name} 已存在`,"warning")):(ep(e=>e.map(e=>e.id===l?{...e,progress:100,status:"completed"}:e)),e0(`${t.name} 上传成功`,"success"))}catch(e){ep(e=>e.map(e=>e.id===l?{...e,status:"error"}:e)),e0(`上传失败: ${t.name}`,"error")}}setTimeout(()=>{ep(e=>e.filter(e=>"completed"!==e.status&&"error"!==e.status&&"cancelled"!==e.status))},3e3),e1(),e4()},as=async e=>{eq(!0);try{let a=await fetch(`http://localhost:1976/api/files/${e}/download`,{headers:{Range:"bytes=0-9999"}});if(!a.ok)throw Error("加载失败");let s=await a.text();eH(s||"(文件为空)")}catch{eH("加载失败")}eq(!1)},[at,al]=(0,s.useState)(!1),ai=async()=>{if(!eo.trim()||!eo.startsWith("most://"))return void e0("链接格式应为 most://<cid>","warning");if(!at){al(!0);try{let e=await P.downloadFile(eo);if(ec(""),en(!1),e.alreadyExists)e0(`${e.fileName} 已存在`,"warning");else{let a={id:e.taskId,fileName:"下载文件",progress:0,type:"download",status:"downloading"};ep(e=>[...e,a]),ex(!0),e0("下载已开始","info")}}catch(e){e0("下载失败","error")}finally{al(!1)}}},ar=async e=>{if("download"===e.type&&"downloading"===e.status)try{await P.cancelDownload(e.id)}catch(e){e0("取消失败","error")}},an=async e=>{try{let a=await fetch(P.getFileDownloadUrl(e.cid));if(!a.ok)throw Error("获取文件失败");let s=await a.blob();if(window.showSaveFilePicker){let a=await window.showSaveFilePicker({suggestedName:e.fileName}),t=await a.createWritable();await t.write(s),await t.close(),e0("文件已保存","success")}else{let a=URL.createObjectURL(s),t=document.createElement("a");t.href=a,t.download=e.fileName,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(a),e0("文件已下载","success")}}catch(e){"AbortError"!==e.name&&e0("保存失败: "+e.message,"error")}},ao=e=>{_(e||null),ea([])},ac=()=>{eE(!1),localStorage.setItem("mostbox_welcomed","true")};(0,s.useEffect)(()=>{location.protocol;let e=new WebSocket(`${"https:"===location.protocol?"wss:":"ws:"}//${location.host}/ws`);return e.onmessage=e=>{try{let{event:a,data:s}=JSON.parse(e.data);if("publish:success"===a||"download:success"===a){e1(),e4();let e=s.taskId||s.fileName;ep(a=>a.map(a=>a.id===e||a.fileName===s.fileName?{...a,progress:100,status:"completed"}:a)),"download:success"===a&&(s.alreadyExists?e0(`${s.fileName} 已存在`,"warning"):e0(`${s.fileName} 下载完成`,"success"),setTimeout(()=>{ep(a=>a.filter(a=>a.id!==e||"completed"!==a.status))},3e3))}"publish:progress"===a&&ep(e=>e.map(e=>{if(s.file&&e.fileName===s.file&&"upload"===e.type){let a=50;return"calculating-cid"===s.stage?a=25:"uploading"===s.stage?a=75:"complete"===s.stage&&(a=100),{...e,progress:a}}return e})),"download:progress"===a&&ep(e=>e.map(e=>e.id===s.taskId?{...e,progress:s.percent||0,loaded:s.loaded,total:s.total}:e)),"download:error"===a&&(ep(e=>e.map(e=>e.id===s.taskId?{...e,status:"error"}:e)),e0(`下载失败: ${s.error}`,"error")),"download:status"===a&&ep(e=>e.map(e=>e.id===s.taskId?{...e,fileName:s.file||e.fileName}:e)),"download:cancelled"===a&&(ep(e=>e.map(e=>e.id===s.taskId?{...e,status:"cancelled"}:e)),e0("下载已取消","warning"))}catch{}},()=>e.close()},[]),(0,s.useEffect)(()=>{let e=localStorage.getItem("theme");("dark"===e||!e&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&Z(!0),e1(),e2(),e4(),P.getStorageStats().then(e=>ew(e)).catch(()=>{})},[]),(0,s.useEffect)(()=>{document.documentElement.setAttribute("data-theme",J?"dark":"light"),localStorage.setItem("theme",J?"dark":"light")},[J]);let ad="all"===K?eY:"starred"===K?c.filter(e=>e.starred&&O(e.fileName).name.toLowerCase().includes(ef.toLowerCase())):C.filter(e=>O(e.fileName).name.toLowerCase().includes(ef.toLowerCase())),ah="starred"===K?[]:eZ.filter(e=>e.name.toLowerCase().includes(ef.toLowerCase())),am=V(eG);return(0,a.jsxs)("div",{className:"app-layout",children:[(0,a.jsx)("div",{className:`sidebar-overlay ${eI?"visible":""}`,onClick:()=>eA(!1)}),(0,a.jsxs)("div",{className:`sidebar ${eI?"open":""}`,children:[(0,a.jsx)("div",{className:"sidebar-header",children:(0,a.jsx)("h1",{children:"Most.Box"})}),(0,a.jsx)("nav",{className:"sidebar-nav",children:[{id:"all",icon:(0,a.jsx)(b,{size:18}),label:"全部内容"},{id:"starred",icon:(0,a.jsx)(y,{size:18}),label:"收藏"},{id:"trash",icon:(0,a.jsx)(o,{size:18}),label:"回收站"},{id:"chat",icon:(0,a.jsx)(u.MessageSquare,{size:18}),label:"聊天",href:"/chat"}].map(e=>(0,a.jsxs)("button",{onClick:()=>{e.href?window.location.href=e.href:(G(e.id),_(null),ea([]),ej(""),eA(!1))},className:`sidebar-nav-btn ${K===e.id&&!e.href?"active":""}`,children:[e.icon,(0,a.jsx)("span",{children:e.label})]},e.id))}),(0,a.jsxs)("div",{className:"sidebar-footer",children:[(0,a.jsxs)("div",{className:"sidebar-footer-label",children:[(0,a.jsx)(N,{size:14}),(0,a.jsx)("span",{children:"存储空间"})]}),(0,a.jsx)("div",{className:"storage-bar",children:(0,a.jsx)("div",{className:"storage-bar-fill",style:{width:`${eN.total>0?eN.used/eN.total*100:0}%`}})}),(0,a.jsxs)("div",{className:"storage-info",children:[(0,a.jsx)("span",{children:E(eN.used)}),(0,a.jsx)("span",{children:eN.total>0?E(eN.total):"-"})]})]})]}),(0,a.jsxs)("div",{className:"main-content",children:[(0,a.jsxs)("header",{className:"app-header",children:[(0,a.jsxs)("div",{className:"header-left",children:[(0,a.jsx)("button",{onClick:()=>eA(!0),className:"icon-btn mobile-menu-btn",children:(0,a.jsx)(M.Menu,{size:18})}),(0,a.jsx)("h2",{className:"header-title",children:"all"===K?"全部内容":"starred"===K?"收藏":"回收站"}),(0,a.jsxs)("div",{className:"header-badge",children:[(0,a.jsx)("div",{className:`header-badge-dot ${ey>0?"connected":""}`}),ey>0?`${ey} 节点`:"等待连接"]})]}),(0,a.jsxs)("div",{className:"header-right",children:[(0,a.jsxs)("div",{className:"search-box",children:[(0,a.jsx)(w,{size:14}),(0,a.jsx)("input",{type:"text",value:ef,onChange:e=>ej(e.target.value),placeholder:"搜索..."}),ef&&(0,a.jsx)("button",{onClick:()=>ej(""),children:(0,a.jsx)(x.X,{size:12})})]}),"trash"===K&&C.length>0&&(0,a.jsx)("button",{onClick:e5,className:"btn small",style:{background:"rgba(239,68,68,0.1)",color:"#ef4444"},children:"清空回收站"}),(0,a.jsxs)("button",{onClick:()=>ex(!0),className:"icon-btn",children:[(0,a.jsx)(v,{size:16}),em.length>0&&(0,a.jsx)("span",{className:"icon-btn-badge",children:em.length})]}),(0,a.jsx)("button",{onClick:()=>Z(!J),className:"icon-btn theme-toggle",children:J?(0,a.jsx)(i.Sun,{size:16}):(0,a.jsx)(r.Moon,{size:16})}),(0,a.jsx)("button",{onClick:()=>eB(!0),className:"icon-btn",children:(0,a.jsx)(k,{size:16})})]})]}),"all"===K&&(0,a.jsxs)("div",{className:"action-grid",children:[(0,a.jsxs)("div",{className:`action-card upload ${Q?"drag-over":""}`,onDragOver:e=>{e.preventDefault(),Y(!0)},onDragLeave:()=>Y(!1),onDrop:e=>{e.preventDefault(),Y(!1),aa(e.dataTransfer.files)},children:[(0,a.jsx)("input",{type:"file",multiple:!0,onChange:e=>aa(e.target.files),className:"action-card-input"}),(0,a.jsx)(l,{size:20,style:{marginBottom:8}}),(0,a.jsx)("p",{children:"上传文件"})]}),(0,a.jsxs)("div",{className:"action-card action-card-download",onClick:()=>en(!0),children:[(0,a.jsx)(g,{size:20,style:{marginBottom:8}}),(0,a.jsx)("p",{children:"下载文件"})]})]}),"all"===K&&(0,a.jsx)("div",{className:"breadcrumb",children:eG?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>ao(""),children:"全部内容"}),am.slice(1).map((e,t)=>(0,a.jsxs)(s.default.Fragment,{children:[(0,a.jsx)(m,{size:12}),(0,a.jsx)("button",{onClick:()=>ao(e.path),className:t===am.length-2?"current":"",children:e.name}),t===am.length-2&&(0,a.jsx)("button",{onClick:()=>ae(e),className:"breadcrumb-edit-btn",children:(0,a.jsx)(S,{size:12})})]},e.path))]}):null}),(0,a.jsxs)("div",{className:"content-grid",children:["trash"===K&&(0===ad.length?(0,a.jsx)("div",{className:"empty-state",children:ef?"未找到相关文件":"回收站是空的"}):(0,a.jsx)("div",{className:"file-grid",children:ad.map(e=>{var s;return(0,a.jsxs)("div",{onClick:()=>ea(a=>a.includes(e.cid)?a.filter(a=>a!==e.cid):[...a,e.cid]),onDoubleClick:()=>e8(e.cid),className:`card ${ee.includes(e.cid)?"selected":""}`,children:[(0,a.jsx)("div",{className:"card-icon trash",children:(0,a.jsx)(p,{size:24,color:"#fff"})}),(0,a.jsx)("p",{className:"card-name",children:O(e.fileName).name}),(0,a.jsxs)("p",{className:"card-date",children:["删除于 ",(s=e.deletedAt)?new Date(s).toLocaleDateString("zh-CN"):""]})]},e.cid)})})),"trash"!==K&&(0===ad.length&&0===ah.length?(0,a.jsx)("div",{className:"empty-state",children:ef?"未找到相关文件":"starred"===K?"暂无的收藏":"暂无文件"}):(0,a.jsxs)("div",{className:"file-grid",children:[ah.map(e=>(0,a.jsx)(q,{folder:e,isDarkMode:J,onClick:()=>ao(e.path)},e.path)),ad.map(e=>(0,a.jsx)(U,{file:e,isSelected:ee.includes(e.cid),isDarkMode:J,onSelect:e6,onPreview:e=>et({...e,subtype:B(e.fileName)})},e.cid))]}))]})]}),eS&&(0,a.jsx)(D.ConfirmModal,{title:eS.title,message:eS.message,confirmText:eS.confirmText,danger:eS.danger,isDarkMode:J,closeOnOverlayClick:eS.danger,onConfirm:eS.onConfirm,onClose:()=>eM(null)}),ez&&(0,a.jsx)(L.InputModal,{title:ez.title,placeholder:ez.placeholder,defaultValue:ez.defaultValue,confirmText:ez.confirmText,isDarkMode:J,isLoading:eF,onConfirm:ez.onConfirm,onClose:()=>e$(null)}),ek&&(0,a.jsx)(R,{items:ee.map(e=>c.find(a=>a.cid===e)).filter(Boolean),allFolders:eJ.map(e=>({path:e,name:e.split("/").pop()})),currentPath:eG,isDarkMode:J,onMove:e9,onClose:()=>eC(!1)}),el&&(0,a.jsx)($.ModalOverlay,{onClose:()=>ei(null),children:(0,a.jsxs)("div",{className:"share-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"分享链接"}),(0,a.jsx)("button",{onClick:()=>ei(null),className:"modal-close-btn",children:(0,a.jsx)(x.X,{size:18})})]}),(0,a.jsxs)("div",{className:"share-link-box",children:[(0,a.jsxs)("div",{className:"share-link-text",children:["most://",el.cid,"?filename=",el.fileName]}),(0,a.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(`most://${el.cid}?filename=${el.fileName}`).then(()=>{ev(!0),setTimeout(()=>ev(!1),2e3)})},className:`share-copy-btn ${eg?"copied":""}`,children:eg?(0,a.jsx)(f,{size:18}):(0,a.jsx)(j,{size:18})})]})]})}),er&&(0,a.jsx)($.ModalOverlay,{onClose:()=>en(!1),children:(0,a.jsxs)("div",{className:"download-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"下载文件"}),(0,a.jsx)("button",{onClick:()=>en(!1),className:"modal-close-btn",children:(0,a.jsx)(x.X,{size:18})})]}),(0,a.jsx)("input",{type:"text",value:eo,onChange:e=>ec(e.target.value),placeholder:"most://...",onKeyDown:e=>"Enter"===e.key&&ai(),className:"download-input"}),(0,a.jsx)("button",{onClick:ai,disabled:!eo.trim()||at,className:"download-btn",children:at?"下载中...":"开始下载"})]})}),es&&(0,a.jsxs)("div",{className:"preview-overlay",onClick:()=>{et(null),eH(""),eX(!1)},children:[(0,a.jsx)("button",{className:"preview-close",children:(0,a.jsx)(x.X,{size:20})}),(0,a.jsxs)("div",{onClick:e=>e.stopPropagation(),children:["image"===es.subtype&&(0,a.jsx)("div",{className:"preview-media-wrapper",children:(0,a.jsx)("img",{ref:eK,src:P.getFileDownloadUrl(es.cid),alt:""})}),"video"===es.subtype&&(0,a.jsx)("div",{className:"preview-media-wrapper",children:(0,a.jsx)("video",{ref:eK,src:P.getFileDownloadUrl(es.cid),controls:!0})}),"audio"===es.subtype&&(0,a.jsxs)("div",{className:"preview-audio",children:[(0,a.jsx)("div",{className:"preview-audio-icon",children:(0,a.jsx)(h,{size:36,color:"var(--accent-blue)"})}),(0,a.jsx)("p",{className:"preview-audio-filename",children:es.fileName}),(0,a.jsx)("audio",{className:"preview-audio-player",src:P.getFileDownloadUrl(es.cid),controls:!0})]}),"file"===es.subtype&&(0,a.jsxs)("div",{className:"preview-unsupported",children:[(0,a.jsx)(p,{size:48,color:"#fff",style:{marginBottom:12,opacity:.5}}),(0,a.jsx)("p",{children:es.fileName}),(0,a.jsx)("p",{style:{fontSize:12,marginTop:8,opacity:.7},children:"无法预览"})]}),"text"===es.subtype&&(0,a.jsxs)("div",{className:"preview-text-container",children:[(0,a.jsx)("div",{className:"preview-text-header",children:(0,a.jsx)("span",{children:es.fileName})}),eU?(0,a.jsxs)("div",{className:"preview-text-loading",children:[(0,a.jsx)(z,{size:24,className:"preview-text-spinner"}),(0,a.jsx)("p",{children:"正在加载文本预览..."}),(0,a.jsx)("p",{className:"preview-text-loading-hint",children:"如果是初次预览,可能需要等待 P2P 网络同步"})]}):(0,a.jsx)("pre",{className:"preview-text",children:eV||"(文件为空)"})]})]})]}),ee.length>0&&(0,a.jsxs)("div",{className:"batch-bar",children:[(0,a.jsxs)("span",{className:"batch-info",children:["已选 ",ee.length," 项"]}),(0,a.jsx)("button",{onClick:()=>ea([]),className:"batch-dismiss",children:(0,a.jsx)(x.X,{size:16})}),(0,a.jsx)("div",{className:"batch-divider"}),"trash"===K?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:async()=>{await Promise.all(ee.map(e=>P.restoreTrashFile(e))),ea([]),e0("已恢复","success"),e1(),e2(),e4()},className:"btn small",children:"恢复"}),(0,a.jsx)("button",{onClick:e7,className:"btn small danger",children:"永久删除"})]}):(0,a.jsxs)(a.Fragment,{children:[1===ee.length&&(n=c.find(e=>e.cid===ee[0]))&&"file"!==B(n.fileName)&&(0,a.jsx)("button",{onClick:()=>{let e=c.find(e=>e.cid===ee[0]);if(e){let a=B(e.fileName);et({...e,subtype:a}),eH(""),"text"===a&&as(e.cid)}},className:"btn small",children:"预览"}),(0,a.jsx)("button",{onClick:()=>{let e=ee.some(e=>{let a=c.find(a=>a.cid===e);return a&&!a.starred});ee.forEach(a=>{let s=c.find(e=>e.cid===a);s&&(e?!s.starred:s.starred)&&e3(a)})},className:"btn small",style:{background:"#f59e0b",color:"#fff"},children:"收藏"}),1===ee.length&&(0,a.jsx)("button",{onClick:()=>{let e=c.find(e=>e.cid===ee[0]);e&&ae(e)},className:"btn small",children:"重命名"}),(0,a.jsx)("button",{onClick:()=>eC(!0),className:"btn small",style:{background:"var(--accent-blue)",color:"#fff"},children:"移动"}),(0,a.jsx)("button",{onClick:e7,className:"btn small danger",children:"删除"}),1===ee.length&&(0,a.jsx)("button",{onClick:()=>ei(c.find(e=>e.cid===ee[0])),className:"btn small",children:"分享"}),1===ee.length&&(0,a.jsx)("button",{onClick:()=>{let e=c.find(e=>e.cid===ee[0]);e&&an(e)},className:"btn small",children:"另存为"})]})]}),eu&&(0,a.jsx)($.ModalOverlay,{onClose:()=>ex(!1),closeOnOverlayClick:!0,children:(0,a.jsxs)("div",{className:"transfer-modal",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"modal-header",children:[(0,a.jsx)("h3",{children:"传输"}),(0,a.jsx)("button",{onClick:()=>ex(!1),className:"modal-close-btn",children:(0,a.jsx)(x.X,{size:18})})]}),0===em.length?(0,a.jsx)("div",{style:{textAlign:"center",color:"var(--text-muted)",padding:24,fontSize:13},children:"暂无传输"}):em.map(e=>(0,a.jsxs)("div",{className:"transfer-item",children:[(0,a.jsxs)("div",{className:"transfer-item-header",children:["upload"===e.type?(0,a.jsx)(l,{size:14}):(0,a.jsx)(g,{size:14}),(0,a.jsx)("span",{className:"transfer-item-name",children:e.fileName}),"downloading"===e.status&&"download"===e.type&&(0,a.jsx)("button",{onClick:()=>ar(e),className:"transfer-item-cancel",children:(0,a.jsx)(x.X,{size:14})})]}),(0,a.jsxs)("div",{className:"transfer-progress-row",children:[(0,a.jsx)("div",{className:"transfer-progress-bar",children:(0,a.jsx)("div",{className:`transfer-progress-fill ${"download"===e.type?"download":""} ${"error"===e.status?"error":""} ${"cancelled"===e.status?"cancelled":""}`,style:{width:`${e.progress}%`}})}),(0,a.jsx)("span",{className:"transfer-progress-text",children:"completed"===e.status?"完成":"error"===e.status?"失败":"cancelled"===e.status?"已取消":e.loaded&&e.total?`${E(e.loaded)}/${E(e.total)}`:`${e.progress}%`})]})]},e.id))]})}),ed.map((e,s)=>(0,a.jsx)(F.Toast,{message:e.message,type:e.type,onDone:()=>{let a;return a=e.id,eh(e=>e.filter(e=>e.id!==a))},index:s},e.id)),eP&&(0,a.jsx)(I,{onClose:ac,onShutdown:()=>{T.api.post("api/shutdown"),e0("服务已关闭,请重新启动应用","info"),ac()}}),eO&&(0,a.jsx)(A,{onClose:()=>eB(!1),addToast:e0,isDarkMode:J,handleShutdown:()=>{eM({title:"关闭服务",message:"确定要关闭服务吗?",confirmText:"关闭",danger:!0,onConfirm:async()=>{eM(null);try{T.api.post("api/shutdown")}catch{}window.close()}})}})]})}],29615)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17279,r=>{"use strict";var e=r.i(43476),t=r.i(71645);class o extends t.default.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,e){console.error("[ErrorBoundary]",r,e)}handleReload=()=>{window.location.reload()};render(){return this.state.hasError?(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",padding:32,background:"#f8fafc",fontFamily:"system-ui"},children:[(0,e.jsx)("h1",{style:{fontSize:20,fontWeight:600,marginBottom:8,color:"#1e293b"},children:"出错了"}),(0,e.jsx)("p",{style:{color:"#64748b",marginBottom:24,textAlign:"center",maxWidth:400},children:"发生了意外错误,请尝试重新加载页面"}),(0,e.jsx)("button",{onClick:this.handleReload,style:{padding:"10px 24px",borderRadius:8,border:"none",background:"#3b82f6",color:"#fff",fontSize:14,cursor:"pointer"},children:"重新加载"})]}):this.props.children}}r.s(["ErrorBoundary",0,o])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75254,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.createContext)({}),n=(0,t.forwardRef)(({color:e,size:o,strokeWidth:n,absoluteStrokeWidth:a,className:l="",children:h,iconNode:u,...c},p)=>{let{size:d=24,strokeWidth:f=2,absoluteStrokeWidth:m=!1,color:y="currentColor",className:g=""}=(0,t.useContext)(i)??{},b=a??m?24*Number(n??f)/Number(o??d):n??f;return(0,t.createElement)("svg",{ref:p,...s,width:o??d??s.width,height:o??d??s.height,stroke:e??y,strokeWidth:b,className:r("lucide",g,l),...!h&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(h)?h:[h]])});e.s(["default",0,(e,s)=>{let i=(0,t.forwardRef)(({className:i,...a},l)=>(0,t.createElement)(n,{ref:l,iconNode:s,className:r(`lucide-${o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...a}));return i.displayName=o(e),i}],75254)},86311,e=>{"use strict";let t=(0,e.i(75254).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],86311)},97250,91799,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],97250);let o=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,o],91799)},37727,92161,22893,86878,71560,15824,37821,88614,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,r],37727);let o=(0,t.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,o],92161);var s=e.i(43476),i=e.i(71645);function n({children:e,onClose:t,closeOnOverlayClick:r=!1}){return(0,s.jsx)("div",{className:"modal-overlay",onClick:e=>{r&&e.target===e.currentTarget&&t?.()},children:e})}e.s(["ModalOverlay",0,n],22893),e.s(["Toast",0,function({message:e,type:t,onDone:r,index:o}){return(0,i.useEffect)(()=>{let e=setTimeout(r,3e3);return()=>clearTimeout(e)},[]),(0,s.jsx)("div",{className:`toast ${t}`,style:{bottom:24+60*o},children:e})}],86878),e.s(["ConfirmModal",0,function({title:e,message:t,confirmText:r,onConfirm:o,onClose:i,danger:a,closeOnOverlayClick:l}){return(0,s.jsx)(n,{onClose:i,closeOnOverlayClick:l,children:(0,s.jsxs)("div",{className:"confirm-modal",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("h3",{children:e}),(0,s.jsx)("p",{children:t}),(0,s.jsxs)("div",{className:"modal-actions",children:[(0,s.jsx)("button",{onClick:i,className:"btn secondary",children:"取消"}),(0,s.jsx)("button",{onClick:o,className:`btn ${a?"danger":"primary"}`,children:r})]})]})})}],71560),e.s(["InputModal",0,function({title:e,placeholder:t,defaultValue:r,confirmText:o,onConfirm:a,onClose:l,isLoading:h,loadingText:u}){let[c,p]=(0,i.useState)(r||"");return(0,s.jsx)(n,{onClose:l,children:(0,s.jsxs)("div",{className:"input-modal",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("h3",{children:e}),(0,s.jsx)("input",{type:"text",value:c,onChange:e=>p(e.target.value),placeholder:t,autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&c.trim()&&!h&&a(c.trim())},className:"modal-input"}),(0,s.jsxs)("div",{className:"modal-actions",children:[(0,s.jsx)("button",{onClick:l,disabled:h,className:"btn secondary",children:"取消"}),(0,s.jsx)("button",{onClick:()=>c.trim()&&a(c.trim()),disabled:!c.trim()||h,className:"btn primary",style:{opacity:h?.7:1},children:h?u||"处理中...":o})]})]})})}],15824),e.s([],37821);class a extends Error{name="KyError";get isKyError(){return!0}}class l extends a{name="HTTPError";response;request;options;data;constructor(e,t,r){const o=e.status||0===e.status?e.status:"",s=e.statusText??"",i=`${o} ${s}`.trim(),n=i?`status code ${i}`:"an unknown error";super(`Request failed with ${n}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=r}}class h extends a{name="NetworkError";request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}}class u extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}class c extends a{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new u(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}}class p extends Error{name="SchemaValidationError";issues;constructor(e){super("Response schema validation failed"),this.issues=e}}class d extends a{name="TimeoutError";request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}}let f=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),m="function"==typeof globalThis.AbortController,y="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,g="function"==typeof globalThis.ReadableStream,b="function"==typeof globalThis.FormData,w=["get","post","put","patch","head","delete"],R={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},T=Symbol("stop");class v{options;constructor(e){this.options=e}}let q=e=>new v(e),x={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},k={next:!0},E={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},j=new TextEncoder,P=(e,t,r)=>{let o,s=0;return e.pipeThrough(new TransformStream({transform(e,i){if(i.enqueue(e),o){s+=o.byteLength;let e=0===t?0:s/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,s),transferredBytes:s},o)}o=e},flush(){o&&(s+=o.byteLength,r?.({percent:1,totalBytes:Math.max(t,s),transferredBytes:s},o))}}))},C=e=>null!==e&&"object"==typeof e,S=Symbol("replaceOption"),A=e=>C(e)&&!0===e[S]?{isReplace:!0,value:e.value}:{isReplace:!1,value:e},O=(...e)=>{for(let t of e)if((!C(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return z({},...e)},N=(e={},t={})=>{let r=new globalThis.Headers(e),o=t instanceof globalThis.Headers;for(let[e,s]of new globalThis.Headers(t).entries())o&&"undefined"===s||void 0===s?r.delete(e):r.set(e,s);return r},L=e=>{if(!C(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},D=e=>e instanceof URLSearchParams?new URLSearchParams(e):e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:L(e)?{...e}:e,U=(e,t)=>L(e)&&L(t)?Object.fromEntries(Object.entries({...e,...t}).filter(e=>void 0!==e[1])):N(e,t);function B(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:z(e[r]??[],t[r]??[])}let M=(e={},t={})=>({init:B(e,t,"init"),beforeRequest:B(e,t,"beforeRequest"),beforeRetry:B(e,t,"beforeRetry"),beforeError:B(e,t,"beforeError"),afterResponse:B(e,t,"afterResponse")}),H=Symbol("deletedParameters"),$=(e,t)=>{let r=new URLSearchParams,o=new Set;for(let s of[e,t])if(void 0!==s)if(s instanceof URLSearchParams){for(let[e,t]of s.entries())r.append(e,t),o.delete(e);let e=s[H];if(e)for(let t of e)r.delete(t),o.add(t)}else if(Array.isArray(s))for(let e of s){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1])),o.delete(String(e[0]))}else if(C(s))for(let[e,t]of Object.entries(s))void 0===t?(r.delete(e),o.add(e)):(r.append(e,String(t)),o.delete(e));else for(let[e,t]of new URLSearchParams(s).entries())r.append(e,t),o.delete(e);return o.size>0&&(r[H]=o),r},z=(...e)=>{let t,r={},o={},s={},i=[];for(let n of e)if(Array.isArray(n))Array.isArray(r)||(r=[]),r=[...r,...n];else if(C(n)){for(let[e,o]of Object.entries(n)){if("signal"===e&&o instanceof globalThis.AbortSignal){i.push(o);continue}let s=A(o),{isReplace:n}=s;if(o=s.value,"context"===e){if(null!=o&&(!C(o)||Array.isArray(o)))throw TypeError("The `context` option must be an object");r={...r,context:null==o?{}:n?{...o}:{...r.context,...o}};continue}if("searchParams"===e){t=null==o?void 0:n||void 0===t?o:$(t,o);continue}C(o)&&!n&&e in r&&(o=z(r[e],o)),r={...r,[e]:o}}if(C(n.hooks)){let{value:e,isReplace:t}=A(n.hooks);s=t?M({},e):M(s,e),r.hooks=s}if(C(n.headers)){let{value:e,isReplace:t}=A(n.headers);o=t?D(e):U(o,e),r.headers=o}}return void 0!==t&&(r.searchParams=t),i.length>0&&(1===i.length?r.signal=i[0]:y?r.signal=AbortSignal.any(i):r.signal=i.at(-1)),r},F={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1};async function J(e,t,r,o){return new Promise((s,i)=>{let n=setTimeout(()=>{r&&r.abort(),i(new d(e))},o.timeout);o.fetch(e,t).then(s).catch(i).then(()=>{clearTimeout(n)})})}async function W(e,{signal:t}){return new Promise((r,o)=>{function s(){clearTimeout(i),o(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",s,{once:!0}));let i=setTimeout(()=>{t?.removeEventListener("abort",s),r()},e)})}let I=Object.prototype.toString,_=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]),K=(e,t)=>e instanceof t||e?.name===t.name,X=Symbol("timedOutResponseData"),V="The `schema` argument must follow the Standard Schema specification",Z=async(e,t)=>{if("object"!=typeof t&&"function"!=typeof t||null===t)throw TypeError(V);let r=t["~standard"];if("object"!=typeof r||null===r||"function"!=typeof r.validate)throw TypeError(V);let o=await r.validate(e);if(o.issues)throw new p(o.issues);return o.value};class G{static create(e,t){let r=t.hooks?.init??[],o=r.length>0?{...t,json:D(t.json),retry:D(t.retry),context:D(t.context),headers:D(t.headers),searchParams:D(t.searchParams)}:t;for(let e of r)e(o);let s=new G(e,o),i=async()=>{if("number"==typeof s.#e.timeout&&s.#e.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");if("number"==typeof s.#e.totalTimeout&&s.#e.totalTimeout>0x7fffffff)throw RangeError("The `totalTimeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await s.#t(),t=e??await s.#r(async()=>s.#o()),r=void 0!==e||s.#s();if(!(t instanceof globalThis.Response))return t;for(;;){try{t=await s.#i(t)}catch(o){if(!(o instanceof c))throw o;let e=await s.#n(o,async()=>s.#o());if(!(e instanceof globalThis.Response))return e;t=e,r=s.#s();continue}if(!t.ok&&"opaque"!==t.type&&("function"==typeof s.#e.throwHttpErrors?s.#e.throwHttpErrors(t.status):s.#e.throwHttpErrors)){let e=new l(t,s.#a(t),s.#l());if(e.data=await s.#h(t),r)throw e;let o=await s.#n(e,async()=>s.#o());if(!(o instanceof globalThis.Response))return o;t=o,r=s.#s();continue}break}if(s.#u(t),s.#e.onDownloadProgress){if("function"!=typeof s.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!g)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let e=t.clone();s.#c(t);var o=s.#e.onDownloadProgress;if(!e.body)return e;let r={status:e.status,statusText:e.statusText,headers:e.headers};if(204===e.status)return new Response(null,r);let i=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(P(e.body,i,o),r)}return t},n=(async()=>{try{return await i()}catch(t){if(!(t instanceof Error)||s.#p.has(t))throw t;let e=t;for(let t of s.#e.hooks.beforeError){let r=await t({request:s.request,options:s.#l(),error:e,retryCount:s.#d});r instanceof Error&&(e=r)}throw e}finally{let e=s.#f;s.#m(e?.body??void 0),s.request!==e&&s.#m(s.request.body??void 0)}})();for(let[e,t]of Object.entries(R))("bytes"!==e||"function"==typeof globalThis.Response?.prototype?.bytes)&&(n[e]=async r=>{s.request.headers.set("accept",s.request.headers.get("accept")||t);let i=await n;if("json"!==e)return i[e]();let a=await i.text();if(""===a)return void 0!==r?Z(void 0,r):JSON.parse(a);let l=o.parseJson?await o.parseJson(a,{request:s.#a(i),response:i}):JSON.parse(a);return void 0===r?l:Z(l,r)});return n}static #y(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#g;#d=0;#b;#e;#f;#w;#p=new WeakSet;#R;#T;#v=!1;#q=new WeakMap;constructor(e,t={}){if(this.#b=e,Object.hasOwn(t,"prefixUrl"))throw Error("The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl");if(this.#e={...t,headers:N(this.#b.headers,t.headers),hooks:M({},t.hooks),method:(e=>w.includes(e)?e.toUpperCase():e)(t.method??this.#b.method??"GET"),prefix:String(t.prefix||""),retry:((e={})=>{if("number"==typeof e)return{...F,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e));return{...F,...t}})(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,totalTimeout:t.totalTimeout??!1,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#b&&!(this.#b instanceof URL||this.#b instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if("string"==typeof this.#b){if(this.#e.prefix){const e=this.#e.prefix.replace(/\/+$/,""),t=this.#b.replace(/^\/+/,"");this.#b=`${e}/${t}`}if(this.#e.baseUrl){let e;try{e=new URL(this.#b)}catch{}e||(this.#b=new URL(this.#b,new Request(this.#e.baseUrl).url))}}m&&y&&(this.#w=this.#e.signal??this.#b.signal,this.#g=new globalThis.AbortController,this.#e.signal=this.#x()),f&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#b instanceof globalThis.Request&&(b&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!r&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#b,this.#e),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[H]?.size:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#e.searchParams)){const e=new URL(this.request.url);if("string"==typeof this.#e.searchParams){const t=this.#e.searchParams.replace(/^\?/,"");""!==t&&(e.search=e.search?`${e.search}&${t}`:`?${t}`)}else for(const[t,r]of new URLSearchParams(G.#y(this.#e.searchParams)).entries())e.searchParams.append(t,r);if(this.#e.searchParams&&"object"==typeof this.#e.searchParams&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(const[t,r]of Object.entries(this.#e.searchParams))void 0===r&&e.searchParams.delete(t);const t=this.#e.searchParams?.[H];if(t)for(const r of t)e.searchParams.delete(r);this.request=new globalThis.Request(e,this.#e)}if(this.#e.onUploadProgress&&"function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");this.#T="number"==typeof this.#e.totalTimeout?this.#k():void 0}#E(){let e=this.#e.retry.delay(this.#d+1),t=e;return!0===this.#e.retry.jitter?t=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(t=this.#e.retry.jitter(e))||t<0)&&(t=e),Math.min(this.#e.retry.backoffLimit,t)}async #j(e){if(this.#d>=this.#e.retry.limit)throw e;let t=e instanceof Error?e:new u(e);if(t instanceof c)return t.customDelay??this.#E();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let r=await this.#e.retry.shouldRetry({error:t,retryCount:this.#d+1});if(!1===r)throw e;if(!0===r)return this.#E()}if(K(e,d)){if(!this.#e.retry.retryOnTimeout)throw e;return this.#E()}if(K(e,l)){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);return(Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now()),Number.isFinite(e))?(e=Math.max(0,e),Math.min(this.#e.retry.maxRetryAfter,e)):Math.min(this.#e.retry.maxRetryAfter,this.#E())}if(413===e.response.status)throw e;return this.#E()}if(!K(e,h))throw e;return this.#E()}#u(e){let t=this.#a(e);return this.#e.parseJson&&(e.json=async()=>{let r=await e.text();return""===r?JSON.parse(r):this.#e.parseJson(r,{request:t,response:e})}),e}async #h(e){let t=await this.#P(e,this.#C());if(t===X)return void this.#S();if(!t)return;if(!this.#A(e.headers.get("content-type")??""))return t;let r=await this.#O(t,e,this.#C(),this.#a(e));return r===X?void this.#S():r}#C(){let e=!1===this.#e.timeout?1e4:this.#e.timeout,t=this.#N();if(void 0===t)return e;if(t<=0)throw new d(this.request);return Math.min(e,t)}#A(e){let t=(e.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async #P(e,t){let r,{body:o}=e;if(!o)try{return await e.text()}catch{return}try{r=o.getReader()}catch{return}let s=(e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),r=t?.[1]??t?.[2];if(r)try{return new TextDecoder(r)}catch{}return new TextDecoder})(e.headers.get("content-type")??""),i=[],n=0,a=(async()=>{try{for(;;){let{done:e,value:t}=await r.read();if(e)break;if((n+=t.byteLength)>0xa00000)return void r.cancel().catch(()=>void 0);i.push(s.decode(t,{stream:!0}))}}catch{return}return i.push(s.decode()),i.join("")})(),l=new Promise(e=>{let r=setTimeout(()=>{e(X)},t);a.finally(()=>{clearTimeout(r)})}),h=await Promise.race([a,l]);return h===X&&r.cancel().catch(()=>void 0),h}async #O(e,t,r,o){let s;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(e,{request:o,response:t}):JSON.parse(e)),new Promise(e=>{s=setTimeout(()=>{e(X)},r)})])}catch{return}finally{clearTimeout(s)}}#m(e){e&&e.cancel().catch(()=>void 0)}#c(e){this.#m(e.body??void 0)}#x(){return this.#w?AbortSignal.any([this.#w,this.#g.signal]):this.#g.signal}#S(){let e=this.#N();if(void 0!==e&&e<=0)throw new d(this.request)}async #t(){for(let e of this.#e.hooks.beforeRequest){let t=await e({request:this.request,options:this.#l(),retryCount:0});if(t instanceof Response)return t;t instanceof globalThis.Request&&this.#L(t)}}async #i(e){let t=this.#a(e);for(let r of this.#e.hooks.afterResponse){let o,s=this.#D(e.clone(),t);this.#u(s);try{o=await r({request:this.request,options:this.#l(),response:s,retryCount:this.#d})}catch(t){throw this.#c(s),this.#c(e),t}if(o instanceof v)throw this.#c(s),this.#c(e),new c(o.options);let i=this.#D(o instanceof globalThis.Response?o:e,t);s!==i&&this.#c(s),e!==i&&this.#c(e),e=i}return e}async #r(e){try{return await e()}catch(t){return this.#n(t,e)}}async #n(e,t){this.#v=!1;let r=Math.min(await this.#j(e),0x7fffffff),o={signal:this.#w},s=this.#N();if(void 0!==s){if(s<=0)throw new d(this.request);if(r>=s)throw await W(s,o),new d(this.request)}for(let t of(await W(r,o),this.#S(),e instanceof c&&e.customRequest&&this.#L(new globalThis.Request(e.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0)),this.#e.hooks.beforeRetry)){let r;try{r=await t({request:this.request,options:this.#l(),error:e,retryCount:this.#d+1})}catch(t){throw t instanceof Error&&t!==e&&this.#p.add(t),t}if(r instanceof globalThis.Request){this.#L(r);break}if(r instanceof globalThis.Response)return this.#v=!0,this.#d++,r;if(r===T)return}return this.#S(),this.#d++,this.#r(t)}#s(){let e=this.#v;return this.#v=!1,e}async #o(){this.#g?.signal.aborted&&(this.#g=new globalThis.AbortController,this.#e.signal=this.#x(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let e=((e,t)=>{let r={};for(let o in t)Object.hasOwn(t,o)&&(o in E||o in x||o in e&&!(o in k)||(r[o]=t[o]));return r})(this.request,this.#e),t=this.#e.retry.limit>0?this.request.clone():void 0,r=this.#U(this.request,this.#e.body??void 0);this.#f=r,t&&(this.request=t);try{let t=this.#N();if(void 0!==t&&t<=0)throw new d(this.request);let o=!1===this.#e.timeout?t:void 0===t?this.#e.timeout:Math.min(this.#e.timeout,t),s=void 0===o?await this.#e.fetch(r,e):await J(r,e,this.#g,{timeout:o,fetch:this.#e.fetch});return this.#D(s,r)}catch(e){if(function(e){if(!(e&&"[object Error]"===I.call(e)&&"TypeError"===e.name&&"string"==typeof e.message))return!1;let{message:t,stack:r}=e;return"Load failed"===t?void 0===r||"__sentry_captured__"in e:!!(t.startsWith("error sending request for url")||"Failed to fetch"===t||t.startsWith("Failed to fetch (")&&t.endsWith(")"))||_.has(t)}(e))throw new h(this.request,{cause:e});throw e}}#N(){if(void 0===this.#T)return;let e=this.#k()-this.#T;return Math.max(0,this.#e.totalTimeout-e)}#k(){return globalThis.performance?.now()??Date.now()}#l(){if(!this.#R){let{hooks:e,json:t,parseJson:r,stringifyJson:o,searchParams:s,timeout:i,totalTimeout:n,throwHttpErrors:a,fetch:l,...h}=this.#e;this.#R=Object.freeze(h)}return this.#R}#L(e){this.#R=void 0,this.request=e}#a(e){return this.#q.get(e)??this.request}#D(e,t){return this.#q.set(e,t),e}#U(e,t){return this.#e.onUploadProgress&&e.body&&f?((e,t,r)=>{if(!e.body)return e;let o=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,o]of e)t+=40,t+=j.encode(`Content-Disposition: form-data; name="${r}"`).byteLength,t+="string"==typeof o?j.encode(o).byteLength:o.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:"string"==typeof e?j.encode(e).byteLength:e instanceof URLSearchParams?j.encode(e.toString()).byteLength:0})(r??e.body);return new Request(e,{duplex:"half",body:P(e.body,o,t)})})(e,this.#e.onUploadProgress,t??this.#e.body??void 0):e}}let Q=e=>{let t=(t,r)=>G.create(t,O(e,r));for(let r of w)t[r]=(t,o)=>G.create(t,O(e,o,{method:r}));return t.create=e=>Q(O(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),Q(O(e,t))),t.stop=T,t.retry=q,t},Y=Q().create({prefix:"",throwHttpErrors:!1});e.s(["api",0,Y],88614)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/0ht900cau6_ur.js","static/chunks/00l-yd3t8dvwz.js","static/chunks/0bogtdbh.dcu1.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,l=((o=l||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let i=new WeakMap;function u(e,t){this.m=e,this.e=t}let s=u.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)f(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?f(e,n,{get:o,set:t[r++],enumerable:!0}):f(e,n,{get:o,enumerable:!0})}Object.seal(e)}function m(e,t){(null!=t?p(this.c,t):this.m).exports=e}s.s=function(e,t){let r,n;null!=t?n=(r=p(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,d(n,e)},s.j=function(e,t){var r,n;let o,l,u;null!=t?l=(o=p(this.c,t)).exports:(o=this.m,l=this.e);let s=(r=o,n=l,(u=i.get(r))||(i.set(r,u=[]),r.exports=r.namespaceObject=new Proxy(n,{get(e,t){if(a.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of u){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of u)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),u);"object"==typeof e&&null!==e&&s.push(e)},s.v=m,s.n=function(e,t){let r;(r=null!=t?p(this.c,t):this.m).exports=r.namespaceObject=e};let b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}s.i=O,s.A=function(e){return this.r(e)(O.bind(this))},s.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},s.r=function(e){return B(e,this.m).exports},s.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),v=Symbol("turbopack error");function C(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}s.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:u}=j(),s=Object.assign(u,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),s.catch(()=>{})}}),a={get:()=>s,set(e){e!==s&&(s[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,C(t)},e=>{r[v]=e,C(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[v])throw e[v];return e[U]}),{promise:l,resolve:i}=j(),u=Object.assign(()=>i(r),{queueCount:0});function s(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(u.queueCount++,e.push(u)))}return t.map(e=>e[k](s)),u.queueCount?l:r()},function(e){e?i(s[v]=e):l(s[U]),C(n)}),n&&-1===n.status&&(n.status=0)};let P=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}P.prototype=URL.prototype,s.U=P,s.z=function(e){throw Error("dynamic usage of require is not supported")},s.g=globalThis;let S=u.prototype,$=new Map;s.M=$;let _=new Map,E=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],l=o.map(e=>!!$.has(e)||_.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],u=i.map(e=>E.get(e)).filter(e=>e);if(u.length>0){if(u.length===i.length)return void await Promise.all(u);let r=new Set;for(let e of i)E.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));E.set(n,r),u.push(r)}n=Promise.all(u)}else{for(let o of(n=M(e,t,N(r.path)),i))E.has(o)||E.set(o,n)}for(let e of o)_.has(e)||_.set(e,n);await n}S.l=function(e){return T(l.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),i=x.get(o);if(void 0===i){let e=x.set.bind(x,o,A);i=o.then(e).catch(e=>{let o;switch(t){case l.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case l.Parent:o=`from module ${r}`;break;case l.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let i=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw i.name="ChunkLoadError",i}),x.set(o,i)}return i}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(l.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,l){let i="SharedWorker"===e.name,u=[o.map(e=>N(e)).reverse(),r];for(let e of n)u.push(globalThis[e]);let s=new URL(N(t),location.origin),a=JSON.stringify(u);return i?s.searchParams.set("params",a):s.hash="#params="+encodeURIComponent(a),new e(s,l?{...l,type:void 0}:void 0)};let K=/\.js(?:\?[^#]*)?(?:#.*)?$/,q=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return q.test(e)}s.w=function(t,r,n){return e.loadWebAssembly(l.Parent,this.m.id,t,r,n)},s.u=function(t,r){return e.loadWebAssemblyModule(l.Parent,this.m.id,t,r)};let I={};s.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,l.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),l=o.exports;I[e]=o;let i=new u(o,l);try{n(i,o,l)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r<e.length;){let n,o=r+1;for(;o<e.length&&"function"!=typeof e[o];)o++;if(o===e.length)throw Error("malformed chunk format, expected a factory function");let l=e[o];for(let l=r;l<o;l++){let r=e[l],o=t.get(r);if(o){n=o;break}}let i=n??l,u=!1;for(let n=r;n<o;n++){let r=e[n];t.has(r)||(u||(i===l&&Object.defineProperty(l,"name",{value:"module evaluation"}),u=!0),t.set(r,i))}r=o+1}}(t,$)),e.registerChunk(n,r)}let X=new Map;function D(e){let t=X.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(l.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,l.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===l.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(K.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(K.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let l=fetch(N(r)),{instance:i}=await WebAssembly.instantiateStreaming(l,o);return i.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})();
@@ -0,0 +1,16 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:I[17279,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ErrorBoundary"]
3
+ 3:I[39756,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
4
+ 4:I[37457,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
5
+ 5:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"OutletBoundary"]
6
+ 6:"$Sreact.suspense"
7
+ 9:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ViewportBoundary"]
8
+ b:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"MetadataBoundary"]
9
+ d:I[68027,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default",1]
10
+ :HL["/_next/static/chunks/09vfh8lfuacc0.css","style"]
11
+ 0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/09vfh8lfuacc0.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0u5ydb-f0.vxl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0dbhjjzl8qfwv.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}],["$","link",null,{"rel":"icon","href":"/favicon.ico"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n var theme = localStorage.getItem('theme');\n if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {\n document.documentElement.setAttribute('data-theme', 'dark');\n }\n })();\n "}}]]}],["$","body",null,{"children":["$","$L2",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n window.onerror = function(message, source, lineno, colno, error) {\n console.error('[Global Error]', { message, source, lineno, colno, error });\n };\n window.onunhandledrejection = function(event) {\n console.error('[Unhandled Promise Rejection]', event.reason);\n };\n "}}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$@8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/09vfh8lfuacc0.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"0h4f4QFk_KC9FlSRfQACk"}
12
+ e:[]
13
+ 8:"$We"
14
+ a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
15
+ 7:null
16
+ c:[["$","title","0",{"children":"MostBox 文件管理"}],["$","meta","1",{"name":"description","content":"MostBox P2P 文件管理"}]]
@@ -0,0 +1,5 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ViewportBoundary"]
3
+ 3:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"MetadataBoundary"]
4
+ 4:"$Sreact.suspense"
5
+ 0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"MostBox 文件管理"}],["$","meta","1",{"name":"description","content":"MostBox P2P 文件管理"}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0h4f4QFk_KC9FlSRfQACk"}
@@ -0,0 +1,6 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:I[17279,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"ErrorBoundary"]
3
+ 3:I[39756,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
4
+ 4:I[37457,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
5
+ :HL["/_next/static/chunks/09vfh8lfuacc0.css","style"]
6
+ 0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/09vfh8lfuacc0.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0u5ydb-f0.vxl.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0dbhjjzl8qfwv.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"charSet":"UTF-8"}],["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}],["$","link",null,{"rel":"icon","href":"/favicon.ico"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n var theme = localStorage.getItem('theme');\n if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {\n document.documentElement.setAttribute('data-theme', 'dark');\n }\n })();\n "}}]]}],["$","body",null,{"children":["$","$L2",null,{"children":[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n window.onerror = function(message, source, lineno, colno, error) {\n console.error('[Global Error]', { message, source, lineno, colno, error });\n };\n window.onunhandledrejection = function(event) {\n console.error('[Unhandled Promise Rejection]', event.reason);\n };\n "}}],["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]]}]}]]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0h4f4QFk_KC9FlSRfQACk"}
@@ -0,0 +1,5 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:I[97367,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"OutletBoundary"]
3
+ 3:"$Sreact.suspense"
4
+ 0:{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"0h4f4QFk_KC9FlSRfQACk"}
5
+ 4:null
@@ -0,0 +1,5 @@
1
+ 1:"$Sreact.fragment"
2
+ 2:I[39756,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
3
+ 3:I[37457,["/_next/static/chunks/0u5ydb-f0.vxl.js","/_next/static/chunks/0dbhjjzl8qfwv.js"],"default"]
4
+ 4:[]
5
+ 0:{"rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"isPartial":false,"staleTime":300,"varyParams":"$W4","buildId":"0h4f4QFk_KC9FlSRfQACk"}
@@ -0,0 +1,2 @@
1
+ :HL["/_next/static/chunks/09vfh8lfuacc0.css","style"]
2
+ 0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":0,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}}}},"staleTime":300,"buildId":"0h4f4QFk_KC9FlSRfQACk"}