conductor-oss 0.10.0 → 0.10.2

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 (137) hide show
  1. package/package.json +6 -5
  2. package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
  3. package/web/.next/standalone/packages/web/.next/build-manifest.json +2 -2
  4. package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -3
  5. package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +2 -2
  6. package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
  7. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
  13. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  14. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/web/.next/standalone/packages/web/.next/server/app/_not-found.html +1 -1
  16. package/web/.next/standalone/packages/web/.next/server/app/_not-found.rsc +3 -3
  17. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  18. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  20. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/web/.next/standalone/packages/web/.next/server/app/api/access/route.js.nft.json +1 -1
  24. package/web/.next/standalone/packages/web/.next/server/app/api/agents/route.js.nft.json +1 -1
  25. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route.js.nft.json +1 -1
  26. package/web/.next/standalone/packages/web/.next/server/app/api/attachments/route.js.nft.json +1 -1
  27. package/web/.next/standalone/packages/web/.next/server/app/api/auth/session/route.js.nft.json +1 -1
  28. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route.js.nft.json +1 -1
  29. package/web/.next/standalone/packages/web/.next/server/app/api/boards/route.js.nft.json +1 -1
  30. package/web/.next/standalone/packages/web/.next/server/app/api/config/route.js.nft.json +1 -1
  31. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route.js.nft.json +1 -1
  32. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/route.js.nft.json +1 -1
  33. package/web/.next/standalone/packages/web/.next/server/app/api/events/route.js.nft.json +1 -1
  34. package/web/.next/standalone/packages/web/.next/server/app/api/executor/health/route.js.nft.json +1 -1
  35. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/directory/route.js.nft.json +1 -1
  36. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/pick-directory/route.js.nft.json +1 -1
  37. package/web/.next/standalone/packages/web/.next/server/app/api/github/repos/route.js.nft.json +1 -1
  38. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route.js.nft.json +1 -1
  39. package/web/.next/standalone/packages/web/.next/server/app/api/health/boards/route.js.nft.json +1 -1
  40. package/web/.next/standalone/packages/web/.next/server/app/api/health/sessions/route.js.nft.json +1 -1
  41. package/web/.next/standalone/packages/web/.next/server/app/api/notifications/route.js.nft.json +1 -1
  42. package/web/.next/standalone/packages/web/.next/server/app/api/preferences/route.js.nft.json +1 -1
  43. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route.js.nft.json +1 -1
  44. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/[id]/route.js.nft.json +1 -1
  45. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/route.js.nft.json +1 -1
  46. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/actions/route.js.nft.json +1 -1
  47. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/archive/route.js.nft.json +1 -1
  48. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/checks/route.js.nft.json +1 -1
  49. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/diff/route.js.nft.json +1 -1
  50. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/route.js.nft.json +1 -1
  51. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route.js.nft.json +1 -1
  52. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feedback/route.js.nft.json +1 -1
  53. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/files/route.js.nft.json +1 -1
  54. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route.js.nft.json +1 -1
  55. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/keys/route.js.nft.json +1 -1
  56. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/kill/route.js.nft.json +1 -1
  57. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/route.js.nft.json +1 -1
  58. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/stream/route.js.nft.json +1 -1
  59. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route.js.nft.json +1 -1
  60. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route.js.nft.json +1 -1
  61. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route.js.nft.json +1 -1
  62. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/restore/route.js.nft.json +1 -1
  63. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  64. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/send/route.js.nft.json +1 -1
  65. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/connection/route.js.nft.json +1 -1
  66. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/resize/route.js.nft.json +1 -1
  67. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/terminal/snapshot/route.js.nft.json +1 -1
  68. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  69. package/web/.next/standalone/packages/web/.next/server/app/api/spawn/route.js.nft.json +1 -1
  70. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/branches/route.js.nft.json +1 -1
  71. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  72. package/web/.next/standalone/packages/web/.next/server/app/page/react-loadable-manifest.json +1 -1
  73. package/web/.next/standalone/packages/web/.next/server/app/page/server-reference-manifest.json +7 -7
  74. package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
  75. package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
  76. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page/server-reference-manifest.json +7 -7
  77. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
  78. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  79. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page/server-reference-manifest.json +7 -7
  80. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
  81. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
  82. package/web/.next/standalone/packages/web/.next/server/app/unlock/page/server-reference-manifest.json +7 -7
  83. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
  84. package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
  85. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_eaad1f33.js +1 -1
  86. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__000b8c99._.js +1 -1
  87. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__29d8d063._.js +1 -1
  88. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{[root-of-the-server]__25efd4ff._.js → [root-of-the-server]__449b4752._.js} +2 -2
  89. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{_ce6e01a0._.js → _09cee208._.js} +2 -2
  90. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_0e1412de._.js +1 -1
  91. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_27fe5f5d._.js +1 -1
  92. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{_542007b0._.js → _39a8aaab._.js} +1 -1
  93. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_532f707d._.js +1 -1
  94. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_69e05fca._.js +1 -1
  95. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_7321b77f._.js +1 -1
  96. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_80efe193._.js +1 -1
  97. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_9f3d31e1._.js +1 -1
  98. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_c0f0e227._.js +1 -1
  99. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_c9612a3a._.js +1 -1
  100. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{_a863fc40._.js → _e8d785fd._.js} +1 -1
  101. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_f36ddaa9._.js +1 -1
  102. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_app-router_251c7a58._.js +3 -0
  103. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{node_modules_@clerk_nextjs_dist_esm_app-router_badc6740._.js → node_modules_@clerk_nextjs_dist_esm_app-router_d643ba4f._.js} +2 -2
  104. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +1 -1
  105. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_65e60196._.js +1 -1
  106. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_cd51dad4.js +1 -1
  107. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_components_board_WorkspaceKanban_tsx_735b7999._.js +1 -1
  108. package/web/.next/standalone/packages/web/.next/server/pages/404.html +1 -1
  109. package/web/.next/standalone/packages/web/.next/server/pages/500.html +2 -2
  110. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
  111. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +8 -8
  112. package/web/.next/{static/chunks/fd9911688557c0b0.js → standalone/packages/web/.next/static/chunks/061d791617412133.js} +1 -1
  113. package/web/.next/standalone/packages/web/.next/static/chunks/2f53a8bab803f5c8.js +1 -0
  114. package/web/.next/standalone/packages/web/.next/static/chunks/{77bde38f5df2d5e9.js → 3113dc641d66d78b.js} +1 -1
  115. package/web/.next/standalone/packages/web/.next/static/chunks/5472ab6d89bf8a1a.js +1 -0
  116. package/web/.next/standalone/packages/web/.next/static/chunks/{2a79abf2ecfa4d52.js → a429a6b133b0f690.js} +1 -1
  117. package/web/.next/{static/chunks/cb6d42fd89824b00.js → standalone/packages/web/.next/static/chunks/b37560d2b00bfad0.js} +1 -1
  118. package/web/.next/standalone/packages/web/src/components/board/WorkspaceKanban.tsx +16 -11
  119. package/web/.next/standalone/packages/web/src/lib/remoteAccessManager.test.ts +71 -0
  120. package/web/.next/standalone/packages/web/src/lib/remoteAccessManager.ts +87 -11
  121. package/web/.next/{standalone/packages/web/.next/static/chunks/fd9911688557c0b0.js → static/chunks/061d791617412133.js} +1 -1
  122. package/web/.next/static/chunks/2f53a8bab803f5c8.js +1 -0
  123. package/web/.next/static/chunks/{77bde38f5df2d5e9.js → 3113dc641d66d78b.js} +1 -1
  124. package/web/.next/static/chunks/5472ab6d89bf8a1a.js +1 -0
  125. package/web/.next/static/chunks/{2a79abf2ecfa4d52.js → a429a6b133b0f690.js} +1 -1
  126. package/web/.next/{standalone/packages/web/.next/static/chunks/cb6d42fd89824b00.js → static/chunks/b37560d2b00bfad0.js} +1 -1
  127. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_app-router_1bfe0171._.js +0 -3
  128. package/web/.next/standalone/packages/web/.next/static/chunks/158d470e915f8dce.js +0 -1
  129. package/web/.next/standalone/packages/web/.next/static/chunks/e6c654f5db7ad4e8.js +0 -1
  130. package/web/.next/static/chunks/158d470e915f8dce.js +0 -1
  131. package/web/.next/static/chunks/e6c654f5db7ad4e8.js +0 -1
  132. /package/web/.next/standalone/packages/web/.next/static/{ZRrW9zUUsV3CvdAFoCd6X → niCzSE_5c2XBzuC341KeF}/_buildManifest.js +0 -0
  133. /package/web/.next/standalone/packages/web/.next/static/{ZRrW9zUUsV3CvdAFoCd6X → niCzSE_5c2XBzuC341KeF}/_clientMiddlewareManifest.json +0 -0
  134. /package/web/.next/standalone/packages/web/.next/static/{ZRrW9zUUsV3CvdAFoCd6X → niCzSE_5c2XBzuC341KeF}/_ssgManifest.js +0 -0
  135. /package/web/.next/static/{ZRrW9zUUsV3CvdAFoCd6X → niCzSE_5c2XBzuC341KeF}/_buildManifest.js +0 -0
  136. /package/web/.next/static/{ZRrW9zUUsV3CvdAFoCd6X → niCzSE_5c2XBzuC341KeF}/_clientMiddlewareManifest.json +0 -0
  137. /package/web/.next/static/{ZRrW9zUUsV3CvdAFoCd6X → niCzSE_5c2XBzuC341KeF}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[99458,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),l=e.i(61916),s=e.i(74677),i=e.i(69741),o=e.i(16795),c=e.i(87718),u=e.i(95169),d=e.i(47587),p=e.i(66012),h=e.i(70101),f=e.i(26937),m=e.i(10372),g=e.i(93695);e.i(52474);var R=e.i(220),v=e.i(89171),b=e.i(48295),w=e.i(74533);e.i(2157);var A=e.i(59541);let U=globalThis;function C(e){let t=(0,w.spawnSync)("sh",["-lc",`command -v ${e}`],{encoding:"utf8",stdio:["ignore","pipe","ignore"]});if(0===t.status){let e=t.stdout.trim().split(/\n+/g).pop()?.trim()??"";if(e.length>0)return e}return null}function y(){return C("brew")}function E(e=y()){let t=C("tailscale"),r=t?function(e){let t=(0,w.spawnSync)(e,["status","--json"],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==t.status)return{connected:!1,dnsName:null,error:t.stderr.trim()||t.stdout.trim()||"Tailscale is installed but not signed in on this machine."};try{let e=JSON.parse(t.stdout),r=function(e){if("string"!=typeof e)return null;let t=e.trim().replace(/\.+$/g,"");return t.length>0?t:null}(e.Self?.DNSName);return{connected:!!r,dnsName:r,error:r?null:"Tailscale is installed but not signed in on this machine."}}catch{return{connected:!1,dnsName:null,error:"Tailscale returned an unreadable status payload."}}}(t):{connected:!1,dnsName:null,error:null};return{provider:"tailscale",tailscalePath:t,brewPath:e,installed:!!t,canAutoInstall:!t&&!!e,autoInstallMethod:e?"brew":null,connected:r.connected,dnsName:r.dnsName,connectionError:r.error}}function S(){let e=process.env.PORT?.trim(),t=e?Number.parseInt(e,10):NaN,r=Number.isInteger(t)&&t>=1&&t<=65535?t:3e3,n=process.env.HOSTNAME?.trim().toLowerCase()||"127.0.0.1";return`http://${"0.0.0.0"===n||"::"===n?"127.0.0.1":n}:${r}`}function T(){let e=process.env.CONDUCTOR_BACKEND_URL?.trim();if(e)try{let t=new URL(e);if("http:"===t.protocol||"https:"===t.protocol)return t.toString()}catch{}let t=process.env.CONDUCTOR_BACKEND_PORT?.trim(),r=t?Number.parseInt(t,10):NaN;return!Number.isInteger(r)||r<1||r>65535?null:`http://127.0.0.1:${r}`}function P(e){return`https://${e}`}function N(e,t,r){let n=function(e){try{return new URL(e).port||"80"}catch{return"3000"}}(t),a=(0,w.spawnSync)(e,["serve","--bg",n],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==a.status)throw Error(a.stderr.trim()||a.stdout.trim()||"Tailscale Serve could not publish a private HTTPS URL.");let l=function(e){if(!e)return null;try{let t=new URL(e);if(t.port){let e=Number.parseInt(t.port,10);return Number.isInteger(e)&&e>=1&&e<=65535?e:null}return"https:"===t.protocol?443:80}catch{return null}}(r);if(!l)return;let s=(0,w.spawnSync)(e,["serve","--bg","--https",String(l),String(l)],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==s.status)throw Error(s.stderr.trim()||s.stdout.trim()||"Tailscale could not publish the private backend endpoint.")}function L(e){if(!e||e<=0)return!1;try{return process.kill(e,0),!0}catch(e){return"EPERM"===(e instanceof Error&&"code"in e?String(e.code):"")}}async function O(e){if(e&&L(e)){try{process.kill(e,"SIGTERM")}catch{return}for(let t=0;t<20;t+=1){if(!L(e))return;await new Promise(e=>setTimeout(e,150))}try{process.kill(e,"SIGKILL")}catch{return}}}async function k(){let e=(0,A.readRemoteAccessRuntimeState)();if(!e)return null;if("disabled"===e.status)return e;let t=S();if("tailscale"===e.provider){let r=E(y());if(!r.installed)return(0,A.writeRemoteAccessRuntimeState)({status:"error",provider:"tailscale",publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:"Tailscale is no longer installed on this machine.",startedAt:e.startedAt??null});if(!r.connected||!r.dnsName)return(0,A.writeRemoteAccessRuntimeState)({status:"error",provider:"tailscale",publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:r.connectionError??"Tailscale is installed but not signed in on this machine.",startedAt:e.startedAt??null});try{let e=r.tailscalePath;if(!e)throw Error("Tailscale is installed but the executable path could not be resolved.");N(e,t,T())}catch(r){return(0,A.writeRemoteAccessRuntimeState)({status:"error",provider:"tailscale",publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:r instanceof Error?r.message:"Tailscale could not refresh the private remote endpoints.",startedAt:e.startedAt??null})}let n=P(r.dnsName);return"ready"!==e.status||e.publicUrl!==n||e.localUrl!==t||e.accessToken||e.sessionSecret?(0,A.writeRemoteAccessRuntimeState)({status:"ready",provider:"tailscale",publicUrl:n,localUrl:t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:null,startedAt:e.startedAt??new Date().toISOString()}):e}return e.tunnelPid&&await O(e.tunnelPid),(0,A.writeRemoteAccessRuntimeState)({status:"disabled",provider:null,publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:"Legacy public-share remote access has been removed. Re-enable remote access to use the private link.",startedAt:null})}async function x(e){let t;for(;U._conductorRemoteAccessLock;)await U._conductorRemoteAccessLock;let r=new Promise(e=>{t=e});U._conductorRemoteAccessLock=r;try{return await e()}finally{U._conductorRemoteAccessLock===r&&(U._conductorRemoteAccessLock=void 0),t()}}function _(e){let t=E(y()),r=e?.provider==="tailscale"||t.installed||t.canAutoInstall?"tailscale":null;return{state:e,recommendedProvider:r,installed:t.installed,connected:t.connected,canAutoInstall:t.canAutoInstall,autoInstallMethod:t.autoInstallMethod}}async function I(){return _(await k())}async function D(){return x(async()=>{let e=S(),t=await k();return t?.status==="ready"&&"tailscale"===t.provider&&t.publicUrl?_(t):_(function(e,t){let r=y(),n=E(r);if(!n.installed){if(!n.canAutoInstall)throw Error("Tailscale is not installed. Install it once, or set up Cloudflare Access for a protected public link.");var a=n.brewPath;if(!a)throw Error("Tailscale is not installed and automatic installation is not available.");if(0!==(0,w.spawnSync)(a,["install","tailscale"],{stdio:"inherit",env:{...process.env,NO_COLOR:"1"}}).status)throw Error("Homebrew could not install Tailscale.");n=E(r)}if(!(n=function(e){if(!e.tailscalePath)throw Error("Tailscale is not installed on this machine.");if(e.connected&&e.dnsName)return e;let t=process.env.CONDUCTOR_TAILSCALE_AUTH_KEY?.trim()??"";if(!t)throw Error(e.connectionError||"Tailscale is installed but not signed in. Sign in once with `tailscale up` or the Tailscale app, or set CONDUCTOR_TAILSCALE_AUTH_KEY for automatic setup.");let r=(0,w.spawnSync)(e.tailscalePath,["up",`--auth-key=${t}`],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==r.status)throw Error(r.stderr.trim()||r.stdout.trim()||"Tailscale could not complete automatic sign-in.");let n=E(e.brewPath);if(!n.connected||!n.dnsName)throw Error(n.connectionError||"Tailscale sign-in completed, but the private network URL is still unavailable.");return n}(n)).tailscalePath||!n.dnsName)throw Error("Tailscale did not expose a private DNS name for this machine.");return N(n.tailscalePath,t,T()),(0,A.writeRemoteAccessRuntimeState)({status:"ready",provider:"tailscale",publicUrl:P(n.dnsName),localUrl:t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:null,startedAt:e?.startedAt??new Date().toISOString()})}(t,e))})}async function H(){return x(async()=>{let e=await k();if(e?.provider==="tailscale"){let e=E(y());if(e.tailscalePath){let t=(0,w.spawnSync)(e.tailscalePath,["serve","reset"],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==t.status)throw Error(t.stderr.trim()||t.stdout.trim()||"Tailscale private link could not be disabled.")}}return _((0,A.writeRemoteAccessRuntimeState)({status:"disabled",provider:null,publicUrl:null,localUrl:e?.localUrl??S(),accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:null,startedAt:null}))})}var M=e.i(22156);function $(e){if(!e)return null;try{let t=new URL(e);if((0,M.isLoopbackHost)(t.hostname))return null;return t.origin}catch{return null}}function B(e,t){let r=(0,b.getDashboardConfigSnapshot)(),n=t.state;return{...function({access:e,clerkConfigured:t=!1,configuredPublicUrl:r,managedProvider:n=null,observedPublicUrl:a,preferredProvider:l=null,preferredProviderConnected:s=!1}){let i,o=(i=e?.trustedHeaders,i?.enabled===!0&&"generic"!==i.provider&&!!i.teamDomain?.trim()&&!!i.audience?.trim()),c=("tailscale"===n||o||t?$(r):null)??$(a),u=e?.trustedHeaders,d=u?.enabled===!0,p=u?.provider==="generic"?"generic":"cloudflare-access";return"tailscale"===n&&c?{publicUrl:c,connectUrl:c,shareable:!0,mode:"private-network",title:"Private remote URL ready",description:"Share this private URL only with operators who are already authenticated to your Tailscale network.",warnings:[],nextSteps:[]}:o&&c?{publicUrl:c,connectUrl:c,shareable:!0,mode:"cloudflare-access",title:"Remote URL is protected by Cloudflare Access",description:"Share the protected dashboard URL. Conductor expects Cloudflare Access to verify identity before requests reach the app.",warnings:[],nextSteps:[]}:c?d?{publicUrl:c,connectUrl:null,shareable:!1,mode:"generic-header",title:"Legacy trusted-header mode is blocked",description:"Conductor no longer treats generic header passthrough as enterprise-safe remote access.",warnings:["Switch to verified Cloudflare Access. Generic header passthrough is easier to spoof and is not offered as a shareable remote path."],nextSteps:["Disable the legacy proxy-header mode.","Configure verified Cloudflare Access with a team domain and audience, then share the protected external URL instead."]}:t?{publicUrl:c,connectUrl:c,shareable:!0,mode:"clerk",title:"Remote URL is protected by Clerk",description:"Share the public dashboard URL. Recipients still have to sign in before they can access the instance.",warnings:[],nextSteps:[]}:e?.requireAuth?{publicUrl:c,connectUrl:null,shareable:!1,mode:"misconfigured",title:"Authentication is required, but no remote provider is active",description:"Conductor found a public URL, but there is no private-network provider, Clerk setup, or verified edge identity provider to complete the sign-in.",warnings:[],nextSteps:["Configure Tailscale, Clerk, or verified Cloudflare Access before sharing this instance remotely."]}:{publicUrl:c,connectUrl:null,shareable:!1,mode:"unsafe-public",title:"Public URL found, but auth is missing",description:"Conductor will not suggest a shareable remote-control URL until the dashboard is protected by private-network access, Clerk, or verified Cloudflare Access.",warnings:["A bare public dashboard URL is not treated as safe remote access."],nextSteps:["Configure Tailscale, Clerk, or verified Cloudflare Access before exposing this dashboard."]}:d&&"cloudflare-access"===p?{publicUrl:null,connectUrl:null,shareable:!1,mode:"misconfigured",title:"Cloudflare Access needs a verified public URL",description:"Conductor will only show an enterprise remote URL after Cloudflare Access is fully configured and a stable external dashboard URL is known.",warnings:[],nextSteps:["Finish the Cloudflare Access application setup with a team domain and audience.","Set `CONDUCTOR_PUBLIC_DASHBOARD_URL` to your protected dashboard URL, or open Conductor through that URL once so it can be observed safely."]}:"tailscale"===l?{publicUrl:null,connectUrl:null,shareable:!1,mode:"enterprise-only",title:"Enterprise-only remote access is active",description:s?"This instance is ready for a private VPN-style remote link. Enable the managed private link to publish the private URL.":"This instance is ready for a private VPN-style remote link. Enable the managed private link after Tailscale is installed and signed in.",warnings:[],nextSteps:s?["Enable the private link from Settings.","Share the resulting private HTTPS URL only with operators who are already on your tailnet."]:["Install and sign in to Tailscale on this machine, then enable the private link from Settings.","Share the resulting private HTTPS URL only with operators who are already on your tailnet."]}:o?{publicUrl:null,connectUrl:null,shareable:!1,mode:"misconfigured",title:"Cloudflare Access needs a verified public URL",description:"Conductor is configured for enterprise edge identity, but it still needs the protected external dashboard URL before it can publish a remote link.",warnings:[],nextSteps:["Set `CONDUCTOR_PUBLIC_DASHBOARD_URL` to the protected external URL once Cloudflare Access is live."]}:{publicUrl:null,connectUrl:null,shareable:!1,mode:"enterprise-only",title:"Enterprise-only remote access is active",description:"Conductor no longer publishes public share links. Use the private Tailscale link or a protected Cloudflare Access URL instead.",warnings:[],nextSteps:["Install and sign in to Tailscale on this machine, then enable the private link from Settings.","Or configure verified Cloudflare Access and set `CONDUCTOR_PUBLIC_DASHBOARD_URL` to the protected external URL."]}}({access:r.access,clerkConfigured:!!(process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY&&process.env.CLERK_SECRET_KEY),configuredPublicUrl:n?.publicUrl||process.env.CONDUCTOR_PUBLIC_DASHBOARD_URL?.trim()||(r.access?.trustedHeaders?.enabled===!0&&r.access?.trustedHeaders?.provider!=="generic"&&r.access?.trustedHeaders?.teamDomain?.trim()&&r.access?.trustedHeaders?.audience?.trim()?r.dashboardUrl:null),managedProvider:n?.provider??null,observedPublicUrl:function(e){try{let t=new URL(e.url),r=e.headers.get("x-forwarded-host")?.split(",")[0]?.trim(),n=e.headers.get("x-forwarded-proto")?.split(",")[0]?.trim().toLowerCase(),a="https"===n||"http"===n?n:t.protocol.replace(/:$/,""),l=r||e.headers.get("host")?.trim()||t.host;return $(`${a}://${l}`)}catch{return null}}(e),preferredProvider:t.recommendedProvider,preferredProviderConnected:t.connected}),status:n?.status??"disabled",provider:n?.provider??null,recommendedProvider:t.recommendedProvider,localUrl:n?.localUrl??null,managed:n?.provider==="tailscale",installed:t.installed,connected:t.connected,canAutoInstall:t.canAutoInstall,autoInstallMethod:t.autoInstallMethod,lastError:n?.lastError??null,startedAt:n?.startedAt??null,updatedAt:n?.updatedAt??null}}async function q(e){let t=await (0,b.guardApiAccess)(e,"admin");if(t)return t;let r=await I();return v.NextResponse.json(B(e,r))}async function K(e){let t=await (0,b.guardApiAccess)(e,"admin");if(t)return t;let r=(0,b.guardApiActionAccess)(e);if(r)return r;let n=await e.json().catch(()=>null);if("enable"!==n?.action)return v.NextResponse.json({error:"Unsupported remote access action."},{status:400});try{let t=await D();return v.NextResponse.json(B(e,t))}catch(e){return v.NextResponse.json({error:e instanceof Error?e.message:"Remote access action failed."},{status:500})}}async function j(e){let t=await (0,b.guardApiAccess)(e,"admin");if(t)return t;let r=(0,b.guardApiActionAccess)(e);if(r)return r;try{let t=await H();return v.NextResponse.json(B(e,t))}catch(e){return v.NextResponse.json({error:e instanceof Error?e.message:"Remote access action failed."},{status:500})}}e.s(["DELETE",()=>j,"GET",()=>q,"POST",()=>K,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],28549);var F=e.i(28549);let G=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/remote-access/route",pathname:"/api/remote-access",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/src/app/api/remote-access/route.ts",nextConfigOutput:"standalone",userland:F}),{workAsyncStorage:V,workUnitAsyncStorage:X,serverHooks:Y}=G;function W(){return(0,n.patchFetch)({workAsyncStorage:V,workUnitAsyncStorage:X})}async function z(e,t,n){G.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/remote-access/route";v=v.replace(/\/index$/,"")||"/";let b=await G.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!b)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,params:A,nextConfig:U,parsedUrl:C,isDraftMode:y,prerenderManifest:E,routerServerContext:S,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,resolvedPathname:N,clientReferenceManifest:L,serverActionsManifest:O}=b,k=(0,i.normalizeAppPath)(v),x=!!(E.dynamicRoutes[k]||E.routes[N]),_=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,C,!1):t.end("This page could not be found"),null);if(x&&!y){let e=!!E.routes[N],t=E.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(U.experimental.adapterPath)return await _();throw new g.NoFallbackError}}let I=null;!x||G.isDev||y||(I="/index"===(I=N)?"/":I);let D=!0===G.isDev||!x,H=x&&!D;O&&L&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:L,serverActionsManifest:O});let M=e.method||"GET",$=(0,l.getTracer)(),B=$.getActiveScopeSpan(),q={params:A,prerenderManifest:E,renderOpts:{experimental:{authInterrupts:!!U.experimental.authInterrupts},cacheComponents:!!U.cacheComponents,supportsDynamicResponse:D,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:U.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>G.onRequestError(e,t,n,a,S)},sharedContext:{buildId:w}},K=new o.NodeNextRequest(e),j=new o.NodeNextResponse(t),F=c.NextRequestAdapter.fromNodeNextRequest(K,(0,c.signalFromNodeResponse)(t));try{let s=async e=>G.handle(F,q).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${M} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${v}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),o=async a=>{var l,o;let c=async({previousCacheEntry:r})=>{try{if(!i&&T&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let l=await s(a);e.fetchMetrics=q.renderOpts.fetchMetrics;let o=q.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let c=q.renderOpts.collectedTags;if(!x)return await (0,p.sendResponse)(K,j,l,q.renderOpts.pendingWaitUntil),null;{let e=await l.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(l.headers);c&&(t[m.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==q.renderOpts.collectedRevalidate&&!(q.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&q.renderOpts.collectedRevalidate,n=void 0===q.renderOpts.collectedExpire||q.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:q.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:l.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await G.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:T})},!1,S),t}},u=await G.handleResponse({req:e,nextConfig:U,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:E,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,responseGenerator:c,waitUntil:n.waitUntil,isMinimalMode:i});if(!x)return null;if((null==u||null==(l=u.value)?void 0:l.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),y&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return i&&x||g.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(K,j,new Response(u.value.body,{headers:g,status:u.value.status||200})),null};B?await o(B):await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${v}`,kind:l.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},o))}catch(t){if(t instanceof g.NoFallbackError||await G.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:T})},!1,S),x)throw t;return await (0,p.sendResponse)(K,j,new Response(null,{status:500})),null}}e.s(["handler",()=>z,"patchFetch",()=>W,"routeModule",()=>G,"serverHooks",()=>Y,"workAsyncStorage",()=>V,"workUnitAsyncStorage",()=>X],99458)}];
1
+ module.exports=[99458,e=>{"use strict";var t=e.i(47909),r=e.i(74017),n=e.i(96250),a=e.i(59756),l=e.i(61916),s=e.i(74677),i=e.i(69741),o=e.i(16795),c=e.i(87718),u=e.i(95169),d=e.i(47587),p=e.i(66012),h=e.i(70101),f=e.i(26937),m=e.i(10372),g=e.i(93695);e.i(52474);var R=e.i(220),v=e.i(89171),b=e.i(48295),w=e.i(74533);e.i(2157);var A=e.i(59541);let U=globalThis;function C(e){let t=(0,w.spawnSync)("sh",["-lc",`command -v ${e}`],{encoding:"utf8",stdio:["ignore","pipe","ignore"]});if(0===t.status){let e=t.stdout.trim().split(/\n+/g).pop()?.trim()??"";if(e.length>0)return e}return null}function y(){return C("brew")}function E(e=y()){let t=C("tailscale"),r=t?function(e){let t=(0,w.spawnSync)(e,["status","--json"],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==t.status)return{connected:!1,dnsName:null,error:t.stderr.trim()||t.stdout.trim()||"Tailscale is installed but not signed in on this machine."};try{let e=JSON.parse(t.stdout),r=function(e){if("string"!=typeof e)return null;let t=e.trim().replace(/\.+$/g,"");return t.length>0?t:null}(e.Self?.DNSName);return{connected:!!r,dnsName:r,error:r?null:"Tailscale is installed but not signed in on this machine."}}catch{return{connected:!1,dnsName:null,error:"Tailscale returned an unreadable status payload."}}}(t):{connected:!1,dnsName:null,error:null};return{provider:"tailscale",tailscalePath:t,brewPath:e,installed:!!t,canAutoInstall:!t&&!!e,autoInstallMethod:e?"brew":null,connected:r.connected,dnsName:r.dnsName,connectionError:r.error}}function S(){let e=process.env.PORT?.trim(),t=e?Number.parseInt(e,10):NaN,r=Number.isInteger(t)&&t>=1&&t<=65535?t:3e3,n=process.env.HOSTNAME?.trim().toLowerCase()||"127.0.0.1";return`http://${"0.0.0.0"===n||"::"===n?"127.0.0.1":n}:${r}`}function T(){let e=process.env.CONDUCTOR_BACKEND_URL?.trim();if(e)try{let t=new URL(e);if("http:"===t.protocol||"https:"===t.protocol)return e}catch{}let t=process.env.CONDUCTOR_BACKEND_PORT?.trim(),r=t?Number.parseInt(t,10):NaN;return!Number.isInteger(r)||r<1||r>65535?null:`http://127.0.0.1:${r}`}function L(e){let t=Number.parseInt(e,10);return Number.isInteger(t)&&t>=1&&t<=65535?t:null}function P(e){return`https://${e}`}function N(e,t,r){let n=function(e){try{return new URL(e).port||"80"}catch{return"3000"}}(t),a=(0,w.spawnSync)(e,["serve","--bg",n],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==a.status)throw Error(a.stderr.trim()||a.stdout.trim()||"Tailscale Serve could not publish a private HTTPS URL.");let l=function(e){if(!e)return null;let t=e.trim();if(!t)return null;try{let e=new URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)return null;let r=e.port?L(e.port):"https:"===e.protocol?443:80;return r?{port:r,target:t}:null}catch{let e=function(e){if(!e)return null;let t=e.trim();if(!t)return null;if(/^\d+$/.test(t))return L(t);if(!t.includes("://")){let e=`http://${t}`;try{let r,n=new URL(e);if(r=n.hostname.toLowerCase(),"localhost"!==r&&"127.0.0.1"!==r&&"::1"!==r&&"[::1]"!==r&&"0.0.0.0"!==r&&"::"!==r)return null;if(n.port)return L(n.port);return t===n.hostname||t===n.host||t===`[${n.hostname}]`?80:null}catch{}}return null}(t);if(!e)return null;if(/^\d+$/.test(t))return{port:e,target:`http://127.0.0.1:${e}`};return{port:e,target:new URL(`http://${t}`).toString()}}}(r);if(!l)return;let s=(0,w.spawnSync)(e,["serve","--bg","--https",String(l.port),l.target],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==s.status)throw Error(s.stderr.trim()||s.stdout.trim()||"Tailscale could not publish the private backend endpoint.")}function O(e){if(!e||e<=0)return!1;try{return process.kill(e,0),!0}catch(e){return"EPERM"===(e instanceof Error&&"code"in e?String(e.code):"")}}async function k(e){if(e&&O(e)){try{process.kill(e,"SIGTERM")}catch{return}for(let t=0;t<20;t+=1){if(!O(e))return;await new Promise(e=>setTimeout(e,150))}try{process.kill(e,"SIGKILL")}catch{return}}}async function x(){let e=(0,A.readRemoteAccessRuntimeState)();if(!e)return null;if("disabled"===e.status)return e;let t=S();if("tailscale"===e.provider){let r=E(y());if(!r.installed)return(0,A.writeRemoteAccessRuntimeState)({status:"error",provider:"tailscale",publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:"Tailscale is no longer installed on this machine.",startedAt:e.startedAt??null});if(!r.connected||!r.dnsName)return(0,A.writeRemoteAccessRuntimeState)({status:"error",provider:"tailscale",publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:r.connectionError??"Tailscale is installed but not signed in on this machine.",startedAt:e.startedAt??null});try{let e=r.tailscalePath;if(!e)throw Error("Tailscale is installed but the executable path could not be resolved.");N(e,t,T())}catch(r){return(0,A.writeRemoteAccessRuntimeState)({status:"error",provider:"tailscale",publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:r instanceof Error?r.message:"Tailscale could not refresh the private remote endpoints.",startedAt:e.startedAt??null})}let n=P(r.dnsName);return"ready"!==e.status||e.publicUrl!==n||e.localUrl!==t||e.accessToken||e.sessionSecret?(0,A.writeRemoteAccessRuntimeState)({status:"ready",provider:"tailscale",publicUrl:n,localUrl:t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:null,startedAt:e.startedAt??new Date().toISOString()}):e}return e.tunnelPid&&await k(e.tunnelPid),(0,A.writeRemoteAccessRuntimeState)({status:"disabled",provider:null,publicUrl:null,localUrl:e.localUrl??t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:"Legacy public-share remote access has been removed. Re-enable remote access to use the private link.",startedAt:null})}async function _(e){let t;for(;U._conductorRemoteAccessLock;)await U._conductorRemoteAccessLock;let r=new Promise(e=>{t=e});U._conductorRemoteAccessLock=r;try{return await e()}finally{U._conductorRemoteAccessLock===r&&(U._conductorRemoteAccessLock=void 0),t()}}function I(e){let t=E(y()),r=e?.provider==="tailscale"||t.installed||t.canAutoInstall?"tailscale":null;return{state:e,recommendedProvider:r,installed:t.installed,connected:t.connected,canAutoInstall:t.canAutoInstall,autoInstallMethod:t.autoInstallMethod}}async function D(){return I(await x())}async function H(){return _(async()=>{let e=S(),t=await x();return t?.status==="ready"&&"tailscale"===t.provider&&t.publicUrl?I(t):I(function(e,t){let r=y(),n=E(r);if(!n.installed){if(!n.canAutoInstall)throw Error("Tailscale is not installed. Install it once, or set up Cloudflare Access for a protected public link.");var a=n.brewPath;if(!a)throw Error("Tailscale is not installed and automatic installation is not available.");if(0!==(0,w.spawnSync)(a,["install","tailscale"],{stdio:"inherit",env:{...process.env,NO_COLOR:"1"}}).status)throw Error("Homebrew could not install Tailscale.");n=E(r)}if(!(n=function(e){if(!e.tailscalePath)throw Error("Tailscale is not installed on this machine.");if(e.connected&&e.dnsName)return e;let t=process.env.CONDUCTOR_TAILSCALE_AUTH_KEY?.trim()??"";if(!t)throw Error(e.connectionError||"Tailscale is installed but not signed in. Sign in once with `tailscale up` or the Tailscale app, or set CONDUCTOR_TAILSCALE_AUTH_KEY for automatic setup.");let r=(0,w.spawnSync)(e.tailscalePath,["up",`--auth-key=${t}`],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==r.status)throw Error(r.stderr.trim()||r.stdout.trim()||"Tailscale could not complete automatic sign-in.");let n=E(e.brewPath);if(!n.connected||!n.dnsName)throw Error(n.connectionError||"Tailscale sign-in completed, but the private network URL is still unavailable.");return n}(n)).tailscalePath||!n.dnsName)throw Error("Tailscale did not expose a private DNS name for this machine.");return N(n.tailscalePath,t,T()),(0,A.writeRemoteAccessRuntimeState)({status:"ready",provider:"tailscale",publicUrl:P(n.dnsName),localUrl:t,accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:null,startedAt:e?.startedAt??new Date().toISOString()})}(t,e))})}async function $(){return _(async()=>{let e=await x();if(e?.provider==="tailscale"){let e=E(y());if(e.tailscalePath){let t=(0,w.spawnSync)(e.tailscalePath,["serve","reset"],{encoding:"utf8",stdio:["ignore","pipe","pipe"],env:{...process.env,NO_COLOR:"1"}});if(0!==t.status)throw Error(t.stderr.trim()||t.stdout.trim()||"Tailscale private link could not be disabled.")}}return I((0,A.writeRemoteAccessRuntimeState)({status:"disabled",provider:null,publicUrl:null,localUrl:e?.localUrl??S(),accessToken:null,sessionSecret:null,tunnelPid:null,logPath:null,lastError:null,startedAt:null}))})}var M=e.i(22156);function B(e){if(!e)return null;try{let t=new URL(e);if((0,M.isLoopbackHost)(t.hostname))return null;return t.origin}catch{return null}}function q(e,t){let r=(0,b.getDashboardConfigSnapshot)(),n=t.state;return{...function({access:e,clerkConfigured:t=!1,configuredPublicUrl:r,managedProvider:n=null,observedPublicUrl:a,preferredProvider:l=null,preferredProviderConnected:s=!1}){let i,o=(i=e?.trustedHeaders,i?.enabled===!0&&"generic"!==i.provider&&!!i.teamDomain?.trim()&&!!i.audience?.trim()),c=("tailscale"===n||o||t?B(r):null)??B(a),u=e?.trustedHeaders,d=u?.enabled===!0,p=u?.provider==="generic"?"generic":"cloudflare-access";return"tailscale"===n&&c?{publicUrl:c,connectUrl:c,shareable:!0,mode:"private-network",title:"Private remote URL ready",description:"Share this private URL only with operators who are already authenticated to your Tailscale network.",warnings:[],nextSteps:[]}:o&&c?{publicUrl:c,connectUrl:c,shareable:!0,mode:"cloudflare-access",title:"Remote URL is protected by Cloudflare Access",description:"Share the protected dashboard URL. Conductor expects Cloudflare Access to verify identity before requests reach the app.",warnings:[],nextSteps:[]}:c?d?{publicUrl:c,connectUrl:null,shareable:!1,mode:"generic-header",title:"Legacy trusted-header mode is blocked",description:"Conductor no longer treats generic header passthrough as enterprise-safe remote access.",warnings:["Switch to verified Cloudflare Access. Generic header passthrough is easier to spoof and is not offered as a shareable remote path."],nextSteps:["Disable the legacy proxy-header mode.","Configure verified Cloudflare Access with a team domain and audience, then share the protected external URL instead."]}:t?{publicUrl:c,connectUrl:c,shareable:!0,mode:"clerk",title:"Remote URL is protected by Clerk",description:"Share the public dashboard URL. Recipients still have to sign in before they can access the instance.",warnings:[],nextSteps:[]}:e?.requireAuth?{publicUrl:c,connectUrl:null,shareable:!1,mode:"misconfigured",title:"Authentication is required, but no remote provider is active",description:"Conductor found a public URL, but there is no private-network provider, Clerk setup, or verified edge identity provider to complete the sign-in.",warnings:[],nextSteps:["Configure Tailscale, Clerk, or verified Cloudflare Access before sharing this instance remotely."]}:{publicUrl:c,connectUrl:null,shareable:!1,mode:"unsafe-public",title:"Public URL found, but auth is missing",description:"Conductor will not suggest a shareable remote-control URL until the dashboard is protected by private-network access, Clerk, or verified Cloudflare Access.",warnings:["A bare public dashboard URL is not treated as safe remote access."],nextSteps:["Configure Tailscale, Clerk, or verified Cloudflare Access before exposing this dashboard."]}:d&&"cloudflare-access"===p?{publicUrl:null,connectUrl:null,shareable:!1,mode:"misconfigured",title:"Cloudflare Access needs a verified public URL",description:"Conductor will only show an enterprise remote URL after Cloudflare Access is fully configured and a stable external dashboard URL is known.",warnings:[],nextSteps:["Finish the Cloudflare Access application setup with a team domain and audience.","Set `CONDUCTOR_PUBLIC_DASHBOARD_URL` to your protected dashboard URL, or open Conductor through that URL once so it can be observed safely."]}:"tailscale"===l?{publicUrl:null,connectUrl:null,shareable:!1,mode:"enterprise-only",title:"Enterprise-only remote access is active",description:s?"This instance is ready for a private VPN-style remote link. Enable the managed private link to publish the private URL.":"This instance is ready for a private VPN-style remote link. Enable the managed private link after Tailscale is installed and signed in.",warnings:[],nextSteps:s?["Enable the private link from Settings.","Share the resulting private HTTPS URL only with operators who are already on your tailnet."]:["Install and sign in to Tailscale on this machine, then enable the private link from Settings.","Share the resulting private HTTPS URL only with operators who are already on your tailnet."]}:o?{publicUrl:null,connectUrl:null,shareable:!1,mode:"misconfigured",title:"Cloudflare Access needs a verified public URL",description:"Conductor is configured for enterprise edge identity, but it still needs the protected external dashboard URL before it can publish a remote link.",warnings:[],nextSteps:["Set `CONDUCTOR_PUBLIC_DASHBOARD_URL` to the protected external URL once Cloudflare Access is live."]}:{publicUrl:null,connectUrl:null,shareable:!1,mode:"enterprise-only",title:"Enterprise-only remote access is active",description:"Conductor no longer publishes public share links. Use the private Tailscale link or a protected Cloudflare Access URL instead.",warnings:[],nextSteps:["Install and sign in to Tailscale on this machine, then enable the private link from Settings.","Or configure verified Cloudflare Access and set `CONDUCTOR_PUBLIC_DASHBOARD_URL` to the protected external URL."]}}({access:r.access,clerkConfigured:!!(process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY&&process.env.CLERK_SECRET_KEY),configuredPublicUrl:n?.publicUrl||process.env.CONDUCTOR_PUBLIC_DASHBOARD_URL?.trim()||(r.access?.trustedHeaders?.enabled===!0&&r.access?.trustedHeaders?.provider!=="generic"&&r.access?.trustedHeaders?.teamDomain?.trim()&&r.access?.trustedHeaders?.audience?.trim()?r.dashboardUrl:null),managedProvider:n?.provider??null,observedPublicUrl:function(e){try{let t=new URL(e.url),r=e.headers.get("x-forwarded-host")?.split(",")[0]?.trim(),n=e.headers.get("x-forwarded-proto")?.split(",")[0]?.trim().toLowerCase(),a="https"===n||"http"===n?n:t.protocol.replace(/:$/,""),l=r||e.headers.get("host")?.trim()||t.host;return B(`${a}://${l}`)}catch{return null}}(e),preferredProvider:t.recommendedProvider,preferredProviderConnected:t.connected}),status:n?.status??"disabled",provider:n?.provider??null,recommendedProvider:t.recommendedProvider,localUrl:n?.localUrl??null,managed:n?.provider==="tailscale",installed:t.installed,connected:t.connected,canAutoInstall:t.canAutoInstall,autoInstallMethod:t.autoInstallMethod,lastError:n?.lastError??null,startedAt:n?.startedAt??null,updatedAt:n?.updatedAt??null}}async function K(e){let t=await (0,b.guardApiAccess)(e,"admin");if(t)return t;let r=await D();return v.NextResponse.json(q(e,r))}async function j(e){let t=await (0,b.guardApiAccess)(e,"admin");if(t)return t;let r=(0,b.guardApiActionAccess)(e);if(r)return r;let n=await e.json().catch(()=>null);if("enable"!==n?.action)return v.NextResponse.json({error:"Unsupported remote access action."},{status:400});try{let t=await H();return v.NextResponse.json(q(e,t))}catch(e){return v.NextResponse.json({error:e instanceof Error?e.message:"Remote access action failed."},{status:500})}}async function F(e){let t=await (0,b.guardApiAccess)(e,"admin");if(t)return t;let r=(0,b.guardApiActionAccess)(e);if(r)return r;try{let t=await $();return v.NextResponse.json(q(e,t))}catch(e){return v.NextResponse.json({error:e instanceof Error?e.message:"Remote access action failed."},{status:500})}}e.s(["DELETE",()=>F,"GET",()=>K,"POST",()=>j,"dynamic",0,"force-dynamic","runtime",0,"nodejs"],28549);var G=e.i(28549);let V=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/remote-access/route",pathname:"/api/remote-access",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/src/app/api/remote-access/route.ts",nextConfigOutput:"standalone",userland:G}),{workAsyncStorage:X,workUnitAsyncStorage:Y,serverHooks:W}=V;function z(){return(0,n.patchFetch)({workAsyncStorage:X,workUnitAsyncStorage:Y})}async function J(e,t,n){V.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/remote-access/route";v=v.replace(/\/index$/,"")||"/";let b=await V.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!b)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,params:A,nextConfig:U,parsedUrl:C,isDraftMode:y,prerenderManifest:E,routerServerContext:S,isOnDemandRevalidate:T,revalidateOnlyGenerated:L,resolvedPathname:P,clientReferenceManifest:N,serverActionsManifest:O}=b,k=(0,i.normalizeAppPath)(v),x=!!(E.dynamicRoutes[k]||E.routes[P]),_=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,C,!1):t.end("This page could not be found"),null);if(x&&!y){let e=!!E.routes[P],t=E.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(U.experimental.adapterPath)return await _();throw new g.NoFallbackError}}let I=null;!x||V.isDev||y||(I="/index"===(I=P)?"/":I);let D=!0===V.isDev||!x,H=x&&!D;O&&N&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:N,serverActionsManifest:O});let $=e.method||"GET",M=(0,l.getTracer)(),B=M.getActiveScopeSpan(),q={params:A,prerenderManifest:E,renderOpts:{experimental:{authInterrupts:!!U.experimental.authInterrupts},cacheComponents:!!U.cacheComponents,supportsDynamicResponse:D,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:U.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>V.onRequestError(e,t,n,a,S)},sharedContext:{buildId:w}},K=new o.NodeNextRequest(e),j=new o.NodeNextResponse(t),F=c.NextRequestAdapter.fromNodeNextRequest(K,(0,c.signalFromNodeResponse)(t));try{let s=async e=>V.handle(F,q).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${$} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t)}else e.updateName(`${$} ${v}`)}),i=!!(0,a.getRequestMeta)(e,"minimalMode"),o=async a=>{var l,o;let c=async({previousCacheEntry:r})=>{try{if(!i&&T&&L&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let l=await s(a);e.fetchMetrics=q.renderOpts.fetchMetrics;let o=q.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let c=q.renderOpts.collectedTags;if(!x)return await (0,p.sendResponse)(K,j,l,q.renderOpts.pendingWaitUntil),null;{let e=await l.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(l.headers);c&&(t[m.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==q.renderOpts.collectedRevalidate&&!(q.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&q.renderOpts.collectedRevalidate,n=void 0===q.renderOpts.collectedExpire||q.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:q.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:l.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await V.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:T})},!1,S),t}},u=await V.handleResponse({req:e,nextConfig:U,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:E,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:L,responseGenerator:c,waitUntil:n.waitUntil,isMinimalMode:i});if(!x)return null;if((null==u||null==(l=u.value)?void 0:l.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),y&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return i&&x||g.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,f.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(K,j,new Response(u.value.body,{headers:g,status:u.value.status||200})),null};B?await o(B):await M.withPropagatedContext(e.headers,()=>M.trace(u.BaseServerSpan.handleRequest,{spanName:`${$} ${v}`,kind:l.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},o))}catch(t){if(t instanceof g.NoFallbackError||await V.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:T})},!1,S),x)throw t;return await (0,p.sendResponse)(K,j,new Response(null,{status:500})),null}}e.s(["handler",()=>J,"patchFetch",()=>z,"routeModule",()=>V,"serverHooks",()=>W,"workAsyncStorage",()=>X,"workUnitAsyncStorage",()=>Y],99458)}];
2
2
 
3
3
  //# sourceMappingURL=node_modules_next_dist_esm_build_templates_app-route_eaad1f33.js.map
@@ -1,4 +1,4 @@
1
1
  module.exports=[66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},37936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},13095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},85978,a=>{"use strict";var b=a.i(37936),c=a.i(5246),d=a.i(13095);async function e(){var a,b,d,e,g,h;let i,j=await (0,c.headers)();return{nodeVersion:process.version,nextVersion:function(){var a;try{return null!=(a=process.title)?a:"unknown-process-title"}catch{return}}(),npmConfigUserAgent:process.env.npm_config_user_agent,userAgent:null!=(a=j.get("User-Agent"))?a:"unknown user-agent",port:process.env.PORT,host:null!=(b=j.get("host"))?b:"unknown host",xPort:null!=(d=j.get("x-forwarded-port"))?d:"unknown x-forwarded-port",xHost:null!=(e=j.get("x-forwarded-host"))?e:"unknown x-forwarded-host",xProtocol:null!=(g=j.get("x-forwarded-proto"))?g:"unknown x-forwarded-proto",xClerkAuthStatus:null!=(h=j.get("x-clerk-auth-status"))?h:"unknown x-clerk-auth-status",isCI:(i=new Set(["","false","0","no"]),f.some(a=>{let b=process.env[a];if(void 0===b)return!1;let c=b.trim().toLowerCase();return!i.has(c)}))}}let f=["CI","CONTINUOUS_INTEGRATION","BUILD_NUMBER","BUILD_ID","BUILDKITE","CIRCLECI","GITHUB_ACTIONS","GITLAB_CI","JENKINS_URL","TRAVIS","APPVEYOR","WERCKER","DRONE","CODESHIP","SEMAPHORE","SHIPPABLE","TEAMCITY_VERSION","BAMBOO_BUILDKEY","GO_PIPELINE_NAME","TF_BUILD","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITBUCKET_BUILD_NUMBER","HEROKU_TEST_RUN_ID","VERCEL","NETLIFY"];async function g(a){let b=new Headers;return a.nodeVersion&&b.set("Clerk-Node-Version",a.nodeVersion),a.nextVersion&&b.set("Clerk-Next-Version",a.nextVersion),a.npmConfigUserAgent&&b.set("Clerk-NPM-Config-User-Agent",a.npmConfigUserAgent),a.userAgent&&b.set("Clerk-Client-User-Agent",a.userAgent),a.port&&b.set("Clerk-Node-Port",a.port),a.host&&b.set("Clerk-Client-Host",a.host),a.xPort&&b.set("Clerk-X-Port",a.xPort),a.xHost&&b.set("Clerk-X-Host",a.xHost),a.xProtocol&&b.set("Clerk-X-Protocol",a.xProtocol),a.xClerkAuthStatus&&b.set("Clerk-Auth-Status",a.xClerkAuthStatus),a.isCI&&b.set("Clerk-Is-CI","true"),b}(0,d.ensureServerEntryExports)([e,g]),(0,b.registerServerReference)(e,"00dcf50bcd320d224db55ff26640a38effb293bebf",null),(0,b.registerServerReference)(g,"40c742ff2c72283f5dfe1c9c60afe208f2c758230e",null),a.s(["collectKeylessMetadata",()=>e,"formatMetadataHeaders",()=>g])},26022,a=>{"use strict";var b=a.i(37936),c=a.i(5246);a.i(70396);var d=a.i(73727),e=a.i(83693),f=a.i(63365),g=a.i(24088),h=a.i(43197),i=a.i(13095);let j={secure:!1,httpOnly:!1,sameSite:"lax"};async function k(a){let{claimUrl:b,publishableKey:e,secretKey:h,returnUrl:i}=a,k=await (0,c.cookies)(),l=new Request("https://placeholder.com",{headers:await (0,c.headers)()}),m=await (0,g.getKeylessCookieValue)(a=>{var b;return null==(b=k.get(a))?void 0:b.value}),n=(null==m?void 0:m.publishableKey)===e,o=(null==m?void 0:m.secretKey)===h;if((!n||!o)&&(k.set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:b,publishableKey:e,secretKey:h}),j),(0,f.detectClerkMiddleware)(l)))return void(0,d.redirect)(`/clerk-sync-keyless?returnUrl=${i}`,d.RedirectType.replace)}async function l(){if(!h.canUseKeyless)return null;let b=await a.A(72721).then(a=>a.createOrReadKeyless()).catch(()=>null);if(!b)return e.errorThrower.throwMissingPublishableKeyError(),null;let{clerkDevelopmentCache:d,createKeylessModeMessage:f}=await a.A(21215);null==d||d.log({cacheKey:b.publishableKey,msg:f(b)});let{claimUrl:i,publishableKey:k,secretKey:l,apiKeysUrl:m}=b;return(await (0,c.cookies)()).set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:i,publishableKey:k,secretKey:l}),j),{claimUrl:i,publishableKey:k,apiKeysUrl:m}}async function m(){h.canUseKeyless&&await a.A(72721).then(a=>a.removeKeyless()).catch(()=>{})}async function n(){if(h.canUseKeyless)try{let{detectKeylessEnvDrift:b}=await a.A(67338);await b()}catch{}}(0,i.ensureServerEntryExports)([k,l,m,n]),(0,b.registerServerReference)(k,"4012c270bcc2acdc29f3a47a3acaf502945d0c0cac",null),(0,b.registerServerReference)(l,"00449e1a07cc561839e527e64fe15e04f7e64dcba5",null),(0,b.registerServerReference)(m,"00e53cc6b087a4d8a89066d3620422d28fc805a7ce",null),(0,b.registerServerReference)(n,"00bd02b701e3f27906d1492e6174e7412e65e4f50d",null),a.s(["createOrReadKeylessAction",()=>l,"deleteKeylessAction",()=>m,"detectKeylessEnvDriftAction",()=>n,"syncKeylessConfigAction",()=>k])},75582,57110,76010,a=>{"use strict";var b=a.i(59292);function c(a){return async(...b)=>{let{data:c,errors:d}=await a(...b);if(d)throw d[0];return c}}function d(a){return(...b)=>{let{data:c,errors:d}=a(...b);if(d)throw d[0];return c}}a.i(79378),a.s(["withLegacyReturn",()=>c,"withLegacySyncReturn",()=>d],57110),a.i(75400),a.i(61675),a.i(16765),a.i(28249),a.i(49326),a.i(71327);var e=a.i(3598),f=a.i(36482),g=class{#a;#b=864e5;constructor(a){this.#a=a}isEventThrottled(a){let b=Date.now(),c=this.#c(a),d=this.#a.getItem(c);return!!d&&!(b-d>this.#b)||(this.#a.setItem(c,b),!1)}#c(a){let{sk:b,pk:c,payload:d,...e}=a,f={...d,...e};return JSON.stringify(Object.keys({...d,...e}).sort().map(a=>f[a]))}},h=class{#d="clerk_telemetry_throttler";getItem(a){return this.#e()[a]}setItem(a,b){try{let c=this.#e();c[a]=b,localStorage.setItem(this.#d,JSON.stringify(c))}catch(a){a instanceof DOMException&&("QuotaExceededError"===a.name||"NS_ERROR_DOM_QUOTA_REACHED"===a.name)&&localStorage.length>0&&localStorage.removeItem(this.#d)}}removeItem(a){try{let b=this.#e();delete b[a],localStorage.setItem(this.#d,JSON.stringify(b))}catch{}}#e(){try{let a=localStorage.getItem(this.#d);if(!a)return{};return JSON.parse(a)}catch{return{}}}static isSupported(){return!1}},i=class{#a=new Map;#f=1e4;getItem(a){return this.#a.size>this.#f?void this.#a.clear():this.#a.get(a)}setItem(a,b){this.#a.set(a,b)}removeItem(a){this.#a.delete(a)}};let j=new Set(["error","warn","info","debug","trace"]);var k=class{#g;#h;#i={};#j=[];#k=null;constructor(a){this.#g={maxBufferSize:a.maxBufferSize??5,samplingRate:a.samplingRate??1,perEventSampling:a.perEventSampling??!0,disabled:a.disabled??!1,debug:a.debug??!1,endpoint:"https://clerk-telemetry.com"},a.clerkVersion?this.#i.clerkVersion=a.clerkVersion??"":this.#i.clerkVersion="",this.#i.sdk=a.sdk,this.#i.sdkVersion=a.sdkVersion,this.#i.publishableKey=a.publishableKey??"";const b=(0,e.parsePublishableKey)(a.publishableKey);b&&(this.#i.instanceType=b.instanceType),a.secretKey&&(this.#i.secretKey=a.secretKey.substring(0,16)),this.#h=new g(h.isSupported()?new h:new i)}get isEnabled(){return!("development"!==this.#i.instanceType||this.#g.disabled||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DISABLED))}get isDebug(){return this.#g.debug||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DEBUG)}record(a){try{let b=this.#l(a.event,a.payload);if(this.#m(b.event,b),!this.#n(b,a.eventSamplingRate))return;this.#j.push({kind:"event",value:b}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry event",a)}}recordLog(a){try{if(!this.#p(a))return;let b="string"==typeof a?.level&&j.has(a.level),c="string"==typeof a?.message&&a.message.trim().length>0,d=null,e=a?.timestamp;if("number"==typeof e||"string"==typeof e){let a=new Date(e);Number.isNaN(a.getTime())||(d=a)}if(!b||!c||null===d){this.isDebug&&"u">typeof console&&console.warn("[clerk/telemetry] Dropping invalid telemetry log entry",{levelIsValid:b,messageIsValid:c,timestampIsValid:null!==d});return}let f=this.#q(),g={sdk:f.name,sdkv:f.version,cv:this.#i.clerkVersion??"",lvl:a.level,msg:a.message,ts:d.toISOString(),pk:this.#i.publishableKey||null,payload:this.#r(a.context)};this.#j.push({kind:"log",value:g}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry log entry",a)}}#n(a,b){return this.isEnabled&&!this.isDebug&&this.#s(a,b)}#p(a){return!0}#s(a,b){let c=Math.random();return!!(c<=this.#g.samplingRate&&(!1===this.#g.perEventSampling||void 0===b||c<=b))&&!this.#h.isEventThrottled(a)}#o(){this.#t()}#t(){let a=[...this.#j];if(this.#j=[],this.#k=null,0===a.length)return;let b=a.filter(a=>"event"===a.kind).map(a=>a.value),c=a.filter(a=>"log"===a.kind).map(a=>a.value);b.length>0&&fetch(new URL("/v1/event",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({events:b})}).catch(()=>void 0),c.length>0&&fetch(new URL("/v1/logs",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({logs:c})}).catch(()=>void 0)}#m(a,b){this.isDebug&&(void 0!==console.groupCollapsed?(console.groupCollapsed("[clerk/telemetry]",a),console.log(b),console.groupEnd()):console.log("[clerk/telemetry]",a,b))}#q(){return{name:this.#i.sdk,version:this.#i.sdkVersion}}#l(a,b){let c=this.#q();return{event:a,cv:this.#i.clerkVersion??"",it:this.#i.instanceType??"",sdk:c.name,sdkv:c.version,...this.#i.publishableKey?{pk:this.#i.publishableKey}:{},...this.#i.secretKey?{sk:this.#i.secretKey}:{},payload:b}}#r(a){if(null==a||"object"!=typeof a)return null;try{let b=JSON.parse(JSON.stringify(a));if(b&&"object"==typeof b&&!Array.isArray(b))return b;return null}catch{return null}}},l=c(b.verifyToken);function m(a){let c={...a},d=(0,b.createBackendApiClient)(c),e=(0,b.createAuthenticateRequest)({options:c,apiClient:d}),f=new k({publishableKey:c.publishableKey,secretKey:c.secretKey,samplingRate:.1,...c.sdkMetadata?{sdk:c.sdkMetadata.name,sdkVersion:c.sdkMetadata.version}:{},...c.telemetry||{}});return{...d,...e,telemetry:f}}a.s(["createClerkClient",()=>m,"verifyToken",()=>l],76010);var n=a.i(82849);let o={secretKey:n.SECRET_KEY,publishableKey:n.PUBLISHABLE_KEY,apiUrl:n.API_URL,apiVersion:n.API_VERSION,userAgent:"@clerk/nextjs@6.39.0",proxyUrl:n.PROXY_URL,domain:n.DOMAIN,isSatellite:n.IS_SATELLITE,machineSecretKey:n.MACHINE_SECRET_KEY,sdkMetadata:n.SDK_METADATA,telemetry:{disabled:n.TELEMETRY_DISABLED,debug:n.TELEMETRY_DEBUG}},p=a=>m({...o,...a});a.s(["createClerkClientWithOptions",()=>p],75582)},58658,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","Waitlist")},80832,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","Waitlist")},40163,a=>{"use strict";a.i(58658);var b=a.i(80832);a.n(b)},72721,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__f8f50c0b._.js"].map(b=>a.l(b))).then(()=>b(488)))},21215,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_server_keyless-log-cache_52006def.js"].map(b=>a.l(b))).then(()=>b(78829)))},67338,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__9f45b36b._.js"].map(b=>a.l(b))).then(()=>b(71227)))},67257,a=>{a.v(b=>Promise.all(["server/chunks/ssr/d4b1c_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-cookie-sync_f823d0f8.js"].map(b=>a.l(b))).then(()=>b(6223)))},23804,a=>{a.v(a=>Promise.resolve().then(()=>a(5246)))},77710,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__10a850c6._.js"].map(b=>a.l(b))).then(()=>b(15866)))}];
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},85978,a=>{"use strict";var b=a.i(37936),c=a.i(5246),d=a.i(13095);async function e(){var a,b,d,e,g,h;let i,j=await (0,c.headers)();return{nodeVersion:process.version,nextVersion:function(){var a;try{return null!=(a=process.title)?a:"unknown-process-title"}catch{return}}(),npmConfigUserAgent:process.env.npm_config_user_agent,userAgent:null!=(a=j.get("User-Agent"))?a:"unknown user-agent",port:process.env.PORT,host:null!=(b=j.get("host"))?b:"unknown host",xPort:null!=(d=j.get("x-forwarded-port"))?d:"unknown x-forwarded-port",xHost:null!=(e=j.get("x-forwarded-host"))?e:"unknown x-forwarded-host",xProtocol:null!=(g=j.get("x-forwarded-proto"))?g:"unknown x-forwarded-proto",xClerkAuthStatus:null!=(h=j.get("x-clerk-auth-status"))?h:"unknown x-clerk-auth-status",isCI:(i=new Set(["","false","0","no"]),f.some(a=>{let b=process.env[a];if(void 0===b)return!1;let c=b.trim().toLowerCase();return!i.has(c)}))}}let f=["CI","CONTINUOUS_INTEGRATION","BUILD_NUMBER","BUILD_ID","BUILDKITE","CIRCLECI","GITHUB_ACTIONS","GITLAB_CI","JENKINS_URL","TRAVIS","APPVEYOR","WERCKER","DRONE","CODESHIP","SEMAPHORE","SHIPPABLE","TEAMCITY_VERSION","BAMBOO_BUILDKEY","GO_PIPELINE_NAME","TF_BUILD","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITBUCKET_BUILD_NUMBER","HEROKU_TEST_RUN_ID","VERCEL","NETLIFY"];async function g(a){let b=new Headers;return a.nodeVersion&&b.set("Clerk-Node-Version",a.nodeVersion),a.nextVersion&&b.set("Clerk-Next-Version",a.nextVersion),a.npmConfigUserAgent&&b.set("Clerk-NPM-Config-User-Agent",a.npmConfigUserAgent),a.userAgent&&b.set("Clerk-Client-User-Agent",a.userAgent),a.port&&b.set("Clerk-Node-Port",a.port),a.host&&b.set("Clerk-Client-Host",a.host),a.xPort&&b.set("Clerk-X-Port",a.xPort),a.xHost&&b.set("Clerk-X-Host",a.xHost),a.xProtocol&&b.set("Clerk-X-Protocol",a.xProtocol),a.xClerkAuthStatus&&b.set("Clerk-Auth-Status",a.xClerkAuthStatus),a.isCI&&b.set("Clerk-Is-CI","true"),b}(0,d.ensureServerEntryExports)([e,g]),(0,b.registerServerReference)(e,"00225b1c8436f48f9ac65b2828abd168820592fbe9",null),(0,b.registerServerReference)(g,"400a17ff17aa6d9224c99f1a198ea238fc55912cdf",null),a.s(["collectKeylessMetadata",()=>e,"formatMetadataHeaders",()=>g])},26022,a=>{"use strict";var b=a.i(37936),c=a.i(5246);a.i(70396);var d=a.i(73727),e=a.i(83693),f=a.i(63365),g=a.i(24088),h=a.i(43197),i=a.i(13095);let j={secure:!1,httpOnly:!1,sameSite:"lax"};async function k(a){let{claimUrl:b,publishableKey:e,secretKey:h,returnUrl:i}=a,k=await (0,c.cookies)(),l=new Request("https://placeholder.com",{headers:await (0,c.headers)()}),m=await (0,g.getKeylessCookieValue)(a=>{var b;return null==(b=k.get(a))?void 0:b.value}),n=(null==m?void 0:m.publishableKey)===e,o=(null==m?void 0:m.secretKey)===h;if((!n||!o)&&(k.set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:b,publishableKey:e,secretKey:h}),j),(0,f.detectClerkMiddleware)(l)))return void(0,d.redirect)(`/clerk-sync-keyless?returnUrl=${i}`,d.RedirectType.replace)}async function l(){if(!h.canUseKeyless)return null;let b=await a.A(72721).then(a=>a.createOrReadKeyless()).catch(()=>null);if(!b)return e.errorThrower.throwMissingPublishableKeyError(),null;let{clerkDevelopmentCache:d,createKeylessModeMessage:f}=await a.A(21215);null==d||d.log({cacheKey:b.publishableKey,msg:f(b)});let{claimUrl:i,publishableKey:k,secretKey:l,apiKeysUrl:m}=b;return(await (0,c.cookies)()).set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:i,publishableKey:k,secretKey:l}),j),{claimUrl:i,publishableKey:k,apiKeysUrl:m}}async function m(){h.canUseKeyless&&await a.A(72721).then(a=>a.removeKeyless()).catch(()=>{})}async function n(){if(h.canUseKeyless)try{let{detectKeylessEnvDrift:b}=await a.A(67338);await b()}catch{}}(0,i.ensureServerEntryExports)([k,l,m,n]),(0,b.registerServerReference)(k,"40790fe73e14af8b5aa4141c4a034e05e36c3238c4",null),(0,b.registerServerReference)(l,"0058a4124fe4517c6779c375c2bcda5a703551090e",null),(0,b.registerServerReference)(m,"00bcbb4b031d59b8bdc97b0cb01b70d14e4af4499f",null),(0,b.registerServerReference)(n,"004777a93a226534d53e44b390bc52ef43e9fd2257",null),a.s(["createOrReadKeylessAction",()=>l,"deleteKeylessAction",()=>m,"detectKeylessEnvDriftAction",()=>n,"syncKeylessConfigAction",()=>k])},75582,57110,76010,a=>{"use strict";var b=a.i(59292);function c(a){return async(...b)=>{let{data:c,errors:d}=await a(...b);if(d)throw d[0];return c}}function d(a){return(...b)=>{let{data:c,errors:d}=a(...b);if(d)throw d[0];return c}}a.i(79378),a.s(["withLegacyReturn",()=>c,"withLegacySyncReturn",()=>d],57110),a.i(75400),a.i(61675),a.i(16765),a.i(28249),a.i(49326),a.i(71327);var e=a.i(3598),f=a.i(36482),g=class{#a;#b=864e5;constructor(a){this.#a=a}isEventThrottled(a){let b=Date.now(),c=this.#c(a),d=this.#a.getItem(c);return!!d&&!(b-d>this.#b)||(this.#a.setItem(c,b),!1)}#c(a){let{sk:b,pk:c,payload:d,...e}=a,f={...d,...e};return JSON.stringify(Object.keys({...d,...e}).sort().map(a=>f[a]))}},h=class{#d="clerk_telemetry_throttler";getItem(a){return this.#e()[a]}setItem(a,b){try{let c=this.#e();c[a]=b,localStorage.setItem(this.#d,JSON.stringify(c))}catch(a){a instanceof DOMException&&("QuotaExceededError"===a.name||"NS_ERROR_DOM_QUOTA_REACHED"===a.name)&&localStorage.length>0&&localStorage.removeItem(this.#d)}}removeItem(a){try{let b=this.#e();delete b[a],localStorage.setItem(this.#d,JSON.stringify(b))}catch{}}#e(){try{let a=localStorage.getItem(this.#d);if(!a)return{};return JSON.parse(a)}catch{return{}}}static isSupported(){return!1}},i=class{#a=new Map;#f=1e4;getItem(a){return this.#a.size>this.#f?void this.#a.clear():this.#a.get(a)}setItem(a,b){this.#a.set(a,b)}removeItem(a){this.#a.delete(a)}};let j=new Set(["error","warn","info","debug","trace"]);var k=class{#g;#h;#i={};#j=[];#k=null;constructor(a){this.#g={maxBufferSize:a.maxBufferSize??5,samplingRate:a.samplingRate??1,perEventSampling:a.perEventSampling??!0,disabled:a.disabled??!1,debug:a.debug??!1,endpoint:"https://clerk-telemetry.com"},a.clerkVersion?this.#i.clerkVersion=a.clerkVersion??"":this.#i.clerkVersion="",this.#i.sdk=a.sdk,this.#i.sdkVersion=a.sdkVersion,this.#i.publishableKey=a.publishableKey??"";const b=(0,e.parsePublishableKey)(a.publishableKey);b&&(this.#i.instanceType=b.instanceType),a.secretKey&&(this.#i.secretKey=a.secretKey.substring(0,16)),this.#h=new g(h.isSupported()?new h:new i)}get isEnabled(){return!("development"!==this.#i.instanceType||this.#g.disabled||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DISABLED))}get isDebug(){return this.#g.debug||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DEBUG)}record(a){try{let b=this.#l(a.event,a.payload);if(this.#m(b.event,b),!this.#n(b,a.eventSamplingRate))return;this.#j.push({kind:"event",value:b}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry event",a)}}recordLog(a){try{if(!this.#p(a))return;let b="string"==typeof a?.level&&j.has(a.level),c="string"==typeof a?.message&&a.message.trim().length>0,d=null,e=a?.timestamp;if("number"==typeof e||"string"==typeof e){let a=new Date(e);Number.isNaN(a.getTime())||(d=a)}if(!b||!c||null===d){this.isDebug&&"u">typeof console&&console.warn("[clerk/telemetry] Dropping invalid telemetry log entry",{levelIsValid:b,messageIsValid:c,timestampIsValid:null!==d});return}let f=this.#q(),g={sdk:f.name,sdkv:f.version,cv:this.#i.clerkVersion??"",lvl:a.level,msg:a.message,ts:d.toISOString(),pk:this.#i.publishableKey||null,payload:this.#r(a.context)};this.#j.push({kind:"log",value:g}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry log entry",a)}}#n(a,b){return this.isEnabled&&!this.isDebug&&this.#s(a,b)}#p(a){return!0}#s(a,b){let c=Math.random();return!!(c<=this.#g.samplingRate&&(!1===this.#g.perEventSampling||void 0===b||c<=b))&&!this.#h.isEventThrottled(a)}#o(){this.#t()}#t(){let a=[...this.#j];if(this.#j=[],this.#k=null,0===a.length)return;let b=a.filter(a=>"event"===a.kind).map(a=>a.value),c=a.filter(a=>"log"===a.kind).map(a=>a.value);b.length>0&&fetch(new URL("/v1/event",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({events:b})}).catch(()=>void 0),c.length>0&&fetch(new URL("/v1/logs",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({logs:c})}).catch(()=>void 0)}#m(a,b){this.isDebug&&(void 0!==console.groupCollapsed?(console.groupCollapsed("[clerk/telemetry]",a),console.log(b),console.groupEnd()):console.log("[clerk/telemetry]",a,b))}#q(){return{name:this.#i.sdk,version:this.#i.sdkVersion}}#l(a,b){let c=this.#q();return{event:a,cv:this.#i.clerkVersion??"",it:this.#i.instanceType??"",sdk:c.name,sdkv:c.version,...this.#i.publishableKey?{pk:this.#i.publishableKey}:{},...this.#i.secretKey?{sk:this.#i.secretKey}:{},payload:b}}#r(a){if(null==a||"object"!=typeof a)return null;try{let b=JSON.parse(JSON.stringify(a));if(b&&"object"==typeof b&&!Array.isArray(b))return b;return null}catch{return null}}},l=c(b.verifyToken);function m(a){let c={...a},d=(0,b.createBackendApiClient)(c),e=(0,b.createAuthenticateRequest)({options:c,apiClient:d}),f=new k({publishableKey:c.publishableKey,secretKey:c.secretKey,samplingRate:.1,...c.sdkMetadata?{sdk:c.sdkMetadata.name,sdkVersion:c.sdkMetadata.version}:{},...c.telemetry||{}});return{...d,...e,telemetry:f}}a.s(["createClerkClient",()=>m,"verifyToken",()=>l],76010);var n=a.i(82849);let o={secretKey:n.SECRET_KEY,publishableKey:n.PUBLISHABLE_KEY,apiUrl:n.API_URL,apiVersion:n.API_VERSION,userAgent:"@clerk/nextjs@6.39.0",proxyUrl:n.PROXY_URL,domain:n.DOMAIN,isSatellite:n.IS_SATELLITE,machineSecretKey:n.MACHINE_SECRET_KEY,sdkMetadata:n.SDK_METADATA,telemetry:{disabled:n.TELEMETRY_DISABLED,debug:n.TELEMETRY_DEBUG}},p=a=>m({...o,...a});a.s(["createClerkClientWithOptions",()=>p],75582)},58658,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","Waitlist")},80832,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","Waitlist")},40163,a=>{"use strict";a.i(58658);var b=a.i(80832);a.n(b)},72721,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__f8f50c0b._.js"].map(b=>a.l(b))).then(()=>b(488)))},21215,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_server_keyless-log-cache_52006def.js"].map(b=>a.l(b))).then(()=>b(78829)))},67338,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__9f45b36b._.js"].map(b=>a.l(b))).then(()=>b(71227)))},67257,a=>{a.v(b=>Promise.all(["server/chunks/ssr/d4b1c_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-cookie-sync_f823d0f8.js"].map(b=>a.l(b))).then(()=>b(6223)))},23804,a=>{a.v(a=>Promise.resolve().then(()=>a(5246)))},77710,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__10a850c6._.js"].map(b=>a.l(b))).then(()=>b(15866)))}];
3
3
 
4
4
  //# sourceMappingURL=%5Broot-of-the-server%5D__000b8c99._.js.map
@@ -1,4 +1,4 @@
1
1
  module.exports=[66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},37936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},13095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},85978,a=>{"use strict";var b=a.i(37936),c=a.i(5246),d=a.i(13095);async function e(){var a,b,d,e,g,h;let i,j=await (0,c.headers)();return{nodeVersion:process.version,nextVersion:function(){var a;try{return null!=(a=process.title)?a:"unknown-process-title"}catch{return}}(),npmConfigUserAgent:process.env.npm_config_user_agent,userAgent:null!=(a=j.get("User-Agent"))?a:"unknown user-agent",port:process.env.PORT,host:null!=(b=j.get("host"))?b:"unknown host",xPort:null!=(d=j.get("x-forwarded-port"))?d:"unknown x-forwarded-port",xHost:null!=(e=j.get("x-forwarded-host"))?e:"unknown x-forwarded-host",xProtocol:null!=(g=j.get("x-forwarded-proto"))?g:"unknown x-forwarded-proto",xClerkAuthStatus:null!=(h=j.get("x-clerk-auth-status"))?h:"unknown x-clerk-auth-status",isCI:(i=new Set(["","false","0","no"]),f.some(a=>{let b=process.env[a];if(void 0===b)return!1;let c=b.trim().toLowerCase();return!i.has(c)}))}}let f=["CI","CONTINUOUS_INTEGRATION","BUILD_NUMBER","BUILD_ID","BUILDKITE","CIRCLECI","GITHUB_ACTIONS","GITLAB_CI","JENKINS_URL","TRAVIS","APPVEYOR","WERCKER","DRONE","CODESHIP","SEMAPHORE","SHIPPABLE","TEAMCITY_VERSION","BAMBOO_BUILDKEY","GO_PIPELINE_NAME","TF_BUILD","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITBUCKET_BUILD_NUMBER","HEROKU_TEST_RUN_ID","VERCEL","NETLIFY"];async function g(a){let b=new Headers;return a.nodeVersion&&b.set("Clerk-Node-Version",a.nodeVersion),a.nextVersion&&b.set("Clerk-Next-Version",a.nextVersion),a.npmConfigUserAgent&&b.set("Clerk-NPM-Config-User-Agent",a.npmConfigUserAgent),a.userAgent&&b.set("Clerk-Client-User-Agent",a.userAgent),a.port&&b.set("Clerk-Node-Port",a.port),a.host&&b.set("Clerk-Client-Host",a.host),a.xPort&&b.set("Clerk-X-Port",a.xPort),a.xHost&&b.set("Clerk-X-Host",a.xHost),a.xProtocol&&b.set("Clerk-X-Protocol",a.xProtocol),a.xClerkAuthStatus&&b.set("Clerk-Auth-Status",a.xClerkAuthStatus),a.isCI&&b.set("Clerk-Is-CI","true"),b}(0,d.ensureServerEntryExports)([e,g]),(0,b.registerServerReference)(e,"00dcf50bcd320d224db55ff26640a38effb293bebf",null),(0,b.registerServerReference)(g,"40c742ff2c72283f5dfe1c9c60afe208f2c758230e",null),a.s(["collectKeylessMetadata",()=>e,"formatMetadataHeaders",()=>g])},26022,a=>{"use strict";var b=a.i(37936),c=a.i(5246);a.i(70396);var d=a.i(73727),e=a.i(83693),f=a.i(63365),g=a.i(24088),h=a.i(43197),i=a.i(13095);let j={secure:!1,httpOnly:!1,sameSite:"lax"};async function k(a){let{claimUrl:b,publishableKey:e,secretKey:h,returnUrl:i}=a,k=await (0,c.cookies)(),l=new Request("https://placeholder.com",{headers:await (0,c.headers)()}),m=await (0,g.getKeylessCookieValue)(a=>{var b;return null==(b=k.get(a))?void 0:b.value}),n=(null==m?void 0:m.publishableKey)===e,o=(null==m?void 0:m.secretKey)===h;if((!n||!o)&&(k.set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:b,publishableKey:e,secretKey:h}),j),(0,f.detectClerkMiddleware)(l)))return void(0,d.redirect)(`/clerk-sync-keyless?returnUrl=${i}`,d.RedirectType.replace)}async function l(){if(!h.canUseKeyless)return null;let b=await a.A(72721).then(a=>a.createOrReadKeyless()).catch(()=>null);if(!b)return e.errorThrower.throwMissingPublishableKeyError(),null;let{clerkDevelopmentCache:d,createKeylessModeMessage:f}=await a.A(21215);null==d||d.log({cacheKey:b.publishableKey,msg:f(b)});let{claimUrl:i,publishableKey:k,secretKey:l,apiKeysUrl:m}=b;return(await (0,c.cookies)()).set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:i,publishableKey:k,secretKey:l}),j),{claimUrl:i,publishableKey:k,apiKeysUrl:m}}async function m(){h.canUseKeyless&&await a.A(72721).then(a=>a.removeKeyless()).catch(()=>{})}async function n(){if(h.canUseKeyless)try{let{detectKeylessEnvDrift:b}=await a.A(67338);await b()}catch{}}(0,i.ensureServerEntryExports)([k,l,m,n]),(0,b.registerServerReference)(k,"4012c270bcc2acdc29f3a47a3acaf502945d0c0cac",null),(0,b.registerServerReference)(l,"00449e1a07cc561839e527e64fe15e04f7e64dcba5",null),(0,b.registerServerReference)(m,"00e53cc6b087a4d8a89066d3620422d28fc805a7ce",null),(0,b.registerServerReference)(n,"00bd02b701e3f27906d1492e6174e7412e65e4f50d",null),a.s(["createOrReadKeylessAction",()=>l,"deleteKeylessAction",()=>m,"detectKeylessEnvDriftAction",()=>n,"syncKeylessConfigAction",()=>k])},75582,57110,76010,a=>{"use strict";var b=a.i(59292);function c(a){return async(...b)=>{let{data:c,errors:d}=await a(...b);if(d)throw d[0];return c}}function d(a){return(...b)=>{let{data:c,errors:d}=a(...b);if(d)throw d[0];return c}}a.i(79378),a.s(["withLegacyReturn",()=>c,"withLegacySyncReturn",()=>d],57110),a.i(75400),a.i(61675),a.i(16765),a.i(28249),a.i(49326),a.i(71327);var e=a.i(3598),f=a.i(36482),g=class{#a;#b=864e5;constructor(a){this.#a=a}isEventThrottled(a){let b=Date.now(),c=this.#c(a),d=this.#a.getItem(c);return!!d&&!(b-d>this.#b)||(this.#a.setItem(c,b),!1)}#c(a){let{sk:b,pk:c,payload:d,...e}=a,f={...d,...e};return JSON.stringify(Object.keys({...d,...e}).sort().map(a=>f[a]))}},h=class{#d="clerk_telemetry_throttler";getItem(a){return this.#e()[a]}setItem(a,b){try{let c=this.#e();c[a]=b,localStorage.setItem(this.#d,JSON.stringify(c))}catch(a){a instanceof DOMException&&("QuotaExceededError"===a.name||"NS_ERROR_DOM_QUOTA_REACHED"===a.name)&&localStorage.length>0&&localStorage.removeItem(this.#d)}}removeItem(a){try{let b=this.#e();delete b[a],localStorage.setItem(this.#d,JSON.stringify(b))}catch{}}#e(){try{let a=localStorage.getItem(this.#d);if(!a)return{};return JSON.parse(a)}catch{return{}}}static isSupported(){return!1}},i=class{#a=new Map;#f=1e4;getItem(a){return this.#a.size>this.#f?void this.#a.clear():this.#a.get(a)}setItem(a,b){this.#a.set(a,b)}removeItem(a){this.#a.delete(a)}};let j=new Set(["error","warn","info","debug","trace"]);var k=class{#g;#h;#i={};#j=[];#k=null;constructor(a){this.#g={maxBufferSize:a.maxBufferSize??5,samplingRate:a.samplingRate??1,perEventSampling:a.perEventSampling??!0,disabled:a.disabled??!1,debug:a.debug??!1,endpoint:"https://clerk-telemetry.com"},a.clerkVersion?this.#i.clerkVersion=a.clerkVersion??"":this.#i.clerkVersion="",this.#i.sdk=a.sdk,this.#i.sdkVersion=a.sdkVersion,this.#i.publishableKey=a.publishableKey??"";const b=(0,e.parsePublishableKey)(a.publishableKey);b&&(this.#i.instanceType=b.instanceType),a.secretKey&&(this.#i.secretKey=a.secretKey.substring(0,16)),this.#h=new g(h.isSupported()?new h:new i)}get isEnabled(){return!("development"!==this.#i.instanceType||this.#g.disabled||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DISABLED))}get isDebug(){return this.#g.debug||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DEBUG)}record(a){try{let b=this.#l(a.event,a.payload);if(this.#m(b.event,b),!this.#n(b,a.eventSamplingRate))return;this.#j.push({kind:"event",value:b}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry event",a)}}recordLog(a){try{if(!this.#p(a))return;let b="string"==typeof a?.level&&j.has(a.level),c="string"==typeof a?.message&&a.message.trim().length>0,d=null,e=a?.timestamp;if("number"==typeof e||"string"==typeof e){let a=new Date(e);Number.isNaN(a.getTime())||(d=a)}if(!b||!c||null===d){this.isDebug&&"u">typeof console&&console.warn("[clerk/telemetry] Dropping invalid telemetry log entry",{levelIsValid:b,messageIsValid:c,timestampIsValid:null!==d});return}let f=this.#q(),g={sdk:f.name,sdkv:f.version,cv:this.#i.clerkVersion??"",lvl:a.level,msg:a.message,ts:d.toISOString(),pk:this.#i.publishableKey||null,payload:this.#r(a.context)};this.#j.push({kind:"log",value:g}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry log entry",a)}}#n(a,b){return this.isEnabled&&!this.isDebug&&this.#s(a,b)}#p(a){return!0}#s(a,b){let c=Math.random();return!!(c<=this.#g.samplingRate&&(!1===this.#g.perEventSampling||void 0===b||c<=b))&&!this.#h.isEventThrottled(a)}#o(){this.#t()}#t(){let a=[...this.#j];if(this.#j=[],this.#k=null,0===a.length)return;let b=a.filter(a=>"event"===a.kind).map(a=>a.value),c=a.filter(a=>"log"===a.kind).map(a=>a.value);b.length>0&&fetch(new URL("/v1/event",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({events:b})}).catch(()=>void 0),c.length>0&&fetch(new URL("/v1/logs",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({logs:c})}).catch(()=>void 0)}#m(a,b){this.isDebug&&(void 0!==console.groupCollapsed?(console.groupCollapsed("[clerk/telemetry]",a),console.log(b),console.groupEnd()):console.log("[clerk/telemetry]",a,b))}#q(){return{name:this.#i.sdk,version:this.#i.sdkVersion}}#l(a,b){let c=this.#q();return{event:a,cv:this.#i.clerkVersion??"",it:this.#i.instanceType??"",sdk:c.name,sdkv:c.version,...this.#i.publishableKey?{pk:this.#i.publishableKey}:{},...this.#i.secretKey?{sk:this.#i.secretKey}:{},payload:b}}#r(a){if(null==a||"object"!=typeof a)return null;try{let b=JSON.parse(JSON.stringify(a));if(b&&"object"==typeof b&&!Array.isArray(b))return b;return null}catch{return null}}},l=c(b.verifyToken);function m(a){let c={...a},d=(0,b.createBackendApiClient)(c),e=(0,b.createAuthenticateRequest)({options:c,apiClient:d}),f=new k({publishableKey:c.publishableKey,secretKey:c.secretKey,samplingRate:.1,...c.sdkMetadata?{sdk:c.sdkMetadata.name,sdkVersion:c.sdkMetadata.version}:{},...c.telemetry||{}});return{...d,...e,telemetry:f}}a.s(["createClerkClient",()=>m,"verifyToken",()=>l],76010);var n=a.i(82849);let o={secretKey:n.SECRET_KEY,publishableKey:n.PUBLISHABLE_KEY,apiUrl:n.API_URL,apiVersion:n.API_VERSION,userAgent:"@clerk/nextjs@6.39.0",proxyUrl:n.PROXY_URL,domain:n.DOMAIN,isSatellite:n.IS_SATELLITE,machineSecretKey:n.MACHINE_SECRET_KEY,sdkMetadata:n.SDK_METADATA,telemetry:{disabled:n.TELEMETRY_DISABLED,debug:n.TELEMETRY_DEBUG}},p=a=>m({...o,...a});a.s(["createClerkClientWithOptions",()=>p],75582)},58658,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","Waitlist")},80832,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","Waitlist")},40163,a=>{"use strict";a.i(58658);var b=a.i(80832);a.n(b)},72721,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__f8f50c0b._.js"].map(b=>a.l(b))).then(()=>b(488)))},21215,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_server_keyless-log-cache_52006def.js"].map(b=>a.l(b))).then(()=>b(78829)))},67338,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__9f45b36b._.js"].map(b=>a.l(b))).then(()=>b(71227)))},67257,a=>{a.v(b=>Promise.all(["server/chunks/ssr/d4b1c_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-cookie-sync_f823d0f8.js"].map(b=>a.l(b))).then(()=>b(6223)))},23804,a=>{a.v(a=>Promise.resolve().then(()=>a(5246)))},77710,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__10a850c6._.js"].map(b=>a.l(b))).then(()=>b(15866)))}];
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},85978,a=>{"use strict";var b=a.i(37936),c=a.i(5246),d=a.i(13095);async function e(){var a,b,d,e,g,h;let i,j=await (0,c.headers)();return{nodeVersion:process.version,nextVersion:function(){var a;try{return null!=(a=process.title)?a:"unknown-process-title"}catch{return}}(),npmConfigUserAgent:process.env.npm_config_user_agent,userAgent:null!=(a=j.get("User-Agent"))?a:"unknown user-agent",port:process.env.PORT,host:null!=(b=j.get("host"))?b:"unknown host",xPort:null!=(d=j.get("x-forwarded-port"))?d:"unknown x-forwarded-port",xHost:null!=(e=j.get("x-forwarded-host"))?e:"unknown x-forwarded-host",xProtocol:null!=(g=j.get("x-forwarded-proto"))?g:"unknown x-forwarded-proto",xClerkAuthStatus:null!=(h=j.get("x-clerk-auth-status"))?h:"unknown x-clerk-auth-status",isCI:(i=new Set(["","false","0","no"]),f.some(a=>{let b=process.env[a];if(void 0===b)return!1;let c=b.trim().toLowerCase();return!i.has(c)}))}}let f=["CI","CONTINUOUS_INTEGRATION","BUILD_NUMBER","BUILD_ID","BUILDKITE","CIRCLECI","GITHUB_ACTIONS","GITLAB_CI","JENKINS_URL","TRAVIS","APPVEYOR","WERCKER","DRONE","CODESHIP","SEMAPHORE","SHIPPABLE","TEAMCITY_VERSION","BAMBOO_BUILDKEY","GO_PIPELINE_NAME","TF_BUILD","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","BITBUCKET_BUILD_NUMBER","HEROKU_TEST_RUN_ID","VERCEL","NETLIFY"];async function g(a){let b=new Headers;return a.nodeVersion&&b.set("Clerk-Node-Version",a.nodeVersion),a.nextVersion&&b.set("Clerk-Next-Version",a.nextVersion),a.npmConfigUserAgent&&b.set("Clerk-NPM-Config-User-Agent",a.npmConfigUserAgent),a.userAgent&&b.set("Clerk-Client-User-Agent",a.userAgent),a.port&&b.set("Clerk-Node-Port",a.port),a.host&&b.set("Clerk-Client-Host",a.host),a.xPort&&b.set("Clerk-X-Port",a.xPort),a.xHost&&b.set("Clerk-X-Host",a.xHost),a.xProtocol&&b.set("Clerk-X-Protocol",a.xProtocol),a.xClerkAuthStatus&&b.set("Clerk-Auth-Status",a.xClerkAuthStatus),a.isCI&&b.set("Clerk-Is-CI","true"),b}(0,d.ensureServerEntryExports)([e,g]),(0,b.registerServerReference)(e,"00225b1c8436f48f9ac65b2828abd168820592fbe9",null),(0,b.registerServerReference)(g,"400a17ff17aa6d9224c99f1a198ea238fc55912cdf",null),a.s(["collectKeylessMetadata",()=>e,"formatMetadataHeaders",()=>g])},26022,a=>{"use strict";var b=a.i(37936),c=a.i(5246);a.i(70396);var d=a.i(73727),e=a.i(83693),f=a.i(63365),g=a.i(24088),h=a.i(43197),i=a.i(13095);let j={secure:!1,httpOnly:!1,sameSite:"lax"};async function k(a){let{claimUrl:b,publishableKey:e,secretKey:h,returnUrl:i}=a,k=await (0,c.cookies)(),l=new Request("https://placeholder.com",{headers:await (0,c.headers)()}),m=await (0,g.getKeylessCookieValue)(a=>{var b;return null==(b=k.get(a))?void 0:b.value}),n=(null==m?void 0:m.publishableKey)===e,o=(null==m?void 0:m.secretKey)===h;if((!n||!o)&&(k.set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:b,publishableKey:e,secretKey:h}),j),(0,f.detectClerkMiddleware)(l)))return void(0,d.redirect)(`/clerk-sync-keyless?returnUrl=${i}`,d.RedirectType.replace)}async function l(){if(!h.canUseKeyless)return null;let b=await a.A(72721).then(a=>a.createOrReadKeyless()).catch(()=>null);if(!b)return e.errorThrower.throwMissingPublishableKeyError(),null;let{clerkDevelopmentCache:d,createKeylessModeMessage:f}=await a.A(21215);null==d||d.log({cacheKey:b.publishableKey,msg:f(b)});let{claimUrl:i,publishableKey:k,secretKey:l,apiKeysUrl:m}=b;return(await (0,c.cookies)()).set(await (0,g.getKeylessCookieName)(),JSON.stringify({claimUrl:i,publishableKey:k,secretKey:l}),j),{claimUrl:i,publishableKey:k,apiKeysUrl:m}}async function m(){h.canUseKeyless&&await a.A(72721).then(a=>a.removeKeyless()).catch(()=>{})}async function n(){if(h.canUseKeyless)try{let{detectKeylessEnvDrift:b}=await a.A(67338);await b()}catch{}}(0,i.ensureServerEntryExports)([k,l,m,n]),(0,b.registerServerReference)(k,"40790fe73e14af8b5aa4141c4a034e05e36c3238c4",null),(0,b.registerServerReference)(l,"0058a4124fe4517c6779c375c2bcda5a703551090e",null),(0,b.registerServerReference)(m,"00bcbb4b031d59b8bdc97b0cb01b70d14e4af4499f",null),(0,b.registerServerReference)(n,"004777a93a226534d53e44b390bc52ef43e9fd2257",null),a.s(["createOrReadKeylessAction",()=>l,"deleteKeylessAction",()=>m,"detectKeylessEnvDriftAction",()=>n,"syncKeylessConfigAction",()=>k])},75582,57110,76010,a=>{"use strict";var b=a.i(59292);function c(a){return async(...b)=>{let{data:c,errors:d}=await a(...b);if(d)throw d[0];return c}}function d(a){return(...b)=>{let{data:c,errors:d}=a(...b);if(d)throw d[0];return c}}a.i(79378),a.s(["withLegacyReturn",()=>c,"withLegacySyncReturn",()=>d],57110),a.i(75400),a.i(61675),a.i(16765),a.i(28249),a.i(49326),a.i(71327);var e=a.i(3598),f=a.i(36482),g=class{#a;#b=864e5;constructor(a){this.#a=a}isEventThrottled(a){let b=Date.now(),c=this.#c(a),d=this.#a.getItem(c);return!!d&&!(b-d>this.#b)||(this.#a.setItem(c,b),!1)}#c(a){let{sk:b,pk:c,payload:d,...e}=a,f={...d,...e};return JSON.stringify(Object.keys({...d,...e}).sort().map(a=>f[a]))}},h=class{#d="clerk_telemetry_throttler";getItem(a){return this.#e()[a]}setItem(a,b){try{let c=this.#e();c[a]=b,localStorage.setItem(this.#d,JSON.stringify(c))}catch(a){a instanceof DOMException&&("QuotaExceededError"===a.name||"NS_ERROR_DOM_QUOTA_REACHED"===a.name)&&localStorage.length>0&&localStorage.removeItem(this.#d)}}removeItem(a){try{let b=this.#e();delete b[a],localStorage.setItem(this.#d,JSON.stringify(b))}catch{}}#e(){try{let a=localStorage.getItem(this.#d);if(!a)return{};return JSON.parse(a)}catch{return{}}}static isSupported(){return!1}},i=class{#a=new Map;#f=1e4;getItem(a){return this.#a.size>this.#f?void this.#a.clear():this.#a.get(a)}setItem(a,b){this.#a.set(a,b)}removeItem(a){this.#a.delete(a)}};let j=new Set(["error","warn","info","debug","trace"]);var k=class{#g;#h;#i={};#j=[];#k=null;constructor(a){this.#g={maxBufferSize:a.maxBufferSize??5,samplingRate:a.samplingRate??1,perEventSampling:a.perEventSampling??!0,disabled:a.disabled??!1,debug:a.debug??!1,endpoint:"https://clerk-telemetry.com"},a.clerkVersion?this.#i.clerkVersion=a.clerkVersion??"":this.#i.clerkVersion="",this.#i.sdk=a.sdk,this.#i.sdkVersion=a.sdkVersion,this.#i.publishableKey=a.publishableKey??"";const b=(0,e.parsePublishableKey)(a.publishableKey);b&&(this.#i.instanceType=b.instanceType),a.secretKey&&(this.#i.secretKey=a.secretKey.substring(0,16)),this.#h=new g(h.isSupported()?new h:new i)}get isEnabled(){return!("development"!==this.#i.instanceType||this.#g.disabled||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DISABLED))}get isDebug(){return this.#g.debug||"u">typeof process&&process.env&&(0,f.isTruthy)(process.env.CLERK_TELEMETRY_DEBUG)}record(a){try{let b=this.#l(a.event,a.payload);if(this.#m(b.event,b),!this.#n(b,a.eventSamplingRate))return;this.#j.push({kind:"event",value:b}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry event",a)}}recordLog(a){try{if(!this.#p(a))return;let b="string"==typeof a?.level&&j.has(a.level),c="string"==typeof a?.message&&a.message.trim().length>0,d=null,e=a?.timestamp;if("number"==typeof e||"string"==typeof e){let a=new Date(e);Number.isNaN(a.getTime())||(d=a)}if(!b||!c||null===d){this.isDebug&&"u">typeof console&&console.warn("[clerk/telemetry] Dropping invalid telemetry log entry",{levelIsValid:b,messageIsValid:c,timestampIsValid:null!==d});return}let f=this.#q(),g={sdk:f.name,sdkv:f.version,cv:this.#i.clerkVersion??"",lvl:a.level,msg:a.message,ts:d.toISOString(),pk:this.#i.publishableKey||null,payload:this.#r(a.context)};this.#j.push({kind:"log",value:g}),this.#o()}catch(a){console.error("[clerk/telemetry] Error recording telemetry log entry",a)}}#n(a,b){return this.isEnabled&&!this.isDebug&&this.#s(a,b)}#p(a){return!0}#s(a,b){let c=Math.random();return!!(c<=this.#g.samplingRate&&(!1===this.#g.perEventSampling||void 0===b||c<=b))&&!this.#h.isEventThrottled(a)}#o(){this.#t()}#t(){let a=[...this.#j];if(this.#j=[],this.#k=null,0===a.length)return;let b=a.filter(a=>"event"===a.kind).map(a=>a.value),c=a.filter(a=>"log"===a.kind).map(a=>a.value);b.length>0&&fetch(new URL("/v1/event",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({events:b})}).catch(()=>void 0),c.length>0&&fetch(new URL("/v1/logs",this.#g.endpoint),{headers:{"Content-Type":"application/json"},keepalive:!0,method:"POST",body:JSON.stringify({logs:c})}).catch(()=>void 0)}#m(a,b){this.isDebug&&(void 0!==console.groupCollapsed?(console.groupCollapsed("[clerk/telemetry]",a),console.log(b),console.groupEnd()):console.log("[clerk/telemetry]",a,b))}#q(){return{name:this.#i.sdk,version:this.#i.sdkVersion}}#l(a,b){let c=this.#q();return{event:a,cv:this.#i.clerkVersion??"",it:this.#i.instanceType??"",sdk:c.name,sdkv:c.version,...this.#i.publishableKey?{pk:this.#i.publishableKey}:{},...this.#i.secretKey?{sk:this.#i.secretKey}:{},payload:b}}#r(a){if(null==a||"object"!=typeof a)return null;try{let b=JSON.parse(JSON.stringify(a));if(b&&"object"==typeof b&&!Array.isArray(b))return b;return null}catch{return null}}},l=c(b.verifyToken);function m(a){let c={...a},d=(0,b.createBackendApiClient)(c),e=(0,b.createAuthenticateRequest)({options:c,apiClient:d}),f=new k({publishableKey:c.publishableKey,secretKey:c.secretKey,samplingRate:.1,...c.sdkMetadata?{sdk:c.sdkMetadata.name,sdkVersion:c.sdkMetadata.version}:{},...c.telemetry||{}});return{...d,...e,telemetry:f}}a.s(["createClerkClient",()=>m,"verifyToken",()=>l],76010);var n=a.i(82849);let o={secretKey:n.SECRET_KEY,publishableKey:n.PUBLISHABLE_KEY,apiUrl:n.API_URL,apiVersion:n.API_VERSION,userAgent:"@clerk/nextjs@6.39.0",proxyUrl:n.PROXY_URL,domain:n.DOMAIN,isSatellite:n.IS_SATELLITE,machineSecretKey:n.MACHINE_SECRET_KEY,sdkMetadata:n.SDK_METADATA,telemetry:{disabled:n.TELEMETRY_DISABLED,debug:n.TELEMETRY_DEBUG}},p=a=>m({...o,...a});a.s(["createClerkClientWithOptions",()=>p],75582)},58658,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js <module evaluation>","Waitlist")},80832,a=>{"use strict";a.s(["APIKeys",()=>c,"CreateOrganization",()=>d,"GoogleOneTap",()=>e,"OrganizationList",()=>f,"OrganizationProfile",()=>g,"OrganizationSwitcher",()=>h,"PricingTable",()=>i,"SignIn",()=>j,"SignInButton",()=>k,"SignInWithMetamaskButton",()=>l,"SignOutButton",()=>m,"SignUp",()=>n,"SignUpButton",()=>o,"TaskChooseOrganization",()=>p,"TaskResetPassword",()=>q,"TaskSetupMFA",()=>r,"UserAvatar",()=>s,"UserButton",()=>t,"UserProfile",()=>u,"Waitlist",()=>v]);var b=a.i(11857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call APIKeys() from the server but APIKeys is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","APIKeys"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CreateOrganization() from the server but CreateOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","CreateOrganization"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call GoogleOneTap() from the server but GoogleOneTap is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","GoogleOneTap"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationList() from the server but OrganizationList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationList"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationProfile() from the server but OrganizationProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationProfile"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call OrganizationSwitcher() from the server but OrganizationSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","OrganizationSwitcher"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call PricingTable() from the server but PricingTable is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","PricingTable"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignIn() from the server but SignIn is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignIn"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInButton() from the server but SignInButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInButton"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignInWithMetamaskButton() from the server but SignInWithMetamaskButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignInWithMetamaskButton"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignOutButton() from the server but SignOutButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignOutButton"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUp() from the server but SignUp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUp"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call SignUpButton() from the server but SignUpButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","SignUpButton"),p=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskChooseOrganization() from the server but TaskChooseOrganization is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskChooseOrganization"),q=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskResetPassword() from the server but TaskResetPassword is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskResetPassword"),r=(0,b.registerClientReference)(function(){throw Error("Attempted to call TaskSetupMFA() from the server but TaskSetupMFA is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","TaskSetupMFA"),s=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserAvatar() from the server but UserAvatar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserAvatar"),t=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserButton() from the server but UserButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserButton"),u=(0,b.registerClientReference)(function(){throw Error("Attempted to call UserProfile() from the server but UserProfile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","UserProfile"),v=(0,b.registerClientReference)(function(){throw Error("Attempted to call Waitlist() from the server but Waitlist is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/node_modules/@clerk/nextjs/dist/esm/client-boundary/uiComponents.js","Waitlist")},40163,a=>{"use strict";a.i(58658);var b=a.i(80832);a.n(b)},72721,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__f8f50c0b._.js"].map(b=>a.l(b))).then(()=>b(488)))},21215,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_server_keyless-log-cache_52006def.js"].map(b=>a.l(b))).then(()=>b(78829)))},67338,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__9f45b36b._.js"].map(b=>a.l(b))).then(()=>b(71227)))},67257,a=>{a.v(b=>Promise.all(["server/chunks/ssr/d4b1c_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-cookie-sync_f823d0f8.js"].map(b=>a.l(b))).then(()=>b(6223)))},23804,a=>{a.v(a=>Promise.resolve().then(()=>a(5246)))},77710,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__10a850c6._.js"].map(b=>a.l(b))).then(()=>b(15866)))}];
3
3
 
4
4
  //# sourceMappingURL=%5Broot-of-the-server%5D__29d8d063._.js.map