@37chengshan/ompweb 4.0.4 → 4.0.5

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 (84) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +9 -9
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/react-loadable-manifest.json +1 -1
  5. package/.next/required-server-files.js +2 -2
  6. package/.next/required-server-files.json +2 -2
  7. package/.next/routes-manifest.json +24 -2
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  18. package/.next/server/app/api/app-update/route.js +1 -1
  19. package/.next/server/app/api/files/[...path]/route.js +1 -1
  20. package/.next/server/app/api/git/diff/route.js +1 -1
  21. package/.next/server/app/api/git/status/route.js +1 -1
  22. package/.next/server/app/index.html +1 -1
  23. package/.next/server/app/index.rsc +1 -1
  24. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  26. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/login.html +1 -1
  28. package/.next/server/app/login.rsc +1 -1
  29. package/.next/server/app/login.segments/_full.segment.rsc +1 -1
  30. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  31. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  32. package/.next/server/app-paths-manifest.json +9 -9
  33. package/.next/server/middleware-build-manifest.js +1 -1
  34. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  35. package/.next/server/next-font-manifest.js +1 -1
  36. package/.next/server/next-font-manifest.json +1 -1
  37. package/.next/server/pages/404.html +1 -1
  38. package/.next/server/pages/500.html +1 -1
  39. package/.next/standalone/.next/BUILD_ID +1 -1
  40. package/.next/standalone/.next/app-path-routes-manifest.json +9 -9
  41. package/.next/standalone/.next/build-manifest.json +3 -3
  42. package/.next/standalone/.next/react-loadable-manifest.json +1 -1
  43. package/.next/standalone/.next/required-server-files.json +2 -2
  44. package/.next/standalone/.next/routes-manifest.json +24 -2
  45. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  46. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  47. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  48. package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  49. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  50. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  51. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  52. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  53. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  54. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  55. package/.next/standalone/.next/server/app/api/app-update/route.js +1 -1
  56. package/.next/standalone/.next/server/app/api/files/[...path]/route.js +1 -1
  57. package/.next/standalone/.next/server/app/api/git/diff/route.js +1 -1
  58. package/.next/standalone/.next/server/app/api/git/status/route.js +1 -1
  59. package/.next/standalone/.next/server/app/index.html +1 -1
  60. package/.next/standalone/.next/server/app/index.rsc +1 -1
  61. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  62. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
  63. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  64. package/.next/standalone/.next/server/app/login.html +1 -1
  65. package/.next/standalone/.next/server/app/login.rsc +1 -1
  66. package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +1 -1
  67. package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  68. package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  69. package/.next/standalone/.next/server/app-paths-manifest.json +9 -9
  70. package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
  71. package/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  72. package/.next/standalone/.next/server/next-font-manifest.js +1 -1
  73. package/.next/standalone/.next/server/next-font-manifest.json +1 -1
  74. package/.next/standalone/.next/server/pages/404.html +1 -1
  75. package/.next/standalone/.next/server/pages/500.html +1 -1
  76. package/.next/standalone/package.json +22 -4
  77. package/.next/standalone/server.js +1 -1
  78. package/.next/static/chunks/{1147.a11b66ffeb201d02.js → 1147.cb989e1cb0ba5ad6.js} +1 -1
  79. package/.next/static/chunks/{webpack-9691f4590ba70cb8.js → webpack-b10306427dc17cac.js} +1 -1
  80. package/desktop/main.js +17 -0
  81. package/next.config.ts +40 -23
  82. package/package.json +22 -4
  83. /package/.next/static/{r2kW0snAtbTZ8muUOUByQ → db1mVu1uee4ag1NduRcLL}/_buildManifest.js +0 -0
  84. /package/.next/static/{r2kW0snAtbTZ8muUOUByQ → db1mVu1uee4ag1NduRcLL}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var a={};a.id=4037,a.ids=[4037],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>p,GO:()=>k,X:()=>m,_4:()=>d,cV:()=>l,jL:()=>f,k2:()=>n,kv:()=>e,oC:()=>o});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",mov:"video/quicktime",ogv:"video/ogg",mkv:"video/x-matroska"},j={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function k(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function l(a){return g[k(a)]??null}function m(a){return h[k(a)]??null}function n(a){return i[k(a)]??null}function o(a){return j[k(a)]??null}function p(a){let b=k(a);return"pdf"===b||"docx"===b?b:null}},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10279:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/files/[...path]/route",pathname:"/api/files/[...path]",filename:"route",bundlePath:"app/api/files/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/cc/code/ompweb/app/api/files/[...path]/route.ts",nextConfigOutput:"standalone",userland:()=>c(86597),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/files/[...path]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29359:(a,b,c)=>{c.d(b,{jV:()=>l,Iq:()=>k});var d=c(78573);let e=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function f(a){return a.replace(/\\/g,"/")}function g(a){return/[A-Za-z0-9._~+%@/\\:-]/.test(a)}function h(a,b){for(let c of b){let b=[];if(!function a(b,c){if("string"==typeof b)return void c.push(b);if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.values(b))a(d,c)}}(c,b),b.some(b=>(function(a,b){let c=f(b),d=c.startsWith("/")?[c,`file://${c}`]:[c];for(let b of new Set([f(a),f(function(a){try{return decodeURIComponent(a)}catch{return a}}(a))]))for(let a of d){let c=b.indexOf(a);for(;-1!==c;){let d=0===c?"":b[c-1],e=c+a.length;if((0===c||!g(d))&&function(a,b){if(b>=a.length)return!0;let c=a[b];return":"===c?/\d/.test(a[b+1]??""):!g(c)}(b,e))return!0;c=b.indexOf(a,c+1)}}return!1})(b,a)))return!0}return!1}function i(a,b){return b.some(b=>"message"===b.type&&"bashExecution"===b.message.role&&b.message.fullOutputPath===a)}async function j(a,b,c){if(!(b&&e.test(b)))return!1;try{let e=await (0,d.os)(b);if(!e)return!1;return c(a,(0,d.DK)(e))}catch{return!1}}function k(a,b){return j(a,b,h)}function l(a,b){return j(a,b,i)}},33873:a=>{a.exports=require("path")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65644:(a,b,c)=>{c.d(b,{Q:()=>h,r:()=>g});var d=c(23211),e=c(78573);let f={error:"Session not found",code:"session_not_found"};async function g(a){let b=await (0,e.os)(a);return b?{filePath:b}:{response:d.NextResponse.json(f,{status:404})}}function h(a,b=500){return d.NextResponse.json({error:String(a)},{status:b})}},66829:(a,b,c)=>{c.d(b,{H8:()=>d,sj:()=>g,sp:()=>f});class d extends Error{constructor(){super("Request body exceeds the allowed size")}}function e(a){let b=a.headers.get("content-length");if(!b||!/^\d+$/.test(b))return null;let c=Number(b);return Number.isSafeInteger(c)?c:null}async function f(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f){let c=await a.text();if(Buffer.byteLength(c,"utf8")>b)throw new d;return JSON.parse(c)}let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=new Uint8Array(h),j=0;for(let a of g)i.set(a,j),j+=a.byteLength;return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(i))}async function g(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f)return a.formData();let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=a.headers.get("content-type");return new Response(new Blob(g),{headers:i?{"content-type":i}:void 0}).formData()}},74075:a=>{a.exports=require("zlib")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86597:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>A,POST:()=>x});var d=c(23211),e=c(65644),f=c(29021),g=c.n(f),h=c(33873),i=c.n(h),j=c(80547),k=c(1060),l=c(29359);let m=new Set(["error","overwrite","skip"]);function n(a){if(0===a.length)return"No files selected";let b=new Set;for(let c of a){if(!c||"."===c||".."===c||c.includes("\0"))return`Invalid file name: ${c||"(empty)"}`;if(c.includes("/")||c.includes("\\")||i().basename(c)!==c)return`File names must not contain a path: ${c}`;let a="win32"===process.platform?c.toLocaleLowerCase():c;if(b.has(a))return`Duplicate file name in upload: ${c}`;b.add(a)}return null}function o(a,b){let c=[],d=[];for(let e of b){let b,f=i().join(a,e);try{b=g().lstatSync(f)}catch(a){if("ENOENT"===a.code)continue;throw a}c.push(e),(!b.isFile()||b.isSymbolicLink())&&d.push(e)}return{conflicts:c,nonReplaceable:d}}var p=c(66829);let q=new Set(["node_modules",".git",".next","dist","build","__pycache__",".turbo",".cache","coverage",".pytest_cache",".mypy_cache","target","vendor",".DS_Store",".git"]),r=[".pyc"],s=new Set(["list","read","download","meta","preview","watch"]),t={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",html:"html",htm:"html",css:"css",scss:"css",less:"css",json:"json",jsonl:"json",yaml:"yaml",yml:"yaml",toml:"toml",xml:"xml",md:"markdown",mdx:"markdown",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",sql:"sql",graphql:"graphql",gql:"graphql",dockerfile:"dockerfile",tf:"hcl",hcl:"hcl",env:"bash",gitignore:"bash",txt:"text",pdf:"pdf",docx:"word"};function u(a){let b=i().basename(a).toLowerCase();return"dockerfile"===b||b.startsWith("dockerfile.")?"dockerfile":".env"===b||b.startsWith(".env.")?"bash":"makefile"===b||"gnumakefile"===b?"makefile":t[b.split(".").pop()??""]??"text"}function v(a){let b=a.join("/"),c=(0,j.Nw)(b);return(0,j.uK)(c)?c:"/"+b.replace(/^\/+/,"")}async function w(a){let b,c=v(a),e=await (0,j.mc)();if(!(0,j.A$)(c,e))return{response:d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403})};try{b=g().statSync(c)}catch{return{response:d.NextResponse.json({error:"Upload directory not found",code:"upload_directory_not_found"},{status:404})}}if(!b.isDirectory())return{response:d.NextResponse.json({error:"Upload target is not a directory",code:"upload_target_not_directory"},{status:400})};let f=g().realpathSync(c),h=new Set;for(let a of e)try{h.add(g().realpathSync(a))}catch{}return(0,j.A$)(f,h)?{directory:f}:{response:d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403})}}async function x(a,{params:b}){try{let e,f,{path:h}=await b,j=await w(h);if("response"in j)return j.response;let{directory:k}=j,l=a.nextUrl.searchParams.get("type")??"upload";if("upload-check"===l){var c;let b;try{b=await (0,p.sp)(a,1048576)}catch(a){if(a instanceof p.H8)return d.NextResponse.json({error:"Upload check request is too large",code:"upload_check_too_large"},{status:413});b=null}let e=(c=b?.fileNames,Array.isArray(c)&&c.every(a=>"string"==typeof a)?c:null);if(!e)return d.NextResponse.json({error:"fileNames must be an array of strings",code:"invalid_file_names"},{status:400});let f=n(e);if(f)return d.NextResponse.json({error:f},{status:400});return d.NextResponse.json(o(k,e))}if("upload"!==l)return d.NextResponse.json({error:"Invalid upload request type",code:"invalid_upload_type"},{status:400});let q=(f=a.nextUrl.searchParams.get("conflict")??"error",m.has(f)?f:null);if(!q)return d.NextResponse.json({error:"Invalid conflict strategy",code:"invalid_conflict_strategy"},{status:400});try{e=await (0,p.sj)(a,0x6500000)}catch(a){if(a instanceof p.H8)return d.NextResponse.json({error:"Uploads must total 100MB or less",code:"upload_total_too_large"},{status:413});throw a}let r=e.getAll("files").filter(a=>"string"!=typeof a);if(r.some(a=>a.size>0x1900000))return d.NextResponse.json({error:"Each upload must be 25MB or smaller",code:"upload_file_too_large"},{status:413});if(r.reduce((a,b)=>a+b.size,0)>0x6400000)return d.NextResponse.json({error:"Uploads must total 100MB or less",code:"upload_total_too_large"},{status:413});let s=r.map(a=>a.name),t=n(s);if(t)return d.NextResponse.json({error:t},{status:400});let u=o(k,s);if("error"===q&&u.conflicts.length>0)return d.NextResponse.json({error:"One or more files already exist",code:"upload_conflict",conflicts:u.conflicts,nonReplaceable:u.nonReplaceable},{status:409});let v=new Set(u.conflicts),x=new Set(u.nonReplaceable),y=[],z=[],A=[],B=(a,b)=>{A.push({name:a.name,error:b instanceof Error?b.message:String(b)})};for(let a of r){let b,c=i().join(k,a.name);if(v.has(a.name)&&"skip"===q){z.push(a.name);continue}if(v.has(a.name)&&x.has(a.name)){A.push({name:a.name,error:"Cannot replace a directory or symbolic link"});continue}try{b=Buffer.from(await a.arrayBuffer())}catch(b){B(a,b);continue}if(v.has(a.name))try{g().unlinkSync(c)}catch(b){B(a,b);continue}try{g().writeFileSync(c,b,{flag:"wx"}),y.push(a.name)}catch(b){B(a,b)}}return d.NextResponse.json({uploaded:y,skipped:z,errors:A},{status:A.length>0?207:200})}catch(a){return d.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}function y(a,b){let c=g().createReadStream(a,b),d=!1;return new ReadableStream({start(a){c.on("data",b=>{if(!d)try{a.enqueue(new Uint8Array(b))}catch{d=!0,c.destroy()}}),c.once("end",()=>{if(!d){d=!0;try{a.close()}catch{}}}),c.once("error",b=>{if(!d){d=!0;try{a.error(b)}catch{}}})},cancel(){d=!0,c.destroy()}})}function z(a,b,c,d,e=!1){let f={"Content-Type":c,"Cache-Control":"no-cache","Accept-Ranges":"bytes","Content-Disposition":function(a,b=!1){let c=i().basename(a),d=c.replace(/[^\x20-\x7E]|["\\;\r\n]/g,"_")||"download";return`${b?"attachment":"inline"}; filename="${d}"; filename*=UTF-8''${encodeURIComponent(c).replace(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`)}`}(a,e)};if(!d)return new Response(y(a),{headers:{...f,"Content-Length":String(b.size)}});let g=/^bytes=(\d*)-(\d*)$/.exec(d);if(!g)return new Response(null,{status:416,headers:{...f,"Content-Range":`bytes */${b.size}`}});let h=g[1]?Number(g[1]):0,j=g[2]?Number(g[2]):b.size-1;if(!g[1]&&g[2]){let a=Number(g[2]);h=Math.max(b.size-a,0),j=b.size-1}if(!Number.isFinite(h)||!Number.isFinite(j)||h<0||j<h||h>=b.size)return new Response(null,{status:416,headers:{...f,"Content-Range":`bytes */${b.size}`}});let k=(j=Math.min(j,b.size-1))-h+1;return new Response(y(a,{start:h,end:j}),{status:206,headers:{...f,"Content-Length":String(k),"Content-Range":`bytes ${h}-${j}/${b.size}`}})}async function A(a,{params:b}){try{var f,h,m;let e,{path:n}=await b,o=v(n),p=(f=a.nextUrl.searchParams.get("type")??"list",s.has(f)?f:null);if(!p)return d.NextResponse.json({error:"Invalid file request type",code:"invalid_request_type"},{status:400});let t=a.nextUrl.searchParams.get("sessionId"),w=await (0,j.mc)(),x=(0,j.A$)(o,w),y="read"===p&&(0,j.id)(o),A=!x&&!y&&"list"!==p&&await (0,l.Iq)(o,t);if(!x&&!y&&!A)return d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403});try{e=g().statSync(o)}catch{return d.NextResponse.json({error:"Not found",code:"file_not_found"},{status:404})}if(!A&&!y&&!(0,j.B7)(o,w))return d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403});if("read"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});let b=(0,k.cV)(o);if(b){if(e.size>k.kv)return d.NextResponse.json({error:"Image too large (>10MB)",code:"image_too_large"},{status:413});return z(o,e,b,a.headers.get("range"))}let c=(0,k.X)(o);if(c)return z(o,e,c,a.headers.get("range"));let f=(0,k.k2)(o);if(f)return z(o,e,f,a.headers.get("range"));let h=(0,k.oC)(o);if(h)return z(o,e,h,a.headers.get("range"));if(e.size>k._4)return d.NextResponse.json({error:"File too large for preview (>256KB)",code:"file_too_large_preview"},{status:413});let i=g().readFileSync(o,"utf-8"),j=u(o);return d.NextResponse.json({content:i,language:j,size:e.size})}if("download"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});let b=(0,k.cV)(o)||(0,k.X)(o)||(0,k.k2)(o)||(0,k.oC)(o)||"application/octet-stream";return z(o,e,b,a.headers.get("range"),!0)}if("meta"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});let a=(0,k.cV)(o),b=(0,k.X)(o),c=(0,k.k2)(o),f=(0,k.oC)(o);return d.NextResponse.json({size:e.size,language:u(o),mime:a||b||c||f||"text/plain",previewKind:(0,k.Ac)(o)})}if("preview"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});if("docx"!==(0,k.GO)(o))return d.NextResponse.json({error:"Preview not available for this file type",code:"preview_unavailable"},{status:400});if(e.size>k.jL)return d.NextResponse.json({error:"DOCX too large for preview (>10MB)",code:"docx_too_large"},{status:413});let a=await c.e(3379).then(c.t.bind(c,53379,19)),b=(h=(await a.convertToHtml({path:o},{externalFileAccess:!1,convertImage:a.images.dataUri})).value,m=i().basename(o),`<!doctype html>
1
+ "use strict";(()=>{var a={};a.id=4037,a.ids=[4037],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>p,GO:()=>k,JI:()=>q,X:()=>m,_4:()=>d,cV:()=>l,jL:()=>f,k2:()=>n,kv:()=>e,oC:()=>o});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",mov:"video/quicktime",ogv:"video/ogg",mkv:"video/x-matroska"},j={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function k(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function l(a){return g[k(a)]??null}function m(a){return h[k(a)]??null}function n(a){return i[k(a)]??null}function o(a){return j[k(a)]??null}function p(a){let b=k(a);return"pdf"===b||"docx"===b?b:null}function q(a){return"image/svg+xml"!==a?{}:{"Content-Security-Policy":"default-src 'none'; img-src data:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'; frame-ancestors 'self'"}}},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10279:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/files/[...path]/route",pathname:"/api/files/[...path]",filename:"route",bundlePath:"app/api/files/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/cc/code/ompweb/app/api/files/[...path]/route.ts",nextConfigOutput:"standalone",userland:()=>c(86597),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/files/[...path]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29359:(a,b,c)=>{c.d(b,{jV:()=>l,Iq:()=>k});var d=c(78573);let e=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function f(a){return a.replace(/\\/g,"/")}function g(a){return/[A-Za-z0-9._~+%@/\\:-]/.test(a)}function h(a,b){for(let c of b){let b=[];if(!function a(b,c){if("string"==typeof b)return void c.push(b);if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.values(b))a(d,c)}}(c,b),b.some(b=>(function(a,b){let c=f(b),d=c.startsWith("/")?[c,`file://${c}`]:[c];for(let b of new Set([f(a),f(function(a){try{return decodeURIComponent(a)}catch{return a}}(a))]))for(let a of d){let c=b.indexOf(a);for(;-1!==c;){let d=0===c?"":b[c-1],e=c+a.length;if((0===c||!g(d))&&function(a,b){if(b>=a.length)return!0;let c=a[b];return":"===c?/\d/.test(a[b+1]??""):!g(c)}(b,e))return!0;c=b.indexOf(a,c+1)}}return!1})(b,a)))return!0}return!1}function i(a,b){return b.some(b=>"message"===b.type&&"bashExecution"===b.message.role&&b.message.fullOutputPath===a)}async function j(a,b,c){if(!(b&&e.test(b)))return!1;try{let e=await (0,d.os)(b);if(!e)return!1;return c(a,(0,d.DK)(e))}catch{return!1}}function k(a,b){return j(a,b,h)}function l(a,b){return j(a,b,i)}},33873:a=>{a.exports=require("path")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65644:(a,b,c)=>{c.d(b,{Q:()=>h,r:()=>g});var d=c(23211),e=c(78573);let f={error:"Session not found",code:"session_not_found"};async function g(a){let b=await (0,e.os)(a);return b?{filePath:b}:{response:d.NextResponse.json(f,{status:404})}}function h(a,b=500){return d.NextResponse.json({error:String(a)},{status:b})}},66829:(a,b,c)=>{c.d(b,{H8:()=>d,sj:()=>g,sp:()=>f});class d extends Error{constructor(){super("Request body exceeds the allowed size")}}function e(a){let b=a.headers.get("content-length");if(!b||!/^\d+$/.test(b))return null;let c=Number(b);return Number.isSafeInteger(c)?c:null}async function f(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f){let c=await a.text();if(Buffer.byteLength(c,"utf8")>b)throw new d;return JSON.parse(c)}let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=new Uint8Array(h),j=0;for(let a of g)i.set(a,j),j+=a.byteLength;return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(i))}async function g(a,b){let c=e(a);if(null!==c&&c>b)throw new d;let f=a.body?.getReader();if(!f)return a.formData();let g=[],h=0;try{for(;;){let{done:a,value:c}=await f.read();if(a)break;if(h+c.byteLength>b)throw await f.cancel().catch(()=>{}),new d;h+=c.byteLength;let e=new Uint8Array(c.byteLength);e.set(c),g.push(e)}}finally{f.releaseLock()}let i=a.headers.get("content-type");return new Response(new Blob(g),{headers:i?{"content-type":i}:void 0}).formData()}},74075:a=>{a.exports=require("zlib")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},86597:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>A,POST:()=>x});var d=c(23211),e=c(65644),f=c(29021),g=c.n(f),h=c(33873),i=c.n(h),j=c(80547),k=c(1060),l=c(29359);let m=new Set(["error","overwrite","skip"]);function n(a){if(0===a.length)return"No files selected";let b=new Set;for(let c of a){if(!c||"."===c||".."===c||c.includes("\0"))return`Invalid file name: ${c||"(empty)"}`;if(c.includes("/")||c.includes("\\")||i().basename(c)!==c)return`File names must not contain a path: ${c}`;let a="win32"===process.platform?c.toLocaleLowerCase():c;if(b.has(a))return`Duplicate file name in upload: ${c}`;b.add(a)}return null}function o(a,b){let c=[],d=[];for(let e of b){let b,f=i().join(a,e);try{b=g().lstatSync(f)}catch(a){if("ENOENT"===a.code)continue;throw a}c.push(e),(!b.isFile()||b.isSymbolicLink())&&d.push(e)}return{conflicts:c,nonReplaceable:d}}var p=c(66829);let q=new Set(["node_modules",".git",".next","dist","build","__pycache__",".turbo",".cache","coverage",".pytest_cache",".mypy_cache","target","vendor",".DS_Store",".git"]),r=[".pyc"],s=new Set(["list","read","download","meta","preview","watch"]),t={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",html:"html",htm:"html",css:"css",scss:"css",less:"css",json:"json",jsonl:"json",yaml:"yaml",yml:"yaml",toml:"toml",xml:"xml",md:"markdown",mdx:"markdown",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",sql:"sql",graphql:"graphql",gql:"graphql",dockerfile:"dockerfile",tf:"hcl",hcl:"hcl",env:"bash",gitignore:"bash",txt:"text",pdf:"pdf",docx:"word"};function u(a){let b=i().basename(a).toLowerCase();return"dockerfile"===b||b.startsWith("dockerfile.")?"dockerfile":".env"===b||b.startsWith(".env.")?"bash":"makefile"===b||"gnumakefile"===b?"makefile":t[b.split(".").pop()??""]??"text"}function v(a){let b=a.join("/"),c=(0,j.Nw)(b);return(0,j.uK)(c)?c:"/"+b.replace(/^\/+/,"")}async function w(a){let b,c=v(a),e=await (0,j.mc)();if(!(0,j.A$)(c,e))return{response:d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403})};try{b=g().statSync(c)}catch{return{response:d.NextResponse.json({error:"Upload directory not found",code:"upload_directory_not_found"},{status:404})}}if(!b.isDirectory())return{response:d.NextResponse.json({error:"Upload target is not a directory",code:"upload_target_not_directory"},{status:400})};let f=g().realpathSync(c),h=new Set;for(let a of e)try{h.add(g().realpathSync(a))}catch{}return(0,j.A$)(f,h)?{directory:f}:{response:d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403})}}async function x(a,{params:b}){try{let e,f,{path:h}=await b,j=await w(h);if("response"in j)return j.response;let{directory:k}=j,l=a.nextUrl.searchParams.get("type")??"upload";if("upload-check"===l){var c;let b;try{b=await (0,p.sp)(a,1048576)}catch(a){if(a instanceof p.H8)return d.NextResponse.json({error:"Upload check request is too large",code:"upload_check_too_large"},{status:413});b=null}let e=(c=b?.fileNames,Array.isArray(c)&&c.every(a=>"string"==typeof a)?c:null);if(!e)return d.NextResponse.json({error:"fileNames must be an array of strings",code:"invalid_file_names"},{status:400});let f=n(e);if(f)return d.NextResponse.json({error:f},{status:400});return d.NextResponse.json(o(k,e))}if("upload"!==l)return d.NextResponse.json({error:"Invalid upload request type",code:"invalid_upload_type"},{status:400});let q=(f=a.nextUrl.searchParams.get("conflict")??"error",m.has(f)?f:null);if(!q)return d.NextResponse.json({error:"Invalid conflict strategy",code:"invalid_conflict_strategy"},{status:400});try{e=await (0,p.sj)(a,0x6500000)}catch(a){if(a instanceof p.H8)return d.NextResponse.json({error:"Uploads must total 100MB or less",code:"upload_total_too_large"},{status:413});throw a}let r=e.getAll("files").filter(a=>"string"!=typeof a);if(r.some(a=>a.size>0x1900000))return d.NextResponse.json({error:"Each upload must be 25MB or smaller",code:"upload_file_too_large"},{status:413});if(r.reduce((a,b)=>a+b.size,0)>0x6400000)return d.NextResponse.json({error:"Uploads must total 100MB or less",code:"upload_total_too_large"},{status:413});let s=r.map(a=>a.name),t=n(s);if(t)return d.NextResponse.json({error:t},{status:400});let u=o(k,s);if("error"===q&&u.conflicts.length>0)return d.NextResponse.json({error:"One or more files already exist",code:"upload_conflict",conflicts:u.conflicts,nonReplaceable:u.nonReplaceable},{status:409});let v=new Set(u.conflicts),x=new Set(u.nonReplaceable),y=[],z=[],A=[],B=(a,b)=>{A.push({name:a.name,error:b instanceof Error?b.message:String(b)})};for(let a of r){let b,c=i().join(k,a.name);if(v.has(a.name)&&"skip"===q){z.push(a.name);continue}if(v.has(a.name)&&x.has(a.name)){A.push({name:a.name,error:"Cannot replace a directory or symbolic link"});continue}try{b=Buffer.from(await a.arrayBuffer())}catch(b){B(a,b);continue}if(v.has(a.name))try{g().unlinkSync(c)}catch(b){B(a,b);continue}try{g().writeFileSync(c,b,{flag:"wx"}),y.push(a.name)}catch(b){B(a,b)}}return d.NextResponse.json({uploaded:y,skipped:z,errors:A},{status:A.length>0?207:200})}catch(a){return d.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}function y(a,b){let c=g().createReadStream(a,b),d=!1;return new ReadableStream({start(a){c.on("data",b=>{if(!d)try{a.enqueue(new Uint8Array(b))}catch{d=!0,c.destroy()}}),c.once("end",()=>{if(!d){d=!0;try{a.close()}catch{}}}),c.once("error",b=>{if(!d){d=!0;try{a.error(b)}catch{}}})},cancel(){d=!0,c.destroy()}})}function z(a,b,c,d,e=!1){let f={"Content-Type":c,"Cache-Control":"no-cache","Accept-Ranges":"bytes","Content-Disposition":function(a,b=!1){let c=i().basename(a),d=c.replace(/[^\x20-\x7E]|["\\;\r\n]/g,"_")||"download";return`${b?"attachment":"inline"}; filename="${d}"; filename*=UTF-8''${encodeURIComponent(c).replace(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`)}`}(a,e),...(0,k.JI)(c)};if(!d)return new Response(y(a),{headers:{...f,"Content-Length":String(b.size)}});let g=/^bytes=(\d*)-(\d*)$/.exec(d);if(!g)return new Response(null,{status:416,headers:{...f,"Content-Range":`bytes */${b.size}`}});let h=g[1]?Number(g[1]):0,j=g[2]?Number(g[2]):b.size-1;if(!g[1]&&g[2]){let a=Number(g[2]);h=Math.max(b.size-a,0),j=b.size-1}if(!Number.isFinite(h)||!Number.isFinite(j)||h<0||j<h||h>=b.size)return new Response(null,{status:416,headers:{...f,"Content-Range":`bytes */${b.size}`}});let l=(j=Math.min(j,b.size-1))-h+1;return new Response(y(a,{start:h,end:j}),{status:206,headers:{...f,"Content-Length":String(l),"Content-Range":`bytes ${h}-${j}/${b.size}`}})}async function A(a,{params:b}){try{var f,h,m;let e,{path:n}=await b,o=v(n),p=(f=a.nextUrl.searchParams.get("type")??"list",s.has(f)?f:null);if(!p)return d.NextResponse.json({error:"Invalid file request type",code:"invalid_request_type"},{status:400});let t=a.nextUrl.searchParams.get("sessionId"),w=await (0,j.mc)(),x=(0,j.A$)(o,w),y="read"===p&&(0,j.id)(o),A=!x&&!y&&"list"!==p&&await (0,l.Iq)(o,t);if(!x&&!y&&!A)return d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403});try{e=g().statSync(o)}catch{return d.NextResponse.json({error:"Not found",code:"file_not_found"},{status:404})}if(!A&&!y&&!(0,j.B7)(o,w))return d.NextResponse.json({error:"Access denied",code:"access_denied"},{status:403});if("read"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});let b=(0,k.cV)(o);if(b){if(e.size>k.kv)return d.NextResponse.json({error:"Image too large (>10MB)",code:"image_too_large"},{status:413});return z(o,e,b,a.headers.get("range"))}let c=(0,k.X)(o);if(c)return z(o,e,c,a.headers.get("range"));let f=(0,k.k2)(o);if(f)return z(o,e,f,a.headers.get("range"));let h=(0,k.oC)(o);if(h)return z(o,e,h,a.headers.get("range"));if(e.size>k._4)return d.NextResponse.json({error:"File too large for preview (>256KB)",code:"file_too_large_preview"},{status:413});let i=g().readFileSync(o,"utf-8"),j=u(o);return d.NextResponse.json({content:i,language:j,size:e.size})}if("download"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});let b=(0,k.cV)(o)||(0,k.X)(o)||(0,k.k2)(o)||(0,k.oC)(o)||"application/octet-stream";return z(o,e,b,a.headers.get("range"),!0)}if("meta"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});let a=(0,k.cV)(o),b=(0,k.X)(o),c=(0,k.k2)(o),f=(0,k.oC)(o);return d.NextResponse.json({size:e.size,language:u(o),mime:a||b||c||f||"text/plain",previewKind:(0,k.Ac)(o)})}if("preview"===p){if(!e.isFile())return d.NextResponse.json({error:"Not a file",code:"not_a_file"},{status:400});if("docx"!==(0,k.GO)(o))return d.NextResponse.json({error:"Preview not available for this file type",code:"preview_unavailable"},{status:400});if(e.size>k.jL)return d.NextResponse.json({error:"DOCX too large for preview (>10MB)",code:"docx_too_large"},{status:413});let a=await c.e(3379).then(c.t.bind(c,53379,19)),b=(h=(await a.convertToHtml({path:o},{externalFileAccess:!1,convertImage:a.images.dataUri})).value,m=i().basename(o),`<!doctype html>
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var a={};a.id=2504,a.ids=[2504],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>p,GO:()=>k,X:()=>m,_4:()=>d,cV:()=>l,jL:()=>f,k2:()=>n,kv:()=>e,oC:()=>o});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",mov:"video/quicktime",ogv:"video/ogg",mkv:"video/x-matroska"},j={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function k(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function l(a){return g[k(a)]??null}function m(a){return h[k(a)]??null}function n(a){return i[k(a)]??null}function o(a){return j[k(a)]??null}function p(a){let b=k(a);return"pdf"===b||"docx"===b?b:null}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33012:(a,b,c)=>{c.d(b,{S:()=>u,$:()=>r});var d=c(79646),e=c(29021),f=c.n(e),g=c(33873),h=c.n(g),i=c(28354),j=c(1060);let k=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function l(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:k.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let m=(0,i.promisify)(d.execFile);async function n(a,b,c=8388608){let{stdout:d}=await m("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function o(a){try{return(await n(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function p(a,b){let c=h().relative(h().resolve(a),h().resolve(b));return""===c||!c.startsWith(`..${h().sep}`)&&".."!==c&&!h().isAbsolute(c)}async function q(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a++){let d=b[a];if(!d||d.length<4||" "!==d[2])continue;let e=d[0],f=d[1],g={path:d.slice(3),indexStatus:e,worktreeStatus:f};("R"===e||"C"===e||"R"===f||"C"===f)&&(g.originalPath=b[++a]||void 0),c.push(g)}return c}(await n(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function r(a){let b=await o(a);if(!b)return{isGitRepository:!1,repositoryRoot:null,files:[]};let c=(await q(b)).flatMap(c=>{let d=h().resolve(b,c.path);return p(a,d)?[{filePath:d,...l(c),indexStatus:c.indexStatus,worktreeStatus:c.worktreeStatus}]:[]});return{isGitRepository:!0,repositoryRoot:b,files:c}}function s(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
1
+ "use strict";(()=>{var a={};a.id=2504,a.ids=[2504],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>p,GO:()=>k,JI:()=>q,X:()=>m,_4:()=>d,cV:()=>l,jL:()=>f,k2:()=>n,kv:()=>e,oC:()=>o});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",mov:"video/quicktime",ogv:"video/ogg",mkv:"video/x-matroska"},j={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function k(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function l(a){return g[k(a)]??null}function m(a){return h[k(a)]??null}function n(a){return i[k(a)]??null}function o(a){return j[k(a)]??null}function p(a){let b=k(a);return"pdf"===b||"docx"===b?b:null}function q(a){return"image/svg+xml"!==a?{}:{"Content-Security-Policy":"default-src 'none'; img-src data:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'; frame-ancestors 'self'"}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33012:(a,b,c)=>{c.d(b,{S:()=>u,$:()=>r});var d=c(79646),e=c(29021),f=c.n(e),g=c(33873),h=c.n(g),i=c(28354),j=c(1060);let k=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function l(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:k.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let m=(0,i.promisify)(d.execFile);async function n(a,b,c=8388608){let{stdout:d}=await m("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function o(a){try{return(await n(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function p(a,b){let c=h().relative(h().resolve(a),h().resolve(b));return""===c||!c.startsWith(`..${h().sep}`)&&".."!==c&&!h().isAbsolute(c)}async function q(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a++){let d=b[a];if(!d||d.length<4||" "!==d[2])continue;let e=d[0],f=d[1],g={path:d.slice(3),indexStatus:e,worktreeStatus:f};("R"===e||"C"===e||"R"===f||"C"===f)&&(g.originalPath=b[++a]||void 0),c.push(g)}return c}(await n(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function r(a){let b=await o(a);if(!b)return{isGitRepository:!1,repositoryRoot:null,files:[]};let c=(await q(b)).flatMap(c=>{let d=h().resolve(b,c.path);return p(a,d)?[{filePath:d,...l(c),indexStatus:c.indexStatus,worktreeStatus:c.worktreeStatus}]:[]});return{isGitRepository:!0,repositoryRoot:b,files:c}}function s(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
2
2
  new file mode 100644
3
3
  --- /dev/null
4
4
  +++ b/${a}
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var a={};a.id=3507,a.ids=[3507],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>p,GO:()=>k,X:()=>m,_4:()=>d,cV:()=>l,jL:()=>f,k2:()=>n,kv:()=>e,oC:()=>o});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",mov:"video/quicktime",ogv:"video/ogg",mkv:"video/x-matroska"},j={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function k(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function l(a){return g[k(a)]??null}function m(a){return h[k(a)]??null}function n(a){return i[k(a)]??null}function o(a){return j[k(a)]??null}function p(a){let b=k(a);return"pdf"===b||"docx"===b?b:null}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33012:(a,b,c)=>{c.d(b,{S:()=>u,$:()=>r});var d=c(79646),e=c(29021),f=c.n(e),g=c(33873),h=c.n(g),i=c(28354),j=c(1060);let k=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function l(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:k.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let m=(0,i.promisify)(d.execFile);async function n(a,b,c=8388608){let{stdout:d}=await m("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function o(a){try{return(await n(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function p(a,b){let c=h().relative(h().resolve(a),h().resolve(b));return""===c||!c.startsWith(`..${h().sep}`)&&".."!==c&&!h().isAbsolute(c)}async function q(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a++){let d=b[a];if(!d||d.length<4||" "!==d[2])continue;let e=d[0],f=d[1],g={path:d.slice(3),indexStatus:e,worktreeStatus:f};("R"===e||"C"===e||"R"===f||"C"===f)&&(g.originalPath=b[++a]||void 0),c.push(g)}return c}(await n(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function r(a){let b=await o(a);if(!b)return{isGitRepository:!1,repositoryRoot:null,files:[]};let c=(await q(b)).flatMap(c=>{let d=h().resolve(b,c.path);return p(a,d)?[{filePath:d,...l(c),indexStatus:c.indexStatus,worktreeStatus:c.worktreeStatus}]:[]});return{isGitRepository:!0,repositoryRoot:b,files:c}}function s(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
1
+ "use strict";(()=>{var a={};a.id=3507,a.ids=[3507],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>p,GO:()=>k,JI:()=>q,X:()=>m,_4:()=>d,cV:()=>l,jL:()=>f,k2:()=>n,kv:()=>e,oC:()=>o});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",mov:"video/quicktime",ogv:"video/ogg",mkv:"video/x-matroska"},j={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function k(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function l(a){return g[k(a)]??null}function m(a){return h[k(a)]??null}function n(a){return i[k(a)]??null}function o(a){return j[k(a)]??null}function p(a){let b=k(a);return"pdf"===b||"docx"===b?b:null}function q(a){return"image/svg+xml"!==a?{}:{"Content-Security-Policy":"default-src 'none'; img-src data:; style-src 'unsafe-inline'; base-uri 'none'; form-action 'none'; frame-ancestors 'self'"}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33012:(a,b,c)=>{c.d(b,{S:()=>u,$:()=>r});var d=c(79646),e=c(29021),f=c.n(e),g=c(33873),h=c.n(g),i=c(28354),j=c(1060);let k=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function l(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:k.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let m=(0,i.promisify)(d.execFile);async function n(a,b,c=8388608){let{stdout:d}=await m("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function o(a){try{return(await n(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function p(a,b){let c=h().relative(h().resolve(a),h().resolve(b));return""===c||!c.startsWith(`..${h().sep}`)&&".."!==c&&!h().isAbsolute(c)}async function q(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a++){let d=b[a];if(!d||d.length<4||" "!==d[2])continue;let e=d[0],f=d[1],g={path:d.slice(3),indexStatus:e,worktreeStatus:f};("R"===e||"C"===e||"R"===f||"C"===f)&&(g.originalPath=b[++a]||void 0),c.push(g)}return c}(await n(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function r(a){let b=await o(a);if(!b)return{isGitRepository:!1,repositoryRoot:null,files:[]};let c=(await q(b)).flatMap(c=>{let d=h().resolve(b,c.path);return p(a,d)?[{filePath:d,...l(c),indexStatus:c.indexStatus,worktreeStatus:c.worktreeStatus}]:[]});return{isGitRepository:!0,repositoryRoot:b,files:c}}function s(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
2
2
  new file mode 100644
3
3
  --- /dev/null
4
4
  +++ b/${a}
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" translate="no" class="__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="preload" href="/_next/static/media/7deddc85b7ffd1dc-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/97ac91773d3121b2-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/b20daecae68a588f-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/ec14413c594b3356-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/5fe2a8af79a7efdf.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/921bec6c70de20d4.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/7bbf54d710e156ee.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9691f4590ba70cb8.js"/><script src="/_next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js" async=""></script><script src="/_next/static/chunks/3794-d7cddff008311ab3.js" async=""></script><script src="/_next/static/chunks/main-app-14cb310088a8e6b1.js" async=""></script><script src="/_next/static/chunks/2584-d4cd2d8de76d5e35.js" async=""></script><script src="/_next/static/chunks/app/error-9ba463bef8c2cf06.js" async=""></script><script src="/_next/static/chunks/app/global-error-871c4baa96801c4e.js" async=""></script><script src="/_next/static/chunks/app/page-e7e7426ef3ec9ec1.js" async=""></script><meta name="theme-color" content="#FAF9F6" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#1B1916" media="(prefers-color-scheme: dark)"/><title>omp web</title><meta name="description" content="Web UI for the oh-my-pi (omp) coding agent"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="omp web"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/favicon.ico?8aa486c701a3d218" type="image/x-icon" sizes="512x512"/><meta name="next-size-adjust" content=""/><meta name="google" content="notranslate"/><script>(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();</script><script>(function(){try{var l=localStorage.getItem("omp-lang");if(l!=="en"&&l!=="zh-CN"&&l!=="ja"){var n=(navigator.language||"").toLowerCase();l=n.indexOf("zh")===0?"zh-CN":n.indexOf("ja")===0?"ja":"en"}document.documentElement.lang=l}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body translate="no" class="notranslate" style="height:100dvh;display:flex;flex-direction:column"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9691f4590ba70cb8.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[57121,[],\"\"]\n4:I[87460,[\"2584\",\"static/chunks/2584-d4cd2d8de76d5e35.js\",\"8039\",\"static/chunks/app/error-9ba463bef8c2cf06.js\"],\"default\"]\n5:I[74581,[],\"\"]\na:I[54690,[\"4219\",\"static/chunks/app/global-error-871c4baa96801c4e.js\"],\"default\"]\n:HL[\"/_next/static/media/7deddc85b7ffd1dc-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/97ac91773d3121b2-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/b20daecae68a588f-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/ec14413c594b3356-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/5fe2a8af79a7efdf.css\",\"style\"]\n:HL[\"/_next/static/css/921bec6c70de20d4.css\",\"style\"]\n:HL[\"/_next/static/css/7bbf54d710e156ee.css\",\"style\"]\n2:T6ce,(function(){try{var t=localStorage.getItem(\"omp-theme\")||\"system\";var d=matchMedia(\"(prefers-color-scheme: dark)\").matches;var darkThemes=[\"dark\",\"oled\",\"nord\",\"dracula\",\"pine\",\"navy\",\"aurora-flow\",\"dawn-flow\",\"cosmic-flow\",\"ocean-flow\",\"sakura-flow\",\"bamboo-flow\"];var isD=t===\"system\"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add(\"dark\")}else{document.documentElement.classList.remove(\"dark\")}if(t\u0026\u0026t!==\"system\"){document.documentElement.setAttribute(\"data-theme\",t)}else{document.documentElement.removeAttribute(\"data-theme\")}if(t===\"custom\"){try{var c=JSON.parse(localStorage.getItem(\"omp-custom-theme\"));if(c){var r=document.documentElement;r.style.setProperty(\"--accent\",c.accent);r.style.setProperty(\"--bg\",c.bg);r.style.setProperty(\"--omp-o\",c.accent);r.style.setProperty(\"--omp-m\",\"color-mix(in srgb, \"+c.accent+\" 65%, #F59E0B)\");r.style.setProperty(\"--omp-p\",\"color-mix(in srgb, \"+c.accent+\" 65%, #38BDF8)\");r.setAttribute(\"data-custom-mode\",c.mode||\"static\");if(c.isDark){r.classList.add(\"dark\")}else{r.classList.remove(\"dark\")}}}catch(e){}}else{document.documentElement.removeAttribute(\"data-custom-mode\")}try{var mp=JSON.parse(localStorage.getItem(\"omp-motion-prefs\")||\"null\");if(mp){var doc=document.documentElement;doc.setAttribute(\"data-animations\",mp.enabled!==false?\"true\":\"false\");doc.setAttribute(\"data-animation-beam\",(mp.enabled!==false\u0026\u0026mp.chatBorderBeam!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-omp\",(mp.enabled!==false\u0026\u0026mp.ompBouncing!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-thinking\",(mp.enabled!==false\u0026\u0026mp.thinkingPulse!==false)?\"true\":\"false\");if(mp.beamSpeed)doc.style.setProperty(\"--omp-beam-speed\",mp.beamSpeed+\"s\");}}catch(e){}}catch(e){}})();0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5fe2a8af79a7efdf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/921bec6c70de20d4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7bbf54d710e156ee.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"translate\":\"no\",\"className\":\"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"google\",\"content\":\"notranslate\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var l=localStorage.getItem(\\\"omp-lang\\\");if(l!==\\\"en\\\"\u0026\u0026l!==\\\"zh-CN\\\"\u0026\u0026l!==\\\"ja\\\"){var n=(navigator.language||\\\"\\\").toLowerCase();l=n.indexOf(\\\"zh\\\")===0?\\\"zh-CN\\\":n.indexOf(\\\"ja\\\")===0?\\\"ja\\\":\\\"en\\\"}document.documentElement.lang=l}catch(e){}})();\"}}]]}],[\"$\",\"body\",null,{\"translate\":\"no\",\"className\":\"notranslate\",\"style\":{\"height\":\"100dvh\",\"display\":\"flex\",\"flexDirection\":\"column\"},\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":null,\"template\":[\"$\",\"$L5\",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)}}\"}}],\"$L6\",\"$L7\"]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]]}],{\"children\":[\"$L8\",{},null,false,null]},null,false,null],\"$L9\",false]],\"m\":\"$undefined\",\"G\":[\"$a\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"r2kW0snAtbTZ8muUOUByQ\"}\nb:I[61304,[],\"ClientPageRoot\"]\nc:I[66919,[\"8974\",\"static/chunks/app/page-e7e7426ef3ec9ec1.js\"],\"default\"]\nf:I[90484,[],\"OutletBoundary\"]\n10:\"$Sreact.suspense\"\n12:I[90484,[],\"ViewportBoundary\"]\n14:I[90484,[],\"MetadataBoundary\"]\n6:[\"$\",\"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}]\n7:[\"$\",\"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.\"}]}]\n8:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lb\",null,{\"Component\":\"$c\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@d\",\"$@e\"]}}],null,[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@11\"}]}]]}]\n9:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\nd:{}\ne:\"$8:props:children:0:props:serverProvidedParams:params\"\n13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#FAF9F6\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#1B1916\",\"media\":\"(prefers-color-scheme: dark)\"}]]\n16:I[86869,[],\"IconMark\"]\n11:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"omp web\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the oh-my-pi (omp) coding agent\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"omp web\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"7\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?8aa486c701a3d218\",\"type\":\"image/x-icon\",\"sizes\":\"512x512\"}],[\"$\",\"$L16\",\"8\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" translate="no" class="__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="preload" href="/_next/static/media/7deddc85b7ffd1dc-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/97ac91773d3121b2-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/b20daecae68a588f-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/ec14413c594b3356-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/5fe2a8af79a7efdf.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/921bec6c70de20d4.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/7bbf54d710e156ee.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-b10306427dc17cac.js"/><script src="/_next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js" async=""></script><script src="/_next/static/chunks/3794-d7cddff008311ab3.js" async=""></script><script src="/_next/static/chunks/main-app-14cb310088a8e6b1.js" async=""></script><script src="/_next/static/chunks/2584-d4cd2d8de76d5e35.js" async=""></script><script src="/_next/static/chunks/app/error-9ba463bef8c2cf06.js" async=""></script><script src="/_next/static/chunks/app/global-error-871c4baa96801c4e.js" async=""></script><script src="/_next/static/chunks/app/page-e7e7426ef3ec9ec1.js" async=""></script><meta name="theme-color" content="#FAF9F6" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#1B1916" media="(prefers-color-scheme: dark)"/><title>omp web</title><meta name="description" content="Web UI for the oh-my-pi (omp) coding agent"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="omp web"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/favicon.ico?8aa486c701a3d218" type="image/x-icon" sizes="512x512"/><meta name="next-size-adjust" content=""/><meta name="google" content="notranslate"/><script>(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();</script><script>(function(){try{var l=localStorage.getItem("omp-lang");if(l!=="en"&&l!=="zh-CN"&&l!=="ja"){var n=(navigator.language||"").toLowerCase();l=n.indexOf("zh")===0?"zh-CN":n.indexOf("ja")===0?"ja":"en"}document.documentElement.lang=l}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body translate="no" class="notranslate" style="height:100dvh;display:flex;flex-direction:column"><div hidden=""><!--$--><!--/$--></div><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><!--$--><!--/$--><script src="/_next/static/chunks/webpack-b10306427dc17cac.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[57121,[],\"\"]\n4:I[87460,[\"2584\",\"static/chunks/2584-d4cd2d8de76d5e35.js\",\"8039\",\"static/chunks/app/error-9ba463bef8c2cf06.js\"],\"default\"]\n5:I[74581,[],\"\"]\na:I[54690,[\"4219\",\"static/chunks/app/global-error-871c4baa96801c4e.js\"],\"default\"]\n:HL[\"/_next/static/media/7deddc85b7ffd1dc-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/97ac91773d3121b2-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/b20daecae68a588f-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/ec14413c594b3356-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/5fe2a8af79a7efdf.css\",\"style\"]\n:HL[\"/_next/static/css/921bec6c70de20d4.css\",\"style\"]\n:HL[\"/_next/static/css/7bbf54d710e156ee.css\",\"style\"]\n2:T6ce,(function(){try{var t=localStorage.getItem(\"omp-theme\")||\"system\";var d=matchMedia(\"(prefers-color-scheme: dark)\").matches;var darkThemes=[\"dark\",\"oled\",\"nord\",\"dracula\",\"pine\",\"navy\",\"aurora-flow\",\"dawn-flow\",\"cosmic-flow\",\"ocean-flow\",\"sakura-flow\",\"bamboo-flow\"];var isD=t===\"system\"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add(\"dark\")}else{document.documentElement.classList.remove(\"dark\")}if(t\u0026\u0026t!==\"system\"){document.documentElement.setAttribute(\"data-theme\",t)}else{document.documentElement.removeAttribute(\"data-theme\")}if(t===\"custom\"){try{var c=JSON.parse(localStorage.getItem(\"omp-custom-theme\"));if(c){var r=document.documentElement;r.style.setProperty(\"--accent\",c.accent);r.style.setProperty(\"--bg\",c.bg);r.style.setProperty(\"--omp-o\",c.accent);r.style.setProperty(\"--omp-m\",\"color-mix(in srgb, \"+c.accent+\" 65%, #F59E0B)\");r.style.setProperty(\"--omp-p\",\"color-mix(in srgb, \"+c.accent+\" 65%, #38BDF8)\");r.setAttribute(\"data-custom-mode\",c.mode||\"static\");if(c.isDark){r.classList.add(\"dark\")}else{r.classList.remove(\"dark\")}}}catch(e){}}else{document.documentElement.removeAttribute(\"data-custom-mode\")}try{var mp=JSON.parse(localStorage.getItem(\"omp-motion-prefs\")||\"null\");if(mp){var doc=document.documentElement;doc.setAttribute(\"data-animations\",mp.enabled!==false?\"true\":\"false\");doc.setAttribute(\"data-animation-beam\",(mp.enabled!==false\u0026\u0026mp.chatBorderBeam!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-omp\",(mp.enabled!==false\u0026\u0026mp.ompBouncing!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-thinking\",(mp.enabled!==false\u0026\u0026mp.thinkingPulse!==false)?\"true\":\"false\");if(mp.beamSpeed)doc.style.setProperty(\"--omp-beam-speed\",mp.beamSpeed+\"s\");}}catch(e){}}catch(e){}})();0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5fe2a8af79a7efdf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/921bec6c70de20d4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7bbf54d710e156ee.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"translate\":\"no\",\"className\":\"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"google\",\"content\":\"notranslate\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var l=localStorage.getItem(\\\"omp-lang\\\");if(l!==\\\"en\\\"\u0026\u0026l!==\\\"zh-CN\\\"\u0026\u0026l!==\\\"ja\\\"){var n=(navigator.language||\\\"\\\").toLowerCase();l=n.indexOf(\\\"zh\\\")===0?\\\"zh-CN\\\":n.indexOf(\\\"ja\\\")===0?\\\"ja\\\":\\\"en\\\"}document.documentElement.lang=l}catch(e){}})();\"}}]]}],[\"$\",\"body\",null,{\"translate\":\"no\",\"className\":\"notranslate\",\"style\":{\"height\":\"100dvh\",\"display\":\"flex\",\"flexDirection\":\"column\"},\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":null,\"template\":[\"$\",\"$L5\",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)}}\"}}],\"$L6\",\"$L7\"]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]]}],{\"children\":[\"$L8\",{},null,false,null]},null,false,null],\"$L9\",false]],\"m\":\"$undefined\",\"G\":[\"$a\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"db1mVu1uee4ag1NduRcLL\"}\nb:I[61304,[],\"ClientPageRoot\"]\nc:I[66919,[\"8974\",\"static/chunks/app/page-e7e7426ef3ec9ec1.js\"],\"default\"]\nf:I[90484,[],\"OutletBoundary\"]\n10:\"$Sreact.suspense\"\n12:I[90484,[],\"ViewportBoundary\"]\n14:I[90484,[],\"MetadataBoundary\"]\n6:[\"$\",\"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}]\n7:[\"$\",\"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.\"}]}]\n8:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Lb\",null,{\"Component\":\"$c\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@d\",\"$@e\"]}}],null,[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@11\"}]}]]}]\n9:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L12\",null,{\"children\":\"$L13\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L14\",null,{\"children\":[\"$\",\"$10\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L15\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\nd:{}\ne:\"$8:props:children:0:props:serverProvidedParams:params\"\n13:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#FAF9F6\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#1B1916\",\"media\":\"(prefers-color-scheme: dark)\"}]]\n16:I[86869,[],\"IconMark\"]\n11:null\n15:[[\"$\",\"title\",\"0\",{\"children\":\"omp web\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the oh-my-pi (omp) coding agent\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"omp web\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"7\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?8aa486c701a3d218\",\"type\":\"image/x-icon\",\"sizes\":\"512x512\"}],[\"$\",\"$L16\",\"8\",{}]]\n"])</script></body></html>
@@ -10,7 +10,7 @@ a:I[54690,["4219","static/chunks/app/global-error-871c4baa96801c4e.js"],"default
10
10
  :HL["/_next/static/css/5fe2a8af79a7efdf.css","style"]
11
11
  :HL["/_next/static/css/921bec6c70de20d4.css","style"]
12
12
  :HL["/_next/static/css/7bbf54d710e156ee.css","style"]
13
- 2:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var l=localStorage.getItem(\"omp-lang\");if(l!==\"en\"&&l!==\"zh-CN\"&&l!==\"ja\"){var n=(navigator.language||\"\").toLowerCase();l=n.indexOf(\"zh\")===0?\"zh-CN\":n.indexOf(\"ja\")===0?\"ja\":\"en\"}document.documentElement.lang=l}catch(e){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","style":{"height":"100dvh","display":"flex","flexDirection":"column"},"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$4","errorStyles":[],"errorScripts":null,"template":["$","$L5",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)}}"}}],"$L6","$L7"]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],{"children":["$L8",{},null,false,null]},null,false,null],"$L9",false]],"m":"$undefined","G":["$a",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"r2kW0snAtbTZ8muUOUByQ"}
13
+ 2:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var l=localStorage.getItem(\"omp-lang\");if(l!==\"en\"&&l!==\"zh-CN\"&&l!==\"ja\"){var n=(navigator.language||\"\").toLowerCase();l=n.indexOf(\"zh\")===0?\"zh-CN\":n.indexOf(\"ja\")===0?\"ja\":\"en\"}document.documentElement.lang=l}catch(e){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","style":{"height":"100dvh","display":"flex","flexDirection":"column"},"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$4","errorStyles":[],"errorScripts":null,"template":["$","$L5",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)}}"}}],"$L6","$L7"]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],{"children":["$L8",{},null,false,null]},null,false,null],"$L9",false]],"m":"$undefined","G":["$a",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"db1mVu1uee4ag1NduRcLL"}
14
14
  b:I[61304,[],"ClientPageRoot"]
15
15
  c:I[66919,["8974","static/chunks/app/page-e7e7426ef3ec9ec1.js"],"default"]
16
16
  f:I[90484,[],"OutletBoundary"]
@@ -10,7 +10,7 @@ d:I[86869,[],"IconMark"]
10
10
  :HL["/_next/static/css/921bec6c70de20d4.css","style"]
11
11
  :HL["/_next/static/css/7bbf54d710e156ee.css","style"]
12
12
  a:X
13
- f:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();0:{"buildId":"r2kW0snAtbTZ8muUOUByQ","data":[{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":"$@9","staleTime":"$a","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$Lb",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover"}],["$","meta","2",{"name":"theme-color","content":"#FAF9F6","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#1B1916","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"omp web"}],["$","meta","1",{"name":"description","content":"Web UI for the oh-my-pi (omp) coding agent"}],["$","link","2",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","3",{"name":"format-detection","content":"telephone=no"}],["$","meta","4",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","5",{"name":"apple-mobile-web-app-title","content":"omp web"}],["$","meta","6",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","7",{"rel":"icon","href":"/favicon.ico?8aa486c701a3d218","type":"image/x-icon","sizes":"512x512"}],["$","$Ld","8",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":"$@e","staleTime":"$a","varyParams":null},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$f"}}],"$L10"]}],"$L11"]}]]}],"isPartial":"$@12","staleTime":"$a","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@13","rootVaryParams":null,"needsRuntimeRequest":"$@14"}
13
+ f:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();0:{"buildId":"db1mVu1uee4ag1NduRcLL","data":[{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":"$@9","staleTime":"$a","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$Lb",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover"}],["$","meta","2",{"name":"theme-color","content":"#FAF9F6","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#1B1916","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"omp web"}],["$","meta","1",{"name":"description","content":"Web UI for the oh-my-pi (omp) coding agent"}],["$","link","2",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","3",{"name":"format-detection","content":"telephone=no"}],["$","meta","4",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","5",{"name":"apple-mobile-web-app-title","content":"omp web"}],["$","meta","6",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","7",{"rel":"icon","href":"/favicon.ico?8aa486c701a3d218","type":"image/x-icon","sizes":"512x512"}],["$","$Ld","8",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":"$@e","staleTime":"$a","varyParams":null},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$f"}}],"$L10"]}],"$L11"]}]]}],"isPartial":"$@12","staleTime":"$a","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@13","rootVaryParams":null,"needsRuntimeRequest":"$@14"}
14
14
  15:I[57121,[],""]
