@tickernelz/paperclip-pro-ui 2026.1008.2 → 2026.1008.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/assets/{AgentAvatar-LdcA0Kt-.js → AgentAvatar-BmM_AHw4.js} +1 -1
  2. package/dist/assets/{AgentIdentity-C_eyLjQ0.js → AgentIdentity-yWgBWli2.js} +1 -1
  3. package/dist/assets/{Agents.production-C1J8CGIh.js → Agents.production-DC72vjFS.js} +2 -2
  4. package/dist/assets/{CompanyActivity.production-BLHO41Iw.js → CompanyActivity.production-Clf5BH9f.js} +1 -1
  5. package/dist/assets/{CompanyExport-d4uwtI5V.js → CompanyExport-DZXwSqbC.js} +4 -4
  6. package/dist/assets/{CompanySkills.production-CTKLwYep.js → CompanySkills.production-Ctn-8voB.js} +2 -2
  7. package/dist/assets/{Costs.production-PNgYQhv2.js → Costs.production-C3x7Atp8.js} +1 -1
  8. package/dist/assets/{EmptyState-DvnQ8Vit.js → EmptyState-CkTgLu0M.js} +1 -1
  9. package/dist/assets/MarkdownBody-DVrC75-l.js +16 -0
  10. package/dist/assets/{MarkdownEditor-ClN1nVEy.js → MarkdownEditor-DIHDyI6k.js} +12 -12
  11. package/dist/assets/{OrgChart.production-tL9NdazB.js → OrgChart.production-DbBXNgXD.js} +1 -1
  12. package/dist/assets/{PageSkeleton--WPsMWs7.js → PageSkeleton-BaA5fPnJ.js} +1 -1
  13. package/dist/assets/{RoutineDetail.production-klzQJ0KA.js → RoutineDetail.production-f4dz9CbP.js} +1 -1
  14. package/dist/assets/{RoutineRunVariablesDialog-CNaOLeGp.js → RoutineRunVariablesDialog-jpQtDrRe.js} +2 -2
  15. package/dist/assets/Routines.production-DQbPhKWQ.js +1 -0
  16. package/dist/assets/{SidebarContext-zDWx0ouh.js → SidebarContext-CkAM3N-1.js} +1 -1
  17. package/dist/assets/{StatusIcon-Cnveg2bW.js → StatusIcon-DMWo0jee.js} +1 -1
  18. package/dist/assets/agent-avatar-url-Cv0eH_gk.js +92 -0
  19. package/dist/assets/{agents-CIOHm3wj.js → agents-BCsEXmmg.js} +1 -1
  20. package/dist/assets/{badge-BpUPkRht.js → badge-CBYpD1kE.js} +1 -1
  21. package/dist/assets/{bot-DapuHhVO.js → bot-B7BKrriZ.js} +1 -1
  22. package/dist/assets/{boxes-q3QCYOt1.js → boxes-DN6zNhxD.js} +2 -2
  23. package/dist/assets/{button-C5dzXWIT.js → button-Bs_hqIdB.js} +1 -1
  24. package/dist/assets/{card-B5iZlukc.js → card-q2lFI4Jb.js} +1 -1
  25. package/dist/assets/{check-B_0Gl2dh.js → check-Wdx0oVFt.js} +1 -1
  26. package/dist/assets/{checkbox-BcDrqU_I.js → checkbox-BXdCzpwP.js} +1 -1
  27. package/dist/assets/{chevron-down-DIcWyXqY.js → chevron-down-_ZjvalUC.js} +1 -1
  28. package/dist/assets/{chevron-right-Dd72ud3l.js → chevron-right-H1hxuQcL.js} +1 -1
  29. package/dist/assets/{clipboard-Do1KlLN9.js → clipboard-AVa8mWpe.js} +1 -1
  30. package/dist/assets/{company-members-DXzEEOEQ.js → company-members-D5TY0Q5y.js} +1 -1
  31. package/dist/assets/{definition-CPdpbTXK.js → definition-DWnXCBun.js} +1 -1
  32. package/dist/assets/{dist-S9Z0NFy_.js → dist-CMaDTo1K.js} +1 -1
  33. package/dist/assets/{dist-BZW0zxru.js → dist-DCMmOKhY.js} +1 -1
  34. package/dist/assets/environments-C34o7Amp.js +1 -0
  35. package/dist/assets/{external-link-BSBM6ZaF.js → external-link-C0kSD4FX.js} +1 -1
  36. package/dist/assets/{file-text-v598kkBS.js → file-text-D75dT7T5.js} +1 -1
  37. package/dist/assets/health-DOk361OT.js +1 -0
  38. package/dist/assets/{heartbeats-B-jRpcvO.js → heartbeats-DC1Jg5wJ.js} +1 -1
  39. package/dist/assets/{index-DZZg7geM.js → index-O_9yKOHh.js} +164 -164
  40. package/dist/assets/{input-Bcy-is4f.js → input-DWX5pycC.js} +1 -1
  41. package/dist/assets/{label-BGvu-I61.js → label-FDocpxbC.js} +2 -2
  42. package/dist/assets/{loader-circle-Csk_10Yd.js → loader-circle-Ccn7cIQz.js} +1 -1
  43. package/dist/assets/{mention-chips-BkfszlcZ.js → mention-chips-BfQmC5ut.js} +1 -1
  44. package/dist/assets/{octagon-alert-DB0Zr9rg.js → octagon-alert-CvqN8YxN.js} +1 -1
  45. package/dist/assets/{rotate-ccw-DM4qegmo.js → rotate-ccw-BFBwEreq.js} +1 -1
  46. package/dist/assets/router-C-8KEGbX.js +15 -0
  47. package/dist/assets/{save-B4oiQHuF.js → save-CuFXd8QN.js} +1 -1
  48. package/dist/assets/{select-rrqTEwP3.js → select-Bk63MRJ7.js} +1 -1
  49. package/dist/assets/{sheet-DwJ-O9LQ.js → sheet-BAKlmZaz.js} +1 -1
  50. package/dist/assets/{skeleton-CWmR5t-b.js → skeleton-CT2up2kA.js} +1 -1
  51. package/dist/assets/{tabs-C2l6LiUM.js → tabs-DpWk-7C2.js} +1 -1
  52. package/dist/assets/{triangle-alert-CxAixgKD.js → triangle-alert-Bu0jhxoE.js} +1 -1
  53. package/dist/assets/{use-adapter-capabilities-Ck-dIrco.js → use-adapter-capabilities-JfIn6NXs.js} +1 -1
  54. package/dist/assets/{useHiddenSettings-D0xT4dNB.js → useHiddenSettings-e3P22afn.js} +1 -1
  55. package/dist/index.html +45 -45
  56. package/dist/sw.js +1 -1
  57. package/package.json +1 -1
  58. package/dist/assets/MarkdownBody-CxwfJtA5.js +0 -16
  59. package/dist/assets/Routines.production-CyvZs8jt.js +0 -1
  60. package/dist/assets/agent-avatar-url-CTQ8BnM1.js +0 -92
  61. package/dist/assets/environments-DvXCyO9f.js +0 -1
  62. package/dist/assets/health-CP80yTg8.js +0 -1
  63. package/dist/assets/router-pQhrt28V.js +0 -15
