import{c as e}from"./vendor-zustand-CcZsBpBq.js";import{j as t}from"./vendor-react-AXa6hZO5.js";import{aR as n}from"./index-C_tZnXTW.js";import{a as r,B as a,z as i,C as s,E as o}from"./cec18ad9a-DiLjrOUd.js";import{M as l}from"./vendor-intl-BdADXLLt.js";const c=e()(e=>({isRemote:!1,commands:[],plugins:null,setRemoteCommands:t=>e({isRemote:!0,commands:t}),setRemotePlugins:t=>e({plugins:t}),clearRemoteCommands:()=>e({isRemote:!1,commands:[],plugins:null})}));function m({message:e,hint:i,showBackButton:s=!0,redirect:o="/code",error:c,onBack:m}){const d=r(),u=m??(()=>d.push(o));return t.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center px-4",children:t.jsxs("div",{className:"text-center max-w-md",children:[t.jsx("div",{className:"text-danger-000 mb-6 text-lg font-medium",children:e}),i?t.jsx("div",{className:"mb-6 text-sm text-text-300",children:i}):null,null,s&&t.jsxs(a,{onClick:u,children:[t.jsx(n,{className:"mr-2"}),t.jsx(l,{defaultMessage:"Back to landing page",id:"KGeQPLIrlo"})]})]})})}const d="Claude Code";function u(){return{type:"break"}}function p(){return function(e){!function(e){i(e,[/\r?\n|\r/g,u])}(e)}}const f=[o,p],h={p:({children:e})=>t.jsx("p",{className:"m-0",children:e}),a:({children:e,href:n})=>t.jsx("a",{href:n,target:"_blank",rel:"noreferrer",className:"text-t9 underline underline-offset-2",onClick:e=>e.stopPropagation(),children:e}),code:({children:e})=>t.jsx("code",{className:"text-code px-p2 rounded-r2 bg-t1",children:e})},x=["p","a","code","strong","em","br"];function g({children:e}){return t.jsx(s,{remarkPlugins:f,components:h,allowedElements:x,unwrapDisallowed:!0,children:e})}const j=Object.freeze(Object.defineProperty({__proto__:null,SessionSummaryTooltipBody:g},Symbol.toStringTag,{value:"Module"}));var k=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");const b={token:function(e,t){var n=e.peek(),r=t.escaped;if(t.escaped=!1,"#"==n&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match("---"))return"def";if(e.match("..."))return"def";if(e.match(/^\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==n?t.inlinePairs++:"}"==n?t.inlinePairs--:"["==n?t.inlineList++:t.inlineList--,"meta";if(t.inlineList>0&&!r&&","==n)return e.next(),"meta";if(t.inlinePairs>0&&!r&&","==n)return t.keyCol=0,t.pair=!1,t.pairStart=!1,e.next(),"meta";if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(k))return"keyword"}return!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==n,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}},y=Object.freeze(Object.defineProperty({__proto__:null,yaml:b},Symbol.toStringTag,{value:"Module"}));export{d as D,m as E,g as S,j as a,p as r,c as u,y};