15
15
  16:I[87460,["2584","static/chunks/2584-d4cd2d8de76d5e35.js","8039","static/chunks/app/error-9ba463bef8c2cf06.js"],"default"]
16
16
  17:I[74581,[],""]
@@ -10,7 +10,7 @@ a:I[54690,["4219","static/chunks/app/global-error-871c4baa96801c4e.js"],"default
10
10
  :HL["/_next/static/css/5fe2a8af79a7efdf.css","style"]
11
11
  :HL["/_next/static/css/921bec6c70de20d4.css","style"]
12
12
  :HL["/_next/static/css/7bbf54d710e156ee.css","style"]
13
- 2:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var l=localStorage.getItem(\"omp-lang\");if(l!==\"en\"&&l!==\"zh-CN\"&&l!==\"ja\"){var n=(navigator.language||\"\").toLowerCase();l=n.indexOf(\"zh\")===0?\"zh-CN\":n.indexOf(\"ja\")===0?\"ja\":\"en\"}document.documentElement.lang=l}catch(e){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","style":{"height":"100dvh","display":"flex","flexDirection":"column"},"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$4","errorStyles":[],"errorScripts":null,"template":["$","$L5",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)}}"}}],"$L6","$L7"]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],{"children":["$L8",{},null,false,null]},null,false,null],"$L9",false]],"m":"$undefined","G":["$a",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"r2kW0snAtbTZ8muUOUByQ"}
13
+ 2:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var l=localStorage.getItem(\"omp-lang\");if(l!==\"en\"&&l!==\"zh-CN\"&&l!==\"ja\"){var n=(navigator.language||\"\").toLowerCase();l=n.indexOf(\"zh\")===0?\"zh-CN\":n.indexOf(\"ja\")===0?\"ja\":\"en\"}document.documentElement.lang=l}catch(e){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","style":{"height":"100dvh","display":"flex","flexDirection":"column"},"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$4","errorStyles":[],"errorScripts":null,"template":["$","$L5",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)}}"}}],"$L6","$L7"]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],{"children":["$L8",{},null,false,null]},null,false,null],"$L9",false]],"m":"$undefined","G":["$a",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"db1mVu1uee4ag1NduRcLL"}
14
14
  b:I[61304,[],"ClientPageRoot"]