@@ -0,0 +1,15 @@
1
+ var cr=Object.defineProperty;var a=(e,t)=>cr(e,"name",{value:t,configurable:!0});import{i as Pt}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as dr,Hr as h,Li as fr,Pi as mr,Pr as hr,S as ze,Vr as pr,W as gr,Wr as yr,Z as ue,ni as vr,t as R}from"./agent-avatar-url-Cv0eH_gk.js";import{t as wr}from"./preload-helper-CceJXRIF.js";import{t as kr}from"./boxes-DN6zNhxD.js";import{a as Ir,c as xr,d as Sr,g as Rr,i as br,l as Er,n as Cr,o as $r,p as _r,r as Ar,s as Pr,u as Lr}from"./agents-BCsEXmmg.js";import{i as Dr}from"./EmptyState-CkTgLu0M.js";var l=Pt(fr(),1),He=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Lt=/^[\\/]{2}/;function Mr(e,t){return t+e.replace(/\\/g,"/")}a(Mr,"normalizeProtocolRelativeUrl");var at="popstate";function ot(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}a(ot,"isLocation");function Tr(e={}){function t(r,o){let i=o.state?.masked,{pathname:s,search:u,hash:c}=i||r.location;return Me("",{pathname:s,search:u,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}a(t,"createBrowserLocation");function n(r,o){return typeof o=="string"?o:V(o)}return a(n,"createBrowserHref"),Ur(t,n,null,e)}a(Tr,"createBrowserHistory");function C(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(C,"invariant");function D(e,t){if(!e)try{throw new Error(t)}catch{}}a(D,"warning");function Or(){return Math.random().toString(36).substring(2,10)}a(Or,"createKey");function it(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}a(it,"getHistoryState");function Me(e,t,n=null,r,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?X(t):t,state:n,key:t&&t.key||r||Or(),mask:o}}a(Me,"createLocation");function V({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}a(V,"createPath");function X(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}a(X,"parsePath");function Ur(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,u="POP",c=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}a(m,"getIndex");function f(){u="POP";let p=m(),k=p==null?null:p-d;d=p,c&&c({action:u,location:y.location,delta:k})}a(f,"handlePop");function g(p,k){u="PUSH";let I=ot(p)?p:Me(y.location,p,k);n&&n(I,p),d=m()+1;let x=it(I,d),$=y.createHref(I.mask||I);try{s.pushState(x,"",$)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;o.location.assign($)}i&&c&&c({action:u,location:y.location,delta:1})}a(g,"push");function v(p,k){u="REPLACE";let I=ot(p)?p:Me(y.location,p,k);n&&n(I,p),d=m();let x=it(I,d),$=y.createHref(I.mask||I);s.replaceState(x,"",$),i&&c&&c({action:u,location:y.location,delta:0})}a(v,"replace2");function w(p){return Nr(o,p)}a(w,"createURL");let y={get action(){return u},get location(){return e(o,s)},listen(p){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(at,f),c=p,()=>{o.removeEventListener(at,f),c=null}},createHref(p){return t(o,p)},createURL:w,encodeLocation(p){let k=w(p);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:g,replace:v,go(p){return s.go(p)}};return y}a(Ur,"getUrlBasedHistory");function Nr(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),C(r,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:V(t);return o=o.replace(/ $/,"%20"),!n&&Lt.test(o)&&(o=r+o),new URL(o,r)}a(Nr,"createBrowserURLImpl");var jr;jr=new WeakMap;function Dt(e,t,n="/"){return Mt(e,t,n,!1)}a(Dt,"matchRoutes");function Mt(e,t,n,r,o){let i=z((typeof t=="string"?X(t):t).pathname||"/",n);if(i==null)return null;let s=o??Br(e),u=null,c=Zr(i);for(let d=0;u==null&&d<s.length;++d)u=Gr(s[d],c,r);return u}a(Mt,"matchRoutesImpl");function Fr(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}a(Fr,"convertRouteMatchToUiMatch");function Br(e){let t=Tt(e);return zr(t),t}a(Br,"flattenAndRankRoutes");function Tt(e,t=[],n=[],r="",o=!1){let i=a((s,u,c=o,d)=>{let m={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&c)return;C(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let f=N([r,m.relativePath]),g=n.concat(m);s.children&&s.children.length>0&&(C(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Tt(s.children,t,g,f,c)),!(s.path==null&&!s.index)&&t.push({path:f,score:Jr(f,s.index),routesMeta:g.map((v,w)=>{let[y,p]=Nt(v.relativePath,v.caseSensitive,w===g.length-1);return{...v,matcher:y,compiledParams:p}})})},"flattenRoute");return e.forEach((s,u)=>{if(s.path===""||!s.path?.includes("?"))i(s,u);else for(let c of Ot(s.path))i(s,u,!0,c)}),t}a(Tt,"flattenRoutes");function Ot(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Ot(r.join("/")),u=[];return u.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&u.push(...s),u.map(c=>e.startsWith("/")&&c===""?"/":c)}a(Ot,"explodeOptionalSegments");function zr(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yr(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}a(zr,"rankRouteBranches");var Hr=/^:[\w-]+$/,Wr=3,qr=2,Vr=1,Qr=10,Kr=-2,st=a(e=>e==="*","isSplat");function Jr(e,t){let n=e.split("/"),r=n.length;return n.some(st)&&(r+=Kr),t&&(r+=qr),n.filter(o=>!st(o)).reduce((o,i)=>o+(Hr.test(i)?Wr:i===""?Vr:Qr),r)}a(Jr,"computeScore");function Yr(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}a(Yr,"compareIndexes");function Gr(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let u=0;u<r.length;++u){let c=r[u],d=u===r.length-1,m=i==="/"?t:t.slice(i.length)||"/",f={path:c.relativePath,caseSensitive:c.caseSensitive,end:d},g=c.matcher&&c.compiledParams?Ut(f,m,c.matcher,c.compiledParams):ve(f,m),v=c.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=ve({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!g)return null;Object.assign(o,g.params),s.push({params:o,pathname:N([i,g.pathname]),pathnameBase:ta(N([i,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(i=N([i,g.pathnameBase]))}return s}a(Gr,"matchRouteBranch");function ve(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Nt(e.path,e.caseSensitive,e.end);return Ut(e,t,n,r)}a(ve,"matchPath");function Ut(e,t,n,r){let o=t.match(n);if(!o)return null;let i=o[0],s=G(i,1),u=o.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:m},f)=>{if(d==="*"){let v=u[f]||"";s=G(i.slice(0,i.length-v.length),1)}const g=u[f];return m&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}a(Ut,"matchPathImpl");function Nt(e,t=!1,n=!0){D(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u,c,d)=>{if(r.push({paramName:s,isOptional:u!=null}),u){let m=d.charAt(c+i.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}a(Nt,"compilePath");function Zr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return D(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}a(Zr,"decodePath");function z(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}a(z,"stripBasename");function Xr(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?X(e):e,i;return n?(n=jt(n),n.startsWith("/")||n.startsWith("\\")?i=lt(n.substring(1),"/"):i=lt(n,t)):i=t,{pathname:i,search:na(r),hash:ra(o)}}a(Xr,"resolvePath");function lt(e,t){let n=G(t).split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}a(lt,"resolvePathname");function Ae(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}a(Ae,"getInvalidPathError");function ea(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}a(ea,"getPathContributingMatches");function We(e){let t=ea(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}a(We,"getResolveToMatches");function xe(e,t,n,r=!1){let o;typeof e=="string"?o=X(e):(o={...e},C(!o.pathname||!o.pathname.includes("?"),Ae("?","pathname","search",o)),C(!o.pathname||!o.pathname.includes("#"),Ae("#","pathname","hash",o)),C(!o.search||!o.search.includes("#"),Ae("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,u;if(s==null)u=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),f-=1;o.pathname=g.join("/")}u=f>=0?t[f]:"/"}let c=Xr(o,u),d=s&&s!=="/"&&s.endsWith("/"),m=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||m)&&(c.pathname+="/"),c}a(xe,"resolveTo$1");var jt=a(e=>e.replace(/[\\/]{2,}/g,"/"),"removeDoubleSlashes"),N=a(e=>jt(e.join("/")),"joinPaths");function G(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}a(G,"removeTrailingSlash");var ta=a(e=>G(e).replace(/^\/*/,"/"),"normalizePathname"),na=a(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),ra=a(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash"),aa=class{static{a(this,"ErrorResponseImpl")}constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ft(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}a(Ft,"isRouteErrorResponse");function oa(e){return N(e.map(t=>t.route.path).filter(Boolean))||"/"}a(oa,"getRoutePattern");var Bt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zt(e,t){let n=e;if(typeof n!="string"||!He.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Bt)try{let i=new URL(window.location.href),s=Lt.test(n)?new URL(Mr(n,i.protocol)):new URL(n),u=z(s.pathname,t);s.origin===i.origin&&u!=null?n=u+s.search+s.hash:o=!0}catch{D(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}a(zt,"parseToInfo");var as=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),ut=new URL("http://localhost");function qe(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),ut)}catch{return ut}}a(qe,"getNavigatorCurrentUrl");function Pe(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}a(Pe,"isSameOrigin");function ia(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===""||e.slice(n.length).startsWith("//"):!1}a(ia,"isExplicitUrl");function Ve(e,t,n,r){let o=null;try{o=e==null?null:new URL(e,n)}catch{}let i=new URL(t,n),s=o!=null&&!Pe(o,n),u=!Pe(i,n);if(r==="reject"){if(s||u)throw new Error("External navigation is not allowed")}else if(u&&(o==null||!ia(e,o)||!Pe(o,i)))throw new Error("External navigation is not allowed")}a(Ve,"validateNavigationTarget");var Ht=["POST","PUT","PATCH","DELETE"],os=new Set(Ht),sa=["GET",...Ht],is=new Set(sa),la,ua,ca,da;la=new WeakMap;ua=new WeakMap;ca=new WeakMap;da=new WeakMap;var fa=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function ma(e){try{return fa.includes(new URL(e).protocol)}catch{return!1}}a(ma,"hasInvalidProtocol");var ee=l.createContext(null);ee.displayName="DataRouter";var ce=l.createContext(null);ce.displayName="DataRouterState";var Wt=l.createContext(!1);function qt(){return l.useContext(Wt)}a(qt,"useIsRSCRouterContext");var Vt=l.createContext({isTransitioning:!1});Vt.displayName="ViewTransition";var ha=l.createContext(new Map);ha.displayName="Fetchers";var Te=l.createContext(null);Te.displayName="Await";var P=l.createContext(null);P.displayName="Navigation";var te=l.createContext(null);te.displayName="Location";var O=l.createContext({outlet:null,matches:[],isDataRoute:!1});O.displayName="Route";var Qe=l.createContext(null);Qe.displayName="RouteError";var Qt="REACT_ROUTER_ERROR",pa="REDIRECT",ga="ROUTE_ERROR_RESPONSE";function ya(e){if(e.startsWith(`${Qt}:${pa}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}a(ya,"decodeRedirectErrorDigest");function va(e){if(e.startsWith(`${Qt}:${ga}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new aa(t.status,t.statusText,t.data)}catch{}}a(va,"decodeRouteErrorResponseDigest");function wa(e,{relative:t}={}){C(ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=l.useContext(P),{hash:o,pathname:i,search:s}=de(e,{relative:t}),u=i;return n!=="/"&&(u=i==="/"?n:N([n,i])),r.createHref({pathname:u,search:s,hash:o})}a(wa,"useHref");function ne(){return l.useContext(te)!=null}a(ne,"useInRouterContext");function M(){return C(ne(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(te).location}a(M,"useLocation");function ss(){return l.useContext(te).navigationType}a(ss,"useNavigationType");var Kt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jt(e){l.useContext(P).static||l.useLayoutEffect(e)}a(Jt,"useIsomorphicLayoutEffect");function Se(){let{isDataRoute:e}=l.useContext(O);return e?Ta():ka()}a(Se,"useNavigate$1");function ka(){C(ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(ee),{basename:t,navigator:n}=l.useContext(P),{matches:r}=l.useContext(O),{pathname:o}=M(),i=JSON.stringify(We(r)),s=l.useRef(!1);return Jt(()=>{s.current=!0}),l.useCallback((u,c={})=>{if(D(s.current,Kt),!s.current)return;if(typeof u=="number"){n.go(u);return}let d=xe(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:N([t,d.pathname])),Ve(typeof u=="string"?u:V(u),n.createHref(d),qe(n),"reject"),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,o,e])}a(ka,"useNavigateUnstable");var Ia=l.createContext(null);function xa(e){let t=l.useContext(O).outlet;return l.useMemo(()=>t&&l.createElement(Ia.Provider,{value:e},t),[t,e])}a(xa,"useOutlet");function Sa(){let{matches:e}=l.useContext(O);return e[e.length-1]?.params??{}}a(Sa,"useParams");function de(e,{relative:t}={}){let{matches:n}=l.useContext(O),{pathname:r}=M(),o=JSON.stringify(We(n));return l.useMemo(()=>xe(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}a(de,"useResolvedPath");function Ra(e,t){return Yt(e,t)}a(Ra,"useRoutes");function Yt(e,t,n){C(ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=l.useContext(P),{matches:o}=l.useContext(O),i=o[o.length-1],s=i?i.params:{},u=i?i.pathname:"/",c=i?i.pathnameBase:"/",d=i&&i.route;{let p=d&&d.path||"";Xt(u,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
+
3
+ Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=M(),f;if(t){let p=typeof t=="string"?X(t):t;C(c==="/"||p.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${p.pathname}" was given in the \`location\` prop.`),f=p}else f=m;let g=f.pathname||"/",v=g;if(c!=="/"){let p=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(p.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(p=>Object.assign(p,{route:n.manifest[p.route.id]||p.route})):Dt(e,{pathname:v});D(d||w!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),D(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=_a(w&&w.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:N([c,r.encodeLocation?r.encodeLocation(p.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:N([c,r.encodeLocation?r.encodeLocation(p.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),o,n);return t&&y?l.createElement(te.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},y):y}a(Yt,"useRoutesImpl");function ba(){let e=Ma(),t=Ft(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return s=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:i},"ErrorBoundary")," or"," ",l.createElement("code",{style:i},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,s)}a(ba,"DefaultErrorComponent");var Ea=l.createElement(ba,null),Gt=class extends l.Component{static{a(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=va(e.digest);n&&(e=n)}let t=e!==void 0?l.createElement(O.Provider,{value:this.props.routeContext},l.createElement(Qe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(Ca,{error:e},t):t}};Gt.contextType=Wt;var Le=new WeakMap;function Ca({children:e,error:t}){let{basename:n,navigator:r}=l.useContext(P);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=ya(t.digest);if(o){let i=Le.get(t);if(i)throw i;let s=zt(o.location,n),u=s.absoluteURL||s.to;if(Ve(o.location,u,qe(r),"allow-explicit"),ma(u))throw new Error("Invalid redirect location");if(Bt&&!Le.get(t))if(s.isExternal||o.reloadDocument)window.location.href=u;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:o.replace}));throw Le.set(t,c),c}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}a(Ca,"RSCErrorHandler");function $a({routeContext:e,match:t,children:n}){let r=l.useContext(ee);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(O.Provider,{value:e},n)}a($a,"RenderedRoute");function _a(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,i=r?.errors;if(i!=null){let m=o.findIndex(f=>f.route.id&&i?.[f.route.id]!==void 0);C(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let s=!1,u=-1;if(n&&r){s=r.renderFallback;for(let m=0;m<o.length;m++){let f=o[m];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=m),f.route.id){let{loaderData:g,errors:v}=r,w=f.route.loader&&!g.hasOwnProperty(f.route.id)&&(!v||v[f.route.id]===void 0);if(f.route.lazy||w){n.isStatic&&(s=!0),u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}}let c=n?.onError,d=r&&c?(m,f)=>{c(m,{location:r.location,params:r.matches?.[0]?.params??{},pattern:oa(r.matches),errorInfo:f})}:void 0;return o.reduceRight((m,f,g)=>{let v,w=!1,y=null,p=null;r&&(v=i&&f.route.id?i[f.route.id]:void 0,y=f.route.errorElement||Ea,s&&(u<0&&g===0?(Xt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,p=null):u===g&&(w=!0,p=f.route.hydrateFallbackElement||null)));let k=t.concat(o.slice(0,g+1)),I=a(()=>{let x;return v?x=y:w?x=p:f.route.Component?x=l.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=m,l.createElement($a,{match:f,routeContext:{outlet:m,matches:k,isDataRoute:r!=null},children:x})},"getChildren");return r&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?l.createElement(Gt,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:I(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:d}):I()},null)}a(_a,"_renderMatches");function Ke(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(Ke,"getDataRouterConsoleError");function Aa(e){let t=l.useContext(ee);return C(t,Ke(e)),t}a(Aa,"useDataRouterContext");function Je(e){let t=l.useContext(ce);return C(t,Ke(e)),t}a(Je,"useDataRouterState");function Pa(e){let t=l.useContext(O);return C(t,Ke(e)),t}a(Pa,"useRouteContext");function Ye(e){let t=Pa(e),n=t.matches[t.matches.length-1];return C(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}a(Ye,"useCurrentRouteId");function La(){return Ye("useRouteId")}a(La,"useRouteId");function Da(){let e=Je("useNavigation");return l.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}a(Da,"useNavigation");function Zt(){let{matches:e,loaderData:t}=Je("useMatches");return l.useMemo(()=>e.map(n=>Fr(n,t)),[e,t])}a(Zt,"useMatches");function Ma(){let e=l.useContext(Qe),t=Je("useRouteError"),n=Ye("useRouteError");return e!==void 0?e:t.errors?.[n]}a(Ma,"useRouteError");function Ta(){let{router:e}=Aa("useNavigate"),t=Ye("useNavigate"),n=l.useRef(!1);return Jt(()=>{n.current=!0}),l.useCallback(async(r,o={})=>{D(n.current,Kt),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}a(Ta,"useNavigateStable");var ct={};function Xt(e,t,n){!t&&!ct[e]&&(ct[e]=!0,D(!1,n))}a(Xt,"warningOnce");var dt={};function Oa(e,t){!e&&!dt[t]&&(dt[t]=!0)}a(Oa,"warnOnce");var ls=l.memo(Ua);function Ua({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:i}){return Yt(e,void 0,{manifest:t,state:r,isStatic:o,onError:i,future:n})}a(Ua,"DataRoutes2");function Na({to:e,replace:t,state:n,relative:r}){C(ne(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:i}=l.useContext(P);D(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=l.useContext(O),{pathname:u}=M(),c=Se(),d=xe(e,We(s),u,r==="path");Ve(typeof e=="string"?e:V(e),i.createHref(d),qe(i),"reject");let m=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(m),{replace:t,state:n,relative:r})},[c,m,r,t,n]),null}a(Na,"Navigate$1");function us(e){return xa(e.context)}a(us,"Outlet");function ja(e){C(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}a(ja,"Route");function en({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,useTransitions:s}){C(!ne(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=l.useMemo(()=>({basename:u,navigator:o,static:i,useTransitions:s,future:{}}),[u,o,i,s]);typeof n=="string"&&(n=X(n));let{pathname:d="/",search:m="",hash:f="",state:g=null,key:v="default",mask:w}=n,y=l.useMemo(()=>{let p=z(d,u);return p==null?null:{location:{pathname:p,search:m,hash:f,state:g,key:v,mask:w},navigationType:r}},[u,d,m,f,g,v,r,w]);return D(y!=null,`<Router basename="${u}"> is not able to match the URL "${d}${m}${f}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:l.createElement(P.Provider,{value:c},l.createElement(te.Provider,{children:t,value:y}))}a(en,"Router");function cs({children:e,location:t}){return Ra(Oe(e),t)}a(cs,"Routes");var ds=class extends l.Component{static{a(this,"AwaitErrorBoundary")}constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,o=0;if(!(n instanceof Promise))o=1,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:a(()=>!0,"get")}),Object.defineProperty(r,"_data",{get:a(()=>n,"get")});else if(this.state.error){o=2;let i=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:a(()=>!0,"get")}),Object.defineProperty(r,"_error",{get:a(()=>i,"get")})}else n._tracked?(r=n,o="_error"in r?2:"_data"in r?1:0):(o=0,Object.defineProperty(n,"_tracked",{get:a(()=>!0,"get")}),r=n.then(i=>Object.defineProperty(n,"_data",{get:a(()=>i,"get")}),i=>{this.props.onError?.(i),Object.defineProperty(n,"_error",{get:a(()=>i,"get")})}));if(o===2&&!t)throw r._error;if(o===2)return l.createElement(Te.Provider,{value:r,children:t});if(o===1)return l.createElement(Te.Provider,{value:r,children:e});throw r}};function Oe(e,t=[]){let n=[];return l.Children.forEach(e,(r,o)=>{if(!l.isValidElement(r))return;let i=[...t,o];if(r.type===l.Fragment){n.push.apply(n,Oe(r.props.children,i));return}C(r.type===ja,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),C(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Oe(r.props.children,i)),n.push(s)}),n}a(Oe,"createRoutesFromChildren");var ge="get",ye="application/x-www-form-urlencoded";function Re(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}a(Re,"isHtmlElement");function Fa(e){return Re(e)&&e.tagName.toLowerCase()==="button"}a(Fa,"isButtonElement");function Ba(e){return Re(e)&&e.tagName.toLowerCase()==="form"}a(Ba,"isFormElement");function za(e){return Re(e)&&e.tagName.toLowerCase()==="input"}a(za,"isInputElement");function Ha(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}a(Ha,"isModifiedEvent");function Wa(e,t){return e.button===0&&(!t||t==="_self")&&!Ha(e)}a(Wa,"shouldProcessLinkClick");function Ue(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}a(Ue,"createSearchParams");function qa(e,t){let n=Ue(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}a(qa,"getSearchParamsForLocation");var he=null;function Va(){if(he===null)try{new FormData(document.createElement("form"),0),he=!1}catch{he=!0}return he}a(Va,"isFormDataSubmitterSupported");var Qa=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function De(e){return e!=null&&!Qa.has(e)?(D(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ye}"`),null):e}a(De,"getFormEncType");function Ka(e,t){let n,r,o,i,s;if(Ba(e)){let u=e.getAttribute("action");r=u?z(u,t):null,n=e.getAttribute("method")||ge,o=De(e.getAttribute("enctype"))||ye,i=new FormData(e)}else if(Fa(e)||za(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(r=c?z(c,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||ge,o=De(e.getAttribute("formenctype"))||De(u.getAttribute("enctype"))||ye,i=new FormData(u,e),!Va()){let{name:d,type:m,value:f}=e;if(m==="image"){let g=d?`${d}.`:"";i.append(`${g}x`,"0"),i.append(`${g}y`,"0")}else d&&i.append(d,f)}}else{if(Re(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ge,r=null,o=ye,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}a(Ka,"getFormSubmissionInfo");var fs=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Ja={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ya=/[&><\u2028\u2029]/g;function ft(e){return e.replace(Ya,t=>Ja[t])}a(ft,"escapeHtml");function be(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(be,"invariant2");function tn(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&z(o.pathname,t)==="/"?o.pathname=`${G(t)}/_root.${r}`:o.pathname=`${G(o.pathname)}.${r}`,o}a(tn,"singleFetchUrl");async function Ga(e,t){if(e.id in t)return t[e.id];try{let n=await wr(()=>import(e.module),[]);return t[e.id]=n,n}catch{return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}a(Ga,"loadRouteModule");function Za(e){return e!=null&&typeof e.page=="string"}a(Za,"isPageLinkDescriptor");function Xa(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}a(Xa,"isHtmlLinkDescriptor");async function eo(e,t,n){return ro((await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let i=await Ga(o,n);return i.links?i.links():[]}return[]}))).flat(1).filter(Xa).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}a(eo,"getKeyedPrefetchLinks");function mt(e,t,n,r,o,i){let s=a((c,d)=>n[d]?c.route.id!==n[d].route.id:!0,"isNew"),u=a((c,d)=>n[d].pathname!==c.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==c.params["*"],"matchPathChanged");return i==="assets"?t.filter((c,d)=>s(c,d)||u(c,d)):i==="data"?t.filter((c,d)=>{let m=r.routes[c.route.id];if(!m||!m.hasLoader)return!1;if(s(c,d)||u(c,d))return!0;if(c.route.shouldRevalidate){let f=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}a(mt,"getNewMatchesForLinks");function nn(e,t,{includeHydrateFallback:n}={}){return to(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}a(nn,"getModuleLinkHrefs");function to(e){return[...new Set(e)]}a(to,"dedupeHrefs");function no(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}a(no,"sortKeys");function ro(e,t){let n=new Set,r=new Set(t);return e.reduce((o,i)=>{if(t&&!Za(i)&&i.as==="script"&&i.href&&r.has(i.href))return o;let s=JSON.stringify(no(i));return n.has(s)||(n.add(s),o.push({key:s,link:i})),o},[])}a(ro,"dedupeLinkDescriptors");function ao(e,t){return e.mode==="lazy"&&t===!0}a(ao,"isFogOfWarEnabled");function oo({sri:e,...t},n){let r=new Set(n.state.matches.map(u=>u.route.id)),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(u=>{let c=Mt(n.routes,u,n.basename||"/",!1,n.branches);c&&c.forEach(d=>r.add(d.route.id))});let s=[...r].reduce((u,c)=>Object.assign(u,{[c]:t.routes[c]}),{});return{...t,routes:s,sri:e?!0:void 0}}a(oo,"getPartialManifest");function Ee(){let e=l.useContext(ee);return be(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}a(Ee,"useDataRouterContext2");function rn(){let e=l.useContext(ce);return be(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}a(rn,"useDataRouterStateContext");var Ce=l.createContext(void 0);Ce.displayName="FrameworkContext";function Q(){let e=l.useContext(Ce);return be(e,"You must render this element inside a <HydratedRouter> element"),e}a(Q,"useFrameworkContext");function io(e,t){let n=l.useContext(Ce),[r,o]=l.useState(!1),[i,s]=l.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:d,onMouseLeave:m,onTouchStart:f}=t,g=l.useRef(null);l.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=a(k=>{k.forEach(I=>{s(I.isIntersecting)})},"callback"),p=new IntersectionObserver(y,{threshold:.5});return g.current&&p.observe(g.current),()=>{p.disconnect()}}},[e]),l.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let v=a(()=>{o(!0)},"setIntent"),w=a(()=>{o(!1),s(!1)},"cancelIntent");return n?e!=="intent"?[i,g,{}]:[i,g,{onFocus:oe(u,v),onBlur:oe(c,w),onMouseEnter:oe(d,v),onMouseLeave:oe(m,w),onTouchStart:oe(f,v)}]:[!1,g,{}]}a(io,"usePrefetchBehavior");function oe(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}a(oe,"composeEventHandlers");function so(e,t,n){if(n&&!we)return[e[0]];if(t){let r=e.findIndex(o=>t[o.route.id]!==void 0);return e.slice(0,r+1)}return e}a(so,"getActiveMatches");function lo({page:e,...t}){let n=qt(),{nonce:r}=Q(),{router:o}=Ee(),i=l.useMemo(()=>Dt(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?(t.nonce==null&&r&&(t={...t,nonce:r}),n?l.createElement(co,{page:e,matches:i,...t}):l.createElement(fo,{page:e,matches:i,...t})):null}a(lo,"PrefetchPageLinks");function uo(e){let{manifest:t,routeModules:n}=Q(),[r,o]=l.useState([]);return l.useEffect(()=>{let i=!1;return eo(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}a(uo,"useKeyedPrefetchLinks");function co({page:e,matches:t,...n}){let r=M(),{future:o}=Q(),{basename:i}=Ee(),s=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let u=tn(e,i,o.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,d=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?c=!0:d.push(m.route.id);return c&&d.length>0&&u.searchParams.set("_routes",d.join(",")),[u.pathname+u.search]},[i,o.v8_trailingSlashAwareDataRequests,e,r,t]);return l.createElement(l.Fragment,null,s.map(u=>l.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...n})))}a(co,"RSCPrefetchPageLinksImpl");function fo({page:e,matches:t,...n}){let r=M(),{future:o,manifest:i,routeModules:s}=Q(),{basename:u}=Ee(),{loaderData:c,matches:d}=rn(),m=l.useMemo(()=>mt(e,t,d,i,r,"data"),[e,t,d,i,r]),f=l.useMemo(()=>mt(e,t,d,i,r,"assets"),[e,t,d,i,r]),g=l.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,p=!1;if(t.forEach(I=>{let x=i.routes[I.route.id];!x||!x.hasLoader||(!m.some($=>$.route.id===I.route.id)&&I.route.id in c&&s[I.route.id]?.shouldRevalidate||x.hasClientLoader?p=!0:y.add(I.route.id))}),y.size===0)return[];let k=tn(e,u,o.v8_trailingSlashAwareDataRequests,"data");return p&&y.size>0&&k.searchParams.set("_routes",t.filter(I=>y.has(I.route.id)).map(I=>I.route.id).join(",")),[k.pathname+k.search]},[u,o.v8_trailingSlashAwareDataRequests,c,r,i,m,t,e,s]),v=l.useMemo(()=>nn(f,i),[f,i]),w=uo(f);return l.createElement(l.Fragment,null,g.map(y=>l.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),v.map(y=>l.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),w.map(({key:y,link:p})=>l.createElement("link",{key:y,nonce:n.nonce,...p,crossOrigin:p.crossOrigin??n.crossOrigin})))}a(fo,"PrefetchPageLinksImpl");var we=!1;function mo(){we=!0}a(mo,"setIsHydrated");function ho(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:i,ssr:s,nonce:u}=Q(),{router:c,static:d,staticContext:m}=Ee(),{matches:f}=rn(),g=qt(),v=ao(i,s);e.nonce==null&&u&&(e={...e,nonce:u}),o&&(o.didRenderScripts=!0);let w=so(f,null,r);l.useEffect(()=>{mo()},[]);let y=l.useMemo(()=>{if(g)return null;let I=m?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",x=d?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${v?"":`import ${JSON.stringify(t.url)}`};
4
+ ${w.map(($,b)=>{let _=`route${b}`,L=t.routes[$.route.id];be(L,`Route ${$.route.id} not found in manifest`);let{clientActionModule:U,clientLoaderModule:A,clientMiddlewareModule:j,hydrateFallbackModule:K,module:T}=L,H=[...U?[{module:U,varName:`${_}_clientAction`}]:[],...A?[{module:A,varName:`${_}_clientLoader`}]:[],...j?[{module:j,varName:`${_}_clientMiddleware`}]:[],...K?[{module:K,varName:`${_}_HydrateFallback`}]:[],{module:T,varName:`${_}_main`}];return H.length===1?`import * as ${_} from ${JSON.stringify(T)};`:[H.map(F=>`import * as ${F.varName} from "${F.module}";`).join(`
5
+ `),`const ${_} = {${H.map(F=>`...${F.varName}`).join(",")}};`].join(`
6
+ `)}).join(`
7
+ `)}
8
+ ${v?`window.__reactRouterManifest = ${JSON.stringify(oo(t,c),null,2)};`:""}
9
+ window.__reactRouterRouteModules = {${w.map(($,b)=>`${JSON.stringify($.route.id)}:route${b}`).join(",")}};
10
+
11
+ import(${JSON.stringify(t.entry.module)});`:" ";return l.createElement(l.Fragment,null,l.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:I},type:void 0}),l.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:x},type:"module",async:!0}))},[]),p=we||g?[]:[...new Set(t.entry.imports.concat(nn(w,t,{includeHydrateFallback:!0})))],k=typeof t.sri=="object"?t.sri:{};return Oa(!g,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),we||g?null:l.createElement(l.Fragment,null,typeof t.sri=="object"?l.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:k})}}):null,v?null:l.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:k[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),l.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:k[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),p.map(I=>l.createElement("link",{key:I,rel:"modulepreload",href:I,crossOrigin:e.crossOrigin,integrity:k[I],nonce:e.nonce,suppressHydrationWarning:!0})),y)}a(ho,"Scripts");function po(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}a(po,"mergeRefs");var ms=class extends l.Component{static{a(this,"RemixErrorBoundary")}constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?l.createElement(go,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function go({error:e,isOutsideRemixApp:t}){let{nonce:n}=Q(),r=l.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:`
12
+ console.log(
13
+ "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
14
+ );
15
+ `}});if(Ft(e))return l.createElement(ht,{title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);let o;if(e instanceof Error)o=e;else{let i=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);o=new Error(i)}return l.createElement(ht,{title:"Application Error!",isOutsideRemixApp:t},l.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),l.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),r)}a(go,"RemixRootDefaultErrorBoundary");function ht({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Q();return o.root?.Layout&&!n?r:l.createElement("html",{lang:"en"},l.createElement("head",null,l.createElement("meta",{charSet:"utf-8"}),l.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),l.createElement("title",null,e)),l.createElement("body",null,l.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?l.createElement(ho,null):null)))}a(ht,"BoundaryShell");var yo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yo&&(window.__reactRouterVersion="7.18.4")}catch{}function hs({basename:e,children:t,useTransitions:n,window:r}){let o=l.useRef();o.current==null&&(o.current=Tr({window:r,v5Compat:!0}));let i=o.current,[s,u]=l.useState({action:i.action,location:i.location}),c=l.useCallback(d=>{n===!1?u(d):l.startTransition(()=>u(d))},[n]);return l.useLayoutEffect(()=>i.listen(c),[i,c]),l.createElement(en,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}a(hs,"BrowserRouter");function vo({basename:e,children:t,history:n,useTransitions:r}){let[o,i]=l.useState({action:n.action,location:n.location}),s=l.useCallback(u=>{r===!1?i(u):l.startTransition(()=>i(u))},[r]);return l.useLayoutEffect(()=>n.listen(s),[n,s]),l.createElement(en,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:n,useTransitions:r})}a(vo,"HistoryRouter");vo.displayName="unstable_HistoryRouter";var fe=l.forwardRef(a(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,mask:u,state:c,target:d,to:m,preventScrollReset:f,viewTransition:g,defaultShouldRevalidate:v,...w},y){let{basename:p,navigator:k,useTransitions:I}=l.useContext(P),x=typeof m=="string"&&He.test(m),$=zt(m,p);m=$.to;let b=wa(m,{relative:o}),_=M(),L=null;if(u){let B=xe(u,[],_.mask?_.mask.pathname:"/",!0);p!=="/"&&(B.pathname=B.pathname==="/"?p:N([p,B.pathname])),L=k.createHref(B)}let[U,A,j]=io(r,w),K=xo(m,{replace:s,mask:u,state:c,target:d,preventScrollReset:f,relative:o,viewTransition:g,defaultShouldRevalidate:v,useTransitions:I});function T(B){t&&t(B),B.defaultPrevented||K(B)}a(T,"handleClick");let H=!($.isExternal||i),F=l.createElement("a",{...w,...j,href:(H?L:void 0)||$.absoluteURL||b,onClick:H?T:t,ref:po(y,A),target:d,"data-discover":!x&&n==="render"?"true":void 0});return U&&!x?l.createElement(l.Fragment,null,F,l.createElement(lo,{page:b})):F},"LinkWithRef"));fe.displayName="Link";var an=l.forwardRef(a(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:u,children:c,...d},m){let f=de(s,{relative:d.relative}),g=M(),v=l.useContext(ce),{navigator:w,basename:y}=l.useContext(P),p=v!=null&&_o(f)&&u===!0,k=w.encodeLocation?w.encodeLocation(f).pathname:f.pathname,I=g.pathname,x=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(I=I.toLowerCase(),x=x?x.toLowerCase():null,k=k.toLowerCase()),x&&y&&(x=z(x,y)||x);const $=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let b=I===k||!o&&I.startsWith(k)&&I.charAt($)==="/",_=x!=null&&(x===k||!o&&x.startsWith(k)&&x.charAt(k.length)==="/"),L={isActive:b,isPending:_,isTransitioning:p},U=b?t:void 0,A;typeof r=="function"?A=r(L):A=[r,b?"active":null,_?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let j=typeof i=="function"?i(L):i;return l.createElement(fe,{...d,"aria-current":U,className:A,ref:m,style:j,to:s,viewTransition:u},typeof c=="function"?c(L):c)},"NavLinkWithRef"));an.displayName="NavLink";var wo=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=ge,action:u,onSubmit:c,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g,...v},w)=>{let{useTransitions:y}=l.useContext(P),p=bo(),k=Eo(u,{relative:d}),I=s.toLowerCase()==="get"?"get":"post",x=typeof u=="string"&&He.test(u),$=a(b=>{if(c&&c(b),b.defaultPrevented)return;b.preventDefault();let _=b.nativeEvent.submitter,L=_?.getAttribute("formmethod")||s,U=a(()=>p(_||b.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:o,state:i,relative:d,preventScrollReset:m,viewTransition:f,defaultShouldRevalidate:g}),"doSubmit");y&&n!==!1?l.startTransition(()=>U()):U()},"submitHandler");return l.createElement("form",{ref:w,method:I,action:k,onSubmit:r?c:$,...v,"data-discover":!x&&e==="render"?"true":void 0})});wo.displayName="Form";function ko({getKey:e,storageKey:t,...n}){let r=l.useContext(Ce),{basename:o}=l.useContext(P),i=M(),s=Zt();Co({getKey:e,storageKey:t});let u=l.useMemo(()=>{if(!r||!e)return null;let d=je(i,s,o,e);return d!==i.key?d:null},[]);if(!r||r.isSpaMode)return null;let c=((d,m)=>{if(!window.history.state||!window.history.state.key){let f=Math.random().toString(32).slice(2);window.history.replaceState({key:f},"")}try{let f=JSON.parse(sessionStorage.getItem(d)||"{}")[m||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch{sessionStorage.removeItem(d)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),l.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${ft(JSON.stringify(t||Ne))}, ${ft(JSON.stringify(u))})`}})}a(ko,"ScrollRestoration");ko.displayName="ScrollRestoration";function on(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(on,"getDataRouterConsoleError2");function Ge(e){let t=l.useContext(ee);return C(t,on(e)),t}a(Ge,"useDataRouterContext3");function Io(e){let t=l.useContext(ce);return C(t,on(e)),t}a(Io,"useDataRouterState2");function xo(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:u,defaultShouldRevalidate:c,useTransitions:d}={}){let m=Se(),f=M(),g=de(e,{relative:s});return l.useCallback(v=>{if(Wa(v,t)){v.preventDefault();let w=n!==void 0?n:V(f)===V(g),y=a(()=>m(e,{replace:w,mask:r,state:o,preventScrollReset:i,relative:s,viewTransition:u,defaultShouldRevalidate:c}),"doNavigate");d?l.startTransition(()=>y()):y()}},[f,m,g,n,r,o,t,e,i,s,u,c,d])}a(xo,"useLinkClickHandler");function ps(e){D(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(Ue(e)),n=l.useRef(!1),r=M(),o=l.useMemo(()=>qa(r.search,n.current?null:t.current),[r.search]),i=Se();return[o,l.useCallback((s,u)=>{const c=Ue(typeof s=="function"?s(new URLSearchParams(o)):s);n.current=!0,i("?"+c,u)},[i,o])]}a(ps,"useSearchParams");var So=0,Ro=a(()=>`__${String(++So)}__`,"getUniqueFetcherId");function bo(){let{router:e}=Ge("useSubmit"),{basename:t}=l.useContext(P),n=La(),r=e.fetch,o=e.navigate;return l.useCallback(async(i,s={})=>{let{action:u,method:c,encType:d,formData:m,body:f}=Ka(i,t);if(s.navigate===!1){let g=s.fetcherKey||Ro();await r(g,n,s.action||u,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:m,body:f,formMethod:s.method||c,formEncType:s.encType||d,flushSync:s.flushSync})}else await o(s.action||u,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:m,body:f,formMethod:s.method||c,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,o,t,n])}a(bo,"useSubmit");function Eo(e,{relative:t}={}){let{basename:n}=l.useContext(P),r=l.useContext(O);C(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...de(e||".",{relative:t})},s=M();if(e==null){i.search=s.search;let u=new URLSearchParams(i.search),c=u.getAll("index");if(c.some(d=>d==="")){u.delete("index"),c.filter(m=>m).forEach(m=>u.append("index",m));let d=u.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:N([n,i.pathname])),V(i)}a(Eo,"useFormAction");var Ne="react-router-scroll-positions",pe={};function je(e,t,n,r){let o=null;return r&&(n!=="/"?o=r({...e,pathname:z(e.pathname,n)||e.pathname},t):o=r(e,t)),o==null&&(o=e.key),o}a(je,"getScrollRestorationKey");function Co({getKey:e,storageKey:t}={}){let{router:n}=Ge("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:o}=Io("useScrollRestoration"),{basename:i}=l.useContext(P),s=M(),u=Zt(),c=Da();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),$o(l.useCallback(()=>{if(c.state==="idle"){let d=je(s,u,i,e);pe[d]=window.scrollY}try{sessionStorage.setItem(t||Ne,JSON.stringify(pe))}catch(d){D(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${d}).`)}window.history.scrollRestoration="auto"},[c.state,e,i,s,u,t])),typeof document<"u"&&(l.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(t||Ne);d&&(pe=JSON.parse(d))}catch{}},[t]),l.useLayoutEffect(()=>{let d=n?.enableScrollRestoration(pe,()=>window.scrollY,e?(m,f)=>je(m,f,i,e):void 0);return()=>d&&d()},[n,i,e]),l.useLayoutEffect(()=>{if(r!==!1){if(typeof r=="number"){window.scrollTo(0,r);return}try{if(s.hash){let d=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(d){d.scrollIntoView();return}}}catch{D(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}o!==!0&&window.scrollTo(0,0)}},[s,r,o]))}a(Co,"useScrollRestoration");function gs(e,t){let{capture:n}=t||{};l.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("beforeunload",e,r),()=>{window.removeEventListener("beforeunload",e,r)}},[e,n])}a(gs,"useBeforeUnload");function $o(e,t){let{capture:n}=t||{};l.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}a($o,"usePageHide");function _o(e,{relative:t}={}){let n=l.useContext(Vt);C(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ge("useViewTransitionState"),o=de(e,{relative:t});if(!n.isTransitioning)return!1;let i=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ve(o.pathname,s)!=null||ve(o.pathname,i)!=null}a(_o,"useViewTransitionState");var pt=60,Fe=3600,ke=24*Fe,gt=7*ke,yt=30*ke;function Ao(e){const t=Date.now(),n=new Date(e).getTime(),r=Math.round((t-n)/1e3);return r<pt?"just now":r<Fe?`${Math.floor(r/pt)}m ago`:r<ke?`${Math.floor(r/Fe)}h ago`:r<gt?`${Math.floor(r/ke)}d ago`:r<yt?`${Math.floor(r/gt)}w ago`:`${Math.floor(r/yt)}mo ago`}a(Ao,"timeAgo");var Po=[{label:"My work",views:[{key:"mine",label:"Mine",surface:"inbox",inboxTab:"mine",hint:"Assigned to you or waiting on you"},{key:"unread",label:"Unread",surface:"inbox",inboxTab:"unread",hint:"Tasks you touched with new activity"},{key:"blocked",label:"Blocked",surface:"inbox",inboxTab:"blocked",hint:"Blocked tasks, grouped by blocker"},{key:"recent",label:"Recent",surface:"inbox",inboxTab:"recent",hint:"Everything you touched lately"},{key:"everything",label:"Everything",surface:"inbox",inboxTab:"all",hint:"Tasks, approvals, failed runs and join requests"}]},{label:"Organization",views:[{key:"all",label:"All tasks",surface:"issues",statuses:[],hint:"Every task in the organization"},{key:"active",label:"Active",surface:"issues",statuses:["todo","in_progress","in_review","blocked"],hint:"Open tasks, running or not"},{key:"backlog",label:"Backlog",surface:"issues",statuses:["backlog"],hint:"Not started yet"},{key:"done",label:"Done",surface:"issues",statuses:["done","cancelled"],hint:"Completed and cancelled"}]}],sn=new Map(Po.flatMap(e=>e.views.map(t=>[t.key,t]))),ln="mine",Lo="view",Do="paperclip:tasks:last-view";function Mo(e){return typeof e=="string"&&sn.has(e)}a(Mo,"isTaskViewKey");function un(e){return sn.get(e)}a(un,"taskView");function Ze(e){return Mo(e)?e:null}a(Ze,"normalizeTaskViewKey");var vt={mine:"mine",unread:"unread",blocked:"blocked",recent:"recent",all:"everything"};function ys(e){return e&&e in vt?vt[e]:ln}a(ys,"taskViewForInboxTab");function vs(){try{return Ze(window.localStorage.getItem("paperclip:tasks:last-view"))??"mine"}catch{return ln}}a(vs,"loadLastTaskView");function ws(e){try{window.localStorage.setItem(Do,e)}catch{}}a(ws,"saveLastTaskView");var ks=["assignee","workspace","participantAgentId","q"];function Is(e,t,n){const r=Ze(e);return t&&(!r||un(r).surface==="inbox")?"all":r??n}a(Is,"resolveInitialTaskView");var cn="from",dn="fromHref",fn="paperclip:issue-detail-breadcrumb:";function mn(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.label=="string"&&typeof t.href=="string"}a(mn,"isIssueDetailBreadcrumb");function hn(e){return e==="issues"||e==="inbox"}a(hn,"isIssueDetailSource");function pn(e){if(typeof e!="object"||e===null)return!1;const t=e,n=t.originKind===void 0||typeof t.originKind=="string",r=t.originId===void 0||t.originId===null||typeof t.originId=="string",o=t.blockerAttention===void 0||typeof t.blockerAttention=="object"&&t.blockerAttention!==null;return typeof t.id=="string"&&(t.identifier===null||typeof t.identifier=="string")&&typeof t.title=="string"&&typeof t.status=="string"&&o&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.projectName===null||typeof t.projectName=="string")&&n&&r}a(pn,"isIssueDetailHeaderSeed");function To(e){return{id:e.id,identifier:e.identifier??null,title:e.title,status:e.status,blockerAttention:e.blockerAttention,priority:e.priority,projectId:e.projectId??null,projectName:e.project?.name??null,originKind:e.originKind,originId:e.originId??null}}a(To,"createIssueDetailHeaderSeed");function gn(e,t){const n=To(t);return typeof e!="object"||e===null?{issueDetailHeaderSeed:n}:{...e,issueDetailHeaderSeed:n}}a(gn,"withIssueDetailHeaderSeed");function Oo(e){if(typeof e!="object"||e===null)return null;const t=e.issueDetailHeaderSeed;return pn(t)?t:null}a(Oo,"readIssueDetailHeaderSeed");function Uo(e){if(!e)return null;const t=new URLSearchParams(e).get(cn);return hn(t)?t:null}a(Uo,"readIssueDetailSourceFromSearch");function No(e){if(!e)return null;const t=new URLSearchParams(e).get(dn);return t&&t.startsWith("/")?t:null}a(No,"readIssueDetailBreadcrumbHrefFromSearch");function jo(e){const t=e.slice(e.indexOf("?")+1);if(!e.includes("?"))return!1;const n=new URLSearchParams(t).get(Lo),r=Ze(n);return r!==null&&un(r).surface==="inbox"}a(jo,"isInboxBackedTaskViewHref");function yn(e,t){return hn(e?.issueDetailSource)?e.issueDetailSource:t?t.href.includes("/inbox")||jo(t.href)||t.label==="Inbox"?"inbox":t.label==="Tasks"||t.href.includes("/issues")?"issues":null:null}a(yn,"inferIssueDetailSource");function wt(e){return e==="inbox"?{label:"Inbox",href:"/inbox"}:{label:"Tasks",href:"/issues"}}a(wt,"breadcrumbForSource");function xs(e,t,n){return{issueDetailBreadcrumb:{label:e,href:t},issueDetailSource:n}}a(xs,"createIssueDetailLocationState");function Ss(e){return typeof e!="object"||e===null?{issueDetailInboxQuickArchiveArmed:!0}:{...e,issueDetailInboxQuickArchiveArmed:!0}}a(Ss,"armIssueDetailInboxQuickArchive");function Fo(e){if(typeof window>"u"||!window.sessionStorage)return null;const t=window.sessionStorage.getItem(`${fn}${e}`);if(!t)return null;try{const n=JSON.parse(t),r=mn(n.issueDetailBreadcrumb)?n.issueDetailBreadcrumb:null,o=yn(n,r);if(!r||!o)return null;const i=pn(n.issueDetailHeaderSeed)?n.issueDetailHeaderSeed:void 0;return{issueDetailBreadcrumb:r,issueDetailSource:o,issueDetailInboxQuickArchiveArmed:n.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:i}}catch{return null}}a(Fo,"readStoredIssueDetailLocationState");function vn(e,t){if(typeof e=="object"&&e!==null){const o=e.issueDetailBreadcrumb;if(mn(o)){const i=yn(e,o);if(!i)return null;const s=Oo(e)??void 0;return{issueDetailBreadcrumb:o,issueDetailSource:i,issueDetailInboxQuickArchiveArmed:e.issueDetailInboxQuickArchiveArmed===!0,issueDetailHeaderSeed:s}}}const n=Uo(t),r=No(t);return n?{issueDetailBreadcrumb:r?{...wt(n),href:r}:wt(n),issueDetailSource:n,issueDetailInboxQuickArchiveArmed:!1}:null}a(vn,"normalizeIssueDetailLocationState");function Rs(e,t,n){if(typeof window>"u"||!window.sessionStorage)return;const r=vn(t,n);r&&window.sessionStorage.setItem(`${fn}${e}`,JSON.stringify(r))}a(Rs,"rememberIssueDetailLocationState");function Bo(e){return`/issues/${e}`}a(Bo,"createIssueDetailPath");function bs(e){if(!e)return!1;const t=new URLSearchParams(e);return t.has(cn)||t.has(dn)}a(bs,"hasLegacyIssueDetailQuery");function zo(e,t,n){const r=vn(t,n);return r||(e?Fo(e):null)}a(zo,"readIssueDetailLocationState");function Es(e,t,n){return zo(e,t,n)?.issueDetailBreadcrumb??null}a(Es,"readIssueDetailBreadcrumb");var kt=class extends Error{static{a(this,"CommentSubmissionUnknownError")}constructor(){super("We couldn’t confirm whether this comment was saved. Review the conversation before starting another draft."),this.name="CommentSubmissionUnknownError"}};function It(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e,n=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;return typeof t.id=="string"&&n.test(t.id)&&typeof t.issueId=="string"&&n.test(t.issueId)&&typeof t.body=="string"}a(It,"hasCommentReceipt");async function xt(e,t){try{const n=await e;if(!t(n))throw new kt;return n}catch(n){throw n instanceof pr&&n.status<500?n:new kt}}a(xt,"confirmedCommentResponse");function St(e){const t=new URLSearchParams;return e?.attention&&t.set("attention",e.attention),e?.status&&t.set("status",e.status),e?.priority&&t.set("priority",e.priority),e?.projectId&&t.set("projectId",e.projectId),e?.parentId&&t.set("parentId",e.parentId),e?.assigneeAgentId&&t.set("assigneeAgentId",e.assigneeAgentId),e?.participantAgentId&&t.set("participantAgentId",e.participantAgentId),e?.assigneeUserId&&t.set("assigneeUserId",e.assigneeUserId),e?.touchedByUserId&&t.set("touchedByUserId",e.touchedByUserId),e?.inboxArchivedByUserId&&t.set("inboxArchivedByUserId",e.inboxArchivedByUserId),e?.unreadForUserId&&t.set("unreadForUserId",e.unreadForUserId),e?.labelId&&t.set("labelId",e.labelId),e?.createdByAgentId&&t.set("createdByAgentId",e.createdByAgentId),e?.createdByUserId&&t.set("createdByUserId",e.createdByUserId),e?.updatedSince&&t.set("updatedSince",e.updatedSince),e?.workspaceId&&t.set("workspaceId",e.workspaceId),e?.executionWorkspaceId&&t.set("executionWorkspaceId",e.executionWorkspaceId),e?.originKind&&t.set("originKind",e.originKind),e?.originKindPrefix&&t.set("originKindPrefix",e.originKindPrefix),e?.originId&&t.set("originId",e.originId),e?.descendantOf&&t.set("descendantOf",e.descendantOf),e?.createdFromIssueId&&t.set("createdFromIssueId",e.createdFromIssueId),e?.includeRoutineExecutions&&t.set("includeRoutineExecutions","true"),e?.includeBlockedBy&&t.set("includeBlockedBy","true"),e?.includeBlockedInboxAttention&&t.set("includeBlockedInboxAttention","true"),e?.includeLiveDescendantSummary&&t.set("includeLiveDescendantSummary","true"),e?.hasPlanDocument!==void 0&&t.set("hasPlanDocument",e.hasPlanDocument?"true":"false"),e?.q&&t.set("q",e.q),e?.limit&&t.set("limit",String(e.limit)),e?.offset!==void 0&&t.set("offset",String(e.offset)),e?.sortField&&t.set("sortField",e.sortField),e?.sortDir&&t.set("sortDir",e.sortDir),e?.afterId&&t.set("afterId",e.afterId),t}a(St,"issueListSearchParams");var Y={listAll:a(async(e,t,n)=>{const o=new Map;let i;for(;;){const s=await Y.list(e,{...t,limit:500,sortField:"id",sortDir:"asc",afterId:i},n);for(const u of s)o.set(u.id,u);if(s.length<500)return[...o.values()];i=s[s.length-1].id}},"listAll"),list:a((e,t,n)=>{const r=St(t).toString(),o=`/companies/${e}/issues${r?`?${r}`:""}`;return n?h.get(o,n):h.get(o)},"list"),listCompact:a((e,t,n)=>{const r=St(t);r.set("view","compact");const o=`/companies/${e}/issues?${r.toString()}`;return n?h.get(o,n):h.get(o)},"listCompact"),count:a((e,t)=>{const n=new URLSearchParams;return n.set("attention",t.attention),t.status&&n.set("status",t.status),t.assigneeAgentId&&n.set("assigneeAgentId",t.assigneeAgentId),t.assigneeUserId&&n.set("assigneeUserId",t.assigneeUserId),t.projectId&&n.set("projectId",t.projectId),t.labelId&&n.set("labelId",t.labelId),t.q&&n.set("q",t.q),h.get(`/companies/${e}/issues/count?${n.toString()}`)},"count"),listLabels:a(e=>h.get(`/companies/${e}/labels`),"listLabels"),createLabel:a((e,t)=>h.post(`/companies/${e}/labels`,t),"createLabel"),deleteLabel:a(e=>h.delete(`/labels/${e}`),"deleteLabel"),get:a((e,t)=>t?h.get(`/issues/${e}`,t):h.get(`/issues/${e}`),"get"),getRunnerGoal:a((e,t)=>{const n=t?`?agentId=${encodeURIComponent(t)}`:"";return h.get(`/issues/${e}/runner-goal${n}`)},"getRunnerGoal"),actOnRunnerGoal:a((e,t)=>h.post(`/issues/${e}/runner-goal/actions`,t),"actOnRunnerGoal"),getModelOverride:a(e=>h.get(`/issues/${e}/model-override`),"getModelOverride"),setModelOverride:a((e,t)=>h.put(`/issues/${e}/model-override`,t),"setModelOverride"),getWatchdog:a(e=>h.get(`/issues/${e}/watchdog`),"getWatchdog"),upsertWatchdog:a((e,t)=>h.put(`/issues/${e}/watchdog`,t),"upsertWatchdog"),deleteWatchdog:a(e=>h.delete(`/issues/${e}/watchdog`),"deleteWatchdog"),markRead:a(e=>h.post(`/issues/${e}/read`,{}),"markRead"),markUnread:a(e=>h.delete(`/issues/${e}/read`),"markUnread"),archiveFromInbox:a(e=>h.post(`/issues/${e}/inbox-archive`,{}),"archiveFromInbox"),unarchiveFromInbox:a(e=>h.delete(`/issues/${e}/inbox-archive`),"unarchiveFromInbox"),setTitle:a((e,t)=>h.put(`/issues/${e}/title`,t),"setTitle"),create:a((e,t)=>h.post(`/companies/${e}/issues`,t),"create"),update:a((e,t)=>{const n=h.patch(`/issues/${e}`,t);return typeof t.comment=="string"?xt(n,r=>It(r?.comment)):n},"update"),decideStalledReview:a((e,t)=>h.post(`/issues/${e}/stalled-review-decision`,t),"decideStalledReview"),retryWorkspaceExport:a((e,t)=>h.post(`/issues/${e}/recovery-actions/retry-workspace-export`,t),"retryWorkspaceExport"),resolveRecoveryAction:a((e,t)=>h.post(`/issues/${e}/recovery-actions/resolve`,t),"resolveRecoveryAction"),previewTreeControl:a((e,t)=>h.post(`/issues/${e}/tree-control/preview`,t),"previewTreeControl"),createTreeHold:a((e,t)=>h.post(`/issues/${e}/tree-holds`,t),"createTreeHold"),getTreeHold:a((e,t)=>h.get(`/issues/${e}/tree-holds/${t}`),"getTreeHold"),listTreeHolds:a((e,t)=>{const n=new URLSearchParams;t?.status&&n.set("status",t.status),t?.mode&&n.set("mode",t.mode),t?.includeMembers&&n.set("includeMembers","true");const r=n.toString();return h.get(`/issues/${e}/tree-holds${r?`?${r}`:""}`)},"listTreeHolds"),getTreeControlState:a(e=>h.get(`/issues/${e}/tree-control/state`),"getTreeControlState"),releaseTreeHold:a((e,t,n)=>h.post(`/issues/${e}/tree-holds/${t}/release`,n),"releaseTreeHold"),checkMonitorNow:a(e=>h.post(`/issues/${e}/monitor/check-now`,{}),"checkMonitorNow"),retryScheduledRetryNow:a(e=>h.post(`/issues/${e}/scheduled-retry/retry-now`,{}),"retryScheduledRetryNow"),remove:a(e=>h.delete(`/issues/${e}`),"remove"),checkout:a((e,t)=>h.post(`/issues/${e}/checkout`,{agentId:t,expectedStatuses:["todo","backlog","blocked","in_review"]}),"checkout"),release:a(e=>h.post(`/issues/${e}/release`,{}),"release"),listComments:a((e,t)=>{const n=new URLSearchParams;t?.after&&n.set("after",t.after),t?.order&&n.set("order",t.order),t?.limit&&n.set("limit",String(t.limit));const r=n.toString();return h.get(`/issues/${e}/comments${r?`?${r}`:""}`)},"listComments"),getQueuedComments:a(e=>h.get(`/issues/${e}/queued-comments`),"getQueuedComments"),editQueuedComment:a((e,t,n)=>h.patch(`/issues/${e}/queued-comments/${t}`,n),"editQueuedComment"),reorderQueuedComments:a((e,t)=>h.put(`/issues/${e}/queued-comments/order`,t),"reorderQueuedComments"),interruptQueuedComments:a((e,t)=>h.post(`/issues/${e}/queued-comments/interrupt`,t),"interruptQueuedComments"),interruptLatestQueuedComments:a(async(e,t)=>{const n=await Y.getQueuedComments(e);if(!n.queueId||n.targetRunId&&n.targetRunId!==t)throw new Error("The queued messages changed. Refresh and try again.");return Y.interruptQueuedComments(e,{queueId:n.queueId,revision:n.revision,targetRunId:n.targetRunId})},"interruptLatestQueuedComments"),steerQueuedComment:a((e,t,n)=>h.post(`/issues/${e}/queued-comments/${t}/steer`,n),"steerQueuedComment"),discardQueuedComment:a((e,t,n)=>h.delete(`/issues/${e}/queued-comments/${t}`,n),"discardQueuedComment"),listInteractions:a(e=>h.get(`/issues/${e}/interactions`),"listInteractions"),listAcceptedPlanDecompositions:a(e=>h.get(`/issues/${e}/accepted-plan-decompositions`),"listAcceptedPlanDecompositions"),createInteraction:a((e,t)=>h.post(`/issues/${e}/interactions`,t),"createInteraction"),acceptInteraction:a((e,t,n)=>{const{note:r,...o}=n??{};return h.post(`/issues/${e}/interactions/${t}/accept`,r?.trim()?{...o,note:r}:o)},"acceptInteraction"),rejectInteraction:a((e,t,n,r)=>h.post(`/issues/${e}/interactions/${t}/reject`,{...n?{reason:n}:{},...r?.trim()?{note:r}:{}}),"rejectInteraction"),cancelInteraction:a((e,t,n)=>h.post(`/issues/${e}/interactions/${t}/cancel`,n?{reason:n}:{}),"cancelInteraction"),skipInteraction:a((e,t,n)=>h.post(`/issues/${e}/interactions/${t}/skip`,n?{reason:n}:{}),"skipInteraction"),respondToInteraction:a((e,t,n)=>h.post(`/issues/${e}/interactions/${t}/respond`,n),"respondToInteraction"),submitInteractionVerdicts:a((e,t,n)=>h.post(`/issues/${e}/interactions/${t}/verdicts`,{verdicts:n}),"submitInteractionVerdicts"),getComment:a((e,t)=>h.get(`/issues/${e}/comments/${t}`),"getComment"),listFeedbackVotes:a(e=>h.get(`/issues/${e}/feedback-votes`),"listFeedbackVotes"),getCostSummary:a((e,t={})=>{const n=t.excludeRoot?"?excludeRoot=true":"";return h.get(`/issues/${e}/cost-summary${n}`)},"getCostSummary"),listFeedbackTraces:a((e,t)=>{const n=new URLSearchParams;for(const[o,i]of Object.entries(t??{}))i!==void 0&&n.set(o,String(i));const r=n.toString();return h.get(`/issues/${e}/feedback-traces${r?`?${r}`:""}`)},"listFeedbackTraces"),upsertFeedbackVote:a((e,t)=>h.post(`/issues/${e}/feedback-votes`,t),"upsertFeedbackVote"),addComment:a((e,t,n,r,o,i,s)=>xt(h.post(`/issues/${e}/comments`,{body:t,...i?{clientRequestId:i}:{},...n===void 0?{}:{reopen:n},...r===void 0?{}:{interrupt:r},...o?.length?{attachmentIds:o}:{},...s===void 0?{}:{deliver:s}}),It),"addComment"),cancelComment:a((e,t)=>h.delete(`/issues/${e}/comments/${t}?mode=cancel`),"cancelComment"),deleteComment:a((e,t)=>h.delete(`/issues/${e}/comments/${t}`),"deleteComment"),listDocuments:a((e,t)=>h.get(`/issues/${e}/documents${t?.includeSystem?"?includeSystem=true":""}`),"listDocuments"),getDocument:a((e,t)=>h.get(`/issues/${e}/documents/${encodeURIComponent(t)}`),"getDocument"),getDocumentPdf:a((e,t)=>h.getBlob(`/issues/${e}/documents/${encodeURIComponent(t)}/pdf`),"getDocumentPdf"),upsertDocument:a((e,t,n)=>h.put(`/issues/${e}/documents/${encodeURIComponent(t)}`,n),"upsertDocument"),lockDocument:a((e,t)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/lock`,{}),"lockDocument"),unlockDocument:a((e,t)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/unlock`,{}),"unlockDocument"),listDocumentRevisions:a((e,t)=>h.get(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions`),"listDocumentRevisions"),restoreDocumentRevision:a((e,t,n)=>h.post(`/issues/${e}/documents/${encodeURIComponent(t)}/revisions/${n}/restore`,{}),"restoreDocumentRevision"),deleteDocument:a((e,t)=>h.delete(`/issues/${e}/documents/${encodeURIComponent(t)}`),"deleteDocument"),listAttachments:a(e=>h.get(`/issues/${e}/attachments`),"listAttachments"),uploadAttachment:a((e,t,n,r)=>{const o=yr(n);if(o)return Promise.reject(o);const i=new FormData;return i.append("file",n),r&&i.append("issueCommentId",r),h.postForm(`/companies/${e}/issues/${t}/attachments`,i)},"uploadAttachment"),deleteAttachment:a(e=>h.delete(`/attachments/${e}`),"deleteAttachment"),listApprovals:a(e=>h.get(`/issues/${e}/approvals`),"listApprovals"),linkApproval:a((e,t)=>h.post(`/issues/${e}/approvals`,{approvalId:t}),"linkApproval"),unlinkApproval:a((e,t)=>h.delete(`/issues/${e}/approvals/${t}`),"unlinkApproval"),listWorkProducts:a((e,t)=>h.get(`/issues/${e}/work-products${t?.refreshPullRequests?"?refreshPullRequests=true":""}`),"listWorkProducts"),ensureWorkProductReviewDocument:a((e,t)=>h.post(`/issues/${e}/work-products/${t}/review-document`,{}),"ensureWorkProductReviewDocument"),createWorkProduct:a((e,t)=>h.post(`/issues/${e}/work-products`,t),"createWorkProduct"),updateWorkProduct:a((e,t)=>h.patch(`/work-products/${e}`,t),"updateWorkProduct"),deleteWorkProduct:a(e=>h.delete(`/work-products/${e}`),"deleteWorkProduct")};function Z(e){return new Date(e).getTime()}a(Z,"toTimestamp");function Ho(){const e=globalThis.crypto?.randomUUID?.();return e?`optimistic-${e}`:`optimistic-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}a(Ho,"createOptimisticCommentId");function Xe(e){return[...e].sort((t,n)=>{const r=Z(t.createdAt)-Z(n.createdAt);return r!==0?r:t.id.localeCompare(n.id)})}a(Xe,"sortIssueComments");function Rt(e){return Xe(e).reverse()}a(Rt,"sortIssueCommentsDesc");function Cs(e){const t=new Date,n=Ho();return{id:n,clientId:n,companyId:e.companyId,issueId:e.issueId,authorType:"user",authorAgentId:null,authorUserId:e.authorUserId,body:e.body,presentation:null,metadata:null,clientStatus:e.clientStatus??"pending",queueTargetRunId:e.queueTargetRunId??null,createdAt:t,updatedAt:t}}a(Cs,"createOptimisticIssueComment");function $s(e){return e.runId||e.interruptedRunId||e.comment.id&&(e.comment.id===e.activeRunWakeCommentId||e.comment.id===e.activeRunCommentId)||e.comment.authorAgentId&&e.activeRunAgentId&&e.comment.authorAgentId===e.activeRunAgentId?!1:e.comment.clientStatus==="queued"?!0:e.activeRunStartedAt?Z(e.comment.createdAt)>=Z(e.activeRunStartedAt):!1}a($s,"isQueuedIssueComment");function _s(e,t){const n=t.queuedTargetRunId??null;return!n||!t.targetRunIsLive||t.runningRunId&&t.runningRunId!==n?e:{...e,clientStatus:"queued",queueState:"queued",queueTargetRunId:n}}a(_s,"applyLocalQueuedIssueCommentState");function As(e,t){const n=e??[],r=[...n],o=new Set(r.map(s=>s.id)),i=new Set;for(const s of t){if(o.has(s.id))continue;const u=n.find(c=>!i.has(c.id)&&c.issueId===s.issueId&&c.authorType===s.authorType&&c.authorUserId===s.authorUserId&&c.body===s.body&&Math.abs(Z(c.createdAt)-Z(s.createdAt))<=6e4);if(u){i.add(u.id);const c={...u,clientId:s.clientId};r[r.findIndex(d=>d.id===u.id)]=c;continue}r.push(s)}return Xe(r)}a(As,"mergeIssueComments");function Ps(e,t){const n=e.findIndex(r=>r.clientId===t);return n===-1?{comments:e,comment:null}:{comments:e.filter(r=>r.clientId!==t),comment:e[n]??null}}a(Ps,"takeOptimisticIssueComment");function Ls(e){return Xe((e??[]).flatMap(t=>t))}a(Ls,"flattenIssueCommentPages");function Wo(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}a(Wo,"getNextIssueCommentPageParam");function bt(e,t){if(!(!e||e.length<t))return e[e.length-1]?.id}a(bt,"getNextPageCursor");async function Ds(e){const t=(e.pages??[]).map(s=>[...s]),n=e.pageParams?[...e.pageParams].slice(0,t.length):t.map(()=>null);for(;n.length<t.length;)n.push(null);if(e.pageSize<=0)return{pages:t,pageParams:n};let r=bt(t[t.length-1],e.pageSize);const o=Math.max(0,e.maxPages??Number.POSITIVE_INFINITY),i=new Set;for(;r&&!i.has(r)&&i.size<o;){i.add(r);const s=[...await e.fetchPage(r)];t.push(s),n.push(r),r=bt(s,e.pageSize)}return{pages:t,pageParams:n}}a(Ds,"loadRemainingIssueCommentPages");function Ms(e){return e.activeDetailTab!=="chat"||!e.hasOlderComments||e.initialPageLoading||e.olderPageLoading||e.loadedCommentCount===0?!1:e.loadedCommentCount<e.autoLoadLimit}a(Ms,"shouldAutoloadOlderIssueComments");function Ts(e,t){if(!e)return e;const n={...e};return t.reopen===!0&&(e.status==="done"||e.status==="cancelled"||e.status==="blocked")&&(n.status="todo"),t.reassignment&&(n.assigneeAgentId=t.reassignment.assigneeAgentId,n.assigneeUserId=t.reassignment.assigneeUserId),n}a(Ts,"applyOptimisticIssueCommentUpdate");function qo(e,t){if(!e)return e;const n={...e,updatedAt:new Date},r=a(i=>Object.prototype.hasOwnProperty.call(t,i),"hasOwn"),o=a(i=>{r(i)&&(n[i]=t[i])},"assign");if(o("status"),o("priority"),o("assigneeAgentId"),o("assigneeUserId"),o("projectId"),o("parentId"),o("projectWorkspaceId"),o("executionWorkspaceId"),o("executionWorkspacePreference"),o("executionWorkspaceSettings"),o("hiddenAt"),r("labelIds")&&Array.isArray(t.labelIds)){const i=t.labelIds.filter(s=>typeof s=="string");n.labelIds=i,e.labels&&(n.labels=e.labels.filter(s=>i.includes(s.id)))}if(r("blockedByIssueIds")&&Array.isArray(t.blockedByIssueIds)&&e.blockedBy){const i=new Set(t.blockedByIssueIds.filter(s=>typeof s=="string"));n.blockedBy=e.blockedBy.filter(s=>i.has(s.id))}return r("projectId")&&(n.project=e.project?.id===n.projectId?e.project:null),r("parentId")&&(n.ancestors=void 0),r("executionWorkspaceId")&&(n.currentExecutionWorkspace=e.currentExecutionWorkspace?.id===n.executionWorkspaceId?e.currentExecutionWorkspace:null),n}a(qo,"applyOptimisticIssueFieldUpdate");function Vo(e,t){const n=t instanceof Set?t:new Set(t);return n.has(e.id)||!!e.identifier&&n.has(e.identifier)}a(Vo,"matchesIssueRef$1");function Os(e,t,n){if(!e)return e;let r=!1;const o=e.map(i=>Vo(i,t)?(r=!0,qo(i,n)??i):i);return r?o:e}a(Os,"applyOptimisticIssueFieldUpdateToCollection");function Us(e,t){if(!e||e.length===0)return[[t]];const n=e.map(r=>[...r]);for(let r=0;r<n.length;r+=1){const o=n[r].findIndex(i=>i.id===t.id);if(o!==-1)return n[r][o]=t,n[r]=Rt(n[r]),n}return n[0]=Rt([...n[0],t]),n}a(Us,"upsertIssueCommentInPages");function Ns(e,t){return!e||e.length===0?[]:e.map(n=>n.filter(r=>r.id!==t)).filter(n=>n.length>0)}a(Ns,"removeIssueCommentFromPages");var Qo=["issues","detail"],wn=6e4,Ko=3e4;function ie(e){return typeof e=="string"&&e.length>0}a(ie,"isNonEmptyString");function kn(e,t){const n=new Set;return ie(e)&&n.add(e),ie(t?.id)&&n.add(t.id),ie(t?.identifier)&&n.add(t.identifier),Array.from(n)}a(kn,"collectIssueRefs");function Jo(e,t){const n=t instanceof Set?t:new Set(t);return n.has(e.id)||!!e.identifier&&n.has(e.identifier)}a(Jo,"matchesIssueRef");function Ie(e){if(typeof e!="object"||e===null)return!1;const t=e;return ie(t.id)&&ie(t.companyId)&&typeof t.title=="string"&&typeof t.status=="string"&&typeof t.workMode=="string"&&typeof t.priority=="string"&&(t.projectId===null||typeof t.projectId=="string")&&(t.parentId===null||typeof t.parentId=="string")&&(t.identifier===null||typeof t.identifier=="string")&&(t.description===null||typeof t.description=="string")&&(t.assigneeAgentId===null||typeof t.assigneeAgentId=="string")&&(t.assigneeUserId===null||typeof t.assigneeUserId=="string")&&(t.executionRunId===null||typeof t.executionRunId=="string")&&(t.issueNumber===null||typeof t.issueNumber=="number")&&typeof t.requestDepth=="number"&&t.createdAt!=null&&t.updatedAt!=null}a(Ie,"isCompleteIssueSnapshot");function Et(e,t){return e?{...e,...t}:t}a(Et,"mergeIssueSnapshots");function In(e,t,n){const r=kn(t,n);for(const o of r){const i=e.getQueryData(ue.issues.detail(o));if(Ie(i))return i}return e.getQueriesData({queryKey:Qo}).map(([,o])=>o).find(o=>Ie(o)&&Jo(o,r))}a(In,"getCachedIssueDetail");function xn(e,t,n){if(!Ie(t))return t;const r=kn(n?.issueRef,t),o=Et(In(e,n?.issueRef,t),t);for(const i of r)e.setQueryData(ue.issues.detail(i),s=>Et(s,o));return o}a(xn,"seedIssueDetailCache");async function Sn(e,t,n){return xn(e,n?await Y.get(t,n):await Y.get(t),{issueRef:t})}a(Sn,"fetchIssueDetail");function Yo(e,t,n){return{queryKey:ue.issues.detail(t),queryFn:a(({signal:r})=>Sn(e,t,{signal:r}),"queryFn"),placeholderData:In(e,t,n?.placeholderIssue??void 0)}}a(Yo,"getIssueDetailQueryOptions");function Go(e,t,n){return Ie(n?.issue)&&xn(e,n.issue,{issueRef:t}),e.prefetchQuery({queryKey:ue.issues.detail(t),queryFn:a(()=>Sn(e,t),"queryFn"),staleTime:wn})}a(Go,"prefetchIssueDetail");function Zo(e,t){return e.prefetchInfiniteQuery({queryKey:ue.issues.comments(t),queryFn:a(({pageParam:n})=>Y.listComments(t,{order:"desc",limit:50,...n?{after:n}:{}}),"queryFn"),initialPageParam:null,getNextPageParam:a(n=>Wo(n,50),"getNextPageParam"),staleTime:Ko,pages:1})}a(Zo,"prefetchIssueComments");function Xo(e,t,n){return Promise.all([Go(e,t,n),Zo(e,n?.issue?.id??t)])}a(Xo,"prefetchIssueDetailForNavigation");var Rn={name:"atom",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]]};Rn.node;var ei=R(Rn),bn={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};bn.node;var ti=R(bn),En={name:"brain",size:24,node:[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]};En.node;var ni=R(En),Cn={name:"briefcase",size:24,node:[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};Cn.node;var ri=R(Cn),$n={name:"cog",size:24,node:[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]]};$n.node;var ai=R($n),_n={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]};_n.node;var oi=R(_n),An={name:"crown",size:24,node:[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]};An.node;var ii=R(An),Pn={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};Pn.node;var si=R(Pn),Ln={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};Ln.node;var li=R(Ln),Dn={name:"flame",size:24,node:[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]]};Dn.node;var ui=R(Dn),Mn={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};Mn.node;var ci=R(Mn),Tn={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};Tn.node;var di=R(Tn),On={name:"hammer",size:24,node:[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]};On.node;var fi=R(On),Un={name:"hexagon",size:24,node:[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]};Un.node;var mi=R(Un),Nn={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};Nn.node;var hi=R(Nn),jn={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};jn.node;var pi=R(jn),Fn={name:"lock",size:24,node:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]};Fn.node;var gi=R(Fn),Bn={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};Bn.node;var yi=R(Bn),zn={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};zn.node;var vi=R(zn),Hn={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};Hn.node;var wi=R(Hn),Wn={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]};Wn.node;var ki=R(Wn),qn={name:"radar",size:24,node:[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]};qn.node;var Ii=R(qn),Vn={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};Vn.node;var xi=R(Vn),Qn={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};Qn.node;var Si=R(Qn),Kn={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};Kn.node;var Ri=R(Kn),Jn={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};Jn.node;var bi=R(Jn),Yn={name:"telescope",size:24,node:[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]};Yn.node;var Ei=R(Yn),Gn={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};Gn.node;var Ci=R(Gn),Zn={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};Zn.node;var $i=R(Zn),Ct={folder:Pr,rocket:xi,code:Er,terminal:Cr,database:si,globe:di,package:wi,boxes:kr,box:ti,layers:hi,briefcase:ri,compass:oi,target:bi,flame:ui,zap:$i,star:Ri,bug:Lr,wrench:Ci,hammer:fi,lightbulb:pi,sparkles:Ar,shield:Si,lock:gi,search:br,cog:ai,brain:ni,cpu:xr,"git-branch":ci,"file-code":li,puzzle:ki,gem:$r,atom:ei,heart:Ir,mail:yi,"message-square":vi,crown:ii,radar:Ii,telescope:Ei,hexagon:mi},_i="folder";function Ai(e){return e&&hr.includes(e)?Ct[e]:Ct[_i]}a(Ai,"getProjectIcon");var S=Pt(dr(),1),Pi={xs:{box:"h-4 w-4 rounded-sm",icon:"h-2.5 w-2.5"},sm:{box:"h-6 w-6 rounded-md",icon:"h-3.5 w-3.5"},md:{box:"h-7 w-7 rounded-lg",icon:"h-4 w-4"},lg:{box:"h-9 w-9 rounded-lg",icon:"h-5 w-5"}};function Li({color:e,icon:t,size:n="md",className:r}){const o=Pi[n],i=!!e,s=Ai(t);return(0,S.jsx)("span",{"aria-hidden":!0,className:ze("inline-flex shrink-0 items-center justify-center",o.box,i?"text-white":"bg-muted text-muted-foreground",r),style:i?{backgroundColor:e??void 0}:void 0,children:(0,S.jsx)(s,{className:o.icon})})}a(Li,"ProjectTile");var se=null,Be=new Set;function Xn(){for(const e of Be)e()}a(Xn,"emitQuicklookChange");function $t(e){se!==e&&(se=e,Xn())}a($t,"openQuicklookId");function _t(e){se===e&&(se=null,Xn())}a(_t,"closeQuicklookId");function Di(e){return Be.add(e),()=>{Be.delete(e)}}a(Di,"subscribeQuicklook");function Mi(e){return l.useSyncExternalStore(Di,()=>se===e,()=>!1)}a(Mi,"useIsQuicklookOpen");var Ti=120,Oi=13,Ui="w-72 p-3";function Ni(e="start"){return e==="start"?-13:e==="end"?Oi:0}a(Ni,"quicklookAlignOffset");function ji(e){if(!e)return null;const t=e.replace(/!\[[^\]]*]\([^)]+\)/g," ").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/[#>*_`~-]+/g," ").replace(/\s+/g," ").trim();return t?t.length>180?`${t.slice(0,177).trimEnd()}...`:t:null}a(ji,"summarizeIssueDescription");function Fi({className:e}){return(0,S.jsx)("span",{className:ze("text-xs",e),"aria-hidden":!0,children:"·"})}a(Fi,"QuicklookSeparator");function Bi(e){const t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}a(Bi,"statusLabel");function zi({issue:e,linkTo:t,linkState:n,compact:r=!1}){const o=(0,l.useMemo)(()=>ji(e.description),[e.description]),i=e.project?.name;return(0,S.jsxs)("div",{className:ze("space-y-2",r&&"space-y-1.5"),children:[(0,S.jsxs)("div",{className:"flex items-center gap-1",children:[(0,S.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:[(0,S.jsx)(Dr,{status:e.status,size:"md",title:Bi(e.status)}),(0,S.jsx)("span",{className:"shrink-0 font-mono text-(length:--text-micro) text-muted-foreground",children:e.identifier??e.id.slice(0,8)}),i?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Fi,{className:"shrink-0 text-muted-foreground"}),(0,S.jsxs)("span",{className:"flex min-w-0 max-w-(--sz-12rem) flex-1 items-center gap-1 text-(length:--text-micro) text-muted-foreground",title:i,"data-testid":"quicklook-project",children:[(0,S.jsx)(Li,{size:"xs"}),(0,S.jsx)("span",{className:"truncate",children:i})]})]}):null]}),(0,S.jsx)("span",{className:"shrink-0 text-(length:--text-micro) text-muted-foreground",children:Ao(new Date(e.updatedAt))})]}),(0,S.jsx)(fe,{to:t,state:n??gn(null,e),className:"block text-sm font-medium leading-snug hover:underline line-clamp-2",children:e.title}),o?(0,S.jsx)("p",{className:"text-xs leading-5 text-muted-foreground [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:4] overflow-hidden",children:o}):null]})}a(zi,"IssueQuicklookCard");var Hi=l.forwardRef(a(function({issuePathId:t,to:n,children:r,className:o,state:i,disableIssueQuicklook:s=!1,issuePrefetch:u=null,issueQuicklookSide:c="top",issueQuicklookAlign:d="start",onClick:m,onClickCapture:f,onMouseEnter:g,onFocus:v,onBlur:w,onTouchStart:y,...p},k){const I=mr(),x=l.useMemo(()=>Symbol("issue-quicklook"),[]),$=Mi(x),b=l.useRef(null),_=l.useRef(null),L=l.useRef(null),U=l.useCallback(E=>{_.current=E,typeof k=="function"?k(E):k&&(k.current=E)},[k]),A=l.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null)},[]),j=l.useCallback(()=>{A(),$t(x)},[A,x]),K=l.useCallback(()=>{A(),b.current=setTimeout(()=>{b.current=null,$t(x)},Ti)},[A,x]),T=l.useCallback(()=>{A(),_t(x)},[A,x]);l.useEffect(()=>()=>{A(),_t(x)},[A,x]),l.useEffect(()=>{if(!$)return;const E=12,nt=a((q,ae,J)=>{if(!q)return!1;const W=q.getBoundingClientRect();return ae>=W.left-E&&ae<=W.right+E&&J>=W.top-E&&J<=W.bottom+E},"nearBox"),ur=a((q,ae)=>{const J=_.current,W=L.current;if(J?.matches(":hover")||W?.matches(":hover")||nt(J,q,ae)||nt(W,q,ae))return!0;const _e=document.activeElement;return J===_e||!!W&&!!_e&&W.contains(_e)},"stillEngaged"),rt=a(q=>{ur(q.clientX,q.clientY)||T()},"onPointerMove");return document.addEventListener("pointermove",rt,{passive:!0}),()=>document.removeEventListener("pointermove",rt)},[$,T]);const H=u?gn(i,u):i,{data:F,isLoading:B}=vr({...Yo(I,t,{placeholderIssue:u??void 0}),enabled:$,staleTime:wn}),lr=Bo(t),re=l.useCallback(()=>{Xo(I,t,{issue:u})},[t,u,I]),tt=(0,S.jsx)(fe,{ref:U,to:n,state:H,className:o,onMouseEnter:a(E=>{re(),g?.(E)},"onMouseEnter"),onFocus:a(E=>{re(),j(),v?.(E)},"onFocus"),onBlur:a(E=>{setTimeout(()=>T(),0),w?.(E)},"onBlur"),onTouchStart:a(E=>{re(),y?.(E)},"onTouchStart"),onClickCapture:a(E=>{re(),f?.(E)},"onClickCapture"),onClick:a(E=>{T(),m?.(E)},"onClick"),...p,children:r});return s?tt:(0,S.jsxs)(Sr,{open:$,onOpenChange:a(E=>E?j():T(),"onOpenChange"),children:[(0,S.jsx)(Rr,{asChild:!0,onMouseEnter:a(()=>{re(),K()},"onMouseEnter"),onMouseLeave:T,children:tt}),(0,S.jsx)(_r,{ref:L,"data-quicklook":!0,className:Ui,side:c,align:d,alignOffset:Ni(d),onMouseEnter:j,onMouseLeave:T,onOpenAutoFocus:a(E=>E.preventDefault(),"onOpenAutoFocus"),onCloseAutoFocus:a(E=>E.preventDefault(),"onCloseAutoFocus"),children:F?(0,S.jsx)(zi,{issue:F,linkTo:lr,linkState:H,compact:!0}):(0,S.jsxs)("div",{className:"space-y-2",children:[(0,S.jsx)("div",{className:"h-4 w-24 rounded bg-accent/50"}),(0,S.jsx)("div",{className:"h-4 w-full rounded bg-accent/40"}),(0,S.jsx)("div",{className:"h-4 w-3/4 rounded bg-accent/30"}),B?null:(0,S.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unable to load task preview."})]})})]})},"IssueLinkQuicklookImpl")),er=new Set(["dashboard","companies","company","skills","teams-catalog","org","agents","chats","apps","projects","workspaces","execution-workspaces","issues","tasks","routines","goals","artifacts","tools","approvals","costs","usage","activity","audit","decisions","inbox","board-chat","artifacts","u","design-guide","search","settings","timeline"]),et=new Set(["auth","invite","board-claim","cli-auth","docs","instance","s"]);function le(e){return e.trim().toUpperCase()}a(le,"normalizeCompanyPrefix");function tr(e){const t=e.match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);return{pathname:t?.[1]??e,search:t?.[2]??"",hash:t?.[3]??""}}a(tr,"splitPath");function Wi(e){return e.split("/").filter(Boolean)[0]??null}a(Wi,"getRootSegment");function qi(e){if(e==="/")return!0;const t=Wi(e);return t?et.has(t.toLowerCase()):!0}a(qi,"isGlobalPath");function nr(e){const t=e.split("/").filter(Boolean);if(t.length===0)return null;const n=t[0].toLowerCase();return et.has(n)||er.has(n)?null:le(t[0])}a(nr,"extractCompanyPrefixFromPath");function At(e,t){const{pathname:n,search:r,hash:o}=tr(e);if(!n.startsWith("/")||qi(n)||!t)return e;const i=le(t);return nr(n)?e:`/${i}${n}${r}${o}`}a(At,"applyCompanyPrefix");function Vi(e,...t){const n=["cases",...t].filter(Boolean).join("/");return e?`/${le(e)}/${n}`:`/${n}`}a(Vi,"caseHref");function js(e){const{pathname:t,search:n,hash:r}=tr(e),o=t.split("/").filter(Boolean);if(o.length>=2){const i=o[1].toLowerCase();if(!et.has(o[0].toLowerCase())&&er.has(i))return`/${o.slice(1).join("/")}${n}${r}`}return`${t}${n}${r}`}a(js,"toCompanyRelativePath");var rr=/^[A-Z][A-Z0-9]*-\d+$/i,Qi=/^issue:\/\/:?([^?#\s]+)([?#].*)?$/i,Ki=/issue:\/\/:?[^\s<>()]+|https?:\/\/[^\s<>()]+|\/(?:[^\s<>()/]+\/)*issues\/[A-Z][A-Z0-9]*-\d+(?=$|[\s<>)\],.;!?:])|\b[A-Z][A-Z0-9]*-\d+\b/gi;function ar(e){if(!e)return null;const t=e.trim();if(!t||/^https?:\/\//i.test(t))return null;const n=t.split(/[?#]/,1)[0].split("/").filter(Boolean),r=n.findIndex(i=>i==="issues");if(r===-1||r===n.length-1)return null;const o=decodeURIComponent(n[r+1]??"");return!o||o.startsWith(":")?null:rr.test(o)?o.toUpperCase():o}a(ar,"parseIssuePathIdFromPath");function or(e,t){if(!e)return null;const n=e.trim(),r=n.match(Qi);if(r?.[1]){const s=decodeURIComponent(r[1]);return{issuePathId:s,href:`/issues/${encodeURIComponent(s)}${r[2]??""}`}}const o=ar(e);if(o)return{issuePathId:o,href:`/issues/${encodeURIComponent(o)}${n.match(/[?#].*$/)?.[0]??""}`};if(!rr.test(n))return null;const i=n.toUpperCase();if(t&&t.size>0){const s=i.split("-")[0];if(!s||!t.has(s))return null}return{issuePathId:i,href:`/issues/${encodeURIComponent(i)}`}}a(or,"parseIssueReferenceFromHref");function Ji(e){let t=e,n="";for(;t.length>0;){const r=t.at(-1);if(!r||!/[),.;!?:\]]/.test(r))break;if(r===")"){const o=(t.match(/\(/g)??[]).length;if((t.match(/\)/g)??[]).length<=o)break}if(r==="]"){const o=(t.match(/\[/g)??[]).length;if((t.match(/\]/g)??[]).length<=o)break}n=`${r}${n}`,t=t.slice(0,-1)}return{core:t,trailing:n}}a(Ji,"splitTrailingPunctuation");function ir(e,t,n="text"){return{type:"link",url:t,children:[{type:n,value:e}]}}a(ir,"createIssueLinkNode");function Yi(e,t){const n=[];let r=0,o=!1;for(const i of e.matchAll(Ki)){const s=i[0];if(!s)continue;const u=i.index??0,c=u+s.length,{core:d,trailing:m}=Ji(s),f=or(d,t);f&&(o=!0,u>r&&n.push({type:"text",value:e.slice(r,u)}),n.push(ir(d,f.href)),m&&n.push({type:"text",value:m}),r=c)}return o?(r<e.length&&n.push({type:"text",value:e.slice(r)}),n):null}a(Yi,"linkifyIssueReferencesInText");function sr(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const o=or(r.value,t);if(o){n.push(ir(r.value,o.href,"inlineCode"));continue}}if(r.type==="text"&&typeof r.value=="string"){const o=Yi(r.value,t);if(o){n.push(...o);continue}}sr(r,t),n.push(r)}e.children=n}a(sr,"rewriteMarkdownTree");function Fs(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(n=>n.toUpperCase())):void 0;return n=>{sr(n,t)}}a(Fs,"remarkLinkIssueReferences");function $e(e,t){if(typeof e=="string")return At(e,t);if(e.pathname&&e.pathname.startsWith("/")){const n=At(e.pathname,t);if(n!==e.pathname)return{...e,pathname:n}}return e}a($e,"resolveTo");function me(){const{selectedCompany:e}=gr(),t=Sa(),n=M();if(t.companyPrefix)return le(t.companyPrefix);const r=nr(n.pathname);return r||(e?le(e.issuePrefix):null)}a(me,"useActiveCompanyPrefix");function Bs(){const e=me();return l.useCallback((...t)=>Vi(e,...t),[e])}a(Bs,"useCaseHref");var zs=l.forwardRef(a(function({to:t,disableIssueQuicklook:n=!1,issuePrefetch:r=null,issueQuicklookSide:o,issueQuicklookAlign:i,...s},u){const c=$e(t,me()),d=ar(typeof c=="string"?c:c.pathname);return d?(0,S.jsx)(Hi,{ref:u,to:c,issuePathId:d,disableIssueQuicklook:n,issuePrefetch:r,issueQuicklookSide:o,issueQuicklookAlign:i,...s}):(0,S.jsx)(fe,{ref:u,to:c,...s})},"CompanyLink")),Hs=l.forwardRef(a(function({to:t,...n},r){const o=me();return(0,S.jsx)(an,{ref:r,to:$e(t,o),...n})},"CompanyNavLink"));function Ws({to:e,...t}){const n=me();return(0,S.jsx)(Na,{to:$e(e,n),...t})}a(Ws,"Navigate");function qs(){const e=Se(),t=me();return l.useCallback(((n,r)=>{if(typeof n=="number"){e(n);return}e($e(n,t),r)}),[e,t])}a(qs,"useNavigate");export{qo as $,vi as A,un as At,li as B,Se as Bt,bi as C,ks as Ct,Ii as D,Ze as Dt,xi as E,vs as Et,mi as F,us as Ft,ni as G,ii as H,Sa as Ht,fi as I,ja as It,In as J,ti as K,di as L,cs as Lt,gi as M,Ao as Mt,pi as N,hs as Nt,ki as O,Is as Ot,hi as P,fe as Pt,Ts as Q,ci as R,gs as Rt,Ei as S,gn as St,Si as T,Lo as Tt,oi as U,ps as Ut,si as V,ss as Vt,ai as W,Xo as X,Yo as Y,_s as Z,Ni as _,bs as _t,Bs as a,Ds as at,$i as b,zo as bt,Fs as c,Ns as ct,qi as d,Us as dt,Os as et,le as f,Y as ft,Ui as g,Bo as gt,zi as h,xs as ht,me as i,$s as it,yi as j,ys as jt,wi as k,ws as kt,At as l,Ms as lt,Hi as m,Ss as mt,Hs as n,Ls as nt,qs as o,Vo as ot,js as p,kt as pt,ei as q,Ws as r,Wo as rt,or as s,As as st,zs as t,Cs as tt,nr as u,Ps as ut,Li as v,Es as vt,Ri as w,Po as wt,Ci as x,Rs as xt,Ct as y,Oo as yt,ui as z,M as zt};
@@ -1 +1 @@
1
- import{t as e}from"./agent-avatar-url-CTQ8BnM1.js";var a={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};a.node;var l=e(a),c={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};c.node;var t=e(c),r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;var n=e(r);export{t as n,l as r,n as t};
1
+ import{t as e}from"./agent-avatar-url-Cv0eH_gk.js";var a={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};a.node;var l=e(a),c={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};c.node;var t=e(c),r={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};r.node;var n=e(r);export{t as n,l as r,n as t};
@@ -1 +1 @@
1
- var u=Object.defineProperty;var s=(t,a)=>u(t,"name",{value:a,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as m,Mi as p,S as r,t as x}from"./agent-avatar-url-CTQ8BnM1.js";import{a as f,c as g,d as h,f as v,h as S,i as b,l as j,m as w,n as y,o as z,p as _,r as N,s as $,t as k,u as I}from"./dist-BZW0zxru.js";import{t as C}from"./check-B_0Gl2dh.js";import{t as i}from"./chevron-down-DIcWyXqY.js";var c={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};c.node;var B=x(c),A=n(p(),1),e=n(m(),1);function E({...t}){return(0,e.jsx)(k,{"data-slot":"select",...t})}s(E,"Select");function P({...t}){return(0,e.jsx)(N,{"data-slot":"select-group",...t})}s(P,"SelectGroup");function F({...t}){return(0,e.jsx)(w,{"data-slot":"select-value",...t})}s(F,"SelectValue");function H({className:t,size:a="default",children:o,...l}){return(0,e.jsxs)(_,{"data-slot":"select-trigger","data-size":a,className:r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-base md:text-sm whitespace-nowrap shadow-xs transition-(--tp-color-box-shadow) outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[o,(0,e.jsx)(b,{asChild:!0,children:(0,e.jsx)(i,{className:"size-4 opacity-50"})})]})}s(H,"SelectTrigger");function J({className:t,children:a,position:o="item-aligned",align:l="center",...d}){return(0,e.jsx)(j,{children:(0,e.jsxs)(y,{"data-slot":"select-content",className:r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 relative z-50 max-h-(--radix-select-content-available-height) min-w-(--sz-8rem) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,align:l,...d,children:[(0,e.jsx)(D,{}),(0,e.jsx)(S,{className:r("p-1",o==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:a}),(0,e.jsx)(L,{})]})})}s(J,"SelectContent");function K({className:t,...a}){return(0,e.jsx)(g,{"data-slot":"select-label",className:r("text-muted-foreground px-2 py-1.5 text-xs",t),...a})}s(K,"SelectLabel");function O({className:t,children:a,...o}){return(0,e.jsxs)(f,{"data-slot":"select-item",className:r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...o,children:[(0,e.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,e.jsx)(z,{children:(0,e.jsx)(C,{className:"size-4"})})}),(0,e.jsx)($,{children:a})]})}s(O,"SelectItem");function Q({className:t,...a}){return(0,e.jsx)(v,{"data-slot":"select-separator",className:r("bg-border pointer-events-none -mx-1 my-1 h-px",t),...a})}s(Q,"SelectSeparator");function D({className:t,...a}){return(0,e.jsx)(h,{"data-slot":"select-scroll-up-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(B,{className:"size-4"})})}s(D,"SelectScrollUpButton");function L({className:t,...a}){return(0,e.jsx)(I,{"data-slot":"select-scroll-down-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(i,{className:"size-4"})})}s(L,"SelectScrollDownButton");export{K as a,F as c,O as i,B as l,J as n,Q as o,P as r,H as s,E as t};
1
+ var u=Object.defineProperty;var s=(t,a)=>u(t,"name",{value:a,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as m,Li as p,S as r,t as x}from"./agent-avatar-url-Cv0eH_gk.js";import{a as f,c as g,d as h,f as v,h as S,i as b,l as j,m as w,n as y,o as z,p as _,r as N,s as $,t as k,u as I}from"./dist-DCMmOKhY.js";import{t as C}from"./check-Wdx0oVFt.js";import{t as i}from"./chevron-down-_ZjvalUC.js";var c={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};c.node;var B=x(c),F=n(p(),1),e=n(m(),1);function M({...t}){return(0,e.jsx)(k,{"data-slot":"select",...t})}s(M,"Select");function P({...t}){return(0,e.jsx)(N,{"data-slot":"select-group",...t})}s(P,"SelectGroup");function A({...t}){return(0,e.jsx)(w,{"data-slot":"select-value",...t})}s(A,"SelectValue");function H({className:t,size:a="default",children:o,...l}){return(0,e.jsxs)(_,{"data-slot":"select-trigger","data-size":a,className:r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-base md:text-sm whitespace-nowrap shadow-xs transition-(--tp-color-box-shadow) outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[o,(0,e.jsx)(b,{asChild:!0,children:(0,e.jsx)(i,{className:"size-4 opacity-50"})})]})}s(H,"SelectTrigger");function J({className:t,children:a,position:o="item-aligned",align:l="center",...d}){return(0,e.jsx)(j,{children:(0,e.jsxs)(y,{"data-slot":"select-content",className:r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 relative z-50 max-h-(--radix-select-content-available-height) min-w-(--sz-8rem) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,align:l,...d,children:[(0,e.jsx)(D,{}),(0,e.jsx)(S,{className:r("p-1",o==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:a}),(0,e.jsx)(L,{})]})})}s(J,"SelectContent");function K({className:t,...a}){return(0,e.jsx)(g,{"data-slot":"select-label",className:r("text-muted-foreground px-2 py-1.5 text-xs",t),...a})}s(K,"SelectLabel");function O({className:t,children:a,...o}){return(0,e.jsxs)(f,{"data-slot":"select-item",className:r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...o,children:[(0,e.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,e.jsx)(z,{children:(0,e.jsx)(C,{className:"size-4"})})}),(0,e.jsx)($,{children:a})]})}s(O,"SelectItem");function Q({className:t,...a}){return(0,e.jsx)(v,{"data-slot":"select-separator",className:r("bg-border pointer-events-none -mx-1 my-1 h-px",t),...a})}s(Q,"SelectSeparator");function D({className:t,...a}){return(0,e.jsx)(h,{"data-slot":"select-scroll-up-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(B,{className:"size-4"})})}s(D,"SelectScrollUpButton");function L({className:t,...a}){return(0,e.jsx)(I,{"data-slot":"select-scroll-down-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(i,{className:"size-4"})})}s(L,"SelectScrollDownButton");export{K as a,A as c,O as i,B as l,J as n,Q as o,P as r,H as s,M as t};
@@ -1 +1 @@
1
- var T=Object.defineProperty;var o=(t,e)=>T(t,"name",{value:e,configurable:!0});import{i as v}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as O,Mi as $,S as i,c as M,m as A,s as H,t as D}from"./agent-avatar-url-CTQ8BnM1.js";import{Z as E}from"./mention-chips-BkfszlcZ.js";import{A as h,C as f,D as j,E as _,O as y,S as b,T as S,k as C,w}from"./MarkdownEditor-ClN1nVEy.js";import{n as P}from"./button-C5dzXWIT.js";var c=v($(),1),a=v(O(),1),F=Object.defineProperty,d=o((t,e)=>F(t,"name",{value:e,configurable:!0}),"__name"),[L,vt]=M("AlertDialog",[h]),g=h(),q=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(b,{...l,...r,modal:!0})},"AlertDialog"),I=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(C,{...n,...s,ref:r})},"AlertDialogTrigger2"),"AlertDialogTrigger")),V=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(j,{...l,...r})},"AlertDialogPortal"),X=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(_,{...n,...s,ref:r})},"AlertDialogOverlay2"),"AlertDialogOverlay")),[Z,B]=L("AlertDialogContent"),G=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,children:s,...n}=e,p=g(l),m=c.useRef(null),z=A(r,m),x=c.useRef(null);return(0,a.jsx)(Z,{scope:l,cancelRef:x,children:(0,a.jsx)(w,{role:"alertdialog",...p,...n,ref:z,onOpenAutoFocus:H(n.onOpenAutoFocus,u=>{u.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:o(u=>u.preventDefault(),"onPointerDownOutside"),onInteractOutside:o(u=>u.preventDefault(),"onInteractOutside"),children:s})})},"AlertDialogContent2"),"AlertDialogContent")),J=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(y,{...n,...s,ref:r})},"AlertDialogTitle2"),"AlertDialogTitle")),K=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(S,{...n,...s,ref:r})},"AlertDialogDescription2"),"AlertDialogDescription")),Q=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(f,{...n,...s,ref:r})},"AlertDialogAction2"),"AlertDialogAction")),U="AlertDialogCancel",W=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,{cancelRef:n}=B(U,l),p=g(l),m=A(r,n);return(0,a.jsx)(f,{...p,...s,ref:m})},"AlertDialogCancel2"),"AlertDialogCancel")),Y=q,tt=I,et=V,at=X,ot=G,rt=Q,lt=W,st=J,nt=K,N={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};N.node;var At=D(N),k={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};k.node;var ht=D(k),R={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};R.node;var jt=D(R);function _t({...t}){return(0,a.jsx)(Y,{"data-slot":"alert-dialog",...t})}o(_t,"AlertDialog");function yt({...t}){return(0,a.jsx)(tt,{"data-slot":"alert-dialog-trigger",...t})}o(yt,"AlertDialogTrigger");function it({...t}){return(0,a.jsx)(et,{"data-slot":"alert-dialog-portal",...t})}o(it,"AlertDialogPortal");function ct({className:t,...e}){return(0,a.jsx)(at,{"data-slot":"alert-dialog-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 duration-100",t),...e})}o(ct,"AlertDialogOverlay");function bt({className:t,...e}){return(0,a.jsxs)(it,{children:[(0,a.jsx)(ct,{}),(0,a.jsx)(ot,{"data-slot":"alert-dialog-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-[0.97] data-[state=open]:zoom-in-[0.97] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0",t),...e})]})}o(bt,"AlertDialogContent");function St({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-header",className:i("flex flex-col gap-2 text-center sm:text-left",t),...e})}o(St,"AlertDialogHeader");function Ct({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-footer",className:i("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}o(Ct,"AlertDialogFooter");function wt({className:t,...e}){return(0,a.jsx)(st,{"data-slot":"alert-dialog-title",className:i("text-lg leading-none font-semibold",t),...e})}o(wt,"AlertDialogTitle");function Pt({className:t,...e}){return(0,a.jsx)(nt,{"data-slot":"alert-dialog-description",className:i("text-muted-foreground text-sm",t),...e})}o(Pt,"AlertDialogDescription");function Nt({className:t,...e}){return(0,a.jsx)(rt,{"data-slot":"alert-dialog-action",className:i(P(),t),...e})}o(Nt,"AlertDialogAction");function kt({className:t,...e}){return(0,a.jsx)(lt,{"data-slot":"alert-dialog-cancel",className:i(P({variant:"outline"}),t),...e})}o(kt,"AlertDialogCancel");function Rt({...t}){return(0,a.jsx)(b,{"data-slot":"sheet",...t})}o(Rt,"Sheet");function zt({...t}){return(0,a.jsx)(C,{"data-slot":"sheet-trigger",...t})}o(zt,"SheetTrigger");function Tt({...t}){return(0,a.jsx)(f,{"data-slot":"sheet-close",...t})}o(Tt,"SheetClose");function dt({...t}){return(0,a.jsx)(j,{"data-slot":"sheet-portal",...t})}o(dt,"SheetPortal");function gt({className:t,...e}){return(0,a.jsx)(_,{"data-slot":"sheet-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}o(gt,"SheetOverlay");function Ot({className:t,children:e,side:r="right",showCloseButton:l=!0,...s}){return(0,a.jsxs)(dt,{children:[(0,a.jsx)(gt,{}),(0,a.jsxs)(w,{"data-slot":"sheet-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...s,children:[e,l&&(0,a.jsxs)(f,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,a.jsx)(E,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}o(Ot,"SheetContent");function $t({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-header",className:i("flex flex-col gap-1.5 p-4",t),...e})}o($t,"SheetHeader");function Mt({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-footer",className:i("mt-auto flex flex-col gap-2 p-4",t),...e})}o(Mt,"SheetFooter");function Ht({className:t,...e}){return(0,a.jsx)(y,{"data-slot":"sheet-title",className:i("text-foreground font-semibold",t),...e})}o(Ht,"SheetTitle");function Et({className:t,...e}){return(0,a.jsx)(S,{"data-slot":"sheet-description",className:i("text-muted-foreground text-sm",t),...e})}o(Et,"SheetDescription");export{yt as _,Mt as a,At as b,zt as c,kt as d,bt as f,wt as g,St as h,Et as i,_t as l,Ct as m,Tt as n,$t as o,Pt as p,Ot as r,Ht as s,Rt as t,Nt as u,jt as v,ht as y};
1
+ var T=Object.defineProperty;var o=(t,e)=>T(t,"name",{value:e,configurable:!0});import{i as v}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as O,Li as $,S as i,c as M,m as A,s as F,t as D}from"./agent-avatar-url-Cv0eH_gk.js";import{Z as H}from"./mention-chips-BfQmC5ut.js";import{A as h,C as f,D as j,E as _,O as y,S as b,T as S,k as C,w}from"./MarkdownEditor-DIHDyI6k.js";import{n as P}from"./button-Bs_hqIdB.js";var c=v($(),1),a=v(O(),1),L=Object.defineProperty,d=o((t,e)=>L(t,"name",{value:e,configurable:!0}),"__name"),[E,vt]=M("AlertDialog",[h]),g=h(),q=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(b,{...l,...r,modal:!0})},"AlertDialog"),I=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(C,{...n,...s,ref:r})},"AlertDialogTrigger2"),"AlertDialogTrigger")),V=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(j,{...l,...r})},"AlertDialogPortal"),X=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(_,{...n,...s,ref:r})},"AlertDialogOverlay2"),"AlertDialogOverlay")),[Z,B]=E("AlertDialogContent"),G=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,children:s,...n}=e,p=g(l),m=c.useRef(null),z=A(r,m),x=c.useRef(null);return(0,a.jsx)(Z,{scope:l,cancelRef:x,children:(0,a.jsx)(w,{role:"alertdialog",...p,...n,ref:z,onOpenAutoFocus:F(n.onOpenAutoFocus,u=>{u.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:o(u=>u.preventDefault(),"onPointerDownOutside"),onInteractOutside:o(u=>u.preventDefault(),"onInteractOutside"),children:s})})},"AlertDialogContent2"),"AlertDialogContent")),J=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(y,{...n,...s,ref:r})},"AlertDialogTitle2"),"AlertDialogTitle")),K=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(S,{...n,...s,ref:r})},"AlertDialogDescription2"),"AlertDialogDescription")),Q=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(f,{...n,...s,ref:r})},"AlertDialogAction2"),"AlertDialogAction")),U="AlertDialogCancel",W=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,{cancelRef:n}=B(U,l),p=g(l),m=A(r,n);return(0,a.jsx)(f,{...p,...s,ref:m})},"AlertDialogCancel2"),"AlertDialogCancel")),Y=q,tt=I,et=V,at=X,ot=G,rt=Q,lt=W,st=J,nt=K,N={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};N.node;var At=D(N),k={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};k.node;var ht=D(k),R={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};R.node;var jt=D(R);function _t({...t}){return(0,a.jsx)(Y,{"data-slot":"alert-dialog",...t})}o(_t,"AlertDialog");function yt({...t}){return(0,a.jsx)(tt,{"data-slot":"alert-dialog-trigger",...t})}o(yt,"AlertDialogTrigger");function it({...t}){return(0,a.jsx)(et,{"data-slot":"alert-dialog-portal",...t})}o(it,"AlertDialogPortal");function ct({className:t,...e}){return(0,a.jsx)(at,{"data-slot":"alert-dialog-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 duration-100",t),...e})}o(ct,"AlertDialogOverlay");function bt({className:t,...e}){return(0,a.jsxs)(it,{children:[(0,a.jsx)(ct,{}),(0,a.jsx)(ot,{"data-slot":"alert-dialog-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-[0.97] data-[state=open]:zoom-in-[0.97] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0",t),...e})]})}o(bt,"AlertDialogContent");function St({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-header",className:i("flex flex-col gap-2 text-center sm:text-left",t),...e})}o(St,"AlertDialogHeader");function Ct({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-footer",className:i("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}o(Ct,"AlertDialogFooter");function wt({className:t,...e}){return(0,a.jsx)(st,{"data-slot":"alert-dialog-title",className:i("text-lg leading-none font-semibold",t),...e})}o(wt,"AlertDialogTitle");function Pt({className:t,...e}){return(0,a.jsx)(nt,{"data-slot":"alert-dialog-description",className:i("text-muted-foreground text-sm",t),...e})}o(Pt,"AlertDialogDescription");function Nt({className:t,...e}){return(0,a.jsx)(rt,{"data-slot":"alert-dialog-action",className:i(P(),t),...e})}o(Nt,"AlertDialogAction");function kt({className:t,...e}){return(0,a.jsx)(lt,{"data-slot":"alert-dialog-cancel",className:i(P({variant:"outline"}),t),...e})}o(kt,"AlertDialogCancel");function Rt({...t}){return(0,a.jsx)(b,{"data-slot":"sheet",...t})}o(Rt,"Sheet");function zt({...t}){return(0,a.jsx)(C,{"data-slot":"sheet-trigger",...t})}o(zt,"SheetTrigger");function Tt({...t}){return(0,a.jsx)(f,{"data-slot":"sheet-close",...t})}o(Tt,"SheetClose");function dt({...t}){return(0,a.jsx)(j,{"data-slot":"sheet-portal",...t})}o(dt,"SheetPortal");function gt({className:t,...e}){return(0,a.jsx)(_,{"data-slot":"sheet-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}o(gt,"SheetOverlay");function Ot({className:t,children:e,side:r="right",showCloseButton:l=!0,...s}){return(0,a.jsxs)(dt,{children:[(0,a.jsx)(gt,{}),(0,a.jsxs)(w,{"data-slot":"sheet-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...s,children:[e,l&&(0,a.jsxs)(f,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,a.jsx)(H,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}o(Ot,"SheetContent");function $t({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-header",className:i("flex flex-col gap-1.5 p-4",t),...e})}o($t,"SheetHeader");function Mt({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-footer",className:i("mt-auto flex flex-col gap-2 p-4",t),...e})}o(Mt,"SheetFooter");function Ft({className:t,...e}){return(0,a.jsx)(y,{"data-slot":"sheet-title",className:i("text-foreground font-semibold",t),...e})}o(Ft,"SheetTitle");function Ht({className:t,...e}){return(0,a.jsx)(S,{"data-slot":"sheet-description",className:i("text-muted-foreground text-sm",t),...e})}o(Ht,"SheetDescription");export{yt as _,Mt as a,At as b,zt as c,kt as d,bt as f,wt as g,St as h,Ht as i,_t as l,Ct as m,Tt as n,$t as o,Pt as p,Ot as r,Ft as s,Rt as t,Nt as u,jt as v,ht as y};
@@ -1 +1 @@
1
- var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});import{i as s}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as a,S as i}from"./agent-avatar-url-CTQ8BnM1.js";var n=s(a(),1);function c({className:t,...r}){return(0,n.jsx)("div",{"data-slot":"skeleton",className:i("bg-accent/75 rounded-md",t),...r})}e(c,"Skeleton");export{c as t};
1
+ var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});import{i as s}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as a,S as i}from"./agent-avatar-url-Cv0eH_gk.js";var n=s(a(),1);function c({className:t,...r}){return(0,n.jsx)("div",{"data-slot":"skeleton",className:i("bg-accent/75 rounded-md",t),...r})}e(c,"Skeleton");export{c as t};
@@ -1 +1 @@
1
- var A=Object.defineProperty;var n=(a,t)=>A(a,"name",{value:t,configurable:!0});import{i as I}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as S,Mi as z,S as T,a as M,c as P,i as R,l as x,r as E,s as h}from"./agent-avatar-url-CTQ8BnM1.js";import{i as N,n as F,r as w,t as V}from"./dist-S9Z0NFy_.js";import{r as L}from"./button-C5dzXWIT.js";var f=I(z(),1),s=I(S(),1),$=Object.defineProperty,v=n((a,t)=>$(a,"name",{value:t,configurable:!0}),"__name"),_="Tabs",[D,nt]=P(_,[w]),k=w(),[G,C]=D(_),q=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,onValueChange:i,defaultValue:l,orientation:r="horizontal",dir:b,activationMode:p="automatic",...m}=t,d=N(b),[o,g]=M({prop:e,onChange:i,defaultProp:l??"",caller:_});return(0,s.jsx)(G,{scope:u,baseId:E(),value:o,onValueChange:g,orientation:r,dir:d,activationMode:p,children:(0,s.jsx)(x.div,{dir:d,"data-orientation":r,...m,ref:c})})},"Tabs2"),"Tabs")),K="TabsList",B=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,loop:e=!0,...i}=t,l=C(K,u),r=k(u);return(0,s.jsx)(F,{asChild:!0,...r,orientation:l.orientation,dir:l.dir,loop:e,children:(0,s.jsx)(x.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:c})})},"TabsList2"),"TabsList")),O="TabsTrigger",H=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,disabled:i=!1,...l}=t,r=C(O,u),b=k(u),p=j(r.baseId,e),m=y(r.baseId,e),d=e===r.value;return(0,s.jsx)(V,{asChild:!0,...b,focusable:!i,active:d,children:(0,s.jsx)(x.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":m,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...l,ref:c,onMouseDown:h(t.onMouseDown,o=>{!i&&o.button===0&&o.ctrlKey===!1?r.onValueChange(e):o.preventDefault()}),onKeyDown:h(t.onKeyDown,o=>{i||o.target!==o.currentTarget||[" ","Enter"].includes(o.key)&&r.onValueChange(e)}),onFocus:h(t.onFocus,()=>{const o=r.activationMode!=="manual";!d&&!i&&o&&r.onValueChange(e)})})})},"TabsTrigger2"),"TabsTrigger")),J="TabsContent",Q=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,forceMount:i,children:l,...r}=t,b=C(J,u),p=j(b.baseId,e),m=y(b.baseId,e),d=e===b.value,o=f.useRef(d);return f.useEffect(()=>{const g=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(g)},[]),(0,s.jsx)(R,{present:i||d,children:n(({present:g})=>(0,s.jsx)(x.div,{"data-state":d?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":p,hidden:!g,id:m,tabIndex:0,...r,ref:c,style:{...t.style,animationDuration:o.current?"0s":void 0},children:g&&l}),"children")})},"TabsContent2"),"TabsContent"));function j(a,t){return`${a}-trigger-${t}`}n(j,"makeTriggerId");v(j,"makeTriggerId");function y(a,t){return`${a}-content-${t}`}n(y,"makeContentId");v(y,"makeContentId");var U=q,W=B,X=H,Y=Q;function it({className:a,orientation:t="horizontal",...c}){return(0,s.jsx)(U,{"data-slot":"tabs","data-orientation":t,orientation:t,className:T("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...c})}n(it,"Tabs");var Z=L("p-(--sz-3px) group-data-[orientation=horizontal]/tabs:h-9 group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function st({className:a,variant:t="default",...c}){return(0,s.jsx)(W,{"data-slot":"tabs-list","data-variant":t,className:T(Z({variant:t}),a),...c})}n(st,"TabsList");function ct({className:a,...t}){return(0,s.jsx)(X,{"data-slot":"tabs-trigger",className:T("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-(--sz-calc-27) flex-1 items-center justify-center gap-1.5 border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-(--tp-color-background-color-border-color-box-shadow) group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-(length:--rad-3) focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-(--sz-neg-5px) group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...t})}n(ct,"TabsTrigger");function dt({className:a,...t}){return(0,s.jsx)(Y,{"data-slot":"tabs-content",className:T("flex-1 outline-none",a),...t})}n(dt,"TabsContent");export{ct as i,dt as n,st as r,it as t};
1
+ var S=Object.defineProperty;var n=(a,t)=>S(a,"name",{value:t,configurable:!0});import{i as I}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as z,Li as A,S as T,a as P,c as R,i as M,l as x,r as E,s as h}from"./agent-avatar-url-Cv0eH_gk.js";import{i as F,n as N,r as w,t as L}from"./dist-CMaDTo1K.js";import{r as V}from"./button-Bs_hqIdB.js";var f=I(A(),1),s=I(z(),1),$=Object.defineProperty,v=n((a,t)=>$(a,"name",{value:t,configurable:!0}),"__name"),_="Tabs",[D,nt]=R(_,[w]),k=w(),[G,C]=D(_),q=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,onValueChange:i,defaultValue:l,orientation:r="horizontal",dir:b,activationMode:p="automatic",...m}=t,d=F(b),[o,g]=P({prop:e,onChange:i,defaultProp:l??"",caller:_});return(0,s.jsx)(G,{scope:u,baseId:E(),value:o,onValueChange:g,orientation:r,dir:d,activationMode:p,children:(0,s.jsx)(x.div,{dir:d,"data-orientation":r,...m,ref:c})})},"Tabs2"),"Tabs")),K="TabsList",B=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,loop:e=!0,...i}=t,l=C(K,u),r=k(u);return(0,s.jsx)(N,{asChild:!0,...r,orientation:l.orientation,dir:l.dir,loop:e,children:(0,s.jsx)(x.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:c})})},"TabsList2"),"TabsList")),O="TabsTrigger",H=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,disabled:i=!1,...l}=t,r=C(O,u),b=k(u),p=j(r.baseId,e),m=y(r.baseId,e),d=e===r.value;return(0,s.jsx)(L,{asChild:!0,...b,focusable:!i,active:d,children:(0,s.jsx)(x.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":m,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...l,ref:c,onMouseDown:h(t.onMouseDown,o=>{!i&&o.button===0&&o.ctrlKey===!1?r.onValueChange(e):o.preventDefault()}),onKeyDown:h(t.onKeyDown,o=>{i||o.target!==o.currentTarget||[" ","Enter"].includes(o.key)&&r.onValueChange(e)}),onFocus:h(t.onFocus,()=>{const o=r.activationMode!=="manual";!d&&!i&&o&&r.onValueChange(e)})})})},"TabsTrigger2"),"TabsTrigger")),J="TabsContent",Q=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,forceMount:i,children:l,...r}=t,b=C(J,u),p=j(b.baseId,e),m=y(b.baseId,e),d=e===b.value,o=f.useRef(d);return f.useEffect(()=>{const g=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(g)},[]),(0,s.jsx)(M,{present:i||d,children:n(({present:g})=>(0,s.jsx)(x.div,{"data-state":d?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":p,hidden:!g,id:m,tabIndex:0,...r,ref:c,style:{...t.style,animationDuration:o.current?"0s":void 0},children:g&&l}),"children")})},"TabsContent2"),"TabsContent"));function j(a,t){return`${a}-trigger-${t}`}n(j,"makeTriggerId");v(j,"makeTriggerId");function y(a,t){return`${a}-content-${t}`}n(y,"makeContentId");v(y,"makeContentId");var U=q,W=B,X=H,Y=Q;function it({className:a,orientation:t="horizontal",...c}){return(0,s.jsx)(U,{"data-slot":"tabs","data-orientation":t,orientation:t,className:T("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...c})}n(it,"Tabs");var Z=V("p-(--sz-3px) group-data-[orientation=horizontal]/tabs:h-9 group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function st({className:a,variant:t="default",...c}){return(0,s.jsx)(W,{"data-slot":"tabs-list","data-variant":t,className:T(Z({variant:t}),a),...c})}n(st,"TabsList");function ct({className:a,...t}){return(0,s.jsx)(X,{"data-slot":"tabs-trigger",className:T("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-(--sz-calc-27) flex-1 items-center justify-center gap-1.5 border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-(--tp-color-background-color-border-color-box-shadow) group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-(length:--rad-3) focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-(--sz-neg-5px) group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...t})}n(ct,"TabsTrigger");function dt({className:a,...t}){return(0,s.jsx)(Y,{"data-slot":"tabs-content",className:T("flex-1 outline-none",a),...t})}n(dt,"TabsContent");export{ct as i,dt as n,st as r,it as t};
@@ -1 +1 @@
1
- import{t as e}from"./agent-avatar-url-CTQ8BnM1.js";var a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;var r=e(a);export{r as t};
1
+ import{t as e}from"./agent-avatar-url-Cv0eH_gk.js";var a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;var r=e(a);export{r as t};
@@ -1 +1 @@
1
- var _=Object.defineProperty;var s=(e,r)=>_(e,"name",{value:r,configurable:!0});import{i as p}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as g,Br as l,Mi as k,S as A,Z as S,Zr as w,t as n}from"./agent-avatar-url-CTQ8BnM1.js";import{r as x}from"./save-B4oiQHuF.js";import{c as M}from"./button-C5dzXWIT.js";import{t as v}from"./triangle-alert-CxAixgKD.js";var c={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};c.node;var N=n(c),d={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};d.node;var L=n(d),a=p(g(),1),h={info:L,warning:v,danger:x};function R({tone:e="info",title:r,children:t,icon:o,actions:i,compact:f=!1,className:y}){const u=o===!1?null:o??h[e];return(0,a.jsxs)("div",{role:"note",className:A("flex flex-col gap-2 rounded-lg border sm:flex-row sm:items-start sm:justify-between",f?"p-3":"p-4",M[e],y),children:[(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[u&&(0,a.jsx)(u,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"space-y-1 text-sm",children:[r&&(0,a.jsx)("p",{className:"font-medium leading-tight",children:r}),t&&(0,a.jsx)("div",{className:"leading-snug opacity-90",children:t})]})]}),i&&(0,a.jsx)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 pl-6 sm:pl-0",children:i})]})}s(R,"InlineBanner");var q=p(k(),1),I={list:s(()=>l.get("/adapters"),"list"),install:s(e=>l.post("/adapters/install",e),"install"),remove:s(e=>l.delete(`/adapters/${e}`),"remove"),setDisabled:s((e,r)=>l.patch(`/adapters/${e}`,{disabled:r}),"setDisabled"),setOverridePaused:s((e,r)=>l.patch(`/adapters/${e}/override`,{paused:r}),"setOverridePaused"),reload:s(e=>l.post(`/adapters/${e}/reload`,{}),"reload"),reinstall:s(e=>l.post(`/adapters/${e}/reinstall`,{}),"reinstall")},m={supportsInstructionsBundle:!1,supportsSkills:!1,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},z={claude_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"submitted_browser_code",timeoutPolicy:"fixed"}},codex_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},paperclip_runner:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},cursor:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},gemini_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},grok_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},kimi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},opencode_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},pi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"enforced"},omp_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1,readOnlyToolProfile:"enforced",supportsLiveSteering:!0},openclaw_gateway:m};function j(){const{data:e}=w({queryKey:S.adapters.all,queryFn:s(()=>I.list(),"queryFn"),staleTime:3e5}),r=(0,q.useMemo)(()=>{const t=new Map;if(e)for(const o of e)t.set(o.type,o.capabilities);return t},[e]);return t=>r.get(t)??z[t]??m}s(j,"useAdapterCapabilities");export{N as a,L as i,I as n,R as r,j as t};
1
+ var _=Object.defineProperty;var s=(e,r)=>_(e,"name",{value:r,configurable:!0});import{i as p}from"./rolldown-runtime-ZpX3ckPj.js";import{Fi as g,Hr as l,Li as k,S as A,Z as S,ni as w,t as n}from"./agent-avatar-url-Cv0eH_gk.js";import{r as x}from"./save-CuFXd8QN.js";import{c as M}from"./button-Bs_hqIdB.js";import{t as v}from"./triangle-alert-Bu0jhxoE.js";var c={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};c.node;var N=n(c),d={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};d.node;var L=n(d),a=p(g(),1),h={info:L,warning:v,danger:x};function R({tone:e="info",title:r,children:t,icon:o,actions:i,compact:f=!1,className:y}){const u=o===!1?null:o??h[e];return(0,a.jsxs)("div",{role:"note",className:A("flex flex-col gap-2 rounded-lg border sm:flex-row sm:items-start sm:justify-between",f?"p-3":"p-4",M[e],y),children:[(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[u&&(0,a.jsx)(u,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"space-y-1 text-sm",children:[r&&(0,a.jsx)("p",{className:"font-medium leading-tight",children:r}),t&&(0,a.jsx)("div",{className:"leading-snug opacity-90",children:t})]})]}),i&&(0,a.jsx)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 pl-6 sm:pl-0",children:i})]})}s(R,"InlineBanner");var q=p(k(),1),I={list:s(()=>l.get("/adapters"),"list"),install:s(e=>l.post("/adapters/install",e),"install"),remove:s(e=>l.delete(`/adapters/${e}`),"remove"),setDisabled:s((e,r)=>l.patch(`/adapters/${e}`,{disabled:r}),"setDisabled"),setOverridePaused:s((e,r)=>l.patch(`/adapters/${e}/override`,{paused:r}),"setOverridePaused"),reload:s(e=>l.post(`/adapters/${e}/reload`,{}),"reload"),reinstall:s(e=>l.post(`/adapters/${e}/reinstall`,{}),"reinstall")},m={supportsInstructionsBundle:!1,supportsSkills:!1,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},z={claude_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"submitted_browser_code",timeoutPolicy:"fixed"}},codex_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},paperclip_runner:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},cursor:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},gemini_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},grok_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},kimi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},opencode_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},pi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"enforced"},omp_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1,readOnlyToolProfile:"enforced",supportsLiveSteering:!0},openclaw_gateway:m};function j(){const{data:e}=w({queryKey:S.adapters.all,queryFn:s(()=>I.list(),"queryFn"),staleTime:3e5}),r=(0,q.useMemo)(()=>{const t=new Map;if(e)for(const o of e)t.set(o.type,o.capabilities);return t},[e]);return t=>r.get(t)??z[t]??m}s(j,"useAdapterCapabilities");export{N as a,L as i,I as n,R as r,j as t};
@@ -1 +1 @@
1
- var i=Object.defineProperty;var a=(e,r)=>i(e,"name",{value:r,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{Mi as s,Z as o,Zr as d,t as u}from"./agent-avatar-url-CTQ8BnM1.js";import{t as m}from"./health-CP80yTg8.js";var t={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};t.node;var f=u(t),h=n(s(),1);function l(){const e=d({queryKey:o.health,queryFn:a(()=>m.get(),"queryFn"),enabled:!1}).data;return(0,h.useMemo)(()=>({hidden:new Set(e?.hiddenSettings??[]),loaded:e!==void 0}),[e])}a(l,"useHiddenSettings");export{f as n,l as t};
1
+ var i=Object.defineProperty;var a=(e,r)=>i(e,"name",{value:r,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{Li as s,Z as o,ni as d,t as u}from"./agent-avatar-url-Cv0eH_gk.js";import{t as m}from"./health-DOk361OT.js";var t={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};t.node;var f=u(t),h=n(s(),1);function l(){const e=d({queryKey:o.health,queryFn:a(()=>m.get(),"queryFn"),enabled:!1}).data;return(0,h.useMemo)(()=>({hidden:new Set(e?.hiddenSettings??[]),loaded:e!==void 0}),[e])}a(l,"useHiddenSettings");export{f as n,l as t};
package/dist/index.html CHANGED
@@ -47,54 +47,54 @@
47
47
  }
48
48
  })();
49
49
  </script>
50
- <script type="module" crossorigin src="/assets/index-DZZg7geM.js"></script>
50
+ <script type="module" crossorigin src="/assets/index-O_9yKOHh.js"></script>
51
51
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-ZpX3ckPj.js">
52
- <link rel="modulepreload" crossorigin href="/assets/agent-avatar-url-CTQ8BnM1.js">
52
+ <link rel="modulepreload" crossorigin href="/assets/agent-avatar-url-Cv0eH_gk.js">
53
53
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-CceJXRIF.js">
54
- <link rel="modulepreload" crossorigin href="/assets/boxes-q3QCYOt1.js">
55
- <link rel="modulepreload" crossorigin href="/assets/agents-CIOHm3wj.js">
56
- <link rel="modulepreload" crossorigin href="/assets/button-C5dzXWIT.js">
57
- <link rel="modulepreload" crossorigin href="/assets/EmptyState-DvnQ8Vit.js">
58
- <link rel="modulepreload" crossorigin href="/assets/router-pQhrt28V.js">
59
- <link rel="modulepreload" crossorigin href="/assets/mention-chips-BkfszlcZ.js">
60
- <link rel="modulepreload" crossorigin href="/assets/dist-S9Z0NFy_.js">
61
- <link rel="modulepreload" crossorigin href="/assets/dist-BZW0zxru.js">
62
- <link rel="modulepreload" crossorigin href="/assets/AgentAvatar-LdcA0Kt-.js">
54
+ <link rel="modulepreload" crossorigin href="/assets/boxes-DN6zNhxD.js">
55
+ <link rel="modulepreload" crossorigin href="/assets/agents-BCsEXmmg.js">
56
+ <link rel="modulepreload" crossorigin href="/assets/button-Bs_hqIdB.js">
57
+ <link rel="modulepreload" crossorigin href="/assets/EmptyState-CkTgLu0M.js">
58
+ <link rel="modulepreload" crossorigin href="/assets/router-C-8KEGbX.js">
59
+ <link rel="modulepreload" crossorigin href="/assets/mention-chips-BfQmC5ut.js">
60
+ <link rel="modulepreload" crossorigin href="/assets/dist-CMaDTo1K.js">
61
+ <link rel="modulepreload" crossorigin href="/assets/dist-DCMmOKhY.js">
62
+ <link rel="modulepreload" crossorigin href="/assets/AgentAvatar-BmM_AHw4.js">
63
63
  <link rel="modulepreload" crossorigin href="/assets/dist-DCJXgQu0.js">
64
- <link rel="modulepreload" crossorigin href="/assets/MarkdownEditor-ClN1nVEy.js">
65
- <link rel="modulepreload" crossorigin href="/assets/sheet-DwJ-O9LQ.js">
66
- <link rel="modulepreload" crossorigin href="/assets/check-B_0Gl2dh.js">
67
- <link rel="modulepreload" crossorigin href="/assets/chevron-right-Dd72ud3l.js">
68
- <link rel="modulepreload" crossorigin href="/assets/checkbox-BcDrqU_I.js">
69
- <link rel="modulepreload" crossorigin href="/assets/label-BGvu-I61.js">
70
- <link rel="modulepreload" crossorigin href="/assets/clipboard-Do1KlLN9.js">
71
- <link rel="modulepreload" crossorigin href="/assets/loader-circle-Csk_10Yd.js">
72
- <link rel="modulepreload" crossorigin href="/assets/octagon-alert-DB0Zr9rg.js">
73
- <link rel="modulepreload" crossorigin href="/assets/StatusIcon-Cnveg2bW.js">
74
- <link rel="modulepreload" crossorigin href="/assets/bot-DapuHhVO.js">
75
- <link rel="modulepreload" crossorigin href="/assets/chevron-down-DIcWyXqY.js">
76
- <link rel="modulepreload" crossorigin href="/assets/select-rrqTEwP3.js">
77
- <link rel="modulepreload" crossorigin href="/assets/heartbeats-B-jRpcvO.js">
78
- <link rel="modulepreload" crossorigin href="/assets/health-CP80yTg8.js">
79
- <link rel="modulepreload" crossorigin href="/assets/useHiddenSettings-D0xT4dNB.js">
80
- <link rel="modulepreload" crossorigin href="/assets/rotate-ccw-DM4qegmo.js">
81
- <link rel="modulepreload" crossorigin href="/assets/triangle-alert-CxAixgKD.js">
82
- <link rel="modulepreload" crossorigin href="/assets/badge-BpUPkRht.js">
83
- <link rel="modulepreload" crossorigin href="/assets/environments-DvXCyO9f.js">
84
- <link rel="modulepreload" crossorigin href="/assets/input-Bcy-is4f.js">
85
- <link rel="modulepreload" crossorigin href="/assets/company-members-DXzEEOEQ.js">
86
- <link rel="modulepreload" crossorigin href="/assets/AgentIdentity-C_eyLjQ0.js">
87
- <link rel="modulepreload" crossorigin href="/assets/card-B5iZlukc.js">
88
- <link rel="modulepreload" crossorigin href="/assets/skeleton-CWmR5t-b.js">
89
- <link rel="modulepreload" crossorigin href="/assets/PageSkeleton--WPsMWs7.js">
90
- <link rel="modulepreload" crossorigin href="/assets/RoutineRunVariablesDialog-CNaOLeGp.js">
91
- <link rel="modulepreload" crossorigin href="/assets/tabs-C2l6LiUM.js">
92
- <link rel="modulepreload" crossorigin href="/assets/save-B4oiQHuF.js">
93
- <link rel="modulepreload" crossorigin href="/assets/use-adapter-capabilities-Ck-dIrco.js">
94
- <link rel="modulepreload" crossorigin href="/assets/external-link-BSBM6ZaF.js">
95
- <link rel="modulepreload" crossorigin href="/assets/MarkdownBody-CxwfJtA5.js">
96
- <link rel="modulepreload" crossorigin href="/assets/file-text-v598kkBS.js">
97
- <link rel="modulepreload" crossorigin href="/assets/SidebarContext-zDWx0ouh.js">
64
+ <link rel="modulepreload" crossorigin href="/assets/MarkdownEditor-DIHDyI6k.js">
65
+ <link rel="modulepreload" crossorigin href="/assets/sheet-BAKlmZaz.js">
66
+ <link rel="modulepreload" crossorigin href="/assets/check-Wdx0oVFt.js">
67
+ <link rel="modulepreload" crossorigin href="/assets/chevron-right-H1hxuQcL.js">
68
+ <link rel="modulepreload" crossorigin href="/assets/checkbox-BXdCzpwP.js">
69
+ <link rel="modulepreload" crossorigin href="/assets/label-FDocpxbC.js">
70
+ <link rel="modulepreload" crossorigin href="/assets/clipboard-AVa8mWpe.js">
71
+ <link rel="modulepreload" crossorigin href="/assets/loader-circle-Ccn7cIQz.js">
72
+ <link rel="modulepreload" crossorigin href="/assets/octagon-alert-CvqN8YxN.js">
73
+ <link rel="modulepreload" crossorigin href="/assets/StatusIcon-DMWo0jee.js">
74
+ <link rel="modulepreload" crossorigin href="/assets/bot-B7BKrriZ.js">
75
+ <link rel="modulepreload" crossorigin href="/assets/chevron-down-_ZjvalUC.js">
76
+ <link rel="modulepreload" crossorigin href="/assets/select-Bk63MRJ7.js">
77
+ <link rel="modulepreload" crossorigin href="/assets/heartbeats-DC1Jg5wJ.js">
78
+ <link rel="modulepreload" crossorigin href="/assets/health-DOk361OT.js">
79
+ <link rel="modulepreload" crossorigin href="/assets/useHiddenSettings-e3P22afn.js">
80
+ <link rel="modulepreload" crossorigin href="/assets/rotate-ccw-BFBwEreq.js">
81
+ <link rel="modulepreload" crossorigin href="/assets/triangle-alert-Bu0jhxoE.js">
82
+ <link rel="modulepreload" crossorigin href="/assets/badge-CBYpD1kE.js">
83
+ <link rel="modulepreload" crossorigin href="/assets/environments-C34o7Amp.js">
84
+ <link rel="modulepreload" crossorigin href="/assets/input-DWX5pycC.js">
85
+ <link rel="modulepreload" crossorigin href="/assets/company-members-D5TY0Q5y.js">
86
+ <link rel="modulepreload" crossorigin href="/assets/AgentIdentity-yWgBWli2.js">
87
+ <link rel="modulepreload" crossorigin href="/assets/card-q2lFI4Jb.js">
88
+ <link rel="modulepreload" crossorigin href="/assets/skeleton-CT2up2kA.js">
89
+ <link rel="modulepreload" crossorigin href="/assets/PageSkeleton-BaA5fPnJ.js">
90
+ <link rel="modulepreload" crossorigin href="/assets/RoutineRunVariablesDialog-jpQtDrRe.js">
91
+ <link rel="modulepreload" crossorigin href="/assets/tabs-DpWk-7C2.js">
92
+ <link rel="modulepreload" crossorigin href="/assets/save-CuFXd8QN.js">
93
+ <link rel="modulepreload" crossorigin href="/assets/use-adapter-capabilities-JfIn6NXs.js">
94
+ <link rel="modulepreload" crossorigin href="/assets/external-link-C0kSD4FX.js">
95
+ <link rel="modulepreload" crossorigin href="/assets/MarkdownBody-DVrC75-l.js">
96
+ <link rel="modulepreload" crossorigin href="/assets/file-text-D75dT7T5.js">
97
+ <link rel="modulepreload" crossorigin href="/assets/SidebarContext-CkAM3N-1.js">
98
98
  <link rel="stylesheet" crossorigin href="/assets/index-D5v2uO68.css">
99
99
  </head>
100
100
  <body>
package/dist/sw.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // browser install a new worker, which — via skipWaiting + controllerchange —
5
5
  // reloads parked tabs onto the fresh bundle. Left as the literal placeholder in
6
6
  // dev, where HMR (not the worker) drives refreshes.
7
- const BUILD_ID = "index-DZZg7geM";
7
+ const BUILD_ID = "index-O_9yKOHh";
8
8
  // Separate this allowlisted cache from older workers that cached arbitrary URLs.
9
9
  const CACHE_NAME = `paperclip-public-assets-${BUILD_ID}`;
10
10
  const privateRequests = new Set();