dexto 1.1.7 → 1.1.8
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.
- package/dist/agents/agent-registry.json +8 -1
- package/dist/agents/github-agent/README.md +58 -0
- package/dist/agents/github-agent/github-agent.yml +57 -0
- package/dist/api/server.d.ts +2 -2
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +239 -57
- package/dist/api/webhook-subscriber.d.ts +4 -0
- package/dist/api/webhook-subscriber.d.ts.map +1 -1
- package/dist/api/webhook-subscriber.js +15 -0
- package/dist/api/websocket-subscriber.d.ts +5 -0
- package/dist/api/websocket-subscriber.d.ts.map +1 -1
- package/dist/api/websocket-subscriber.js +16 -0
- package/dist/cli/cli.js +1 -1
- package/dist/index.js +2 -2
- package/dist/utils/graceful-shutdown.d.ts +1 -1
- package/dist/utils/graceful-shutdown.d.ts.map +1 -1
- package/dist/utils/graceful-shutdown.js +9 -6
- package/dist/webui/.next/standalone/.next/static/chunks/179-78abc2eacbc41da9.js +1 -0
- package/dist/webui/.next/standalone/{packages/webui/.next/static/chunks/app/page-cf95b233c1df6dcd.js → .next/static/chunks/app/page-1a1b5591a5f62ca5.js} +1 -1
- package/dist/webui/.next/standalone/.next/static/css/045cc65741e38fbd.css +3 -0
- package/dist/webui/.next/standalone/packages/webui/.next/BUILD_ID +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/app-build-manifest.json +3 -3
- package/dist/webui/.next/standalone/packages/webui/.next/build-manifest.json +2 -2
- package/dist/webui/.next/standalone/packages/webui/.next/prerender-manifest.json +3 -3
- package/dist/webui/.next/standalone/packages/webui/.next/required-server-files.json +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/server/app/page.js +2 -2
- package/dist/webui/.next/standalone/packages/webui/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/server/app/playground/page_client-reference-manifest.js +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/server/pages/500.html +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/server/server-reference-manifest.json +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/static/chunks/179-78abc2eacbc41da9.js +1 -0
- package/dist/webui/.next/standalone/{.next/static/chunks/app/page-cf95b233c1df6dcd.js → packages/webui/.next/static/chunks/app/page-1a1b5591a5f62ca5.js} +1 -1
- package/dist/webui/.next/standalone/packages/webui/.next/static/css/045cc65741e38fbd.css +3 -0
- package/dist/webui/.next/standalone/packages/webui/package.json +1 -1
- package/dist/webui/.next/standalone/packages/webui/server.js +1 -1
- package/dist/webui/.next/static/chunks/179-78abc2eacbc41da9.js +1 -0
- package/dist/webui/.next/static/chunks/app/{page-cf95b233c1df6dcd.js → page-1a1b5591a5f62ca5.js} +1 -1
- package/dist/webui/.next/static/css/045cc65741e38fbd.css +3 -0
- package/dist/webui/package.json +1 -1
- package/package.json +2 -2
- package/dist/webui/.next/standalone/.next/static/chunks/762-8cfe2287ad3f2d16.js +0 -1
- package/dist/webui/.next/standalone/.next/static/css/9cdfb06589a2f6ce.css +0 -3
- package/dist/webui/.next/standalone/packages/webui/.next/static/chunks/762-8cfe2287ad3f2d16.js +0 -1
- package/dist/webui/.next/standalone/packages/webui/.next/static/css/9cdfb06589a2f6ce.css +0 -3
- package/dist/webui/.next/static/chunks/762-8cfe2287ad3f2d16.js +0 -1
- package/dist/webui/.next/static/css/9cdfb06589a2f6ce.css +0 -3
- /package/dist/webui/.next/standalone/.next/static/{s008aheUrlJbknTlTTTmY → _5RTE-15cb-kjZPtF45Oe}/_buildManifest.js +0 -0
- /package/dist/webui/.next/standalone/.next/static/{s008aheUrlJbknTlTTTmY → _5RTE-15cb-kjZPtF45Oe}/_ssgManifest.js +0 -0
- /package/dist/webui/.next/standalone/packages/webui/.next/static/{s008aheUrlJbknTlTTTmY → _5RTE-15cb-kjZPtF45Oe}/_buildManifest.js +0 -0
- /package/dist/webui/.next/standalone/packages/webui/.next/static/{s008aheUrlJbknTlTTTmY → _5RTE-15cb-kjZPtF45Oe}/_ssgManifest.js +0 -0
- /package/dist/webui/.next/static/{s008aheUrlJbknTlTTTmY → _5RTE-15cb-kjZPtF45Oe}/_buildManifest.js +0 -0
- /package/dist/webui/.next/static/{s008aheUrlJbknTlTTTmY → _5RTE-15cb-kjZPtF45Oe}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=974,a.ids=[974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},744:(a,b,c)=>{"use strict";a.exports=c(40198).vendored.contexts.AmpContext},1708:a=>{"use strict";a.exports=require("node:process")},2003:(a,b)=>{"use strict";function c(a){let{widthInt:b,heightInt:c,blurWidth:d,blurHeight:e,blurDataURL:f,objectFit:g}=a,h=d?40*d:b,i=e?40*e:c,j=h&&i?"viewBox='0 0 "+h+" "+i+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+j+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(j?"none":"contain"===g?"xMidYMid":"cover"===g?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+f+"'/%3E%3C/svg%3E"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getImageBlurSvg",{enumerable:!0,get:function(){return c}})},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8098:(a,b)=>{"use strict";function c(a){var b;let{config:c,src:d,width:e,quality:f}=a,g=f||(null==(b=c.qualities)?void 0:b.reduce((a,b)=>Math.abs(b-75)<Math.abs(a-75)?b:a))||75;return c.path+"?url="+encodeURIComponent(d)+"&w="+e+"&q="+g+(d.startsWith("/_next/static/media/"),"")}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return d}}),c.__next_img_default=!0;let d=c},8993:(a,b,c)=>{"use strict";c.d(b,{default:()=>c3});var d=c(35270),e=c(4039),f=c.n(e),g=c(64516),h=c(34306),i=c(70702),j=c(45019),k=c(20675),l=c(55994),m=c(41810),n=c(8822),o=c(37545),p=c(19329),q=c(93128),r=c(56314),s=c(85459),t=c(70561),u=c(12208),v=c(11346),w=c(59320),x=c(39576),y=c(52510),z=c(6573),A=c(39554),[B,C]=(0,r.A)("Tooltip",[u.Bk]),D=(0,u.Bk)(),E="TooltipProvider",F="tooltip.open",[G,H]=B(E),I=a=>{let{__scopeTooltip:b,delayDuration:c=700,skipDelayDuration:f=300,disableHoverableContent:g=!1,children:h}=a,i=e.useRef(!0),j=e.useRef(!1),k=e.useRef(0);return e.useEffect(()=>{let a=k.current;return()=>window.clearTimeout(a)},[]),(0,d.jsx)(G,{scope:b,isOpenDelayedRef:i,delayDuration:c,onOpen:e.useCallback(()=>{window.clearTimeout(k.current),i.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>i.current=!0,f)},[f]),isPointerInTransitRef:j,onPointerInTransitChange:e.useCallback(a=>{j.current=a},[]),disableHoverableContent:g,children:h})};I.displayName=E;var J="Tooltip",[K,L]=B(J),M=a=>{let{__scopeTooltip:b,children:c,open:f,defaultOpen:g,onOpenChange:h,disableHoverableContent:i,delayDuration:j}=a,k=H(J,a.__scopeTooltip),l=D(b),[m,n]=e.useState(null),o=(0,t.B)(),p=e.useRef(0),q=i??k.disableHoverableContent,r=j??k.delayDuration,s=e.useRef(!1),[v,w]=(0,z.i)({prop:f,defaultProp:g??!1,onChange:a=>{a?(k.onOpen(),document.dispatchEvent(new CustomEvent(F))):k.onClose(),h?.(a)},caller:J}),x=e.useMemo(()=>v?s.current?"delayed-open":"instant-open":"closed",[v]),y=e.useCallback(()=>{window.clearTimeout(p.current),p.current=0,s.current=!1,w(!0)},[w]),A=e.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),B=e.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{s.current=!0,w(!0),p.current=0},r)},[r,w]);return e.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),(0,d.jsx)(u.bL,{...l,children:(0,d.jsx)(K,{scope:b,contentId:o,open:v,stateAttribute:x,trigger:m,onTriggerChange:n,onTriggerEnter:e.useCallback(()=>{k.isOpenDelayedRef.current?B():y()},[k.isOpenDelayedRef,B,y]),onTriggerLeave:e.useCallback(()=>{q?A():(window.clearTimeout(p.current),p.current=0)},[A,q]),onOpen:y,onClose:A,disableHoverableContent:q,children:c})})};M.displayName=J;var N="TooltipTrigger",O=e.forwardRef((a,b)=>{let{__scopeTooltip:c,...f}=a,g=L(N,c),h=H(N,c),i=D(c),j=e.useRef(null),k=(0,q.s)(b,j,g.onTriggerChange),l=e.useRef(!1),m=e.useRef(!1),n=e.useCallback(()=>l.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",n),[n]),(0,d.jsx)(u.Mz,{asChild:!0,...i,children:(0,d.jsx)(x.sG.button,{"aria-describedby":g.open?g.contentId:void 0,"data-state":g.stateAttribute,...f,ref:k,onPointerMove:(0,p.mK)(a.onPointerMove,a=>{"touch"!==a.pointerType&&(m.current||h.isPointerInTransitRef.current||(g.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,p.mK)(a.onPointerLeave,()=>{g.onTriggerLeave(),m.current=!1}),onPointerDown:(0,p.mK)(a.onPointerDown,()=>{g.open&&g.onClose(),l.current=!0,document.addEventListener("pointerup",n,{once:!0})}),onFocus:(0,p.mK)(a.onFocus,()=>{l.current||g.onOpen()}),onBlur:(0,p.mK)(a.onBlur,g.onClose),onClick:(0,p.mK)(a.onClick,g.onClose)})})});O.displayName=N;var P="TooltipPortal",[Q,R]=B(P,{forceMount:void 0}),S=a=>{let{__scopeTooltip:b,forceMount:c,children:e,container:f}=a,g=L(P,b);return(0,d.jsx)(Q,{scope:b,forceMount:c,children:(0,d.jsx)(w.C,{present:c||g.open,children:(0,d.jsx)(v.Z,{asChild:!0,container:f,children:e})})})};S.displayName=P;var T="TooltipContent",U=e.forwardRef((a,b)=>{let c=R(T,a.__scopeTooltip),{forceMount:e=c.forceMount,side:f="top",...g}=a,h=L(T,a.__scopeTooltip);return(0,d.jsx)(w.C,{present:e||h.open,children:h.disableHoverableContent?(0,d.jsx)(Z,{side:f,...g,ref:b}):(0,d.jsx)(V,{side:f,...g,ref:b})})}),V=e.forwardRef((a,b)=>{let c=L(T,a.__scopeTooltip),f=H(T,a.__scopeTooltip),g=e.useRef(null),h=(0,q.s)(b,g),[i,j]=e.useState(null),{trigger:k,onClose:l}=c,m=g.current,{onPointerInTransitChange:n}=f,o=e.useCallback(()=>{j(null),n(!1)},[n]),p=e.useCallback((a,b)=>{let c=a.currentTarget,d={x:a.clientX,y:a.clientY},e=function(a,b){let c=Math.abs(b.top-a.y),d=Math.abs(b.bottom-a.y),e=Math.abs(b.right-a.x),f=Math.abs(b.left-a.x);switch(Math.min(c,d,e,f)){case f:return"left";case e:return"right";case c:return"top";case d:return"bottom";default:throw Error("unreachable")}}(d,c.getBoundingClientRect());j(function(a){let b=a.slice();return b.sort((a,b)=>a.x<b.x?-1:a.x>b.x?1:a.y<b.y?-1:1*!!(a.y>b.y)),function(a){if(a.length<=1)return a.slice();let b=[];for(let c=0;c<a.length;c++){let d=a[c];for(;b.length>=2;){let a=b[b.length-1],c=b[b.length-2];if((a.x-c.x)*(d.y-c.y)>=(a.y-c.y)*(d.x-c.x))b.pop();else break}b.push(d)}b.pop();let c=[];for(let b=a.length-1;b>=0;b--){let d=a[b];for(;c.length>=2;){let a=c[c.length-1],b=c[c.length-2];if((a.x-b.x)*(d.y-b.y)>=(a.y-b.y)*(d.x-b.x))c.pop();else break}c.push(d)}return(c.pop(),1===b.length&&1===c.length&&b[0].x===c[0].x&&b[0].y===c[0].y)?b:b.concat(c)}(b)}([...function(a,b,c=5){let d=[];switch(b){case"top":d.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":d.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":d.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":d.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c})}return d}(d,e),...function(a){let{top:b,right:c,bottom:d,left:e}=a;return[{x:e,y:b},{x:c,y:b},{x:c,y:d},{x:e,y:d}]}(b.getBoundingClientRect())])),n(!0)},[n]);return e.useEffect(()=>()=>o(),[o]),e.useEffect(()=>{if(k&&m){let a=a=>p(a,m),b=a=>p(a,k);return k.addEventListener("pointerleave",a),m.addEventListener("pointerleave",b),()=>{k.removeEventListener("pointerleave",a),m.removeEventListener("pointerleave",b)}}},[k,m,p,o]),e.useEffect(()=>{if(i){let a=a=>{let b=a.target,c={x:a.clientX,y:a.clientY},d=k?.contains(b)||m?.contains(b),e=!function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;a<b.length;f=a++){let g=b[a],h=b[f],i=g.x,j=g.y,k=h.x,l=h.y;j>d!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}(c,i);d?o():e&&(o(),l())};return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[k,m,i,l,o]),(0,d.jsx)(Z,{...a,ref:h})}),[W,X]=B(J,{isInside:!1}),Y=(0,y.Dc)("TooltipContent"),Z=e.forwardRef((a,b)=>{let{__scopeTooltip:c,children:f,"aria-label":g,onEscapeKeyDown:h,onPointerDownOutside:i,...j}=a,k=L(T,c),l=D(c),{onClose:m}=k;return e.useEffect(()=>(document.addEventListener(F,m),()=>document.removeEventListener(F,m)),[m]),e.useEffect(()=>{if(k.trigger){let a=a=>{let b=a.target;b?.contains(k.trigger)&&m()};return window.addEventListener("scroll",a,{capture:!0}),()=>window.removeEventListener("scroll",a,{capture:!0})}},[k.trigger,m]),(0,d.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:h,onPointerDownOutside:i,onFocusOutside:a=>a.preventDefault(),onDismiss:m,children:(0,d.jsxs)(u.UC,{"data-state":k.stateAttribute,...l,...j,ref:b,style:{...j.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,d.jsx)(Y,{children:f}),(0,d.jsx)(W,{scope:c,isInside:!0,children:(0,d.jsx)(A.bL,{id:k.contentId,role:"tooltip",children:g||f})})]})})});U.displayName=T;var $="TooltipArrow",_=e.forwardRef((a,b)=>{let{__scopeTooltip:c,...e}=a,f=D(c);return X($,c).isInside?null:(0,d.jsx)(u.i3,{...f,...e,ref:b})});function aa({delayDuration:a=0,...b}){return(0,d.jsx)(I,{"data-slot":"tooltip-provider",delayDuration:a,...b})}function ab({...a}){return(0,d.jsx)(aa,{children:(0,d.jsx)(M,{"data-slot":"tooltip",...a})})}function ac({...a}){return(0,d.jsx)(O,{"data-slot":"tooltip-trigger",...a})}function ad({className:a,sideOffset:b=0,children:c,...e}){return(0,d.jsx)(S,{children:(0,d.jsxs)(U,{"data-slot":"tooltip-content",sideOffset:b,className:(0,h.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",a),...e,children:[c,(0,d.jsx)(_,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}_.displayName=$;var ae=c(4409);let af=(0,e.forwardRef)(({children:a,tooltip:b,side:c="bottom",className:e,...f},g)=>(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsxs)(ae.$,{variant:"ghost",size:"icon",...f,className:(0,h.cn)("size-6 p-1",e),ref:g,children:[a,(0,d.jsx)("span",{className:"sr-only",children:b})]})}),(0,d.jsx)(ad,{side:c,children:b})]}));function ag({value:a,tooltip:b="Copy",copiedTooltip:c="Copied!",className:f,size:g=12}){let[h,i]=(0,e.useState)(!1);return(0,d.jsx)(af,{tooltip:h?c:b,onClick:()=>{navigator.clipboard.writeText(a).then(()=>{i(!0),setTimeout(()=>i(!1),2e3)}).catch(()=>{})},className:f,children:h?(0,d.jsx)(n.A,{size:g}):(0,d.jsx)(o.A,{size:g})})}af.displayName="TooltipIconButton";var ah=c(44911);let ai=(0,ah.A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),aj=(0,ah.A)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);class ak{get supported(){return!1}constructor(){if(this._speaking=!1,this.subscribers=new Set,this.utterance=null,this.voices=[],this.voiceSubscribers=new Set,this.preferredVoiceName=null,this.supported){try{let a=window.localStorage.getItem("ttsVoiceName");this.preferredVoiceName=a&&a.length?a:null}catch{}let a=()=>{try{let a=window.speechSynthesis.getVoices()||[];(a.length!==this.voices.length||a.some((a,b)=>a.name!==this.voices[b]?.name))&&(this.voices=a,this.voiceSubscribers.forEach(a=>a()))}catch{}};a();try{window.speechSynthesis.addEventListener("voiceschanged",a)}catch{}}}isSpeaking(){return this._speaking}subscribe(a){return this.subscribers.add(a),()=>{this.subscribers.delete(a)}}subscribeVoices(a){return this.voiceSubscribers.add(a),()=>{this.voiceSubscribers.delete(a)}}notify(){for(let a of this.subscribers)try{a()}catch{}}stop(){if(this.supported){try{window.speechSynthesis.cancel()}catch{}this.utterance=null,this._speaking&&(this._speaking=!1,this.notify())}}speak(a,b){if(!this.supported||!a||!a.trim())return;this.stop();let c=new window.SpeechSynthesisUtterance(a);b?.rate!=null&&(c.rate=b.rate),b?.pitch!=null&&(c.pitch=b.pitch);let d=this.resolveVoice();if(d)try{c.voice=d,b?.lang?c.lang=b.lang:d.lang&&(c.lang=d.lang)}catch{}else b?.lang&&(c.lang=b.lang);c.onstart=()=>{this.utterance===c&&(this._speaking=!0,this.notify())};let e=()=>{this.utterance===c&&(this._speaking=!1,this.utterance=null,this.notify())};c.onend=e,c.onerror=e;try{this.utterance=c,window.speechSynthesis.speak(c),this._speaking||(this._speaking=!0,this.notify())}catch{e()}}getVoices(){return this.voices}setPreferredVoice(a){this.preferredVoiceName=a&&a.length?a:null;try{this.preferredVoiceName?window.localStorage.setItem("ttsVoiceName",this.preferredVoiceName):window.localStorage.removeItem("ttsVoiceName")}catch{}this.voiceSubscribers.forEach(a=>a())}getPreferredVoiceName(){return this.preferredVoiceName}resolveVoice(){if(!this.voices.length)return null;let a=this.preferredVoiceName?this.voices.find(a=>a.name===this.preferredVoiceName):null;if(a)return a;let b=this.voices.find(a=>"google uk english female"===a.name.toLowerCase()||a.name.toLowerCase().includes("google uk english female")&&a.lang?.toLowerCase().startsWith("en-gb"));if(b)return b;let c=a=>{let b=a.name.toLowerCase(),c=(a.lang??"").toLowerCase(),d=0;return("en"===c||c.startsWith("en-"))&&(d+=3),b.includes("google")&&(d+=5),(b.includes("microsoft")||b.includes("azure"))&&(d+=4),(b.includes("natural")||b.includes("neural")||b.includes("premium"))&&(d+=4),b.includes("siri")&&(d+=3),b.includes("female")&&(d+=1),d};return[...this.voices].sort((a,b)=>c(b)-c(a))[0]||this.voices[0]||null}}let al=globalThis,am=al.__speechController??(al.__speechController=new ak);function an({value:a,tooltip:b="Speak",stopTooltip:c="Stop",className:f,rate:g=1,pitch:h=1,lang:i}){let[j,k]=(0,e.useState)(!1),l=am.supported,m=(a??"").trim().length>0;return(0,d.jsx)(af,{tooltip:j?c:b,onClick:()=>{if(l&&m){if(j)return am.stop();am.speak(a,{rate:g,pitch:h,lang:i})}},className:f,disabled:!l||!m,children:j?(0,d.jsx)(ai,{size:12}):(0,d.jsx)(aj,{size:12})})}function ao({error:a,onDismiss:b}){let[c,f]=(0,e.useState)(!1),g=a.detailedIssues?.[0],h=g?.context&&"object"==typeof g.context&&"detailedIssues"in g.context?g.context.detailedIssues:[],i=h.length>0?`${a.message}
|
|
1
|
+
(()=>{var a={};a.id=974,a.ids=[974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},744:(a,b,c)=>{"use strict";a.exports=c(40198).vendored.contexts.AmpContext},1708:a=>{"use strict";a.exports=require("node:process")},2003:(a,b)=>{"use strict";function c(a){let{widthInt:b,heightInt:c,blurWidth:d,blurHeight:e,blurDataURL:f,objectFit:g}=a,h=d?40*d:b,i=e?40*e:c,j=h&&i?"viewBox='0 0 "+h+" "+i+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+j+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(j?"none":"contain"===g?"xMidYMid":"cover"===g?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+f+"'/%3E%3C/svg%3E"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getImageBlurSvg",{enumerable:!0,get:function(){return c}})},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8098:(a,b)=>{"use strict";function c(a){var b;let{config:c,src:d,width:e,quality:f}=a,g=f||(null==(b=c.qualities)?void 0:b.reduce((a,b)=>Math.abs(b-75)<Math.abs(a-75)?b:a))||75;return c.path+"?url="+encodeURIComponent(d)+"&w="+e+"&q="+g+(d.startsWith("/_next/static/media/"),"")}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return d}}),c.__next_img_default=!0;let d=c},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18075:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return p},defaultHead:function(){return l}});let d=c(87033),e=c(32468),f=c(35270),g=e._(c(4039)),h=d._(c(43974)),i=c(744),j=c(38928),k=c(92019);function l(a){void 0===a&&(a=!1);let b=[(0,f.jsx)("meta",{charSet:"utf-8"},"charset")];return a||b.push((0,f.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),b}function m(a,b){return"string"==typeof b||"number"==typeof b?a:b.type===g.default.Fragment?a.concat(g.default.Children.toArray(b.props.children).reduce((a,b)=>"string"==typeof b||"number"==typeof b?a:a.concat(b),[])):a.concat(b)}c(70957);let n=["name","httpEquiv","charSet","itemProp"];function o(a,b){let{inAmpMode:c}=b;return a.reduce(m,[]).reverse().concat(l(c).reverse()).filter(function(){let a=new Set,b=new Set,c=new Set,d={};return e=>{let f=!0,g=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){g=!0;let b=e.key.slice(e.key.indexOf("$")+1);a.has(b)?f=!1:a.add(b)}switch(e.type){case"title":case"base":b.has(e.type)?f=!1:b.add(e.type);break;case"meta":for(let a=0,b=n.length;a<b;a++){let b=n[a];if(e.props.hasOwnProperty(b))if("charSet"===b)c.has(b)?f=!1:c.add(b);else{let a=e.props[b],c=d[b]||new Set;("name"!==b||!g)&&c.has(a)?f=!1:(c.add(a),d[b]=c)}}}return f}}()).reverse().map((a,b)=>{let c=a.key||b;return g.default.cloneElement(a,{key:c})})}let p=function(a){let{children:b}=a,c=(0,g.useContext)(i.AmpStateContext),d=(0,g.useContext)(j.HeadManagerContext);return(0,f.jsx)(h.default,{reduceComponentsToState:o,headManager:d,inAmpMode:(0,k.isInAmpMode)(c),children:b})};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34628:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getImgProps",{enumerable:!0,get:function(){return i}}),c(70957);let d=c(2003),e=c(49719),f=["-moz-initial","fill","none","scale-down",void 0];function g(a){return void 0!==a.default}function h(a){return void 0===a?a:"number"==typeof a?Number.isFinite(a)?a:NaN:"string"==typeof a&&/^[0-9]+$/.test(a)?parseInt(a,10):NaN}function i(a,b){var c,i;let j,k,l,{src:m,sizes:n,unoptimized:o=!1,priority:p=!1,loading:q,className:r,quality:s,width:t,height:u,fill:v=!1,style:w,overrideSrc:x,onLoad:y,onLoadingComplete:z,placeholder:A="empty",blurDataURL:B,fetchPriority:C,decoding:D="async",layout:E,objectFit:F,objectPosition:G,lazyBoundary:H,lazyRoot:I,...J}=a,{imgConf:K,showAltText:L,blurComplete:M,defaultLoader:N}=b,O=K||e.imageConfigDefault;if("allSizes"in O)j=O;else{let a=[...O.deviceSizes,...O.imageSizes].sort((a,b)=>a-b),b=O.deviceSizes.sort((a,b)=>a-b),d=null==(c=O.qualities)?void 0:c.sort((a,b)=>a-b);j={...O,allSizes:a,deviceSizes:b,qualities:d}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let P=J.loader||N;delete J.loader,delete J.srcSet;let Q="__next_img_default"in P;if(Q){if("custom"===j.loader)throw Object.defineProperty(Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let a=P;P=b=>{let{config:c,...d}=b;return a(d)}}if(E){"fill"===E&&(v=!0);let a={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];a&&(w={...w,...a});let b={responsive:"100vw",fill:"100vw"}[E];b&&!n&&(n=b)}let R="",S=h(t),T=h(u);if((i=m)&&"object"==typeof i&&(g(i)||void 0!==i.src)){let a=g(m)?m.default:m;if(!a.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(a)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!a.height||!a.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(a)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(k=a.blurWidth,l=a.blurHeight,B=B||a.blurDataURL,R=a.src,!v)if(S||T){if(S&&!T){let b=S/a.width;T=Math.round(a.height*b)}else if(!S&&T){let b=T/a.height;S=Math.round(a.width*b)}}else S=a.width,T=a.height}let U=!p&&("lazy"===q||void 0===q);(!(m="string"==typeof m?m:R)||m.startsWith("data:")||m.startsWith("blob:"))&&(o=!0,U=!1),j.unoptimized&&(o=!0),Q&&!j.dangerouslyAllowSVG&&m.split("?",1)[0].endsWith(".svg")&&(o=!0);let V=h(s),W=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:F,objectPosition:G}:{},L?{}:{color:"transparent"},w),X=M||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,d.getImageBlurSvg)({widthInt:S,heightInt:T,blurWidth:k,blurHeight:l,blurDataURL:B||"",objectFit:W.objectFit})+'")':'url("'+A+'")',Y=f.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,Z=X?{backgroundSize:Y,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},$=function(a){let{config:b,src:c,unoptimized:d,width:e,quality:f,sizes:g,loader:h}=a;if(d)return{src:c,srcSet:void 0,sizes:void 0};let{widths:i,kind:j}=function(a,b,c){let{deviceSizes:d,allSizes:e}=a;if(c){let a=/(^|\s)(1?\d?\d)vw/g,b=[];for(let d;d=a.exec(c);)b.push(parseInt(d[2]));if(b.length){let a=.01*Math.min(...b);return{widths:e.filter(b=>b>=d[0]*a),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof b?{widths:d,kind:"w"}:{widths:[...new Set([b,2*b].map(a=>e.find(b=>b>=a)||e[e.length-1]))],kind:"x"}}(b,e,g),k=i.length-1;return{sizes:g||"w"!==j?g:"100vw",srcSet:i.map((a,d)=>h({config:b,src:c,quality:f,width:a})+" "+("w"===j?a:d+1)+j).join(", "),src:h({config:b,src:c,quality:f,width:i[k]})}}({config:j,src:m,unoptimized:o,width:S,quality:V,sizes:n,loader:P});return{props:{...J,loading:U?"lazy":q,fetchPriority:C,width:S,height:T,decoding:D,className:r,style:{...W,...Z},sizes:$.sizes,srcSet:$.srcSet,src:x||$.src},meta:{unoptimized:o,priority:p,placeholder:A,fill:v}}}},38606:(a,b,c)=>{"use strict";c.d(b,{default:()=>c5});var d=c(35270),e=c(4039),f=c.n(e),g=c(64516),h=c(34306),i=c(70702),j=c(45019),k=c(20675),l=c(55994),m=c(41810),n=c(8822),o=c(37545),p=c(19329),q=c(93128),r=c(56314),s=c(85459),t=c(70561),u=c(12208),v=c(11346),w=c(59320),x=c(39576),y=c(52510),z=c(6573),A=c(39554),[B,C]=(0,r.A)("Tooltip",[u.Bk]),D=(0,u.Bk)(),E="TooltipProvider",F="tooltip.open",[G,H]=B(E),I=a=>{let{__scopeTooltip:b,delayDuration:c=700,skipDelayDuration:f=300,disableHoverableContent:g=!1,children:h}=a,i=e.useRef(!0),j=e.useRef(!1),k=e.useRef(0);return e.useEffect(()=>{let a=k.current;return()=>window.clearTimeout(a)},[]),(0,d.jsx)(G,{scope:b,isOpenDelayedRef:i,delayDuration:c,onOpen:e.useCallback(()=>{window.clearTimeout(k.current),i.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>i.current=!0,f)},[f]),isPointerInTransitRef:j,onPointerInTransitChange:e.useCallback(a=>{j.current=a},[]),disableHoverableContent:g,children:h})};I.displayName=E;var J="Tooltip",[K,L]=B(J),M=a=>{let{__scopeTooltip:b,children:c,open:f,defaultOpen:g,onOpenChange:h,disableHoverableContent:i,delayDuration:j}=a,k=H(J,a.__scopeTooltip),l=D(b),[m,n]=e.useState(null),o=(0,t.B)(),p=e.useRef(0),q=i??k.disableHoverableContent,r=j??k.delayDuration,s=e.useRef(!1),[v,w]=(0,z.i)({prop:f,defaultProp:g??!1,onChange:a=>{a?(k.onOpen(),document.dispatchEvent(new CustomEvent(F))):k.onClose(),h?.(a)},caller:J}),x=e.useMemo(()=>v?s.current?"delayed-open":"instant-open":"closed",[v]),y=e.useCallback(()=>{window.clearTimeout(p.current),p.current=0,s.current=!1,w(!0)},[w]),A=e.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),B=e.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{s.current=!0,w(!0),p.current=0},r)},[r,w]);return e.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),(0,d.jsx)(u.bL,{...l,children:(0,d.jsx)(K,{scope:b,contentId:o,open:v,stateAttribute:x,trigger:m,onTriggerChange:n,onTriggerEnter:e.useCallback(()=>{k.isOpenDelayedRef.current?B():y()},[k.isOpenDelayedRef,B,y]),onTriggerLeave:e.useCallback(()=>{q?A():(window.clearTimeout(p.current),p.current=0)},[A,q]),onOpen:y,onClose:A,disableHoverableContent:q,children:c})})};M.displayName=J;var N="TooltipTrigger",O=e.forwardRef((a,b)=>{let{__scopeTooltip:c,...f}=a,g=L(N,c),h=H(N,c),i=D(c),j=e.useRef(null),k=(0,q.s)(b,j,g.onTriggerChange),l=e.useRef(!1),m=e.useRef(!1),n=e.useCallback(()=>l.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",n),[n]),(0,d.jsx)(u.Mz,{asChild:!0,...i,children:(0,d.jsx)(x.sG.button,{"aria-describedby":g.open?g.contentId:void 0,"data-state":g.stateAttribute,...f,ref:k,onPointerMove:(0,p.mK)(a.onPointerMove,a=>{"touch"!==a.pointerType&&(m.current||h.isPointerInTransitRef.current||(g.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,p.mK)(a.onPointerLeave,()=>{g.onTriggerLeave(),m.current=!1}),onPointerDown:(0,p.mK)(a.onPointerDown,()=>{g.open&&g.onClose(),l.current=!0,document.addEventListener("pointerup",n,{once:!0})}),onFocus:(0,p.mK)(a.onFocus,()=>{l.current||g.onOpen()}),onBlur:(0,p.mK)(a.onBlur,g.onClose),onClick:(0,p.mK)(a.onClick,g.onClose)})})});O.displayName=N;var P="TooltipPortal",[Q,R]=B(P,{forceMount:void 0}),S=a=>{let{__scopeTooltip:b,forceMount:c,children:e,container:f}=a,g=L(P,b);return(0,d.jsx)(Q,{scope:b,forceMount:c,children:(0,d.jsx)(w.C,{present:c||g.open,children:(0,d.jsx)(v.Z,{asChild:!0,container:f,children:e})})})};S.displayName=P;var T="TooltipContent",U=e.forwardRef((a,b)=>{let c=R(T,a.__scopeTooltip),{forceMount:e=c.forceMount,side:f="top",...g}=a,h=L(T,a.__scopeTooltip);return(0,d.jsx)(w.C,{present:e||h.open,children:h.disableHoverableContent?(0,d.jsx)(Z,{side:f,...g,ref:b}):(0,d.jsx)(V,{side:f,...g,ref:b})})}),V=e.forwardRef((a,b)=>{let c=L(T,a.__scopeTooltip),f=H(T,a.__scopeTooltip),g=e.useRef(null),h=(0,q.s)(b,g),[i,j]=e.useState(null),{trigger:k,onClose:l}=c,m=g.current,{onPointerInTransitChange:n}=f,o=e.useCallback(()=>{j(null),n(!1)},[n]),p=e.useCallback((a,b)=>{let c=a.currentTarget,d={x:a.clientX,y:a.clientY},e=function(a,b){let c=Math.abs(b.top-a.y),d=Math.abs(b.bottom-a.y),e=Math.abs(b.right-a.x),f=Math.abs(b.left-a.x);switch(Math.min(c,d,e,f)){case f:return"left";case e:return"right";case c:return"top";case d:return"bottom";default:throw Error("unreachable")}}(d,c.getBoundingClientRect());j(function(a){let b=a.slice();return b.sort((a,b)=>a.x<b.x?-1:a.x>b.x?1:a.y<b.y?-1:1*!!(a.y>b.y)),function(a){if(a.length<=1)return a.slice();let b=[];for(let c=0;c<a.length;c++){let d=a[c];for(;b.length>=2;){let a=b[b.length-1],c=b[b.length-2];if((a.x-c.x)*(d.y-c.y)>=(a.y-c.y)*(d.x-c.x))b.pop();else break}b.push(d)}b.pop();let c=[];for(let b=a.length-1;b>=0;b--){let d=a[b];for(;c.length>=2;){let a=c[c.length-1],b=c[c.length-2];if((a.x-b.x)*(d.y-b.y)>=(a.y-b.y)*(d.x-b.x))c.pop();else break}c.push(d)}return(c.pop(),1===b.length&&1===c.length&&b[0].x===c[0].x&&b[0].y===c[0].y)?b:b.concat(c)}(b)}([...function(a,b,c=5){let d=[];switch(b){case"top":d.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":d.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":d.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":d.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c})}return d}(d,e),...function(a){let{top:b,right:c,bottom:d,left:e}=a;return[{x:e,y:b},{x:c,y:b},{x:c,y:d},{x:e,y:d}]}(b.getBoundingClientRect())])),n(!0)},[n]);return e.useEffect(()=>()=>o(),[o]),e.useEffect(()=>{if(k&&m){let a=a=>p(a,m),b=a=>p(a,k);return k.addEventListener("pointerleave",a),m.addEventListener("pointerleave",b),()=>{k.removeEventListener("pointerleave",a),m.removeEventListener("pointerleave",b)}}},[k,m,p,o]),e.useEffect(()=>{if(i){let a=a=>{let b=a.target,c={x:a.clientX,y:a.clientY},d=k?.contains(b)||m?.contains(b),e=!function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;a<b.length;f=a++){let g=b[a],h=b[f],i=g.x,j=g.y,k=h.x,l=h.y;j>d!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}(c,i);d?o():e&&(o(),l())};return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[k,m,i,l,o]),(0,d.jsx)(Z,{...a,ref:h})}),[W,X]=B(J,{isInside:!1}),Y=(0,y.Dc)("TooltipContent"),Z=e.forwardRef((a,b)=>{let{__scopeTooltip:c,children:f,"aria-label":g,onEscapeKeyDown:h,onPointerDownOutside:i,...j}=a,k=L(T,c),l=D(c),{onClose:m}=k;return e.useEffect(()=>(document.addEventListener(F,m),()=>document.removeEventListener(F,m)),[m]),e.useEffect(()=>{if(k.trigger){let a=a=>{let b=a.target;b?.contains(k.trigger)&&m()};return window.addEventListener("scroll",a,{capture:!0}),()=>window.removeEventListener("scroll",a,{capture:!0})}},[k.trigger,m]),(0,d.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:h,onPointerDownOutside:i,onFocusOutside:a=>a.preventDefault(),onDismiss:m,children:(0,d.jsxs)(u.UC,{"data-state":k.stateAttribute,...l,...j,ref:b,style:{...j.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,d.jsx)(Y,{children:f}),(0,d.jsx)(W,{scope:c,isInside:!0,children:(0,d.jsx)(A.bL,{id:k.contentId,role:"tooltip",children:g||f})})]})})});U.displayName=T;var $="TooltipArrow",_=e.forwardRef((a,b)=>{let{__scopeTooltip:c,...e}=a,f=D(c);return X($,c).isInside?null:(0,d.jsx)(u.i3,{...f,...e,ref:b})});function aa({delayDuration:a=0,...b}){return(0,d.jsx)(I,{"data-slot":"tooltip-provider",delayDuration:a,...b})}function ab({...a}){return(0,d.jsx)(aa,{children:(0,d.jsx)(M,{"data-slot":"tooltip",...a})})}function ac({...a}){return(0,d.jsx)(O,{"data-slot":"tooltip-trigger",...a})}function ad({className:a,sideOffset:b=0,children:c,...e}){return(0,d.jsx)(S,{children:(0,d.jsxs)(U,{"data-slot":"tooltip-content",sideOffset:b,className:(0,h.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",a),...e,children:[c,(0,d.jsx)(_,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}_.displayName=$;var ae=c(4409);let af=(0,e.forwardRef)(({children:a,tooltip:b,side:c="bottom",className:e,...f},g)=>(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsxs)(ae.$,{variant:"ghost",size:"icon",...f,className:(0,h.cn)("size-6 p-1",e),ref:g,children:[a,(0,d.jsx)("span",{className:"sr-only",children:b})]})}),(0,d.jsx)(ad,{side:c,children:b})]}));function ag({value:a,tooltip:b="Copy",copiedTooltip:c="Copied!",className:f,size:g=12}){let[h,i]=(0,e.useState)(!1);return(0,d.jsx)(af,{tooltip:h?c:b,onClick:()=>{navigator.clipboard.writeText(a).then(()=>{i(!0),setTimeout(()=>i(!1),2e3)}).catch(()=>{})},className:f,children:h?(0,d.jsx)(n.A,{size:g}):(0,d.jsx)(o.A,{size:g})})}af.displayName="TooltipIconButton";var ah=c(44911);let ai=(0,ah.A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),aj=(0,ah.A)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);class ak{get supported(){return!1}constructor(){if(this._speaking=!1,this.subscribers=new Set,this.utterance=null,this.voices=[],this.voiceSubscribers=new Set,this.preferredVoiceName=null,this.supported){try{let a=window.localStorage.getItem("ttsVoiceName");this.preferredVoiceName=a&&a.length?a:null}catch{}let a=()=>{try{let a=window.speechSynthesis.getVoices()||[];(a.length!==this.voices.length||a.some((a,b)=>a.name!==this.voices[b]?.name))&&(this.voices=a,this.voiceSubscribers.forEach(a=>a()))}catch{}};a();try{window.speechSynthesis.addEventListener("voiceschanged",a)}catch{}}}isSpeaking(){return this._speaking}subscribe(a){return this.subscribers.add(a),()=>{this.subscribers.delete(a)}}subscribeVoices(a){return this.voiceSubscribers.add(a),()=>{this.voiceSubscribers.delete(a)}}notify(){for(let a of this.subscribers)try{a()}catch{}}stop(){if(this.supported){try{window.speechSynthesis.cancel()}catch{}this.utterance=null,this._speaking&&(this._speaking=!1,this.notify())}}speak(a,b){if(!this.supported||!a||!a.trim())return;this.stop();let c=new window.SpeechSynthesisUtterance(a);b?.rate!=null&&(c.rate=b.rate),b?.pitch!=null&&(c.pitch=b.pitch);let d=this.resolveVoice();if(d)try{c.voice=d,b?.lang?c.lang=b.lang:d.lang&&(c.lang=d.lang)}catch{}else b?.lang&&(c.lang=b.lang);c.onstart=()=>{this.utterance===c&&(this._speaking=!0,this.notify())};let e=()=>{this.utterance===c&&(this._speaking=!1,this.utterance=null,this.notify())};c.onend=e,c.onerror=e;try{this.utterance=c,window.speechSynthesis.speak(c),this._speaking||(this._speaking=!0,this.notify())}catch{e()}}getVoices(){return this.voices}setPreferredVoice(a){this.preferredVoiceName=a&&a.length?a:null;try{this.preferredVoiceName?window.localStorage.setItem("ttsVoiceName",this.preferredVoiceName):window.localStorage.removeItem("ttsVoiceName")}catch{}this.voiceSubscribers.forEach(a=>a())}getPreferredVoiceName(){return this.preferredVoiceName}resolveVoice(){if(!this.voices.length)return null;let a=this.preferredVoiceName?this.voices.find(a=>a.name===this.preferredVoiceName):null;if(a)return a;let b=this.voices.find(a=>"google uk english female"===a.name.toLowerCase()||a.name.toLowerCase().includes("google uk english female")&&a.lang?.toLowerCase().startsWith("en-gb"));if(b)return b;let c=a=>{let b=a.name.toLowerCase(),c=(a.lang??"").toLowerCase(),d=0;return("en"===c||c.startsWith("en-"))&&(d+=3),b.includes("google")&&(d+=5),(b.includes("microsoft")||b.includes("azure"))&&(d+=4),(b.includes("natural")||b.includes("neural")||b.includes("premium"))&&(d+=4),b.includes("siri")&&(d+=3),b.includes("female")&&(d+=1),d};return[...this.voices].sort((a,b)=>c(b)-c(a))[0]||this.voices[0]||null}}let al=globalThis,am=al.__speechController??(al.__speechController=new ak);function an({value:a,tooltip:b="Speak",stopTooltip:c="Stop",className:f,rate:g=1,pitch:h=1,lang:i}){let[j,k]=(0,e.useState)(!1),l=am.supported,m=(a??"").trim().length>0;return(0,d.jsx)(af,{tooltip:j?c:b,onClick:()=>{if(l&&m){if(j)return am.stop();am.speak(a,{rate:g,pitch:h,lang:i})}},className:f,disabled:!l||!m,children:j?(0,d.jsx)(ai,{size:12}):(0,d.jsx)(aj,{size:12})})}function ao({error:a,onDismiss:b}){let[c,f]=(0,e.useState)(!1),g=a.detailedIssues?.[0],h=g?.context&&"object"==typeof g.context&&"detailedIssues"in g.context?g.context.detailedIssues:[],i=h.length>0?`${a.message}
|
|
2
2
|
|
|
3
3
|
Details:
|
|
4
4
|
${h.map(a=>{let b=a.message;if(a.context){let c="string"==typeof a.context?a.context:JSON.stringify(a.context,null,2);b+=`
|
|
@@ -7,5 +7,5 @@ Context: ${c}`}return b}).join("\n\n")}`:a.message;return(0,d.jsx)("div",{classN
|
|
|
7
7
|
transition-transform transform
|
|
8
8
|
translate-x-0.5 data-[state=checked]:translate-x-[1.375rem]
|
|
9
9
|
bg-white dark:bg-gray-100
|
|
10
|
-
`,children:g?(0,d.jsx)(c$,{className:"w-3.5 h-3.5 text-gray-700"}):(0,d.jsx)(c_,{className:"w-3.5 h-3.5 text-yellow-500"})})})}),(0,d.jsx)(ad,{children:g?"Switch to light mode":"Switch to dark mode"})]})}):(0,d.jsx)("div",{className:"w-12 h-6 bg-gray-300 dark:bg-gray-700 rounded-full"})}function c1({active:a=!1}){let{voices:b,selected:c,setSelected:f}=function(){let[a,b]=(0,e.useState)(am.getVoices()),[c,d]=(0,e.useState)(am.getPreferredVoiceName());return{voices:a,selected:c,setSelected:a=>{am.setPreferredVoice(a),d(am.getPreferredVoiceName())}}}(),[g,h]=(0,e.useState)(!1);return a?(0,d.jsxs)(bX.l6,{value:c??"auto",onValueChange:a=>{f("auto"===a?null:a)},children:[(0,d.jsx)(bX.bq,{className:"h-8 w-[12rem] text-xs",children:(0,d.jsx)(bX.yv,{placeholder:"Voice"})}),(0,d.jsxs)(bX.gC,{children:[(0,d.jsx)(bX.eb,{value:"auto",children:"Auto (best available)"}),g&&b.map(a=>(0,d.jsxs)(bX.eb,{value:a.name,children:[a.name," (",a.lang,")"]},`${a.name}-${a.lang}`))]})]}):null}function c2({isOpen:a,onClose:b}){return(0,d.jsx)(bU.lG,{open:a,onOpenChange:a=>!a&&b(),children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-lg",children:[(0,d.jsxs)(bU.c7,{children:[(0,d.jsx)(bU.L3,{children:"Settings"}),(0,d.jsx)(bU.rr,{children:"Configure preferences for speech and more."})]}),(0,d.jsx)("div",{className:"space-y-6 py-2",children:(0,d.jsxs)("section",{className:"space-y-2",children:[(0,d.jsx)(bV.J,{className:"text-xs uppercase text-muted-foreground",children:"Voice"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Choose a preferred text-to-speech voice. “Auto” selects the best available voice on your device."}),(0,d.jsx)(c1,{active:a})]})})]})})}function c3(){let[a,b]=(0,e.useState)(!1),{messages:c,sendMessage:i,currentSessionId:k,switchSession:m,isWelcomeState:o,returnToWelcome:p,websocket:q,activeError:r,clearError:s,processing:t,cancel:u,greeting:v}=(0,g.v)(),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(!1),[C,D]=(0,e.useState)(!1),[E,F]=(0,e.useState)(!1),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)("dexto-config"),[M,N]=(0,e.useState)(null),[O,P]=(0,e.useState)(""),[Q,R]=(0,e.useState)(!1),[S,T]=(0,e.useState)(null),[U,V]=(0,e.useState)(!1),[W,X]=(0,e.useState)(!1),[Y,Z]=(0,e.useState)(null),[$,_]=(0,e.useState)(!1),[aa,af]=(0,e.useState)(!1),[ag,ah]=(0,e.useState)(""),ai=f().useRef(null),aj=f().useRef(null),[ak,al]=(0,e.useState)(!0),[am,an]=(0,e.useState)(!1),[ao,ap]=(0,e.useState)(!1);f().useRef(0);let[aq,as]=(0,e.useState)(!1);f().useRef(null);let[at,au]=(0,e.useState)(0),[av,aw]=(0,e.useState)(null);(0,e.useCallback)(()=>{let a=ai.current;a&&al(a.scrollHeight-a.scrollTop<=a.clientHeight+1)},[]);let ax=(0,e.useCallback)((a="auto")=>{let b=ai.current;b&&(an(!0),b.scrollTo({top:b.scrollHeight,behavior:a}),requestAnimationFrame(()=>an(!1)))},[]),ay=(0,e.useCallback)(()=>{let a=ai.current;if(!a)return;let b=a.querySelectorAll('[data-role="user"]'),c=b[b.length-1];if(!c)return void ax("auto");let d=a.getBoundingClientRect(),e=Math.max(c.getBoundingClientRect().top-d.top+a.scrollTop-16,0);an(!0),a.scrollTo({top:e,behavior:"auto"}),requestAnimationFrame(()=>an(!1))},[ax]),az=(0,e.useCallback)(async()=>{try{let a=k?`/api/config.yaml?sessionId=${k}`:"/api/config.yaml",b=await fetch(a);if(!b.ok)throw Error("Failed to fetch configuration");let c=await b.text(),d=new Blob([c],{type:"application/x-yaml"}),e=URL.createObjectURL(d),f=document.createElement("a");f.href=e,f.download=k?`${K}-${k}.yml`:`${K}.yml`,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(e)}catch(a){console.error("Download failed:",a),N(a instanceof Error?a.message:"Download failed")}},[K,k]),aA=(0,e.useCallback)(async()=>{try{await navigator.clipboard.writeText(O),R(!0),setTimeout(()=>R(!1),2e3)}catch(a){console.error("Copy failed:",a),N("Failed to copy to clipboard")}},[O]),aB=(0,e.useCallback)(async(a,b,c)=>{V(!0),Z(null);try{await i(a,b,c),setTimeout(()=>{ay(),ap(!0)},0)}catch(a){console.error("Failed to send message:",a),Z(a instanceof Error?a.message:"Failed to send message"),setTimeout(()=>Z(null),5e3)}finally{V(!1)}},[i,ay]),aC=(0,e.useCallback)(a=>{m(a),D(!1)},[m]),aD=(0,e.useCallback)(async a=>{let b={type:a.config.type,command:a.config.command,args:a.config.args||[],url:a.config.url,env:a.config.env||{},headers:a.config.headers||{},timeout:a.config.timeout||3e4};aw({name:a.name,config:b,lockName:!0,registryEntryId:a.id}),z(!1),x(!0)},[]),aE=(0,e.useCallback)(async()=>{if(k){af(!0);try{if(!(await fetch(`/api/sessions/${k}`,{method:"DELETE"})).ok)throw Error("Failed to delete conversation");_(!1),p()}catch(a){console.error("Failed to delete conversation:",a),Z(a instanceof Error?a.message:"Failed to delete conversation"),setTimeout(()=>Z(null),5e3)}finally{af(!1)}}},[k,p]);(0,e.useCallback)(a=>{a.preventDefault(),ag.trim()&&(aB(ag.trim()),ah(""))},[ag,aB]);let aF=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(!a.ok){let b=`HTTP ${a.status}: ${a.statusText}`;try{let c=await a.json();b=c.message||c.error||b}catch{}throw Error(b)}let b=await a.json();aC(b.session.id)}catch(a){console.error("Error creating new session:",a),Z("Failed to create new session. Please try again."),setTimeout(()=>Z(null),5e3)}},[aC]),aH=[{title:"Help me get started",description:"Show me what you can do",action:()=>aB("I'm new to Dexto. Can you show me your capabilities and help me understand how to work with you effectively?"),icon:"\uD83D\uDE80"},{title:"Create Snake Game",description:"Build a game and open it",action:()=>aB("Create a snake game in a new directory with HTML, CSS, and JavaScript, then open it in the browser for me to play."),icon:"\uD83D\uDC0D"},{title:"Connect new tools",description:"Browse and add MCP servers",action:()=>B(!0),icon:"\uD83D\uDD27"},{title:"Demonstrate tools",description:"Show me your capabilities",action:()=>aB("Pick one of your most interesting tools and demonstrate it with a practical example. Show me what it can do."),icon:"⚡"}];return(0,d.jsxs)("div",{className:"flex h-screen bg-background",children:[(0,d.jsx)("div",{className:(0,h.cn)("shrink-0 transition-all duration-300 ease-in-out border-r border-border/50 bg-card/50 backdrop-blur-sm",C?"w-80":"w-0 overflow-hidden"),children:C&&(0,d.jsx)(cN,{isOpen:C,onClose:()=>D(!1),currentSessionId:k,onSessionChange:aC,returnToWelcome:p,variant:"inline",onSearchOpen:()=>F(!0),onNewChat:aF})}),(0,d.jsxs)("main",{className:"flex-1 flex flex-col relative",style:{"--thread-max-width":"54rem"},children:[null,(0,d.jsx)("header",{className:"shrink-0 border-b border-border/50 bg-background/95 backdrop-blur-xl shadow-sm",children:(0,d.jsxs)("div",{className:"flex justify-between items-center px-4 py-3",children:[(0,d.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",onClick:()=>D(!C),className:(0,h.cn)("h-8 w-8 p-0 transition-colors",C&&"bg-muted"),children:(0,d.jsx)(cT,{className:"h-4 w-4"})})}),(0,d.jsx)(ad,{children:"Chat History (⌘H)"})]}),!C&&(0,d.jsx)(cM,{onClick:aF}),(0,d.jsxs)("a",{href:"https://dexto.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-3 hover:opacity-80 transition-opacity",children:[(0,d.jsx)("img",{src:"/logos/dexto/dexto_logo_light.svg",alt:"Dexto",className:"h-12 w-auto dark:hidden"}),(0,d.jsx)("img",{src:"/logos/dexto/dexto_logo.svg",alt:"Dexto",className:"h-12 w-auto hidden dark:block"}),(0,d.jsx)("span",{className:"sr-only",children:"Dexto"})]}),k&&!o&&(0,d.jsx)("div",{className:"flex items-center space-x-2",children:(0,d.jsx)(b2.E,{variant:"secondary",className:"text-xs bg-muted/50 border-border/30",children:k})})]}),(0,d.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,d.jsx)(c0,{}),(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",onClick:()=>J(!0),className:"h-8 w-8 p-0","aria-label":"Open settings",children:(0,d.jsx)(cQ,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ad,{children:"Settings"})]}),(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsxs)(ae.$,{variant:"ghost",size:"sm",onClick:()=>B(!A),className:(0,h.cn)("h-8 px-2 text-sm transition-colors",A&&"bg-muted"),children:[(0,d.jsx)(ar,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{className:"hidden sm:inline ml-1.5",children:"Tools"})]})}),(0,d.jsx)(ad,{children:"Toggle tools panel (⌘J)"})]}),(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",asChild:!0,className:"h-8 px-2 text-sm",children:(0,d.jsxs)(cZ(),{href:"/playground",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(b3,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{className:"hidden sm:inline ml-1.5",children:"Playground"})]})})}),(0,d.jsx)(ad,{children:"Open MCP playground (⌘L)"})]}),(0,d.jsxs)(bJ,{children:[(0,d.jsx)(bK,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:(0,d.jsx)(cU,{className:"h-3.5 w-3.5"})})}),(0,d.jsxs)(bL,{align:"end",children:[(0,d.jsxs)(bM,{onClick:()=>z(!0),children:[(0,d.jsx)(cr,{className:"h-4 w-4 mr-2"}),"Browse MCP Registry"]}),(0,d.jsxs)(bM,{onClick:()=>H(!0),children:[(0,d.jsx)(cV,{className:"h-4 w-4 mr-2"}),"Export Config"]}),(0,d.jsxs)(bM,{onClick:()=>X(!0),children:[(0,d.jsx)(cW,{className:"h-4 w-4 mr-2"}),"Shortcuts"]}),k&&!o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(bN,{}),(0,d.jsxs)(bM,{onClick:()=>_(!0),className:"text-destructive focus:text-destructive",children:[(0,d.jsx)(cC.A,{className:"h-4 w-4 mr-2"}),"Delete Conversation"]})]})]})]})]})]})}),(0,d.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[S&&(0,d.jsxs)("div",{className:"fixed bottom-4 right-4 z-50 border border-border/60 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 text-foreground px-3 py-2 rounded-md shadow-md inline-flex items-center gap-2",children:[(0,d.jsx)(n.A,{className:"h-4 w-4 text-green-600"}),(0,d.jsx)("span",{className:"text-sm",children:S})]}),Y&&(0,d.jsx)("div",{className:"absolute top-4 right-4 z-50 bg-destructive text-destructive-foreground px-4 py-2 rounded-md shadow-lg",children:Y}),(0,d.jsx)("div",{className:"flex-1 flex flex-col min-h-0",children:o||0===c.length?(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 -mt-20",children:(0,d.jsxs)("div",{className:"w-full max-w-[var(--thread-max-width)] mx-auto space-y-6",children:[(0,d.jsxs)("div",{className:"text-center space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,d.jsx)("img",{src:"/logos/dexto/dexto_logo_icon.svg",alt:"Dexto",className:"h-12 w-auto"}),(0,d.jsx)("h2",{className:"text-2xl font-bold font-mono tracking-tight bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:v??"Welcome to Dexto"})]}),(0,d.jsx)("p",{className:"text-base text-muted-foreground max-w-xl mx-auto leading-relaxed",children:"Your AI assistant with powerful tools. Ask anything or connect new capabilities."})]}),(0,d.jsx)("div",{className:"flex flex-wrap justify-center gap-2 max-w-[var(--thread-max-width)] mx-auto",children:aH.map((a,b)=>(0,d.jsx)("button",{onClick:a.action,className:"group px-3 py-2 text-left rounded-full bg-primary/5 hover:bg-primary/10 transition-all duration-200 hover:shadow-sm hover:scale-105",children:(0,d.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,d.jsx)("span",{className:"text-sm",children:a.icon}),(0,d.jsx)("span",{className:"font-medium text-sm text-primary group-hover:text-primary/80 transition-colors",children:a.title})]})},b))}),(0,d.jsx)("div",{className:"max-w-[var(--thread-max-width)] mx-auto",children:(0,d.jsx)(ci,{onSend:aB,isSending:U,variant:"welcome"})}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground space-y-1 text-center",children:(0,d.jsxs)("p",{children:["\uD83D\uDCA1 Try",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘K"})," for new chat,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘J"})," for tools,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘L"})," for playground,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:a?"⌘⌫":"Ctrl+⌫"})," to delete session,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘/"})," for shortcuts"]})})]})}):(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,d.jsx)("div",{ref:ai,className:"h-full overflow-y-auto overscroll-contain relative",children:(0,d.jsxs)("div",{className:"min-h-full grid grid-rows-[1fr_auto]",children:[(0,d.jsx)("div",{className:"w-full max-w-[var(--thread-max-width)] mx-auto",children:(0,d.jsx)(aG,{messages:c,activeError:r,onDismissError:s,outerRef:aj})}),(0,d.jsxs)("div",{className:"sticky bottom-0 z-10 px-4 pt-2 pb-[calc(env(safe-area-inset-bottom)+16px)] bg-background relative",children:[aq&&(0,d.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 -top-3 z-20 pointer-events-none",children:(0,d.jsxs)("button",{onClick:()=>{as(!1),ax("smooth")},className:"pointer-events-auto px-3 py-1.5 rounded-full shadow-sm bg-background/95 border border-border/60 backdrop-blur supports-[backdrop-filter]:bg-background/80 text-sm text-muted-foreground hover:text-foreground transition-colors inline-flex items-center gap-1.5",children:[(0,d.jsx)("span",{children:"Scroll to bottom"}),(0,d.jsx)(l.A,{className:"h-3.5 w-3.5"})]})}),(0,d.jsx)("div",{className:"w-full max-w-[var(--thread-max-width)] mx-auto pointer-events-auto",children:(0,d.jsx)(ci,{onSend:aB,isSending:U,variant:"chat"})})]})]})})})}),(0,d.jsx)("div",{className:(0,h.cn)("shrink-0 transition-all duration-300 ease-in-out border-l border-border/50 bg-card/50 backdrop-blur-sm",A?"w-80":"w-0 overflow-hidden"),children:A&&(0,d.jsx)(cG,{isOpen:A,onClose:()=>B(!1),onOpenConnectModal:()=>x(!0),onOpenConnectWithPrefill:a=>{aw(a),x(!0)},variant:"inline",refreshTrigger:at})})]}),(0,d.jsx)(cj.A,{isOpen:w,onClose:()=>{x(!1),aw(null)},onServerConnected:async()=>{if(av?.registryEntryId)try{await cm.setInstalled(av.registryEntryId,!0)}catch(a){console.warn("Failed to mark registry entry installed:",a)}au(a=>a+1);let a=av?.name||"Server";T(`Added ${a}`),setTimeout(()=>T(null),4e3)},initialName:av?.name,initialConfig:av?.config,lockName:av?.lockName}),(0,d.jsx)(cy,{isOpen:y,onClose:()=>z(!1),onInstallServer:aD}),(0,d.jsx)(bU.lG,{open:G,onOpenChange:H,children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-2xl",children:[(0,d.jsxs)(bU.c7,{children:[(0,d.jsxs)(bU.L3,{className:"flex items-center space-x-2",children:[(0,d.jsx)(cV,{className:"h-5 w-5"}),(0,d.jsx)("span",{children:"Export Configuration"})]}),(0,d.jsxs)(bU.rr,{children:["Download your tool configuration for Claude Desktop or other MCP clients",k&&(0,d.jsxs)("span",{className:"block mt-1 text-sm text-muted-foreground",children:["Including session-specific settings for: ",(0,d.jsx)("span",{className:"font-mono",children:k})]})]})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(bV.J,{htmlFor:"filename",children:"File name"}),(0,d.jsx)(bY.p,{id:"filename",value:K,onChange:a=>L(a.target.value),placeholder:"dexto-config",className:"font-mono"})]}),M&&(0,d.jsxs)(bW.Fc,{variant:"destructive",children:[(0,d.jsx)(j.A,{className:"h-4 w-4"}),(0,d.jsx)(bW.XL,{children:"Export Error"}),(0,d.jsx)(bW.TN,{children:M})]}),O&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(bV.J,{children:"Configuration Preview"}),(0,d.jsx)(cX.T,{value:O,readOnly:!0,className:"h-32 font-mono text-xs bg-muted/30"})]})]}),(0,d.jsxs)(bU.Es,{children:[(0,d.jsx)(ae.$,{variant:"outline",onClick:aA,className:"flex items-center space-x-2",children:(0,d.jsx)("span",{children:Q?"Copied!":"Copy"})}),(0,d.jsxs)(ae.$,{onClick:az,className:"flex items-center space-x-2",children:[(0,d.jsx)(cV,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Download"})]})]})]})}),(0,d.jsx)(c2,{isOpen:I,onClose:()=>J(!1)}),(0,d.jsx)(bU.lG,{open:$,onOpenChange:_,children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(bU.c7,{children:[(0,d.jsxs)(bU.L3,{className:"flex items-center space-x-2",children:[(0,d.jsx)(cC.A,{className:"h-5 w-5 text-destructive"}),(0,d.jsx)("span",{children:"Delete Conversation"})]}),(0,d.jsxs)(bU.rr,{children:["This will permanently delete this conversation and all its messages. This action cannot be undone.",k&&(0,d.jsxs)("span",{className:"block mt-2 font-medium",children:["Session: ",(0,d.jsx)("span",{className:"font-mono",children:k})]})]})]}),(0,d.jsxs)(bU.Es,{children:[(0,d.jsx)(ae.$,{variant:"outline",onClick:()=>_(!1),children:"Cancel"}),(0,d.jsxs)(ae.$,{variant:"destructive",onClick:aE,disabled:aa,className:"flex items-center space-x-2",children:[(0,d.jsx)(cC.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:aa?"Deleting...":"Delete Conversation"})]})]})]})}),(0,d.jsx)(bU.lG,{open:W,onOpenChange:X,children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-md",children:[(0,d.jsx)(bU.c7,{children:(0,d.jsxs)(bU.L3,{className:"flex items-center space-x-2",children:[(0,d.jsx)(cW,{className:"h-5 w-5"}),(0,d.jsx)("span",{children:"Keyboard Shortcuts"})]})}),(0,d.jsx)("div",{className:"space-y-3",children:[{key:"⌘H",desc:"Toggle chat history panel"},{key:"⌘K",desc:"Create new chat"},{key:"⌘J",desc:"Toggle tools panel"},{key:"⌘⇧S",desc:"Search conversations"},{key:"⌘L",desc:"Open MCP playground"},{key:"⌘⇧E",desc:"Export config"},{key:"⌘/",desc:"Show shortcuts"},{key:a?"⌘⌫":"Ctrl+⌫",desc:"Delete current session"},{key:"Esc",desc:"Close panels"}].map((a,b)=>(0,d.jsxs)("div",{className:"flex justify-between items-center py-1",children:[(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:a.desc}),(0,d.jsx)(b2.E,{variant:"outline",className:"font-mono text-xs",children:a.key})]},b))}),(0,d.jsx)(bU.Es,{children:(0,d.jsx)(bU.HM,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"outline",children:"Close"})})})]})})]}),(0,d.jsx)(cS,{isOpen:E,onClose:()=>F(!1),onNavigateToSession:(a,b)=>{m(a),F(!1)}}),(0,d.jsx)(cP,{websocket:q})]})}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18075:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return p},defaultHead:function(){return l}});let d=c(87033),e=c(32468),f=c(35270),g=e._(c(4039)),h=d._(c(43974)),i=c(744),j=c(38928),k=c(92019);function l(a){void 0===a&&(a=!1);let b=[(0,f.jsx)("meta",{charSet:"utf-8"},"charset")];return a||b.push((0,f.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),b}function m(a,b){return"string"==typeof b||"number"==typeof b?a:b.type===g.default.Fragment?a.concat(g.default.Children.toArray(b.props.children).reduce((a,b)=>"string"==typeof b||"number"==typeof b?a:a.concat(b),[])):a.concat(b)}c(70957);let n=["name","httpEquiv","charSet","itemProp"];function o(a,b){let{inAmpMode:c}=b;return a.reduce(m,[]).reverse().concat(l(c).reverse()).filter(function(){let a=new Set,b=new Set,c=new Set,d={};return e=>{let f=!0,g=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){g=!0;let b=e.key.slice(e.key.indexOf("$")+1);a.has(b)?f=!1:a.add(b)}switch(e.type){case"title":case"base":b.has(e.type)?f=!1:b.add(e.type);break;case"meta":for(let a=0,b=n.length;a<b;a++){let b=n[a];if(e.props.hasOwnProperty(b))if("charSet"===b)c.has(b)?f=!1:c.add(b);else{let a=e.props[b],c=d[b]||new Set;("name"!==b||!g)&&c.has(a)?f=!1:(c.add(a),d[b]=c)}}}return f}}()).reverse().map((a,b)=>{let c=a.key||b;return g.default.cloneElement(a,{key:c})})}let p=function(a){let{children:b}=a,c=(0,g.useContext)(i.AmpStateContext),d=(0,g.useContext)(j.HeadManagerContext);return(0,f.jsx)(h.default,{reduceComponentsToState:o,headManager:d,inAmpMode:(0,k.isInAmpMode)(c),children:b})};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34628:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getImgProps",{enumerable:!0,get:function(){return i}}),c(70957);let d=c(2003),e=c(49719),f=["-moz-initial","fill","none","scale-down",void 0];function g(a){return void 0!==a.default}function h(a){return void 0===a?a:"number"==typeof a?Number.isFinite(a)?a:NaN:"string"==typeof a&&/^[0-9]+$/.test(a)?parseInt(a,10):NaN}function i(a,b){var c,i;let j,k,l,{src:m,sizes:n,unoptimized:o=!1,priority:p=!1,loading:q,className:r,quality:s,width:t,height:u,fill:v=!1,style:w,overrideSrc:x,onLoad:y,onLoadingComplete:z,placeholder:A="empty",blurDataURL:B,fetchPriority:C,decoding:D="async",layout:E,objectFit:F,objectPosition:G,lazyBoundary:H,lazyRoot:I,...J}=a,{imgConf:K,showAltText:L,blurComplete:M,defaultLoader:N}=b,O=K||e.imageConfigDefault;if("allSizes"in O)j=O;else{let a=[...O.deviceSizes,...O.imageSizes].sort((a,b)=>a-b),b=O.deviceSizes.sort((a,b)=>a-b),d=null==(c=O.qualities)?void 0:c.sort((a,b)=>a-b);j={...O,allSizes:a,deviceSizes:b,qualities:d}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let P=J.loader||N;delete J.loader,delete J.srcSet;let Q="__next_img_default"in P;if(Q){if("custom"===j.loader)throw Object.defineProperty(Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let a=P;P=b=>{let{config:c,...d}=b;return a(d)}}if(E){"fill"===E&&(v=!0);let a={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];a&&(w={...w,...a});let b={responsive:"100vw",fill:"100vw"}[E];b&&!n&&(n=b)}let R="",S=h(t),T=h(u);if((i=m)&&"object"==typeof i&&(g(i)||void 0!==i.src)){let a=g(m)?m.default:m;if(!a.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(a)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!a.height||!a.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(a)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(k=a.blurWidth,l=a.blurHeight,B=B||a.blurDataURL,R=a.src,!v)if(S||T){if(S&&!T){let b=S/a.width;T=Math.round(a.height*b)}else if(!S&&T){let b=T/a.height;S=Math.round(a.width*b)}}else S=a.width,T=a.height}let U=!p&&("lazy"===q||void 0===q);(!(m="string"==typeof m?m:R)||m.startsWith("data:")||m.startsWith("blob:"))&&(o=!0,U=!1),j.unoptimized&&(o=!0),Q&&!j.dangerouslyAllowSVG&&m.split("?",1)[0].endsWith(".svg")&&(o=!0);let V=h(s),W=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:F,objectPosition:G}:{},L?{}:{color:"transparent"},w),X=M||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,d.getImageBlurSvg)({widthInt:S,heightInt:T,blurWidth:k,blurHeight:l,blurDataURL:B||"",objectFit:W.objectFit})+'")':'url("'+A+'")',Y=f.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,Z=X?{backgroundSize:Y,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},$=function(a){let{config:b,src:c,unoptimized:d,width:e,quality:f,sizes:g,loader:h}=a;if(d)return{src:c,srcSet:void 0,sizes:void 0};let{widths:i,kind:j}=function(a,b,c){let{deviceSizes:d,allSizes:e}=a;if(c){let a=/(^|\s)(1?\d?\d)vw/g,b=[];for(let d;d=a.exec(c);)b.push(parseInt(d[2]));if(b.length){let a=.01*Math.min(...b);return{widths:e.filter(b=>b>=d[0]*a),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof b?{widths:d,kind:"w"}:{widths:[...new Set([b,2*b].map(a=>e.find(b=>b>=a)||e[e.length-1]))],kind:"x"}}(b,e,g),k=i.length-1;return{sizes:g||"w"!==j?g:"100vw",srcSet:i.map((a,d)=>h({config:b,src:c,quality:f,width:a})+" "+("w"===j?a:d+1)+j).join(", "),src:h({config:b,src:c,quality:f,width:i[k]})}}({config:j,src:m,unoptimized:o,width:S,quality:V,sizes:n,loader:P});return{props:{...J,loading:U?"lazy":q,fetchPriority:C,width:S,height:T,decoding:D,className:r,style:{...W,...Z},sizes:$.sizes,srcSet:$.srcSet,src:x||$.src},meta:{unoptimized:o,priority:p,placeholder:A,fill:v}}}},38928:(a,b,c)=>{"use strict";a.exports=c(40198).vendored.contexts.HeadManagerContext},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43974:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return f}});let d=c(4039),e=()=>{};function f(a){var b;let{headManager:c,reduceComponentsToState:f}=a;function g(){if(c&&c.mountedInstances){let b=d.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(f(b,a))}}return null==c||null==(b=c.mountedInstances)||b.add(a.children),g(),e(()=>{var b;return null==c||null==(b=c.mountedInstances)||b.add(a.children),()=>{var b;null==c||null==(b=c.mountedInstances)||b.delete(a.children)}}),e(()=>(c&&(c._pendingUpdate=g),()=>{c&&(c._pendingUpdate=g)})),null}},49719:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{VALID_LOADERS:function(){return c},imageConfigDefault:function(){return d}});let c=["default","imgix","cloudinary","akamai","custom"],d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},50828:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"Image",{enumerable:!0,get:function(){return u}});let d=c(87033),e=c(32468),f=c(35270),g=e._(c(4039)),h=d._(c(16942)),i=d._(c(18075)),j=c(34628),k=c(49719),l=c(85362);c(70957);let m=c(85497),n=d._(c(8098)),o=c(58797),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function q(a,b,c,d,e,f,g){let h=null==a?void 0:a.src;a&&a["data-loaded-src"]!==h&&(a["data-loaded-src"]=h,("decode"in a?a.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(a.parentElement&&a.isConnected){if("empty"!==b&&e(!0),null==c?void 0:c.current){let b=new Event("load");Object.defineProperty(b,"target",{writable:!1,value:a});let d=!1,e=!1;c.current({...b,nativeEvent:b,currentTarget:a,target:a,isDefaultPrevented:()=>d,isPropagationStopped:()=>e,persist:()=>{},preventDefault:()=>{d=!0,b.preventDefault()},stopPropagation:()=>{e=!0,b.stopPropagation()}})}(null==d?void 0:d.current)&&d.current(a)}}))}function r(a){return g.use?{fetchPriority:a}:{fetchpriority:a}}globalThis.__NEXT_IMAGE_IMPORTED=!0;let s=(0,g.forwardRef)((a,b)=>{let{src:c,srcSet:d,sizes:e,height:h,width:i,decoding:j,className:k,style:l,fetchPriority:m,placeholder:n,loading:p,unoptimized:s,fill:t,onLoadRef:u,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:x,sizesInput:y,onLoad:z,onError:A,...B}=a,C=(0,g.useCallback)(a=>{a&&(A&&(a.src=a.src),a.complete&&q(a,n,u,v,w,s,y))},[c,n,u,v,w,A,s,y]),D=(0,o.useMergedRef)(b,C);return(0,f.jsx)("img",{...B,...r(m),loading:p,width:i,height:h,decoding:j,"data-nimg":t?"fill":"1",className:k,style:l,sizes:e,srcSet:d,src:c,ref:D,onLoad:a=>{q(a.currentTarget,n,u,v,w,s,y)},onError:a=>{x(!0),"empty"!==n&&w(!0),A&&A(a)}})});function t(a){let{isAppRouter:b,imgAttributes:c}=a,d={as:"image",imageSrcSet:c.srcSet,imageSizes:c.sizes,crossOrigin:c.crossOrigin,referrerPolicy:c.referrerPolicy,...r(c.fetchPriority)};return b&&h.default.preload?(h.default.preload(c.src,d),null):(0,f.jsx)(i.default,{children:(0,f.jsx)("link",{rel:"preload",href:c.srcSet?void 0:c.src,...d},"__nimg-"+c.src+c.srcSet+c.sizes)})}let u=(0,g.forwardRef)((a,b)=>{let c=(0,g.useContext)(m.RouterContext),d=(0,g.useContext)(l.ImageConfigContext),e=(0,g.useMemo)(()=>{var a;let b=p||d||k.imageConfigDefault,c=[...b.deviceSizes,...b.imageSizes].sort((a,b)=>a-b),e=b.deviceSizes.sort((a,b)=>a-b),f=null==(a=b.qualities)?void 0:a.sort((a,b)=>a-b);return{...b,allSizes:c,deviceSizes:e,qualities:f}},[d]),{onLoad:h,onLoadingComplete:i}=a,o=(0,g.useRef)(h);(0,g.useEffect)(()=>{o.current=h},[h]);let q=(0,g.useRef)(i);(0,g.useEffect)(()=>{q.current=i},[i]);let[r,u]=(0,g.useState)(!1),[v,w]=(0,g.useState)(!1),{props:x,meta:y}=(0,j.getImgProps)(a,{defaultLoader:n.default,imgConf:e,blurComplete:r,showAltText:v});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s,{...x,unoptimized:y.unoptimized,placeholder:y.placeholder,fill:y.fill,onLoadRef:o,onLoadingCompleteRef:q,setBlurComplete:u,setShowAltText:w,sizesInput:a.sizes,ref:b}),y.priority?(0,f.jsx)(t,{isAppRouter:!c,imgAttributes:x}):null]})});("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},62518:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return i},getImageProps:function(){return h}});let d=c(87033),e=c(34628),f=c(50828),g=d._(c(8098));function h(a){let{props:b}=(0,e.getImgProps)(a,{defaultLoader:g.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[a,c]of Object.entries(b))void 0===c&&delete b[a];return{props:b}}let i=f.Image},62973:(a,b,c)=>{Promise.resolve().then(c.bind(c,8993))},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70253:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(95364).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/dexto/dexto/packages/webui/components/ChatApp.tsx\" from the server, but it's 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.")},"/home/runner/work/dexto/dexto/packages/webui/components/ChatApp.tsx","default")},73136:a=>{"use strict";a.exports=require("node:url")},76477:(a,b,c)=>{Promise.resolve().then(c.bind(c,70253))},76760:a=>{"use strict";a.exports=require("node:path")},84594:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(15592),e=c(823),f=c(45233),g=c(47710),h=c(28992),i=c(34706),j=c(68505),k=c(30554),l=c(20768),m=c(65802),n=c(64308),o=c(60195),p=c(73143),q=c(22908),r=c(261),s=c(29619),t=c(69936),u=c(26713),v=c(39802),w=c(60111),x=c(25699),y=c(50052),z=c(37732),A=c(96580),B=c(86439),C=c(97452),D=c.n(C),E=c(46912),F=c(50329),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,99226)),"/home/runner/work/dexto/dexto/packages/webui/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,90981)),"/home/runner/work/dexto/dexto/packages/webui/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,97452,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,70106,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,31547,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,8910,23)),"next/dist/client/components/builtin/unauthorized.js"]}],I=["/home/runner/work/dexto/dexto/packages/webui/app/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
10
|
+
`,children:g?(0,d.jsx)(c$,{className:"w-3.5 h-3.5 text-gray-700"}):(0,d.jsx)(c_,{className:"w-3.5 h-3.5 text-yellow-500"})})})}),(0,d.jsx)(ad,{children:g?"Switch to light mode":"Switch to dark mode"})]})}):(0,d.jsx)("div",{className:"w-12 h-6 bg-gray-300 dark:bg-gray-700 rounded-full"})}function c1({active:a=!1}){let{voices:b,selected:c,setSelected:f}=function(){let[a,b]=(0,e.useState)(am.getVoices()),[c,d]=(0,e.useState)(am.getPreferredVoiceName());return{voices:a,selected:c,setSelected:a=>{am.setPreferredVoice(a),d(am.getPreferredVoiceName())}}}(),[g,h]=(0,e.useState)(!1);return a?(0,d.jsxs)(bX.l6,{value:c??"auto",onValueChange:a=>{f("auto"===a?null:a)},children:[(0,d.jsx)(bX.bq,{className:"h-8 w-[12rem] text-xs",children:(0,d.jsx)(bX.yv,{placeholder:"Voice"})}),(0,d.jsxs)(bX.gC,{children:[(0,d.jsx)(bX.eb,{value:"auto",children:"Auto (best available)"}),g&&b.map(a=>(0,d.jsxs)(bX.eb,{value:a.name,children:[a.name," (",a.lang,")"]},`${a.name}-${a.lang}`))]})]}):null}function c2({isOpen:a,onClose:b}){return(0,d.jsx)(bU.lG,{open:a,onOpenChange:a=>!a&&b(),children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-lg",children:[(0,d.jsxs)(bU.c7,{children:[(0,d.jsx)(bU.L3,{children:"Settings"}),(0,d.jsx)(bU.rr,{children:"Configure preferences for speech and more."})]}),(0,d.jsx)("div",{className:"space-y-6 py-2",children:(0,d.jsxs)("section",{className:"space-y-2",children:[(0,d.jsx)(bV.J,{className:"text-xs uppercase text-muted-foreground",children:"Voice"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Choose a preferred text-to-speech voice. “Auto” selects the best available voice on your device."}),(0,d.jsx)(c1,{active:a})]})})]})})}let c3=(0,ah.A)("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]);function c4({mode:a="default"}){let{returnToWelcome:b}=(0,g.v)(),[c,f]=(0,e.useState)([]),[h,i]=(0,e.useState)([]),[j,k]=(0,e.useState)(null),[m,o]=(0,e.useState)(!1),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(!1),t=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/agents");if(!a.ok)throw Error("Failed to fetch agents");let b=await a.json();f(b.installed||[]),i(b.available||[]),k(b.current?.name??null)}catch(a){console.error("AgentSelector load error:",a)}},[]),u=(0,e.useCallback)(async a=>{try{q(!0);let b=await fetch("/api/agents/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a})});if(!b.ok){let a=await b.json().catch(()=>({}));throw Error(a.error||`Install failed: ${b.status}`)}await t(),s(!1)}catch(b){console.error("Install agent failed:",b);let a=b instanceof Error?b.message:"Failed to install agent";alert(`Failed to install agent: ${a}`)}finally{q(!1)}},[t]),v=(0,e.useCallback)(async a=>{try{q(!0);let c=await fetch("/api/agents/switch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a})});if(!c.ok){let a=await c.json().catch(()=>({}));throw Error(a.error||`Switch failed: ${c.status}`)}k(a),s(!1);try{window.dispatchEvent(new CustomEvent("dexto:agentSwitched",{detail:{name:a}}))}catch{}b()}catch(b){console.error("Switch agent failed:",b);let a=b instanceof Error?b.message:"Failed to switch agent";alert(`Failed to switch agent: ${a}`)}finally{q(!1)}},[b]),w=(0,e.useMemo)(()=>j||"Choose Agent",[j]);return(0,d.jsxs)(bJ,{open:r,onOpenChange:s,children:[(0,d.jsx)(bK,{asChild:!0,children:(0,d.jsxs)(ae.$,{variant:"badge"===a?"outline":"default",size:"sm",className:(a=>{let b="transition-all duration-200 shadow-lg hover:shadow-xl font-semibold rounded-full";switch(a){case"badge":return`h-9 px-3 text-xs border border-teal-500 bg-teal-500/20 text-teal-600 hover:bg-teal-500/40 hover:border-teal-500 hover:text-teal-700 dark:text-teal-400 dark:hover:text-teal-300 dark:border-teal-400 dark:hover:border-teal-300 ${b}`;case"title":return`h-11 px-4 text-lg font-bold bg-gradient-to-r from-teal-500/30 to-teal-500/40 text-teal-600 hover:from-teal-500/50 hover:to-teal-500/60 hover:text-teal-700 focus-visible:ring-2 focus-visible:ring-teal-500/50 focus-visible:ring-offset-2 border border-teal-500/40 dark:text-teal-400 dark:hover:text-teal-300 dark:border-teal-400 ${b}`;default:return`h-10 px-3 text-sm bg-teal-500/40 text-teal-600 hover:bg-teal-500/50 hover:text-teal-700 focus-visible:ring-2 focus-visible:ring-teal-500/50 focus-visible:ring-offset-2 border border-teal-500/50 dark:text-teal-400 dark:hover:text-teal-300 dark:border-teal-400 ${b}`}})(a),disabled:p,children:[(0,d.jsx)(b4,{className:"w-4 h-4 mr-2"}),p?"Switching...":"title"===a?`Agent: ${w}`:w,(0,d.jsx)(l.A,{className:"w-4 h-4 ml-2"})]})}),(0,d.jsxs)(bL,{align:"start",className:"w-80 max-h-96 overflow-y-auto",children:[m&&(0,d.jsx)(bM,{disabled:!0,className:"text-center text-muted-foreground",children:"Loading agents..."}),!m&&(0,d.jsxs)(d.Fragment,{children:[c.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Installed"}),c.map(a=>(0,d.jsx)(bM,{onClick:()=>v(a.name),disabled:p||a.name===j,className:"cursor-pointer py-3",children:(0,d.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-medium text-sm truncate",children:a.name}),a.name===j&&(0,d.jsx)(n.A,{className:"w-4 h-4 text-green-600 flex-shrink-0 animate-in fade-in duration-200"})]}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:a.description}),a.author&&(0,d.jsxs)("p",{className:"text-xs text-muted-foreground/80 mt-0.5",children:["by ",a.author]})]})})},a.name))]}),c.length>0&&h.length>0&&(0,d.jsx)(bN,{}),h.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Available"}),h.map(a=>(0,d.jsx)(bM,{onClick:()=>u(a.name),disabled:p,className:"cursor-pointer py-3",children:(0,d.jsx)("div",{className:"flex items-center justify-between w-full",children:(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-medium text-sm truncate",children:a.name}),(0,d.jsx)(c3,{className:"w-4 h-4 text-blue-600 flex-shrink-0"})]}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:a.description}),a.author&&(0,d.jsxs)("p",{className:"text-xs text-muted-foreground/80 mt-0.5",children:["by ",a.author]})]})})},a.name))]}),!m&&0===c.length&&0===h.length&&(0,d.jsx)(bM,{disabled:!0,className:"text-center text-muted-foreground",children:"No agents found"})]})]})]})}function c5(){let[a,b]=(0,e.useState)(!1),{messages:c,sendMessage:i,currentSessionId:k,switchSession:m,isWelcomeState:o,returnToWelcome:p,websocket:q,activeError:r,clearError:s,processing:t,cancel:u,greeting:v}=(0,g.v)(),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(!1),[C,D]=(0,e.useState)(!1),[E,F]=(0,e.useState)(!1),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)("dexto-config"),[M,N]=(0,e.useState)(null),[O,P]=(0,e.useState)(""),[Q,R]=(0,e.useState)(!1),[S,T]=(0,e.useState)(null),[U,V]=(0,e.useState)(!1),[W,X]=(0,e.useState)(!1),[Y,Z]=(0,e.useState)(null),[$,_]=(0,e.useState)(!1),[aa,af]=(0,e.useState)(!1),[ag,ah]=(0,e.useState)(""),ai=f().useRef(null),aj=f().useRef(null),[ak,al]=(0,e.useState)(!0),[am,an]=(0,e.useState)(!1),[ao,ap]=(0,e.useState)(!1);f().useRef(0);let[aq,as]=(0,e.useState)(!1);f().useRef(null);let[at,au]=(0,e.useState)(0),[av,aw]=(0,e.useState)(null);(0,e.useCallback)(()=>{let a=ai.current;a&&al(a.scrollHeight-a.scrollTop<=a.clientHeight+1)},[]);let ax=(0,e.useCallback)((a="auto")=>{let b=ai.current;b&&(an(!0),b.scrollTo({top:b.scrollHeight,behavior:a}),requestAnimationFrame(()=>an(!1)))},[]),ay=(0,e.useCallback)(()=>{let a=ai.current;if(!a)return;let b=a.querySelectorAll('[data-role="user"]'),c=b[b.length-1];if(!c)return void ax("auto");let d=a.getBoundingClientRect(),e=Math.max(c.getBoundingClientRect().top-d.top+a.scrollTop-16,0);an(!0),a.scrollTo({top:e,behavior:"auto"}),requestAnimationFrame(()=>an(!1))},[ax]),az=(0,e.useCallback)(async()=>{try{let a=k?`/api/config.yaml?sessionId=${k}`:"/api/config.yaml",b=await fetch(a);if(!b.ok)throw Error("Failed to fetch configuration");let c=await b.text(),d=new Blob([c],{type:"application/x-yaml"}),e=URL.createObjectURL(d),f=document.createElement("a");f.href=e,f.download=k?`${K}-${k}.yml`:`${K}.yml`,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(e)}catch(a){console.error("Download failed:",a),N(a instanceof Error?a.message:"Download failed")}},[K,k]),aA=(0,e.useCallback)(async()=>{try{await navigator.clipboard.writeText(O),R(!0),setTimeout(()=>R(!1),2e3)}catch(a){console.error("Copy failed:",a),N("Failed to copy to clipboard")}},[O]),aB=(0,e.useCallback)(async(a,b,c)=>{V(!0),Z(null);try{await i(a,b,c),setTimeout(()=>{ay(),ap(!0)},0)}catch(a){console.error("Failed to send message:",a),Z(a instanceof Error?a.message:"Failed to send message"),setTimeout(()=>Z(null),5e3)}finally{V(!1)}},[i,ay]),aC=(0,e.useCallback)(a=>{m(a),D(!1)},[m]),aD=(0,e.useCallback)(async a=>{let b={type:a.config.type,command:a.config.command,args:a.config.args||[],url:a.config.url,env:a.config.env||{},headers:a.config.headers||{},timeout:a.config.timeout||3e4};aw({name:a.name,config:b,lockName:!0,registryEntryId:a.id}),z(!1),x(!0)},[]),aE=(0,e.useCallback)(async()=>{if(k){af(!0);try{if(!(await fetch(`/api/sessions/${k}`,{method:"DELETE"})).ok)throw Error("Failed to delete conversation");_(!1),p()}catch(a){console.error("Failed to delete conversation:",a),Z(a instanceof Error?a.message:"Failed to delete conversation"),setTimeout(()=>Z(null),5e3)}finally{af(!1)}}},[k,p]);(0,e.useCallback)(a=>{a.preventDefault(),ag.trim()&&(aB(ag.trim()),ah(""))},[ag,aB]);let aF=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(!a.ok){let b=`HTTP ${a.status}: ${a.statusText}`;try{let c=await a.json();b=c.message||c.error||b}catch{}throw Error(b)}let b=await a.json();aC(b.session.id)}catch(a){console.error("Error creating new session:",a),Z("Failed to create new session. Please try again."),setTimeout(()=>Z(null),5e3)}},[aC]),aH=[{title:"Help me get started",description:"Show me what you can do",action:()=>aB("I'm new to Dexto. Can you show me your capabilities and help me understand how to work with you effectively?"),icon:"\uD83D\uDE80"},{title:"Create Snake Game",description:"Build a game and open it",action:()=>aB("Create a snake game in a new directory with HTML, CSS, and JavaScript, then open it in the browser for me to play."),icon:"\uD83D\uDC0D"},{title:"Connect new tools",description:"Browse and add MCP servers",action:()=>B(!0),icon:"\uD83D\uDD27"},{title:"Demonstrate tools",description:"Show me your capabilities",action:()=>aB("Pick one of your most interesting tools and demonstrate it with a practical example. Show me what it can do."),icon:"⚡"}];return(0,d.jsxs)("div",{className:"flex h-screen bg-background",children:[(0,d.jsx)("div",{className:(0,h.cn)("shrink-0 transition-all duration-300 ease-in-out border-r border-border/50 bg-card/50 backdrop-blur-sm",C?"w-80":"w-0 overflow-hidden"),children:C&&(0,d.jsx)(cN,{isOpen:C,onClose:()=>D(!1),currentSessionId:k,onSessionChange:aC,returnToWelcome:p,variant:"inline",onSearchOpen:()=>F(!0),onNewChat:aF})}),(0,d.jsxs)("main",{className:"flex-1 flex flex-col relative",style:{"--thread-max-width":"54rem"},children:[null,(0,d.jsx)("header",{className:"shrink-0 border-b border-border/50 bg-background/95 backdrop-blur-xl shadow-sm",children:(0,d.jsxs)("div",{className:"grid grid-cols-3 items-center px-4 py-3",children:[(0,d.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",onClick:()=>D(!C),className:(0,h.cn)("h-8 w-8 p-0 transition-colors",C&&"bg-muted"),children:(0,d.jsx)(cT,{className:"h-4 w-4"})})}),(0,d.jsx)(ad,{children:"Chat History (⌘H)"})]}),!C&&(0,d.jsx)(cM,{onClick:aF}),(0,d.jsxs)("a",{href:"https://dexto.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-3 hover:opacity-80 transition-opacity",children:[(0,d.jsx)("img",{src:"/logos/dexto/dexto_logo_light.svg",alt:"Dexto",className:"h-12 w-auto dark:hidden"}),(0,d.jsx)("img",{src:"/logos/dexto/dexto_logo.svg",alt:"Dexto",className:"h-12 w-auto hidden dark:block"}),(0,d.jsx)("span",{className:"sr-only",children:"Dexto"})]}),k&&!o&&(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(b2.E,{variant:"secondary",className:"text-xs bg-muted/50 border-border/30 max-w-[120px] cursor-help",children:(0,d.jsx)("span",{className:"truncate",children:k.length>12?`${k.slice(0,12)}...`:k})})}),(0,d.jsx)(ad,{children:(0,d.jsx)("span",{className:"font-mono",children:k})})]})]}),(0,d.jsx)("div",{className:"flex justify-center",children:(0,d.jsx)(c4,{mode:"badge"})}),(0,d.jsxs)("div",{className:"flex items-center justify-end space-x-2",children:[(0,d.jsx)(c0,{}),(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",onClick:()=>J(!0),className:"h-8 w-8 p-0","aria-label":"Open settings",children:(0,d.jsx)(cQ,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ad,{children:"Settings"})]}),(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsxs)(ae.$,{variant:"ghost",size:"sm",onClick:()=>B(!A),className:(0,h.cn)("h-8 px-2 text-sm transition-colors",A&&"bg-muted"),children:[(0,d.jsx)(ar,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{className:"hidden sm:inline ml-1.5",children:"Tools"})]})}),(0,d.jsx)(ad,{children:"Toggle tools panel (⌘J)"})]}),(0,d.jsxs)(ab,{children:[(0,d.jsx)(ac,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",asChild:!0,className:"h-8 px-2 text-sm",children:(0,d.jsxs)(cZ(),{href:"/playground",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(b3,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{className:"hidden sm:inline ml-1.5",children:"Playground"})]})})}),(0,d.jsx)(ad,{children:"Open MCP playground (⌘L)"})]}),(0,d.jsxs)(bJ,{children:[(0,d.jsx)(bK,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:(0,d.jsx)(cU,{className:"h-3.5 w-3.5"})})}),(0,d.jsxs)(bL,{align:"end",children:[(0,d.jsxs)(bM,{onClick:()=>z(!0),children:[(0,d.jsx)(cr,{className:"h-4 w-4 mr-2"}),"Browse MCP Registry"]}),(0,d.jsxs)(bM,{onClick:()=>H(!0),children:[(0,d.jsx)(cV,{className:"h-4 w-4 mr-2"}),"Export Config"]}),(0,d.jsxs)(bM,{onClick:()=>X(!0),children:[(0,d.jsx)(cW,{className:"h-4 w-4 mr-2"}),"Shortcuts"]}),k&&!o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(bN,{}),(0,d.jsxs)(bM,{onClick:()=>_(!0),className:"text-destructive focus:text-destructive",children:[(0,d.jsx)(cC.A,{className:"h-4 w-4 mr-2"}),"Delete Conversation"]})]})]})]})]})]})}),(0,d.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[S&&(0,d.jsxs)("div",{className:"fixed bottom-4 right-4 z-50 border border-border/60 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 text-foreground px-3 py-2 rounded-md shadow-md inline-flex items-center gap-2",children:[(0,d.jsx)(n.A,{className:"h-4 w-4 text-green-600"}),(0,d.jsx)("span",{className:"text-sm",children:S})]}),Y&&(0,d.jsx)("div",{className:"absolute top-4 right-4 z-50 bg-destructive text-destructive-foreground px-4 py-2 rounded-md shadow-lg",children:Y}),(0,d.jsx)("div",{className:"flex-1 flex flex-col min-h-0",children:o||0===c.length?(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 -mt-20",children:(0,d.jsxs)("div",{className:"w-full max-w-[var(--thread-max-width)] mx-auto space-y-6",children:[(0,d.jsxs)("div",{className:"text-center space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,d.jsx)("img",{src:"/logos/dexto/dexto_logo_icon.svg",alt:"Dexto",className:"h-12 w-auto"}),(0,d.jsx)("h2",{className:"text-2xl font-bold font-mono tracking-tight bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:v??"Welcome to Dexto"})]}),(0,d.jsx)("p",{className:"text-base text-muted-foreground max-w-xl mx-auto leading-relaxed",children:"Your AI assistant with powerful tools. Ask anything or connect new capabilities."})]}),(0,d.jsx)("div",{className:"flex flex-wrap justify-center gap-2 max-w-[var(--thread-max-width)] mx-auto",children:aH.map((a,b)=>(0,d.jsx)("button",{onClick:a.action,className:"group px-3 py-2 text-left rounded-full bg-primary/5 hover:bg-primary/10 transition-all duration-200 hover:shadow-sm hover:scale-105",children:(0,d.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,d.jsx)("span",{className:"text-sm",children:a.icon}),(0,d.jsx)("span",{className:"font-medium text-sm text-primary group-hover:text-primary/80 transition-colors",children:a.title})]})},b))}),(0,d.jsx)("div",{className:"max-w-[var(--thread-max-width)] mx-auto",children:(0,d.jsx)(ci,{onSend:aB,isSending:U,variant:"welcome"})}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground space-y-1 text-center",children:(0,d.jsxs)("p",{children:["\uD83D\uDCA1 Try",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘K"})," for new chat,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘J"})," for tools,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘L"})," for playground,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:a?"⌘⌫":"Ctrl+⌫"})," to delete session,",(0,d.jsx)("kbd",{className:"px-1 py-0.5 bg-muted rounded text-xs ml-1",children:"⌘/"})," for shortcuts"]})})]})}):(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden",children:(0,d.jsx)("div",{ref:ai,className:"h-full overflow-y-auto overscroll-contain relative",children:(0,d.jsxs)("div",{className:"min-h-full grid grid-rows-[1fr_auto]",children:[(0,d.jsx)("div",{className:"w-full max-w-[var(--thread-max-width)] mx-auto",children:(0,d.jsx)(aG,{messages:c,activeError:r,onDismissError:s,outerRef:aj})}),(0,d.jsxs)("div",{className:"sticky bottom-0 z-10 px-4 pt-2 pb-[calc(env(safe-area-inset-bottom)+16px)] bg-background relative",children:[aq&&(0,d.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 -top-3 z-20 pointer-events-none",children:(0,d.jsxs)("button",{onClick:()=>{as(!1),ax("smooth")},className:"pointer-events-auto px-3 py-1.5 rounded-full shadow-sm bg-background/95 border border-border/60 backdrop-blur supports-[backdrop-filter]:bg-background/80 text-sm text-muted-foreground hover:text-foreground transition-colors inline-flex items-center gap-1.5",children:[(0,d.jsx)("span",{children:"Scroll to bottom"}),(0,d.jsx)(l.A,{className:"h-3.5 w-3.5"})]})}),(0,d.jsx)("div",{className:"w-full max-w-[var(--thread-max-width)] mx-auto pointer-events-auto",children:(0,d.jsx)(ci,{onSend:aB,isSending:U,variant:"chat"})})]})]})})})}),(0,d.jsx)("div",{className:(0,h.cn)("shrink-0 transition-all duration-300 ease-in-out border-l border-border/50 bg-card/50 backdrop-blur-sm",A?"w-80":"w-0 overflow-hidden"),children:A&&(0,d.jsx)(cG,{isOpen:A,onClose:()=>B(!1),onOpenConnectModal:()=>x(!0),onOpenConnectWithPrefill:a=>{aw(a),x(!0)},variant:"inline",refreshTrigger:at})})]}),(0,d.jsx)(cj.A,{isOpen:w,onClose:()=>{x(!1),aw(null)},onServerConnected:async()=>{if(av?.registryEntryId)try{await cm.setInstalled(av.registryEntryId,!0)}catch(a){console.warn("Failed to mark registry entry installed:",a)}au(a=>a+1);let a=av?.name||"Server";T(`Added ${a}`),setTimeout(()=>T(null),4e3)},initialName:av?.name,initialConfig:av?.config,lockName:av?.lockName}),(0,d.jsx)(cy,{isOpen:y,onClose:()=>z(!1),onInstallServer:aD}),(0,d.jsx)(bU.lG,{open:G,onOpenChange:H,children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-2xl",children:[(0,d.jsxs)(bU.c7,{children:[(0,d.jsxs)(bU.L3,{className:"flex items-center space-x-2",children:[(0,d.jsx)(cV,{className:"h-5 w-5"}),(0,d.jsx)("span",{children:"Export Configuration"})]}),(0,d.jsxs)(bU.rr,{children:["Download your tool configuration for Claude Desktop or other MCP clients",k&&(0,d.jsxs)("span",{className:"block mt-1 text-sm text-muted-foreground",children:["Including session-specific settings for: ",(0,d.jsx)("span",{className:"font-mono",children:k})]})]})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(bV.J,{htmlFor:"filename",children:"File name"}),(0,d.jsx)(bY.p,{id:"filename",value:K,onChange:a=>L(a.target.value),placeholder:"dexto-config",className:"font-mono"})]}),M&&(0,d.jsxs)(bW.Fc,{variant:"destructive",children:[(0,d.jsx)(j.A,{className:"h-4 w-4"}),(0,d.jsx)(bW.XL,{children:"Export Error"}),(0,d.jsx)(bW.TN,{children:M})]}),O&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(bV.J,{children:"Configuration Preview"}),(0,d.jsx)(cX.T,{value:O,readOnly:!0,className:"h-32 font-mono text-xs bg-muted/30"})]})]}),(0,d.jsxs)(bU.Es,{children:[(0,d.jsx)(ae.$,{variant:"outline",onClick:aA,className:"flex items-center space-x-2",children:(0,d.jsx)("span",{children:Q?"Copied!":"Copy"})}),(0,d.jsxs)(ae.$,{onClick:az,className:"flex items-center space-x-2",children:[(0,d.jsx)(cV,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Download"})]})]})]})}),(0,d.jsx)(c2,{isOpen:I,onClose:()=>J(!1)}),(0,d.jsx)(bU.lG,{open:$,onOpenChange:_,children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(bU.c7,{children:[(0,d.jsxs)(bU.L3,{className:"flex items-center space-x-2",children:[(0,d.jsx)(cC.A,{className:"h-5 w-5 text-destructive"}),(0,d.jsx)("span",{children:"Delete Conversation"})]}),(0,d.jsxs)(bU.rr,{children:["This will permanently delete this conversation and all its messages. This action cannot be undone.",k&&(0,d.jsxs)("span",{className:"block mt-2 font-medium",children:["Session: ",(0,d.jsx)("span",{className:"font-mono",children:k})]})]})]}),(0,d.jsxs)(bU.Es,{children:[(0,d.jsx)(ae.$,{variant:"outline",onClick:()=>_(!1),children:"Cancel"}),(0,d.jsxs)(ae.$,{variant:"destructive",onClick:aE,disabled:aa,className:"flex items-center space-x-2",children:[(0,d.jsx)(cC.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:aa?"Deleting...":"Delete Conversation"})]})]})]})}),(0,d.jsx)(bU.lG,{open:W,onOpenChange:X,children:(0,d.jsxs)(bU.Cf,{className:"sm:max-w-md",children:[(0,d.jsx)(bU.c7,{children:(0,d.jsxs)(bU.L3,{className:"flex items-center space-x-2",children:[(0,d.jsx)(cW,{className:"h-5 w-5"}),(0,d.jsx)("span",{children:"Keyboard Shortcuts"})]})}),(0,d.jsx)("div",{className:"space-y-3",children:[{key:"⌘H",desc:"Toggle chat history panel"},{key:"⌘K",desc:"Create new chat"},{key:"⌘J",desc:"Toggle tools panel"},{key:"⌘⇧S",desc:"Search conversations"},{key:"⌘L",desc:"Open MCP playground"},{key:"⌘⇧E",desc:"Export config"},{key:"⌘/",desc:"Show shortcuts"},{key:a?"⌘⌫":"Ctrl+⌫",desc:"Delete current session"},{key:"Esc",desc:"Close panels"}].map((a,b)=>(0,d.jsxs)("div",{className:"flex justify-between items-center py-1",children:[(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:a.desc}),(0,d.jsx)(b2.E,{variant:"outline",className:"font-mono text-xs",children:a.key})]},b))}),(0,d.jsx)(bU.Es,{children:(0,d.jsx)(bU.HM,{asChild:!0,children:(0,d.jsx)(ae.$,{variant:"outline",children:"Close"})})})]})})]}),(0,d.jsx)(cS,{isOpen:E,onClose:()=>F(!1),onNavigateToSession:(a,b)=>{m(a),F(!1)}}),(0,d.jsx)(cP,{websocket:q})]})}},38928:(a,b,c)=>{"use strict";a.exports=c(40198).vendored.contexts.HeadManagerContext},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43974:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return f}});let d=c(4039),e=()=>{};function f(a){var b;let{headManager:c,reduceComponentsToState:f}=a;function g(){if(c&&c.mountedInstances){let b=d.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(f(b,a))}}return null==c||null==(b=c.mountedInstances)||b.add(a.children),g(),e(()=>{var b;return null==c||null==(b=c.mountedInstances)||b.add(a.children),()=>{var b;null==c||null==(b=c.mountedInstances)||b.delete(a.children)}}),e(()=>(c&&(c._pendingUpdate=g),()=>{c&&(c._pendingUpdate=g)})),null}},49719:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{VALID_LOADERS:function(){return c},imageConfigDefault:function(){return d}});let c=["default","imgix","cloudinary","akamai","custom"],d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},50828:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"Image",{enumerable:!0,get:function(){return u}});let d=c(87033),e=c(32468),f=c(35270),g=e._(c(4039)),h=d._(c(16942)),i=d._(c(18075)),j=c(34628),k=c(49719),l=c(85362);c(70957);let m=c(85497),n=d._(c(8098)),o=c(58797),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function q(a,b,c,d,e,f,g){let h=null==a?void 0:a.src;a&&a["data-loaded-src"]!==h&&(a["data-loaded-src"]=h,("decode"in a?a.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(a.parentElement&&a.isConnected){if("empty"!==b&&e(!0),null==c?void 0:c.current){let b=new Event("load");Object.defineProperty(b,"target",{writable:!1,value:a});let d=!1,e=!1;c.current({...b,nativeEvent:b,currentTarget:a,target:a,isDefaultPrevented:()=>d,isPropagationStopped:()=>e,persist:()=>{},preventDefault:()=>{d=!0,b.preventDefault()},stopPropagation:()=>{e=!0,b.stopPropagation()}})}(null==d?void 0:d.current)&&d.current(a)}}))}function r(a){return g.use?{fetchPriority:a}:{fetchpriority:a}}globalThis.__NEXT_IMAGE_IMPORTED=!0;let s=(0,g.forwardRef)((a,b)=>{let{src:c,srcSet:d,sizes:e,height:h,width:i,decoding:j,className:k,style:l,fetchPriority:m,placeholder:n,loading:p,unoptimized:s,fill:t,onLoadRef:u,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:x,sizesInput:y,onLoad:z,onError:A,...B}=a,C=(0,g.useCallback)(a=>{a&&(A&&(a.src=a.src),a.complete&&q(a,n,u,v,w,s,y))},[c,n,u,v,w,A,s,y]),D=(0,o.useMergedRef)(b,C);return(0,f.jsx)("img",{...B,...r(m),loading:p,width:i,height:h,decoding:j,"data-nimg":t?"fill":"1",className:k,style:l,sizes:e,srcSet:d,src:c,ref:D,onLoad:a=>{q(a.currentTarget,n,u,v,w,s,y)},onError:a=>{x(!0),"empty"!==n&&w(!0),A&&A(a)}})});function t(a){let{isAppRouter:b,imgAttributes:c}=a,d={as:"image",imageSrcSet:c.srcSet,imageSizes:c.sizes,crossOrigin:c.crossOrigin,referrerPolicy:c.referrerPolicy,...r(c.fetchPriority)};return b&&h.default.preload?(h.default.preload(c.src,d),null):(0,f.jsx)(i.default,{children:(0,f.jsx)("link",{rel:"preload",href:c.srcSet?void 0:c.src,...d},"__nimg-"+c.src+c.srcSet+c.sizes)})}let u=(0,g.forwardRef)((a,b)=>{let c=(0,g.useContext)(m.RouterContext),d=(0,g.useContext)(l.ImageConfigContext),e=(0,g.useMemo)(()=>{var a;let b=p||d||k.imageConfigDefault,c=[...b.deviceSizes,...b.imageSizes].sort((a,b)=>a-b),e=b.deviceSizes.sort((a,b)=>a-b),f=null==(a=b.qualities)?void 0:a.sort((a,b)=>a-b);return{...b,allSizes:c,deviceSizes:e,qualities:f}},[d]),{onLoad:h,onLoadingComplete:i}=a,o=(0,g.useRef)(h);(0,g.useEffect)(()=>{o.current=h},[h]);let q=(0,g.useRef)(i);(0,g.useEffect)(()=>{q.current=i},[i]);let[r,u]=(0,g.useState)(!1),[v,w]=(0,g.useState)(!1),{props:x,meta:y}=(0,j.getImgProps)(a,{defaultLoader:n.default,imgConf:e,blurComplete:r,showAltText:v});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s,{...x,unoptimized:y.unoptimized,placeholder:y.placeholder,fill:y.fill,onLoadRef:o,onLoadingCompleteRef:q,setBlurComplete:u,setShowAltText:w,sizesInput:a.sizes,ref:b}),y.priority?(0,f.jsx)(t,{isAppRouter:!c,imgAttributes:x}):null]})});("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},62518:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return i},getImageProps:function(){return h}});let d=c(87033),e=c(34628),f=c(50828),g=d._(c(8098));function h(a){let{props:b}=(0,e.getImgProps)(a,{defaultLoader:g.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[a,c]of Object.entries(b))void 0===c&&delete b[a];return{props:b}}let i=f.Image},62973:(a,b,c)=>{Promise.resolve().then(c.bind(c,38606))},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70253:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(95364).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/dexto/dexto/packages/webui/components/ChatApp.tsx\" from the server, but it's 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.")},"/home/runner/work/dexto/dexto/packages/webui/components/ChatApp.tsx","default")},73136:a=>{"use strict";a.exports=require("node:url")},76477:(a,b,c)=>{Promise.resolve().then(c.bind(c,70253))},76760:a=>{"use strict";a.exports=require("node:path")},84594:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(15592),e=c(823),f=c(45233),g=c(47710),h=c(28992),i=c(34706),j=c(68505),k=c(30554),l=c(20768),m=c(65802),n=c(64308),o=c(60195),p=c(73143),q=c(22908),r=c(261),s=c(29619),t=c(69936),u=c(26713),v=c(39802),w=c(60111),x=c(25699),y=c(50052),z=c(37732),A=c(96580),B=c(86439),C=c(97452),D=c.n(C),E=c(46912),F=c(50329),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,99226)),"/home/runner/work/dexto/dexto/packages/webui/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,90981)),"/home/runner/work/dexto/dexto/packages/webui/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,97452,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,70106,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,31547,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,8910,23)),"next/dist/client/components/builtin/unauthorized.js"]}],I=["/home/runner/work/dexto/dexto/packages/webui/app/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
11
11
|
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw aF||b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},85362:(a,b,c)=>{"use strict";a.exports=c(40198).vendored.contexts.ImageConfigContext},85497:(a,b,c)=>{"use strict";a.exports=c(40198).vendored.contexts.RouterContext},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92019:(a,b)=>{"use strict";function c(a){let{ampFirst:b=!1,hybrid:c=!1,hasQuery:d=!1}=void 0===a?{}:a;return b||c&&d}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isInAmpMode",{enumerable:!0,get:function(){return c}})},99226:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(21824),e=c(70253);function f(){return(0,d.jsx)(e.default,{})}}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[619,950,43,549],()=>b(b.s=84594));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"191":{"*":{"id":"63501","name":"*","chunks":[],"async":false}},"692":{"*":{"id":"28710","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"11096","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"53612","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"191":{"*":{"id":"63501","name":"*","chunks":[],"async":false}},"692":{"*":{"id":"28710","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"11096","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"53612","name":"*","chunks":[],"async":false}},"1861":{"*":{"id":"11865","name":"*","chunks":[],"async":false}},"5374":{"*":{"id":"88572","name":"*","chunks":[],"async":false}},"5672":{"*":{"id":"55368","name":"*","chunks":[],"async":false}},"6810":{"*":{"id":"38606","name":"*","chunks":[],"async":false}},"7200":{"*":{"id":"74476","name":"*","chunks":[],"async":false}},"8509":{"*":{"id":"18995","name":"*","chunks":[],"async":false}},"8647":{"*":{"id":"54401","name":"*","chunks":[],"async":false}},"9333":{"*":{"id":"47629","name":"*","chunks":[],"async":false}},"9854":{"*":{"id":"64516","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error.js":{"id":692,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":692,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/client-page.js":{"id":1861,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-page.js":{"id":1861,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/client-segment.js":{"id":8647,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8647,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":1420,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":1420,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/layout-router.js":{"id":5672,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5672,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":1440,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":1440,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/render-from-template-context.js":{"id":5374,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":5374,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/framework/boundary-components.js":{"id":9333,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":9333,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":7200,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":7200,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":6819,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":3145,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/app/globals.css":{"id":94,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/components/hooks/ChatContext.tsx":{"id":9854,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/components/ui/speech-reset.tsx":{"id":191,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/components/ChatApp.tsx":{"id":6810,"name":"*","chunks":["544","static/chunks/544-c4a8f278ed1a25d7.js","179","static/chunks/179-78abc2eacbc41da9.js","442","static/chunks/442-b1916bec348454b3.js","854","static/chunks/854-2a6d5a5297a15d52.js","974","static/chunks/app/page-1a1b5591a5f62ca5.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/app/playground/page.tsx":{"id":8509,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/dexto/dexto/packages/webui/":[],"/home/runner/work/dexto/dexto/packages/webui/app/layout":[{"inlined":false,"path":"static/css/045cc65741e38fbd.css"}],"/home/runner/work/dexto/dexto/packages/webui/app/page":[]},"rscModuleMapping":{"94":{"*":{"id":"21842","name":"*","chunks":[],"async":false}},"191":{"*":{"id":"27359","name":"*","chunks":[],"async":false}},"692":{"*":{"id":"97452","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"61742","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"43598","name":"*","chunks":[],"async":false}},"1861":{"*":{"id":"41143","name":"*","chunks":[],"async":false}},"5374":{"*":{"id":"30670","name":"*","chunks":[],"async":false}},"5672":{"*":{"id":"202","name":"*","chunks":[],"async":false}},"6810":{"*":{"id":"70253","name":"*","chunks":[],"async":false}},"7200":{"*":{"id":"10190","name":"*","chunks":[],"async":false}},"8509":{"*":{"id":"96972","name":"*","chunks":[],"async":false}},"8647":{"*":{"id":"96731","name":"*","chunks":[],"async":false}},"9333":{"*":{"id":"68299","name":"*","chunks":[],"async":false}},"9854":{"*":{"id":"34820","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"692":{"*":{"id":"28710","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"11096","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"53612","name":"*","chunks":[],"async":false}},"1861":{"*":{"id":"11865","name":"*","chunks":[],"async":false}},"5374":{"*":{"id":"88572","name":"*","chunks":[],"async":false}},"5672":{"*":{"id":"55368","name":"*","chunks":[],"async":false}},"7200":{"*":{"id":"74476","name":"*","chunks":[],"async":false}},"8647":{"*":{"id":"54401","name":"*","chunks":[],"async":false}},"9333":{"*":{"id":"47629","name":"*","chunks":[],"async":false}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/playground/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"191":{"*":{"id":"63501","name":"*","chunks":[],"async":false}},"692":{"*":{"id":"28710","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"11096","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"53612","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/playground/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"191":{"*":{"id":"63501","name":"*","chunks":[],"async":false}},"692":{"*":{"id":"28710","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"11096","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"53612","name":"*","chunks":[],"async":false}},"1861":{"*":{"id":"11865","name":"*","chunks":[],"async":false}},"5374":{"*":{"id":"88572","name":"*","chunks":[],"async":false}},"5672":{"*":{"id":"55368","name":"*","chunks":[],"async":false}},"6810":{"*":{"id":"38606","name":"*","chunks":[],"async":false}},"7200":{"*":{"id":"74476","name":"*","chunks":[],"async":false}},"8509":{"*":{"id":"18995","name":"*","chunks":[],"async":false}},"8647":{"*":{"id":"54401","name":"*","chunks":[],"async":false}},"9333":{"*":{"id":"47629","name":"*","chunks":[],"async":false}},"9854":{"*":{"id":"64516","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/builtin/global-error.js":{"id":692,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":692,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/client-page.js":{"id":1861,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-page.js":{"id":1861,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/client-segment.js":{"id":8647,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8647,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":1420,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":1420,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/layout-router.js":{"id":5672,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5672,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":1440,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":1440,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/client/components/render-from-template-context.js":{"id":5374,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":5374,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/framework/boundary-components.js":{"id":9333,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":9333,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":7200,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":7200,"name":"*","chunks":[],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":6819,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/node_modules/.pnpm/next@15.5.2_@opentelemetry+api@1.9.0_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":3145,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/app/globals.css":{"id":94,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/components/hooks/ChatContext.tsx":{"id":9854,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/components/ui/speech-reset.tsx":{"id":191,"name":"*","chunks":["854","static/chunks/854-2a6d5a5297a15d52.js","177","static/chunks/app/layout-dde711766eda096b.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/components/ChatApp.tsx":{"id":6810,"name":"*","chunks":["544","static/chunks/544-c4a8f278ed1a25d7.js","179","static/chunks/179-78abc2eacbc41da9.js","442","static/chunks/442-b1916bec348454b3.js","854","static/chunks/854-2a6d5a5297a15d52.js","974","static/chunks/app/page-1a1b5591a5f62ca5.js"],"async":false},"/home/runner/work/dexto/dexto/packages/webui/app/playground/page.tsx":{"id":8509,"name":"*","chunks":["544","static/chunks/544-c4a8f278ed1a25d7.js","442","static/chunks/442-b1916bec348454b3.js","882","static/chunks/app/playground/page-9ae40e0b219583e3.js"],"async":false}},"entryCSSFiles":{"/home/runner/work/dexto/dexto/packages/webui/":[],"/home/runner/work/dexto/dexto/packages/webui/app/layout":[{"inlined":false,"path":"static/css/045cc65741e38fbd.css"}],"/home/runner/work/dexto/dexto/packages/webui/app/page":[],"/home/runner/work/dexto/dexto/packages/webui/app/playground/page":[]},"rscModuleMapping":{"94":{"*":{"id":"21842","name":"*","chunks":[],"async":false}},"191":{"*":{"id":"27359","name":"*","chunks":[],"async":false}},"692":{"*":{"id":"97452","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"61742","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"43598","name":"*","chunks":[],"async":false}},"1861":{"*":{"id":"41143","name":"*","chunks":[],"async":false}},"5374":{"*":{"id":"30670","name":"*","chunks":[],"async":false}},"5672":{"*":{"id":"202","name":"*","chunks":[],"async":false}},"6810":{"*":{"id":"70253","name":"*","chunks":[],"async":false}},"7200":{"*":{"id":"10190","name":"*","chunks":[],"async":false}},"8509":{"*":{"id":"96972","name":"*","chunks":[],"async":false}},"8647":{"*":{"id":"96731","name":"*","chunks":[],"async":false}},"9333":{"*":{"id":"68299","name":"*","chunks":[],"async":false}},"9854":{"*":{"id":"34820","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"692":{"*":{"id":"28710","name":"*","chunks":[],"async":false}},"1420":{"*":{"id":"11096","name":"*","chunks":[],"async":false}},"1440":{"*":{"id":"53612","name":"*","chunks":[],"async":false}},"1861":{"*":{"id":"11865","name":"*","chunks":[],"async":false}},"5374":{"*":{"id":"88572","name":"*","chunks":[],"async":false}},"5672":{"*":{"id":"55368","name":"*","chunks":[],"async":false}},"7200":{"*":{"id":"74476","name":"*","chunks":[],"async":false}},"8647":{"*":{"id":"54401","name":"*","chunks":[],"async":false}},"9333":{"*":{"id":"47629","name":"*","chunks":[],"async":false}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-7c234e7e7e272295.js" defer=""></script><script src="/_next/static/chunks/framework-6873d9e7016e0d56.js" defer=""></script><script src="/_next/static/chunks/main-b65ece3506a2355c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-46db88469de84370.js" defer=""></script><script src="/_next/static/chunks/pages/_error-162d61367b59fad2.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-7c234e7e7e272295.js" defer=""></script><script src="/_next/static/chunks/framework-6873d9e7016e0d56.js" defer=""></script><script src="/_next/static/chunks/main-b65ece3506a2355c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-46db88469de84370.js" defer=""></script><script src="/_next/static/chunks/pages/_error-162d61367b59fad2.js" defer=""></script><script src="/_next/static/_5RTE-15cb-kjZPtF45Oe/_buildManifest.js" defer=""></script><script src="/_next/static/_5RTE-15cb-kjZPtF45Oe/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"_5RTE-15cb-kjZPtF45Oe","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/dist/webui/.next/standalone/packages/webui/.next/server/server-reference-manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"lEUbdfbns2cZnspv+raq/LVtFJkE67tmtqSBTacO2EE="}
|