15
15
  c:I[66919,["8974","static/chunks/app/page-e7e7426ef3ec9ec1.js"],"default"]
16
16
  f:I[90484,[],"OutletBoundary"]
@@ -5,4 +5,4 @@
5
5
  :HL["/_next/static/css/5fe2a8af79a7efdf.css","style"]
6
6
  :HL["/_next/static/css/921bec6c70de20d4.css","style"]
7
7
  :HL["/_next/static/css/7bbf54d710e156ee.css","style"]
8
- 0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"r2kW0snAtbTZ8muUOUByQ"}
8
+ 0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"db1mVu1uee4ag1NduRcLL"}
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" translate="no" class="__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="preload" href="/_next/static/media/7deddc85b7ffd1dc-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/97ac91773d3121b2-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/b20daecae68a588f-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/ec14413c594b3356-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/5fe2a8af79a7efdf.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/921bec6c70de20d4.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/7bbf54d710e156ee.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9691f4590ba70cb8.js"/><script src="/_next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js" async=""></script><script src="/_next/static/chunks/3794-d7cddff008311ab3.js" async=""></script><script src="/_next/static/chunks/main-app-14cb310088a8e6b1.js" async=""></script><script src="/_next/static/chunks/2584-d4cd2d8de76d5e35.js" async=""></script><script src="/_next/static/chunks/app/error-9ba463bef8c2cf06.js" async=""></script><script src="/_next/static/chunks/app/global-error-871c4baa96801c4e.js" async=""></script><script src="/_next/static/chunks/app/login/page-7a5cd8dbc1789d87.js" async=""></script><meta name="theme-color" content="#FAF9F6" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#1B1916" media="(prefers-color-scheme: dark)"/><title>omp web</title><meta name="description" content="Web UI for the oh-my-pi (omp) coding agent"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="omp web"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/favicon.ico?8aa486c701a3d218" type="image/x-icon" sizes="512x512"/><meta name="next-size-adjust" content=""/><meta name="google" content="notranslate"/><script>(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();</script><script>(function(){try{var l=localStorage.getItem("omp-lang");if(l!=="en"&&l!=="zh-CN"&&l!=="ja"){var n=(navigator.language||"").toLowerCase();l=n.indexOf("zh")===0?"zh-CN":n.indexOf("ja")===0?"ja":"en"}document.documentElement.lang=l}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body translate="no" class="notranslate" style="height:100dvh;display:flex;flex-direction:column"><div hidden=""><!--$--><!--/$--></div><main style="flex:1;display:grid;place-items:center;padding:20px;background:var(--bg)"><section aria-labelledby="login-title" style="width:min(100%, 380px);padding:32px;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-modal);box-shadow:var(--shadow-modal)"><div style="width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--user-bg);color:var(--accent);margin-bottom:20px"><svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock-keyhole" aria-hidden="true"><circle cx="12" cy="16" r="1"></circle><rect x="3" y="10" width="18" height="12" rx="2"></rect><path d="M7 10V7a5 5 0 0 1 10 0v3"></path></svg></div><h1 id="login-title" class="display-serif" style="margin:0;font-size:28px;line-height:1.1;color:var(--text)">Welcome back</h1><p style="margin:10px 0 24px;color:var(--text-muted);font-size:13px;line-height:1.5">Enter the password for this omp web workspace.</p><form style="display:grid;gap:14px"><label for="web-password" style="display:grid;gap:6px;color:var(--text-muted);font-size:12px;font-weight:600">Password<input id="web-password" type="password" autoComplete="current-password" autofocus="" required="" style="width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg);color:var(--text);font-size:14px;outline:none;box-shadow:none" value=""/></label><button type="submit" style="min-height:36px;border:0;border-radius:var(--radius-control);background:var(--accent-strong);color:var(--on-accent);font-weight:600;cursor:pointer;opacity:1">Unlock workspace</button></form></section></main><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9691f4590ba70cb8.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[57121,[],\"\"]\n4:I[87460,[\"2584\",\"static/chunks/2584-d4cd2d8de76d5e35.js\",\"8039\",\"static/chunks/app/error-9ba463bef8c2cf06.js\"],\"default\"]\n5:I[74581,[],\"\"]\nc:I[54690,[\"4219\",\"static/chunks/app/global-error-871c4baa96801c4e.js\"],\"default\"]\n:HL[\"/_next/static/media/7deddc85b7ffd1dc-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/97ac91773d3121b2-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/b20daecae68a588f-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/ec14413c594b3356-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/5fe2a8af79a7efdf.css\",\"style\"]\n:HL[\"/_next/static/css/921bec6c70de20d4.css\",\"style\"]\n:HL[\"/_next/static/css/7bbf54d710e156ee.css\",\"style\"]\n2:T6ce,(function(){try{var t=localStorage.getItem(\"omp-theme\")||\"system\";var d=matchMedia(\"(prefers-color-scheme: dark)\").matches;var darkThemes=[\"dark\",\"oled\",\"nord\",\"dracula\",\"pine\",\"navy\",\"aurora-flow\",\"dawn-flow\",\"cosmic-flow\",\"ocean-flow\",\"sakura-flow\",\"bamboo-flow\"];var isD=t===\"system\"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add(\"dark\")}else{document.documentElement.classList.remove(\"dark\")}if(t\u0026\u0026t!==\"system\"){document.documentElement.setAttribute(\"data-theme\",t)}else{document.documentElement.removeAttribute(\"data-theme\")}if(t===\"custom\"){try{var c=JSON.parse(localStorage.getItem(\"omp-custom-theme\"));if(c){var r=document.documentElement;r.style.setProperty(\"--accent\",c.accent);r.style.setProperty(\"--bg\",c.bg);r.style.setProperty(\"--omp-o\",c.accent);r.style.setProperty(\"--omp-m\",\"color-mix(in srgb, \"+c.accent+\" 65%, #F59E0B)\");r.style.setProperty(\"--omp-p\",\"color-mix(in srgb, \"+c.accent+\" 65%, #38BDF8)\");r.setAttribute(\"data-custom-mode\",c.mode||\"static\");if(c.isDark){r.classList.add(\"dark\")}else{r.classList.remove(\"dark\")}}}catch(e){}}else{document.documentElement.removeAttribute(\"data-custom-mode\")}try{var mp=JSON.parse(localStorage.getItem(\"omp-motion-prefs\")||\"null\");if(mp){var doc=document.documentElement;doc.setAttribute(\"data-animations\",mp.enabled!==false?\"true\":\"false\");doc.setAttribute(\"data-animation-beam\",(mp.enabled!==false\u0026\u0026mp.chatBorderBeam!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-omp\",(mp.enabled!==false\u0026\u0026mp.ompBouncing!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-thinking\",(mp.enabled!==false\u0026\u0026mp.thinkingPulse!==false)?\"true\":\"false\");if(mp.beamSpeed)doc.style.setProperty(\"--omp-beam-speed\",mp.beamSpeed+\"s\");}}catch(e){}}catch(e){}})();a:X\n0:{\"P\":null,\"c\":[\"\",\"login\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"login\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5fe2a8af79a7efdf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/921bec6c70de20d4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7bbf54d710e156ee.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"translate\":\"no\",\"className\":\"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"google\",\"content\":\"notranslate\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var l=localStorage.getItem(\\\"omp-lang\\\");if(l!==\\\"en\\\"\u0026\u0026l!==\\\"zh-CN\\\"\u0026\u0026l!==\\\"ja\\\"){var n=(navigator.language||\\\"\\\").toLowerCase();l=n.indexOf(\\\"zh\\\")===0?\\\"zh-CN\\\":n.indexOf(\\\"ja\\\")===0?\\\"ja\\\":\\\"en\\\"}document.documentElement.lang=l}catch(e){}})();\"}}]]}],[\"$\",\"body\",null,{\"translate\":\"no\",\"className\":\"notranslate\",\"style\":{\"height\":\"100dvh\",\"display\":\"flex\",\"flexDirection\":\"column\"},\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":null,\"template\":[\"$\",\"$L5\",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)}}\"}}],\"$L6\",\"$L7\"]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]]}],{\"children\":[\"$L8\",{\"children\":[\"$L9\",{},null,false,null]},null,false,\"$a\"]},null,false,null],\"$Lb\",false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"r2kW0snAtbTZ8muUOUByQ\"}\nd:I[77397,[\"4520\",\"static/chunks/app/login/page-7a5cd8dbc1789d87.js\"],\"LoginForm\"]\ne:I[90484,[],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n11:I[90484,[],\"ViewportBoundary\"]\n13:I[90484,[],\"MetadataBoundary\"]\n6:[\"$\",\"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}]\n7:[\"$\",\"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.\"}]}]\n8:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n9:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Ld\",null,{}],null,[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}]\nb:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\na:C\n12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#FAF9F6\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#1B1916\",\"media\":\"(prefers-color-scheme: dark)\"}]]\n15:I[86869,[],\"IconMark\"]\n10:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"omp web\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the oh-my-pi (omp) coding agent\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"omp web\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"7\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?8aa486c701a3d218\",\"type\":\"image/x-icon\",\"sizes\":\"512x512\"}],[\"$\",\"$L15\",\"8\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" translate="no" class="__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/><link rel="preload" href="/_next/static/media/7deddc85b7ffd1dc-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/97ac91773d3121b2-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/b20daecae68a588f-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/ec14413c594b3356-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/5fe2a8af79a7efdf.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/921bec6c70de20d4.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/7bbf54d710e156ee.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-b10306427dc17cac.js"/><script src="/_next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js" async=""></script><script src="/_next/static/chunks/3794-d7cddff008311ab3.js" async=""></script><script src="/_next/static/chunks/main-app-14cb310088a8e6b1.js" async=""></script><script src="/_next/static/chunks/2584-d4cd2d8de76d5e35.js" async=""></script><script src="/_next/static/chunks/app/error-9ba463bef8c2cf06.js" async=""></script><script src="/_next/static/chunks/app/global-error-871c4baa96801c4e.js" async=""></script><script src="/_next/static/chunks/app/login/page-7a5cd8dbc1789d87.js" async=""></script><meta name="theme-color" content="#FAF9F6" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#1B1916" media="(prefers-color-scheme: dark)"/><title>omp web</title><meta name="description" content="Web UI for the oh-my-pi (omp) coding agent"/><link rel="manifest" href="/manifest.webmanifest"/><meta name="format-detection" content="telephone=no"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="omp web"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><link rel="icon" href="/favicon.ico?8aa486c701a3d218" type="image/x-icon" sizes="512x512"/><meta name="next-size-adjust" content=""/><meta name="google" content="notranslate"/><script>(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();</script><script>(function(){try{var l=localStorage.getItem("omp-lang");if(l!=="en"&&l!=="zh-CN"&&l!=="ja"){var n=(navigator.language||"").toLowerCase();l=n.indexOf("zh")===0?"zh-CN":n.indexOf("ja")===0?"ja":"en"}document.documentElement.lang=l}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body translate="no" class="notranslate" style="height:100dvh;display:flex;flex-direction:column"><div hidden=""><!--$--><!--/$--></div><main style="flex:1;display:grid;place-items:center;padding:20px;background:var(--bg)"><section aria-labelledby="login-title" style="width:min(100%, 380px);padding:32px;background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--radius-modal);box-shadow:var(--shadow-modal)"><div style="width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--user-bg);color:var(--accent);margin-bottom:20px"><svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock-keyhole" aria-hidden="true"><circle cx="12" cy="16" r="1"></circle><rect x="3" y="10" width="18" height="12" rx="2"></rect><path d="M7 10V7a5 5 0 0 1 10 0v3"></path></svg></div><h1 id="login-title" class="display-serif" style="margin:0;font-size:28px;line-height:1.1;color:var(--text)">Welcome back</h1><p style="margin:10px 0 24px;color:var(--text-muted);font-size:13px;line-height:1.5">Enter the password for this omp web workspace.</p><form style="display:grid;gap:14px"><label for="web-password" style="display:grid;gap:6px;color:var(--text-muted);font-size:12px;font-weight:600">Password<input id="web-password" type="password" autoComplete="current-password" autofocus="" required="" style="width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg);color:var(--text);font-size:14px;outline:none;box-shadow:none" value=""/></label><button type="submit" style="min-height:36px;border:0;border-radius:var(--radius-control);background:var(--accent-strong);color:var(--on-accent);font-weight:600;cursor:pointer;opacity:1">Unlock workspace</button></form></section></main><!--$--><!--/$--><script src="/_next/static/chunks/webpack-b10306427dc17cac.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[57121,[],\"\"]\n4:I[87460,[\"2584\",\"static/chunks/2584-d4cd2d8de76d5e35.js\",\"8039\",\"static/chunks/app/error-9ba463bef8c2cf06.js\"],\"default\"]\n5:I[74581,[],\"\"]\nc:I[54690,[\"4219\",\"static/chunks/app/global-error-871c4baa96801c4e.js\"],\"default\"]\n:HL[\"/_next/static/media/7deddc85b7ffd1dc-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/97ac91773d3121b2-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/b20daecae68a588f-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/ec14413c594b3356-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/5fe2a8af79a7efdf.css\",\"style\"]\n:HL[\"/_next/static/css/921bec6c70de20d4.css\",\"style\"]\n:HL[\"/_next/static/css/7bbf54d710e156ee.css\",\"style\"]\n2:T6ce,(function(){try{var t=localStorage.getItem(\"omp-theme\")||\"system\";var d=matchMedia(\"(prefers-color-scheme: dark)\").matches;var darkThemes=[\"dark\",\"oled\",\"nord\",\"dracula\",\"pine\",\"navy\",\"aurora-flow\",\"dawn-flow\",\"cosmic-flow\",\"ocean-flow\",\"sakura-flow\",\"bamboo-flow\"];var isD=t===\"system\"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add(\"dark\")}else{document.documentElement.classList.remove(\"dark\")}if(t\u0026\u0026t!==\"system\"){document.documentElement.setAttribute(\"data-theme\",t)}else{document.documentElement.removeAttribute(\"data-theme\")}if(t===\"custom\"){try{var c=JSON.parse(localStorage.getItem(\"omp-custom-theme\"));if(c){var r=document.documentElement;r.style.setProperty(\"--accent\",c.accent);r.style.setProperty(\"--bg\",c.bg);r.style.setProperty(\"--omp-o\",c.accent);r.style.setProperty(\"--omp-m\",\"color-mix(in srgb, \"+c.accent+\" 65%, #F59E0B)\");r.style.setProperty(\"--omp-p\",\"color-mix(in srgb, \"+c.accent+\" 65%, #38BDF8)\");r.setAttribute(\"data-custom-mode\",c.mode||\"static\");if(c.isDark){r.classList.add(\"dark\")}else{r.classList.remove(\"dark\")}}}catch(e){}}else{document.documentElement.removeAttribute(\"data-custom-mode\")}try{var mp=JSON.parse(localStorage.getItem(\"omp-motion-prefs\")||\"null\");if(mp){var doc=document.documentElement;doc.setAttribute(\"data-animations\",mp.enabled!==false?\"true\":\"false\");doc.setAttribute(\"data-animation-beam\",(mp.enabled!==false\u0026\u0026mp.chatBorderBeam!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-omp\",(mp.enabled!==false\u0026\u0026mp.ompBouncing!==false)?\"true\":\"false\");doc.setAttribute(\"data-animation-thinking\",(mp.enabled!==false\u0026\u0026mp.thinkingPulse!==false)?\"true\":\"false\");if(mp.beamSpeed)doc.style.setProperty(\"--omp-beam-speed\",mp.beamSpeed+\"s\");}}catch(e){}}catch(e){}})();a:X\n0:{\"P\":null,\"c\":[\"\",\"login\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"login\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/5fe2a8af79a7efdf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/921bec6c70de20d4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7bbf54d710e156ee.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"translate\":\"no\",\"className\":\"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"google\",\"content\":\"notranslate\"}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"$2\"}}],[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var l=localStorage.getItem(\\\"omp-lang\\\");if(l!==\\\"en\\\"\u0026\u0026l!==\\\"zh-CN\\\"\u0026\u0026l!==\\\"ja\\\"){var n=(navigator.language||\\\"\\\").toLowerCase();l=n.indexOf(\\\"zh\\\")===0?\\\"zh-CN\\\":n.indexOf(\\\"ja\\\")===0?\\\"ja\\\":\\\"en\\\"}document.documentElement.lang=l}catch(e){}})();\"}}]]}],[\"$\",\"body\",null,{\"translate\":\"no\",\"className\":\"notranslate\",\"style\":{\"height\":\"100dvh\",\"display\":\"flex\",\"flexDirection\":\"column\"},\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":null,\"template\":[\"$\",\"$L5\",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)}}\"}}],\"$L6\",\"$L7\"]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}]]}],{\"children\":[\"$L8\",{\"children\":[\"$L9\",{},null,false,null]},null,false,\"$a\"]},null,false,null],\"$Lb\",false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"db1mVu1uee4ag1NduRcLL\"}\nd:I[77397,[\"4520\",\"static/chunks/app/login/page-7a5cd8dbc1789d87.js\"],\"LoginForm\"]\ne:I[90484,[],\"OutletBoundary\"]\nf:\"$Sreact.suspense\"\n11:I[90484,[],\"ViewportBoundary\"]\n13:I[90484,[],\"MetadataBoundary\"]\n6:[\"$\",\"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}]\n7:[\"$\",\"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.\"}]}]\n8:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n9:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$Ld\",null,{}],null,[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@10\"}]}]]}]\nb:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L11\",null,{\"children\":\"$L12\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$f\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}]\na:C\n12:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, viewport-fit=cover\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#FAF9F6\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#1B1916\",\"media\":\"(prefers-color-scheme: dark)\"}]]\n15:I[86869,[],\"IconMark\"]\n10:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"omp web\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the oh-my-pi (omp) coding agent\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"3\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"omp web\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"link\",\"7\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?8aa486c701a3d218\",\"type\":\"image/x-icon\",\"sizes\":\"512x512\"}],[\"$\",\"$L15\",\"8\",{}]]\n"])</script></body></html>
@@ -11,7 +11,7 @@ c:I[54690,["4219","static/chunks/app/global-error-871c4baa96801c4e.js"],"default
11
11
  :HL["/_next/static/css/921bec6c70de20d4.css","style"]
12
12
  :HL["/_next/static/css/7bbf54d710e156ee.css","style"]
13
13
  2:T6ce,(function(){try{var t=localStorage.getItem("omp-theme")||"system";var d=matchMedia("(prefers-color-scheme: dark)").matches;var darkThemes=["dark","oled","nord","dracula","pine","navy","aurora-flow","dawn-flow","cosmic-flow","ocean-flow","sakura-flow","bamboo-flow"];var isD=t==="system"?d:darkThemes.indexOf(t)!==-1;if(isD){document.documentElement.classList.add("dark")}else{document.documentElement.classList.remove("dark")}if(t&&t!=="system"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.removeAttribute("data-theme")}if(t==="custom"){try{var c=JSON.parse(localStorage.getItem("omp-custom-theme"));if(c){var r=document.documentElement;r.style.setProperty("--accent",c.accent);r.style.setProperty("--bg",c.bg);r.style.setProperty("--omp-o",c.accent);r.style.setProperty("--omp-m","color-mix(in srgb, "+c.accent+" 65%, #F59E0B)");r.style.setProperty("--omp-p","color-mix(in srgb, "+c.accent+" 65%, #38BDF8)");r.setAttribute("data-custom-mode",c.mode||"static");if(c.isDark){r.classList.add("dark")}else{r.classList.remove("dark")}}}catch(e){}}else{document.documentElement.removeAttribute("data-custom-mode")}try{var mp=JSON.parse(localStorage.getItem("omp-motion-prefs")||"null");if(mp){var doc=document.documentElement;doc.setAttribute("data-animations",mp.enabled!==false?"true":"false");doc.setAttribute("data-animation-beam",(mp.enabled!==false&&mp.chatBorderBeam!==false)?"true":"false");doc.setAttribute("data-animation-omp",(mp.enabled!==false&&mp.ompBouncing!==false)?"true":"false");doc.setAttribute("data-animation-thinking",(mp.enabled!==false&&mp.thinkingPulse!==false)?"true":"false");if(mp.beamSpeed)doc.style.setProperty("--omp-beam-speed",mp.beamSpeed+"s");}}catch(e){}}catch(e){}})();a:X
14
- 0:{"P":null,"c":["","login"],"q":"","i":false,"f":[[["",{"children":["login",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var l=localStorage.getItem(\"omp-lang\");if(l!==\"en\"&&l!==\"zh-CN\"&&l!==\"ja\"){var n=(navigator.language||\"\").toLowerCase();l=n.indexOf(\"zh\")===0?\"zh-CN\":n.indexOf(\"ja\")===0?\"ja\":\"en\"}document.documentElement.lang=l}catch(e){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","style":{"height":"100dvh","display":"flex","flexDirection":"column"},"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$4","errorStyles":[],"errorScripts":null,"template":["$","$L5",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)}}"}}],"$L6","$L7"]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],{"children":["$L8",{"children":["$L9",{},null,false,null]},null,false,"$a"]},null,false,null],"$Lb",false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"r2kW0snAtbTZ8muUOUByQ"}
14
+ 0:{"P":null,"c":["","login"],"q":"","i":false,"f":[[["",{"children":["login",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5fe2a8af79a7efdf.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/921bec6c70de20d4.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/7bbf54d710e156ee.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_66b8ca __variable_25ee46 __variable_cd0b3d notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2"}}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var l=localStorage.getItem(\"omp-lang\");if(l!==\"en\"&&l!==\"zh-CN\"&&l!==\"ja\"){var n=(navigator.language||\"\").toLowerCase();l=n.indexOf(\"zh\")===0?\"zh-CN\":n.indexOf(\"ja\")===0?\"ja\":\"en\"}document.documentElement.lang=l}catch(e){}})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","style":{"height":"100dvh","display":"flex","flexDirection":"column"},"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$4","errorStyles":[],"errorScripts":null,"template":["$","$L5",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)}}"}}],"$L6","$L7"]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],{"children":["$L8",{"children":["$L9",{},null,false,null]},null,false,"$a"]},null,false,null],"$Lb",false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"db1mVu1uee4ag1NduRcLL"}
15
15
  d:I[77397,["4520","static/chunks/app/login/page-7a5cd8dbc1789d87.js"],"LoginForm"]
16
16
  e:I[90484,[],"OutletBoundary"]
17
17
  f:"$Sreact.suspense"